/* IBT Internal — visual language: deep navy + electric blue, soft glow, oversized type with italic emphasis,
   spacious minimal layout, dark shell flowing into light content. Mobile first, one file. */
@import url('https://fonts.googleapis.com/css2?family=Inter:ital,opsz,wght@0,14..32,400..800;1,14..32,400..800&display=swap');

:root {
  --navy-900: #060b1a; --navy-800: #0b1530; --navy-700: #10204a;
  --electric: #2f7bff; --electric-2: #6fb1ff; --electric-deep: #1b5fe0; --glow: rgba(47, 123, 255, .45); --mint: #19b870;
  --bg: #f3f6fc; --surface: #ffffff; --surface-2: #f7f9fe; --ink: #0b1226; --ink-2: #3f4a66; --muted: #7684a3; --line: #e1e7f3;
  --brand: var(--electric); --brand-deep: var(--electric-deep); --brand-ink: #ffffff; --brand-soft: #e8f0ff; --accent: var(--mint);
  --warn: #b7791f; --warn-soft: #fff4de; --danger: #c0392b; --danger-soft: #fdeaea; --hold: #8a6d1f;
  --shadow: 0 1px 2px rgba(11,18,38,.04), 0 12px 32px -16px rgba(11,18,38,.18); --shadow-glow: 0 10px 30px -10px var(--glow);
  --radius: 16px; --radius-sm: 11px; --nav-h: 62px; --safe-b: env(safe-area-inset-bottom, 0px);
  --chart-muted: #c3cde2; --ok-soft: #dff6ea; --ok-ink: #157a3c;
  --shell-1: #ffffff; --shell-2: #f6f8fd; --shell-ink: #0b1226; --shell-muted: #66738f; --shell-line: #e3e8f2;
  --shell-hover: rgba(47,123,255,.07); --shell-active: linear-gradient(90deg, rgba(47,123,255,.15), rgba(47,123,255,.03));
  --shell-glass: rgba(255,255,255,.92); --shell-accent: #1b5fe0; --bg-glow: rgba(47,123,255,.10); color-scheme: light;
  --font: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) { --bg: #070d1f; --surface: #0e1a36; --surface-2: #122044; --ink: #eef2fb; --ink-2: #b9c3dc; --muted: #7f8db0; --line: #1c2a4f;
    --brand: #5aa0ff; --brand-deep: #9cc4ff; --brand-ink: #06101c; --brand-soft: #142a5a; --warn: #e2b04a; --warn-soft: #2d2410;
    --danger: #ff8a80; --danger-soft: #3a1714; --hold: #d9b35e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
    --chart-muted: #3a4a72; --ok-soft: rgba(25,184,112,.18); --ok-ink: #5fe0a6;
    --shell-1: #0b1530; --shell-2: #060b1a; --shell-ink: #ffffff; --shell-muted: rgba(255,255,255,.58); --shell-line: rgba(255,255,255,.08);
    --shell-hover: rgba(255,255,255,.06); --shell-active: linear-gradient(90deg, rgba(47,123,255,.32), rgba(47,123,255,.08));
    --shell-glass: rgba(11,21,48,.88); --shell-accent: #6fb1ff; --bg-glow: rgba(47,123,255,.22); color-scheme: dark; }
}
:root[data-theme="dark"] { --bg: #070d1f; --surface: #0e1a36; --surface-2: #122044; --ink: #eef2fb; --ink-2: #b9c3dc; --muted: #7f8db0; --line: #1c2a4f;
    --brand: #5aa0ff; --brand-deep: #9cc4ff; --brand-ink: #06101c; --brand-soft: #142a5a; --warn: #e2b04a; --warn-soft: #2d2410;
    --danger: #ff8a80; --danger-soft: #3a1714; --hold: #d9b35e; --shadow: 0 1px 2px rgba(0,0,0,.3), 0 12px 32px -16px rgba(0,0,0,.6);
    --chart-muted: #3a4a72; --ok-soft: rgba(25,184,112,.18); --ok-ink: #5fe0a6;
    --shell-1: #0b1530; --shell-2: #060b1a; --shell-ink: #ffffff; --shell-muted: rgba(255,255,255,.58); --shell-line: rgba(255,255,255,.08);
    --shell-hover: rgba(255,255,255,.06); --shell-active: linear-gradient(90deg, rgba(47,123,255,.32), rgba(47,123,255,.08));
    --shell-glass: rgba(11,21,48,.88); --shell-accent: #6fb1ff; --bg-glow: rgba(47,123,255,.22); color-scheme: dark; }
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { margin: 0; color: var(--ink); font: 16px/1.5 var(--font); font-optical-sizing: auto; -webkit-font-smoothing: antialiased;
  background: radial-gradient(90% 60% at 50% -20%, var(--bg-glow) 0%, rgba(47,123,255,0) 60%) no-repeat, var(--bg); }
body.with-nav { padding-bottom: calc(var(--nav-h) + var(--safe-b)); }
a { color: var(--brand); text-underline-offset: 2px; }
h1, h2, h3 { line-height: 1.12; margin: 0 0 .5rem; letter-spacing: -.025em; font-weight: 700; }
h1.page-title { font-size: clamp(1.75rem, 5.5vw, 2.5rem); margin: 1.1rem 0 .3rem; }
h1 em, h2 em, .lead em { font-style: italic; font-weight: 600; color: var(--brand); }
h2 { font-size: 1.15rem; margin-top: 1.5rem; }
p { margin: 0 0 .75rem; }
.lead { color: var(--ink-2); font-size: 1.05rem; }
.muted { color: var(--muted); } .small { font-size: .875rem; }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-size: .7rem; color: var(--muted); margin-bottom: .5rem; font-weight: 600; }
.page { max-width: 780px; margin: 0 auto; padding: 0 16px 32px; }

/* shell */
.topbar { position: sticky; top: 0; z-index: 10; background: linear-gradient(180deg, var(--navy-800), var(--navy-700)); color: #fff;
  border-bottom: 1px solid rgba(255,255,255,.08); display: flex; align-items: center; justify-content: space-between; padding: 12px 16px;
  box-shadow: 0 10px 40px -20px rgba(6,11,26,.9); }
.topbar::after { content: ""; position: absolute; inset: auto 0 -1px 0; height: 1px; background: linear-gradient(90deg, transparent, var(--electric-2), transparent); opacity: .7; }
.brand { display: inline-flex; align-items: center; gap: 10px; font-weight: 700; color: #fff; text-decoration: none; letter-spacing: -.02em; }
.brand img { height: 28px; width: auto; background: #fff; border-radius: 8px; padding: 3px 6px; }
.brand span { color: var(--electric-2); font-style: italic; font-weight: 600; }
.who { display: flex; align-items: center; gap: 10px; font-size: .85rem; color: rgba(255,255,255,.85); }
.who-name { font-weight: 600; color: #fff; } .who-role { color: rgba(255,255,255,.55); }
.who-out { color: rgba(255,255,255,.7); text-decoration: none; border: 1px solid rgba(255,255,255,.18); border-radius: 999px; padding: 4px 10px; }
.who-out:hover { color: #fff; border-color: rgba(255,255,255,.4); }
@media (max-width: 480px) { .who-role { display: none; } }
.nav { position: fixed; left: 0; right: 0; bottom: 0; z-index: 10; height: calc(var(--nav-h) + var(--safe-b)); padding-bottom: var(--safe-b);
  background: rgba(11,21,48,.88); backdrop-filter: saturate(160%) blur(14px); -webkit-backdrop-filter: saturate(160%) blur(14px);
  border-top: 1px solid rgba(255,255,255,.08); display: flex; justify-content: space-around; }
.nav-item { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; color: rgba(255,255,255,.55);
  text-decoration: none; font-size: .68rem; font-weight: 500; min-width: 0; position: relative; }
.nav-item svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.nav-item.is-active { color: #fff; }
.nav-item.is-active::before { content: ""; position: absolute; top: 6px; width: 36px; height: 3px; border-radius: 999px;
  background: linear-gradient(90deg, var(--electric), var(--electric-2)); box-shadow: 0 0 14px var(--glow); }
@media (min-width: 900px) {
  body.with-nav { padding-bottom: 32px; }
  .nav { position: sticky; top: 53px; bottom: auto; height: 46px; justify-content: center; gap: 6px; border-top: 0; background: var(--navy-700); border-bottom: 1px solid rgba(255,255,255,.06); }
  .nav-item { flex: 0 0 auto; flex-direction: row; gap: 8px; padding: 0 16px; font-size: .9rem; }
  .nav-item svg { width: 18px; height: 18px; }
  .nav-item.is-active::before { top: auto; bottom: 0; width: 100%; height: 2px; }
}

/* hero */
body.bare { color: #fff; min-height: 100vh;
  background: radial-gradient(70% 45% at 50% 0%, rgba(111,177,255,.55) 0%, rgba(47,123,255,.35) 30%, rgba(47,123,255,0) 65%) no-repeat,
    radial-gradient(40% 30% at 85% 20%, rgba(25,184,112,.18) 0%, rgba(25,184,112,0) 70%) no-repeat,
    linear-gradient(180deg, var(--navy-800) 0%, var(--navy-900) 100%); }
body.bare::before { content: ""; position: fixed; inset: 0; pointer-events: none; opacity: .35;
  background-image: linear-gradient(rgba(255,255,255,.05) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.05) 1px, transparent 1px); background-size: 48px 48px;
  mask-image: radial-gradient(60% 50% at 50% 10%, #000 0%, transparent 100%); -webkit-mask-image: radial-gradient(60% 50% at 50% 10%, #000 0%, transparent 100%); }
.hero { position: relative; max-width: 460px; margin: 8vh auto 0; text-align: center; }
.hero .logo-card { display: inline-block; background: #fff; border-radius: 18px; padding: 10px 18px; box-shadow: 0 20px 50px -20px rgba(0,0,0,.6), 0 0 0 1px rgba(255,255,255,.1); margin-bottom: 1.5rem; }
.hero .logo-card img { height: 56px; width: auto; display: block; }
.hero h1 { font-size: clamp(2.4rem, 9vw, 3.4rem); letter-spacing: -.04em; color: #fff; font-weight: 800; }
.hero h1 em { color: var(--electric-2); text-shadow: 0 0 30px var(--glow); }
.hero .eyebrow { color: rgba(255,255,255,.7); }
.hero .lead { color: rgba(255,255,255,.78); font-size: 1.05rem; max-width: 34ch; margin: 0 auto .75rem; }
.hero .muted { color: rgba(255,255,255,.55); }
.hero a:not(.btn) { color: var(--electric-2); }
.hero-card { background: rgba(255,255,255,.06); border: 1px solid rgba(255,255,255,.14); border-radius: 22px; padding: 20px 18px; margin-top: 1.5rem;
  backdrop-filter: blur(18px); -webkit-backdrop-filter: blur(18px); box-shadow: 0 30px 60px -30px rgba(0,0,0,.7), inset 0 1px 0 rgba(255,255,255,.12); text-align: left; }
.hero-card .muted, .hero-card .muted.small { color: rgba(255,255,255,.6); text-align: center; margin: .75rem 0 0; }
.hero-card label { color: rgba(255,255,255,.8); text-align: left; }
.hero-card input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.18); color: #fff; }
.hero-card input::placeholder { color: rgba(255,255,255,.4); }
.hero-card input:focus { outline-color: var(--electric-2); border-color: var(--electric-2); background: rgba(255,255,255,.12); }
.hero-card .btn-google { margin-top: 0; background: #fff; color: #0b1226; border-color: #fff; }
.hero .btn:not(.btn-google):not(.btn-primary) { background: rgba(255,255,255,.1); color: #fff; border-color: rgba(255,255,255,.2); }
.devbox { margin-top: 2.5rem; padding: 12px; border: 1px dashed rgba(255,255,255,.3); border-radius: var(--radius); text-align: left; display: grid; gap: 8px; color: rgba(255,255,255,.85); }
.devbox input { background: rgba(255,255,255,.08); border-color: rgba(255,255,255,.2); color: #fff; }
.or { display: flex; align-items: center; gap: 10px; color: rgba(255,255,255,.5); font-size: .78rem; margin: 16px 0 12px; text-transform: uppercase; letter-spacing: .08em; }
.or::before, .or::after { content: ""; flex: 1; border-top: 1px solid rgba(255,255,255,.14); }
.form-error { background: rgba(192,57,43,.2); color: #ffb3ab; border: 1px solid rgba(255,138,128,.35); border-radius: 10px; padding: 8px 12px; font-size: .9rem; margin: 0; }

/* cards, lists, pills */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 18px; margin: 12px 0; box-shadow: var(--shadow); }
.card h2 { margin-top: 0; }
.card-warn { border-color: rgba(183,121,31,.35); background: linear-gradient(180deg, var(--warn-soft), var(--surface)); }
.list { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 18px; }
.list-row { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-sm); padding: 13px 15px; display: flex; align-items: center;
  justify-content: space-between; gap: 12px; color: inherit; text-decoration: none; transition: transform .15s ease, box-shadow .15s ease, border-color .15s ease; }
a.list-row:hover { transform: translateY(-1px); border-color: rgba(47,123,255,.4); box-shadow: var(--shadow-glow); }
.list-row .chev { color: var(--muted); font-size: 1.4rem; }
.row-between { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.row-actions { display: flex; gap: 6px; flex-shrink: 0; flex-wrap: wrap; justify-content: flex-end; }
ul.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.pill { display: inline-block; font-size: .68rem; font-weight: 600; letter-spacing: .02em; padding: 2px 9px; border-radius: 999px; background: var(--line); color: var(--ink-2); vertical-align: middle; margin-left: 4px; }
.pill-superadmin { background: linear-gradient(90deg, var(--electric), var(--electric-deep)); color: #fff; }
.pill-manager { background: var(--brand-soft); color: var(--brand-deep); }
.pill.st-active, .pill.stage-running { background: var(--brand-soft); color: var(--brand-deep); }
.pill.st-prospect, .pill.stage-draft { background: var(--line); }
.pill.st-graduated, .pill.stage-closed { background: var(--ok-soft); color: var(--ok-ink); }
.pill.st-paused, .pill.stage-reporting { background: var(--warn-soft); color: var(--warn); }
.pill.st-closed, .pill.stage-cancelled { background: var(--danger-soft); color: var(--danger); }
.pill.stage-planned, .pill.stage-ready { background: var(--brand-soft); color: var(--brand-deep); }
.crumb { margin: 12px 0 2px; font-size: .85rem; } .crumb a { text-decoration: none; color: var(--muted); }
.warn-text { color: var(--warn); font-weight: 600; }
.kv { display: grid; gap: 9px; } .kv > div { display: grid; grid-template-columns: 112px 1fr; gap: 8px; font-size: .95rem; }
.kv span { color: var(--muted); font-size: .85rem; } .kv strong { font-weight: 500; } .pre { white-space: pre-wrap; }

/* forms */
.form { display: grid; gap: 12px; }
label { display: grid; gap: 5px; font-size: .85rem; color: var(--ink-2); font-weight: 500; }
input, select, textarea, button { font: inherit; }
input, select, textarea { width: 100%; padding: 10px 13px; border: 1px solid var(--line); border-radius: var(--radius-sm); background: var(--surface-2); color: var(--ink);
  min-height: 44px; transition: border-color .15s, box-shadow .15s, background .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--brand); box-shadow: 0 0 0 4px rgba(47,123,255,.18); background: var(--surface); }
textarea { resize: vertical; }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
@media (max-width: 420px) { .grid-2 { grid-template-columns: 1fr; } }
.filters { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0; }
.filters input, .filters select { width: auto; flex: 1 1 140px; min-height: 38px; padding: 6px 10px; font-size: .9rem; }
.filters input[type=search] { flex: 2 1 180px; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink); text-decoration: none; cursor: pointer; font-weight: 600; letter-spacing: -.005em; transition: transform .12s ease, box-shadow .15s ease, filter .15s ease; }
.btn:hover { filter: brightness(1.03); } .btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(135deg, var(--electric) 0%, var(--electric-deep) 100%); border-color: transparent; color: #fff; box-shadow: var(--shadow-glow); }
.btn-secondary { background: var(--brand-soft); border-color: transparent; color: var(--brand-deep); }
.btn-danger { color: var(--danger); border-color: transparent; background: var(--danger-soft); }
.btn-link { background: none; border: 0; color: var(--muted); min-height: 32px; padding: 0 6px; box-shadow: none; }
.btn-small { min-height: 34px; padding: 0 13px; font-size: .85rem; font-weight: 500; }
.btn-wide { width: 100%; } .btn-google { width: 100%; margin-top: 1.25rem; } .btn-google svg { width: 20px; height: 20px; }
.btn[disabled] { opacity: .6; cursor: default; }

/* toast */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + var(--safe-b) + 12px); transform: translateX(-50%); background: var(--navy-800); color: #fff; padding: 10px 18px;
  border-radius: 999px; font-size: .9rem; z-index: 50; max-width: calc(100vw - 32px); box-shadow: 0 10px 30px -10px rgba(0,0,0,.5), 0 0 0 1px rgba(255,255,255,.08); }
.toast-err { background: var(--danger); }
@media (min-width: 900px) { .toast { bottom: 24px; } }

/* calendar */
.cal-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 10px 0 6px; }
.cal-toolbar-2 { justify-content: flex-start; flex-wrap: wrap; }
.cal-range { font-size: .95rem; text-align: center; flex: 1; }
.cal-room { width: auto; min-height: 34px; padding: 4px 10px; font-size: .85rem; }
.seg { display: inline-flex; border: 1px solid var(--line); border-radius: 999px; overflow: hidden; background: var(--surface); }
.seg a { padding: 6px 14px; font-size: .85rem; text-decoration: none; color: var(--ink-2); }
.seg a.is-active { background: linear-gradient(135deg, var(--electric), var(--electric-deep)); color: #fff; }
.cal { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; margin: 8px 0; box-shadow: var(--shadow); }
.cal-head, .cal-body { display: grid; grid-template-columns: 40px repeat(var(--cols), minmax(96px, 1fr)); min-width: 100%; }
.cal-head { border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--surface); z-index: 2; }
.cal-colhead { padding: 9px 6px; font-size: .78rem; font-weight: 600; text-align: center; border-left: 1px solid var(--line); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-colhead.is-today { color: var(--brand); }
.cal-body { position: relative; } .cal-gutter { position: relative; }
.cal-hour { position: absolute; right: 6px; transform: translateY(-50%); font-size: .68rem; color: var(--muted); font-variant-numeric: tabular-nums; }
.cal-col { position: relative; border-left: 1px solid var(--line); cursor: pointer; }
.cal-line { position: absolute; left: 0; right: 0; border-top: 1px solid var(--line); }
.cal-block { position: absolute; left: 3px; right: 3px; border-radius: 9px; padding: 4px 7px; overflow: hidden; cursor: pointer;
  background: linear-gradient(135deg, var(--electric), var(--electric-deep)); color: #fff; font-size: .74rem; line-height: 1.25; z-index: 1; box-shadow: 0 6px 16px -8px var(--glow); }
.cal-block-title { display: block; font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block-meta { display: block; opacity: .85; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.cal-block.st-hold { background: var(--surface); color: var(--hold); border: 2px dashed var(--hold); box-shadow: none; }
.cal-block:focus-visible { outline: 2px solid var(--ink); }
.queue-item { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.queue-item:first-child { border-top: 0; }

/* bottom sheets */
dialog.sheet { border: 0; border-radius: 22px 22px 0 0; padding: 18px; margin: auto 0 0; width: 100%; max-width: 100%; background: var(--surface); color: var(--ink);
  max-height: 92vh; overflow: auto; box-shadow: 0 -20px 60px rgba(6,11,26,.35); }
dialog.sheet::backdrop { background: rgba(6,11,26,.55); backdrop-filter: blur(4px); }
@media (min-width: 640px) { dialog.sheet { margin: auto; border-radius: 22px; max-width: 470px; } }

/* activity detail */
.stage-bar { display: flex; flex-wrap: wrap; gap: 4px; margin-bottom: 12px; }
.stage-step { font-size: .7rem; font-weight: 600; padding: 3px 10px; border-radius: 999px; background: var(--line); color: var(--muted); }
.stage-step.is-past { background: var(--brand-soft); color: var(--brand-deep); }
.stage-step.is-now { background: linear-gradient(135deg, var(--electric), var(--electric-deep)); color: #fff; box-shadow: 0 0 16px -4px var(--glow); }
.stage-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-top: 12px; }
.checklist .check-row { display: flex; justify-content: space-between; gap: 10px; align-items: flex-start; padding: 9px 0; border-top: 1px solid var(--line); }
.checklist .check-row:first-child { border-top: 0; }
.checklist label { display: flex; gap: 10px; align-items: flex-start; font-size: .95rem; color: var(--ink); font-weight: 400; }
.checklist input[type=checkbox] { width: 22px; height: 22px; min-height: 0; margin: 0; flex-shrink: 0; accent-color: var(--brand); }
.check-row.is-done label span { text-decoration: line-through; color: var(--muted); }
.check-row.is-late:not(.is-done) label span { color: var(--warn); font-weight: 600; }
.add-item { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.add-item input[type=text] { flex: 2 1 160px; } .add-item input[type=date] { flex: 1 1 130px; } .add-item input { min-height: 38px; }
h3.sub { font-size: .95rem; margin: 14px 0 6px; }
.chips { border: 0; padding: 0; margin: 0; display: flex; flex-wrap: wrap; gap: 6px; }
.chips legend { font-size: .85rem; color: var(--ink-2); font-weight: 500; margin-bottom: 6px; }
.chip { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line); border-radius: 999px; padding: 5px 11px; font-size: .85rem; font-weight: 400; color: var(--ink); cursor: pointer; background: var(--surface); }
.chip input { width: 16px; height: 16px; min-height: 0; margin: 0; accent-color: var(--brand); }
.chip:has(input:checked) { background: var(--brand-soft); border-color: var(--brand); }
.counts { border: 0; padding: 0; margin: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(110px, 1fr)); gap: 8px; }
.counts legend { grid-column: 1 / -1; }
details > summary { cursor: pointer; list-style: none; display: inline-block; }
details > summary::-webkit-details-marker { display: none; }

/* Fase 3: people, import preview, quick add */
.quick-add { display: flex; gap: 6px; flex-wrap: wrap; }
.quick-add input { flex: 3 1 180px; } .quick-add select { flex: 1 1 110px; width: auto; }
.people { margin-top: 12px; max-height: 420px; overflow: auto; }
.people li { padding: 6px 0; border-top: 1px solid var(--line); } .people li:first-child { border-top: 0; }
.import textarea { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .82rem; }
.map-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(140px, 1fr)); gap: 8px; margin-bottom: 8px; }
.map-grid select { min-height: 36px; padding: 4px 8px; font-size: .85rem; }
.table-wrap { overflow: auto; max-height: 60vh; border: 1px solid var(--line); border-radius: var(--radius-sm); }
table.grid { border-collapse: collapse; width: 100%; font-size: .85rem; }
table.grid th, table.grid td { border-bottom: 1px solid var(--line); padding: 4px 6px; text-align: left; vertical-align: middle; white-space: nowrap; }
table.grid th { position: sticky; top: 0; background: var(--surface-2); font-weight: 600; font-size: .78rem; color: var(--ink-2); z-index: 1; }
table.grid input, table.grid select { min-height: 32px; padding: 4px 8px; font-size: .85rem; min-width: 110px; }
table.grid input[type=checkbox] { min-width: 0; width: 18px; height: 18px; }
table.grid tr.row-warn td { background: var(--warn-soft); }
table.grid td.num, table.grid th.num { text-align: right; font-variant-numeric: tabular-nums; }

/* Fase 4: Today */
.numbers { display: grid; grid-template-columns: repeat(4, 1fr); gap: 1px; background: var(--line); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; margin: 18px 0 8px; box-shadow: var(--shadow); }
.numbers > div { background: var(--surface); padding: 12px 10px; display: flex; flex-direction: column; gap: 2px; }
.numbers strong { font-size: clamp(1.4rem, 5vw, 2rem); letter-spacing: -.03em; line-height: 1; font-variant-numeric: tabular-nums; }
.numbers span { font-size: .72rem; color: var(--muted); line-height: 1.2; }
@media (max-width: 420px) { .numbers { grid-template-columns: repeat(2, 1fr); } }
.today-group h2 { display: flex; align-items: center; gap: 8px; }
.today-group .count { font-size: .75rem; background: var(--brand-soft); color: var(--brand-deep); border-radius: 999px; padding: 1px 9px; font-weight: 600; }
details.today-group > summary { display: block; }
details.today-group > summary h2 { cursor: pointer; }
details.today-group > summary h2::after { content: "▾"; color: var(--muted); font-size: .8rem; }
details.today-group:not([open]) > summary h2::after { content: "▸"; }
.today-row .tag { display: inline-block; font-size: .66rem; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--brand); margin-bottom: 2px; }
.today-row strong { font-weight: 500; }
.today-row.k-checklist .tag, .today-row.k-report .tag { color: var(--warn); }
.today-row.k-incomplete .tag { color: var(--danger); }
.today-row.k-checklist, .today-row.k-report { border-left: 3px solid var(--warn); }
.today-row.k-incomplete { border-left: 3px solid var(--danger); }
.today-row.k-booking { border-left: 3px solid var(--brand); }
.today-empty p { margin: 0; color: var(--ink-2); }

/* Fase 5: printable report */
body.print-page { background: #e9edf5; padding-bottom: 0; }
.print-bar { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; gap: 8px; padding: 10px 0; }
.report { background: #fff; color: #111; max-width: 800px; margin: 0 auto 32px; padding: 32px 36px; border-radius: 10px; box-shadow: var(--shadow); font-size: 14px; line-height: 1.5; }
.report-head { display: flex; gap: 18px; align-items: center; border-bottom: 2px solid #1a63b5; padding-bottom: 14px; margin-bottom: 8px; }
.report-head img { height: 52px; width: auto; }
.report-head h1 { font-size: 1.6rem; margin: 0 0 4px; color: #0b1226; letter-spacing: -.02em; }
.report h2 { font-size: 1rem; margin: 20px 0 6px; color: #10204a; border-bottom: 1px solid #e1e7f3; padding-bottom: 3px; }
.report .muted { color: #5b6680; }
.report .na { color: #b42318; font-style: italic; }
table.rt { width: 100%; border-collapse: collapse; }
table.rt th, table.rt td { border: 1px solid #d9e0ec; padding: 5px 8px; text-align: left; vertical-align: top; }
table.rt th { background: #f3f6fc; width: 26%; font-weight: 600; }
table.rt thead th { width: auto; }
table.rt .num { text-align: right; }
.report a { color: #1b5fe0; word-break: break-all; }
@media print {
  @page { size: A4; margin: 14mm; }
  body, body.print-page { background: #fff !important; }
  .no-print, .toast { display: none !important; }
  .page { max-width: none; padding: 0; }
  .report { box-shadow: none; padding: 0; margin: 0; border-radius: 0; max-width: none; }
  .report h2 { break-after: avoid; } table.rt tr { break-inside: avoid; }
}
.tabs { margin: 12px 0 4px; }
.tabs a { cursor: pointer; }

/* ---------- Fase 7: dashboard ---------- */
.home-todo { order: 1; } .home-dash { order: 2; margin-top: 8px; }
.home { display: flex; flex-direction: column; }
.dash-head { flex-wrap: wrap; margin: 18px 0 10px; }
.year-seg a, .seg.mini a { padding: 4px 11px; font-size: .78rem; cursor: pointer; }
.kpis { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-bottom: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 14px 12px; text-decoration: none; color: inherit;
  display: flex; flex-direction: column; gap: 2px; box-shadow: var(--shadow); position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s, border-color .15s; }
.kpi::before { content: ""; position: absolute; inset: 0 0 auto 0; height: 3px; background: linear-gradient(90deg, var(--electric), var(--electric-2)); opacity: .85; }
.kpi:hover { transform: translateY(-2px); border-color: rgba(47,123,255,.45); box-shadow: var(--shadow-glow); }
.kpi strong { font-size: clamp(1.6rem, 4vw, 2.1rem); letter-spacing: -.035em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.kpi span { font-size: .82rem; font-weight: 600; color: var(--ink-2); }
.kpi small { font-size: .72rem; color: var(--muted); }
.kpi-warn::before { background: linear-gradient(90deg, #e2a93b, #f0c66b); }
.dash-grid { display: grid; grid-template-columns: 1fr; gap: 12px; }
.card.chart { margin: 0; } .card.chart h3 { font-size: .95rem; margin: 0 0 12px; }
.vbars { display: grid; grid-template-columns: repeat(12, 1fr); gap: 6px; height: 190px; align-items: end; }
.vbar { display: flex; flex-direction: column; justify-content: flex-end; align-items: center; height: 100%; text-decoration: none; color: inherit; gap: 4px; min-width: 0; }
.vbar-stack { width: 100%; max-width: 38px; display: flex; flex-direction: column; border-radius: 7px 7px 3px 3px; overflow: hidden; transition: height .35s ease, filter .15s; min-height: 0; }
.vbar:hover .vbar-stack { filter: brightness(1.12); box-shadow: 0 0 18px -4px var(--glow); }
.vbar-stack i { display: block; min-height: 0; }
.seg-live { background: linear-gradient(180deg, var(--electric-2), var(--electric)); } .seg-back { background: var(--chart-muted); } .seg-people { background: linear-gradient(180deg, #5fe0a6, var(--mint)); }
.vbar-val { font-size: .7rem; font-weight: 600; color: var(--ink-2); font-variant-numeric: tabular-nums; min-height: 1em; }
.vbar-label { font-size: .68rem; color: var(--muted); }
[data-chart="months"][data-mode="acts"] .people, [data-chart="months"][data-mode="people"] .acts { display: none; }
.legend { font-size: .72rem; color: var(--muted); margin: 10px 0 0; display: flex; flex-wrap: wrap; gap: 4px 12px; align-items: center; }
.legend i, .legend-list i { display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 4px; vertical-align: middle; }
.hbars { display: grid; gap: 7px; }
.hbar { display: grid; grid-template-columns: minmax(90px, 34%) 1fr auto; gap: 10px; align-items: center; text-decoration: none; color: inherit; font-size: .85rem; }
.hbar-label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--ink-2); }
.hbar-track { background: var(--surface-2); border-radius: 999px; height: 14px; overflow: hidden; border: 1px solid var(--line); }
.hbar-fill { display: flex; height: 100%; border-radius: 999px; overflow: hidden; transition: width .35s ease; }
.hbar-fill i { display: block; height: 100%; }
a.hbar:hover .hbar-label { color: var(--brand); } a.hbar:hover .hbar-track { border-color: var(--brand); }
.hbar-val { font-variant-numeric: tabular-nums; font-size: .8rem; color: var(--muted); min-width: 2.2em; text-align: right; }
.hbar-val b { color: var(--ink); }
[data-chart="cohorts"][data-mode="all"] .main, [data-chart="cohorts"][data-mode="main"] .all, [data-chart="cohorts"][data-mode="main"] .s-prospect { display: none; }
.donut-wrap { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.donut { width: 132px; height: 132px; border-radius: 50%; display: grid; place-items: center; flex-shrink: 0; }
.donut > div { width: 88px; height: 88px; border-radius: 50%; background: var(--surface); display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.donut strong { font-size: 1.5rem; letter-spacing: -.03em; } .donut span { font-size: .68rem; color: var(--muted); }
.legend-list { gap: 5px; font-size: .85rem; } .legend-list a { color: inherit; text-decoration: none; } .legend-list a:hover { color: var(--brand); } .legend-list strong { margin-left: 4px; }
table.grid td.wrap { white-space: normal; min-width: 220px; }
table.grid.letters td { padding: 8px 8px; } table.grid.letters select { min-width: 100px; }

/* ---------- desktop: sidebar shell, wide content ---------- */
@media (min-width: 640px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
@media (min-width: 1024px) {
  body.with-nav { padding-left: 236px; padding-bottom: 40px; }
  .topbar { margin-left: -236px; padding: 12px 28px; z-index: 12; }
  .nav { position: fixed; top: 53px; left: 0; bottom: 0; right: auto; width: 236px; height: auto; flex-direction: column; justify-content: flex-start; gap: 4px;
    padding: 18px 12px; background: linear-gradient(180deg, var(--navy-700), var(--navy-900)); border: 0; border-right: 1px solid rgba(255,255,255,.07); backdrop-filter: none; }
  .nav-item { flex: 0 0 auto; flex-direction: row; justify-content: flex-start; gap: 12px; padding: 11px 14px; font-size: .92rem; border-radius: 11px; }
  .nav-item svg { width: 19px; height: 19px; }
  .nav-item:hover { background: rgba(255,255,255,.06); color: #fff; }
  .nav-item.is-active { background: linear-gradient(90deg, rgba(47,123,255,.32), rgba(47,123,255,.08)); box-shadow: inset 0 0 0 1px rgba(111,177,255,.25); }
  .nav-item.is-active::before { top: 20%; bottom: 20%; left: 0; width: 3px; height: auto; }
  .page { max-width: 1320px; padding: 4px 36px 40px; margin: 0; }
  h1.page-title { font-size: 2.4rem; }
  .toast { left: calc(50% + 118px); bottom: 28px; }
  /* home: dashboard takes the width, to-do rides beside it */
  .home { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
  .home-dash { order: 1; margin-top: 0; } .home-todo { order: 2; position: sticky; top: 76px; max-height: calc(100vh - 96px); overflow: auto; padding-right: 4px; }
  .home-todo .numbers { margin-top: 0; grid-template-columns: repeat(2, 1fr); }
  .dash-head { margin-top: 0; }
  .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .card.chart.wide { grid-column: span 2; }
  .vbars { height: 230px; gap: 10px; }
  /* lists become two columns; forms and detail keep a readable measure */
  .page > .list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
  .page > .card, .page > form.card, .page > .filters, .page > section > .card { max-width: 900px; }
  .page > .card.card-warn, .page > .cal, .page > .table-wrap { max-width: none; }
  .filters input, .filters select { flex: 0 1 180px; } .filters input[type=search] { flex: 1 1 260px; }
  .cal-head, .cal-body { grid-template-columns: 56px repeat(var(--cols), minmax(120px, 1fr)); }
  .cal-block { font-size: .8rem; padding: 6px 9px; }
  dialog.sheet { max-width: 540px; }
  .kv > div { grid-template-columns: 160px 1fr; }
  .people { max-height: 520px; columns: 2; column-gap: 24px; } .people li { break-inside: avoid; }
  .table-wrap { max-height: none; }
  .report { margin-left: 0; }
}
@media (min-width: 1500px) {
  .home { grid-template-columns: minmax(0, 1fr) 420px; }
  .kpis { grid-template-columns: repeat(8, 1fr); }
  .page > .list { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (min-width: 1024px) and (max-width: 1499px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
@media print { body.with-nav { padding-left: 0; } }


/* ---------- theme: shell follows light/dark (overrides the fixed navy shell above) ---------- */
.topbar { background: var(--shell-1); color: var(--shell-ink); border-bottom: 1px solid var(--shell-line); box-shadow: 0 8px 30px -22px rgba(6,11,26,.5); }
.brand { color: var(--shell-ink); } .brand span { color: var(--shell-accent); }
.brand img { box-shadow: 0 0 0 1px var(--shell-line); }
.who { color: var(--shell-muted); } .who-name { color: var(--shell-ink); } .who-role { color: var(--shell-muted); }
.who-out { color: var(--shell-muted); border-color: var(--shell-line); } .who-out:hover { color: var(--shell-ink); border-color: var(--shell-muted); }
.nav { background: var(--shell-glass); border-top: 1px solid var(--shell-line); }
.nav-item { color: var(--shell-muted); } .nav-item.is-active { color: var(--shell-ink); }
.theme-btn { background: none; border: 1px solid var(--shell-line); color: var(--shell-muted); border-radius: 999px; width: 34px; height: 34px; display: inline-grid; place-items: center; cursor: pointer; padding: 0; }
.theme-btn:hover { color: var(--shell-ink); border-color: var(--shell-muted); }
.theme-btn svg { width: 17px; height: 17px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.theme-btn .i-sun, .theme-btn .i-moon, .theme-btn .i-auto { display: none; }
:root:not([data-theme]) .theme-btn .i-auto, :root[data-theme="light"] .theme-btn .i-sun, :root[data-theme="dark"] .theme-btn .i-moon { display: block; }
@media (min-width: 1024px) {
  .nav { background: linear-gradient(180deg, var(--shell-1), var(--shell-2)); border: 0; border-right: 1px solid var(--shell-line); }
  .nav-item:hover { background: var(--shell-hover); color: var(--shell-ink); }
  .nav-item.is-active { background: var(--shell-active); box-shadow: inset 0 0 0 1px rgba(47,123,255,.22); }
}

/* ---------- navigation v2: desktop sidebar + mobile bar with + and Lainnya ---------- */
.nav-mobile { display: flex; }
.nav-desk { display: none; }
.nav-item { background: none; border: 0; font: inherit; cursor: pointer; position: relative; }
.nav-plus .plus { width: 42px; height: 42px; margin-top: -18px; border-radius: 50%; display: grid; place-items: center; font-size: 1.6rem; font-weight: 400; line-height: 1;
  color: #fff; background: linear-gradient(135deg, var(--electric), var(--electric-deep)); box-shadow: 0 8px 22px -6px var(--glow); }
.nav-badge { position: absolute; top: 6px; right: calc(50% - 22px); min-width: 18px; height: 18px; padding: 0 5px; border-radius: 999px; background: #e2a93b; color: #1b1300;
  font-size: .62rem; font-weight: 700; display: grid; place-items: center; }
.nav-badge.dot { min-width: 9px; height: 9px; padding: 0; right: calc(50% - 15px); }
.nav-sep { height: 1px; background: var(--shell-line); margin: 10px 8px; }
.quick-btn { display: none; }
.sheet-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin-bottom: 8px; }
.sheet-link { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 14px 6px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line);
  color: var(--ink); text-decoration: none; font: inherit; font-size: .78rem; text-align: center; cursor: pointer; position: relative; }
.sheet-link svg, .quick-grid svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; color: var(--brand); }
.sheet-link .nav-badge { top: 6px; right: 8px; }
.quick-recent { display: grid; gap: 6px; }
.quick-recent a { display: flex; justify-content: space-between; gap: 10px; padding: 10px 12px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; font-size: .88rem; }
.quick-recent span { color: var(--muted); font-size: .78rem; white-space: nowrap; }
.quick-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.quick-grid a { display: flex; flex-direction: column; gap: 3px; padding: 12px; border-radius: 14px; border: 1px solid var(--line); background: var(--surface-2); color: var(--ink); text-decoration: none; }
.quick-grid a:hover, .quick-recent a:hover, .sheet-link:hover { border-color: var(--brand); box-shadow: var(--shadow-glow); }
.quick-grid strong { font-size: .92rem; } .quick-grid span { font-size: .75rem; color: var(--muted); }
@media (min-width: 640px) { dialog.sheet.sheet-wide { max-width: 620px; } .quick-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) {
  .nav-mobile { display: none; }
  .nav-desk { display: flex; }
  .quick-btn { display: inline-flex; }
  .nav-desk .nav-badge { position: static; margin-left: auto; }
}
@media (max-width: 1023px) { .who-name, .who-out { display: none; } }

/* ---------- pages: tenants, partners, about, queue ---------- */
.page-head { align-items: flex-end; margin: 1rem 0 .5rem; }
.tabs-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; margin: 10px 0; }
.seg a b, .tabs a b { font-weight: 600; opacity: .7; margin-left: 4px; font-size: .78em; }
.chips-row { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 6px; scrollbar-width: none; }
.chip-link { flex-shrink: 0; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface); color: var(--ink-2); text-decoration: none; font-size: .85rem; }
.chip-link span { color: var(--muted); font-size: .75rem; margin-left: 3px; }
.chip-link.is-active { background: linear-gradient(135deg, var(--electric), var(--electric-deep)); color: #fff; border-color: transparent; }
.chip-link.is-active span { color: rgba(255,255,255,.75); }
.group-head { display: flex; align-items: center; gap: 8px; }
.group-head .count, h2 .count { font-size: .72rem; background: var(--brand-soft); color: var(--brand-deep); border-radius: 999px; padding: 1px 9px; font-weight: 600; }
.desk-table { display: none; }
table.ent-table tbody tr { cursor: pointer; } table.ent-table tbody tr:hover td { background: var(--brand-soft); }
table.ent-table a { text-decoration: none; color: var(--ink); }
.pks-ok { color: var(--ok-ink); font-weight: 600; text-decoration: none; font-size: .85rem; }
.pks-ok::before { content: "✓ "; }
.cards-grid { display: grid; grid-template-columns: 1fr; gap: 10px; }
.partner-card { margin: 0; text-decoration: none; color: inherit; display: flex; flex-direction: column; gap: 6px; transition: transform .15s, border-color .15s, box-shadow .15s; }
.partner-card:hover { transform: translateY(-2px); border-color: var(--brand); box-shadow: var(--shadow-glow); }
.partner-card h3 { margin: 4px 0 0; font-size: 1.05rem; }
.partner-foot { display: flex; justify-content: space-between; gap: 8px; color: var(--muted); margin-top: auto; padding-top: 8px; border-top: 1px solid var(--line); }
.pills .pill:first-child { margin-left: 0; } .pill-link { text-decoration: none; }
.pks-card { display: flex; justify-content: space-between; align-items: center; gap: 12px; border-left: 3px solid #e2a93b; }
.pks-card.has-pks { border-left-color: var(--mint); }
.pks-form { display: flex; gap: 8px; align-items: flex-end; width: 100%; flex-wrap: wrap; } .pks-form label { flex: 1 1 260px; }
.detail-grid, .about-grid { display: grid; gap: 4px 24px; }
.doc-list li { padding: 7px 0; border-top: 1px solid var(--line); } .doc-list li:first-child { border-top: 0; }
.gap-banner { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 12px; padding: 12px 16px; margin: 4px 0 18px; border-radius: var(--radius);
  background: linear-gradient(90deg, var(--warn-soft), var(--surface)); border: 1px solid rgba(226,169,59,.45); color: var(--ink); text-decoration: none; }
.gap-banner span { color: var(--ink-2); font-size: .85rem; } .gap-banner .chev { margin-left: auto; color: var(--warn); font-weight: 600; font-size: .9rem; }
.dash-head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 10px; }
.year-seg { overflow-x: auto; max-width: 100%; scrollbar-width: none; } .year-seg a { white-space: nowrap; }
.dash-section { margin: 20px 0 6px; }
.section-title { display: flex; align-items: center; gap: 10px; margin-bottom: 10px; }
.section-title h3 { margin: 0; font-size: 1.05rem; } .section-title a { margin-left: auto; text-decoration: none; }
.section-title .dot { width: 10px; height: 10px; border-radius: 3px; }
.card.chart h4 { font-size: .9rem; margin: 0 0 12px; }
.funnel { display: grid; grid-template-columns: 1fr auto 1fr; gap: 8px; align-items: center; margin-bottom: 12px; }
.funnel a { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; text-decoration: none; color: inherit; box-shadow: var(--shadow); display: flex; flex-direction: column; }
.funnel a:hover { border-color: var(--brand); }
.funnel strong { font-size: 1.7rem; letter-spacing: -.03em; line-height: 1.05; } .funnel span { font-size: .75rem; color: var(--muted); }
.funnel i { color: var(--muted); font-style: normal; font-size: 1.2rem; }
.funnel i:nth-of-type(2) { display: none; }
.kpis-4 { grid-template-columns: repeat(2, 1fr); }
.vbars { grid-template-columns: repeat(var(--n, 12), minmax(0, 1fr)); }
.queue .q-row { flex-wrap: wrap; } .q-info { flex: 1 1 260px; min-width: 0; } .q-info a { text-decoration: none; }
.q-input { display: flex; gap: 6px; flex: 1 1 280px; } .q-input input { min-height: 38px; }
.q-done { opacity: 0; transform: translateX(20px); transition: all .25s; }
.tabs { display: inline-flex; flex-wrap: wrap; border-radius: 14px; margin: 8px 0 12px; }
@media (min-width: 640px) {
  .funnel { grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; } .funnel i:nth-of-type(2) { display: block; }
  .kpis-4 { grid-template-columns: repeat(4, 1fr); }
  .cards-grid { grid-template-columns: repeat(2, 1fr); }
}
@media (min-width: 1024px) {
  .desk-table { display: block; } .mobile-list { display: none; }
  .page > .table-wrap.desk-table { max-width: none; }
  .cards-grid { grid-template-columns: repeat(3, 1fr); }
  .detail-grid { grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); align-items: start; }
  .about-grid { grid-template-columns: 1fr 1fr; }
  .detail-grid .card, .about-grid .card { max-width: none; }
  .dash-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
}
@media (max-width: 1023px) { .page > .desk-table { display: none; } }
[data-chart="timeline"][data-mode="acts"] .people, [data-chart="timeline"][data-mode="people"] .acts { display: none; }
[data-chart="groups"][data-mode="all"] .main, [data-chart="groups"][data-mode="main"] .all, [data-chart="groups"][data-mode="main"] .s-prospect { display: none; }

/* ---------- accreditation ---------- */
.acc-table table.grid td, .acc-table table.grid th { white-space: normal; }
.acc-table tr.sec-row td { background: var(--surface-2); font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .06em; color: var(--brand-deep); }
.acc-table td.num { font-size: .95rem; font-weight: 600; } .acc-table td.wrap { min-width: 220px; }
.acc-detail { display: grid; gap: 4px 20px; }
.input-table input { min-width: 90px; text-align: right; } .input-table input[type=url] { text-align: left; min-width: 200px; }
.input-table tr.is-saved td { background: color-mix(in srgb, var(--ok-soft) 55%, transparent); }
.q-num { max-width: 110px; }
.pill.lvl-internasional { background: linear-gradient(90deg, var(--electric), var(--electric-deep)); color: #fff; }
.pill.lvl-nasional { background: var(--brand-soft); color: var(--brand-deep); }
.chip-link.is-empty { border-style: dashed; }
.slot-card { border-style: dashed; box-shadow: none; }
@media (min-width: 1024px) { .acc-detail { grid-template-columns: 1fr 1fr; } }
