/* ADEX Plan Tracker design system.
   Part 1 carries the Atlas tokens and components unchanged in value.
   Part 2 adds what Atlas does not have: board, task drawer, meeting screens.
   Light is the default theme; <html class="dark"> switches to dark. */

@font-face { font-family: "Geist"; src: url("fonts/Geist-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }
@font-face { font-family: "Geist Mono"; src: url("fonts/GeistMono-Variable.woff2") format("woff2"); font-weight: 100 900; font-display: swap; }

/* ---------- Tokens ---------- */
:root {
  --font-sans: "Geist", -apple-system, "SF Pro Text", system-ui, sans-serif;
  --font-mono: "Geist Mono", ui-monospace, "SF Mono", Menlo, monospace;
  --radius: 10px;
  --bg: #F5F5F7; --side: #FBFBFC; --sf: #FFFFFF; --rs: #FFFFFF; --hv: #EDEDF0;
  --bd: rgba(0,0,0,.08); --bd2: rgba(0,0,0,.16);
  --tx: #111113; --t2: #55575E; --t3: #6A6C74;
  --ac: #87ED33; --aci: #0A0F04; --act: #3B7A0A; --ac-ring: rgba(135,237,51,.35);
  --ok: #138A4A; --okb: rgba(19,138,74,.10);
  --wn: #A35400; --wnb: rgba(245,165,36,.16);
  --dg: #C62A31; --dgb: rgba(198,42,49,.08);
  --in: #1F63D6; --inb: rgba(31,99,214,.08);
  --sh: 0 1px 2px rgba(0,0,0,.04), 0 16px 40px rgba(0,0,0,.10);
  --sh-sm: 0 1px 2px rgba(0,0,0,.06);
  --chevron: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8D94' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  --m-warn: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m21.73 18-8-14a2 2 0 0 0-3.48 0l-8 14A2 2 0 0 0 4 21h16a2 2 0 0 0 1.73-3'/%3E%3Cpath d='M12 9v4'/%3E%3Cpath d='M12 17h.01'/%3E%3C/svg%3E");
  --m-info: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='12' cy='12' r='10'/%3E%3Cpath d='M12 16v-4M12 8h.01'/%3E%3C/svg%3E");
  color-scheme: light;
}
.dark {
  --bg: #08090A; --side: #0B0C0E; --sf: #0F1012; --rs: #16171A; --hv: #1C1D21;
  --bd: rgba(255,255,255,.08); --bd2: rgba(255,255,255,.16);
  --tx: #F4F5F6; --t2: #A6A8AD; --t3: #8A8D94;
  --act: #B6F27A;
  --ok: #3DD68C; --okb: rgba(61,214,140,.12);
  --wn: #F5A524; --wnb: rgba(245,165,36,.13);
  --dg: #FF6369; --dgb: rgba(255,99,105,.13);
  --in: #6CA6FF; --inb: rgba(108,166,255,.12);
  --sh: 0 1px 0 rgba(255,255,255,.04) inset, 0 16px 40px rgba(0,0,0,.55);
  --sh-sm: 0 1px 0 rgba(255,255,255,.04) inset;
  color-scheme: dark;
}

/* ---------- Reset ---------- */
*, ::before, ::after { box-sizing: border-box; border: 0 solid var(--bd); }
html { -webkit-text-size-adjust: 100%; }
button, input, select, textarea { font: inherit; color: inherit; margin: 0; }
button { background: none; padding: 0; }
ul, ol { list-style: none; margin: 0; padding: 0; }
svg { display: block; }
::-webkit-scrollbar { width: .625rem; height: .625rem; }
::-webkit-scrollbar-track { background: transparent; }
::-webkit-scrollbar-thumb { background: var(--bd); border-radius: 9999px; }
::-webkit-scrollbar-thumb:hover { background: var(--bd2); }
.col-body::-webkit-scrollbar, .board::-webkit-scrollbar, .app-sidebar::-webkit-scrollbar { width: .375rem; height: .375rem; }
@supports not selector(::-webkit-scrollbar) { * { scrollbar-width: thin; scrollbar-color: var(--bd2) transparent; } }

/* ---------- Base ---------- */
html { background: var(--bg); }
body { margin: 0; font: 400 14px/1.5 var(--font-sans); color: var(--tx); background: var(--bg);
  -webkit-font-smoothing: antialiased; -moz-osx-font-smoothing: grayscale; text-rendering: optimizeLegibility; }
::selection { background: rgba(135,237,51,.30); }
a { color: var(--act); text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: 3px; }
h1, h2, h3 { margin: 0; color: var(--tx); letter-spacing: -.02em; }
h1 { font-size: 26px; font-weight: 600; line-height: 1.2; letter-spacing: -.03em; }
h2 { font-size: 15px; font-weight: 600; margin: 32px 0 12px; }
h3 { font-size: 14px; font-weight: 600; }
p { margin: 0 0 12px; }
.muted { color: var(--t2); }
.small { font-size: 12.5px; }
.num, .mono { font-family: var(--font-mono); font-variant-numeric: tabular-nums; font-size: .95em; }
.nowrap { white-space: nowrap; }
.red { color: var(--dg); } .amber { color: var(--wn); } .green { color: var(--ok); }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
:focus-visible { outline: 2px solid var(--ac); outline-offset: 2px; }
.i { display: inline-block; vertical-align: -3px; width: 16px; height: 16px; flex: none; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
.i-sm { width: 14px; height: 14px; }
.i-lg { width: 20px; height: 20px; }
kbd { font: 500 11px var(--font-mono); padding: 1px 6px; border-radius: 6px; border: 1px solid var(--bd2); border-bottom-width: 2px; color: var(--t2); background: transparent; }

/* ---------- App shell ---------- */
.app { display: flex; min-height: 100vh; }
.app-sidebar { width: 248px; flex: none; position: sticky; top: 0; height: 100vh; overflow-y: auto;
  padding: 14px 12px; display: flex; flex-direction: column; gap: 16px; background: var(--side); border-right: 1px solid var(--bd); }
.app-sidebar > * { flex-shrink: 0; }
.brand { display: flex; align-items: center; gap: 10px; padding: 4px 6px; color: var(--tx); }
.brand:hover { text-decoration: none; }
.brand-mark { width: 30px; height: 30px; border-radius: 8px; background: #000; box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
  display: inline-flex; align-items: center; justify-content: center; flex: none; }
.brand-mark svg { width: 18px; height: 18px; }
.brand-name { display: block; font-size: 14px; font-weight: 600; line-height: 1.2; }
.brand-sub { display: block; font-size: 11px; color: var(--t3); }
.search-trigger { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; border-radius: 9px;
  border: 1px solid var(--bd); background: var(--sf); color: var(--t3); font: 400 13px var(--font-sans); cursor: pointer; width: 100%; }
.search-trigger:hover { border-color: var(--bd2); color: var(--t2); }
.search-trigger span { flex: 1; text-align: left; }
.nav { display: flex; flex-direction: column; gap: 14px; }
.nav-group { display: flex; flex-direction: column; gap: 1px; }
.nav-label { font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); padding: 0 10px 6px; }
.nav a { position: relative; display: flex; align-items: center; gap: 10px; height: 32px; padding: 0 10px; border-radius: 8px; color: var(--t2); font-size: 13.5px; }
.nav a .i { color: var(--t3); }
.nav a:hover { background: var(--hv); color: var(--tx); text-decoration: none; }
.nav a.on { background: var(--hv); color: var(--tx); font-weight: 500; }
.nav a.on .i { color: var(--tx); }
.nav a.on::before { content: ""; position: absolute; left: -12px; top: 8px; width: 3px; height: 16px; border-radius: 0 3px 3px 0; background: var(--ac); }
.nav .count { margin-left: auto; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--dgb); color: var(--dg); font: 600 11px/18px var(--font-mono); text-align: center; }
.sidebar-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.tour-card { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: 10px; background: var(--sf);
  border: 1px solid var(--bd); color: var(--tx); font: 400 13px var(--font-sans); cursor: pointer; text-align: left; width: 100%; }
.tour-card:hover { border-color: var(--bd2); }
.tour-card .i { color: var(--act); }
.tour-card small { display: block; color: var(--t3); font-size: 11.5px; }
.who { display: flex; align-items: center; gap: 10px; padding: 4px 6px; }
.who-avatar { width: 30px; height: 30px; border-radius: 50%; background: var(--hv); display: inline-flex; align-items: center; justify-content: center; font-size: 12px; font-weight: 600; text-transform: uppercase; flex: none; }
.who-avatar.mini { width: 22px; height: 22px; font-size: 10px; }
.who-avatar.dashed { background: transparent; border: 1px dashed var(--bd2); color: var(--t3); }
.who-name { display: block; font-size: 13px; font-weight: 500; line-height: 1.25; }
.who-role { display: block; font-size: 11.5px; color: var(--t3); }
.who-actions { margin-left: auto; display: flex; gap: 4px; }
.icon-btn { width: 30px; height: 30px; border-radius: 8px; border: 1px solid var(--bd); background: transparent; color: var(--t2);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; flex: none; }
.icon-btn:hover { background: var(--hv); color: var(--tx); }
.owner { display: flex; align-items: center; gap: 8px; padding: 10px 6px 0; border-top: 1px solid var(--bd); font-size: 11px; color: var(--t3); }
.owner-word { font-weight: 700; letter-spacing: .08em; color: var(--t2); }

.main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 20; height: 52px; flex: none; display: flex; align-items: center; gap: 10px; padding: 0 28px;
  border-bottom: 1px solid var(--bd); background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px); }
.topbar .crumb { font-size: 13px; color: var(--t3); }
.topbar a.crumb:hover { color: var(--tx); text-decoration: none; }
.topbar .crumb-sep { color: var(--t3); }
.topbar .here { font-size: 14px; font-weight: 500; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .spacer { flex: 1; }
.live { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; color: var(--t3); white-space: nowrap; }
.live::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--ok); box-shadow: 0 0 0 3px var(--okb); }
.menu-btn { display: none; }
.content { padding: 28px 32px 64px; width: 100%; }

@media (max-width: 860px) {
  .app-sidebar { position: fixed; z-index: 40; left: 0; top: 0; transform: translateX(-100%); transition: transform .2s ease; box-shadow: var(--sh); }
  .app.nav-open .app-sidebar { transform: none; }
  .app.nav-open::after { content: ""; position: fixed; inset: 0; z-index: 30; background: rgba(0,0,0,.5); }
  .menu-btn { display: inline-flex; }
  .topbar { padding: 0 16px; }
  .content { padding: 20px 16px 48px; }
  .live { display: none; }
  .attention-row .badge { display: none; }
  .hero h1 { font-size: 28px; }
  .metric .value { font-size: 22px; }
}

/* ---------- Page header ---------- */
.page-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.page-head .title { display: flex; flex-direction: column; gap: 6px; min-width: 0; flex: 1 1 420px; }
.page-head .title .muted { font-size: 13.5px; max-width: 760px; margin: 0; }
.page-head .eyebrow { font-size: 13px; color: var(--t3); }
.page-head .actions, .actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.title-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.section-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 24px 0 12px; }
.section-head h2 { margin: 0; }

/* ---------- Buttons ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 7px; height: 34px; padding: 0 13px; border-radius: 9px;
  font: 500 13px var(--font-sans); white-space: nowrap; cursor: pointer; text-decoration: none;
  border: 1px solid var(--bd2); background: var(--sf); color: var(--tx); transition: background .12s, border-color .12s, box-shadow .12s; }
.btn:hover { background: var(--hv); text-decoration: none; }
.btn[data-variant="primary"] { background: var(--ac); border-color: transparent; color: var(--aci); font-weight: 600; box-shadow: inset 0 0 0 1px rgba(0,0,0,.06), 0 1px 2px rgba(0,0,0,.18); }
.btn[data-variant="primary"]:hover { background: #95F247; }
.btn[data-variant="ghost"] { background: transparent; border-color: transparent; color: var(--t2); }
.btn[data-variant="ghost"]:hover { background: var(--hv); color: var(--tx); }
.btn[data-variant="destructive"] { background: var(--dgb); border-color: transparent; color: var(--dg); }
.btn[data-variant="destructive"]:hover { background: color-mix(in srgb, var(--dg) 22%, transparent); }
.btn[data-size="sm"] { height: 28px; padding: 0 10px; font-size: 12.5px; border-radius: 8px; }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn:focus-visible { outline: none; box-shadow: 0 0 0 1px var(--ac), 0 0 0 4px var(--ac-ring); }
.btn.icon-only { width: 28px; padding: 0; }
.btn.danger-hover:hover { color: var(--dg); background: var(--dgb); }

/* ---------- Forms ---------- */
.field { display: flex; flex-direction: column; gap: 6px; margin-bottom: 16px; min-width: 0; }
.field > label { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 500; line-height: 1; color: var(--tx); }
.field .help, .help { font-size: 12px; color: var(--t3); }
.field input:not([type=checkbox]):not([type=radio]), .field select, .field textarea, .input, input[type=search] {
  width: 100%; min-height: 36px; padding: 0 12px; border-radius: 10px; border: 1px solid var(--bd2);
  background: var(--sf); color: var(--tx); font: 400 14px var(--font-sans); outline: none; transition: border-color .12s, box-shadow .12s; }
.field textarea, textarea.input { padding: 10px 12px; min-height: 96px; line-height: 1.5; resize: vertical; }
.field select, select.input, .role-select { appearance: none; padding-right: 32px; background-image: var(--chevron); background-repeat: no-repeat; background-position: right 10px center; background-size: 16px; }
.field input:focus, .field select:focus, .field textarea:focus, .input:focus, input[type=search]:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); }
.field input::placeholder, .field textarea::placeholder, .input::placeholder, input[type=search]::placeholder { color: var(--t3); }
input[type=checkbox] { appearance: none; width: 18px; height: 18px; margin: 0; border-radius: 6px; border: 1.5px solid var(--bd2); background: transparent;
  display: inline-grid; place-content: center; cursor: pointer; vertical-align: -4px; flex: none; transition: background .12s, border-color .12s; }
input[type=checkbox]::after { content: ""; width: 10px; height: 10px; background: var(--aci); transform: scale(0); transition: transform .12s; clip-path: polygon(14% 52%, 0 66%, 38% 100%, 100% 22%, 86% 8%, 38% 72%); }
input[type=checkbox]:checked { background: var(--ac); border-color: var(--ac); }
input[type=checkbox]:checked::after { transform: scale(1); }
input[type=checkbox][role=switch] { width: 36px; height: 20px; border-radius: 999px; border: 0; background: var(--hv); padding: 2px; box-shadow: inset 0 0 0 1px var(--bd); place-content: center start; }
input[type=checkbox][role=switch]::after { width: 16px; height: 16px; border-radius: 50%; background: #fff; clip-path: none; transform: none; box-shadow: 0 1px 2px rgba(0,0,0,.3); transition: translate .15s; }
input[type=checkbox][role=switch]:checked { background: var(--ac); box-shadow: none; }
input[type=checkbox][role=switch]:checked::after { translate: 16px 0; }
.errorlist { color: var(--dg); font-size: 12.5px; }
.form-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 0 16px; align-items: start; }
.role-select { min-height: 30px; height: 30px; padding-left: 10px; padding-right: 30px; border-radius: 8px; border: 1px solid var(--bd2); background-color: var(--sf); background-size: 14px; background-position: right 8px center; color: var(--tx); font: 500 13px var(--font-sans); cursor: pointer; max-width: 100%; }
.role-select:focus { outline: none; border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); }

/* ---------- Cards ---------- */
.card { display: block; background: var(--sf); border: 1px solid var(--bd); border-radius: 16px; padding: 18px 20px; box-shadow: var(--sh-sm); color: var(--tx); }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.card-title { font-size: 14px; font-weight: 600; margin: 0; }
.split { display: flex; flex-wrap: wrap; gap: 16px; align-items: flex-start; }
.split > .grow { flex: 3 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.split > .side { flex: 2 1 300px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.empty-state { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 36px 24px; color: var(--t2); }
.empty-state .i { color: var(--t3); }
.empty-state p { margin: 0; font-size: 13px; }

/* ---------- Metrics ---------- */
.metrics { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(150px, 100%), 1fr)); gap: 12px; margin-bottom: 20px; }
.metric { display: flex; flex-direction: column; gap: 8px; padding: 16px 18px; border-radius: 14px; background: var(--sf); border: 1px solid var(--bd); color: var(--tx); min-width: 0; }
a.metric:hover { border-color: var(--bd2); text-decoration: none; }
.metric .label { font-size: 12px; color: var(--t3); }
.metric .value { font-size: 26px; font-weight: 600; letter-spacing: -.02em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.metric .value .of { font-size: 14px; font-weight: 400; color: var(--t3); letter-spacing: 0; }
.metric .note { font-size: 12px; color: var(--t2); display: flex; align-items: center; gap: 6px; }
.metric .note.green, .metric .note.amber, .metric .note.red { font-weight: 500; }
.metric .note.green { color: var(--ok); } .metric .note.amber { color: var(--wn); } .metric .note.red { color: var(--dg); }
.metric .note.green::before, .metric .note.amber::before, .metric .note.red::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.metric-hero { background: linear-gradient(180deg, color-mix(in srgb, var(--ac) 7%, var(--sf)), var(--sf)); }
.metric .bar { margin: 2px 0 0; }

/* ---------- Attention list ---------- */
.hero { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 20px; }
.hero .hello { font-size: 13px; color: var(--t3); margin-bottom: 6px; }
.hero h1 { font-size: 34px; }
.attention { border-radius: 16px; border: 1px solid var(--bd); background: var(--sf); overflow: hidden; }
.attention-row { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-top: 1px solid var(--bd); color: var(--tx); }
.attention-row:first-child { border-top: 0; }
a.attention-row:hover { background: var(--hv); text-decoration: none; }
.attention-row .ico { width: 32px; height: 32px; border-radius: 9px; display: inline-flex; align-items: center; justify-content: center; flex: none; background: var(--wnb); color: var(--wn); }
.attention-row.red .ico { background: var(--dgb); color: var(--dg); }
.attention-row .txt { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.attention-row .txt strong { font-size: 14px; font-weight: 600; }
.attention-row .txt span { font-size: 13px; color: var(--t2); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.attention-row .age { font: 500 12px var(--font-mono); color: var(--t3); white-space: nowrap; }
.attention-row .badge { flex: none; }
.all-clear { display: flex; align-items: center; gap: 14px; padding: 18px; border-radius: 16px; border: 1px solid var(--bd); background: var(--sf); }
.all-clear .ico { width: 36px; height: 36px; border-radius: 50%; background: var(--okb); color: var(--ok); display: inline-flex; align-items: center; justify-content: center; flex: none; }

/* ---------- Banners ---------- */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; padding: 12px 14px 12px 42px; border-radius: 12px; position: relative; background: var(--wnb); color: var(--tx); font-size: 13.5px; line-height: 1.5; margin-bottom: 16px; }
.banner::before { content: ""; position: absolute; left: 14px; top: 13px; width: 17px; height: 17px; background: var(--wn); -webkit-mask: var(--m-warn) center / contain no-repeat; mask: var(--m-warn) center / contain no-repeat; }
.banner.info { background: var(--inb); }
.banner.info::before { background: var(--in); -webkit-mask-image: var(--m-info); mask-image: var(--m-info); }

/* ---------- Status ---------- */
.badge { display: inline-flex; align-items: center; gap: 6px; height: 22px; padding: 0 9px; border-radius: 999px; border: 0; font: 500 12px var(--font-sans); white-space: nowrap; background: var(--hv); color: var(--t2); vertical-align: middle; }
.badge.b-green, .badge.b-amber, .badge.b-red, .badge.b-blue { padding-left: 8px; }
.badge.b-green::before, .badge.b-amber::before, .badge.b-red::before, .badge.b-blue::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; flex: none; }
.badge.b-red::before { border-radius: 2px; }
.b-green { background: var(--okb); color: var(--ok); }
.b-amber { background: var(--wnb); color: var(--wn); }
.b-red { background: var(--dgb); color: var(--dg); }
.b-blue { background: var(--inb); color: var(--in); }
.b-grey { background: transparent; color: var(--t2); box-shadow: inset 0 0 0 1px var(--bd2); }
.dot { display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--t3); flex: none; }
.dot.green { background: var(--ok); box-shadow: 0 0 0 3px var(--okb); }
.dot.amber { background: var(--wn); box-shadow: 0 0 0 3px var(--wnb); }
.dot.blue { background: var(--in); box-shadow: 0 0 0 3px var(--inb); }
.dot.grey { background: var(--t3); }
.bar { height: 5px; border-radius: 999px; background: var(--hv); overflow: hidden; margin: 4px 0; min-width: 60px; }
.bar span { display: block; height: 100%; border-radius: 999px; background: var(--t2); }
.bar span.amber { background: var(--wn); }
.bar span.lime { background: var(--ac); }

/* ---------- Tables ---------- */
.table-wrap { position: relative; border-radius: 14px; border: 1px solid var(--bd); background: var(--sf); overflow-x: auto; margin-bottom: 16px; }
.table-wrap table { width: 100%; border-collapse: collapse; font-size: 13.5px; }
.table-wrap th, .table-wrap td { text-align: left; padding: 11px 14px; border-bottom: 1px solid var(--bd); vertical-align: middle; }
.table-wrap th { height: 38px; padding-top: 0; padding-bottom: 0; font-size: 12px; font-weight: 500; color: var(--t3); white-space: nowrap; background: color-mix(in srgb, var(--hv) 35%, transparent); }
.table-wrap tr:last-child td { border-bottom: 0; }
.table-wrap tbody tr { transition: background .1s; }
.table-wrap tbody tr:hover td { background: color-mix(in srgb, var(--hv) 45%, transparent); }
.table-wrap td a:not(.btn) { color: var(--tx); }
.table-wrap td a:not(.btn):hover { color: var(--act); text-decoration: none; }
.table-wrap td a strong { font-weight: 500; }
.cell-main { display: inline-flex; align-items: center; gap: 10px; }
.cell-stack { display: flex; flex-direction: column; line-height: 1.35; min-width: 0; }
.cell-stack .sub { font-size: 12px; color: var(--t3); }
.row-actions { display: flex; flex-wrap: nowrap; gap: 6px; justify-content: flex-end; }
dl.rows { margin: 0; display: flex; flex-direction: column; }
dl.rows > div { display: flex; justify-content: space-between; gap: 12px; padding: 9px 0; border-top: 1px solid var(--bd); font-size: 13px; }
dl.rows > div:first-child { border-top: 0; padding-top: 0; }
dl.rows > div:last-child { padding-bottom: 0; }
dl.rows dt { color: var(--t2); }
dl.rows dd { margin: 0; text-align: right; }

/* ---------- Filters ---------- */
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin: 4px 0 12px; }
.filters input[type=search] { width: 240px; max-width: 100%; height: 34px; min-height: 34px; padding-left: 34px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%238A8D94' stroke-width='2' stroke-linecap='round'%3E%3Ccircle cx='11' cy='11' r='7'/%3E%3Cpath d='m20 20-3.5-3.5'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: 11px center; background-size: 15px; }
.chips { display: inline-flex; flex-wrap: wrap; gap: 2px; padding: 3px; border-radius: 10px; background: var(--hv); }
.chip { height: 28px; padding: 0 11px; border-radius: 8px; border: 0; background: transparent; color: var(--t2); font: 500 12.5px var(--font-sans); cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.chip .num { font-size: 11px; color: var(--t3); }
.chip[aria-pressed="true"] { background: var(--rs); color: var(--tx); box-shadow: 0 1px 2px rgba(0,0,0,.18); }

/* ---------- Toasts ---------- */
.messages { position: fixed; z-index: 60; right: 20px; bottom: 20px; display: flex; flex-direction: column; gap: 8px; max-width: min(420px, calc(100vw - 40px)); }
.messages li { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 14px; background: var(--rs); border: 1px solid var(--bd); box-shadow: var(--sh); font-size: 13.5px; animation: toast-in .25s ease; }
.messages li::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: var(--in); flex: none; }
.messages li.success::before { background: var(--ok); }
.messages li.hide { opacity: 0; transform: translateY(6px); transition: all .3s; }
@keyframes toast-in { from { opacity: 0; transform: translateY(8px); } }

/* ---------- Dialogs ---------- */
dialog.atlas-dialog { border: 0; padding: 0; margin: auto; background: transparent; color: var(--tx); max-width: none; max-height: none; overflow: visible; }
dialog.atlas-dialog::backdrop { background: rgba(0,0,0,.6); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); }
dialog.atlas-dialog[open] > .sheet { animation: pop-in .18s ease; }
@keyframes pop-in { from { opacity: 0; transform: translateY(6px) scale(.98); } }
.sheet { width: 480px; max-width: calc(100vw - 32px); border-radius: 18px; background: var(--rs); border: 1px solid var(--bd); box-shadow: 0 30px 80px rgba(0,0,0,.45); overflow: hidden; display: flex; flex-direction: column; max-height: calc(100dvh - 32px); }
.sheet.wide { width: 640px; }
.sheet-body { padding: 24px 24px 20px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; min-height: 0; }
.sheet-icon { width: 40px; height: 40px; border-radius: 11px; display: inline-flex; align-items: center; justify-content: center; background: var(--wnb); color: var(--wn); flex: none; }
.sheet[data-tone="danger"] .sheet-icon { background: var(--dgb); color: var(--dg); }
.sheet[data-tone="info"] .sheet-icon { background: var(--inb); color: var(--in); }
.sheet h2 { margin: 0; font-size: 18px; }
.sheet-text { font-size: 14px; line-height: 1.55; color: var(--t2); margin: 0; }
.sheet-foot { display: flex; justify-content: flex-end; gap: 10px; padding: 16px 24px; border-top: 1px solid var(--bd); background: var(--sf); flex: none; }
.sheet .field { margin: 0; }
.sheet .form-grid { gap: 14px 16px; }
.cmdk { width: 600px; }
dialog.cmdk-dialog { margin: 12vh auto auto; }
.cmdk-input { display: flex; align-items: center; gap: 10px; padding: 0 16px; border-bottom: 1px solid var(--bd); flex: none; }
.cmdk-input .i { color: var(--t3); }
.cmdk-input input { flex: 1; height: 52px; border: 0; outline: none; background: transparent; color: var(--tx); font: 400 15px var(--font-sans); }
.cmdk-list { margin: 0; padding: 8px; max-height: 360px; overflow-y: auto; }
.cmdk-group { padding: 8px 10px 4px; font-size: 11px; font-weight: 500; letter-spacing: .06em; text-transform: uppercase; color: var(--t3); }
.cmdk-item { display: flex; align-items: center; gap: 10px; height: 38px; padding: 0 10px; border-radius: 9px; color: var(--tx); cursor: pointer; font-size: 13.5px; }
.cmdk-item .i { color: var(--t3); }
.cmdk-item span:first-of-type { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cmdk-item .hint { margin-left: auto; font-size: 12px; color: var(--t3); white-space: nowrap; }
.cmdk-item[aria-selected="true"] { background: var(--hv); }
.cmdk-item[aria-selected="true"] .i { color: var(--act); }
.cmdk-empty { padding: 20px; text-align: center; color: var(--t3); font-size: 13px; }
.cmdk-foot { display: flex; gap: 14px; padding: 10px 16px; border-top: 1px solid var(--bd); font-size: 12px; color: var(--t3); flex: none; }

/* ---------- Sign-in ---------- */
.auth { min-height: 100vh; display: flex; flex-wrap: wrap; background: var(--bg); }
.auth-brand { flex: 1 1 480px; min-height: 340px; position: relative; overflow: hidden; background: #000; color: #F4F5F6; display: flex; flex-direction: column; justify-content: space-between; padding: 44px; }
.auth-brand::before { content: ""; position: absolute; inset: 0; pointer-events: none;
  background-image: linear-gradient(rgba(255,255,255,.04) 1px, transparent 1px), linear-gradient(90deg, rgba(255,255,255,.04) 1px, transparent 1px);
  background-size: 48px 48px; -webkit-mask-image: radial-gradient(520px 420px at 40% 48%, #000, transparent 75%); mask-image: radial-gradient(520px 420px at 40% 48%, #000, transparent 75%); }
.auth-brand::after { content: ""; position: absolute; left: 18%; top: 40%; width: 440px; height: 170px; pointer-events: none; background: radial-gradient(closest-side, rgba(135,237,51,.14), transparent); filter: blur(10px); }
.auth-brand > * { position: relative; z-index: 1; }
.auth-status { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: #8A8D94; }
.auth-status::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: #3DD68C; }
.auth-hero { display: flex; flex-direction: column; gap: 22px; }
.auth-hero p { margin: 0; max-width: 420px; font-size: 17px; line-height: 1.55; color: #A6A8AD; }
.auth-owner { display: flex; align-items: center; gap: 12px; font-size: 12px; color: #8A8D94; }
.auth-owner .owner-word { font-size: 16px; color: #fff; letter-spacing: .04em; }
.auth-form { flex: 1 1 440px; display: flex; flex-direction: column; justify-content: center; align-items: center; padding: 48px 24px; }
.auth-box { width: 100%; max-width: 380px; display: flex; flex-direction: column; gap: 24px; }
.auth-box h1 { font-size: 28px; }
.auth-box .brand-mark { width: 44px; height: 44px; border-radius: 12px; }
.auth-box .brand-mark svg { width: 26px; height: 26px; }
.auth-box .sub { margin: 8px 0 0; font-size: 14px; color: var(--t2); }
.auth-box .small { margin: 0; }
.auth-box .btn[data-variant="primary"] { width: 100%; height: 42px; font-size: 14px; }
.auth-note { display: flex; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--sf); border: 1px solid var(--bd); font-size: 12px; line-height: 1.55; color: var(--t3); }
.auth-note .i { color: var(--t2); margin-top: 1px; width: 14px; height: 14px; }
.auth-copy { margin-top: 40px; font: 400 12px var(--font-mono); color: var(--t3); }
.lockup { display: inline-flex; flex-direction: column; align-items: center; gap: 8px; width: fit-content; max-width: 100%; color: #fff; }
.lockup-word { font: 700 clamp(36px, 4.5vw, 62px)/1 var(--font-sans); letter-spacing: -.03em; white-space: nowrap; }
.lockup-by { font: 400 11px var(--font-sans); letter-spacing: .5em; text-indent: .5em; color: #A6A8AD; }
@media (max-width: 760px) { .auth-brand { min-height: 0; padding: 28px 24px; gap: 28px; } .auth-hero p { font-size: 15px; } }

@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; } }


/* ==========================================================================
   Part 2: Plan Tracker components
   ========================================================================== */

/* Full-height board layout on desktop; normal page flow on small screens */
@media (min-width: 861px) and (min-height: 620px) {
  .app.is-board { height: 100vh; overflow: hidden; }
  .app.is-board .main { height: 100vh; }
  .app.is-board .content { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-bottom: 20px; }
  .app.is-board .board { flex: 1; min-height: 0; }
  .app.is-board .col { min-height: 0; }
}

.board-head { margin-bottom: 14px; }
.board-filters { margin: 0 0 14px; }
.board-filters .right { margin-left: auto; display: flex; gap: 8px; align-items: center; }

.week-nav { display: inline-flex; align-items: center; gap: 2px; padding: 3px; border-radius: 10px; background: var(--hv); }
.week-nav button { width: 28px; height: 28px; border-radius: 8px; display: inline-flex; align-items: center; justify-content: center; color: var(--t2); cursor: pointer; }
.week-nav button:hover { background: var(--rs); color: var(--tx); }
.week-nav .label { display: inline-flex; align-items: baseline; gap: 8px; padding: 0 8px; font-size: 12.5px; font-weight: 500; white-space: nowrap; }
.week-nav .label .mono { font-size: 11px; color: var(--t3); }
.week-nav button.today-btn { width: auto; padding: 0 9px; font: 500 12.5px var(--font-sans); background: var(--rs); color: var(--tx); box-shadow: 0 1px 2px rgba(0,0,0,.18); }

.face-filter { display: inline-flex; align-items: center; padding-left: 4px; }
.face { margin-left: -4px; border-radius: 50%; cursor: pointer; display: inline-flex; box-shadow: 0 0 0 2px var(--bg); transition: transform .12s; position: relative; }
.face:hover { transform: translateY(-2px); z-index: 2; }
.face .who-avatar { width: 28px; height: 28px; font-size: 10.5px; }
.face[aria-pressed="true"] { box-shadow: 0 0 0 2px var(--bg), 0 0 0 4px var(--ac); z-index: 3; }

.avatar-stack { display: inline-flex; padding-left: 3px; }
.avatar-stack .who-avatar { margin-left: -3px; font-size: 9px; box-shadow: 0 0 0 2px var(--sf); }
.avatar-stack .more { background: var(--hv); color: var(--t2); font: 500 10px var(--font-mono); text-transform: none; }

/* Board */
.board { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(270px, 1fr); gap: 12px; overflow-x: auto; padding-bottom: 4px; align-items: stretch; }
.col { display: flex; flex-direction: column; border-radius: 16px; background: color-mix(in srgb, var(--hv) 30%, transparent); border: 1px solid var(--bd); transition: border-color .12s; }
.col.drop { border-color: color-mix(in srgb, var(--ac) 55%, transparent); }
.col-head { display: flex; align-items: center; gap: 10px; height: 44px; padding: 0 14px; flex: none; }
.col-name { font-size: 13px; font-weight: 600; }
.col-count { font: 500 11.5px var(--font-mono); color: var(--t3); margin-left: auto; }
.col-body { flex: 1; min-height: 64px; overflow-y: auto; padding: 2px 8px 8px; display: flex; flex-direction: column; gap: 8px; }
.col-foot { padding: 0 8px 8px; flex: none; }
.col-add { display: flex; align-items: center; justify-content: flex-start; gap: 7px; width: 100%; height: 32px; padding: 0 8px; border-radius: 9px; color: var(--t3); font-size: 13px; cursor: pointer; }
.col-add:hover { background: var(--hv); color: var(--tx); }
.col-form { display: flex; flex-direction: column; gap: 8px; }
.col-form textarea { width: 100%; min-height: 62px; padding: 9px 11px; border-radius: 10px; border: 1px solid var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); background: var(--rs); color: var(--tx); font: 500 13.5px/1.4 var(--font-sans); resize: none; outline: none; }
.col-form textarea::placeholder { color: var(--t3); font-weight: 400; }
.col-form .row { display: flex; gap: 6px; }
.col-empty { padding: 20px 10px; text-align: center; border: 1px dashed var(--bd2); border-radius: 12px; font-size: 12.5px; color: var(--t3); }
.drop-line { height: 2px; flex: none; margin: -1px 2px; border-radius: 2px; background: var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); }

/* Task card */
.task { display: flex; flex-direction: column; gap: 8px; padding: 12px; flex: none; border-radius: 12px; background: var(--rs); border: 1px solid var(--bd); box-shadow: var(--sh-sm); cursor: grab; transition: border-color .12s; }
.task:hover { border-color: var(--bd2); }
.task:active { cursor: grabbing; }
.task.dragging { opacity: .35; }
.task-top { display: flex; align-items: center; gap: 8px; min-height: 22px; }
.task-top .badge { margin-left: auto; height: 20px; font-size: 11.5px; }
.task-top .badge + .badge { margin-left: 0; }
.task-top .i { margin-left: auto; color: var(--ok); }
.task-top .badge + .i { margin-left: 0; }
.load-cell { display: flex; align-items: center; gap: 10px; min-width: 120px; }
.load-cell .bar { flex: 1; margin: 0; }
.load-cell .val { font: 500 12px var(--font-mono); color: var(--t2); }
.task-id { font: 500 11.5px var(--font-mono); color: var(--t3); }
.task-title { margin: 0; font-size: 13.5px; font-weight: 500; line-height: 1.4; overflow-wrap: anywhere; }
.task.is-done .task-title { color: var(--t2); }
.task-src { display: inline-flex; align-items: center; gap: 6px; width: fit-content; max-width: 100%; font-size: 12px; color: var(--t3); cursor: pointer; text-align: left; }
.task-src:hover { color: var(--act); }
.task-src span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-foot { display: flex; align-items: center; gap: 12px; }
.task-foot .who-avatar { margin-left: auto; }
.meta { display: inline-flex; align-items: center; gap: 5px; font: 500 12px var(--font-mono); color: var(--t3); white-space: nowrap; }
.meta.red { color: var(--dg); } .meta.amber { color: var(--wn); }

/* Task drawer */
dialog.drawer { padding: 0; border: 0; margin: 0 0 0 auto; width: 520px; max-width: 100vw; height: 100dvh; max-height: none; background: var(--rs); color: var(--tx); border-left: 1px solid var(--bd); box-shadow: var(--sh); overflow: hidden; }
dialog.drawer[open] { display: flex; flex-direction: column; animation: drawer-in .2s ease; }
dialog.drawer::backdrop { background: rgba(0,0,0,.5); }
@keyframes drawer-in { from { transform: translateX(24px); opacity: 0; } }
.drawer-head { display: flex; align-items: center; gap: 10px; height: 52px; padding: 0 14px 0 20px; border-bottom: 1px solid var(--bd); flex: none; }
.drawer-head .spacer { flex: 1; }
.drawer-body { flex: 1; min-height: 0; overflow-y: auto; padding: 20px; display: flex; flex-direction: column; gap: 22px; }
.title-input { display: block; width: calc(100% + 12px); margin: -4px -6px; padding: 4px 6px; border-radius: 8px; background: transparent; color: var(--tx); font: 600 20px/1.3 var(--font-sans); letter-spacing: -.02em; resize: none; outline: none; field-sizing: content; }
.title-input:focus { box-shadow: 0 0 0 2px var(--ac-ring); }
.drawer-body .form-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 12px; }
.drawer-body .field { margin: 0; }
.drawer-body .field textarea { min-height: 84px; }
.src-link { display: flex; align-items: center; gap: 12px; padding: 11px 12px; border-radius: 12px; background: var(--sf); border: 1px solid var(--bd); color: var(--tx); }
.src-link:hover { border-color: var(--bd2); text-decoration: none; }
.src-link > .i:first-child { color: var(--act); }
.src-link > .i:last-child { color: var(--t3); margin-left: auto; }
.d-section-head { display: flex; align-items: center; gap: 8px; margin-bottom: 10px; }
.d-section-head .i { color: var(--t3); }
.d-section-head h3 { font-size: 13px; }
.d-section-head .mono { margin-left: auto; font-size: 12px; color: var(--t3); }
.check-row { display: flex; align-items: flex-start; gap: 10px; padding: 6px 0; font-size: 13.5px; cursor: pointer; }
.check-row.on span { color: var(--t3); text-decoration: line-through; text-decoration-color: var(--bd2); }
.inline-add { display: flex; gap: 8px; margin-top: 8px; }
.inline-add .input { min-height: 32px; height: 32px; font-size: 13px; flex: 1; min-width: 0; }
.inline-add .btn { height: 32px; }
.comment { display: flex; gap: 10px; padding: 8px 0; }
.comment-main { min-width: 0; font-size: 13.5px; }
.comment-meta { display: flex; gap: 8px; align-items: baseline; }
.comment-meta strong { font-size: 13px; font-weight: 600; }
.comment-meta .mono { font-size: 11.5px; color: var(--t3); }
.comment-main p { margin: 2px 0 0; color: var(--t2); overflow-wrap: anywhere; }

/* Meetings */
.quick-add { display: grid; grid-template-columns: minmax(0, 1.3fr) minmax(0, 1fr) minmax(0, .9fr) auto; gap: 8px; padding: 12px; border-radius: 12px; background: color-mix(in srgb, var(--ac) 6%, transparent); border: 1px solid color-mix(in srgb, var(--ac) 30%, transparent); }
.quick-add .input { min-height: 34px; height: 34px; font-size: 13px; }
.quick-add .btn { height: 34px; }
.quick-add .input[name=title] { grid-column: 1 / -1; }
@media (max-width: 620px) { .quick-add { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .quick-add select[name=assignee], .quick-add .btn { grid-column: 1 / -1; } }
.quick-hint { margin: 8px 2px 14px; font-size: 12px; color: var(--t3); }
.outcome-list { display: flex; flex-direction: column; }
.outcome { display: flex; align-items: center; gap: 12px; min-height: 46px; padding: 8px 6px; border-top: 1px solid var(--bd); cursor: pointer; border-radius: 0; }
.outcome:first-child { border-top: 0; }
.outcome:hover { background: color-mix(in srgb, var(--hv) 45%, transparent); }
.outcome-title { flex: 1; min-width: 0; font-size: 13.5px; font-weight: 500; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.outcome .task-id { flex: none; }
.outcome.is-done .outcome-title { color: var(--t2); }
@media (max-width: 620px) { .outcome .task-id, .outcome .badge { display: none; } }
.agenda { counter-reset: a; display: flex; flex-direction: column; }
.agenda li { counter-increment: a; display: flex; gap: 12px; padding: 8px 0; border-top: 1px solid var(--bd); font-size: 13.5px; }
.agenda li:first-child { border-top: 0; padding-top: 0; }
.agenda li:last-child { padding-bottom: 0; }
.agenda li::before { content: counter(a, decimal-leading-zero); font: 500 12px/21px var(--font-mono); color: var(--t3); }
.notes-input { width: 100%; min-height: 128px; padding: 10px 12px; border-radius: 10px; border: 1px solid var(--bd2); background: transparent; color: var(--tx); font: 400 14px/1.55 var(--font-sans); resize: vertical; outline: none; transition: border-color .12s, box-shadow .12s; }
.notes-input:focus { border-color: var(--ac); box-shadow: 0 0 0 3px var(--ac-ring); }
.notes-input::placeholder { color: var(--t3); }
.person-row { display: flex; align-items: center; gap: 10px; padding: 7px 0; }
.person-row:first-child { padding-top: 0; }
.person-row:last-child { padding-bottom: 0; }
.person-row .badge { margin-left: auto; }
.check-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 2px 12px; max-height: 176px; overflow-y: auto; padding: 8px; border-radius: 10px; border: 1px solid var(--bd2); }
.check-grid label { display: flex; align-items: center; gap: 10px; min-height: 34px; padding: 2px 4px; font-size: 13px; font-weight: 400; cursor: pointer; line-height: 1.2; }
.switch-row { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--bd); background: var(--sf); }
.switch-row strong { display: block; font-size: 13.5px; font-weight: 600; }
.switch-row span { display: block; font-size: 12.5px; color: var(--t3); }

/* Clients */
.prov { width: 36px; height: 36px; border-radius: 10px; flex: none; display: inline-flex; align-items: center; justify-content: center; font: 700 12px var(--font-sans); letter-spacing: -.02em; }
.prov-plain { background: var(--hv); color: var(--tx); box-shadow: inset 0 0 0 1px var(--bd); }
.title-row .prov { width: 32px; height: 32px; border-radius: 9px; }
.meet-row > .badge { margin-left: auto; flex: none; }
.late-note { display: inline-flex; margin-left: 8px; }
dl.rows dd { min-width: 0; overflow-wrap: anywhere; }

/* Meeting rows */
.meet-row { display: flex; align-items: center; gap: 12px; padding: 10px 0; border-top: 1px solid var(--bd); color: var(--tx); }
.meet-row:first-child, .card-head + .meet-row { border-top: 0; padding-top: 0; }
.meet-row:last-child { padding-bottom: 0; }
.meet-row:hover { text-decoration: none; }
.meet-row:hover strong { color: var(--act); }
.meet-row strong { font-weight: 500; font-size: 13.5px; }
.meet-row .avatar-stack { margin-left: auto; flex: none; }
.meet-date { width: 40px; height: 42px; flex: none; border-radius: 10px; background: var(--hv); display: inline-flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
.meet-date b { font: 600 15px var(--font-mono); }
.meet-date small { font-size: 10.5px; color: var(--t3); }

@media (max-width: 860px) {
  .board { grid-auto-columns: min(84vw, 320px); scroll-snap-type: x proximity; margin: 0 -16px; padding: 0 16px 8px; scroll-padding: 16px; }
  .col { scroll-snap-align: start; }
  .board-filters .right { margin-left: 0; }
  .filters input[type=search] { width: 100%; }
}

/* ---------- Live app ---------- */
.messages { inset: auto 20px 20px auto; margin: 0; padding: 0; border: 0; background: transparent; overflow: visible; }
.messages li.error::before { background: var(--dg); border-radius: 2px; }
.auth-box .errorlist:not([hidden]) { margin-top: 2px; }
.file-row { display: flex; align-items: center; gap: 10px; padding: 6px 0; font-size: 13.5px; }
.file-row a { flex: 1; min-width: 0; color: var(--tx); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.file-row .mono { font-size: 12px; color: var(--t3); white-space: nowrap; }
.file-pick { position: relative; margin-top: 8px; height: 32px; }
.file-pick.is-busy { opacity: .5; pointer-events: none; }
.secret-row { display: flex; gap: 8px; align-items: stretch; }
.secret { flex: 1; min-width: 0; display: flex; align-items: center; padding: 8px 12px; border-radius: 10px; background: var(--hv); font: 500 14px var(--font-mono); overflow-wrap: anywhere; user-select: all; }
