/* =========================================================================
   Vedatricks Partner Network — UI
   shadcn/ui component language in plain CSS, on the vedatricks.com (Astro,
   Sep 2026) brand tokens: Manrope Variable, ink #1a1a1a, night #0b0f0a,
   green #7bc142 with ink-on-green CTAs, 1280px container, fluid gutter.
   ========================================================================= */

@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-latin-ext-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0100-02BA, U+02BD-02C5, U+02C7-02CC, U+02CE-02D7, U+02DD-02FF, U+0304, U+0308, U+0329, U+1D00-1DBF, U+1E00-1E9F, U+1EF2-1EFF, U+2020, U+20A0-20AB, U+20AD-20C0, U+2113, U+2C60-2C7F, U+A720-A7FF; }
@font-face { font-family: "Manrope Variable"; font-style: normal; font-display: swap; font-weight: 200 800;
  src: url(../fonts/manrope-latin-wght-normal.woff2) format("woff2-variations");
  unicode-range: U+0000-00FF, U+0131, U+0152-0153, U+02BB-02BC, U+02C6, U+02DA, U+02DC, U+0304, U+0308, U+0329, U+2000-206F, U+20AC, U+20B9, U+2122, U+2191, U+2193, U+2212, U+2215, U+FEFF, U+FFFD; }

:root {
  /* Brand (mirrors vedatricks.com) */
  --ink: #1a1a1a; --ink-2: #3a3a3a; --ink-3: #6b6b6b;
  --line: #ebebeb; --line-strong: #dcdedb;
  --bg: #ffffff; --bg-off: #f1f3ef; --bg-soft: #fafafa;
  --green: #7bc142; --green-hover: #6fb437; --green-dark: #3f7318; --green-soft: #e8f5da;
  --green-tint: #7bc1421f; --green-line: #7bc14252; --mint: #18cb96;
  --night: #0b0f0a; --night-2: #141a12; --night-ink: #f4f6f2; --night-muted: #a9b2a5; --night-line: #ffffff24;

  /* shadcn semantic tokens */
  --background: var(--bg); --foreground: var(--ink);
  --card: #ffffff; --card-foreground: var(--ink);
  --muted: var(--bg-off); --muted-foreground: var(--ink-3);
  --primary: var(--green); --primary-foreground: var(--ink);
  --secondary: var(--bg-off); --secondary-foreground: var(--ink);
  --accent: var(--green-soft); --accent-foreground: var(--green-dark);
  --destructive: #c4321f; --destructive-soft: #fdecea;
  --success: #2f7d1e; --success-soft: var(--green-soft);
  --warning: #9a5b00; --warning-soft: #fdf1dc;
  --info: #1f5b99; --info-soft: #e8f0fa;
  --border: var(--line); --input: var(--line-strong); --ring: var(--green);

  --radius-sm: 10px; --radius-md: 14px; --radius-lg: 20px; --radius-xl: 28px; --radius-pill: 999px;
  --shadow-sm: 0 1px 2px #1a1a1a0f, 0 1px 1px #1a1a1a0a;
  --shadow-card: 0 1px 2px #1a1a1a0a, 0 10px 24px -14px #1a1a1a29;
  --shadow-card-hover: 0 2px 4px #1a1a1a0d, 0 22px 44px -18px #1a1a1a38;
  --shadow-lg: 0 24px 48px #1a1a1a1f, 0 8px 16px #1a1a1a0f;
  --ease: cubic-bezier(.22, 1, .36, 1);

  --font-sans: "Manrope Variable", "Manrope", ui-sans-serif, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --font-mono: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --container: 1280px; --gutter: clamp(20px, 4vw, 56px);
  --header-h: 72px; --side-w: 264px; --top-h: 64px;
  --pad: clamp(16px, 3vw, 32px);   /* app content padding */
  --gap: clamp(14px, 1.6vw, 20px); /* grid gaps */
}

/* ---------- Base ---------- */
*, *::before, *::after { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; text-rendering: optimizeLegibility; }
body { margin: 0; font-family: var(--font-sans); font-size: 15px; line-height: 1.6; color: var(--ink-2); background: var(--background); -webkit-font-smoothing: antialiased; }
h1, h2, h3, h4 { color: var(--foreground); margin: 0 0 .5em; line-height: 1.15; letter-spacing: -.02em; font-weight: 700; }
p { margin: 0 0 1em; }
a { color: var(--green-dark); text-underline-offset: 3px; }
img, svg { max-width: 100%; }
:focus-visible { outline: 2px solid var(--ring); outline-offset: 2px; border-radius: 6px; }
::selection { background: var(--green-soft); color: var(--ink); }
.ic { width: 18px; height: 18px; flex: none; }
.wrap { width: 100%; max-width: var(--container); margin: 0 auto; padding: 0 var(--gutter); }
.muted { color: var(--muted-foreground); }
.small { font-size: 13px; }
.mono { font-family: var(--font-mono); font-size: 12.5px; }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; } }

/* ---------- Brand lock-up ---------- */
.brand { display: inline-flex; align-items: center; gap: 10px; text-decoration: none; flex: none; }
.brand img { display: block; height: 38px; width: auto; }
.brand__tag { font-size: 10.5px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; padding: 4px 9px; border-radius: var(--radius-pill);
  color: var(--green-dark); background: var(--green-soft); border: 1px solid var(--green-line); line-height: 1; }
.on-night .brand__tag { color: var(--green); background: #7bc1421a; border-color: #7bc14247; }

/* ---------- Button (shadcn: default / secondary / outline / ghost / destructive / link) ---------- */
.btn { --h: 42px; display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: var(--h); padding: 0 20px;
  border-radius: var(--radius-pill); border: 1px solid transparent; font: inherit; font-size: 14.5px; font-weight: 700; line-height: 1;
  white-space: nowrap; text-decoration: none; cursor: pointer; user-select: none;
  background: var(--primary); color: var(--primary-foreground); box-shadow: var(--shadow-sm);
  transition: background .18s var(--ease), color .18s, border-color .18s, box-shadow .18s, transform .06s; }
.btn:hover { background: var(--green-hover); }
.btn:active { transform: translateY(1px); }
.btn .ic { width: 16px; height: 16px; }
.btn--ghost { background: var(--card); color: var(--foreground); border-color: var(--input); box-shadow: none; }   /* outline */
.btn--ghost:hover { background: var(--muted); }
.btn--secondary { background: var(--secondary); color: var(--secondary-foreground); box-shadow: none; }
.btn--secondary:hover { background: #e7eae4; }
.btn--dark { background: var(--night); color: var(--night-ink); }
.btn--dark:hover { background: #1c241a; }
.btn--danger { background: var(--card); color: var(--destructive); border-color: #f1c9c3; box-shadow: none; }
.btn--danger:hover { background: var(--destructive-soft); }
.btn--sm { --h: 34px; padding: 0 13px; font-size: 13px; }
.btn--sm .ic { width: 15px; height: 15px; }
.btn--block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .5; pointer-events: none; }
.on-night .btn--ghost { background: transparent; color: var(--night-ink); border-color: #ffffff3d; }
.on-night .btn--ghost:hover { background: #ffffff14; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; color: var(--green-dark); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }

/* ---------- Form (shadcn input / select / textarea / checkbox / label) ---------- */
.field { display: block; margin: 0 0 18px; }
.field > span { display: block; font-size: 13.5px; font-weight: 600; color: var(--foreground); margin-bottom: 7px; }
.field small { display: block; color: var(--muted-foreground); margin-top: 6px; font-size: 12.5px; line-height: 1.5; }
input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=datetime-local], input[type=date], input[type=time],
input[type=number], input[type=url], input[type=file], select, textarea {
  width: 100%; height: 42px; padding: 0 13px; font: inherit; font-size: 14.5px; color: var(--foreground);
  background: var(--card); border: 1px solid var(--input); border-radius: var(--radius-sm); box-shadow: var(--shadow-sm);
  transition: border-color .15s, box-shadow .15s; }
input[type=file] { padding: 8px 10px; height: auto; }
textarea { height: auto; min-height: 110px; padding: 11px 13px; line-height: 1.55; resize: vertical; }
select { appearance: none; padding-right: 36px; cursor: pointer;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m4 6 4 4 4-4'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 12px center; }
input::placeholder, textarea::placeholder { color: #9a9d98; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ring); box-shadow: 0 0 0 3px var(--green-tint); }
input:disabled, select:disabled, textarea:disabled, fieldset:disabled input, fieldset:disabled textarea, fieldset:disabled select { background: var(--bg-soft); color: var(--muted-foreground); cursor: not-allowed; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 12px; font-size: 14px; line-height: 1.5; cursor: pointer; }
.check input { margin: 2px 0 0; width: 17px; height: 17px; accent-color: var(--green-dark); flex: none; }
.grid2 { display: grid; gap: 0 16px; grid-template-columns: 1fr; }
@media (min-width: 640px) { .grid2 { grid-template-columns: 1fr 1fr; } }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.chips label { display: inline-flex; align-items: center; gap: 7px; height: 34px; padding: 0 13px; border: 1px solid var(--input); border-radius: var(--radius-pill);
  font-size: 13px; font-weight: 600; cursor: pointer; background: var(--card); transition: background .15s, border-color .15s; }
.chips label:has(input:checked) { background: var(--accent); border-color: var(--green-line); color: var(--accent-foreground); }
.chips input { accent-color: var(--green-dark); margin: 0; }

/* ---------- Alert / flash ---------- */
.flash { display: flex; gap: 10px; align-items: flex-start; margin: 0 0 18px; padding: 12px 16px; border-radius: var(--radius-sm); border: 1px solid; font-size: 14px; font-weight: 600; }
.flash--success { background: var(--success-soft); color: var(--success); border-color: var(--green-line); }
.flash--error { background: var(--destructive-soft); color: var(--destructive); border-color: #f1c9c3; }
.flash--info { background: var(--info-soft); color: var(--info); border-color: #c9dbf1; }
.app .main > .flash { margin: 16px var(--pad) 0; }

/* ---------- Badge ---------- */
.badge, .role { display: inline-flex; align-items: center; height: 22px; padding: 0 9px; border-radius: var(--radius-pill); font-size: 11.5px; font-weight: 700;
  white-space: nowrap; border: 1px solid transparent; background: var(--muted); color: var(--muted-foreground); line-height: 1; vertical-align: middle; }
.badge--ok { background: var(--success-soft); color: var(--success); border-color: var(--green-line); }
.badge--info { background: var(--info-soft); color: var(--info); border-color: #c9dbf1; }
.badge--warn { background: var(--warning-soft); color: var(--warning); border-color: #f3dcb1; }
.badge--bad { background: var(--destructive-soft); color: var(--destructive); border-color: #f1c9c3; }
.role--gp { background: #f0eafb; color: #5b2fae; border-color: #dccff5; }
.role--mp { background: var(--info-soft); color: var(--info); border-color: #c9dbf1; }
.role--rs { background: var(--green-soft); color: var(--green-dark); border-color: var(--green-line); }
.role--is { background: #fff1e0; color: #9a5300; border-color: #f6dbb7; }
.role--house { background: var(--night); color: var(--night-ink); }

/* =========================================================================
   Public site
   ========================================================================= */
.pub-nav { position: sticky; top: 0; z-index: 50; height: var(--header-h); background: var(--night); color: var(--night-ink); border-bottom: 1px solid var(--night-line); }
.pub-nav__in { display: flex; align-items: center; justify-content: space-between; height: 100%; gap: 20px; }
.pub-nav nav { display: flex; align-items: center; gap: clamp(14px, 2.4vw, 30px); }
.pub-nav nav a:not(.btn) { color: #dfe4dc; text-decoration: none; font-weight: 600; font-size: 15px; transition: color .15s; }
.pub-nav nav a:not(.btn):hover { color: #fff; }
@media (max-width: 820px) { .pub-nav nav a:not(.btn) { display: none; } .brand img { height: 34px; } }

.hero { position: relative; overflow: hidden; background: var(--night); color: var(--night-ink); padding: clamp(64px, 10vw, 136px) 0 clamp(64px, 9vw, 120px); }
.hero::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background: radial-gradient(900px 480px at 85% 10%, #7bc14229, transparent 60%), radial-gradient(700px 400px at 10% 110%, #18cb961a, transparent 60%); }
.hero::after { content: ""; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: linear-gradient(#ffffff0a 1px, transparent 1px), linear-gradient(90deg, #ffffff0a 1px, transparent 1px); background-size: 64px 64px;
  mask-image: radial-gradient(ellipse at 70% 30%, #000 20%, transparent 70%); }
.hero .wrap { position: relative; z-index: 1; }
.hero h1 { color: #fff; font-size: clamp(38px, 6.2vw, 76px); font-weight: 800; letter-spacing: -.035em; line-height: 1.02; max-width: 15ch; margin-bottom: 24px; }
.hero h1 span { color: var(--green); }
.hero p.lead { font-size: clamp(17px, 1.9vw, 21px); line-height: 1.55; max-width: 60ch; color: #d5dbd1; margin: 0 0 34px; }
.hero__cta { display: flex; flex-wrap: wrap; gap: 12px; }
.hero__cta .btn { --h: 52px; padding: 0 28px; font-size: 16px; }
.hero__facts { display: flex; flex-wrap: wrap; gap: 10px 28px; margin-top: 44px; padding-top: 26px; border-top: 1px solid var(--night-line); font-size: 14px; color: var(--night-muted); }
.hero__facts b { color: #fff; font-weight: 700; }
.eyebrow { display: inline-block; font-size: 12.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: var(--green-dark); margin-bottom: 16px; }
.hero .eyebrow { color: var(--night-muted); }

.section { padding: clamp(64px, 9vw, 120px) 0; }
.section--alt { background: var(--bg-off); }
.section h2 { font-size: clamp(30px, 4.2vw, 48px); font-weight: 800; letter-spacing: -.03em; line-height: 1.08; max-width: 22ch; margin-bottom: 18px; }
.section p.sub { font-size: 17.5px; max-width: 62ch; margin: 0 0 44px; color: var(--ink-2); }
.steps { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); counter-reset: s; }
.step { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-lg); padding: 28px; box-shadow: var(--shadow-card); }
.step::before { counter-increment: s; content: "0" counter(s); display: block; font-size: 13px; font-weight: 800; letter-spacing: .08em; color: var(--green-dark); margin-bottom: 18px; }
.step h3 { font-size: 19px; margin-bottom: 8px; }
.step p { margin: 0; font-size: 14.5px; }
.roles { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); }
.rolecard { border-radius: var(--radius-xl); padding: 30px; background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-card); transition: box-shadow .25s var(--ease), transform .25s var(--ease); }
.rolecard:hover { box-shadow: var(--shadow-card-hover); transform: translateY(-2px); }
.rolecard h3 { font-size: 23px; margin: 16px 0 6px; }
.rolecard ul { margin: 14px 0 0; padding: 0; list-style: none; font-size: 14.5px; }
.rolecard li { position: relative; padding-left: 24px; margin-bottom: 9px; }
.rolecard li::before { content: ""; position: absolute; left: 2px; top: 8px; width: 12px; height: 7px; border-left: 2px solid var(--green-dark); border-bottom: 2px solid var(--green-dark); transform: rotate(-45deg); }
.rolecard .who { font-size: 14px; color: var(--muted-foreground); margin: 0; }
.chain { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin: 0 0 40px; font-weight: 700; color: var(--foreground); font-size: 14.5px; }
.chain .node { padding: 9px 16px; border-radius: var(--radius-pill); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.chain .arr { color: var(--green-dark); }
.principles { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(270px, 1fr)); margin-top: 40px; }
.principle { display: flex; gap: 16px; align-items: flex-start; padding: 22px; border-radius: var(--radius-md); background: var(--card); border: 1px solid var(--border); }
.principle .ic { color: var(--green-dark); width: 20px; height: 20px; margin-top: 2px; padding: 9px; box-sizing: content-box; background: var(--green-soft); border-radius: var(--radius-sm); }
.principle strong { display: block; color: var(--foreground); margin-bottom: 4px; font-size: 15.5px; }
.principle p { margin: 0; font-size: 14px; }
.faq { max-width: 880px; border-top: 1px solid var(--border); }
.faq details { border-bottom: 1px solid var(--border); padding: 20px 0; }
.faq summary { font-weight: 700; color: var(--foreground); cursor: pointer; list-style: none; display: flex; justify-content: space-between; align-items: center; gap: 16px; font-size: 17px; }
.faq summary::-webkit-details-marker { display: none; }
.faq summary::after { content: ""; width: 9px; height: 9px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); transition: transform .2s; flex: none; margin-right: 4px; }
.faq details[open] summary::after { transform: rotate(-135deg); }
.faq details p { margin: 12px 0 0; max-width: 72ch; }
.apply { display: grid; gap: clamp(28px, 4vw, 56px); grid-template-columns: 1fr; align-items: start; }
@media (min-width: 960px) { .apply { grid-template-columns: .9fr 1.1fr; } .apply > div:first-child { position: sticky; top: calc(var(--header-h) + 32px); } }
.panel { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-xl); padding: clamp(22px, 3vw, 36px); box-shadow: var(--shadow-card); }
.pub-foot { background: var(--night); color: var(--night-muted); padding: clamp(56px, 7vw, 88px) 0 36px; font-size: 14px; }
.pub-foot a { color: #dfe4dc; text-decoration: none; }
.pub-foot a:hover { color: #fff; text-decoration: underline; }
.pub-foot h4 { color: #fff; font-size: 13px; letter-spacing: .06em; text-transform: uppercase; margin: 0 0 12px; }
.pub-foot p { line-height: 1.7; }
.pub-foot__grid { display: grid; gap: 36px; grid-template-columns: 1fr; margin-bottom: 44px; }
@media (min-width: 820px) { .pub-foot__grid { grid-template-columns: 1.4fr 1fr 1fr; } }
.pub-foot .brand img { height: 44px; margin-bottom: 16px; }
.pub-foot__fine { font-size: 12.5px; color: #8a9386; border-top: 1px solid var(--night-line); padding-top: 22px; margin: 0; max-width: 92ch; line-height: 1.6; }

/* Auth / invite */
.auth { min-height: calc(100vh - var(--header-h)); display: grid; place-items: center; padding: clamp(28px, 6vw, 72px) 16px; background: var(--bg-off); }
.auth__card { width: 100%; max-width: 460px; }
.auth__card h1 { font-size: 26px; letter-spacing: -.025em; }
.auth__card .lead { margin: 0 0 24px; color: var(--muted-foreground); }
.invitecard { width: 100%; max-width: 640px; }
.inviter { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border-radius: var(--radius-md); background: var(--accent); border: 1px solid var(--green-line); margin-bottom: 24px; font-size: 14.5px; }
.inviter .avatar { background: var(--card); }
.terms-summary { font-size: 14px; background: var(--bg-soft); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 16px 20px; margin: 0 0 24px; }
.terms-summary ul { margin: 8px 0 0; padding-left: 18px; }
.terms-summary li { margin-bottom: 4px; }
.pwmeter { height: 5px; border-radius: 3px; background: var(--muted); margin-top: 8px; overflow: hidden; }
.pwmeter i { display: block; height: 100%; width: 0; background: var(--destructive); transition: width .2s, background .2s; }

/* =========================================================================
   App shell (partner PWA + admin) — shadcn sidebar layout
   ========================================================================= */
.app { background: var(--bg-soft); }
.shell { display: grid; grid-template-columns: 1fr; min-height: 100vh; }
@media (min-width: 1024px) { .shell { grid-template-columns: var(--side-w) minmax(0, 1fr); } }
.side { display: none; position: sticky; top: 0; height: 100vh; background: var(--card); border-right: 1px solid var(--border); padding: 20px 14px 16px; flex-direction: column; }
@media (min-width: 1024px) { .side { display: flex; } }
.side .brand { padding: 2px 10px 22px; margin-bottom: 6px; border-bottom: 1px solid var(--border); }
.side .brand img { height: 34px; }
.side__label { font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; color: #9a9d98; padding: 14px 12px 6px; }
.side__nav { display: flex; flex-direction: column; gap: 2px; flex: 1; overflow-y: auto; padding-top: 6px; }
.side__nav a { display: flex; align-items: center; gap: 11px; height: 40px; padding: 0 12px; border-radius: var(--radius-sm); color: var(--ink-2); text-decoration: none; font-weight: 600; font-size: 14px; transition: background .15s, color .15s; }
.side__nav a .ic { color: var(--ink-3); }
.side__nav a:hover { background: var(--muted); color: var(--foreground); }
.side__nav a.is-active { background: var(--accent); color: var(--accent-foreground); }
.side__nav a.is-active .ic { color: var(--accent-foreground); }
.side__nav .count { margin-left: auto; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: var(--radius-pill); background: var(--green); color: var(--ink); font-size: 11px; font-weight: 800; }
.side__me { display: flex; gap: 11px; align-items: center; padding: 14px 8px 2px; margin-top: 8px; border-top: 1px solid var(--border); min-width: 0; }
.side__me div:last-child { min-width: 0; }
.side__me strong { display: block; color: var(--foreground); font-size: 13.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side__me small { display: block; color: var(--muted-foreground); font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 14px; flex: none; border: 1px solid var(--green-line); }

.main { min-width: 0; padding-bottom: 92px; }
@media (min-width: 1024px) { .main { padding-bottom: 40px; } }
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; justify-content: space-between; gap: 12px; height: var(--top-h); padding: 0 var(--pad);
  padding-top: env(safe-area-inset-top); background: #ffffffd9; backdrop-filter: saturate(180%) blur(12px); border-bottom: 1px solid var(--border); }
.top__title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.top__mark { display: block; width: 32px; height: 32px; flex: none; }
@media (min-width: 1024px) { .top__mark { display: none; } }
.top h1 { font-size: 18px; margin: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.top__actions { display: flex; gap: 4px; }
.iconbtn { position: relative; display: grid; place-items: center; width: 40px; height: 40px; border-radius: var(--radius-sm); color: var(--ink-2); transition: background .15s; }
.iconbtn:hover { background: var(--muted); }
.iconbtn .dot { position: absolute; top: 4px; right: 3px; min-width: 17px; height: 17px; border-radius: 9px; background: var(--destructive); color: #fff; font-size: 10px; font-weight: 800; display: grid; place-items: center; padding: 0 4px; border: 2px solid #fff; }
.content { padding: var(--pad); max-width: calc(var(--container) + 2 * 32px); }
.pagehead { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 12px; margin-bottom: 22px; }
.pagehead p { margin: 0; color: var(--muted-foreground); }
/* ---------- Card ---------- */
.card { background: var(--card); color: var(--card-foreground); border: 1px solid var(--border); border-radius: var(--radius-md); padding: clamp(18px, 2vw, 24px); margin-bottom: var(--gap); box-shadow: var(--shadow-card); }
.card > h2 { font-size: 16px; font-weight: 700; letter-spacing: -.01em; margin: 0 0 16px; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 8px 12px; }
.card > h2 a.small { font-weight: 600; }
.card > h2 form { display: inline; }
.cards { display: grid; gap: var(--gap); grid-template-columns: minmax(0, 1fr); align-items: start; }
@media (min-width: 1100px) { .cards--2 { grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr); } }
.cards > .card, .cards > div > .card:last-child { margin-bottom: 0; }
.cards > div { display: flex; flex-direction: column; gap: var(--gap); }
.cards > div > .card { margin-bottom: 0; }
.stats { display: grid; gap: var(--gap); grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: var(--gap); }
@media (min-width: 800px) { .stats { grid-template-columns: repeat(4, minmax(0, 1fr)); } }
.stat { background: var(--card); border: 1px solid var(--border); border-radius: var(--radius-md); padding: 18px 20px; box-shadow: var(--shadow-card); }
.stat span { display: block; font-size: 13px; color: var(--muted-foreground); font-weight: 600; margin-top: 6px; }
.stat b { display: block; font-size: 28px; font-weight: 800; color: var(--foreground); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }

/* ---------- Table ---------- */
.tablewrap { overflow-x: auto; margin: 0 calc(-1 * clamp(18px, 2vw, 24px)); }
table.t { width: 100%; border-collapse: collapse; font-size: 14px; }
.t th { text-align: left; height: 40px; padding: 0 12px; font-size: 12px; font-weight: 600; color: var(--muted-foreground); border-bottom: 1px solid var(--border); white-space: nowrap; background: var(--bg-soft); }
.t th:first-child, .t td:first-child { padding-left: clamp(18px, 2vw, 24px); }
.t th:last-child, .t td:last-child { padding-right: clamp(18px, 2vw, 24px); }
.t td { padding: 12px; border-bottom: 1px solid var(--border); vertical-align: middle; }
.t tbody tr { transition: background .12s; }
.t tbody tr:hover { background: #fafbf9; }
.t tr:last-child td { border-bottom: 0; }
.t td.actions { white-space: nowrap; text-align: right; }
.t td.actions form { display: inline-block; margin-left: 4px; }
.t a.rowlink { color: var(--foreground); font-weight: 700; text-decoration: none; }
.t a.rowlink:hover { color: var(--green-dark); text-decoration: underline; }
.empty { text-align: center; padding: 32px 12px; color: var(--muted-foreground); }
.empty .ic { display: block; margin: 0 auto 10px; width: 40px; height: 40px; padding: 10px; color: var(--ink-3); background: var(--muted); border-radius: 50%; box-sizing: border-box; }

/* Toolbar / filters / pager */
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: var(--gap); }
.toolbar form { display: flex; flex-wrap: wrap; gap: 8px; flex: 1; align-items: center; }
.toolbar input, .toolbar select { height: 36px; width: auto; flex: 1 1 170px; font-size: 13.5px; }
.toolbar select { flex: 0 1 180px; }
.pager { display: flex; gap: 16px; justify-content: center; align-items: center; padding-top: 18px; font-size: 13.5px; color: var(--muted-foreground); }
.pager a { font-weight: 600; text-decoration: none; }
.kv { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 20px; font-size: 14px; margin: 0; }
.kv dt { color: var(--muted-foreground); font-weight: 600; }
.kv dd { margin: 0; color: var(--foreground); min-width: 0; overflow-wrap: anywhere; }

/* Onboarding checklist */
.checklist { list-style: none; margin: 0; padding: 0; }
.checklist li { display: flex; gap: 14px; align-items: center; padding: 14px 0; border-bottom: 1px solid var(--border); }
.checklist li:last-child { border-bottom: 0; padding-bottom: 0; }
.checklist .tick { width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; flex: none; border: 2px solid var(--line-strong); color: var(--ink); background: var(--card); }
.checklist .done .tick { background: var(--green); border-color: var(--green); }
.checklist .cancelled .tick { background: var(--muted); border-color: var(--line-strong); color: var(--ink-3); }
.checklist .cancelled strong { color: var(--ink-3); text-decoration: line-through; text-decoration-color: var(--line-strong); }
.checklist .now .tick { border-color: var(--green); box-shadow: 0 0 0 4px var(--green-tint); }
.checklist .tick .ic { width: 14px; height: 14px; stroke-width: 3; }
.checklist strong { display: block; color: var(--foreground); font-size: 14.5px; }
.checklist .done strong { color: var(--ink-3); }
.checklist small { color: var(--muted-foreground); font-size: 13px; }
.checklist .go { margin-left: auto; flex: none; }
.progress { height: 6px; background: var(--muted); border-radius: 3px; overflow: hidden; margin: 0 0 8px; }
.progress i { display: block; height: 100%; background: var(--green); border-radius: 3px; transition: width .4s var(--ease); }

/* Chain + tree */
.upline { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; font-size: 13.5px; }
.upline .node { display: inline-flex; align-items: center; gap: 6px; height: 32px; padding: 0 12px; border-radius: var(--radius-pill); background: var(--muted); font-weight: 600; color: var(--foreground); border: 1px solid var(--border); }
.upline .node.me { background: var(--accent); color: var(--accent-foreground); border-color: var(--green-line); }
.upline .sep { color: var(--ink-3); }
.tree, .tree ul { list-style: none; margin: 0; padding: 0; }
.tree ul { margin-left: 16px; padding-left: 18px; border-left: 2px solid var(--green-soft); }
.tree li { padding: 5px 0; }
.tree .tn { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; padding: 11px 14px; border-radius: var(--radius-sm); background: var(--card); border: 1px solid var(--border); box-shadow: var(--shadow-sm); }
.tree .tn strong { color: var(--foreground); }
.tree .tn .meta { color: var(--muted-foreground); font-size: 12.5px; margin-left: auto; }

/* Feed (notifications, announcements) */
.feed { list-style: none; margin: 0; padding: 0; }
.feed li { padding: 14px 0; border-bottom: 1px solid var(--border); }
.feed li:first-child { padding-top: 0; }
.feed li:last-child { border-bottom: 0; padding-bottom: 0; }
.feed li.unread { position: relative; padding-left: 16px; }
.feed li.unread::before { content: ""; position: absolute; left: 0; top: 21px; width: 7px; height: 7px; border-radius: 50%; background: var(--green); }
.feed li.unread:first-child::before { top: 7px; }
.feed > li > strong, .feed > li > a > strong { color: var(--foreground); display: block; }
.feed .prose strong { color: var(--foreground); }
.feed time { font-size: 12px; color: var(--muted-foreground); }
.prose p { margin: 0 0 10px; } .prose ul, .prose ol { margin: 0 0 12px; padding-left: 22px; } .prose li { margin-bottom: 4px; }
.prose h2 { font-size: 21px; margin: 6px 0 10px; letter-spacing: -.02em; } .prose h3 { font-size: 16px; margin: 22px 0 8px; } .prose h2 + p, .prose h3 + p { margin-top: 0; }
.feed .prose h2 { font-size: 16px; } .feed .prose h3 { font-size: 15px; margin-top: 12px; }
.soon { display: grid; gap: var(--gap); grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); }
.soon .card { margin: 0; }
.soon .card > .ic { color: var(--green-dark); width: 22px; height: 22px; padding: 10px; box-sizing: content-box; background: var(--green-soft); border-radius: var(--radius-sm); margin-bottom: 14px; }
.soon h3 { font-size: 16px; margin-bottom: 6px; }
.soon p { font-size: 14px; margin: 0; color: var(--muted-foreground); }
.section .soon .card { box-shadow: none; }
.sharebox { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; padding: 12px; background: var(--accent); border: 1px solid var(--green-line); border-radius: var(--radius-md); margin-bottom: var(--gap); }
.sharebox input { flex: 1 1 260px; height: 36px; font-size: 13px; font-family: var(--font-mono); }
.preview-frame { display: block; width: 100%; height: 680px; border: 1px solid var(--border); border-radius: var(--radius-sm); background: var(--bg-off); }
.highlight { border-color: var(--green-line); box-shadow: 0 0 0 3px var(--green-tint), var(--shadow-card); }
.plainlist { list-style: none; margin: 0; padding: 0; }
.plainlist li:last-child { border-bottom: 0 !important; }

/* Hero video: poster is the LCP image; the loop fades in once it can play. A left-weighted scrim keeps the copy legible. */
.hero__media { position: absolute; inset: 0; z-index: 0; }
.hero__media img, .hero__media video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.hero__media video { opacity: 0; transition: opacity .9s ease; }
.hero__media video.is-playing { opacity: 1; }
.hero--video .wrap { z-index: 2; }
.hero--video::before { z-index: 1; background: linear-gradient(90deg, #0b100cf2 0%, #0b100cd9 38%, #0b100c8c 68%, #0b100c4d 100%),
  linear-gradient(0deg, #0b100ccc 0%, transparent 35%), radial-gradient(900px 480px at 85% 10%, #7bc14222, transparent 60%); }
.hero--video::after { z-index: 1; opacity: .25; }
@media (max-width: 720px) { .hero--video::before { background: linear-gradient(0deg, #0b100cf2 0%, #0b100cd1 55%, #0b100c99 100%); } }
@media (prefers-reduced-motion: reduce) { .hero__media video { display: none; } }

/* Statements print as a clean document. */
@media print {
  .side, .top, .bottombar, .fab, .ptr, .pushbanner, .noprint, .flash { display: none !important; }
  .shell, .main, .content { display: block !important; margin: 0 !important; padding: 0 !important; }
  .card { box-shadow: none !important; border: 0 !important; break-inside: avoid; }
  body { background: #fff !important; }
}

/* =========================================================================
   App layer (v1.9): installed-app feel on phones. Tab bar + More sheet,
   bottom-sheet dialogs, card lists instead of wide tables, filter sheet,
   chat-style assistant, notification centre, toasts, pull to refresh.
   ========================================================================= */
@view-transition { navigation: auto; }
.top { view-transition-name: pn-top; }
.bottombar { view-transition-name: pn-tabs; }
::view-transition-old(root), ::view-transition-new(root) { animation-duration: .18s; }

@media (max-width: 1023px) { .desk-only { display: none !important; } }
@media (min-width: 1024px) { .phone-only { display: none !important; } }
html { -webkit-tap-highlight-color: transparent; }
body.app { overscroll-behavior-y: none; }
.app a, .app button { touch-action: manipulation; }

/* ---- Dialogs: centred card on desktop, bottom sheet on phones ---- */
dialog.modal, dialog.sheet { border: 0; padding: 0; color: var(--ink-2); background: var(--card); max-height: 88dvh; overflow: auto; box-shadow: var(--shadow-lg); }
dialog.modal { width: min(560px, calc(100vw - 32px)); border-radius: var(--radius-lg); }
dialog.modal > form, dialog.modal > div { padding: 24px; }
dialog.modal h2 { font-size: 19px; margin-bottom: 18px; }
dialog::backdrop { background: #0b0f0a73; backdrop-filter: blur(2px); }
dialog[open] { animation: dlg-in .22s var(--ease); }
@keyframes dlg-in { from { opacity: 0; transform: translateY(12px) scale(.98); } }
@keyframes sheet-in { from { transform: translateY(100%); } }
dialog.sheet { width: min(480px, calc(100vw - 32px)); border-radius: var(--radius-lg); }
@media (max-width: 720px) {
  dialog.modal, dialog.sheet { margin: auto 0 0; width: 100%; max-width: 100%; border-radius: 22px 22px 0 0; max-height: 92dvh;
    padding-bottom: env(safe-area-inset-bottom); }
  dialog.modal[open], dialog.sheet[open] { animation: sheet-in .28s var(--ease); }
  dialog.modal > form, dialog.modal > div { padding: 22px 18px 18px; }
  dialog.modal > form::before { content: ""; display: block; width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: -10px auto 16px; }
}
.sheet__grip { width: 40px; height: 5px; border-radius: 3px; background: var(--line-strong); margin: 10px auto 4px; cursor: pointer; }
@media (min-width: 721px) { .sheet__grip { display: none; } dialog.sheet { padding-top: 8px; } }
.sheet__me { display: flex; align-items: center; gap: 12px; padding: 10px 18px 14px; border-bottom: 1px solid var(--border); }
.sheet__me div { flex: 1; min-width: 0; }
.sheet__me strong { display: block; color: var(--foreground); font-size: 16px; }
.sheet__me small { display: block; color: var(--muted-foreground); font-size: 12.5px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sheet__grid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; padding: 14px 12px 8px; }
.sheet__grid a { display: flex; flex-direction: column; align-items: center; gap: 7px; padding: 10px 2px; border-radius: var(--radius-md); text-decoration: none;
  color: var(--ink-2); font-size: 12px; font-weight: 700; text-align: center; line-height: 1.2; }
.sheet__grid a:active { background: var(--muted); }
.sg__ic { position: relative; display: grid; place-items: center; width: 48px; height: 48px; border-radius: 16px; background: var(--bg-off); color: var(--ink-2); }
.sg__ic .ic { width: 22px; height: 22px; }
.sheet__grid a.is-active .sg__ic { background: var(--accent); color: var(--accent-foreground); }
.sheet__list { padding: 4px 10px 12px; border-top: 1px solid var(--border); margin-top: 6px; }
.sheet__list a, .sheet__list button { display: flex; align-items: center; gap: 14px; width: 100%; height: 52px; padding: 0 10px; border: 0; background: none; font: inherit;
  font-size: 15px; font-weight: 600; color: var(--foreground); text-decoration: none; border-radius: var(--radius-sm); cursor: pointer; text-align: left; }
.sheet__list a span, .sheet__list button span { flex: 1; }
.sheet__list a:active, .sheet__list button:active { background: var(--muted); }
.sheet__list .ic { color: var(--ink-3); }
.sheet__list .chev { width: 16px; height: 16px; }
.sheet__list .is-danger, .sheet__list .is-danger .ic { color: var(--destructive); }
.sheet__ios { margin: 0 18px 16px; padding: 12px 14px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); }

/* ---- Top bar + tab bar ---- */
.avatar--sm { width: 32px; height: 32px; font-size: 13px; }
.iconbtn { border: 0; background: none; cursor: pointer; padding: 0; font: inherit; }
.iconbtn--me { width: 44px; }
@media (min-width: 1024px) { .iconbtn--me { display: none; } }
@media (max-width: 1023px) {
  .top { height: calc(56px + env(safe-area-inset-top)); padding-left: 16px; padding-right: 6px; background: #fffffff2; }
  .top h1 { font-size: 19px; font-weight: 800; letter-spacing: -.025em; }
  .top__mark { width: 30px; height: 30px; border-radius: 9px; }
  .top__actions { gap: 0; }
  .iconbtn { width: 42px; height: 42px; }
  .main { padding-bottom: calc(88px + env(safe-area-inset-bottom)); }
  .app .main > .flash { margin: 12px 16px 0; }
}
.bottombar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 30; display: flex; background: #fffffff5; backdrop-filter: saturate(180%) blur(14px);
  border-top: 1px solid var(--border); padding: 0 4px env(safe-area-inset-bottom); box-shadow: 0 -6px 20px -14px #1a1a1a40; }
@media (min-width: 1024px) { .bottombar { display: none; } }
.bottombar a, .bottombar button { flex: 1; min-width: 0; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 2px 6px; border: 0; background: none;
  font: inherit; color: var(--muted-foreground); text-decoration: none; font-size: 10.5px; font-weight: 700; letter-spacing: .01em; cursor: pointer; }
.bottombar a > span:last-child, .bottombar button > span:last-child { max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.bb__ic { position: relative; display: grid; place-items: center; width: 56px; height: 30px; border-radius: var(--radius-pill); transition: background .2s var(--ease); }
.bb__ic .ic { width: 22px; height: 22px; }
.bottombar .is-active { color: var(--green-dark); }
.bottombar .is-active .bb__ic { background: var(--accent); }
.bottombar .is-active .ic { stroke-width: 2.4; }
.bb__count { position: absolute; top: -3px; right: 8px; min-width: 17px; height: 17px; padding: 0 4px; border-radius: 9px; background: var(--destructive); color: #fff;
  font-size: 10px; font-weight: 800; display: grid; place-items: center; border: 2px solid #fff; line-height: 1; }
.sg__ic .bb__count { top: -4px; right: -4px; }

/* Floating action button (phones) */
.fab { position: fixed; right: 16px; bottom: calc(76px + env(safe-area-inset-bottom)); z-index: 29; display: inline-flex; align-items: center; gap: 8px; height: 54px; padding: 0 20px 0 16px;
  border-radius: 18px; background: var(--night); color: #fff; text-decoration: none; font-weight: 800; font-size: 15px; box-shadow: 0 10px 24px -8px #0b0f0a80, 0 2px 6px #0b0f0a33;
  transition: width .2s var(--ease), padding .2s var(--ease); }
.fab .ic { width: 22px; height: 22px; color: var(--green); stroke-width: 2.6; }
.fab:active { transform: scale(.97); }
@media (min-width: 1024px) { .fab { display: none; } }
.fab.is-compact span { display: none; }
.fab.is-compact { padding: 0; width: 54px; justify-content: center; }

/* Flash → toast on phones */
@media (max-width: 1023px) {
  .flash.is-toast { position: fixed; left: 12px; right: 12px; top: calc(64px + env(safe-area-inset-top)); z-index: 40; margin: 0 !important; box-shadow: var(--shadow-lg);
    border-radius: var(--radius-md); animation: toast-in .3s var(--ease); }
  .flash.is-toast.is-gone { opacity: 0; transform: translateY(-12px); transition: opacity .3s, transform .3s; pointer-events: none; }
}
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px); } }

/* ---- Phone density ---- */
@media (max-width: 720px) {
  input[type=text], input[type=email], input[type=tel], input[type=password], input[type=search], input[type=datetime-local], input[type=date], input[type=time],
  input[type=number], input[type=url], select, textarea { font-size: 16px; height: 46px; }   /* 16px: iOS never zooms the page on focus */
  textarea { height: auto; }
  input[type=date], input[type=datetime-local], input[type=time] { -webkit-appearance: none; appearance: none; display: flex; align-items: center; min-width: 0; }
  .content { padding: 14px 14px 20px; }
  .card { border-radius: 18px; padding: 16px; margin-bottom: 12px; }
  .card > h2 { font-size: 15.5px; margin-bottom: 12px; }
  .stats { gap: 10px; margin-bottom: 12px; }
  .stat { padding: 14px 15px; border-radius: 16px; }
  .stat b { font-size: 24px; }
  .cards { gap: 12px; }
  .pagehead { margin-bottom: 14px; gap: 10px; }
  .pagehead > div:first-child p { font-size: 14px; line-height: 1.5; }
  .btn { --h: 46px; }
  .btn--sm { --h: 38px; }
  .kv { grid-template-columns: minmax(0, 1fr); gap: 2px; }
  .kv dt { font-size: 12.5px; margin-top: 10px; }
  .kv dt:first-child { margin-top: 0; }
  .tablewrap { margin: 0 -16px; }
  .t th:first-child, .t td:first-child { padding-left: 16px; }
  .t th:last-child, .t td:last-child { padding-right: 16px; }
  /* Action rows and tab rows scroll sideways instead of stacking */
  .pagehead > div:last-child:not(:first-child), .toolbar.is-scroller, .scroller { display: flex; flex-wrap: nowrap !important; overflow-x: auto; scrollbar-width: none;
    margin-left: -14px; margin-right: -14px; padding: 2px 14px; width: calc(100% + 28px); }
  .pagehead > div:last-child:not(:first-child)::-webkit-scrollbar, .toolbar.is-scroller::-webkit-scrollbar, .scroller::-webkit-scrollbar { display: none; }
  .pagehead > div:last-child:not(:first-child) > *, .toolbar.is-scroller > *, .scroller > * { flex: none; }
}

/* Segmented tabs (lead tabs and the like) */
.segs { display: flex; gap: 8px; margin-bottom: 12px; }
.segs a { display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: var(--radius-pill); border: 1px solid var(--input); background: var(--card);
  color: var(--foreground); font-size: 13.5px; font-weight: 700; text-decoration: none; white-space: nowrap; }
.segs a b { font-size: 11.5px; font-weight: 800; min-width: 20px; height: 20px; padding: 0 6px; display: grid; place-items: center; border-radius: 10px; background: var(--muted); color: var(--ink-2); }
.segs a.is-active { background: var(--night); border-color: var(--night); color: #fff; }
.segs a.is-active b { background: var(--green); color: var(--ink); }
.segs a.is-alert:not(.is-active) b { background: var(--destructive-soft); color: var(--destructive); }
@media (min-width: 721px) { .segs { flex-wrap: wrap; } }

/* ---- Wide tables become card lists on phones (app.js tags them .t--cards and copies the headers) ---- */
@media (max-width: 720px) {
  .tablewrap:has(.t--cards) { overflow: visible; }
  table.t--cards, .t--cards tbody, .t--cards tr, .t--cards td { display: block; width: 100%; }
  .t--cards thead { display: none; }
  .t--cards tr { position: relative; padding: 14px 16px; border-bottom: 1px solid var(--border); }
  .t--cards tr:last-child { border-bottom: 0; }
  .t--cards td { display: flex; justify-content: space-between; align-items: baseline; gap: 14px; padding: 3px 0 !important; border: 0; text-align: right; }
  .t--cards td::before { content: attr(data-label); flex: none; color: var(--muted-foreground); font-size: 12.5px; font-weight: 600; text-align: left; }
  .t--cards td[data-label=""]::before { display: none; }
  .t--cards td:first-child { display: block; text-align: left; padding-bottom: 6px !important; font-size: 15px; }
  .t--cards td:first-child::before { display: none; }
  .t--cards td:empty { display: none; }
  .t--cards td.actions { justify-content: flex-start; flex-wrap: wrap; gap: 8px; padding-top: 10px !important; text-align: left; white-space: normal; }
  .t--cards td.actions::before { display: none; }
  .t--cards td.actions form { margin: 0; }
  .t--cards tbody tr:hover { background: none; }
}

/* ---- Filter sheet (app.js moves secondary filters here on phones) ---- */
.filterbar { display: flex; gap: 8px; align-items: center; width: 100%; }
.filterbar input[type=search] { flex: 1 !important; min-width: 0; width: auto; padding-left: 40px; border-radius: var(--radius-pill);
  background: var(--card) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='18' height='18' viewBox='0 0 24 24' fill='none' stroke='%236b6b6b' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='8'/%3E%3Cpath d='m21 21-4.3-4.3'/%3E%3C/svg%3E") no-repeat 14px center; }
.filterbtn { position: relative; flex: none; display: inline-flex; align-items: center; gap: 6px; height: 46px; padding: 0 16px; border-radius: var(--radius-pill); border: 1px solid var(--input);
  background: var(--card); font: inherit; font-weight: 700; font-size: 14px; color: var(--foreground); cursor: pointer; }
.filterbtn b { min-width: 20px; height: 20px; border-radius: 10px; background: var(--green); color: var(--ink); font-size: 11.5px; display: grid; place-items: center; padding: 0 5px; }
.fsheet__head { display: flex; align-items: center; justify-content: space-between; padding: 6px 18px 8px; }
.fsheet__head h2 { margin: 0; font-size: 18px; }
.fsheet__body { padding: 6px 18px 8px; display: grid; gap: 14px; }
.fsheet__body .field { margin: 0; }
.fsheet__body .field > span { font-size: 12.5px; margin-bottom: 5px; color: var(--muted-foreground); }
.fsheet__body input, .fsheet__body select { width: 100% !important; flex: none !important; height: 46px; font-size: 16px; }
.fsheet__foot { position: sticky; bottom: 0; display: flex; gap: 10px; padding: 14px 18px 16px; background: var(--card); border-top: 1px solid var(--border); }
.fsheet__foot .btn { flex: 1; }

/* ---- Lead cards (phones) ---- */
.lcards { list-style: none; margin: 0 -16px; padding: 0; }
.lcard { position: relative; display: grid; grid-template-columns: 42px minmax(0, 1fr); gap: 0 12px; padding: 14px 16px; border-bottom: 1px solid var(--border); }
.lcard:last-child { border-bottom: 0; }
.lcard:active { background: #fafbf9; }
.lcard__av { width: 42px; height: 42px; border-radius: 14px; display: grid; place-items: center; font-weight: 800; font-size: 15px; color: var(--green-dark); background: var(--green-soft); }
.lcard__av.is-hot { background: #fde6e2; color: var(--destructive); }
.lcard__top { display: flex; align-items: flex-start; gap: 8px; min-width: 0; }
.lcard__name { flex: 1; min-width: 0; color: var(--foreground); font-weight: 800; font-size: 15.5px; line-height: 1.3; text-decoration: none; overflow-wrap: anywhere; }
.lcard__name::after { content: ""; position: absolute; inset: 0; }   /* the whole card opens the lead */
.lcard__meta { color: var(--muted-foreground); font-size: 13px; margin-top: 2px; overflow-wrap: anywhere; }
.lcard__fu { display: flex; align-items: center; gap: 6px; margin-top: 8px; padding: 5px 10px; border-radius: 9px; background: var(--bg-off); font-size: 12.5px; font-weight: 700;
  color: var(--ink-2); max-width: 100%; width: fit-content; }
.lcard__fu .ic { width: 14px; height: 14px; flex: none; }
.lcard__fu span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; font-weight: 500; }
.lcard__fu.is-late { background: var(--destructive-soft); color: var(--destructive); }
.lcard__fu.is-today { background: var(--warning-soft); color: var(--warning); }
.lcard__tags { display: flex; flex-wrap: wrap; gap: 5px; margin-top: 8px; }
.lcard__acts { position: relative; z-index: 1; display: flex; flex-wrap: wrap; gap: 8px; margin-top: 10px; }
.lcard__acts a, .lcard__acts button { display: inline-flex; align-items: center; justify-content: center; gap: 6px; height: 36px; padding: 0 13px; border-radius: var(--radius-pill);
  border: 1px solid var(--input); background: var(--card); color: var(--foreground); font: inherit; font-size: 13px; font-weight: 700; text-decoration: none; cursor: pointer; }
.lcard__acts form { margin: 0; }
.lcard__acts .ic { width: 16px; height: 16px; }
.lcard__acts .is-wa { color: #128c4b; }
.lcard__acts .is-primary { background: var(--green); border-color: var(--green); }

/* ---- Notification centre ---- */
.card--flush { padding: 0; overflow: hidden; }
.card__bar { padding: 16px 18px 12px; margin: 0 !important; }
.nlist__day { padding: 10px 18px 6px; font-size: 11.5px; font-weight: 800; letter-spacing: .07em; text-transform: uppercase; color: var(--muted-foreground); background: var(--bg-soft);
  border-top: 1px solid var(--border); border-bottom: 1px solid var(--border); }
.nitem { display: flex; gap: 12px; padding: 14px 40px 14px 18px; border-bottom: 1px solid var(--border); text-decoration: none; color: var(--ink-2); position: relative; }
.nitem:hover, .nitem:active { background: #fafbf9; }
.nitem__ic { width: 38px; height: 38px; flex: none; border-radius: 12px; display: grid; place-items: center; background: var(--bg-off); color: var(--ink-3); }
.nitem.is-unread .nitem__ic { background: var(--accent); color: var(--accent-foreground); }
.nitem__body { min-width: 0; flex: 1; display: flex; flex-direction: column; gap: 2px; }
.nitem__body strong { color: var(--foreground); font-size: 14.5px; line-height: 1.35; }
.nitem:not(.is-unread) .nitem__body strong { font-weight: 600; }
.nitem__body > span { font-size: 13.5px; line-height: 1.45; }
.nitem time { font-size: 12px; color: var(--muted-foreground); }
.nitem.is-unread::after { content: ""; position: absolute; right: 18px; top: 22px; width: 9px; height: 9px; border-radius: 50%; background: var(--green); }
.pushcard__row { display: flex; align-items: center; gap: 14px; }
.pushcard__ic { width: 44px; height: 44px; flex: none; border-radius: 14px; display: grid; place-items: center; background: var(--night); color: var(--green); }
.pushcard__txt { flex: 1; min-width: 0; }
.pushcard__txt strong { display: block; color: var(--foreground); }
.pushcard__txt span { display: block; line-height: 1.45; }
.pushcard__foot { margin-top: 12px; padding-left: 58px; }
.pushcard__ios { margin-top: 12px; padding: 10px 12px; border-radius: var(--radius-sm); background: var(--info-soft); color: var(--info); }
.switch { position: relative; flex: none; width: 50px; height: 30px; cursor: pointer; }
.switch input { position: absolute; inset: 0; opacity: 0; width: 100%; height: 100%; margin: 0; cursor: pointer; z-index: 1; }
.switch i { position: absolute; inset: 0; border-radius: 15px; background: var(--line-strong); transition: background .2s; pointer-events: none; }
.switch i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 24px; height: 24px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px #0003; transition: transform .2s var(--ease); }
.switch input:checked + i { background: var(--green); }
.switch input:checked + i::after { transform: translateX(20px); }
.switch input:focus-visible + i { outline: 2px solid var(--ring); outline-offset: 2px; }
.switch input:disabled + i { opacity: .5; }

/* "Turn on notifications" banner (app.js, once per device until answered) */
.pushbanner { display: flex; align-items: center; gap: 12px; margin: 0 0 14px; padding: 12px 14px; border-radius: 16px; background: var(--night); color: var(--night-ink); }
.pushbanner > .ic { color: var(--green); width: 22px; height: 22px; flex: none; }
.pushbanner p { flex: 1; margin: 0; font-size: 13px; line-height: 1.4; color: var(--night-muted); }
.pushbanner p strong { color: #fff; display: block; font-size: 14.5px; }
.pushbanner .btn { --h: 36px; padding: 0 14px; font-size: 13px; flex: none; }
.pushbanner .iconbtn { color: var(--night-muted); width: 32px; height: 32px; flex: none; }

/* ---- Assistant: chat layout ---- */
.chat { display: flex; flex-direction: column; }
.chat__log { display: flex; flex-direction: column; gap: 10px; min-height: 260px; max-height: 62vh; overflow-y: auto; padding: 4px 2px 8px; overscroll-behavior: contain; }
.chat__hello { margin: auto 0; padding: 18px 4px; text-align: center; }
.chat__hello > .ic { width: 28px; height: 28px; padding: 13px; box-sizing: content-box; border-radius: 18px; background: var(--night); color: var(--green); }
.chat__hello h3 { font-size: 20px; margin: 14px 0 4px; }
.chat__hello p { color: var(--muted-foreground); font-size: 14px; margin: 0 auto 18px; max-width: 46ch; }
.chat__ideas { display: grid; gap: 8px; text-align: left; max-width: 560px; margin: 0 auto; }
.chat__ideas button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 12px 14px; border-radius: 14px; border: 1px solid var(--border); background: var(--card);
  font: inherit; font-size: 14px; font-weight: 600; color: var(--foreground); text-align: left; cursor: pointer; line-height: 1.4; box-shadow: var(--shadow-sm); }
.chat__ideas button .ic { color: var(--green-dark); width: 16px; height: 16px; flex: none; }
.chat__ideas button:active { background: var(--muted); }
.chat__composer { display: flex; align-items: flex-end; gap: 8px; margin-top: 10px; padding: 5px 5px 5px 16px; border: 1px solid var(--input); border-radius: 26px; background: var(--card);
  box-shadow: var(--shadow-card); }
.chat__composer:focus-within { border-color: var(--ring); box-shadow: 0 0 0 3px var(--green-tint); }
.chat__composer textarea { flex: 1; min-height: 0; height: 42px; max-height: 160px; padding: 10px 0; border: 0; border-radius: 0; box-shadow: none !important; background: none; resize: none; line-height: 1.4; }
.chat__composer textarea:focus { box-shadow: none; }
.chat__send { flex: none; width: 42px; height: 42px; border-radius: 50%; border: 0; display: grid; place-items: center; background: var(--green); color: var(--ink); cursor: pointer; }
.chat__send .ic { width: 19px; height: 19px; }
.chat__send:disabled { opacity: .45; }
.chat__note { margin: 6px 4px 0; font-size: 11.5px; color: var(--muted-foreground); text-align: center; }
.ai-msg { padding: 10px 14px; border-radius: 18px; max-width: 86%; white-space: pre-wrap; line-height: 1.5; font-size: 14.5px; overflow-wrap: anywhere; }
.ai-msg--user { align-self: flex-end; background: var(--night); color: #fff; border-bottom-right-radius: 6px; }
.ai-msg--user a { color: var(--green); }
.ai-msg--assistant { align-self: flex-start; background: var(--card); border: 1px solid var(--border); color: var(--foreground); border-bottom-left-radius: 6px; }
.ai-msg--busy { opacity: .7; font-style: italic; }
.ai-msg ul { margin: 4px 0; padding-left: 18px; white-space: normal; }
.chatlist { list-style: none; margin: 0; padding: 0 10px 12px; }
.chatlist a { display: flex; justify-content: space-between; gap: 12px; padding: 13px 10px; border-radius: var(--radius-sm); text-decoration: none; color: var(--foreground); font-weight: 600; font-size: 14.5px; }
.chatlist a.is-active { background: var(--accent); }
.chatlist a span { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chatlist small { flex: none; color: var(--muted-foreground); font-weight: 500; }
@media (max-width: 1023px) {
  body.is-chat .content { padding: 0; display: flex; flex-direction: column; height: calc(100dvh - 56px - env(safe-area-inset-top) - 64px - env(safe-area-inset-bottom)); }
  body.is-chat .content > .flash { margin: 10px 14px 0; }
  body.is-chat .main { padding-bottom: 0; }
  body.is-chat .pagehead { display: none; }
  body.is-chat .chat { flex: 1; min-height: 0; margin: 0; border: 0; border-radius: 0; box-shadow: none; padding: 0; background: transparent; }
  body.is-chat .chat__log { flex: 1; max-height: none; min-height: 0; padding: 14px 14px 8px; }
  body.is-chat .chat__dock { padding: 4px 10px 8px; }
  body.is-chat .chat__composer { margin-top: 0; }
  body.is-chat #ai-actions { padding: 0 14px; }
}

/* Pull to refresh (installed app only) */
.ptr { position: fixed; left: 50%; top: calc(64px + env(safe-area-inset-top)); z-index: 35; width: 38px; height: 38px; margin-left: -19px; border-radius: 50%; background: var(--card);
  box-shadow: var(--shadow-card-hover); display: grid; place-items: center; transform: translateY(-80px); opacity: 0; pointer-events: none; color: var(--green-dark); }
.ptr .ic { width: 20px; height: 20px; }
.ptr.is-loading .ic { animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.chat__head { display: flex; gap: 8px; padding: 10px 14px 0; }

/* Bulk select on phones (leads) */
.lcards[data-selectable] { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.lcard__check { display: none; }
body.is-selecting .lcard__check { position: absolute; left: 16px; top: 14px; z-index: 2; display: grid; place-items: center; width: 42px; height: 42px; border-radius: 14px;
  background: var(--card); border: 1px solid var(--input); }
.lcard__check input { width: 22px; height: 22px; margin: 0; accent-color: var(--green-dark); }
body.is-selecting .lcard__av { visibility: hidden; }
body.is-selecting .lcard__acts { display: none; }
body.is-selecting .lcard:has(:checked) { background: var(--accent); }
body.is-selecting .lcard:has(:checked) .lcard__check { border-color: var(--green); }
body.is-selecting .fab { display: none; }
body.is-selecting .main { padding-bottom: calc(150px + env(safe-area-inset-bottom)); }
.bulkbar { position: fixed; left: 10px; right: 10px; bottom: calc(70px + env(safe-area-inset-bottom)); z-index: 31; display: flex; align-items: center; gap: 6px;
  padding: 7px 7px 7px 4px; border-radius: 18px; background: var(--night); color: #fff; box-shadow: var(--shadow-lg); animation: toast-in .25s var(--ease); }
.bulkbar strong { flex: 1; min-width: 0; color: #fff; font-size: 14.5px; white-space: nowrap; }
.bulkbar .iconbtn { color: #fff; width: 38px; height: 38px; }
.bulkbar .linkbtn { color: var(--green); text-decoration: none; font-weight: 700; font-size: 14px; padding: 0 8px; }
.bulkbar .btn { --h: 38px; padding: 0 13px; }
.bulkbar .btn--ghost { background: transparent; color: #fff; border-color: #ffffff40; }
@media (min-width: 1024px) { .bulkbar { display: none !important; } }

/* Lesson quiz: recap boxes, numbered steps, retry countdown */
.recap { background: var(--bg-off, #fafafa); border: 1px solid var(--border); border-radius: var(--radius-sm); padding: 14px 16px; margin: 0 0 16px; }
.recap h3 { font-size: 15px; margin: 0 0 8px; display: flex; align-items: center; gap: 8px; }
.recap .prose ul, .recap .prose ol, .recap > ul { margin: 0 0 12px; padding-left: 20px; line-height: 1.6; font-size: 14.5px; }
.recap > ul li { margin-bottom: 8px; }
.recap--missed { background: var(--destructive-soft); border-color: #f1c9c3; }
.qstep { display: inline-grid; place-items: center; width: 24px; height: 24px; border-radius: 999px; background: var(--ink, #1a1a1a); color: var(--green); font-size: 12px; font-weight: 800; flex: none; }
.unlock { display: flex; gap: 12px; align-items: flex-start; padding: 14px 16px; border-radius: var(--radius-sm); background: var(--green-soft); border: 1px solid var(--green-line); }
.unlock > svg { width: 22px; height: 22px; color: var(--green-dark); flex: none; margin-top: 2px; }

/* In-app file viewer (signed agreements, KYC files, payment proofs, uploaded quotes) */
.fileview__bar { display: flex; gap: 10px; flex-wrap: wrap; margin: 0 0 14px; }
.fileview__doc { height: min(78vh, 1100px); background: #fff; }
.fileview__img { display: block; max-width: 100%; max-height: 78vh; margin: 0 auto; border-radius: var(--radius-sm); border: 1px solid var(--border); }

/* Status posts (marketing nuggets) */
.nug__grid { display: grid; gap: 22px; grid-template-columns: 1fr; align-items: start; }
@media (min-width: 760px) { .nug__grid { grid-template-columns: minmax(220px, 300px) 1fr; } }
.nug__img { margin: 0; }
.nug__img img { display: block; width: 100%; height: auto; max-width: 300px; margin: 0 auto; border-radius: 18px; box-shadow: var(--shadow-card); border: 1px solid var(--border); }
.nug__bubble { white-space: pre-wrap; background: #e7fbd8; border: 1px solid #cdeeb4; border-radius: 4px 16px 16px 16px; padding: 14px 16px; font-size: 15px; line-height: 1.55; color: var(--ink, #1a1a1a); overflow-wrap: anywhere; }
.nug__actions { display: flex; flex-wrap: wrap; gap: 10px; margin: 16px 0 0; }
.nug__actions .btn .ic { width: 18px; height: 18px; }
.nug__how { margin: 16px 0 0; padding-left: 20px; line-height: 1.6; }
.nug__filters { display: flex; gap: 8px; overflow-x: auto; padding: 2px 0 12px; margin: 0 0 6px; scrollbar-width: none; }
.nug__filters a { flex: none; padding: 7px 14px; border: 1px solid var(--input); border-radius: 999px; font-size: 13.5px; font-weight: 600; text-decoration: none; color: var(--foreground); background: #fff; }
.nug__filters a.is-on { background: var(--accent); border-color: var(--green-line); color: var(--accent-foreground); }
.nug__lib { display: grid; gap: 14px; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); }
.nug__card { display: flex; flex-direction: column; gap: 4px; text-decoration: none; color: var(--foreground); }
.nug__card img, .nug__textonly { display: block; width: 100%; aspect-ratio: 9 / 16; height: auto; object-fit: cover; border-radius: 12px; border: 1px solid var(--border); background: var(--bg-off, #fafafa); }
.nug__textonly { display: grid; place-items: center; color: var(--green-dark); }
.nug__card strong { font-size: 13.5px; line-height: 1.3; margin-top: 4px; }
.nug__card small { color: var(--muted-foreground); font-size: 12px; }
.nug__card.is-on img { outline: 3px solid var(--green); outline-offset: 2px; }

/* Install the app (v1.9.6): guide page, one-tap button, home nudge */
.install { max-width: 560px; }
.install__icon { display: block; width: 72px; height: 72px; border-radius: 18px; box-shadow: var(--shadow-card); margin: 0 0 16px; }
.install .flash { display: block; }
.install__one { margin: 0 0 22px; }
.install__one .btn { --h: 52px; font-size: 16px; }
.install__one p { margin: 8px 0 0; text-align: center; }
.iguide { border: 1px solid var(--border); border-radius: var(--radius-md); padding: 0 16px; margin: 0 0 10px; background: var(--card); }
.iguide[open] { border-color: var(--green-line); box-shadow: var(--shadow-sm); }
.iguide summary { display: flex; align-items: center; justify-content: space-between; gap: 10px; min-height: 52px; font-weight: 700; cursor: pointer; list-style: none; }
.iguide summary::-webkit-details-marker { display: none; }
.iguide summary::after { content: ""; width: 8px; height: 8px; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); margin: -4px 4px 0 auto; transition: transform .2s var(--ease); }
.iguide[open] summary::after { transform: rotate(-135deg); margin-top: 4px; }
.iguide summary .badge { background: var(--green-soft); color: var(--green-dark); border-color: var(--green-line); }
.iguide > p { margin: -4px 0 10px; }
.isteps { margin: 0 0 16px; padding: 0; list-style: none; counter-reset: is; }
.isteps li { position: relative; padding: 0 0 12px 38px; counter-increment: is; line-height: 1.5; }
.isteps li::before { content: counter(is); position: absolute; left: 0; top: -1px; width: 26px; height: 26px; border-radius: 50%; background: var(--green-soft); color: var(--green-dark); font-weight: 800; font-size: 13px; display: grid; place-items: center; }
.ikey { display: inline-grid; place-items: center; min-width: 24px; height: 24px; padding: 0 5px; border: 1px solid var(--line-strong); border-radius: 7px; background: var(--bg-soft); font-weight: 800; vertical-align: -6px; line-height: 1; }
.installcard { display: flex; align-items: center; gap: 14px; margin: 0 0 18px; padding: 14px 16px; border: 1px solid var(--green-line); border-radius: var(--radius-lg); background: linear-gradient(135deg, var(--green-soft), #fff 70%); }
.installcard img { width: 44px; height: 44px; border-radius: 12px; flex: none; box-shadow: var(--shadow-sm); }
.installcard div { flex: 1; min-width: 0; }
.installcard strong { display: block; font-size: 15px; }
.installcard small { color: var(--ink-2); }
.installcard .btn { flex: none; }
.installcard .iconbtn { flex: none; }
@media (max-width: 480px) { .installcard { flex-wrap: wrap; } .installcard .btn { order: 3; width: 100%; } }

/* DigiCard editor (v1.9.6) */
.dc-intro { background: linear-gradient(135deg, var(--green-soft), #fff 65%); border-color: var(--green-line); margin-bottom: var(--gap); }
.dc-share { display: flex; gap: 20px; align-items: center; margin-bottom: var(--gap); }
.dc-share__qr { width: 120px; height: 120px; flex: none; border: 1px solid var(--border); border-radius: var(--radius-md); padding: 6px; background: #fff; }
.dc-share__qr svg { width: 100%; height: 100%; display: block; }
.dc-share__main { flex: 1; min-width: 0; }
.dc-link { display: flex; gap: 8px; margin: 4px 0 10px; }
.dc-link input { flex: 1; min-width: 0; height: 36px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-sm); font: inherit; font-size: 14px; font-weight: 700; background: var(--bg-soft); }
.dc-share__btns { display: flex; flex-wrap: wrap; gap: 8px; }
@media (max-width: 640px) { .dc-share { flex-direction: column; align-items: stretch; } .dc-share__qr { align-self: center; } }
.dc-issues { margin: 0; padding-left: 20px; font-size: 14px; line-height: 1.55; }
.dc-issues li { margin: 0 0 6px; }
.dc-issues li.is-block { color: var(--destructive); font-weight: 600; }
.dc-svcs { display: grid; gap: 8px; margin-bottom: 12px; }
.dc-svcrow { display: grid; grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); gap: 8px; }
.dc-svcrow input { height: 40px; padding: 0 12px; border: 1px solid var(--input); border-radius: var(--radius-sm); font: inherit; font-size: 14.5px; min-width: 0; }
@media (max-width: 520px) { .dc-svcrow { grid-template-columns: 1fr; padding-bottom: 8px; border-bottom: 1px dashed var(--border); } }
.dc-themes { display: flex; flex-wrap: wrap; gap: 10px; }
.dc-themes label { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; font-weight: 600; color: var(--ink-3); cursor: pointer; width: 64px; text-align: center; }
.dc-themes input { position: absolute; opacity: 0; pointer-events: none; }
.dc-themes i { width: 40px; height: 40px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1px var(--line-strong); }
.dc-themes input:checked + i { box-shadow: 0 0 0 2px var(--green-dark); }
.dc-themes input:focus-visible + i { outline: 2px solid var(--ring); outline-offset: 2px; }
.dc-thumb { display: flex; align-items: center; gap: 12px; margin-bottom: 8px; }
.dc-thumb img { width: 56px; height: 56px; object-fit: contain; border-radius: 10px; border: 1px solid var(--border); background: var(--bg-soft); }
.dc-thumb .check { margin: 0; }
.dc-slug { display: flex; align-items: stretch; border: 1px solid var(--input); border-radius: var(--radius-sm); overflow: hidden; }
.dc-slug span { display: flex; align-items: center; padding: 0 0 0 12px; background: var(--bg-soft); color: var(--ink-3); font-size: 14px; font-weight: 600; white-space: nowrap; }
.dc-slug input { flex: 1; min-width: 0; border: 0 !important; height: 42px; padding: 0 12px 0 2px; font: inherit; font-weight: 700; background: var(--bg-soft); box-shadow: none !important; }
.dc-savebar { position: sticky; bottom: 0; z-index: 3; display: flex; align-items: center; gap: 14px; margin-top: var(--gap); padding: 12px 16px; background: #ffffffe6; backdrop-filter: blur(8px); border: 1px solid var(--border); border-radius: var(--radius-lg); box-shadow: var(--shadow-card); }
@media (max-width: 720px) { .dc-savebar { bottom: calc(64px + env(safe-area-inset-bottom)); } }
.dc-reqs, .dc-contacts { list-style: none; margin: 16px 0 0; padding: 0; }
.dc-reqs li { padding: 10px 0; border-top: 1px solid var(--border); }
.dc-reqs p { margin: 0 0 4px; font-size: 14px; font-weight: 600; }
.dc-reqs small { color: var(--ink-3); font-size: 12.5px; }
.dc-contacts li { display: flex; justify-content: space-between; gap: 12px; padding: 12px 0; border-top: 1px solid var(--border); }
.dc-contacts li:first-child { border-top: 0; padding-top: 0; }
.dc-contacts small { display: block; font-size: 12.5px; color: var(--ink-2); margin-top: 2px; }
.dc-contacts__go { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; flex: none; text-align: right; max-width: 45%; }
