/* Goombasys site styles (v3, 7 Oct 2026). Hand-edited; shared by every page.
   Design read: services site for US/EU technical buyers, dark annotation-tool language
   set against warm Dhaka footage. One theme (dark), one accent (label teal), Geist + Geist Mono.
   Mono is reserved for annotation vernacular: class labels, field names, tags. */

:root {
  --bg: #0F1214;
  --surface: #161A1D;
  --raise: #1C2125;
  --line: #2A3136;
  --text: #ECEEEA;
  --muted: #A1AAAF;
  --accent: #5CCFC0;
  --accent-ink: #0B1715;
  --warn: #E2B04A;
  --focus: #F3D46B;

  --sans: "Geist", ui-sans-serif, system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: "Geist Mono", ui-monospace, "SFMono-Regular", Menlo, monospace;
  --bn: "Hind Siliguri", "Noto Sans Bengali", sans-serif;

  --wrap: 1240px;
  --gutter: clamp(16px, 4vw, 48px);
  --r: 4px; /* one radius for everything interactive and framed */
  color-scheme: dark;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
@media (prefers-reduced-motion: reduce) { html { scroll-behavior: auto; } }
body {
  margin: 0; background: var(--bg); color: var(--text);
  font: 400 1.0625rem/1.6 var(--sans); text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
img, video, svg { max-width: 100%; display: block; }
a { color: inherit; text-decoration-color: color-mix(in srgb, var(--text) 40%, transparent); text-underline-offset: 0.22em; transition: color .2s, text-decoration-color .2s; }
a:hover { color: var(--accent); text-decoration-color: var(--accent); }
:focus-visible { outline: 2px solid var(--focus); outline-offset: 3px; border-radius: 2px; }
.bn { font-family: var(--bn); }
.mono { font-family: var(--mono); }

[hidden] { display: none !important; }
.wrap { max-width: var(--wrap); margin: 0 auto; padding-inline: var(--gutter); }
.skip { position: absolute; left: -9999px; }
.skip:focus { left: var(--gutter); top: 12px; background: var(--text); color: var(--bg); padding: 8px 12px; z-index: 20; }

h1, h2, h3 { font-weight: 600; margin: 0; text-wrap: balance; letter-spacing: -0.02em; }
h1 { font-size: clamp(2.375rem, 4.6vw, 3.75rem); line-height: 1.04; letter-spacing: -0.035em; }
h2 { font-size: clamp(1.75rem, 3vw, 2.5rem); line-height: 1.1; letter-spacing: -0.03em; }
h3 { font-size: 1.25rem; line-height: 1.3; }
p { margin: 0 0 1em; max-width: 64ch; text-wrap: pretty; }
.lead { font-size: clamp(1.125rem, 1.6vw, 1.25rem); line-height: 1.5; color: var(--muted); max-width: 46ch; }
.muted { color: var(--muted); }
.h1line { display: block; }

/* Header */
.site-header { position: sticky; top: 0; z-index: 10; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; gap: 24px; height: 64px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 600; font-size: 1.125rem; text-decoration: none; letter-spacing: -0.02em; }
.brand:hover { color: var(--text); }
.brand svg { width: 24px; height: 24px; }
.nav { margin-left: auto; display: flex; align-items: center; gap: 4px; }
.nav a { text-decoration: none; padding: 8px 12px; font-size: 0.9375rem; color: var(--muted); }
.nav a:hover, .nav a[aria-current="page"] { color: var(--text); }
.nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--accent); }
.nav a.nav-cta { color: var(--accent); margin-left: 8px; }
.menu-btn { display: none; margin-left: auto; background: none; border: 1px solid var(--line); border-radius: var(--r); padding: 8px 12px; font: inherit; font-size: .9375rem; color: inherit; cursor: pointer; }
@media (max-width: 860px) {
  .menu-btn { display: block; }
  .nav { display: none; position: absolute; left: 0; right: 0; top: 64px; flex-direction: column; align-items: stretch; gap: 0;
         background: var(--bg); border-bottom: 1px solid var(--line); padding: 8px var(--gutter) 16px; }
  .nav.open { display: flex; }
  .nav a { padding: 12px 0; }
  .nav a.nav-cta { margin-left: 0; }
  .nav a[aria-current="page"] { box-shadow: none; color: var(--accent); }
}

/* Buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; background: var(--accent); color: var(--accent-ink); text-decoration: none; font-weight: 600;
       padding: 13px 22px; border-radius: var(--r); border: 0; font-size: 1rem; line-height: 1.2; white-space: nowrap; cursor: pointer;
       transition: transform .15s, background .2s; font-family: var(--sans); }
.btn:hover { background: color-mix(in srgb, var(--accent) 86%, white); color: var(--accent-ink); }
.btn:active { transform: translateY(1px); }
.btn.quiet { background: transparent; color: var(--text); box-shadow: inset 0 0 0 1px var(--line); }
.btn.quiet:hover { box-shadow: inset 0 0 0 1px var(--muted); color: var(--text); }
.actions { display: flex; flex-wrap: wrap; align-items: center; gap: 20px; margin-top: 32px; }

/* Annotation vocabulary: boxes, tags */
.tag { font: 500 0.75rem/1 var(--mono); background: var(--accent); color: var(--accent-ink); padding: 4px 6px; white-space: nowrap; letter-spacing: 0; }
.cls { font: 500 0.8125rem/1.2 var(--mono); color: var(--accent); }

/* Hero: headline and copy on one row, tracked drone footage full width below */
.hero { padding: clamp(32px, 5vw, 64px) 0 clamp(56px, 7vw, 96px); }
.hero-copy { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 0.75fr); gap: 24px clamp(32px, 5vw, 72px); align-items: end; margin-bottom: clamp(28px, 4vw, 48px); }
.hero h1 { font-size: clamp(2.25rem, 4.4vw, 3.75rem); }
.hero .lead { margin-bottom: 0; }
.hero .actions { margin-top: 24px; }
.footage { margin: 0; }
.footage .frame { position: relative; aspect-ratio: 16 / 9; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.footage video, .footage .frame > img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.footage .boxes { position: absolute; inset: 0; pointer-events: none; }
.footage .bx { position: absolute; left: 0; top: 0; border: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); will-change: transform; opacity: 0; transition: opacity .25s; }
.footage .bx .tag { position: absolute; left: -2px; bottom: 100%; }
.footage figcaption { font-size: .8125rem; color: var(--muted); margin-top: 10px; }
@media (max-width: 900px) {
  .hero-copy { grid-template-columns: 1fr; }
  .footage .frame { aspect-ratio: 4 / 3; }
}

/* Sections */
.section { padding: clamp(64px, 9vw, 120px) 0 clamp(72px, 10vw, 136px); border-top: 1px solid var(--line); }
.section-head { max-width: 680px; margin-bottom: clamp(32px, 4vw, 56px); }
.section-head h2 { margin-bottom: 16px; }
.section-head p { color: var(--muted); }

/* Services: two framed exhibits, each with its own real preview */
.services { display: grid; grid-template-columns: 1fr 1fr; gap: clamp(24px, 3vw, 40px); }
.svc { background: var(--surface); border-radius: var(--r); display: grid; grid-template-rows: auto 1fr; overflow: hidden; }
.svc .visual { position: relative; aspect-ratio: 3 / 2; overflow: hidden; background: #E9E3D6; }
.svc .visual svg, .svc .visual img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.svc .body { padding: clamp(24px, 3vw, 36px); display: flex; flex-direction: column; }
.svc h3 { font-size: 1.625rem; letter-spacing: -0.025em; margin: 6px 0 12px; }
.svc ul { list-style: none; padding: 0; margin: 8px 0 28px; display: grid; gap: 10px; }
.svc li { display: grid; grid-template-columns: 16px 1fr; gap: 12px; align-items: baseline; }
.svc li::before { content: ""; width: 10px; height: 10px; border: 1.5px solid var(--accent); transform: translateY(1px); }
.svc .more { margin-top: auto; font-weight: 500; }
@media (max-width: 860px) { .services { grid-template-columns: 1fr; } }

/* Document exhibit (inside AI engineering card) */
.doc-text { font-family: var(--bn); fill: #13212B; }
.ann rect.box { fill: var(--accent); fill-opacity: .14; stroke: #0E8C80; stroke-width: 2.5; }
.ann .t rect { fill: #0E8C80; }
.ann .t text { font: 600 13px var(--mono); fill: #fff; }

/* Bengali text annotation: a real inline component */
.ner { display: grid; grid-template-columns: minmax(0, 0.9fr) minmax(0, 1.1fr); gap: clamp(32px, 6vw, 96px); align-items: center; }
.ner-sample { background: var(--surface); border-radius: var(--r); padding: clamp(24px, 4vw, 48px); }
.ner-line { font: 400 clamp(1.25rem, 2.3vw, 1.75rem)/2.6 var(--bn); margin: 0 0 20px; max-width: none; }
.ent { position: relative; padding: 2px 4px; border-bottom: 2px solid var(--accent); background: color-mix(in srgb, var(--accent) 12%, transparent); white-space: nowrap; }
.ent .tag { position: absolute; left: 0; top: -1.35em; font-size: .6875rem; padding: 2px 5px; line-height: 1.1; }
.gloss { color: var(--muted); font-size: .9375rem; margin: 0; }
@media (max-width: 860px) { .ner { grid-template-columns: 1fr; } }

/* Time-zone bands, drawn from the visitor's clock */
.tz { display: grid; gap: 18px; margin-top: 8px; }
.tz-row { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; align-items: center; }
.tz-name { font-weight: 600; }
.tz-name span { display: block; font: 400 .8125rem var(--mono); color: var(--muted); }
.tz-track { position: relative; height: 34px; background: var(--surface); border-radius: var(--r); overflow: hidden; }
.tz-work { position: absolute; top: 0; bottom: 0; background: color-mix(in srgb, var(--accent) 28%, transparent); border-left: 2px solid var(--accent); }
.tz-work.reply { background: var(--accent); }
.tz-now { position: absolute; top: -4px; bottom: -4px; width: 2px; background: var(--focus); }
.tz-scale { display: grid; grid-template-columns: 180px minmax(0, 1fr); gap: 16px; font: 400 .75rem var(--mono); color: var(--muted); }
.tz-scale div { display: flex; justify-content: space-between; }
.tz-key { display: flex; flex-wrap: wrap; gap: 8px 24px; font-size: .875rem; color: var(--muted); margin-top: 20px; }
.tz-key i { display: inline-block; width: 18px; height: 10px; margin-right: 8px; vertical-align: middle; }
@media (max-width: 640px) { .tz-row, .tz-scale { grid-template-columns: 1fr; gap: 6px; } .tz-scale > span { display: none; } }

/* Engagement sequence: a real order, so it is numbered */
.seq { list-style: none; counter-reset: s; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; position: relative; }
.seq li { counter-increment: s; padding: 0 28px 0 0; position: relative; }
.seq li::before { content: counter(s); display: grid; place-items: center; width: 36px; height: 36px; border: 1.5px solid var(--accent); color: var(--accent); font: 500 .9375rem var(--mono); background: var(--bg); position: relative; z-index: 1; margin-bottom: 22px; }
.seq li::after { content: ""; position: absolute; left: 36px; right: 0; top: 18px; height: 1.5px; background: var(--line); }
.seq li:last-child::after { display: none; }
.seq h3 { font-size: 1.125rem; margin-bottom: 8px; }
.seq p { color: var(--muted); font-size: .9688rem; margin: 0; }
@media (max-width: 900px) { .seq { grid-template-columns: 1fr 1fr; row-gap: 40px; } .seq li:nth-child(2)::after { display: none; } }
@media (max-width: 520px) { .seq { grid-template-columns: 1fr; } .seq li::after { display: none; } }

/* Closing: same theme, footage under a scrim */
.closing { position: relative; padding: clamp(80px, 11vw, 160px) 0; overflow: hidden; border-top: 1px solid var(--line); }
.closing::before { content: ""; position: absolute; inset: 0; background: url("/assets/media/still-city.jpg") center 30% / cover no-repeat; opacity: .28; }
.closing::after { content: ""; position: absolute; inset: 0; background: linear-gradient(90deg, var(--bg) 25%, color-mix(in srgb, var(--bg) 40%, transparent)); }
.closing .wrap { position: relative; z-index: 1; }
.closing h2 { max-width: 18ch; margin-bottom: 16px; font-size: clamp(2rem, 4vw, 3.25rem); }
.closing p { color: var(--muted); max-width: 52ch; }

/* Inner pages: sticky index on the left, content on the right */
.page-head { padding: clamp(48px, 7vw, 96px) 0 clamp(40px, 5vw, 64px); }
.page-head h1 { max-width: 20ch; margin-bottom: 20px; }
.page-head .cls { display: block; margin-bottom: 18px; }
.split { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: clamp(32px, 6vw, 96px); padding-bottom: clamp(72px, 9vw, 120px); }
.toc { position: sticky; top: 96px; align-self: start; display: grid; gap: 2px; font-size: .9375rem; }
.toc a { text-decoration: none; color: var(--muted); padding: 6px 0 6px 14px; border-left: 1px solid var(--line); }
.toc a:hover { color: var(--text); border-left-color: var(--accent); }
.blocks { display: grid; gap: 0; }
.block { padding: 36px 0; border-top: 1px solid var(--line); scroll-margin-top: 88px; }
.block:first-child { border-top: 0; padding-top: 0; }
.block h2 { font-size: clamp(1.5rem, 2.4vw, 1.875rem); margin-bottom: 6px; }
.block p { color: var(--muted); }
.block p.sub { color: var(--text); font-weight: 500; margin-bottom: 12px; }
.block .note { background: var(--surface); border-radius: var(--r); padding: 16px 20px; color: var(--muted); max-width: 64ch; }
.block ul { margin: 0; padding-left: 1.1em; color: var(--muted); display: grid; gap: 6px; max-width: 64ch; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; } .toc { position: static; } }

/* About: facts list */
.facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 clamp(32px, 5vw, 72px); padding-bottom: clamp(72px, 9vw, 120px); }
.fact { padding: 28px 0; border-top: 1px solid var(--line); }
.fact h2 { font-size: 1rem; margin-bottom: 10px; color: var(--muted); font-weight: 500; letter-spacing: 0; }
.fact p, .fact li { font-size: 1.125rem; }
.fact p { margin: 0; }
.fact ul { margin: 0; padding-left: 1.1em; display: grid; gap: 6px; }
@media (max-width: 760px) { .facts { grid-template-columns: 1fr; } }

/* Form */
.form-grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: clamp(40px, 7vw, 112px); padding-bottom: clamp(72px, 9vw, 120px); }
@media (max-width: 860px) { .form-grid { grid-template-columns: 1fr; } }
.field { margin-bottom: 22px; display: grid; gap: 8px; }
label, legend { font-weight: 500; font-size: .9688rem; }
.hint { font-weight: 400; color: var(--muted); }
p.hint { font-size: .9063rem; margin: 0; }
input[type=text], input[type=email], textarea {
  width: 100%; font: inherit; color: var(--text); background: var(--surface); border: 1px solid #3A434A; border-radius: var(--r); padding: 12px 14px; transition: border-color .2s; }
input:hover, textarea:hover { border-color: #56626A; }
input:focus-visible, textarea:focus-visible { outline: 2px solid var(--focus); outline-offset: 1px; border-color: transparent; }
textarea { min-height: 168px; resize: vertical; }
fieldset { border: 0; padding: 0; margin: 0 0 22px; }
legend { margin-bottom: 10px; }
.choice { display: flex; flex-wrap: wrap; gap: 8px; }
.choice label { font-weight: 400; display: flex; align-items: center; gap: 10px; border: 1px solid #3A434A; border-radius: var(--r); padding: 10px 14px; cursor: pointer; background: var(--surface); transition: border-color .2s; }
.choice label:has(input:checked) { border-color: var(--accent); }
.choice input { accent-color: var(--accent); margin: 0; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
.notice { padding: 14px 16px; border-left: 3px solid var(--warn); background: var(--surface); margin-bottom: 24px; }
.caution { border-left: 3px solid var(--warn); padding: 2px 0 2px 16px; margin-bottom: 32px; }
.caution h2 { font-size: 1.0625rem; margin-bottom: 6px; letter-spacing: 0; }
.caution p { color: var(--muted); margin: 0; }
.aside { display: grid; gap: 28px; align-content: start; }
.aside h2 { font-size: 1.0625rem; margin-bottom: 8px; letter-spacing: 0; }
.aside p { color: var(--muted); margin: 0; }

/* Footer */
.site-footer { padding: 40px 0 48px; font-size: .9063rem; color: var(--muted); border-top: 1px solid var(--line); }
.site-footer .wrap { display: flex; flex-wrap: wrap; gap: 16px 40px; justify-content: space-between; align-items: flex-start; }
.site-footer p { margin: 0 0 4px; }
.site-footer nav { display: flex; flex-wrap: wrap; gap: 8px 22px; }
.site-footer a { text-decoration: none; }

/* Annotation samples (data annotation page) */
.ann-gallery .ann-fig { margin: 0 0 clamp(48px, 6vw, 80px); }
.ann-gallery .ann-fig:last-child { margin-bottom: 0; }
.ann-frame { position: relative; overflow: hidden; border-radius: var(--r); background: var(--surface); }
.ann-frame img, .ann-frame svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.ann-frame svg { transition: opacity .2s ease; }
.ann-frame rect { fill: none; stroke-width: 2; vector-effect: non-scaling-stroke; }
.ann-frame polygon { fill-opacity: .28; stroke-width: 1.5; vector-effect: non-scaling-stroke; stroke-linejoin: round; }
.semantic_mask .ann-frame polygon { fill-opacity: .38; stroke-opacity: .9; }
.ann-fig.bare .ann-frame svg { opacity: 0; }
.ann-fig figcaption { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 16px 48px; padding-top: 20px; }
.ann-fig h3 { margin: 6px 0 8px; }
.ann-fig figcaption p { color: var(--muted); max-width: 60ch; }
.ann-toggle { margin-top: 16px; padding: 8px 14px; font-size: .875rem; }
.ann-total { font: 500 .8125rem/1.2 var(--mono); color: var(--text) !important; margin-bottom: 10px; }
.ann-legend { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 6px 20px; font: 500 .8125rem/1.4 var(--mono); color: var(--muted); }
.ann-legend li { display: flex; align-items: center; gap: 8px; }
.ann-legend i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.ann-legend span { margin-left: auto; color: var(--text); }
@media (max-width: 760px) { .ann-fig figcaption { grid-template-columns: 1fr; } }
@media (prefers-reduced-motion: reduce) { .ann-frame svg { transition: none; } }

/* Example user stories */
.story-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }
.story { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 24px; display: flex; flex-direction: column; }
.story h3 { margin: 8px 0 12px; }
.story .as { color: var(--text); margin: 0 0 16px; }
.story dl { margin: 0; display: grid; gap: 4px; }
.story dt { font: 500 .8125rem/1.3 var(--mono); color: var(--accent); margin-top: 12px; }
.story dd { margin: 0; color: var(--muted); }
.stories-cta { margin-top: 32px; }
@media (max-width: 960px) { .story-grid { grid-template-columns: 1fr; } }

/* Annotate-it-yourself tool */
.tool-section { padding: 0 0 clamp(64px, 9vw, 120px); }
.annotator kbd, .at-keys kbd { font: 500 .75rem/1 var(--mono); padding: 2px 5px; border: 1px solid var(--line); border-radius: 3px; color: var(--muted); }
.at-bar { display: flex; flex-wrap: wrap; gap: 12px 20px; align-items: center; margin-bottom: 16px; }
.at-group { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; }
.seg { background: transparent; color: var(--muted); border: 0; border-left: 1px solid var(--line); padding: 9px 14px; font: inherit; font-size: .9375rem; cursor: pointer; display: inline-flex; gap: 8px; align-items: center; }
.seg:first-child { border-left: 0; }
.seg:hover { color: var(--text); }
.seg[aria-pressed="true"] { background: var(--accent); color: var(--accent-ink); }
.seg[aria-pressed="true"] kbd { color: var(--accent-ink); border-color: color-mix(in srgb, var(--accent-ink) 40%, transparent); }
.at-class { display: inline-flex; gap: 10px; align-items: center; color: var(--muted); font-size: .9375rem; }
.at-class select { background: var(--surface); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 8px 10px; font: 500 .875rem var(--mono); }
.at-main { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 28px; align-items: start; }
.at-stage { position: relative; border-radius: var(--r); overflow: hidden; background: var(--surface); user-select: none; -webkit-user-select: none; }
.at-stage img, .at-stage svg { position: absolute; inset: 0; width: 100%; height: 100%; display: block; }
.at-stage svg { touch-action: none; cursor: crosshair; }
.at-stage rect, .at-stage polygon, .at-stage polyline, .at-stage circle { vector-effect: non-scaling-stroke; stroke-width: 2; }
.at-stage rect { fill: none; }
.at-stage .vtx { stroke-width: 1.5; }
.at-stage polygon { fill-opacity: .25; stroke-linejoin: round; }
.at-stage .ref { opacity: .85; }
.at-stage .ref, .at-stage .ref * { stroke-width: 1.5; }
.at-stage .draft { stroke-width: 2.5; }
.at-stage .mine { stroke-width: 2.5; }
.at-stage .mine.hl { stroke-width: 4; fill-opacity: .45; }
.at-stage .pt circle:last-child { stroke-width: 1.5; }
.at-under { display: flex; justify-content: space-between; gap: 16px; padding-top: 10px; }
.at-hint { color: var(--muted); margin: 0; font-size: .9375rem; }
.at-xy { font: 500 .8125rem/1.6 var(--mono); color: var(--text); white-space: nowrap; }
.at-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
.at-actions .btn { padding: 9px 16px; font-size: .9375rem; }
.at-side { background: var(--surface); border-radius: var(--r); padding: 20px; position: sticky; top: 88px; }
.at-side h2 { font-size: 1rem; margin: 0 0 12px; }
.at-side h2 + * { margin-top: 0; }
.at-side h2:not(:first-child) { margin-top: 24px; padding-top: 20px; border-top: 1px solid var(--line); }
.at-check { display: flex; gap: 10px; align-items: center; color: var(--text); cursor: pointer; margin-top: 8px; }
.at-check input { accent-color: var(--accent); width: 16px; height: 16px; }
.at-draft-note { color: var(--muted); font-size: .875rem; margin: 4px 0 10px 26px; }
.at-score p { color: var(--muted); font-size: .875rem; margin: 10px 0 0; }
.at-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 6px; max-height: 320px; overflow: auto; }
.at-list li { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-radius: 3px; }
.at-list li:hover { background: color-mix(in srgb, var(--line) 50%, transparent); }
.at-list li.empty { color: var(--muted); padding: 0; font-size: .875rem; }
.at-list i { width: 10px; height: 10px; border-radius: 2px; flex: none; }
.at-list span { display: grid; min-width: 0; }
.at-list b { font: 500 .8125rem/1.3 var(--mono); color: var(--text); }
.at-list small { color: var(--muted); font-size: .8125rem; }
.at-list button { margin-left: auto; background: none; border: 0; color: var(--muted); cursor: pointer; font: inherit; font-size: .8125rem; text-decoration: underline; padding: 4px; }
.at-list button:hover { color: var(--text); }
.at-keys { color: var(--muted); font-size: .8125rem; margin: 20px 0 0; line-height: 2; }
@media (max-width: 960px) { .at-main { grid-template-columns: 1fr; } .at-side { position: static; } }
@media (max-width: 560px) { .at-group { width: 100%; } .seg { flex: 1; justify-content: center; padding: 9px 6px; } .seg kbd { display: none; } .at-under { flex-direction: column; gap: 4px; } }
.annotator button, .ann-toggle { touch-action: manipulation; }
.at-method { color: var(--muted); font-size: .8125rem; margin: 12px 0 0; padding-top: 12px; border-top: 1px dashed var(--line); }
.svc .more + .more { margin-top: 8px; }
.hero-ctl { position: absolute; right: 12px; bottom: 12px; display: flex; gap: 8px; }
.motion-btn, .mode-btn { background: color-mix(in srgb, var(--bg) 78%, transparent); color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; font: 500 .8125rem/1.2 var(--mono); cursor: pointer; backdrop-filter: blur(4px); touch-action: manipulation; }
.motion-btn:hover { border-color: var(--muted); }
.at-score { color: var(--muted); font-size: .875rem; }

.mode-btn { color: var(--text); border: 1px solid var(--line); border-radius: var(--r); padding: 6px 12px; font: 500 .8125rem/1.2 var(--mono); cursor: pointer; backdrop-filter: blur(4px); touch-action: manipulation; background: color-mix(in srgb, var(--bg) 78%, transparent); }
.mode-btn:hover { border-color: var(--muted); }
.footage .masks { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.footage .masks polygon { fill: var(--accent); fill-opacity: .32; stroke: var(--accent); stroke-width: 2; vector-effect: non-scaling-stroke; stroke-linejoin: round; transition: opacity .25s; opacity: 0; }
.footage.has-masks:not(.show-boxes) .bx { border-color: transparent; background: none; }
.footage.show-boxes .masks { display: none; }
@media (prefers-reduced-motion: reduce) { .footage .masks polygon { transition: none; } }
