/* MAC MEDIA design system
   White pages, black type, teal as the one accent and blue as its support.
   Condensed caps for headings, a plain sans for everything else, generous space. */
:root {
  color-scheme: light;
  --white: #ffffff;
  --paper: #f5f8f8;
  --ink: #0e1113;
  --ink-2: #2b3236;
  --muted: #59636a;
  --faint: #6b7378;
  --line: #e2e7e9;
  --teal: #0a7973;
  --teal-bright: #14a39a;
  --teal-50: #e5f4f2;
  --blue: #2463c4;
  --blue-50: #e9f0fb;
  --green: #19c37d;
  --green-ink: #097c4c;
  --green-50: #e3f7ee;
  --ok: #1f7a4d;
  --ok-50: #e5f3ec;
  --warn: #8a5a00;
  --warn-50: #fbf0d9;
  --danger: #b42318;
  --danger-50: #fdecea;
  --display: "Archivo", "Arial Narrow", "Helvetica Neue", Arial, sans-serif;
  --body: "Archivo", "Helvetica Neue", Arial, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, "SF Mono", Menlo, Consolas, monospace;
  --ease: cubic-bezier(.2, .7, .15, 1);
  --radius: 10px;
  --section: clamp(80px, 11vw, 136px);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; background: var(--white); color: var(--ink); font: 400 1.0625rem/1.6 var(--body); -webkit-font-smoothing: antialiased; }
img { display: block; max-width: 100%; }
a { color: inherit; }
p { margin: 0; }
h1, h2, h3 { margin: 0; text-wrap: balance; }
code, pre { font-family: var(--mono); font-size: .875em; }
:focus-visible { outline: 2px solid var(--teal); outline-offset: 3px; }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: 16px; top: 16px; z-index: 100; background: var(--white); padding: 8px 12px; }

.wrap { max-width: 1200px; margin: 0 auto; padding-left: max(20px, env(safe-area-inset-left, 0px)); padding-right: max(20px, env(safe-area-inset-right, 0px)); }
.display { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; line-height: .94; letter-spacing: -.005em; }
.accent { color: var(--teal); }
.eyebrow { font-family: var(--mono); font-size: .76rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 14px; }
.eyebrow a { text-decoration: none; }
.eyebrow::before { content: "//"; color: var(--green-ink); margin-right: .6em; }
.label { font-family: var(--mono); font-size: .72rem; font-weight: 500; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); margin: 0 0 10px; }
.muted { color: var(--muted); }
.small { font-size: .875rem; }
.lede { font-size: 1.15rem; line-height: 1.55; color: var(--muted); max-width: 52ch; }
.text-link { font-weight: 600; text-decoration: none; color: var(--teal); border-bottom: 1.5px solid currentColor; padding-bottom: 1px; }
.text-link:hover { color: var(--ink); }
.inline { display: inline-flex; align-items: center; gap: 8px; margin: 0; }
.actions { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.arrow { width: 18px; height: 18px; flex: none; transition: transform .3s var(--ease); }

/* ---------- buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 14px 22px; border-radius: 8px; border: 1.5px solid var(--ink); background: var(--white); color: var(--ink); font: 600 .95rem var(--body); text-decoration: none; cursor: pointer; transition: background .2s, color .2s, border-color .2s, transform .2s; }
.btn:hover { background: var(--ink); color: var(--white); }
.btn:hover .arrow { transform: translateX(3px); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: var(--teal); border-color: var(--teal); color: var(--white); }
.btn-primary:hover { background: var(--ink); border-color: var(--ink); }
.btn-danger { border-color: var(--danger); color: var(--danger); }
.btn-danger:hover { background: var(--danger); color: var(--white); }
.btn-small { padding: 9px 16px; font-size: .875rem; }
.link-btn { font: 600 .875rem var(--body); color: var(--teal); background: none; border: 0; padding: 0; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- header ---------- */
.site-header { position: sticky; top: 0; z-index: 30; background: rgba(255, 255, 255, .94); backdrop-filter: blur(10px); }
.header-row { display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 72px; }
.logo { display: inline-flex; align-items: center; gap: 11px; text-decoration: none; white-space: nowrap; }
.logo-word { font-family: var(--display); font-variation-settings: "wdth" 72; font-weight: 800; font-size: 1.35rem; letter-spacing: .06em; line-height: 1; }
.logo-word b { font-weight: 400; color: var(--muted); margin-left: .28em; }
.logo-mark { flex: none; display: block; overflow: visible; }
.mm-tile { fill: var(--ink); }
.mm-node { fill: var(--white); transition: transform .3s var(--ease); transform-box: fill-box; transform-origin: center; }
.mm-node.n4 { fill: var(--green); }
.mm-path { stroke-dasharray: 44; stroke-dashoffset: 0; }
.logo:hover .mm-path { animation: mm-draw .9s var(--ease); }
.logo:hover .n1 { animation: mm-pop .5s var(--ease) .0s; }
.logo:hover .n2 { animation: mm-pop .5s var(--ease) .18s; }
.logo:hover .n3 { animation: mm-pop .5s var(--ease) .36s; }
.logo:hover .n4 { animation: mm-pop .6s var(--ease) .56s; }
@keyframes mm-draw { from { stroke-dashoffset: 44; } to { stroke-dashoffset: 0; } }
@keyframes mm-pop { 50% { transform: scale(1.5); } }
.logo small { font-family: var(--body); font-size: .85rem; font-weight: 500; color: var(--muted); letter-spacing: 0; text-transform: none; }
.nav-links { display: flex; flex-wrap: wrap; gap: 4px 30px; list-style: none; margin: 0; padding: 0; }
.nav-links a { text-decoration: none; font-size: .95rem; font-weight: 500; color: var(--muted); padding-block: 6px; position: relative; }
.nav-links a::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; height: 2px; background: var(--teal); transform: scaleX(0); transform-origin: left; transition: transform .3s var(--ease); }
.nav-links a:hover, .nav-links a[aria-current="page"] { color: var(--ink); }
.nav-links a:hover::after, .nav-links a[aria-current="page"]::after { transform: scaleX(1); }
.progress { position: relative; height: 1px; background: var(--line); }
.progress b { position: absolute; left: 0; top: -.5px; height: 2px; width: 0; background: linear-gradient(90deg, var(--blue), var(--teal) 70%, var(--green)); }
.progress i { position: absolute; top: 50%; left: 0; width: 11px; height: 11px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--white); transform: translate(-50%, -50%); }

/* nav: Contact doubles as the main call to action */
.nav-links { align-items: center; }
.nav-links a.nav-cta { color: var(--white); background: var(--teal); padding: 9px 18px; border-radius: 8px; transition: background .2s; }
.nav-links a.nav-cta::after { display: none; }
.nav-links a.nav-cta:hover, .nav-links a.nav-cta[aria-current="page"] { background: var(--ink); color: var(--white); }
/* account button, top-right of the public header */
.main-nav { margin-left: auto; }
.header-account { gap: 8px; white-space: nowrap; }
.header-account-form { margin: 0; }
@media (max-width: 480px) { .header-account-label { display: none; } .header-account { padding: 9px 11px; } }
.menu-toggle { display: none; align-items: center; gap: 10px; background: none; border: 1.5px solid var(--ink); border-radius: 8px; padding: 8px 12px; font: 600 .875rem var(--body); color: var(--ink); cursor: pointer; }
.menu-icon { position: relative; width: 16px; height: 10px; }
.menu-icon i { position: absolute; left: 0; right: 0; height: 2px; background: currentColor; transition: transform .3s var(--ease), top .3s var(--ease); }
.menu-icon i:first-child { top: 0; }
.menu-icon i:last-child { top: 8px; }
.menu-open .menu-icon i:first-child { top: 4px; transform: rotate(45deg); }
.menu-open .menu-icon i:last-child { top: 4px; transform: rotate(-45deg); }

/* ---------- footer ---------- */
.site-footer { border-top: 1px solid var(--line); padding-block: 64px 0; }
.footer-grid { display: grid; grid-template-columns: minmax(0, 2fr) repeat(2, minmax(0, 1fr)); gap: 40px; }
.footer-brand { display: grid; gap: 12px; align-content: start; max-width: 36ch; }
.site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.site-footer ul a { text-decoration: none; color: var(--ink-2); }
.site-footer ul a:hover { color: var(--teal); }
.footer-base { display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding-block: 40px; margin-top: 48px; border-top: 1px solid var(--line); }

/* ---------- section scaffolding ---------- */
.section { padding-block: var(--section); }
.section-tight { padding-block: 16px 72px; }
.tint { background: var(--paper); }
.section-head { max-width: 760px; margin-bottom: 56px; }
.section-head .display { font-size: clamp(2.5rem, 5.2vw, 4.25rem); }
.section-head .lede { margin-top: 18px; }
.page-head { padding-block: clamp(64px, 9vw, 112px) 48px; }
.page-head .display { font-size: clamp(2.8rem, 6.5vw, 5.4rem); max-width: 16ch; }
.page-head .lede { margin-top: 20px; }
.center-cta { display: flex; justify-content: center; margin-top: 48px; }

/* ---------- hero ---------- */
.hero { position: relative; padding-block: clamp(56px, 8vw, 104px) clamp(72px, 9vw, 120px); overflow: hidden; isolation: isolate; }
.hero-grid-bg { position: absolute; inset: 0; width: 100%; height: 100%; z-index: -1; pointer-events: none; }
.live-tag { display: inline-flex; align-items: center; gap: 6px; font-family: var(--mono); text-transform: none !important; letter-spacing: 0 !important; color: var(--green-ink) !important; }
.live-tag i { width: 7px; height: 7px; border-radius: 50%; background: var(--green); box-shadow: 0 0 0 0 rgba(25, 195, 125, .6); animation: ping 1.8s infinite; }
@keyframes ping { 70% { box-shadow: 0 0 0 7px rgba(25, 195, 125, 0); } 100% { box-shadow: 0 0 0 0 rgba(25, 195, 125, 0); } }
.mini-list li { transition: background .6s; }
.mini-list li.enter { animation: feed-in .7s var(--ease); background: var(--green-50); }
@keyframes feed-in { from { opacity: 0; transform: translateY(-10px); } }
.mini-kpis b.bump { color: var(--green-ink); }
.hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: clamp(40px, 6vw, 88px); align-items: center; }
.hero h1 { font-size: clamp(3.4rem, 7.6vw, 6.6rem); }
.hero h1 .accent { display: block; }
.hero .lede { margin-block: 26px 34px; }
.hero-visual { position: relative; padding: 28px 0 28px 28px; }
.geo { position: absolute; pointer-events: none; }
.geo-circle { width: 74%; aspect-ratio: 1; border-radius: 50%; background: var(--teal-50); right: -12%; top: -14%; }
.geo-square { width: 84px; height: 84px; border: 2px solid var(--blue); left: 0; bottom: 0; }
.browser { position: relative; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: 0 30px 60px -40px rgba(14, 17, 19, .35); overflow: hidden; }
.browser-bar { display: flex; align-items: center; gap: 6px; padding: 10px 14px; border-bottom: 1px solid var(--line); background: var(--white); }
.browser-bar i { width: 9px; height: 9px; border-radius: 50%; background: var(--line); }
.browser-bar span { margin-left: 10px; font-size: .75rem; color: var(--faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mini-dash { padding: 20px; display: grid; gap: 16px; }
.mini-head { display: flex; justify-content: space-between; align-items: baseline; }
.mini-head b { font-size: 1.05rem; }
.mini-head span { font-size: .72rem; color: var(--faint); text-transform: uppercase; letter-spacing: .12em; }
.mini-kpis { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; }
.mini-kpis div { background: var(--paper); border-radius: 8px; padding: 12px; display: grid; gap: 2px; }
.mini-kpis span { font-size: .75rem; color: var(--muted); }
.mini-kpis b { font-size: 1.6rem; font-weight: 650; font-variant-numeric: tabular-nums; }
.mini-list { list-style: none; margin: 0; padding: 0; }
.mini-list li { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding-block: 11px; border-top: 1px solid var(--line); font-size: .9rem; }
.st { font-style: normal; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; white-space: nowrap; }
.st-new { background: var(--blue-50); color: var(--blue); }
.st-sched { background: var(--teal-50); color: var(--teal); }
.st-prog { background: var(--warn-50); color: var(--warn); }
.st-done { background: var(--green-50); color: var(--green-ink); }

/* ---------- problem + before/after ---------- */
.pains { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: 28px; }
.pain { display: grid; gap: 8px; align-content: start; }
.pain h3 { font-size: 1.05rem; font-weight: 650; border-top: 2px solid var(--ink); padding-top: 16px; display: flex; align-items: center; gap: 8px; }
.pain-art { width: 100%; max-width: 220px; height: auto; margin: 0 0 14px -6px; overflow: visible; transition: transform .5s var(--ease); }
.pain:hover .pain-art { transform: translateY(-4px); }
.pain-art .bob, .pain-art .nudge, .pain-art .spin { transition: transform .6s var(--ease); transform-box: fill-box; }
.pain-art .spin { transform-origin: center; }
.pain:hover .pain-art .bob { transform: translateY(-4px) rotate(-2deg); }
.pain:hover .pain-art .nudge { transform: translateX(4px); }
.pain:hover .pain-art .spin { transform: rotate(180deg); }
@media (prefers-reduced-motion: no-preference) {
  .pain-art .spin { animation: slow-spin 9s linear infinite; }
  .pain-art .bob { animation: bob 4s ease-in-out infinite; }
  .pain:nth-child(2) .pain-art .bob { animation-delay: -1.5s; }
  .pain:nth-child(4) .pain-art .bob { animation-delay: -2.5s; }
}
@keyframes slow-spin { to { transform: rotate(360deg); } }
@keyframes bob { 50% { transform: translateY(-3px); } }
.pain p { font-size: .95rem; }
.mess { position: relative; height: 260px; }
.mess span { position: absolute; left: var(--x); top: var(--y); transform: rotate(var(--r)); background: var(--white); border: 1px solid var(--line); border-radius: 6px; padding: 7px 11px; font-size: .82rem; color: var(--ink-2); white-space: nowrap; box-shadow: 0 6px 14px -10px rgba(14, 17, 19, .35); transition: transform .5s var(--ease); max-width: 92%; overflow: hidden; text-overflow: ellipsis; }

/* ---------- solution diagram ---------- */
@keyframes pulse { to { left: 100%; } }
.benefits { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 32px; margin-top: 64px; }
.benefits.four { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: 0; }
.benefits h3 { font-size: 1.15rem; font-weight: 650; margin-bottom: 8px; }

/* ---------- demo ---------- */
.badge-live { font-size: .7rem; font-weight: 600; color: var(--green-ink); background: var(--green-50); padding: 2px 8px; border-radius: 999px; display: inline-flex; align-items: center; gap: 5px; }
.badge-live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: blink 1.6s infinite; }
@keyframes blink { 50% { opacity: .2; } }

/* ---------- solutions overview ---------- */
.solutions { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.solution { position: relative; display: grid; gap: 10px; align-content: start; background: var(--white); border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; text-decoration: none; transition: border-color .25s, transform .35s var(--ease); }
.solution:hover { border-color: var(--teal); transform: translateY(-3px); }
.solution.featured { grid-column: 1 / -1; grid-template-columns: 72px minmax(0, 1fr) minmax(0, 1.3fr); column-gap: 32px; align-items: start; background: var(--ink); color: var(--white); border-color: var(--ink); padding: 36px; }
.solution.featured .mark { grid-row: span 4; width: 72px; height: 72px; }
.solution.featured .tag, .solution.featured h3, .solution.featured > p:not(.muted), .solution.featured .more { grid-column: 2; }
.solution.featured .chips { grid-column: 3; grid-row: 1 / span 4; align-self: center; justify-content: flex-end; }
.solution.featured .more { color: var(--teal-bright); }
.mark { width: 48px; height: 48px; }
.solution h3 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; margin-top: 8px; }
.solution .more { display: inline-flex; align-items: center; gap: 6px; font-weight: 600; font-size: .92rem; color: var(--teal); margin-top: 6px; }
.solution:hover .arrow { transform: translateX(3px); }
.tag { justify-self: start; font-size: .7rem; font-weight: 600; letter-spacing: .14em; text-transform: uppercase; color: var(--ink); background: var(--teal-bright); padding: 4px 9px; border-radius: 4px; }

/* ---------- calculator ---------- */
.calc { display: grid; grid-template-columns: minmax(0, .85fr) minmax(0, 1.15fr); gap: 56px; align-items: start; }
.calc .section-head { margin-bottom: 0; }
.calc-card { border: 1px solid var(--line); border-radius: var(--radius); padding: 32px; display: grid; gap: 24px; }
.calc-inputs { display: grid; gap: 10px; }
.calc-inputs label { display: flex; justify-content: space-between; gap: 12px; font-weight: 500; font-size: .95rem; }
.calc-inputs label:not(:first-child) { margin-top: 14px; }
.calc-inputs output { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--teal); }
input[type="range"] { -webkit-appearance: none; appearance: none; width: 100%; height: 6px; border-radius: 3px; background: linear-gradient(var(--teal), var(--teal)) 0 / var(--fill, 50%) 100% no-repeat, var(--line); padding: 0; border: 0; cursor: pointer; }
input[type="range"]::-webkit-slider-thumb { -webkit-appearance: none; width: 22px; height: 22px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); box-shadow: 0 2px 6px rgba(14, 17, 19, .2); }
input[type="range"]::-moz-range-thumb { width: 20px; height: 20px; border-radius: 50%; background: var(--white); border: 2px solid var(--teal); }
.calc-results { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.calc-results div { background: var(--paper); border-radius: 8px; padding: 16px; display: grid; gap: 4px; align-content: start; }
.calc-results span { font-size: .8rem; color: var(--muted); }
.calc-results b { font-size: clamp(1.7rem, 3vw, 2.3rem); font-weight: 650; line-height: 1.1; font-variant-numeric: tabular-nums; }
.calc-results div:nth-child(1) b { color: var(--green-ink); }
.calc-results div:nth-child(2) b { color: var(--teal); }
.calc-results em { font-style: normal; font-size: .8rem; color: var(--muted); }
.calc-bar { height: 14px; border-radius: 7px; background: var(--line); overflow: hidden; display: flex; }
.calc-bar span { display: block; height: 100%; background: var(--teal); border-right: 2px solid var(--white); transition: width .4s var(--ease); }
.sw { display: inline-block; width: 10px; height: 10px; border-radius: 2px; }
.sw-saved { background: var(--teal); }
.sw-rest { background: var(--line); margin-left: 10px; }
.fine { font-size: .82rem; color: var(--faint); }

/* ---------- process ---------- */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 44px 32px; counter-reset: step; }
.steps li { counter-increment: step; display: grid; gap: 8px; align-content: start; padding-top: 18px; border-top: 1px solid var(--line); position: relative; }
.steps li::before { content: counter(step, decimal-leading-zero); font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; font-size: 1.5rem; color: var(--teal); }
.steps li::after { content: ""; position: absolute; top: -1px; left: 0; width: 40px; height: 2px; background: var(--teal); }
.steps h3 { font-size: 1.15rem; font-weight: 650; }

/* ---------- projects ---------- */
.projects { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 40px 24px; }
.project { display: grid; gap: 8px; align-content: start; text-decoration: none; }
.project-img { position: relative; aspect-ratio: 4 / 3; border-radius: var(--radius); overflow: hidden; background: var(--paper); margin-bottom: 10px; }
.project-img.wide { aspect-ratio: 21 / 9; margin-block: 32px; }
.project-img img { width: 100%; height: 100%; object-fit: cover; transition: transform .8s var(--ease); }
.project:hover .project-img img, .project:hover .project-geo { transform: scale(1.03); }
.project-geo { position: absolute; inset: 0; transition: transform .8s var(--ease); }
.project-geo i:first-child { position: absolute; width: 58%; aspect-ratio: 1; border-radius: 50%; background: var(--teal-50); right: -8%; top: -14%; }
.project-geo i:last-child { position: absolute; width: 34%; aspect-ratio: 1; border: 2px solid var(--blue); left: 12%; bottom: 14%; }
.project:nth-child(2) .project-geo i:first-child { background: var(--blue-50); left: -10%; right: auto; }
.project:nth-child(2) .project-geo i:last-child { border-color: var(--teal); left: auto; right: 14%; border-radius: 50%; }
.project:nth-child(3) .project-geo i:first-child { border-radius: 0; background: var(--teal-50); width: 46%; right: 10%; top: 18%; }
.concept { position: absolute; left: 12px; top: 12px; font-size: .7rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; background: var(--white); color: var(--ink-2); padding: 4px 9px; border-radius: 4px; }
.project h3 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 1; }
.project p.label { margin: 0; }
.notice { margin-top: 18px; display: inline-block; background: var(--blue-50); color: var(--ink-2); border-radius: 8px; padding: 10px 14px; font-size: .9rem; }

/* ---------- CTA ---------- */
.cta { background: var(--ink); color: var(--white); }
.cta .eyebrow { color: var(--teal-bright); }
.cta .lede { color: #aab4b9; }
.cta-grid { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 56px; padding-block: var(--section); align-items: start; }
.cta-grid .display { font-size: clamp(2.6rem, 5.4vw, 4.6rem); }
.cta-grid .lede { margin-top: 20px; }
.cta-slim .cta-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 40px; padding-block: 80px; align-items: end; }
.cta-slim .display { font-size: clamp(2.4rem, 4.8vw, 4rem); }
.cta-slim .lede { margin-bottom: 22px; }
.cta .btn-primary:hover { background: var(--white); border-color: var(--white); color: var(--ink); }

/* ---------- forms ---------- */
.form { display: grid; gap: 18px; max-width: 760px; }
.form-inline { grid-template-columns: minmax(0, 1fr) auto; align-items: end; }
.field-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 220px), 1fr)); gap: 18px; }
.field-stack { display: grid; gap: 18px; }
label { display: grid; gap: 6px; font-weight: 600; font-size: .92rem; }
label .muted, .optional { font-weight: 400; color: var(--faint); }
label.check { display: flex; align-items: center; gap: 10px; }
input, select, textarea { font: 400 1rem var(--body); color: var(--ink); background: var(--white); border: 1px solid #cfd6d9; border-radius: 8px; padding: 12px 14px; width: 100%; }
input[type="checkbox"] { width: auto; }
textarea { resize: vertical; }
input:focus, select:focus, textarea:focus { outline: 2px solid var(--teal); outline-offset: 0; border-color: transparent; }
.form-foot { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.inquiry.on-dark label { color: var(--white); }
.inquiry.on-dark .optional, .inquiry.on-dark .form-foot p { color: #aab4b9; }
.inquiry.on-dark input, .inquiry.on-dark select, .inquiry.on-dark textarea { background: #171b1e; border-color: #2f373b; color: var(--white); }
.inquiry.on-dark ::placeholder { color: #6f7a80; }
.flash { padding: 12px 16px; border-radius: 8px; margin: 0 0 4px; }
.flash-error { background: var(--danger-50); color: var(--danger); }
.flash-ok { background: var(--ok-50); color: var(--ok); }
.error-text { color: var(--danger); }

/* ---------- solutions pages ---------- */
.solution-list { display: grid; padding-bottom: 96px; }
.solution-row { display: grid; grid-template-columns: 200px minmax(0, 1.4fr) minmax(0, 1fr); gap: 40px; padding-block: 48px; border-top: 1px solid var(--line); }
.solution-row:last-child { border-bottom: 1px solid var(--line); }
.row-head { display: flex; justify-content: center; align-items: flex-start; }
/* one height for every icon; site.js centers each on its title-to-description text */
.row-head .mark { display: block; height: 160px; width: auto; max-width: 100%; margin-top: var(--mark-top, 0px); }
.solution-row h2 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: clamp(2.2rem, 4vw, 3.2rem); line-height: 1; margin-block: 10px 12px; }
.row-tagline { font-size: 1.15rem; font-weight: 500; margin-bottom: 12px; }
.row-side { display: grid; gap: 14px; align-content: start; }
.row-side .text-link { justify-self: start; }
.ticks { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ticks li { position: relative; padding-left: 26px; }
.ticks li::before { content: ""; position: absolute; left: 0; top: .45em; width: 14px; height: 8px; border-left: 2px solid var(--teal); border-bottom: 2px solid var(--teal); transform: rotate(-45deg); }
.solution-hero-grid { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 40px; align-items: end; }
.solution-hero-grid .mark { width: clamp(88px, 12vw, 150px); height: auto; aspect-ratio: 1; }
.solution-hero .tag { margin-bottom: 14px; display: inline-block; }
.detail { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; padding-bottom: 96px; align-items: start; }
.detail-summary { font-size: 1.3rem; line-height: 1.5; }
.detail-main h2 { font-size: 1.25rem; font-weight: 650; margin-block: 44px 14px; }
.detail-aside { position: sticky; top: 100px; border: 1px solid var(--line); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.aside-big { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 2.4rem; line-height: 1; }
.detail-aside .btn { margin-top: 8px; }
.others { padding-bottom: 96px; }
.others-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.others-grid a { display: grid; gap: 6px; text-decoration: none; border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; transition: border-color .25s; }
.others-grid a:hover { border-color: var(--teal); }
.others-grid .mark { width: 36px; height: 36px; margin-bottom: 6px; }

/* ---------- case study, about, contact ---------- */
.case-study { padding-block: clamp(64px, 9vw, 104px) 96px; }
.case-study .display { font-size: clamp(2.8rem, 6.5vw, 5.4rem); }
.case-study .lede { margin-top: 18px; }
.case-body { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 48px; }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; margin: 0; align-content: start; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; }
.prose { max-width: 66ch; display: grid; gap: 18px; }
.prose p { font-size: 1.08rem; line-height: 1.7; }
.prose.privacy h2 { font-size: 1.25rem; margin-top: 18px; }
.prose.privacy a { color: var(--teal); }
.about-body { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 64px; padding-bottom: 96px; align-items: center; }
.geo-stack { position: relative; aspect-ratio: 1; max-width: 320px; width: 100%; justify-self: center; }
.geo-stack i { position: absolute; }
.geo-stack i:nth-child(1) { inset: 0 18% 18% 0; border-radius: 50%; background: var(--teal-50); }
.geo-stack i:nth-child(2) { width: 44%; aspect-ratio: 1; right: 0; bottom: 0; background: var(--ink); }
.geo-stack i:nth-child(3) { width: 26%; aspect-ratio: 1; right: 9%; bottom: 9%; border-radius: 50%; background: var(--teal-bright); }
.contact-head { padding-bottom: 32px; }
.contact-grid { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 64px; padding-bottom: 104px; align-items: start; }
.contact-aside { background: var(--paper); border-radius: var(--radius); padding: 28px; display: grid; gap: 12px; }
.contact-aside .label:not(:first-child) { margin-top: 18px; }
.next-steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; color: var(--ink-2); }
.thanks { min-height: 50vh; }
.geo-ok { display: block; width: 56px; height: 56px; border-radius: 50%; background: var(--teal-bright); position: relative; margin-bottom: 28px; }
.geo-ok::after { content: ""; position: absolute; left: 18px; top: 18px; width: 20px; height: 10px; border-left: 3px solid var(--white); border-bottom: 3px solid var(--white); transform: rotate(-45deg); }
.thanks .actions { margin-top: 28px; }
.filters { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.filters a { text-decoration: none; border: 1px solid var(--line); border-radius: 999px; padding: 6px 14px; font-size: .875rem; color: var(--muted); }
.filters a[aria-current="page"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* ---------- admin + shared tables ---------- */
.admin { padding-block: 40px 80px; }
.admin h1 { font-size: 2.1rem; margin: 0 0 20px; }
.admin h2 { font-size: 1.2rem; margin: 40px 0 14px; }
.title-row { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 20px; }
.title-row h1 { margin: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 12px; }
.stat { border: 1px solid var(--line); border-radius: var(--radius); padding: 18px; text-decoration: none; display: grid; }
.stat b { font-size: 2.2rem; line-height: 1; }
.stat span { color: var(--muted); }
.table-scroll { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: .92rem; }
.table th { text-align: left; font-weight: 600; color: var(--muted); font-size: .8rem; padding: 8px 12px 8px 0; border-bottom: 1px solid var(--line); }
.table td { padding: 10px 12px 10px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.status, .badge { display: inline-block; font-size: .75rem; font-weight: 600; border-radius: 999px; padding: 2px 10px; background: var(--paper); }
.status-new, .status-draft { background: var(--blue-50); color: var(--blue); }
.status-published, .status-won, .status-contacted { background: var(--teal-50); color: var(--teal); }
.status-lost { background: var(--danger-50); color: var(--danger); }
.badge-destructive { background: var(--danger-50); color: var(--danger); }
.badge-write { background: var(--teal-50); color: var(--teal); }
.message { white-space: pre-wrap; background: var(--paper); border-radius: var(--radius); padding: 16px 20px; margin: 0 0 24px; }
.danger-zone { display: flex; gap: 12px; flex-wrap: wrap; margin-top: 32px; padding-top: 24px; border-top: 1px solid var(--line); }
.token-box { background: var(--teal-50); border-radius: var(--radius); padding: 16px 20px; margin-bottom: 24px; overflow-x: auto; }
.token-box pre { white-space: pre-wrap; word-break: break-all; }
.verbs h2 { margin-top: 40px; }
.verb { border-top: 1px solid var(--line); padding-block: 20px; }
.verb h3 { margin: 0 0 6px; }

/* ---------- entrance motion (only below the first screen) ---------- */
.js .rise { opacity: 0; transform: translateY(18px); }
.js .rise.in { opacity: 1; transform: none; transition: opacity .8s var(--ease), transform .8s var(--ease); }

/* ---------- responsive ---------- */
@media (max-width: 860px) {
  .header-row { flex-wrap: wrap; }
  .js .menu-toggle { display: inline-flex; }
  .main-nav { width: 100%; order: 10; margin-left: 0; }
  .header-account, .header-account-form { margin-left: auto; }
  .menu-toggle { order: 5; }
  .header-row { gap: 12px; }
  .js .main-nav { display: none; }
  .js .menu-open .main-nav { display: block; }
  .main-nav .nav-links { flex-direction: column; align-items: stretch; gap: 0; padding-bottom: 16px; }
  .main-nav .nav-links a { display: block; padding: 14px 0; font-size: 1.1rem; color: var(--ink); border-top: 1px solid var(--line); }
  .main-nav .nav-links a::after { display: none; }
  .main-nav .nav-links a.nav-cta { margin-top: 12px; text-align: center; border-top: 0; color: var(--white); }
  .is-admin .main-nav .nav-links { flex-direction: row; flex-wrap: wrap; gap: 4px 18px; }
  .is-admin .main-nav .nav-links a { border-top: 0; padding: 6px 0; font-size: .95rem; }
}
@media (max-width: 1040px) {
  .pains { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solutions { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .solution.featured { grid-template-columns: 56px minmax(0, 1fr); }
  .solution.featured .mark { width: 56px; height: 56px; }
  .solution.featured .chips { grid-column: 2; grid-row: auto; justify-content: flex-start; }
  .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .benefits.four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 860px) {
  .hero-grid, .calc, .cta-grid, .cta-slim .cta-row, .detail, .contact-grid, .about-body, .case-body { grid-template-columns: minmax(0, 1fr); }
  .hero-visual { padding: 16px 0 16px 16px; }
  .benefits, .projects, .others-grid { grid-template-columns: minmax(0, 1fr); }
  .solution-row { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .row-head { justify-content: flex-start; }
  .row-head .mark { height: 72px; margin-top: 0; }
  .detail-aside { position: static; }
  .footer-grid { grid-template-columns: 1fr 1fr; }
  .footer-brand { grid-column: span 2; }
  .geo-stack { max-width: 220px; }
}
@media (max-width: 600px) {
  .logo { font-size: 1.3rem; }
  .pains, .solutions, .steps, .benefits.four, .calc-results { grid-template-columns: minmax(0, 1fr); }
  .mess { height: 300px; }
  .mess span { font-size: .75rem; }
  .solution.featured { padding: 24px; grid-template-columns: minmax(0, 1fr); }
  .solution.featured .mark, .solution.featured .tag, .solution.featured h3, .solution.featured > p, .solution.featured .chips, .solution.featured .more { grid-column: 1; grid-row: auto; }
  .solution-hero-grid { grid-template-columns: minmax(0, 1fr); }
  .solution-hero-grid .mark { display: none; }
  .form-inline { grid-template-columns: minmax(0, 1fr); }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; animation: none !important; }
  .js .rise { opacity: 1; transform: none; }
  html { scroll-behavior: auto; }
}

/* ---------- interactive layer ---------- */
/* a soft glow that follows the cursor across cards */
.glow { position: relative; isolation: isolate; }
.glow::after { content: ""; position: absolute; inset: 0; border-radius: inherit; pointer-events: none; z-index: -1; opacity: 0; transition: opacity .35s;
  background: radial-gradient(420px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 195, 125, .13), rgba(20, 163, 154, .07) 35%, transparent 60%); }
.glow:hover::after { opacity: 1; }
.solution.featured.glow::after { background: radial-gradient(520px circle at var(--mx, 50%) var(--my, 50%), rgba(25, 195, 125, .22), transparent 55%); }
.tilt { transform-style: preserve-3d; will-change: transform; transition: transform .5s var(--ease), border-color .25s; }
.tilt:hover { transition: transform .12s linear, border-color .25s; }
/* headings that decode from scrambled characters */
[data-decode] .scramble { color: var(--green-ink); }
.cta [data-decode] .scramble { color: var(--green); }
/* demo + diagram accents */
.cta .eyebrow { color: var(--green); }
.cta .eyebrow::before { color: var(--teal-bright); }
@media (prefers-reduced-motion: reduce) {
  .glow::after { display: none; }
  .tilt { transform: none !important; }
}

.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.chips { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips li { font: 500 .74rem/1 var(--mono); letter-spacing: .02em; color: var(--ink-2); border: 1px solid var(--line); background: var(--white); border-radius: 999px; padding: 6px 10px; }
.solution.featured .chips li { background: transparent; border-color: #2f373b; color: #c7cfd3; }

/* ---------- problem / fix switch ---------- */
.fix-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px 40px; flex-wrap: wrap; margin-bottom: 56px; }
.fix-head .section-head { margin-bottom: 0; }
.fix-switch { position: relative; display: inline-grid; grid-template-columns: 1fr 1fr; border: 1px solid var(--line); background: var(--paper); border-radius: 999px; padding: 4px; margin: 0; min-width: 0; }
.fix-switch input { position: absolute; opacity: 0; pointer-events: none; }
.fix-switch label { position: relative; z-index: 1; padding: 11px 22px; font: 500 .8rem/1 var(--mono); letter-spacing: .08em; text-transform: uppercase; text-align: center; cursor: pointer; color: var(--muted); transition: color .3s; }
.fix-switch input:checked + label { color: var(--white); }
.fix-switch input:focus-visible + label { outline: 2px solid var(--teal); outline-offset: 2px; border-radius: 999px; }
.fix-knob { position: absolute; top: 4px; bottom: 4px; left: 4px; width: calc(50% - 4px); border-radius: 999px; background: var(--ink); transition: transform .45s var(--ease), background .45s; }
#mode-connected:checked ~ .fix-knob { transform: translateX(100%); background: var(--teal); }
.pain { grid-template-areas: "art" "face"; }
.pain-art { grid-area: art; }
.pain-face { grid-area: face; display: grid; gap: 8px; align-content: start; transition: opacity .45s var(--ease), transform .45s var(--ease), visibility .45s; }
.pain-after { opacity: 0; visibility: hidden; transform: translateY(10px); }
.pain-after h3 { border-top-color: var(--teal-bright); }
.tick { width: 16px; height: 16px; border-radius: 50%; background: var(--green); flex: none; position: relative; }
.tick::after { content: ""; position: absolute; left: 5px; top: 3px; width: 4px; height: 7px; border: solid var(--white); border-width: 0 2px 2px 0; transform: rotate(45deg); }
.fix:has(#mode-connected:checked) .pain-today { opacity: 0; visibility: hidden; transform: translateY(-10px); }
.fix:has(#mode-connected:checked) .pain-after { opacity: 1; visibility: visible; transform: none; }
.fix-strip { display: grid; margin-top: 56px; border-radius: var(--radius); overflow: hidden; }
.fix-strip > div { grid-area: 1 / 1; padding: 28px; display: grid; gap: 18px; align-content: center; transition: opacity .5s var(--ease), visibility .5s; }
.strip-today { background: var(--paper); }
.strip-after { background: var(--ink); color: var(--white); opacity: 0; visibility: hidden; }
.strip-after > .muted { color: #aab4b9; }
.fix:has(#mode-connected:checked) .strip-today { opacity: 0; visibility: hidden; }
.fix:has(#mode-connected:checked) .strip-after { opacity: 1; visibility: visible; }
.fix-strip .mess { height: 128px; }
.flow-h { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 20px; position: relative; }
.flow-h::before { content: ""; position: absolute; left: 8px; right: 8px; top: 7px; height: 2px; background: linear-gradient(90deg, var(--teal-bright), var(--blue), var(--green)); transform-origin: left; transform: scaleX(0); transition: transform 1s var(--ease) .15s; }
.fix:has(#mode-connected:checked) .flow-h::before { transform: none; }
.flow-h li { position: relative; padding-top: 30px; display: grid; gap: 2px; }
.flow-h li::before { content: ""; position: absolute; left: 0; top: 0; width: 16px; height: 16px; border-radius: 50%; background: var(--ink); border: 2px solid var(--teal-bright); }
.flow-h li:last-child::before { background: var(--green); border-color: var(--green); box-shadow: 0 0 0 5px rgba(25, 195, 125, .2); }
.flow-h b { font-weight: 600; }
.flow-h span { color: #aab4b9; font-size: .9rem; }

/* ---------- compact calculator ---------- */
.calc { grid-template-columns: minmax(0, .8fr) minmax(0, 1.2fr); gap: 48px; align-items: center; }
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 28px; }
.presets button { font: 500 .78rem/1 var(--mono); letter-spacing: .04em; text-transform: uppercase; padding: 10px 14px; border-radius: 999px; border: 1px solid var(--line); background: var(--white); color: var(--ink-2); cursor: pointer; transition: border-color .2s, background .2s, color .2s; }
.presets button:hover { border-color: var(--teal); }
.presets button[aria-pressed="true"] { background: var(--ink); border-color: var(--ink); color: var(--white); }
.calc-card { background: var(--white); padding: 28px; gap: 20px; }
.calc-inputs { gap: 16px; }
.calc-row { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 6px 12px; align-items: baseline; }
.calc-row label { font-weight: 500; font-size: .95rem; }
.calc-row input { grid-column: 1 / -1; }
.calc-row output { font-weight: 650; font-variant-numeric: tabular-nums; color: var(--teal); }
.calc-results div { padding: 14px; }
.calc-results b { font-size: clamp(1.5rem, 2.6vw, 2rem); }

/* ---------- how it works (3 steps) ---------- */
.steps-3 h3 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: clamp(1.5rem, 2.4vw, 1.9rem); line-height: 1; }
.how-more { margin-top: 40px; }

@media (max-width: 860px) {
  .flow-h { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); }
  .flow-h::before { display: none; }
}
@media (max-width: 600px) {
  .fix-strip .mess { height: 180px; }
  .flow-h { grid-template-columns: minmax(0, 1fr); }
  .fix-switch label { padding: 10px 16px; }
}

/* ---------- homepage: playground teaser ---------- */
.pg-teaser { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: clamp(32px, 5vw, 72px); align-items: center; }
.pg-teaser .section-head { margin-bottom: 28px; }
.pg-teaser-mods { list-style: none; margin: 0 0 32px; padding: 0; }
.pg-teaser-mods li { display: grid; grid-template-columns: 30px minmax(0, 1fr); gap: 14px; align-items: center; padding: 11px 0; border-top: 1px solid var(--line); }
.pg-teaser-mods li:last-child { border-bottom: 1px solid var(--line); }
.pg-teaser-mods svg { width: 22px; height: 22px; color: var(--teal); }
.pg-teaser-mods b { font-weight: 650; margin-right: 8px; }
.pg-teaser-mods span { color: var(--muted); font-size: .95rem; }
.pg-shot { position: relative; display: block; text-decoration: none; color: inherit; background: var(--paper); border: 1px solid var(--line); border-radius: 20px; overflow: hidden; box-shadow: 0 40px 80px -55px rgba(14, 17, 19, .45); transition: border-color .3s; }
.pg-shot:hover { border-color: var(--teal-bright); }
.pg-shot-top { display: flex; align-items: center; gap: 10px; padding: 11px 14px; background: var(--white); border-bottom: 1px solid var(--line); font: .74rem var(--mono); color: var(--muted); }
.pg-shot-top i { width: 22px; height: 22px; border-radius: 7px; background: var(--teal); }
.pg-shot-top em { margin-left: auto; font-style: normal; color: var(--teal); background: var(--teal-50); border-radius: 99px; padding: 3px 9px; }
.pg-shot-body { display: grid; grid-template-columns: 128px minmax(0, 1fr); }
.pg-shot-side { padding: 14px 10px; display: grid; gap: 4px; align-content: start; }
.pg-shot-side span { display: flex; align-items: center; gap: 8px; font-size: .74rem; font-weight: 600; padding: 7px 8px; border-radius: 9px; color: var(--ink-2); }
.pg-shot-side span i { width: 16px; height: 16px; border-radius: 5px; background: var(--white); flex: none; }
.pg-shot-side span.on { background: var(--white); }
.pg-shot-side span.on i { background: var(--teal); }
.pg-shot-main { padding: 16px 16px 72px; border-left: 1px solid var(--line); display: grid; gap: 10px; align-content: start; }
.pg-shot-h { display: block; font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 1.35rem; line-height: 1; }
.pg-shot-kpis { display: grid; grid-template-columns: 1.3fr 1fr 1fr; gap: 8px; }
.pg-shot-kpis > span { background: var(--white); border-radius: 11px; padding: 10px; display: grid; gap: 2px; }
.pg-shot-kpis > span:first-child { background: var(--ink); color: var(--white); }
.pg-shot-kpis > span > span { font-size: .64rem; color: var(--muted); }
.pg-shot-kpis > span:first-child span { color: #aab4b9; }
.pg-shot-kpis b { font-family: var(--display); font-variation-settings: "wdth" 78; font-weight: 750; font-size: 1.2rem; }
.pg-shot-kpis em { font-style: normal; font-size: .62rem; color: var(--green-ink); font-weight: 600; }
.pg-shot-kpis > span:first-child em { color: var(--green); }
.pg-shot-chart { display: block; background: var(--white); border-radius: 11px; padding: 10px 10px 6px; }
.pg-shot-chart svg { display: block; width: 100%; height: auto; }
.pg-shot-line { fill: none; stroke: var(--teal); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.pg-shot-prev { fill: none; stroke: #b7c0c5; stroke-width: 1.5; stroke-dasharray: 4 4; }
.pg-shot-area { fill: var(--teal-bright); opacity: .09; }
.pg-shot-rows { display: block; background: var(--white); border-radius: 11px; padding: 4px 10px; }
.pg-shot-rows > span { display: flex; justify-content: space-between; align-items: center; gap: 8px; font-size: .7rem; padding: 6px 0; border-top: 1px solid var(--paper); }
.pg-shot-rows > span:first-child { border-top: 0; }
.pg-shot-rows em { font-style: normal; font-weight: 600; color: var(--teal); background: var(--teal-50); border-radius: 99px; padding: 2px 8px; }
.pg-shot-rows em.b { color: var(--blue); background: var(--blue-50); }
.pg-shot-cta { position: absolute; right: 16px; bottom: 16px; display: inline-flex; align-items: center; gap: 8px; background: var(--ink); color: var(--white); font-weight: 600; font-size: .85rem; padding: 10px 14px; border-radius: 999px; box-shadow: 0 12px 30px -12px rgba(14, 17, 19, .6); transition: background .2s; }
.pg-shot:hover .pg-shot-cta { background: var(--teal); }
@media (prefers-reduced-motion: no-preference) {
  .pg-shot-line { stroke-dasharray: 600; stroke-dashoffset: 600; animation: shot-draw 2.2s .4s var(--ease) forwards; }
  .pg-shot-side span.on i { animation: shot-pulse 2.4s ease-in-out infinite; }
}
@keyframes shot-draw { to { stroke-dashoffset: 0; } }
@keyframes shot-pulse { 50% { box-shadow: 0 0 0 4px rgba(20, 163, 154, .2); } }
@media (max-width: 960px) { .pg-teaser { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 520px) {
  .pg-shot-body { grid-template-columns: minmax(0, 1fr); }
  .pg-shot-side { display: none; }
  .pg-shot-main { border-left: 0; padding-bottom: 16px; }
  .pg-shot-cta { position: static; margin: 0 16px 16px; justify-content: center; }
}

/* ---------- MAC MEDIA HQ (private admin app) ----------
   Design system. Calm by default: content sits on the paper canvas, and white
   cards are kept for things that are grouped (a list, a chart, a form).
   Type does the organising: one clear page title, short section titles,
   quiet labels. Teal marks "where you are" and primary data; blue is the
   second series. Status colours only ever mean something.             */
body.hq {
  --hq-border: #e5eaec;
  --hq-hover: #eef3f3;
  --hq-radius: 14px;
  --hq-gap: 44px;
  background: var(--paper);
  font-feature-settings: "tnum" 0;
}
.hq-shell { display: grid; grid-template-columns: 236px minmax(0, 1fr); min-height: 100vh; }
.hq-side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 26px; padding: 22px 12px 18px; background: var(--white); border-right: 1px solid var(--hq-border); }
.hq-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; padding: 0 10px; }
.hq-brand .logo-word { font-size: 1.08rem; }
.hq-tag { font: 500 .64rem var(--mono); letter-spacing: .08em; color: var(--teal); background: var(--teal-50); padding: 3px 7px; border-radius: 5px; }
.hq-nav ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 1px; }
.hq-nav a { position: relative; display: flex; align-items: center; gap: 11px; padding: 8px 10px; border-radius: 8px; text-decoration: none; color: var(--muted); font-size: .9rem; font-weight: 500; transition: background .15s, color .15s; }
.hq-nav a:hover { background: var(--hq-hover); color: var(--ink); }
.hq-nav a[aria-current="page"] { background: var(--teal-50); color: var(--teal); font-weight: 600; }
.hq-icon { flex: none; }
.hq-side-foot { margin-top: auto; padding: 14px 10px 0; border-top: 1px solid var(--hq-border); display: grid; gap: 8px; font-size: .8rem; }
.hq-user { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-side-links { display: flex; gap: 14px; align-items: center; }
.hq-side-links a, .hq-link-button { color: var(--ink-2); text-decoration: none; font: inherit; background: none; border: 0; padding: 0; cursor: pointer; }
.hq-side-links a:hover, .hq-link-button:hover { color: var(--teal); }

.hq-main { padding: 36px clamp(20px, 4vw, 56px) 96px; max-width: 1200px; width: 100%; }
.hq-head { display: flex; justify-content: space-between; align-items: flex-end; flex-wrap: wrap; gap: 16px 24px; margin-bottom: 30px; }
.hq-head h1 { font-family: var(--display); font-variation-settings: "wdth" 88; font-weight: 700; font-size: clamp(1.7rem, 2.6vw, 2.15rem); line-height: 1.1; letter-spacing: -.018em; text-transform: none; }
.hq-eyebrow { font: 500 .7rem var(--mono); letter-spacing: .09em; text-transform: uppercase; color: var(--teal); margin-bottom: 8px; }
.hq-head-lede { margin: 6px 0 0; color: var(--muted); font-size: .98rem; }
.hq-head-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.hq-main > .flash { margin-bottom: 18px; }

/* ---- sections: a title row and content, no box of their own ---- */
.hq-sec + .hq-sec, .hq-sec + .hq-disclose.is-section, .hq-disclose.is-section + .hq-disclose.is-section { margin-top: var(--hq-gap); }
.hq-sec-head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; margin-bottom: 12px; }
.hq-sec-head h2 { font-size: 1.02rem; font-weight: 650; letter-spacing: -.005em; margin: 0; display: flex; align-items: center; gap: 8px; }
.hq-mini-title { font-size: .78rem; font-weight: 600; letter-spacing: .02em; color: var(--muted); margin: 0 0 10px; }
.hq-mini-title:not(:first-child) { margin-top: 26px; }
.hq-mini-title .hq-quiet { font-weight: 400; font-size: inherit; letter-spacing: 0; }
.hq-split { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr); gap: 36px; align-items: start; margin-top: var(--hq-gap); }
.hq-stack { display: grid; gap: var(--hq-gap); align-content: start; }
.hq-stack > .hq-sec + .hq-sec { margin-top: 0; }
.hq-cols { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 32px; }
.hq-cols.is-ruled > * + * { border-left: 1px solid var(--hq-border); padding-left: 32px; }

/* ---- cards: only for grouped things ---- */
.hq-card { background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); padding: 20px 22px; }
.hq-card.is-list { padding: 4px 6px; }
.hq-card.is-chart { padding: 18px 22px 16px; }
.hq-card.is-link { display: block; text-decoration: none; color: inherit; transition: border-color .2s, box-shadow .2s; }
.hq-card.is-link:hover { border-color: #cfdcdc; box-shadow: 0 6px 20px -12px rgba(14, 17, 19, .25); }
.hq-sec > .hq-card + .hq-card, .hq-sec > .hq-figures + .hq-card { margin-top: 14px; }

/* Older pages still use panels: same look as cards. */
.hq-panel { background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); padding: 20px 22px; }
.hq-panel.is-flat { padding-block: 2px; }
.hq-main > .hq-panel + .hq-panel { margin-top: 18px; }
.hq-panel h2 { font-size: .98rem; font-weight: 650; margin: 0 0 14px; }
.hq-panel h2:not(:first-child) { margin-top: 26px; }
.hq-panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.hq-panel-head h2 { margin: 0; }
.hq-grid { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; align-items: start; }
.hq-col { display: grid; gap: 18px; }

.hq-more { font-size: .84rem; font-weight: 600; color: var(--teal); text-decoration: none; white-space: nowrap; }
.hq-more:hover { color: var(--ink); }
.hq-space-sm { display: inline-block; margin-top: 10px; }
.hq-quiet { color: var(--muted); font-size: .92rem; }
.hq-fine { margin: 12px 0 0; color: var(--muted); font-size: .8rem; line-height: 1.5; max-width: 70ch; }
.hq-fine b { color: var(--ink-2); }
.hq-lede { font-size: 1.05rem; line-height: 1.55; color: var(--ink-2); max-width: 60ch; margin-bottom: 8px; }
.hq-bullets { margin: 0; padding-left: 1.2em; color: var(--ink-2); display: grid; gap: 6px; font-size: .9rem; }
.hq-count { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 6px; border-radius: 10px; background: var(--hq-hover); color: var(--muted); font-size: .72rem; font-weight: 600; font-variant-numeric: tabular-nums; }
.hq-tabs a[aria-current="page"] .hq-count { background: rgba(255, 255, 255, .18); color: var(--white); }

/* ---- empty states: small and inside the section they belong to ---- */
.hq-inline-empty { margin: 0; padding: 14px 16px; border-radius: 10px; background: rgba(255, 255, 255, .6); border: 1px dashed var(--hq-border); color: var(--muted); font-size: .88rem; line-height: 1.5; }
.hq-inline-empty a { color: var(--teal); font-weight: 600; }
.hq-card .hq-inline-empty, .hq-panel .hq-inline-empty { background: var(--paper); border: 0; }
.hq-caught-up { margin: 0; display: flex; align-items: center; gap: 10px; padding: 14px 16px; border-radius: 10px; background: var(--ok-50); color: var(--ok); font-size: .9rem; font-weight: 500; }
.hq-caught-up span { display: grid; place-items: center; width: 22px; height: 22px; border-radius: 50%; background: var(--ok); color: var(--white); font-size: .75rem; }
.hq-empty { border: 1px dashed var(--hq-border); border-radius: 10px; padding: 16px 18px; display: grid; gap: 4px; }
.hq-empty-title { font-weight: 600; color: var(--ink-2); font-size: .95rem; }
.hq-empty-body { color: var(--muted); font-size: .88rem; max-width: 56ch; }
.hq-empty-action { margin-top: 4px; font-size: .88rem; }

.hq-pill { display: inline-flex; align-items: center; gap: 6px; justify-self: start; font-size: .72rem; font-weight: 600; padding: 3px 9px; border-radius: 999px; text-decoration: none; white-space: nowrap; }
.hq-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; opacity: .7; }
.hq-pill-off { background: var(--hq-hover); color: var(--muted); }
a.hq-pill-off:hover { color: var(--ink); }
.hq-pill-on { background: var(--ok-50); color: var(--ok); }

/* ---- disclosure: secondary information, one click away ---- */
.hq-disclose { margin-top: 12px; }
.hq-disclose > summary { list-style: none; display: inline-flex; align-items: center; gap: 6px; cursor: pointer; font-size: .84rem; font-weight: 600; color: var(--muted); padding: 4px 0; border-radius: 6px; }
.hq-disclose > summary::-webkit-details-marker { display: none; }
.hq-disclose > summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); margin-right: 2px; }
.hq-disclose[open] > summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.hq-disclose > summary:hover { color: var(--ink); }
.hq-disclose[open] > summary { margin-bottom: 14px; }
.hq-disclose.is-in-card { margin: 0; padding: 4px 12px 8px; border-top: 1px solid var(--hq-border); }
.hq-disclose.is-in-card[open] > summary { margin-bottom: 4px; }
.hq-disclose.is-section { border-top: 1px solid var(--hq-border); padding-top: 16px; }
.hq-disclose.is-section > summary { font-size: .98rem; font-weight: 650; color: var(--ink); }

/* ---- the number strip at the top of a page ---- */
.hq-stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); overflow: hidden; }
.hq-stat { position: relative; display: grid; align-content: start; gap: 6px; padding: 18px 20px 16px; text-decoration: none; color: inherit; transition: background .15s; min-height: 112px; }
.hq-stat + .hq-stat { border-left: 1px solid var(--hq-border); }
.hq-stat:hover { background: #fafcfc; }
.hq-stat:hover .hq-stat-label { color: var(--teal); }
.hq-stat-label { font-size: .8rem; font-weight: 500; color: var(--muted); transition: color .15s; }
.hq-stat-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.hq-stat-value { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 650; font-size: 2rem; line-height: 1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.hq-stat.is-quiet .hq-stat-value { color: #b9c3c7; }
.hq-stat-sub { font-size: .8rem; color: var(--muted); }
.hq-spark { position: absolute; right: 18px; top: 18px; width: 72px; height: 24px; overflow: visible; }
.hq-spark path { fill: none; stroke: var(--teal); stroke-width: 1.6; stroke-linecap: round; vector-effect: non-scaling-stroke; opacity: .7; }

.hq-delta { display: inline-flex; align-items: center; gap: 2px; padding: 2px 7px; border-radius: 999px; font-size: .72rem; font-weight: 650; font-variant-numeric: tabular-nums; white-space: nowrap; line-height: 1.4; }
.hq-delta.is-up { background: var(--ok-50); color: var(--ok); }
.hq-delta.is-down { background: #fbeceb; color: var(--danger); }
.hq-delta.is-flat, .hq-delta.is-new { background: var(--hq-hover); color: var(--muted); }

/* ---- action rows (attention list) ---- */
.hq-items { list-style: none; margin: 0; padding: 0; }
.hq-items li + li .hq-item { border-top: 1px solid var(--hq-border); }
.hq-item { display: flex; align-items: center; gap: 12px; padding: 12px 10px; text-decoration: none; color: inherit; border-radius: 10px; transition: background .15s; }
.hq-items li + li .hq-item:hover, .hq-item:hover { background: var(--hq-hover); border-top-color: transparent; }
.hq-item-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; background: var(--teal); }
.hq-item-dot.is-inquiry { background: var(--blue); }
.hq-item-dot.is-follow_up { background: #7a4fd1; }
.hq-item-dot.is-deadline, .hq-item-dot.is-milestone { background: var(--warn); }
.hq-item-dot.is-meeting { background: var(--green-ink); }
.hq-item-dot.is-calendar_error { background: var(--danger); }
.hq-item-main { flex: 1; min-width: 0; display: grid; gap: 1px; }
.hq-item-title { font-size: .93rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-item-detail { font-size: .8rem; color: var(--muted); }
.hq-flag { flex: none; font-size: .7rem; font-weight: 650; padding: 2px 8px; border-radius: 999px; background: #fbeceb; color: var(--danger); }
.hq-flag.is-today { background: var(--teal-50); color: var(--teal); }
.hq-chev { flex: none; color: #b9c3c7; transition: transform .2s var(--ease), color .15s; }
.hq-item:hover .hq-chev, .hq-event:hover .hq-chev { color: var(--teal); transform: translateX(2px); }

/* ---- schedule preview ---- */
.hq-events { list-style: none; margin: 0; padding: 0; display: grid; gap: 4px; }
.hq-event { display: grid; grid-template-columns: 64px 3px minmax(0, 1fr) auto; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; text-decoration: none; color: inherit; transition: background .15s; }
.hq-event:hover { background: var(--white); }
.hq-event time { font-size: .8rem; color: var(--muted); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-cat { align-self: stretch; border-radius: 2px; background: var(--faint); min-height: 28px; }
.hq-cat.is-meeting { background: var(--teal); }
.hq-cat.is-personal { background: #7a4fd1; }
.hq-cat.is-block { background: repeating-linear-gradient(180deg, #b9c3c7 0 3px, transparent 3px 6px); }
.hq-cat.is-event { background: var(--blue); }
.hq-event-main { min-width: 0; display: grid; gap: 1px; }
.hq-event-title { font-size: .92rem; font-weight: 550; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-event-sub { font-size: .78rem; color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-events .is-next .hq-event { background: var(--white); border: 1px solid var(--hq-border); }
.hq-events .is-next time { color: var(--teal); font-weight: 650; }
.hq-events .is-declined .hq-event-title { text-decoration: line-through; color: var(--faint); }

/* ---- tasks ---- */
.hq-tasks { list-style: none; margin: 0; padding: 0; }
.hq-task { display: flex; align-items: flex-start; gap: 12px; padding: 11px 0; border-bottom: 1px solid var(--hq-border); }
.hq-task:last-child { border-bottom: 0; }
.hq-check-form { margin: 0; }
.hq-check { width: 20px; height: 20px; margin-top: 1px; padding: 0; display: grid; place-items: center; border: 1.5px solid #c3ccd0; border-radius: 6px; background: var(--white); color: transparent; cursor: pointer; transition: border-color .15s, background .15s, color .15s, transform .15s; }
.hq-check:hover { border-color: var(--teal); color: var(--teal); }
.hq-check:active { transform: scale(.9); }
.is-done .hq-check { background: var(--teal); border-color: var(--teal); color: var(--white); }
.hq-task-body { flex: 1; min-width: 0; display: grid; gap: 3px; }
.hq-task-title { font-size: .93rem; overflow-wrap: anywhere; }
.is-done .hq-task-title { color: var(--faint); text-decoration: line-through; }
.hq-task-meta { display: flex; flex-wrap: wrap; gap: 4px 12px; font-size: .77rem; color: var(--muted); }
.hq-task-meta:empty { display: none; }
.hq-task-meta a { color: var(--muted); }
.hq-task-meta a:hover { color: var(--teal); }
.hq-due.is-late { color: var(--danger); font-weight: 600; }
.hq-due.is-today { color: var(--teal); font-weight: 600; }
.hq-prio { color: var(--warn); font-weight: 600; }
.hq-task-delete { font-size: .77rem; color: var(--faint); text-decoration: none; opacity: 0; transition: opacity .15s; }
.hq-task:hover .hq-task-delete, .hq-task-delete:focus-visible { opacity: 1; }
.hq-task-delete:hover { color: var(--danger); }
@media (hover: none) { .hq-task-delete { opacity: 1; } }
.hq-sec > .hq-tasks { background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); padding: 2px 18px; }
.hq-sec > p.hq-quiet { margin: 0 0 4px; }

.hq-quick-add { display: flex; gap: 8px; margin-top: 12px; }
.hq-quick-add input, .hq-quick-add select { padding: 9px 12px; font-size: .9rem; }
.hq-quick-add input[name="title"] { flex: 1; min-width: 0; }
.hq-quick-add input[type="date"], .hq-quick-add select, .hq-quick-add input[name="category"] { width: auto; flex: none; }
.hq-quick-add input[name="category"] { width: 140px; }
.hq-quick-add.is-full { flex-wrap: wrap; margin: 0 0 22px; padding: 10px; background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); }

/* ---- tabs: pills for filters, a segmented control for ranges ---- */
.hq-tabs { display: flex; gap: 2px; margin: 0 0 14px; overflow-x: auto; scrollbar-width: none; }
.hq-tabs a { padding: 6px 12px; border-radius: 999px; text-decoration: none; font-size: .86rem; font-weight: 500; color: var(--muted); white-space: nowrap; transition: background .15s, color .15s; }
.hq-tabs a:hover { color: var(--ink); background: var(--hq-hover); }
.hq-tabs a[aria-current="page"] { background: var(--ink); color: var(--white); }
.hq-seg { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--white); border: 1px solid var(--hq-border); }
.hq-seg > a, .hq-seg summary { display: block; padding: 6px 12px; border-radius: 7px; text-decoration: none; font-size: .84rem; font-weight: 550; color: var(--muted); white-space: nowrap; cursor: pointer; transition: background .15s, color .15s; }
.hq-seg > a:hover, .hq-seg summary:hover { color: var(--ink); background: var(--hq-hover); }
.hq-seg [aria-current="page"] { background: var(--ink); color: var(--white); }
.hq-seg [aria-current="page"]:hover { background: var(--ink); color: var(--white); }
.hq-pop { position: relative; }
.hq-pop summary { list-style: none; }
.hq-pop summary::-webkit-details-marker { display: none; }
.hq-pop-body { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; display: grid; gap: 10px; min-width: 220px; padding: 14px; background: var(--white); border: 1px solid var(--hq-border); border-radius: 12px; box-shadow: 0 16px 40px -18px rgba(14, 17, 19, .35); }
.hq-pop-body label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); }
.hq-pop-body input { padding: 8px 10px; font-size: .9rem; }

.hq-rows { list-style: none; margin: 0; padding: 0; }
.hq-row { display: flex; justify-content: space-between; gap: 16px; padding: 13px 0; border-bottom: 1px solid var(--hq-border); text-decoration: none; }
.hq-rows li:last-child .hq-row { border-bottom: 0; }
.hq-row:hover b { color: var(--teal); }
.hq-row-main { min-width: 0; }
.hq-row-sub { display: block; margin-top: 3px; color: var(--muted); font-size: .86rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-row-side { flex: none; display: grid; justify-items: end; align-content: start; gap: 4px; }

.hq-integrations { list-style: none; margin: 0; padding: 0; }
.hq-integrations li { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-top: 1px solid var(--hq-border); }
.hq-integrations li:first-child { border-top: 0; }
.hq-integration-main { display: grid; gap: 3px; font-size: .9rem; }
.hq-links { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.hq-links li { display: grid; gap: 2px; }
.hq-links a { font-weight: 600; color: var(--teal); text-decoration: none; }
.hq-links a:hover { color: var(--ink); }
.hq-links span { color: var(--muted); font-size: .86rem; }

/* older admin pages (portfolio, solutions, audit log) inside HQ */
.hq .admin { padding: 26px clamp(20px, 3vw, 30px) 32px; background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); }
.hq .admin h1 { font-family: var(--display); font-variation-settings: "wdth" 88; font-weight: 700; font-size: clamp(1.6rem, 2.4vw, 2rem); line-height: 1.1; letter-spacing: -.015em; text-transform: none; }

/* ---- motion: a gentle settle on load, never on every interaction ---- */
@media (prefers-reduced-motion: no-preference) {
  .hq-stats, .hq-sec, .hq-panel, .hq-split { animation: hq-in .45s var(--ease) both; }
  .hq-split, .hq-sec:nth-of-type(2) { animation-delay: .05s; }
  .hq-sec:nth-of-type(3) { animation-delay: .1s; }
  .hq-stack .hq-sec { animation: none; }
}
@keyframes hq-in { from { opacity: 0; transform: translateY(5px); } }

@media (max-width: 1100px) {
  .hq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-stat:nth-child(3) { border-left: 0; }
  .hq-stat:nth-child(n + 3) { border-top: 1px solid var(--hq-border); }
  .hq-split { grid-template-columns: minmax(0, 1fr); }
}
@media (max-width: 900px) {
  .hq-shell { grid-template-columns: minmax(0, 1fr); }
  .hq-side { z-index: 20; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; gap: 10px 16px; padding: 12px 16px 0; border-right: 0; border-bottom: 1px solid var(--hq-border); }
  .hq-side-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .hq-user { display: none; }
  .hq-nav { order: 3; width: calc(100% + 32px); margin: 0 -16px; overflow-x: auto; scrollbar-width: none; }
  .hq-nav ul { display: flex; gap: 2px; padding: 0 12px 8px; }
  .hq-nav a { white-space: nowrap; padding: 8px 10px; }
  .hq-grid { grid-template-columns: minmax(0, 1fr); }
  .hq-col { display: contents; }
  .hq-main { padding-top: 24px; }
  .hq-cols { grid-template-columns: minmax(0, 1fr); gap: 0; }
  .hq-cols.is-ruled > * + * { border-left: 0; padding-left: 0; border-top: 1px solid var(--hq-border); padding-top: 22px; margin-top: 22px; }
  body.hq { --hq-gap: 36px; }
}
@media (max-width: 560px) {
  .hq-stat { padding: 14px 14px 12px; min-height: 0; }
  .hq-stat-value { font-size: 1.65rem; }
  .hq-spark { display: none; }
  .hq-panel, .hq-card { padding: 16px; }
  .hq-card.is-list { padding: 2px 4px; }
  .hq-quick-add:not(.is-full) { flex-wrap: wrap; }
  .hq-quick-add input[name="title"] { flex-basis: 100%; }
  .hq-row { flex-direction: column; gap: 6px; }
  .hq-row-side { justify-items: start; grid-auto-flow: column; align-items: center; }
  .hq-integrations li { flex-direction: column; gap: 8px; }
  .hq-event { grid-template-columns: 58px 3px minmax(0, 1fr) auto; gap: 10px; padding-inline: 6px; }
  .hq-event time { font-size: .74rem; }
  .hq-pop-body { min-width: min(240px, calc(100vw - 32px)); }
}

/* ---------- HQ: charts ---------- */
.hq-area-chart { margin: 0; --c: var(--teal); --c-soft: rgba(10, 121, 115, .16); }
.hq-area-chart.is-blue { --c: var(--blue); --c-soft: rgba(36, 99, 196, .14); }
.hq-plot { position: relative; height: 240px; margin: 14px 0 0 34px; }
.hq-area-chart.is-compact .hq-plot { height: 92px; margin: 12px 0 0; }
.hq-plot svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.hq-stop-top { stop-color: var(--c); stop-opacity: .2; }
.hq-stop-bottom { stop-color: var(--c); stop-opacity: 0; }
.hq-stroke { fill: none; stroke: var(--c); stroke-width: 2.25; stroke-linejoin: round; stroke-linecap: round; vector-effect: non-scaling-stroke; }
.hq-prev { fill: none; stroke: #b4bfc3; stroke-width: 1.5; stroke-dasharray: 4 4; vector-effect: non-scaling-stroke; }
.hq-gridline { position: absolute; left: 0; right: 0; border-top: 1px solid #edf1f2; }
.hq-gridline span { position: absolute; right: calc(100% + 10px); top: -.55em; font-size: .7rem; color: var(--faint); font-variant-numeric: tabular-nums; }
.hq-plot::after { content: ""; position: absolute; left: 0; right: 0; bottom: 0; border-top: 1px solid var(--hq-border); }
.hq-hits { position: absolute; inset: 0; }
.hq-hit { position: absolute; top: 0; bottom: 0; transform: translateX(-50%); cursor: crosshair; }
.hq-hit::before { content: ""; position: absolute; left: 50%; top: 0; bottom: 0; border-left: 1px solid var(--hq-border); opacity: 0; transition: opacity .12s; }
.hq-hit i { position: absolute; left: 50%; width: 9px; height: 9px; margin: 0 0 -4.5px -4.5px; border-radius: 50%; background: var(--white); border: 2px solid var(--c); opacity: 0; transform: scale(.6); transition: opacity .12s, transform .12s; }
.hq-hit:hover::before, .hq-hit:hover i { opacity: 1; transform: none; }
.hq-area-chart.is-compact .hq-hit i { width: 7px; height: 7px; margin: 0 0 -3.5px -3.5px; }
.hq-xaxis { position: relative; height: 22px; margin-left: 34px; }
.hq-xaxis span { position: absolute; top: 7px; transform: translateX(-50%); font-size: .7rem; color: var(--faint); white-space: nowrap; }
.hq-xaxis span.is-first { transform: none; }
.hq-xaxis span.is-last { transform: translateX(-100%); }
@media (prefers-reduced-motion: no-preference) {
  .hq-stroke { stroke-dasharray: 1; stroke-dashoffset: 1; animation: hq-draw 1s var(--ease) .1s forwards; }
  .hq-fill { animation: hq-fade .8s ease .35s both; }
}
@keyframes hq-draw { to { stroke-dashoffset: 0; } }
@keyframes hq-fade { from { opacity: 0; } }
.hq-tip { position: absolute; z-index: 50; pointer-events: none; max-width: 300px; padding: 7px 10px; border-radius: 8px; background: var(--ink); color: var(--white); font-size: .78rem; line-height: 1.4; box-shadow: 0 8px 24px -10px rgba(14, 17, 19, .5); }

.hq-legend { display: inline-flex; align-items: center; gap: 6px; font-size: .76rem; color: var(--muted); }
.hq-legend i { display: inline-block; width: 14px; height: 0; border-top: 2.25px solid var(--teal); border-radius: 2px; }
.hq-legend i.is-prev { border-top: 1.5px dashed #b4bfc3; margin-left: 10px; }
.hq-mini-head { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .86rem; color: var(--muted); }
.hq-mini-head b { font-size: 1.05rem; color: var(--ink); font-weight: 650; margin-right: 2px; }
.hq-card.is-chart .hq-legend { margin-top: 8px; }

/* Metric tabs above the main chart: the numbers are the switch. */
.hq-mtabs { display: flex; flex-wrap: wrap; gap: 4px; margin: -6px -10px 0; }
.hq-mtab { display: grid; gap: 4px; padding: 8px 12px 10px; border-radius: 10px; text-decoration: none; color: inherit; position: relative; transition: background .15s; }
a.hq-mtab:hover { background: var(--hq-hover); }
.hq-mtab[aria-current="true"]::after { content: ""; position: absolute; left: 12px; right: 12px; bottom: 2px; height: 2px; border-radius: 2px; background: var(--teal); }
.hq-mtab[aria-current="true"] .hq-stat-label { color: var(--ink); font-weight: 600; }
.hq-mtab .hq-stat-value { font-size: 1.75rem; }
.hq-mtab.is-static .hq-stat-value { color: var(--ink-2); }
.hq-chart-foot { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 8px 20px; margin-top: 6px; padding-left: 34px; }
.hq-inline-stats { display: flex; flex-wrap: wrap; gap: 4px 16px; font-size: .78rem; color: var(--muted); }
.hq-inline-stats b { color: var(--ink-2); font-weight: 600; font-variant-numeric: tabular-nums; }

/* Ranked lists: a soft bar behind each row. */
.hq-rank ol { list-style: none; margin: 0; padding: 0; display: grid; gap: 3px; }
.hq-rank li { position: relative; display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 6px 10px; border-radius: 7px; font-size: .87rem; overflow: hidden; }
.hq-rank-bar { position: absolute; inset: 0 auto 0 0; width: var(--w); background: #e9f4f3; border-radius: 7px; z-index: 0; transform-origin: left; }
.hq-rank.is-blue .hq-rank-bar { background: #edf2fb; }
.hq-rank li:hover .hq-rank-bar { filter: brightness(.97); }
.hq-rank-label, .hq-rank-value { position: relative; z-index: 1; }
.hq-rank-label { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--ink-2); }
.hq-rank-label.is-mono { font-family: var(--mono); font-size: .8rem; }
.hq-rank-value { flex: none; font-weight: 650; font-variant-numeric: tabular-nums; }
.hq-rank-value small { font-weight: 400; color: var(--muted); margin-right: 8px; font-size: .76rem; }
.hq-rank .hq-disclose { margin-top: 6px; }
.hq-rank .hq-disclose > summary { font-size: .78rem; }
@media (prefers-reduced-motion: no-preference) {
  .hq-rank-bar { animation: hq-grow .7s var(--ease) both; }
}
@keyframes hq-grow { from { transform: scaleX(0); } }

/* Labelled figures (aggregate counts). */
.hq-figures { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin: 0; background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); overflow: hidden; }
.hq-figure { padding: 16px 18px; display: grid; gap: 4px; align-content: start; }
.hq-figure + .hq-figure { border-left: 1px solid var(--hq-border); }
.hq-figure dt { font-size: .8rem; color: var(--muted); font-weight: 500; }
.hq-figure dd { margin: 0; display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.hq-figure-value { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 650; font-size: 1.6rem; line-height: 1.05; letter-spacing: -.015em; font-variant-numeric: tabular-nums; }
.hq-figure dd.hq-figure-note { font-size: .76rem; color: var(--muted); }

/* Funnel: steps in order, side by side. */
.hq-funnel { list-style: none; margin: 4px 0 0; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }
.hq-funnel li { display: grid; gap: 6px; align-content: end; }
.hq-funnel-rate { font-size: .74rem; color: var(--teal); font-weight: 600; }
.hq-funnel-value { font-family: var(--display); font-variation-settings: "wdth" 80; font-weight: 650; font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.hq-funnel-label { font-size: .82rem; color: var(--muted); min-height: 2.4em; }
.hq-funnel-track { display: block; height: 8px; border-radius: 4px; background: var(--paper); overflow: hidden; }
.hq-funnel-track span { display: block; height: 100%; border-radius: 4px; background: var(--teal); }
.hq-funnel li:nth-child(2) .hq-funnel-track span { background: #3a9a94; }
.hq-funnel li:nth-child(3) .hq-funnel-track span { background: var(--green-ink); }

/* Range control and filters. */
.hq-range { display: flex; align-items: center; }
.hq-filters { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; margin-bottom: 14px; }
.hq-filters label { display: grid; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.hq-filters select { width: auto; min-width: 150px; padding: 8px 10px; font-size: .88rem; }
.hq-nowrap { white-space: nowrap; }
.hq-table { font-size: .86rem; }
.hq-table code { font-size: .8rem; }

@media (max-width: 900px) {
  .hq-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-figure:nth-child(3) { border-left: 0; }
  .hq-figure:nth-child(n + 3) { border-top: 1px solid var(--hq-border); }
}
@media (max-width: 560px) {
  .hq-plot { height: 180px; margin-left: 28px; }
  .hq-xaxis, .hq-chart-foot { margin-left: 28px; padding-left: 0; }
  .hq-xaxis span.is-minor { display: none; }
  .hq-chart-foot { margin-left: 0; }
  .hq-funnel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .hq-funnel-label { min-height: 0; }
  .hq-figure-value { font-size: 1.35rem; }
  .hq-mtab .hq-stat-value { font-size: 1.45rem; }
}

/* ---------- HQ: schedule ---------- */
.hq-head-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.hq-cal-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 16px; }
.hq-cal-bar .hq-tabs { margin: 0; }
.hq-cal-nav { display: flex; align-items: center; gap: 6px; }
.hq-cal-arrow { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 8px; text-decoration: none; font-size: 1.4rem; line-height: 1; color: var(--ink-2); }
.hq-cal-arrow:hover { background: var(--white); color: var(--teal); }
.hq-cal-title { font-size: 1.05rem; font-weight: 600; margin-left: 8px; }
.hq-cal-foot { margin-top: 12px; }

/* event colors: meetings by type, blocks by kind */
.hq-ev { --c: var(--teal); --bg: var(--teal-50); }
.hq-ev.is-google_meet { --c: var(--teal); --bg: var(--teal-50); }
.hq-ev.is-zoom { --c: var(--blue); --bg: var(--blue-50); }
.hq-ev.is-phone { --c: #7a4fd1; --bg: #f1ecfb; }
.hq-ev.is-in_person { --c: var(--green-ink); --bg: var(--green-50); }
.hq-ev.is-other { --c: var(--ink-2); --bg: #eef1f2; }
/* Category wins over meeting type: teal is a client meeting, blue any other event, purple personal. */
.hq-ev.is-cat-meeting { --c: var(--teal); --bg: var(--teal-50); }
.hq-ev.is-cat-event { --c: var(--blue); --bg: var(--blue-50); }
.hq-ev.is-cat-personal { --c: #7a4fd1; --bg: #f1ecfb; }
.hq-ev.is-block { --c: var(--muted); --bg: repeating-linear-gradient(135deg, #f1f3f4 0 6px, #e8ecee 6px 12px); }
.hq-ev.is-vacation, .hq-ev.is-out_of_office { --c: var(--warn); --bg: repeating-linear-gradient(135deg, var(--warn-50) 0 6px, #f6e6c2 6px 12px); }
.hq-ev.is-declined { opacity: .45; }
.hq-ev.is-declined b { text-decoration: line-through; }

.hq-week { padding: 0; overflow: hidden; }
.hq-week-head, .hq-week-allday { display: grid; grid-template-columns: 56px repeat(var(--days), minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.hq-week-day { display: grid; justify-items: center; gap: 2px; padding: 12px 4px 10px; text-decoration: none; color: var(--muted); }
.hq-week-day small { font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; }
.hq-week-day b { font-family: var(--display); font-variation-settings: "wdth" 72; font-size: 1.5rem; line-height: 1; color: var(--ink); width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; }
.hq-week-day.is-today b { background: var(--teal); color: var(--white); }
.hq-week-day:hover b { color: var(--teal); }
.hq-week-day.is-today:hover b { color: var(--white); }
.hq-week-allday { padding: 6px 0; }
.hq-week-allday > div { display: grid; gap: 3px; padding: 0 3px; align-content: start; }
.hq-week-gutter { font-size: .68rem; color: var(--faint); text-align: right; padding: 4px 8px 0 0; }
.hq-week-body { position: relative; display: grid; grid-template-columns: 56px repeat(var(--days), minmax(0, 1fr)); height: calc(var(--hours) * 52px); }
.hq-week-hours { display: grid; grid-template-rows: repeat(var(--hours), 1fr); }
.hq-week-hours span { font-size: .68rem; color: var(--faint); text-align: right; padding-right: 8px; transform: translateY(-.55em); }
.hq-week-hours span:first-child { visibility: hidden; }
.hq-week-col { position: relative; border-left: 1px solid var(--line); background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% calc(100% / var(--hours)); }
.hq-week-col.is-today { background-color: rgba(229, 244, 242, .35); }
.hq-week-slot { position: absolute; inset: 0; }
.hq-week-slot:hover { background: rgba(229, 244, 242, .4); }
.hq-week-col .hq-ev { position: absolute; z-index: 1; display: grid; align-content: start; gap: 1px; padding: 4px 6px; margin: 1px 2px 0; border-radius: 6px; overflow: hidden; text-decoration: none; background: var(--bg); color: var(--ink); border-left: 3px solid var(--c); font-size: .74rem; line-height: 1.25; transition: transform .15s var(--ease), box-shadow .15s; box-sizing: border-box; width: calc(var(--w, 100%) - 4px); }
.hq-week-col .hq-ev:hover { z-index: 2; box-shadow: 0 6px 16px -8px rgba(14, 17, 19, .35); }
.hq-week-col .hq-ev b { font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-week-col .hq-ev span { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-ev.is-chip { display: block; padding: 3px 7px; border-radius: 5px; background: var(--bg); color: var(--ink); border-left: 3px solid var(--c); text-decoration: none; font-size: .74rem; line-height: 1.3; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-ev.is-chip time { color: var(--muted); font-variant-numeric: tabular-nums; }
.hq-week.is-day .hq-week-col .hq-ev { font-size: .85rem; padding: 6px 10px; }
.hq-week-col .hq-ev.is-short { display: flex; align-items: center; gap: 6px; padding-top: 1px; padding-bottom: 1px; }
.hq-week-col .hq-ev.is-short b { flex: 0 1 auto; min-width: 0; }
.hq-week-col .hq-ev.is-short span { flex: 0 1 auto; min-width: 0; }
.hq-week-col .hq-ev.is-short span + span, .hq-week-col .hq-ev.is-medium span + span { display: none; }

.hq-month { padding: 0; overflow: hidden; }
.hq-month-head { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
.hq-month-head span { padding: 10px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.hq-month-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); }
.hq-month-cell { min-height: 112px; padding: 6px; display: grid; align-content: start; gap: 3px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.hq-month-cell:nth-child(7n) { border-right: 0; }
.hq-month-cell.is-out { background: #fbfcfc; }
.hq-month-cell.is-out .hq-month-date { color: var(--faint); }
.hq-month-date { justify-self: start; width: 26px; height: 26px; display: grid; place-items: center; border-radius: 50%; font-size: .82rem; font-weight: 600; text-decoration: none; }
.hq-month-cell.is-today .hq-month-date { background: var(--teal); color: var(--white); }
.hq-month-more { font-size: .72rem; color: var(--muted); text-decoration: none; padding-left: 4px; }
.hq-month-more:hover { color: var(--teal); }

.hq-agenda-day { padding: 14px 0 4px; }
.hq-agenda-day + .hq-agenda-day { border-top: 1px solid var(--line); }
.hq-agenda-day h3 { font-size: .8rem; font-weight: 600; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 2px; }
.hq-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--c); margin-right: 8px; vertical-align: 1px; }

.hq-rsvp { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.hq-rsvp li { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.hq-rsvp-accepted { background: var(--ok-50); color: var(--ok); }
.hq-rsvp-declined { background: var(--danger-50); color: var(--danger); }
.hq-rsvp-tentative { background: var(--warn-50); color: var(--warn); }
.hq-rsvp-needsAction { background: var(--paper); color: var(--muted); }
.hq-pill-warn { background: var(--warn-50); color: var(--warn); }
.hq-prewrap { white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }
.hq-connect .hq-bullets { margin: 18px 0 22px; }
.hq-integration-side { display: grid; justify-items: end; gap: 4px; text-align: right; max-width: 280px; }

.hq-today { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hq-today a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; }
.hq-today li:last-child a { border-bottom: 0; }
.hq-today time { font-size: .85rem; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; }
.hq-today span { display: grid; gap: 2px; min-width: 0; }
.hq-today small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-today .is-declined { opacity: .5; }

@media (max-width: 900px) {
  .hq-week:not(.is-day) { overflow-x: auto; }
  .hq-week:not(.is-day) .hq-week-head, .hq-week:not(.is-day) .hq-week-allday, .hq-week:not(.is-day) .hq-week-body { min-width: 760px; }
  .hq-month-cell { min-height: 84px; padding: 4px; }
  .hq-month .hq-ev.is-chip time { display: none; }
}
@media (max-width: 560px) {
  .hq-month .hq-ev.is-chip { font-size: 0; padding: 0; height: 6px; border-left-width: 0; background: var(--c); }
  .hq-integration-side { justify-items: start; text-align: left; }
}

/* ---------- HQ: prospects ---------- */
.hq-tabs .hq-count { margin-left: 6px; }
.hq-search input { width: 260px; padding: 8px 12px; font-size: .9rem; border-radius: 999px; }
.hq-prospects { list-style: none; margin: 0; padding: 0; }
.hq-prospects li { display: flex; align-items: center; gap: 14px; border-bottom: 1px solid var(--line); }
.hq-prospects li:last-child { border-bottom: 0; }
.hq-check-spacer { width: 20px; flex: none; }
.hq-prospect { flex: 1; min-width: 0; display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; text-decoration: none; }
.hq-prospect:hover b { color: var(--teal); }
.hq-prospect-main { min-width: 0; }
.hq-prospect-contact { display: grid; gap: 2px; font-size: .88rem; min-width: 0; }
.hq-prospect-contact span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-prospect-side { display: grid; justify-items: end; gap: 5px; }
.hq-pill.hq-stage-new { background: var(--blue-50); color: var(--blue); }
.hq-pill.hq-stage-contacted, .hq-pill.hq-stage-meeting { background: var(--teal-50); color: var(--teal); }
.hq-pill.hq-stage-follow_up, .hq-pill.hq-stage-proposal { background: var(--warn-50); color: var(--warn); }
.hq-pill.hq-stage-won { background: var(--ok-50); color: var(--ok); }
.hq-pill.hq-stage-not_interested { background: var(--paper); color: var(--muted); }
.hq-space { margin-top: 16px; }
.hq-hypothesis { margin-top: 16px; padding: 12px 14px; border-left: 3px solid var(--warn); background: var(--warn-50); border-radius: 0 8px 8px 0; display: grid; gap: 4px; }
.hq-summary { list-style: none; display: inline-flex; align-items: center; gap: 8px; cursor: pointer; font-weight: 600; font-size: .95rem; }
.hq-summary::-webkit-details-marker { display: none; }
.hq-summary::before { content: ""; width: 7px; height: 7px; border-right: 1.6px solid currentColor; border-bottom: 1.6px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); }
details[open] > .hq-summary::before { transform: rotate(45deg) translate(-1px, -1px); }
.hq-check-label { align-self: end; padding-bottom: 12px; }
.hq-timeline { list-style: none; margin: 0; padding: 0 0 0 18px; display: grid; gap: 16px; border-left: 2px solid var(--line); }
.hq-timeline li { position: relative; display: grid; gap: 2px; font-size: .92rem; }
.hq-timeline li::before { content: ""; position: absolute; left: -24px; top: 5px; width: 10px; height: 10px; border-radius: 50%; background: var(--teal); box-shadow: 0 0 0 3px var(--white); }
.hq-timeline li.is-status::before { background: var(--faint); }
.hq-timeline li.is-meeting::before { background: var(--blue); }
.hq-timeline li.is-note::before { background: var(--warn); }
.hq-timeline-when { font-size: .76rem; color: var(--muted); }
@media (max-width: 900px) {
  .hq-search input { width: 100%; }
  .hq-search { flex: 1 1 100%; }
  .hq-prospect { grid-template-columns: minmax(0, 1fr) auto; }
  .hq-prospect-contact { display: none; }
}

/* ---------- HQ: business search ---------- */
.hq-find { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1.2fr) minmax(0, 1fr) minmax(0, .9fr) minmax(0, .7fr) auto; gap: 12px; align-items: end; }
.hq-find label { display: grid; gap: 6px; font-size: .85rem; font-weight: 600; }
.hq-find input, .hq-find select { padding: 9px 12px; font-size: .92rem; font-weight: 400; }
.hq-found { list-style: none; margin: 0; padding: 0; }
.hq-found li { display: flex; justify-content: space-between; align-items: center; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); }
.hq-found li:last-child { border-bottom: 0; }
.hq-found-main { min-width: 0; display: grid; gap: 3px; }
.hq-found-meta { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; font-size: .82rem; color: var(--muted); }
.hq-found-meta a { color: var(--teal); }
.hq-attrib { padding: 12px 0 16px; border-top: 1px solid var(--line); }
.hq-attrib a { color: inherit; }
@media (max-width: 1100px) {
  .hq-find { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-find .btn { justify-self: start; }
}
@media (max-width: 560px) {
  .hq-find { grid-template-columns: minmax(0, 1fr); }
  .hq-found li { flex-direction: column; align-items: flex-start; }
}

/* ---------- HQ: communications ---------- */
.hq-pill.hq-inq-new { background: var(--blue-50); color: var(--blue); }
.hq-pill.hq-inq-in_progress { background: var(--warn-50); color: var(--warn); }
.hq-pill.hq-inq-replied { background: var(--ok-50); color: var(--ok); }
.hq-pill.hq-inq-archived { background: var(--paper); color: var(--muted); }
.hq-unread-dot { display: inline-block; width: 8px; height: 8px; margin-right: 8px; border-radius: 50%; vertical-align: 2px; background: transparent; }
.hq-inq.is-unread .hq-unread-dot { background: var(--blue); }
.hq-inq:not(.is-unread) b { font-weight: 500; }
.hq-message { margin: 0; padding: 16px 18px; border-left: 3px solid var(--teal); background: var(--paper); border-radius: 0 8px 8px 0; white-space: pre-wrap; overflow-wrap: anywhere; color: var(--ink-2); }

/* ---------- HQ: workspace (notes) ---------- */
.hq-task-actions { display: flex; gap: 12px; flex-shrink: 0; margin-top: 3px; }
.hq-task-actions .hq-task-delete:first-child:hover { color: var(--teal); }
.hq-notes { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 12px; }
.hq-notes a { height: 100%; display: grid; align-content: start; gap: 8px; padding: 14px 16px; border: 1px solid var(--line); border-radius: var(--radius); background: var(--white); text-decoration: none; color: inherit; transition: border-color .15s, box-shadow .15s; }
.hq-notes a:hover { border-color: var(--teal); box-shadow: 0 4px 14px rgba(14, 17, 19, .06); }
.hq-note-head { display: flex; align-items: baseline; gap: 6px; min-width: 0; }
.hq-note-head b { overflow-wrap: anywhere; }
.hq-pin { color: var(--teal); font-size: .7rem; }
.hq-note-preview { font-size: .86rem; color: var(--muted); display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; overflow-wrap: anywhere; }
.hq-note-meta { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .74rem; color: var(--faint); }
.hq-note-body { overflow-wrap: anywhere; line-height: 1.6; }
.hq-note-body > :first-child { margin-top: 0; }
.hq-note-body > :last-child { margin-bottom: 0; }
.hq-note-body h2 { font-size: 1.15rem; margin: 1.2em 0 .4em; }
.hq-note-body h3 { font-size: 1rem; margin: 1.1em 0 .3em; }
.hq-note-body p, .hq-note-body ul, .hq-note-body ol { margin: 0 0 .8em; }
.hq-note-body ul, .hq-note-body ol { padding-left: 1.3em; }
.hq-note-body code { font-family: var(--mono); font-size: .86em; padding: 1px 5px; border-radius: 4px; background: var(--paper); }
.hq-note-body a { color: var(--teal); }
.hq-note-editor { font-family: var(--mono); font-size: .88rem; line-height: 1.55; min-height: 280px; }
.hq-line-picks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 6px; max-height: 360px; overflow-y: auto; }
.hq-line-picks label.check { font-weight: 400; font-size: .9rem; align-items: flex-start; overflow-wrap: anywhere; }

/* ---------- HQ: clients & projects ---------- */
.hq-tabs-main { border-bottom: 1px solid var(--line); padding-bottom: 12px; margin-bottom: 16px; }
.hq-projects { list-style: none; margin: 0; padding: 0; }
.hq-projects li { border-bottom: 1px solid var(--line); }
.hq-projects li:last-child { border-bottom: 0; }
.hq-projects a { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) auto; gap: 16px; align-items: center; padding: 14px 0; text-decoration: none; color: inherit; }
.hq-projects a:hover b { color: var(--teal); }
.hq-projects.is-compact a { grid-template-columns: minmax(0, 1fr) auto; padding: 10px 0; }
.hq-project-main { min-width: 0; display: grid; gap: 2px; }
.hq-project-next { min-width: 0; font-size: .88rem; overflow-wrap: anywhere; }
.hq-project-side { display: grid; justify-items: end; gap: 5px; }
.hq-progress { display: inline-flex; align-items: center; gap: 8px; color: var(--muted); }
.hq-progress-bar { width: 72px; height: 6px; border-radius: 3px; background: var(--line); overflow: hidden; }
.hq-progress-bar span { display: block; height: 100%; background: var(--teal); border-radius: 3px; }
.hq-pill.hq-proj-discovery { background: var(--blue-50); color: var(--blue); }
.hq-pill.hq-proj-proposal { background: var(--warn-50); color: var(--warn); }
.hq-pill.hq-proj-in_progress { background: var(--teal-50); color: var(--teal); }
.hq-pill.hq-proj-client_review { background: #f1ecfb; color: #6b3fc4; }
.hq-pill.hq-proj-completed { background: var(--ok-50); color: var(--ok); }
.hq-pill.hq-proj-on_hold { background: var(--paper); color: var(--muted); }
.hq-stages { display: flex; flex-wrap: wrap; gap: 6px; margin: 14px 0 18px; }
.hq-stages button { padding: 7px 14px; border: 1px solid var(--line); border-radius: 999px; background: var(--white); color: var(--muted); font: inherit; font-size: .85rem; font-weight: 500; cursor: pointer; }
.hq-stages button:hover { border-color: var(--teal); color: var(--ink); }
.hq-stages button.is-current { background: var(--ink); border-color: var(--ink); color: var(--white); }
.hq-kind { font-weight: 600; }
.hq-kind.is-deliverable { color: #6b3fc4; }
.hq-kind.is-milestone { color: var(--teal); }
@media (max-width: 900px) {
  .hq-projects a { grid-template-columns: minmax(0, 1fr) auto; }
  .hq-project-next { display: none; }
}

/* ---------- HQ: detail pages ---------- */
/* "← Prospects" style back links sit just under the title, quietly. */
.hq-head + p.small, .hq-head + .flash + p.small { margin: -18px 0 20px; font-size: .84rem; color: var(--muted); }
:is(.hq-head + p.small, .hq-head + .flash + p.small) a { color: var(--muted); text-decoration: none; }
:is(.hq-head + p.small, .hq-head + .flash + p.small) a:hover { color: var(--teal); }
.hq-split.is-detail { margin-top: 0; gap: 28px; }
.hq-split.is-detail .hq-stack { gap: 32px; }
.hq-split.is-detail .hq-sec .hq-timeline { margin-left: 4px; }
.hq-sec > .hq-links { padding: 2px 0 0; }
.hq-sec > .hq-quick-add { margin-top: 10px; }
.hq-sec .hq-tasks + .hq-quick-add { margin-top: 12px; }
.hq-card.hq-integrations li { padding: 14px 16px; }
.hq-card.hq-integrations li + li { border-top: 1px solid var(--hq-border); }
.hq-integration-main { min-width: 0; }
.hq-integration-main .hq-disclose { margin-top: 2px; }
.hq-integration-main .hq-disclose > summary { font-size: .76rem; font-weight: 500; padding: 0; }
.hq-integration-main .hq-disclose[open] > summary { margin-bottom: 0; }
.hq-integration-main .hq-fine { margin-top: 4px; }
.hq-integration-side { flex: none; display: grid; justify-items: end; gap: 6px; text-align: right; max-width: 260px; }
.hq-integration-side .hq-fine { margin: 0; }
.hq-sec .facts { margin: 0; }
.hq-note-line { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 14px; }
@media (max-width: 560px) { .hq-integration-side { justify-items: start; text-align: left; } }

/* Secondary groups on detail pages: a title and content, no card. */
.hq-panel.is-plain { background: none; border: 0; padding: 4px 2px; border-radius: 0; }
.hq-col > .hq-panel.is-plain + .hq-panel.is-plain, .hq-col > .hq-panel + .hq-panel.is-plain { margin-top: 10px; }
.hq-panel.is-plain > .hq-tasks { background: var(--white); border: 1px solid var(--hq-border); border-radius: var(--hq-radius); padding: 2px 16px; }
.hq-main > .hq-panel.is-plain + .hq-panel, .hq-main > .hq-panel + .hq-panel.is-plain { margin-top: 28px; }
.hq-cal-key { display: flex; flex-wrap: wrap; gap: 4px 18px; margin: -4px 0 14px; font-size: .78rem; color: var(--muted); }
.hq-cal-key .hq-ev { background: none; border: 0; padding: 0; position: static; display: inline-flex; align-items: center; color: inherit; }
.hq-cal-key .hq-dot { margin-right: 6px; }
.hq-grid.is-even { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 18px; }
.hq-main > .hq-grid + .hq-panel, .hq-main > .hq-panel + .hq-grid, .hq-main > .hq-grid + .hq-grid, .hq-main > .hq-split + .hq-panel { margin-top: 28px; }
@media (max-width: 900px) { .hq-grid.is-even { grid-template-columns: minmax(0, 1fr); } }

/* ---------- HQ: classic look ----------
   The original HQ visuals (condensed caps titles, borderless white cards with
   their headings inside, big numbers, pill tabs, thin bars) on the new layout. */
@media (min-width: 901px) {
  .hq-shell { grid-template-columns: 248px minmax(0, 1fr); }
  .hq-side { gap: 28px; padding: 24px 14px 20px; border-right-color: var(--line); }
  .hq-nav a { gap: 12px; padding: 9px 10px; font-size: .93rem; }
  .hq-main { padding: 40px clamp(20px, 4vw, 56px) 88px; }
}
.hq-nav a[aria-current="page"] { font-weight: 500; }
.hq-main { max-width: 1240px; }
.hq-head { margin-bottom: 28px; }
.hq-head h1, .hq .admin h1 { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: clamp(2.1rem, 3.6vw, 2.9rem); line-height: .95; letter-spacing: -.005em; }
.hq .admin h1 { font-size: clamp(1.9rem, 3vw, 2.5rem); }
.hq-eyebrow { font-size: .74rem; letter-spacing: .08em; margin-bottom: 10px; }
.hq-head-lede { margin-top: 10px; }
.hq-head + p.small, .hq-head + .flash + p.small { margin: -14px 0 14px; font-size: .9rem; color: var(--ink); }
:is(.hq-head + p.small, .hq-head + .flash + p.small) a { color: var(--ink); text-decoration: underline; }

/* White cards, no borders. */
.hq-card, .hq-panel, .hq .admin, .hq-sec > .hq-tasks, .hq-panel.is-plain > .hq-tasks, .hq-quick-add.is-full { border-color: transparent; border-radius: 12px; }
.hq-card.is-link:hover { border-color: var(--line); box-shadow: none; }
.hq-panel { padding: 22px 24px; }
.hq-panel h2, .hq-sec-head h2 { font-size: 1rem; font-weight: 600; letter-spacing: 0; }
.hq-panel.is-plain { background: var(--white); border-radius: 12px; padding: 22px 24px; }
.hq-col > .hq-panel.is-plain + .hq-panel.is-plain, .hq-col > .hq-panel + .hq-panel.is-plain { margin-top: 0; }
.hq-panel.is-plain > .hq-tasks { padding: 0; border: 0; }

/* Sections become cards with their heading inside (Performance keeps its three question headings outside). */
.hq-sec:not(.is-group) { background: var(--white); border-radius: 12px; padding: 22px 24px; }
.hq-sec:not(.is-group) .hq-sec-head { margin-bottom: 14px; }
.hq-sec:not(.is-group) .hq-card { background: none; border: 0; padding: 0; border-radius: 0; }
.hq-sec:not(.is-group) .hq-card.is-list { margin: 0 -8px; }
.hq-sec:not(.is-group) > .hq-tasks { background: none; padding: 0; }
.hq-sec:not(.is-group) .hq-disclose.is-in-card { padding-inline: 8px; }
.hq-sec:not(.is-group) .hq-inline-empty { background: var(--paper); border: 0; }
.hq-sec:not(.is-group) .hq-caught-up { background: var(--ok-50); }
.hq-split, .hq-stack { gap: 20px; }
.hq-split { margin-top: 32px; }
.hq-split.is-detail { gap: 20px; }
.hq-split.is-detail .hq-stack { gap: 20px; }
.hq-sec + .hq-sec:not(.is-group) { margin-top: 20px; }
.hq-sec.is-group + .hq-sec.is-group { margin-top: 40px; }

/* Number cards: separate, big condensed numbers, a small lift on hover. */
.hq-stats, .hq-figures { gap: 14px; background: none; border: 0; border-radius: 0; overflow: visible; }
.hq-stat, .hq-figure { background: var(--white); border: 1px solid transparent; border-radius: 12px; padding: 20px 20px 18px; transition: border-color .2s, transform .3s var(--ease); }
.hq-stat + .hq-stat, .hq-figure + .hq-figure, .hq-stat:nth-child(n + 3), .hq-figure:nth-child(n + 3) { border-left: 1px solid transparent; border-top: 1px solid transparent; }
.hq-stat:hover { background: var(--white); border-color: var(--line); transform: translateY(-2px); }
.hq-stat:hover .hq-stat-label { color: var(--muted); }
.hq-stat-label, .hq-figure dt { font-size: .82rem; }
.hq-stat-value, .hq-figure-value { font-variation-settings: "wdth" 72; font-weight: 700; font-size: 2.7rem; letter-spacing: -.01em; }
.hq-stat.is-quiet .hq-stat-value { color: var(--line); }
.hq-stat-sub { font-size: .82rem; }
.hq-mtab .hq-stat-value { font-size: 2.2rem; }
.hq-funnel-value { font-variation-settings: "wdth" 72; font-weight: 700; }

/* Changes as coloured text with ▲ ▼, no chips. */
.hq-delta { padding: 0; background: none !important; border-radius: 0; font-size: .78rem; font-weight: 600; gap: 3px; }
.hq-delta.is-flat, .hq-delta.is-new { font-weight: 400; }

/* Pill tabs everywhere, including the date range. */
.hq-tabs { gap: 4px; }
.hq-tabs a { padding: 7px 14px; font-size: .88rem; }
.hq-tabs a:hover { background: none; }
.hq-seg { gap: 4px; padding: 0; border: 0; border-radius: 0; background: none; }
.hq-seg > a, .hq-seg summary { padding: 7px 14px; border-radius: 999px; font-size: .88rem; font-weight: 500; }
.hq-seg > a:hover, .hq-seg summary:hover { background: none; }

/* Bar lists: label and number, a thin bar underneath. */
.hq-rank ol { gap: 12px; }
.hq-rank li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; padding: 0; border-radius: 0; overflow: visible; font-size: .88rem; }
.hq-rank li::after { content: ""; grid-area: 2 / 1 / 3 / 3; height: 6px; border-radius: 3px; background: var(--paper); }
.hq-rank-bar { position: relative; inset: auto; z-index: 1; grid-area: 2 / 1 / 3 / 3; height: 6px; border-radius: 3px; background: var(--teal); width: var(--w); }
.hq-rank.is-blue .hq-rank-bar { background: var(--blue); }
.hq-rank li:hover .hq-rank-bar { filter: none; }
.hq-rank-value { font-weight: 600; }
.hq-rank-value small { margin: 0; }
.hq-rank-value small { order: 2; }
.hq-rank-value { display: inline-flex; flex-direction: row-reverse; align-items: baseline; gap: 8px; }
.hq-rank-label.is-mono { font-family: var(--body); font-size: .88rem; }

/* Interests: two white cards instead of ruled columns. */
.hq-cols.is-ruled { gap: 20px; }
.hq-cols.is-ruled > * { background: var(--white); border-radius: 12px; padding: 22px 24px; }
.hq-cols.is-ruled > * + * { border-left: 0; padding-left: 24px; }
.hq-sec.is-group > .hq-disclose .hq-cols > * { background: var(--white); border-radius: 12px; padding: 22px 24px; }

/* Funnel: stacked bars, one step per row. */
.hq-funnel { grid-template-columns: minmax(0, 1fr); gap: 14px; }
.hq-funnel li { grid-template-columns: minmax(0, 1fr) auto; gap: 5px 12px; align-content: start; }
.hq-funnel-label { grid-area: 1 / 1; min-height: 0; font-size: .9rem; color: var(--ink); }
.hq-funnel-value { grid-area: 1 / 2; font-size: 1rem; font-family: var(--body); font-variation-settings: normal; font-weight: 600; }
.hq-funnel-track { grid-area: 2 / 1 / 3 / 3; height: 10px; border-radius: 5px; }
.hq-funnel-rate { grid-area: 3 / 1 / 4 / 3; color: var(--muted); font-weight: 400; }

/* Chart: a solid soft fill under the line, like before. */
.hq-stop-top, .hq-stop-bottom { stop-color: var(--c); stop-opacity: .12; }
.hq-gridline { border-top-color: var(--line); }
.hq-stroke { stroke-width: 2.5; }

@media (max-width: 1100px) {
  .hq-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 900px) {
  .hq-figures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .hq-cols.is-ruled > * + * { margin-top: 0; padding-top: 22px; border-top: 0; }
  .hq-cols { gap: 20px; }
}
@media (max-width: 560px) {
  .hq-stat, .hq-figure { padding: 16px; }
  .hq-stat-value, .hq-figure-value { font-size: 2.2rem; }
  .hq-sec:not(.is-group), .hq-panel, .hq-panel.is-plain, .hq-cols.is-ruled > * { padding: 18px; }
  .hq-head { flex-wrap: wrap; }
}
.hq-hits { overflow: clip; overflow-clip-margin: 8px; }

/* ---------- HQ: quotes ---------- */
.hq-pill.hq-quote-draft { background: var(--paper); color: var(--muted); }
.hq-pill.hq-quote-sent { background: var(--blue-50); color: var(--blue); }
.hq-pill.hq-quote-accepted { background: var(--ok-50); color: var(--ok); }
.hq-pill.hq-quote-declined { background: #fbeceb; color: var(--danger); }
.hq-picks { list-style: none; margin: 0 0 6px; padding: 0; display: grid; gap: 2px; }
.hq-pick { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 10px 10px; border-radius: 10px; cursor: pointer; font-weight: 400; transition: background .15s; }
.hq-pick:hover { background: var(--paper); }
.hq-pick input { width: 18px; height: 18px; margin-top: 2px; accent-color: var(--teal); }
.hq-pick:has(input:checked) { background: var(--teal-50); }
.hq-pick-main { display: grid; gap: 2px; min-width: 0; }
.hq-pick-main b { font-size: .93rem; font-weight: 600; }
.hq-pick-price { font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-estimate b { font-size: 1.4rem; font-family: var(--display); font-variation-settings: "wdth" 72; font-variant-numeric: tabular-nums; }
.hq-quote-new { align-items: start; }

.hq-lines { list-style: none; margin: 0 0 8px; padding: 0; }
.hq-lines > li { border-bottom: 1px solid var(--line); padding: 12px 0 8px; }
.hq-lines > li:first-child { padding-top: 0; }
.hq-line { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; gap: 4px 16px; align-items: baseline; }
.hq-line-main { display: grid; gap: 2px; min-width: 0; }
.hq-line-qty { color: var(--muted); font-size: .84rem; white-space: nowrap; }
.hq-line-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-line-edit { margin-top: 4px; }
.hq-line-edit > summary { font-size: .78rem; font-weight: 500; padding: 0; }
.hq-line-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px; margin: 6px 0 4px; }
.hq-line-form label { display: grid; gap: 4px; font-size: .78rem; font-weight: 600; color: var(--muted); flex: 1 1 200px; }
.hq-line-form label.is-narrow { flex: 0 1 120px; }
.hq-line-form label.is-wide { flex: 1 1 100%; }
.hq-line-form input, .hq-line-form select { padding: 8px 10px; font-size: .9rem; }
.hq-danger-link { color: var(--danger); font-size: .8rem; margin-top: 4px; }
.hq-quote-summary h2 { margin-bottom: 4px; }
.hq-quote-total { margin: 0; font-family: var(--display); font-variation-settings: "wdth" 72; font-weight: 700; font-size: 2.7rem; line-height: 1; letter-spacing: -.01em; font-variant-numeric: tabular-nums; }
.hq-quote-rows { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin: 16px 0 0; padding-top: 14px; border-top: 1px solid var(--line); font-size: .92rem; }
.hq-quote-rows dt { color: var(--muted); }
.hq-quote-rows dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.hq-quote-rows .is-monthly { padding-top: 8px; border-top: 1px dashed var(--line); color: var(--teal); }
@media (min-width: 901px) { .hq-quote-side { position: sticky; top: 24px; } }

.hq-note-box { margin: 0 0 18px; padding: 12px 16px; border-left: 3px solid var(--warn); background: var(--warn-50); border-radius: 0 10px 10px 0; font-size: .88rem; color: var(--ink-2); max-width: 80ch; }
.hq-prices { list-style: none; margin: 0; padding: 0; }
.hq-prices > li { padding: 14px 0; border-bottom: 1px solid var(--line); }
.hq-prices > li:first-child { padding-top: 0; }
.hq-prices > li:last-child { border-bottom: 0; padding-bottom: 0; }
.hq-prices > li.is-off { opacity: .6; }
.hq-price-form { display: flex; flex-wrap: wrap; align-items: end; gap: 10px 12px; }
.hq-price-form label { display: grid; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.hq-price-form label.is-wide { flex: 1 1 260px; }
.hq-price-form label.is-wide input { font-weight: 600; }
.hq-price-form label.is-narrow { flex: 0 1 120px; }
.hq-price-form label.is-full { flex: 1 1 100%; order: 10; }
.hq-price-form label.check { display: flex; align-items: center; gap: 6px; padding-bottom: 10px; color: var(--ink-2); font-size: .85rem; }
.hq-price-form input { padding: 8px 10px; font-size: .9rem; }
.hq-price-actions { display: flex; align-items: center; gap: 12px; order: 11; }

/* The printable quote: a clean letter-size page. */
body.qp-body { background: var(--paper); }
.qp-tools { display: flex; justify-content: space-between; gap: 12px; max-width: 860px; margin: 24px auto 0; padding: 0 16px; }
.qp { max-width: 860px; margin: 16px auto 48px; padding: 56px 60px; background: var(--white); border-radius: 12px; color: var(--ink); font-size: .95rem; }
.qp p { margin: 0; }
.qp-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 24px; padding-bottom: 28px; border-bottom: 2px solid var(--ink); }
.qp-brand { display: flex; align-items: center; gap: 12px; }
.qp-brand .logo-word { font-size: 1.35rem; }
.qp-meta { text-align: right; color: var(--muted); font-size: .88rem; display: grid; gap: 2px; }
.qp-kind { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 2rem; line-height: 1; color: var(--ink); margin-bottom: 6px !important; }
.qp-intro { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 24px; margin: 28px 0 32px; }
.qp-intro > div { display: grid; gap: 2px; align-content: start; }
.qp-label { font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--teal); margin-bottom: 4px !important; }
.qp-strong { font-weight: 600; }
.qp-title { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 1.9rem; line-height: 1; margin: 0 0 18px; }
.qp-table { width: 100%; border-collapse: collapse; }
.qp-table th { text-align: left; font: 500 .7rem var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--muted); padding: 10px 0; border-bottom: 1px solid var(--line); }
.qp-table td { padding: 14px 0; border-bottom: 1px solid var(--line); vertical-align: top; }
.qp-table td b { display: block; font-weight: 600; }
.qp-table td span { display: block; color: var(--muted); font-size: .86rem; margin-top: 3px; max-width: 46ch; }
.qp-num { text-align: right !important; white-space: nowrap; padding-left: 16px !important; font-variant-numeric: tabular-nums; }
.qp-totals { display: flex; justify-content: flex-end; margin-top: 18px; }
.qp-totals dl { display: grid; grid-template-columns: auto auto; gap: 8px 32px; margin: 0; min-width: 300px; }
.qp-totals dt { color: var(--muted); }
.qp-totals dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.qp-totals .qp-grand { font-size: 1.15rem; color: var(--ink); font-weight: 700; padding-top: 6px; }
.qp-monthly { display: flex; justify-content: space-between; align-items: center; gap: 16px; margin-top: 28px; padding: 18px 20px; background: var(--teal-50); border-radius: 10px; }
.qp-monthly-price { font-family: var(--display); font-variation-settings: "wdth" 72; font-weight: 700; font-size: 1.8rem; color: var(--teal); }
.qp-monthly-price span { font-family: var(--body); font-size: .9rem; font-weight: 500; margin-left: 2px; }
.qp-notes { margin-top: 28px; }
.qp-foot { margin-top: 40px; padding-top: 18px; border-top: 1px solid var(--line); display: flex; justify-content: space-between; gap: 16px; flex-wrap: wrap; color: var(--muted); font-size: .82rem; }
@media (max-width: 700px) {
  .qp { padding: 28px 22px; margin-top: 12px; }
  .qp-intro { grid-template-columns: minmax(0, 1fr); gap: 16px; }
  .qp-head { flex-direction: column; }
  .qp-meta { text-align: left; }
  .qp-totals dl { min-width: 0; width: 100%; }
}
@media print {
  @page { size: letter; margin: 14mm; }
  body.qp-body { background: #fff; }
  .qp-tools { display: none; }
  .qp { margin: 0; padding: 0; max-width: none; border-radius: 0; }
  .qp-monthly { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  .qp-table tr { break-inside: avoid; }
}

/* Original Overview lists: square badges for "Needs your attention", simple rows for today. */
.hq-attention { list-style: none; margin: 0 -8px; padding: 0; display: grid; gap: 2px; }
.hq-attention a { display: flex; align-items: center; gap: 14px; padding: 9px 8px; border-radius: 8px; text-decoration: none; color: inherit; }
.hq-attention a:hover { background: var(--paper); }
.hq-attention b { flex: none; min-width: 34px; height: 34px; padding: 0 8px; display: grid; place-items: center; border-radius: 8px; background: var(--teal-50); color: var(--teal); }
.hq-attention b .hq-icon { width: 16px; height: 16px; }
.hq-attention .is-inquiry b { background: var(--blue-50); color: var(--blue); }
.hq-attention .is-overdue b, .hq-attention .is-deadline b, .hq-attention .is-milestone b { background: var(--warn-50); color: var(--warn); }
.hq-attention .is-calendar_error b { background: #fbeceb; color: var(--danger); }
.hq-att-main { display: grid; gap: 1px; min-width: 0; }
.hq-att-title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-attention small { color: var(--muted); font-size: .8rem; }
.hq-attention .is-overdue small { color: var(--warn); }
.hq-today { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.hq-today a { display: grid; grid-template-columns: 76px minmax(0, 1fr); gap: 12px; padding: 9px 0; border-bottom: 1px solid var(--line); text-decoration: none; color: inherit; }
.hq-today li:last-child a { border-bottom: 0; }
.hq-today time { font-size: .85rem; font-weight: 600; color: var(--teal); font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-today span { display: grid; gap: 2px; min-width: 0; }
.hq-today small { color: var(--muted); font-size: .8rem; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hq-today .is-declined { opacity: .5; }
.hq-cat-dot { display: inline-block; width: 7px; height: 7px; border-radius: 50%; margin-right: 6px; vertical-align: 1px; background: var(--blue); }
.hq-cat-dot.is-meeting { background: var(--teal); }
.hq-cat-dot.is-personal { background: #7a4fd1; }
.hq-cat-dot.is-block { background: var(--faint); }

/* ---------- HQ: Quotes & Pricing ---------- */
.hq-pill.hq-quote-expired { background: var(--warn-50); color: var(--warn); }
.hq-inline-pill { margin-left: 8px; vertical-align: 1px; }
.hq-packages { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 12px; }
.hq-package { position: relative; display: grid; gap: 6px; align-content: start; padding: 16px; border: 1.5px solid var(--line); border-radius: 12px; cursor: pointer; font-weight: 400; transition: border-color .15s, background .15s; }
.hq-package:hover { border-color: #b9c9c9; }
.hq-package:has(input:checked) { border-color: var(--teal); background: var(--teal-50); }
.hq-package input { position: absolute; top: 14px; right: 14px; accent-color: var(--teal); }
.hq-package-name { font-family: var(--display); font-variation-settings: "wdth" 62; font-weight: 800; text-transform: uppercase; font-size: 1.3rem; line-height: 1; }
.hq-package-price { font-weight: 600; font-variant-numeric: tabular-nums; }
.hq-package-price small { font-weight: 400; color: var(--muted); }
.hq-package-price.is-monthly { color: var(--teal); font-size: .9rem; }
.hq-package ul { margin: 4px 0 0; padding-left: 1.1em; font-size: .82rem; color: var(--ink-2); display: grid; gap: 2px; }
.hq-package.is-custom { border-style: dashed; }
.hq-cat-group { margin-top: 10px; }
.hq-cat-group > summary { font-size: .9rem; color: var(--ink); }
.hq-pick-price small { display: block; font-weight: 500; font-size: .76rem; text-align: right; }
.hq-pick-price { text-align: right; }

.hq-qlines { list-style: none; margin: 0 0 8px; padding: 0; }
.hq-qline { padding: 12px 0 8px; border-bottom: 1px solid var(--line); }
.hq-qline:first-child { padding-top: 0; }
.hq-qline-head { display: flex; justify-content: space-between; align-items: baseline; gap: 16px; }
.hq-qline-main { display: grid; gap: 4px; min-width: 0; }
.hq-qline-tags { display: flex; flex-wrap: wrap; gap: 4px 10px; font-size: .76rem; color: var(--muted); }
.hq-qline-total { font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-qline-edit { margin-top: 4px; }
.hq-qline-edit > summary { font-size: .78rem; font-weight: 500; padding: 0; }
.hq-tag-ok { color: var(--ok); font-weight: 600; }
.hq-tag-warn { color: var(--warn); font-weight: 600; margin-left: 6px; font-size: .76rem; }
.hq-feas.is-feasible { color: var(--ok); font-weight: 600; }
.hq-feas.is-not_reviewed, .hq-feas.is-investigate { color: var(--warn); font-weight: 600; }
.hq-feas.is-unsupported { color: var(--danger); font-weight: 600; }
.hq-line-form label.is-tiny { flex: 0 1 80px; }
.hq-line-form label.is-wide-half { flex: 1 1 260px; }

.hq-quote-total.is-monthly { font-size: 2rem; color: var(--teal); }
.hq-quote-total small { font-family: var(--body); font-size: .9rem; font-weight: 500; margin-left: 2px; }
.hq-calc { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; margin: 14px 0 0; padding-top: 12px; border-top: 1px solid var(--line); font-size: .88rem; }
.hq-calc dt { color: var(--ink-2); min-width: 0; }
.hq-calc dt small { display: block; color: var(--muted); font-size: .76rem; margin-top: 1px; }
.hq-calc dd { margin: 0; text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hq-calc .is-total { padding-top: 8px; border-top: 1px dashed var(--line); font-weight: 700; color: var(--ink); }
.hq-calc.is-plain { border-top: 0; padding-top: 0; margin-top: 8px; }
.hq-calc dd.is-bad { color: var(--danger); }
.hq-calc dd.is-good { color: var(--ok); }
.hq-internal { border: 1px dashed var(--line) !important; background: #fbfcfc !important; }
.hq-risks { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 6px; }
.hq-risks li { position: relative; padding: 8px 10px 8px 28px; border-radius: 8px; background: var(--warn-50); color: #6a4500; font-size: .84rem; }
.hq-risks li::before { content: "!"; position: absolute; left: 10px; top: 8px; font-weight: 800; }
.hq-proposal-form label { gap: 6px; }
.hq-proposal-form textarea { font-size: .92rem; line-height: 1.5; }
.hq-complexity { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.hq-complexity fieldset { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px 12px; margin: 0; display: grid; gap: 8px; }
.hq-complexity legend { font-weight: 600; font-size: .85rem; padding: 0 4px; }
.hq-complexity label { display: grid; gap: 4px; font-size: .76rem; font-weight: 600; color: var(--muted); }
.hq-complexity input { padding: 7px 9px; font-size: .9rem; }
.hq-included { border: 1px solid var(--line); border-radius: 10px; padding: 10px 12px; margin: 0; display: flex; flex-wrap: wrap; gap: 6px 16px; }
.hq-included legend { font-size: .76rem; font-weight: 600; color: var(--muted); padding: 0 4px; }
.hq-included label.check { padding: 0; font-size: .85rem; }
.hq-price-form .hq-disclose.is-full { flex: 1 1 100%; order: 9; margin-top: 0; }
.hq-price-form .hq-disclose.is-full > summary { font-size: .78rem; font-weight: 500; }
.hq-prices details > summary b { font-weight: 700; }
@media (max-width: 900px) { .hq-complexity { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Proposal (printable) */
.qp-section { margin-top: 26px; }
.qp-section > p:not(.qp-label) + p { margin-top: 8px !important; }
.qp-two { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 32px; }
.qp-list { margin: 0; padding-left: 1.1em; display: grid; gap: 4px; }
.qp-provisional { margin: -6px 0 6px !important; padding: 10px 14px; border-left: 3px solid var(--warn); background: var(--warn-50); border-radius: 0 8px 8px 0; font-size: .88rem; }
.qp-table.is-compact td { padding: 8px 0; }
@media (max-width: 700px) { .qp-two { grid-template-columns: minmax(0, 1fr); } }
@media print {
  .qp-section, .qp-monthly, .qp-two { break-inside: avoid; }
  .qp-provisional { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
}
