/* ==========================================================================
   Soweto Graphics 360° BrandCare™ — design system
   Colours sampled from the official logo (Soweto_Graphics_Logo_2.png):
     magenta #EC008C · teal #106484 · sky #20A8E0 · cyan #00ACF0
   Display: Lithos Bold (licensed file → /assets/fonts/LithosPro-Bold.woff2)
   Text:    Poppins
   ========================================================================== */

@font-face {
  font-family: "Lithos BrandCare";
  src: url("../fonts/LithosPro-Bold.woff2") format("woff2"), url("../fonts/LithosPro-Bold.woff") format("woff"), url("../fonts/LithosPro-Bold.otf") format("opentype");
  font-weight: 700; font-style: normal; font-display: swap;
}

:root {
  --sg-magenta: #EC008C;
  --sg-magenta-dark: #C10073;
  --sg-teal: #106484;
  --sg-teal-deep: #0B4A63;
  --sg-sky: #20A8E0;
  --sg-cyan: #00ACF0;

  --ink: #0D2F3C;
  --ink-2: #2D4B57;
  --muted: #5C7480;
  --line: #DBE6EB;
  --line-strong: #C3D3DA;
  --canvas: #F3F7F9;
  --surface: #FFFFFF;
  --tint: #EAF4F8;

  --good: #137A48;  --good-bg: #E5F4EC;
  --warn: #8A5A00;  --warn-bg: #FFF3D6;
  --bad:  #B42318;  --bad-bg:  #FDECEA;
  --info: #0B5F84;  --info-bg: #E4F3FA;

  --font-display: "Lithos BrandCare", "Lithos Pro", "Poppins", system-ui, sans-serif;
  --font-text: "Poppins", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;

  --s1: 4px; --s2: 8px; --s3: 12px; --s4: 16px; --s5: 24px; --s6: 32px; --s7: 48px; --s8: 72px; --s9: 112px;
  --r-sm: 3px; --r: 6px; --r-lg: 10px;
  --shadow: 0 1px 2px rgba(13, 47, 60, .06), 0 4px 14px rgba(13, 47, 60, .05);
  --focus: 0 0 0 3px rgba(32, 168, 224, .45);
  --wrap: 1180px;
  --ease: cubic-bezier(.2, .7, .2, 1);
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; font-family: var(--font-text); font-size: 15px; line-height: 1.6; color: var(--ink); background: var(--surface); text-rendering: optimizeLegibility; }
img, svg { max-width: 100%; height: auto; }
a { color: var(--sg-teal); text-underline-offset: 3px; text-decoration-thickness: 1px; }
a:hover { color: var(--sg-teal-deep); }
:focus-visible { outline: 2px solid var(--sg-sky); outline-offset: 2px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 var(--s3); font-weight: 600; color: var(--ink); }
p { margin: 0 0 var(--s4); }
code { font-size: .88em; background: var(--tint); padding: 1px 5px; border-radius: var(--r-sm); }
hr { border: 0; border-top: 1px solid var(--line); }
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.skip { position: absolute; left: var(--s4); top: -60px; z-index: 100; background: var(--ink); color: #fff; padding: var(--s2) var(--s4); border-radius: var(--r); }
.skip:focus { top: var(--s3); }
main:focus { outline: none; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.num { text-align: right; font-variant-numeric: tabular-nums; }
.ref { font-variant-numeric: tabular-nums; font-size: 12.5px; letter-spacing: .02em; color: var(--muted); font-weight: 500; }
.hp { position: absolute; left: -9999px; }
[hidden] { display: none !important; }

.wrap { max-width: var(--wrap); margin: 0 auto; padding: 0 var(--s5); }
.narrow { max-width: 780px; }

/* Typography ------------------------------------------------------------- */
.display { font-family: var(--font-display); font-weight: 700; font-size: clamp(34px, 5.2vw, 60px); line-height: 1.04; letter-spacing: -.01em; color: var(--sg-teal-deep); margin-bottom: var(--s5); }
.display--md { font-size: clamp(26px, 3.2vw, 38px); line-height: 1.12; }
.lead { font-size: 18px; line-height: 1.6; color: var(--ink-2); max-width: 62ch; }
.h1 { font-size: 24px; font-weight: 600; margin: 0; letter-spacing: -.01em; }
.section__h { font-size: 22px; font-weight: 600; margin-bottom: var(--s5); }
.section__intro { max-width: 64ch; color: var(--ink-2); margin-bottom: var(--s6); }
.section-label { font-size: 13px; font-weight: 600; color: var(--muted); margin: var(--s6) 0 var(--s3); }
.prose { max-width: 68ch; }
.prose h2 { font-size: 19px; margin-top: var(--s6); }
.prose--sm { font-size: 14.5px; }
.link-strong { font-weight: 600; text-decoration: none; border-bottom: 1px solid currentColor; }
.eyebrow-num { color: var(--sg-magenta); font-weight: 600; }

/* Buttons ---------------------------------------------------------------- */
.btn { --bg: var(--surface); --fg: var(--ink); --bd: var(--line-strong);
  display: inline-flex; align-items: center; justify-content: center; gap: var(--s2); min-height: 40px; padding: 0 var(--s4);
  font: 500 14px/1 var(--font-text); color: var(--fg); background: var(--bg); border: 1px solid var(--bd); border-radius: var(--r);
  text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, color .15s, box-shadow .15s; white-space: nowrap; }
.btn:hover { --bd: var(--sg-teal); color: var(--fg); }
.btn:focus-visible { outline: none; box-shadow: var(--focus); }
.btn[disabled], .btn.is-busy { opacity: .55; cursor: not-allowed; }
.btn--primary { --bg: var(--sg-magenta); --fg: #fff; --bd: var(--sg-magenta); font-weight: 600; }
.btn--primary:hover { --bg: var(--sg-magenta-dark); --bd: var(--sg-magenta-dark); color: #fff; }
.btn--ghost { --bg: transparent; }
.btn--light { --bg: transparent; --fg: #fff; --bd: rgba(255, 255, 255, .5); }
.btn--light:hover { --bd: #fff; color: #fff; }
.btn--danger-ghost { --bg: transparent; --fg: var(--bad); --bd: #E8B4AE; }
.btn--danger-ghost:hover { --bd: var(--bad); color: var(--bad); }
.btn--small { min-height: 32px; padding: 0 var(--s3); font-size: 13px; }
.btn--large { min-height: 50px; padding: 0 var(--s5); font-size: 15px; }
.btn--block { width: 100%; }

/* Public header ---------------------------------------------------------- */
.site-header { position: sticky; top: 0; z-index: 40; background: rgba(255, 255, 255, .96); border-bottom: 1px solid var(--line); backdrop-filter: saturate(1.4) blur(6px); }
.site-header__inner { display: flex; align-items: center; gap: var(--s5); min-height: 72px; }
.brand { display: flex; align-items: center; gap: var(--s3); text-decoration: none; color: var(--ink); flex-shrink: 0; }
.brand img { width: 168px; height: auto; display: block; }
.brand__product { font-size: 12px; font-weight: 600; color: var(--sg-teal); border-left: 1px solid var(--line-strong); padding-left: var(--s3); line-height: 1.2; }
.site-nav { display: flex; align-items: center; gap: var(--s5); margin-left: auto; }
.site-nav ul { display: flex; gap: var(--s1); list-style: none; margin: 0; padding: 0; }
.site-nav a:not(.btn) { display: block; white-space: nowrap; padding: var(--s2) var(--s3); color: var(--ink-2); font-size: 14px; font-weight: 500; text-decoration: none; border-radius: var(--r-sm); }
.site-nav a:not(.btn):hover { color: var(--sg-teal); }
.site-nav a[aria-current="page"] { color: var(--sg-teal-deep); box-shadow: inset 0 -2px 0 var(--sg-magenta); border-radius: 0; }
.site-nav__actions { display: flex; gap: var(--s2); }
.nav-toggle { display: none; margin-left: auto; width: 44px; height: 44px; border: 1px solid var(--line); background: var(--surface); border-radius: var(--r); cursor: pointer; position: relative; }
.nav-toggle__bars, .nav-toggle__bars::before, .nav-toggle__bars::after { position: absolute; left: 12px; width: 18px; height: 2px; background: var(--ink); border-radius: 2px; content: ""; transition: transform .2s var(--ease); }
.nav-toggle__bars { top: 21px; }
.nav-toggle__bars::before { top: -6px; left: 0; }
.nav-toggle__bars::after { top: 6px; left: 0; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars { background: transparent; }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::before { transform: translateY(6px) rotate(45deg); }
.nav-toggle[aria-expanded="true"] .nav-toggle__bars::after { transform: translateY(-6px) rotate(-45deg); }

@media (max-width: 1320px) and (min-width: 1081px) {
  .site-header__inner { gap: var(--s3); }
  .site-nav { gap: var(--s3); }
  .site-nav a:not(.btn) { padding: var(--s2) 7px; font-size: 13.5px; }
  .brand__product { display: none; }
}
@media (max-width: 1080px) {
  .nav-toggle { display: block; }
  .site-nav { display: none; position: absolute; left: 0; right: 0; top: 72px; flex-direction: column; align-items: stretch; background: var(--surface); border-bottom: 1px solid var(--line); padding: var(--s4) var(--s5) var(--s5); box-shadow: var(--shadow); }
  .site-nav.is-open { display: flex; }
  .site-nav ul { flex-direction: column; }
  .site-nav a:not(.btn) { white-space: normal; padding: var(--s3) 0; font-size: 16px; border-bottom: 1px solid var(--line); }
  .site-nav a[aria-current="page"] { box-shadow: inset 3px 0 0 var(--sg-magenta); padding-left: var(--s3); }
  .site-nav__actions .btn { flex: 1; }
}
@media (max-width: 520px) { .brand__product { display: none; } .brand img { width: 150px; } }

/* Hero — the one signature moment --------------------------------------- */
.hero { position: relative; overflow: hidden; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--surface) 0%, var(--surface) 62%, var(--tint) 100%); }
.hero__grid { display: grid; grid-template-columns: minmax(0, 1.35fr) minmax(0, 1fr); gap: var(--s7); align-items: center; padding-top: var(--s8); padding-bottom: var(--s8); }
.hero__product { font-weight: 600; color: var(--sg-teal); margin-bottom: var(--s4); font-size: 14px; }
.hero__title { font-size: clamp(40px, 6.4vw, 76px); max-width: 12ch; }
.hero__lead { font-size: 20px; font-weight: 500; color: var(--sg-teal); max-width: 36ch; margin-bottom: var(--s4); }
.hero__body { color: var(--ink-2); max-width: 58ch; }
.hero__actions { display: flex; flex-wrap: wrap; gap: var(--s3); margin-top: var(--s6); }
.mark-stage { position: relative; margin: 0; justify-self: center; width: min(360px, 80%); }
.mark-stage__img { display: block; width: 100%; height: auto; filter: drop-shadow(0 18px 30px rgba(16, 100, 132, .16)); animation: markIn 1.1s var(--ease) .1s both; }
.mark-stage__sweep { position: absolute; inset: 0; background: linear-gradient(105deg, transparent 35%, rgba(255, 255, 255, .75) 50%, transparent 65%); mix-blend-mode: soft-light; transform: translateX(-120%); animation: sweep 1.4s var(--ease) .9s both; pointer-events: none; }
@keyframes markIn { from { opacity: 0; transform: translateY(14px) rotate(-4deg) scale(.96); clip-path: inset(0 0 100% 0); } to { opacity: 1; transform: none; clip-path: inset(0 0 0 0); } }
@keyframes sweep { to { transform: translateX(120%); } }
@media (max-width: 860px) { .hero__grid { grid-template-columns: 1fr; padding-top: var(--s7); padding-bottom: var(--s7); } .hero__art { order: -1; } .mark-stage { width: 150px; justify-self: start; } }

/* Public sections ------------------------------------------------------- */
.section { padding: var(--s8) 0; }
.section--tint { background: var(--canvas); border-top: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.section__after { margin-top: var(--s7); }
.page-head { padding: var(--s8) 0 var(--s6); border-bottom: 1px solid var(--line); }
.page-pad { padding: var(--s8) var(--s5); }
.crumbs { font-size: 13px; margin-bottom: var(--s3); }
.split { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: var(--s7); align-items: start; }
.split--top { align-items: start; }
@media (max-width: 860px) { .split { grid-template-columns: 1fr; gap: var(--s5); } }

.divisions { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--line-strong); }
.divisions__item a { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr) 28px; gap: var(--s5); align-items: center; padding: var(--s5) 0; border-bottom: 1px solid var(--line-strong); text-decoration: none; color: var(--ink); transition: padding .2s var(--ease); }
.divisions__name { font-size: 19px; font-weight: 600; color: var(--sg-teal-deep); }
.divisions__sum { color: var(--ink-2); }
.divisions__go { width: 28px; height: 28px; border: 1px solid var(--line-strong); border-radius: 50%; position: relative; transition: background .2s, border-color .2s; }
.divisions__go::after { content: ""; position: absolute; left: 9px; top: 9px; width: 7px; height: 7px; border-top: 2px solid var(--sg-teal); border-right: 2px solid var(--sg-teal); transform: rotate(45deg); }
.divisions__item a:hover { padding-left: var(--s3); }
.divisions__item a:hover .divisions__go { background: var(--sg-magenta); border-color: var(--sg-magenta); }
.divisions__item a:hover .divisions__go::after { border-color: #fff; }
.divisions--compact .divisions__item a { grid-template-columns: 1fr 28px; padding: var(--s4) 0; }
@media (max-width: 700px) { .divisions__item a { grid-template-columns: 1fr 28px; } .divisions__sum { grid-column: 1; grid-row: 2; } }

.steps { list-style: none; counter-reset: step; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); gap: var(--s5); }
.steps li { counter-increment: step; border-top: 2px solid var(--sg-teal); padding-top: var(--s4); }
.steps li::before { content: counter(step); display: block; font-family: var(--font-display); font-size: 28px; color: var(--sg-magenta); line-height: 1; margin-bottom: var(--s3); }
.steps h3 { font-size: 16px; }
.steps p { color: var(--ink-2); font-size: 14px; }
@media (max-width: 980px) { .steps { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .steps { grid-template-columns: 1fr; } }

.benefits { margin: 0; display: grid; gap: var(--s5); }
.benefits div { border-left: 3px solid var(--sg-sky); padding-left: var(--s4); }
.benefits dt { font-weight: 600; color: var(--sg-teal-deep); margin-bottom: var(--s1); }
.benefits dd { margin: 0; color: var(--ink-2); }

.compare { width: 100%; border-collapse: collapse; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); min-width: 640px; }
.compare th, .compare td { padding: var(--s4); border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.compare thead th { background: var(--surface); border-bottom: 2px solid var(--sg-teal); }
.compare__name { display: block; font-size: 17px; font-weight: 600; color: var(--sg-teal-deep); }
.compare__aud { display: block; font-size: 13px; color: var(--muted); font-weight: 400; }
.compare__price { font-size: 20px; font-variant-numeric: tabular-nums; }
.compare tbody th { color: var(--ink-2); font-weight: 500; width: 22%; }
.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { position: relative; padding-left: 20px; margin-bottom: var(--s1); }
.ticks li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 9px; height: 5px; border-left: 2px solid var(--sg-magenta); border-bottom: 2px solid var(--sg-magenta); transform: rotate(-45deg); }

.faq__item { border-bottom: 1px solid var(--line-strong); }
.faq__item summary { cursor: pointer; padding: var(--s4) var(--s6) var(--s4) 0; font-weight: 600; list-style: none; position: relative; }
.faq__item summary::-webkit-details-marker { display: none; }
.faq__item summary::after { content: ""; position: absolute; right: 6px; top: 24px; width: 10px; height: 10px; border-right: 2px solid var(--sg-teal); border-bottom: 2px solid var(--sg-teal); transform: rotate(45deg); transition: transform .2s var(--ease); }
.faq__item[open] summary::after { transform: rotate(-135deg); top: 28px; }
.faq__item p { color: var(--ink-2); padding-bottom: var(--s4); max-width: 70ch; }

.service-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: var(--s6); padding: var(--s6) 0; border-bottom: 1px solid var(--line); }
.service-row__h { font-size: 21px; }
.service-row__h a { text-decoration: none; color: var(--sg-teal-deep); }
.chips { list-style: none; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2); align-content: flex-start; }
.chips li { border: 1px solid var(--line-strong); border-radius: 999px; padding: 4px 12px; font-size: 13px; color: var(--ink-2); }
@media (max-width: 760px) { .service-row { grid-template-columns: 1fr; gap: var(--s3); } }
.stage-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: var(--s6); }
.stage-list article { border-top: 3px solid var(--sg-teal); padding-top: var(--s4); }
.stage-list__tier { color: var(--sg-magenta); font-weight: 600; font-size: 14px; }
@media (max-width: 860px) { .stage-list { grid-template-columns: 1fr; } }
.about__logo { width: 100%; max-width: 440px; }

.cta-band { background: var(--sg-teal-deep); color: #fff; padding: var(--s8) 0; position: relative; overflow: hidden; }
.cta-band::before { content: ""; position: absolute; right: -60px; top: -40px; width: 280px; height: 420px; background: var(--sg-magenta); transform: skewX(-32deg); opacity: .9; }
.cta-band::after { content: ""; position: absolute; right: 150px; top: -40px; width: 110px; height: 420px; background: var(--sg-sky); transform: skewX(-32deg); opacity: .55; }
.cta-band__inner { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: var(--s6); align-items: center; justify-content: space-between; }
.cta-band .display { color: #fff; margin-bottom: var(--s3); }
.cta-band p { color: rgba(255, 255, 255, .85); max-width: 52ch; margin: 0; }
.cta-band__actions { display: flex; flex-wrap: wrap; gap: var(--s3); }
@media (max-width: 760px) { .cta-band::before, .cta-band::after { opacity: .25; } }

.site-footer { background: var(--canvas); border-top: 1px solid var(--line); padding: var(--s7) 0 var(--s5); font-size: 14px; }
.site-footer__grid { display: grid; grid-template-columns: 1.4fr 1fr 1fr 1fr; gap: var(--s6); }
.site-footer__logo { width: 170px; }
.site-footer__promise { color: var(--sg-teal); font-weight: 500; margin-top: var(--s3); }
.site-footer__h { font-size: 13px; color: var(--muted); font-weight: 600; margin-bottom: var(--s3); }
.site-footer ul { list-style: none; padding: 0; margin: 0; }
.site-footer li { margin-bottom: var(--s2); }
.site-footer a { color: var(--ink-2); text-decoration: none; }
.site-footer a:hover { color: var(--sg-teal); text-decoration: underline; }
.site-footer__base { margin-top: var(--s6); padding-top: var(--s4); border-top: 1px solid var(--line); color: var(--muted); font-size: 13px; }
@media (max-width: 760px) { .site-footer__grid { grid-template-columns: 1fr 1fr; } }

/* Notices and flash ------------------------------------------------------ */
.notice { border: 1px solid var(--line); border-left: 4px solid var(--sg-sky); background: var(--info-bg); padding: var(--s4) var(--s5); border-radius: var(--r); margin-bottom: var(--s5); }
.notice p:last-child { margin-bottom: 0; }
.notice h3, .notice__h { font-size: 15px; margin-bottom: var(--s2); }
.notice--warn { border-left-color: #D99100; background: var(--warn-bg); }
.notice--quiet { background: var(--canvas); border-left-color: var(--sg-teal); }
.flash-region { padding-top: var(--s4); }
.app .flash-region { padding: 0 0 var(--s4); max-width: none; }
.flash { display: flex; gap: var(--s3); align-items: flex-start; padding: var(--s3) var(--s4); border-radius: var(--r); border: 1px solid var(--line); background: var(--surface); box-shadow: var(--shadow); margin-bottom: var(--s2); animation: flashIn .25s var(--ease); }
.flash p { margin: 0; flex: 1; }
.flash__icon { flex: 0 0 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; font-size: 12px; font-weight: 700; color: #fff; background: var(--info); }
.flash--success { border-left: 4px solid var(--good); } .flash--success .flash__icon { background: var(--good); }
.flash--error { border-left: 4px solid var(--bad); } .flash--error .flash__icon { background: var(--bad); }
.flash--info { border-left: 4px solid var(--info); }
.flash__close { background: none; border: 0; font-size: 20px; line-height: 1; cursor: pointer; color: var(--muted); padding: 0 var(--s1); }
@keyframes flashIn { from { opacity: 0; transform: translateY(-4px); } }

/* Status indicators — label + shape, never colour alone ---------------- */
.status { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 500; padding: 2px 9px 2px 7px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink-2); white-space: nowrap; vertical-align: middle; }
.status__dot { width: 8px; height: 8px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.status--draft, .status--tone-neutral { color: var(--ink-2); }
.status--draft .status__dot { background: transparent; border: 1.5px solid currentColor; }
.status--submitted, .status--accepted, .status--queued, .status--tone-info { color: var(--info); background: var(--info-bg); border-color: #B9DFF0; }
.status--in_production, .status--internal_review, .status--revision { color: var(--sg-teal-deep); background: var(--tint); border-color: #B7D5E1; }
.status--in_production .status__dot, .status--internal_review .status__dot, .status--revision .status__dot { border-radius: 2px; }
.status--needs_information, .status--awaiting_scope_confirmation, .status--awaiting_client_approval, .status--tone-warn { color: var(--warn); background: var(--warn-bg); border-color: #F1D79A; }
.status--needs_information .status__dot, .status--awaiting_scope_confirmation .status__dot, .status--awaiting_client_approval .status__dot, .status--tone-warn .status__dot { border-radius: 0; transform: rotate(45deg); width: 7px; height: 7px; }
.status--approved, .status--completed, .status--tone-good { color: var(--good); background: var(--good-bg); border-color: #B5DEC6; }
.status--approved .status__dot, .status--completed .status__dot, .status--tone-good .status__dot { width: 9px; height: 5px; border-radius: 0; background: transparent; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg) translate(1px, -1px); }
.status--on_hold, .status--tone-bad { color: var(--bad); background: var(--bad-bg); border-color: #F2C3BD; }
.status--cancelled, .status--tone-muted { color: var(--muted); background: var(--canvas); }
.status--cancelled .status__dot, .status--tone-muted .status__dot { width: 8px; height: 2px; border-radius: 0; }

/* Forms ------------------------------------------------------------------ */
.form { display: grid; gap: var(--s4); }
.form__h { font-size: 16px; margin: var(--s3) 0 0; padding-top: var(--s3); border-top: 1px solid var(--line); }
.form__h:first-of-type { border-top: 0; padding-top: 0; margin-top: 0; }
.form__row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: var(--s4); }
.form__row--3 { grid-template-columns: repeat(3, minmax(0, 1fr)); }
@media (max-width: 640px) { .form__row, .form__row--3 { grid-template-columns: 1fr; } }
.form--inline { display: flex; flex-wrap: wrap; gap: var(--s3); align-items: flex-end; }
.form--inline .field { flex: 1 1 200px; }
.form--inline-tight { display: inline-flex; gap: var(--s2); align-items: center; flex-wrap: wrap; }
.field { display: grid; gap: 6px; min-width: 0; }
.field label, .checks-inline legend { font-size: 13.5px; font-weight: 500; color: var(--ink); }
.hint { font-size: 12.5px; color: var(--muted); margin: 0; }
input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), select, textarea {
  width: 100%; min-height: 42px; padding: 9px 12px; font: 400 14.5px/1.4 var(--font-text); color: var(--ink);
  background: var(--surface); border: 1px solid var(--line-strong); border-radius: var(--r); transition: border-color .15s, box-shadow .15s; }
textarea { min-height: 90px; resize: vertical; }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--muted) 50%), linear-gradient(135deg, var(--muted) 50%, transparent 50%); background-position: calc(100% - 17px) 18px, calc(100% - 12px) 18px; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 32px; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--sg-sky); box-shadow: var(--focus); }
input[readonly] { background: var(--canvas); }
input:user-invalid, textarea:user-invalid, select:user-invalid, .is-invalid { border-color: var(--bad); }
.field-error { color: var(--bad); font-size: 12.5px; margin: 0; }
input[type="file"] { font: inherit; font-size: 13.5px; padding: var(--s2) 0; max-width: 100%; }
.check { display: flex; gap: var(--s2); align-items: flex-start; font-size: 14px; }
.check input { width: 18px; height: 18px; margin: 2px 0 0; accent-color: var(--sg-magenta); flex-shrink: 0; }
.check label { font-weight: 400; }
.checks-inline { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: var(--s2) var(--s4); }
.checks-inline legend { margin-bottom: var(--s2); width: 100%; }
.readonly { margin: 0; padding: 9px 0; color: var(--ink-2); }
.pw { position: relative; }
.pw input { padding-right: 70px !important; }
.pw__toggle { position: absolute; right: 6px; top: 6px; height: 30px; padding: 0 10px; font: 500 12px var(--font-text); border: 1px solid var(--line); background: var(--canvas); border-radius: var(--r-sm); cursor: pointer; }
.drop { border: 1.5px dashed var(--line-strong); border-radius: var(--r); padding: var(--s4); background: var(--canvas); transition: border-color .15s, background .15s; }
.drop.is-over { border-color: var(--sg-sky); background: var(--info-bg); }
.drop__list { margin: var(--s2) 0 0; padding-left: var(--s4); font-size: 13px; color: var(--ink-2); }
.input--narrow { max-width: 90px; }

/* Auth --------------------------------------------------------------------- */
.auth { min-height: calc(100vh - 300px); display: grid; place-items: center; padding: var(--s8) var(--s4); background: var(--canvas); }
.auth__card { width: 100%; max-width: 420px; }
.auth--wide .auth__card { max-width: 640px; }
.auth__h { font-size: 24px; margin-bottom: var(--s4); color: var(--sg-teal-deep); }
.auth__links { margin: var(--s5) 0 0; font-size: 14px; text-align: center; color: var(--muted); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s6); box-shadow: var(--shadow); }
@media (max-width: 520px) { .card { padding: var(--s5); } }
.checks { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s2); }
.checks__item { display: flex; gap: var(--s3); align-items: center; padding: var(--s2) var(--s3); border-radius: var(--r); background: var(--canvas); font-size: 14px; }
.checks__item > span:first-child { width: 22px; height: 22px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 12px; font-weight: 700; flex-shrink: 0; }
.checks__item--ok > span:first-child { background: var(--good); }
.checks__item--bad { background: var(--bad-bg); }
.checks__item--bad > span:first-child { background: var(--bad); }

/* App shell ----------------------------------------------------------------- */
.app { background: var(--canvas); }
.app__shell { display: grid; grid-template-columns: 248px minmax(0, 1fr); min-height: 100vh; }
.sidebar { background: var(--surface); border-right: 1px solid var(--line); display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; }
.sidebar__brand { display: flex; gap: var(--s3); align-items: center; padding: var(--s5) var(--s5) var(--s4); text-decoration: none; color: var(--ink); }
.sidebar__brand img { width: 34px; height: 34px; }
.sidebar__brand strong { display: block; font-size: 16px; color: var(--sg-teal-deep); line-height: 1.1; }
.sidebar__brand small { color: var(--muted); font-size: 12px; }
.sidebar__switch { padding: 0 var(--s4) var(--s3); }
.sidebar__switch select { min-height: 36px; font-size: 13px; }
.sidebar__nav { flex: 1; padding: 0 var(--s3) var(--s4); }
.sidebar__group { font-size: 11.5px; font-weight: 600; color: var(--muted); margin: var(--s5) var(--s3) var(--s2); }
.sidebar__nav ul { list-style: none; margin: 0; padding: 0; }
.sidebar__nav a { display: flex; align-items: center; gap: var(--s3); padding: 8px var(--s3); border-radius: var(--r); color: var(--ink-2); text-decoration: none; font-size: 14px; font-weight: 500; position: relative; }
.sidebar__nav a:hover { background: var(--canvas); color: var(--ink); }
.sidebar__nav a[aria-current="page"] { background: var(--tint); color: var(--sg-teal-deep); }
.sidebar__nav a[aria-current="page"]::before { content: ""; position: absolute; left: -12px; top: 8px; bottom: 8px; width: 3px; border-radius: 0 3px 3px 0; background: var(--sg-magenta); }
.ico { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; flex-shrink: 0; }
.sidebar__foot { padding: var(--s4) var(--s5); border-top: 1px solid var(--line); font-size: 13px; }
.sidebar__foot a { color: var(--muted); }
.app__main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: var(--s4); min-height: 60px; padding: 0 var(--s6); background: rgba(255, 255, 255, .95); border-bottom: 1px solid var(--line); backdrop-filter: blur(6px); }
.topbar__title { font-weight: 600; font-size: 14px; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar__actions { margin-left: auto; display: flex; gap: var(--s3); align-items: center; }
.topbar__bell { position: relative; display: grid; place-items: center; width: 38px; height: 38px; border-radius: var(--r); color: var(--ink-2); }
.topbar__bell:hover { background: var(--canvas); }
.topbar__bell .ico { width: 20px; height: 20px; }
.topbar__count { position: absolute; top: 2px; right: 0; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--sg-magenta); color: #fff; font-size: 11px; font-weight: 600; display: grid; place-items: center; }
.usermenu { position: relative; }
.usermenu summary { list-style: none; display: flex; gap: var(--s2); align-items: center; cursor: pointer; padding: 4px var(--s2) 4px 4px; border-radius: 999px; border: 1px solid var(--line); }
.usermenu summary::-webkit-details-marker { display: none; }
.avatar { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--sg-teal); color: #fff; font-weight: 600; font-size: 13px; }
.usermenu__name { font-size: 13.5px; font-weight: 500; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.usermenu__panel { position: absolute; right: 0; top: calc(100% + 6px); min-width: 230px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); box-shadow: var(--shadow); padding: var(--s2); z-index: 50; }
.usermenu__who { padding: var(--s2) var(--s3); font-size: 13px; border-bottom: 1px solid var(--line); margin-bottom: var(--s1); word-break: break-all; }
.usermenu__panel a, .usermenu__panel button { display: block; width: 100%; text-align: left; padding: var(--s2) var(--s3); font: 500 14px var(--font-text); color: var(--ink); background: none; border: 0; border-radius: var(--r-sm); cursor: pointer; text-decoration: none; }
.usermenu__panel a:hover, .usermenu__panel button:hover { background: var(--canvas); }
.app__content { padding: var(--s6); max-width: 1400px; width: 100%; }
.nav-toggle--app { margin-left: 0; }
@media (max-width: 960px) {
  .app__shell { grid-template-columns: 1fr; }
  .sidebar { position: fixed; left: 0; top: 0; bottom: 0; width: 270px; z-index: 60; transform: translateX(-100%); transition: transform .25s var(--ease); box-shadow: none; }
  .sidebar.is-open { transform: none; box-shadow: 0 0 0 100vmax rgba(13, 47, 60, .35); }
  .nav-toggle--app { display: block; }
  .topbar { padding: 0 var(--s4); }
  .app__content { padding: var(--s4); }
  .usermenu__name, .topbar__new { display: none; }
}

/* App components ------------------------------------------------------------ */
.page-title { display: flex; flex-wrap: wrap; gap: var(--s4); align-items: flex-end; justify-content: space-between; margin-bottom: var(--s5); }
.page-title .ref a { color: var(--muted); }
.page-title__status { display: grid; justify-items: end; gap: var(--s1); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s5); margin-bottom: var(--s5); min-width: 0; }
.panel__h { font-size: 15px; font-weight: 600; margin-bottom: var(--s4); }
.panel__sub { font-size: 14px; font-weight: 600; margin: var(--s5) 0 var(--s2); }
.panel__head { display: flex; justify-content: space-between; align-items: baseline; gap: var(--s3); }
.panel__head a { font-size: 13px; }
.panel__big { font-size: 20px; font-weight: 600; color: var(--sg-teal-deep); margin-bottom: var(--s2); }
.panel--alert { border-color: #F1D79A; box-shadow: inset 4px 0 0 #D99100; }
.panel--membership { box-shadow: inset 0 3px 0 var(--sg-teal); }
.panel--action { box-shadow: inset 0 3px 0 var(--sg-magenta); }
.narrow-panel { max-width: 720px; }
.grid { display: grid; gap: 0 var(--s5); }
.grid--2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.grid--dash { grid-template-columns: 1fr 1.1fr 1fr; }
.grid--detail { grid-template-columns: minmax(0, 1fr) 340px; align-items: start; }
.stack { display: grid; align-content: start; min-width: 0; }
@media (max-width: 1180px) { .grid--dash { grid-template-columns: 1fr 1fr; } .grid--dash > :last-child { grid-column: 1 / -1; } }
@media (max-width: 1020px) { .grid--detail { grid-template-columns: 1fr; } }
@media (max-width: 760px) { .grid--2, .grid--dash { grid-template-columns: 1fr; } }

.kv { margin: 0 0 var(--s4); display: grid; gap: var(--s2); }
.kv div { display: grid; grid-template-columns: 130px minmax(0, 1fr); gap: var(--s3); font-size: 14px; }
.kv dt { color: var(--muted); }
.kv dd { margin: 0; }
.kv .big { font-size: 26px; font-weight: 600; color: var(--sg-teal-deep); }
.kv--cols { grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: var(--s4); }
.kv--cols div { grid-template-columns: 1fr; gap: 2px; }

.metrics { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: var(--s3); margin-bottom: var(--s5); }
.metrics--small { grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); }
.metric { display: flex; flex-direction: column; gap: var(--s1); background: var(--surface); border: 1px solid var(--line); border-radius: var(--r-lg); padding: var(--s4) var(--s5); text-decoration: none; color: var(--ink); }
a.metric:hover { border-color: var(--sg-teal); }
.metric__n { font-size: 26px; font-weight: 600; font-variant-numeric: tabular-nums; color: var(--sg-teal-deep); letter-spacing: -.01em; line-height: 1.2; }
.metric__l { font-size: 13px; color: var(--ink-2); line-height: 1.4; }
.metric__l small { color: var(--muted); font-size: 12px; }
.metric--alert { border-color: #F2C3BD; box-shadow: inset 3px 0 0 var(--bad); }
.metric--alert .metric__n { color: var(--bad); }

.units__figure { display: flex; align-items: baseline; gap: var(--s2); }
.units__num { font-size: 40px; font-weight: 600; line-height: 1; color: var(--sg-teal-deep); font-variant-numeric: tabular-nums; }
.units__label { color: var(--muted); }
.units__meter { width: 100%; height: 10px; margin: var(--s3) 0; border: 0; border-radius: 5px; background: var(--tint); }
.units__meter::-webkit-meter-bar { background: var(--tint); border: 0; border-radius: 5px; height: 10px; }
.units__meter::-webkit-meter-optimum-value { background: linear-gradient(90deg, var(--sg-teal), var(--sg-sky)); border-radius: 5px; }
.units__meter::-moz-meter-bar { background: linear-gradient(90deg, var(--sg-teal), var(--sg-sky)); border-radius: 5px; }
.units__dl { margin: 0 0 var(--s4); display: grid; grid-template-columns: repeat(4, 1fr); gap: var(--s2); }
.units__dl div { border-left: 1px solid var(--line); padding-left: var(--s2); }
.units__dl dt { font-size: 12px; color: var(--muted); }
.units__dl dd { margin: 0; font-weight: 600; font-variant-numeric: tabular-nums; }

.list { list-style: none; padding: 0; margin: 0 0 var(--s4); }
.list li { display: flex; justify-content: space-between; align-items: center; gap: var(--s3); padding: var(--s2) 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.list li:last-child { border-bottom: 0; }
.list a { text-decoration: none; color: var(--ink); }
.list a:hover { color: var(--sg-teal); text-decoration: underline; }
.list .is-unread a { font-weight: 600; }
.list--dates time { font-variant-numeric: tabular-nums; color: var(--sg-teal); font-weight: 600; font-size: 13px; min-width: 92px; }
.list--dates li { justify-content: flex-start; }
.list--tight li { padding: 6px 0; font-size: 13px; }

.table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 0 var(--s3); }
.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th, .table td { padding: var(--s3); text-align: left; border-bottom: 1px solid var(--line); vertical-align: top; }
.table thead th { font-size: 12.5px; font-weight: 600; color: var(--muted); border-bottom: 1px solid var(--line-strong); white-space: nowrap; background: var(--surface); position: sticky; top: 0; }
.table tbody tr:hover { background: #FAFCFD; }
.table td a { text-decoration: none; }
.table td a:hover { text-decoration: underline; }
.table--compact th, .table--compact td { padding: var(--s2) var(--s3); }
.table tfoot th { text-align: right; font-weight: 500; color: var(--ink-2); }
.table tfoot .is-total th, .table tfoot .is-total td { font-weight: 600; color: var(--ink); border-top: 1px solid var(--line-strong); }
.table th.num, .table td.num { text-align: right; }
.table--matrix td { text-align: center; }
.table--matrix input { width: 18px; height: 18px; accent-color: var(--sg-magenta); }
.table .actions { display: flex; gap: var(--s2); justify-content: flex-end; flex-wrap: wrap; }
.is-late { color: var(--bad); font-weight: 600; }
.is-late::before { content: "⚠ "; }
@media (max-width: 760px) { .table { font-size: 13.5px; } .table th, .table td { padding: var(--s2); } }

.tabs { display: flex; gap: var(--s1); border-bottom: 1px solid var(--line-strong); margin-bottom: var(--s4); overflow-x: auto; }
.tabs a { padding: var(--s2) var(--s3); font-size: 14px; font-weight: 500; color: var(--ink-2); text-decoration: none; white-space: nowrap; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs a:hover { color: var(--sg-teal); }
.tabs a[aria-current="page"] { color: var(--sg-teal-deep); border-bottom-color: var(--sg-magenta); }
.tabs--inline { border: 0; margin: 0; }
.filters { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-bottom: var(--s4); }
.filters input[type="search"], .filters input:not([type]) { flex: 1 1 220px; width: auto; }
.filters select { width: auto; flex: 0 1 200px; }
.filters input[type="date"] { width: auto; }
.filters label:not(.sr-only) { font-size: 13px; color: var(--muted); }
.pager { display: flex; align-items: center; gap: var(--s2); justify-content: flex-end; padding-top: var(--s3); }
.pager__info { margin-right: auto; font-size: 13px; color: var(--muted); }
.count { display: inline-block; min-width: 20px; padding: 0 6px; border-radius: 10px; background: var(--canvas); color: var(--muted); font-size: 12px; text-align: center; }

.empty { text-align: center; padding: var(--s6) var(--s4); max-width: 440px; margin: 0 auto; }
.empty__mark { width: 44px; height: 44px; color: var(--sg-sky); margin-bottom: var(--s3); }
.empty h3 { font-size: 16px; }
.empty p { color: var(--muted); font-size: 14px; }

.disclose { margin-top: var(--s4); }
.disclose > summary { cursor: pointer; font-weight: 600; font-size: 14px; color: var(--sg-teal); padding: var(--s2) 0; list-style: none; }
.disclose > summary::-webkit-details-marker { display: none; }
.disclose > summary::before { content: "+"; display: inline-block; width: 18px; font-weight: 600; }
.disclose[open] > summary::before { content: "−"; }
.disclose > .form { padding-top: var(--s3); }
.disclose.panel > summary { padding: 0; }
.disclose--inline { margin: 0; }
.row-edit__sum { display: grid; grid-template-columns: minmax(0, 2fr) 60px 60px minmax(0, 1.2fr) 60px 50px; gap: var(--s3); cursor: pointer; list-style: none; font-size: 14px; }
.row-edit__sum::-webkit-details-marker { display: none; }
.row-edit[open] { background: var(--canvas); margin: calc(var(--s3) * -1); padding: var(--s3); }
.row-edit .form { margin-top: var(--s3); }

.files { list-style: none; padding: 0; margin: 0 0 var(--s3); display: grid; gap: var(--s2); }
.files__item { display: flex; align-items: center; gap: var(--s3); padding: var(--s2); border: 1px solid var(--line); border-radius: var(--r); }
.files__ext { flex: 0 0 44px; height: 44px; display: grid; place-items: center; background: var(--tint); color: var(--sg-teal-deep); font-size: 10.5px; font-weight: 700; border-radius: var(--r-sm); }
.files__meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.files__meta a { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 500; }
.files__meta small { color: var(--muted); font-size: 12px; }
.versions { list-style: none; margin: 0; padding: 0; }
.versions__item { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: var(--s3); align-items: center; padding: var(--s3) 0; border-bottom: 1px solid var(--line); }
.versions__v { font-weight: 700; color: var(--sg-teal-deep); font-variant-numeric: tabular-nums; }
.thread { list-style: none; padding: 0; margin: 0 0 var(--s5); display: grid; gap: var(--s3); }
.thread__item { border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3) var(--s4); background: var(--surface); max-width: 88%; }
.thread__item--team { margin-left: auto; background: var(--tint); border-color: #C8E1EB; }
.thread__item--internal { margin-left: auto; background: var(--warn-bg); border-color: #F1D79A; border-style: dashed; }
.thread__who { font-size: 13px; font-weight: 600; margin-bottom: var(--s1); }
.thread__body { font-size: 14px; white-space: normal; overflow-wrap: anywhere; }
.copybox { background: var(--canvas); border-radius: var(--r); padding: var(--s3); }
.timeline { list-style: none; padding: 0 0 0 var(--s4); margin: 0 0 var(--s3); border-left: 2px solid var(--line); }
.timeline li { position: relative; display: grid; padding: 0 0 var(--s3) var(--s2); }
.timeline li::before { content: ""; position: absolute; left: -22px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--surface); border: 2px solid var(--sg-teal); }
.timeline li:first-child::before { background: var(--sg-magenta); border-color: var(--sg-magenta); }
.timeline__status { font-weight: 500; font-size: 14px; }
.notes { list-style: none; padding: 0; margin: 0; }
.notes__item { padding: var(--s4) 0; border-bottom: 1px solid var(--line); }
.notes__item.is-unread { box-shadow: inset 3px 0 0 var(--sg-magenta); padding-left: var(--s4); }
.notes__item p { margin: var(--s1) 0; font-size: 14px; color: var(--ink-2); }
.inline-actions { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; margin-top: var(--s3); }
.inline-actions form { margin: 0; }
.stack > form { margin-top: var(--s2); }

.library { display: grid; grid-template-columns: 230px minmax(0, 1fr); gap: var(--s5); }
.library__folders ul { list-style: none; padding: 0; margin: 0; position: sticky; top: 80px; }
.library__folders a { display: flex; justify-content: space-between; padding: var(--s2) var(--s3); border-radius: var(--r); text-decoration: none; color: var(--ink-2); font-size: 14px; }
.library__folders a:hover { background: var(--surface); }
.library__folders a[aria-current="page"] { background: var(--surface); color: var(--sg-teal-deep); font-weight: 600; box-shadow: inset 3px 0 0 var(--sg-magenta); }
@media (max-width: 860px) { .library { grid-template-columns: 1fr; } .library__folders ul { position: static; display: flex; overflow-x: auto; gap: var(--s1); } .library__folders a { white-space: nowrap; } }

.wizard-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: var(--s5); align-items: start; }
@media (max-width: 1020px) { .wizard-layout { grid-template-columns: 1fr; } .wizard-aside { order: -1; } }
.wizard__steps { list-style: none; counter-reset: ws; display: flex; gap: var(--s2); padding: 0; margin: 0 0 var(--s3); flex-wrap: wrap; }
.wizard__steps li { counter-increment: ws; flex: 1 1 120px; font-size: 13px; font-weight: 500; color: var(--muted); padding-top: var(--s2); border-top: 3px solid var(--line); }
.wizard__steps li::before { content: counter(ws) ". "; }
.wizard__steps li.is-current { color: var(--sg-teal-deep); border-top-color: var(--sg-magenta); }
.wizard__steps li.is-done { color: var(--ink-2); border-top-color: var(--sg-teal); }
.wizard__step { border: 0; padding: 0; margin: 0; display: grid; gap: var(--s4); min-width: 0; }
.wizard__step legend { font-size: 18px; font-weight: 600; margin-bottom: var(--s3); padding: 0; }
.wizard.is-enhanced .wizard__step:not(.is-active) { display: none; }
.wizard.is-enhanced .wizard__step.is-active { animation: stepIn .25s var(--ease); }
@keyframes stepIn { from { opacity: 0; transform: translateX(8px); } }
.wizard__nav { display: flex; flex-wrap: wrap; gap: var(--s2); align-items: center; padding-top: var(--s4); border-top: 1px solid var(--line); }
.wizard__spacer { flex: 1; }
.deliv-info p { background: var(--canvas); border-radius: var(--r); padding: var(--s3); font-size: 14px; margin: 0; }

.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: var(--s3); overflow-x: auto; padding-bottom: var(--s4); align-items: start; }
.board__col { background: #E9F0F3; border-radius: var(--r-lg); padding: var(--s3); min-height: 200px; }
.board__h { font-size: 13px; display: flex; justify-content: space-between; align-items: center; margin-bottom: var(--s3); }
.board__empty { font-size: 13px; color: var(--muted); text-align: center; padding: var(--s4) 0; }
.board__card { display: grid; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: var(--s3); margin-bottom: var(--s2); text-decoration: none; color: var(--ink); position: relative; font-size: 14px; transition: border-color .15s, transform .15s; }
.board__card:hover { border-color: var(--sg-teal); transform: translateY(-1px); }
.board__card.is-late { box-shadow: inset 3px 0 0 var(--bad); }
.board__meta { display: flex; justify-content: space-between; gap: var(--s2); font-size: 12px; color: var(--muted); margin-top: var(--s1); }
.board__flag { position: absolute; top: var(--s3); right: var(--s3); font-size: 11px; font-weight: 600; color: var(--warn); }

.bars { width: 100%; height: auto; }
.bars__l { font: 400 13px var(--font-text); fill: var(--ink-2); }
.bars__v { font: 600 12.5px var(--font-text); fill: var(--ink); }
.bars__b { fill: var(--sg-teal); }

.invoice__head { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; padding-bottom: var(--s5); border-bottom: 3px solid var(--sg-magenta); margin-bottom: var(--s5); }
.invoice__head img { width: 200px; }
.invoice__from { font-size: 13.5px; text-align: right; color: var(--ink-2); }
.invoice__meta { display: flex; justify-content: space-between; gap: var(--s5); flex-wrap: wrap; margin-bottom: var(--s4); }
.invoice__title { font-size: 22px; color: var(--sg-teal-deep); margin: 0; }

/* Motion & print ------------------------------------------------------------- */
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
  .mark-stage__sweep { display: none; }
}
@media print {
  .sidebar, .topbar, .no-print, .site-header, .site-footer, .flash-region, .inline-actions, .btn, #payment { display: none !important; }
  .app__shell { display: block; } .app__content { padding: 0; } body, .app { background: #fff; }
  .panel { border: 0; padding: 0; } .grid--detail { display: block; }
  a { color: inherit; text-decoration: none; }
}
