/* Agenda Platform design system v2: app shell, cards, calendar. Self-contained: no CDN, no external fonts or icons. */
@font-face { font-family: "Inter"; src: url("../fonts/inter.woff2") format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
:root {
  --brand: #0b2545; --org-accent: #2556e8; --accent: var(--org-accent);
  --accent-text: color-mix(in srgb, var(--org-accent) 80%, #000); --accent-soft: color-mix(in srgb, var(--org-accent) 11%, #fff); --on-accent: #fff;
  --bg: #f6f8fc; --surface: #fff; --surface-2: #f1f4fa; --ink: #0f1b33; --muted: #566781; --line: #e3e9f3; --line-strong: #cfd8e8;
  --ok: #0f6b3c; --ok-bg: #e3f6ea; --warn: #8a4b00; --warn-bg: #fff2d9; --bad: #a3202a; --bad-bg: #fdebed; --info-bg: var(--accent-soft);
  --radius: 16px; --radius-sm: 10px; --shadow-sm: 0 1px 2px rgba(15,27,51,.06); --shadow: 0 1px 2px rgba(15,27,51,.04), 0 8px 24px rgba(15,27,51,.05);
  --font: "Inter", system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif; --sidebar: 268px; --side-bg: #ffffff; --side-ink: #1c2a44; --side-muted: #5b6b86; --side-hover: #f1f5fb; --side-line: #e6ebf4;
}
:root[data-theme="dark"] { --bg: #0a1120; --surface: #111b30; --surface-2: #17233c; --ink: #e8eefb; --muted: #a3b4d0; --line: #22314f; --line-strong: #31446a;
    --ok: #7fe0a6; --ok-bg: #11301f; --warn: #ffd089; --warn-bg: #3a2a0c; --bad: #ff9aa2; --bad-bg: #3d1519;
    --accent: var(--org-accent); --accent-text: color-mix(in srgb, var(--org-accent) 40%, #fff); --accent-soft: color-mix(in srgb, var(--org-accent) 22%, #111b30); --on-accent: #fff;
    --shadow: none; --shadow-sm: none; --side-bg: #0c1730; --side-ink: #dfe8ff; --side-muted: #a3b4d0; --side-hover: rgba(255,255,255,.08); --side-line: rgba(255,255,255,.12); }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) { --bg: #0a1120; --surface: #111b30; --surface-2: #17233c; --ink: #e8eefb; --muted: #a3b4d0; --line: #22314f; --line-strong: #31446a;
    --ok: #7fe0a6; --ok-bg: #11301f; --warn: #ffd089; --warn-bg: #3a2a0c; --bad: #ff9aa2; --bad-bg: #3d1519;
    --accent: var(--org-accent); --accent-text: color-mix(in srgb, var(--org-accent) 40%, #fff); --accent-soft: color-mix(in srgb, var(--org-accent) 22%, #111b30); --on-accent: #fff;
    --shadow: none; --shadow-sm: none; --side-bg: #0c1730; --side-ink: #dfe8ff; --side-muted: #a3b4d0; --side-hover: rgba(255,255,255,.08); --side-line: rgba(255,255,255,.12); }
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scroll-behavior: smooth; }
body { min-height: 100vh; display: flex; flex-direction: column; margin: 0; font: .9375rem/1.55 var(--font); font-feature-settings: "cv11", "ss01"; background: var(--bg); color: var(--ink); -webkit-font-smoothing: antialiased; }
a { color: var(--accent-text); text-underline-offset: 3px; }
h1, h2, h3, h4 { line-height: 1.2; margin: 0 0 .5rem; letter-spacing: -.02em; font-weight: 700; }
h1 { font-size: 1.75rem; } h2 { font-size: 1.15rem; } h3 { font-size: 1rem; }
p { margin: 0 0 1rem; } code { font-size: .9em; background: var(--surface-2); padding: 1px 6px; border-radius: 6px; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; border-radius: 8px; }
[hidden] { display: none !important; }
.skip { position: absolute; left: 8px; top: -200px; background: #fff; color: #000; padding: .75rem 1rem; z-index: 200; border-radius: 0 0 10px 0; }
.skip:focus { top: 8px; }
.i { width: 20px; height: 20px; flex: none; stroke: currentColor; fill: none; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; vertical-align: -4px; }
.muted { color: var(--muted); } .small { font-size: .85rem; } .right { text-align: right; } .nowrap-text { white-space: nowrap; }
.container { width: 100%; max-width: 1180px; margin: 0 auto; padding: 0 20px; }
.stack > * + * { margin-top: 1rem; } .row { display: flex; gap: .75rem; flex-wrap: wrap; align-items: center; } .row.between { justify-content: space-between; } .row.nowrap { flex-wrap: nowrap; }
.grid { display: grid; gap: 18px; }
@media (min-width: 760px) { .grid.cols-2 { grid-template-columns: 1fr 1fr; } .grid.cols-3 { grid-template-columns: repeat(3, 1fr); } .grid.cols-sidebar { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); } }
.grid > *, .row > *, .station-grid > * { min-width: 0; }

/* ---------- cards, buttons, badges ---------- */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); padding: 20px; }
.card.flush { padding: 0; overflow: hidden; } .card h2 { margin-bottom: .75rem; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 18px 20px 0; } .card-head h2 { margin: 0; }
a.card { text-decoration: none; color: inherit; transition: transform .15s, box-shadow .15s, border-color .15s; } a.card:hover { transform: translateY(-2px); border-color: var(--line-strong); box-shadow: 0 2px 4px rgba(15,27,51,.06), 0 16px 36px rgba(15,27,51,.1); }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 999px; border: 1px solid var(--line-strong); background: var(--surface); color: var(--ink);
  font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .15s, border-color .15s, transform .05s; }
.btn:hover { background: var(--surface-2); border-color: var(--muted); } .btn:active { transform: translateY(1px); }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--on-accent); box-shadow: 0 6px 16px color-mix(in srgb, var(--org-accent) 32%, transparent); }
.btn.primary:hover { filter: brightness(1.07); background: var(--accent); }
.btn.danger { background: var(--bad-bg); color: var(--bad); border-color: color-mix(in srgb, var(--bad) 30%, transparent); } .btn.good { background: var(--ok-bg); color: var(--ok); border-color: color-mix(in srgb, var(--ok) 30%, transparent); }
.btn.soft { background: var(--accent-soft); color: var(--accent-text); border-color: transparent; }
.btn.sm { min-height: 34px; padding: 0 13px; font-size: .84rem; } .btn.block { width: 100%; } .btn.icon { width: 40px; padding: 0; }
.badge { display: inline-flex; align-items: center; gap: 6px; padding: 3px 11px; border-radius: 999px; font-size: .76rem; font-weight: 600; background: var(--surface-2); color: var(--ink); border: 1px solid var(--line); line-height: 1.5; }
.badge.ok { background: var(--ok-bg); color: var(--ok); border-color: transparent; } .badge.warn { background: var(--warn-bg); color: var(--warn); border-color: transparent; }
.badge.bad { background: var(--bad-bg); color: var(--bad); border-color: transparent; } .badge.info { background: var(--info-bg); color: var(--accent-text); border-color: transparent; }
.badge.dot::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.avatar { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 50%; font-size: .8rem; font-weight: 700; color: #fff; flex: none; border: 2px solid var(--surface); }
.avatar.lg { width: 56px; height: 56px; font-size: 1.1rem; } .avatar.sm { width: 28px; height: 28px; font-size: .68rem; }
.av-0 { background: #2f5fd0; } .av-1 { background: #0e7c86; } .av-2 { background: #8a45c7; } .av-3 { background: #c2410c; } .av-4 { background: #2e7d32; } .av-5 { background: #b4235b; } .av-6 { background: #5b5fc7; } .av-7 { background: #8a5a00; }
.avatars { display: inline-flex; } .avatars .avatar + .avatar { margin-left: -9px; }

/* ---------- forms ---------- */
label { display: block; font-weight: 600; font-size: .88rem; margin-bottom: 6px; }
input:not([type]), input[type=text], input[type=email], input[type=search], input[type=url], input[type=date], input[type=number], input[type=password], input[type=datetime-local], input[type=file], select, textarea {
  width: 100%; min-height: 44px; padding: 10px 14px; border: 1px solid var(--line-strong); border-radius: var(--radius-sm); background: var(--surface); color: var(--ink); font: inherit; transition: border-color .15s, box-shadow .15s; }
input:hover, select:hover, textarea:hover { border-color: var(--muted); } input:focus, select:focus, textarea:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--org-accent) 18%, transparent); outline: none; }
textarea { min-height: 110px; resize: vertical; } input[type=checkbox], input[type=radio] { width: 20px; height: 20px; vertical-align: middle; margin-right: 8px; accent-color: var(--org-accent); }
input[type=file] { padding: 9px 12px; background: var(--surface-2); } select, input, textarea { max-width: 100%; }
.field { margin-bottom: 16px; } .field .help { color: var(--muted); font-size: .82rem; margin-top: 4px; } .errorlist { list-style: none; padding: 0; margin: 5px 0 0; color: var(--bad); font-weight: 600; font-size: .86rem; }
.inline-form { display: inline-flex; gap: 6px; flex-wrap: wrap; align-items: center; margin: 0; } .inline-form select, .inline-form input { width: auto; min-width: 0; min-height: 36px; }
.search-pill { position: relative; } .search-pill .i { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: var(--muted); pointer-events: none; } .search-pill input { padding-left: 42px; border-radius: 999px; background: var(--surface); }

/* ---------- messages, banners ---------- */
.msgs { list-style: none; padding: 0; margin: 0 0 18px; } .msgs li { padding: 12px 16px; border-radius: 12px; margin-bottom: 8px; background: var(--info-bg); color: var(--accent-text); font-weight: 600; box-shadow: var(--shadow-sm); }
.msgs li.success { background: var(--ok-bg); color: var(--ok); } .msgs li.error { background: var(--bad-bg); color: var(--bad); } .msgs li.warning { background: var(--warn-bg); color: var(--warn); }
.banner { background: var(--warn-bg); color: var(--warn); border-radius: 12px; padding: 12px 16px; margin-bottom: 16px; font-weight: 600; } .banner.live { background: var(--bad-bg); color: var(--bad); } .banner a { color: inherit; }
.stat { display: flex; align-items: center; gap: 14px; } .stat .stat-ico { width: 46px; height: 46px; border-radius: 14px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); }
.stat b { display: block; font-size: 1.6rem; line-height: 1.1; letter-spacing: -.02em; } .stat span.lbl { color: var(--muted); font-size: .82rem; font-weight: 500; }
.stat.ok .stat-ico { background: var(--ok-bg); color: var(--ok); } .stat.warn .stat-ico { background: var(--warn-bg); color: var(--warn); } .stat.bad .stat-ico { background: var(--bad-bg); color: var(--bad); }

/* ---------- lists, tables ---------- */
.list { list-style: none; margin: 0; padding: 0; } .list > li { padding: 14px 20px; border-top: 1px solid var(--line); display: flex; gap: 12px; flex-wrap: wrap; justify-content: space-between; align-items: center; } .list > li:first-child { border-top: 0; }
.card.flush > .list > li:hover { background: var(--surface-2); }
.table-wrap { overflow-x: auto; max-width: 100%; min-width: 0; } table { border-collapse: collapse; width: 100%; } th, td { text-align: left; padding: 12px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { color: var(--muted); font-size: .74rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; background: var(--surface-2); } tbody tr:hover td { background: var(--surface-2); }
.date-chip { min-width: 58px; text-align: center; background: var(--accent-soft); color: var(--accent-text); border-radius: 14px; padding: 8px 10px; line-height: 1.05; flex: none; } .date-chip b { display: block; font-size: 1.35rem; letter-spacing: -.02em; } .date-chip span { font-size: .68rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; }
.section-title { background: var(--surface-2); padding: 11px 20px; font-weight: 700; font-size: .78rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-top: 1px solid var(--line); }
.entry { padding: 18px 20px; border-top: 1px solid var(--line); } .entry:first-child { border-top: 0; } .files a { display: inline-flex; align-items: center; gap: 6px; margin: 2px 10px 2px 0; }
.item-row { display: flex; gap: 14px; align-items: flex-start; } .item-no { background: var(--accent); color: var(--on-accent); border-radius: 10px; min-width: 34px; height: 34px; display: grid; place-items: center; font-weight: 700; font-size: .9rem; flex: none; }
mark { background: #ffe58a; color: #000; padding: 0 3px; border-radius: 3px; }

/* ---------- app shell (staff) ---------- */
.app { display: grid; grid-template-columns: var(--sidebar) minmax(0, 1fr); min-height: 100vh; }
.sidebar { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 18px 14px 14px; color: var(--side-ink); overflow-y: auto; border-right: 1px solid var(--side-line);
  background: var(--side-bg); }
.side-brand { display: flex; align-items: center; gap: 12px; padding: 4px 8px 18px; color: var(--side-ink); text-decoration: none; }
.logo { width: 40px; height: 40px; border-radius: 12px; background: var(--brand); color: #fff; display: grid; place-items: center; font-weight: 800; font-size: 1.15rem; flex: none; overflow: hidden; }
.side-brand b { display: block; font-size: 1rem; line-height: 1.15; } 
.side-brand small { color: var(--side-muted); opacity: 1; font-size: .74rem; }
.side-label { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--side-muted); padding: 14px 12px 6px; }
.side-link { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; color: var(--side-ink); text-decoration: none; font-weight: 500; font-size: .92rem; transition: background .15s; background: none; border: 0; width: 100%; font-family: inherit; text-align: left; cursor: pointer; }
.side-link:hover { background: var(--side-hover); } .side-link[aria-current="page"] { background: var(--accent); color: var(--on-accent); font-weight: 600; box-shadow: 0 6px 16px color-mix(in srgb, var(--org-accent) 30%, transparent); }
.side-link .count { margin-left: auto; background: #ff4d5e; color: #fff; border-radius: 999px; font-size: .7rem; padding: 1px 8px; font-weight: 700; }
.side-foot { margin-top: auto; padding-top: 14px; border-top: 1px solid var(--side-line); }
.side-user { display: flex; align-items: center; gap: 10px; padding: 8px; color: var(--side-ink); } .side-user b { display: block; font-size: .88rem; line-height: 1.2; } .side-user small { color: var(--side-muted); font-size: .74rem; }
.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 40; display: flex; align-items: center; gap: 14px; padding: 12px 28px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.topbar .title { font-weight: 700; font-size: 1.05rem; letter-spacing: -.01em; white-space: nowrap; } .topbar .grow { flex: 1; } .topbar .search-pill { width: min(360px, 40vw); }
.icon-btn { position: relative; width: 42px; height: 42px; display: grid; place-items: center; border-radius: 50%; background: var(--surface); border: 1px solid var(--line); color: var(--ink); cursor: pointer; text-decoration: none; }
.icon-btn:hover { background: var(--surface-2); } .icon-btn .dot { position: absolute; top: 7px; right: 8px; min-width: 16px; height: 16px; border-radius: 999px; background: #e5384c; color: #fff; font-size: .62rem; font-weight: 700; display: grid; place-items: center; padding: 0 4px; }
.menu-btn { display: none; }
.content { padding: 26px 28px 60px; max-width: 2200px; width: 100%; }
.page-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 22px; } .page-head h1 { margin: 0 0 4px; } .page-head p { margin: 0; color: var(--muted); }
.tabs { display: inline-flex; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 4px; gap: 2px; } .tabs a { padding: 7px 16px; border-radius: 999px; text-decoration: none; color: var(--muted); font-weight: 600; font-size: .88rem; } .tabs a[aria-current="page"], .tabs a.on { background: var(--accent); color: var(--on-accent); }
.bottom-nav { display: none; }
.scrim { display: none; }
@media (max-width: 1000px) {
  .app { grid-template-columns: minmax(0, 1fr); }
  .sidebar { position: fixed; inset: 0 auto 0 0; width: min(300px, 86vw); z-index: 90; transform: translateX(-102%); transition: transform .22s ease; }
  .app.nav-open .sidebar { transform: none; box-shadow: 0 0 60px rgba(0,0,0,.45); } .app.nav-open .scrim { display: block; position: fixed; inset: 0; background: rgba(8,14,30,.55); z-index: 80; }
  .menu-btn { display: grid; } .topbar { padding: 10px 14px; } .topbar .search-pill { display: none; } .content { padding: 18px 14px 96px; }
  .bottom-nav { display: flex; position: fixed; left: 10px; right: 10px; bottom: 10px; z-index: 60; background: var(--surface); border: 1px solid var(--line); border-radius: 22px; box-shadow: 0 12px 40px rgba(15,27,51,.25); padding: 6px; justify-content: space-around; }
  .bottom-nav a, .bottom-nav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 7px 4px; border-radius: 16px; color: var(--muted); text-decoration: none; font: 600 .68rem var(--font); background: none; border: 0; cursor: pointer; }
  .bottom-nav [aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); }
}

/* ---------- public site ---------- */
.site-header { position: sticky; top: 0; z-index: 50; background: color-mix(in srgb, var(--surface) 90%, transparent); backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.site-header .wrap { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 68px; flex-wrap: wrap; }
.brand { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; font-weight: 800; letter-spacing: -.02em; } .brand .logo { background: var(--brand); color: #fff; box-shadow: none; } .brand small { display: block; font-weight: 500; color: var(--muted); font-size: .74rem; letter-spacing: 0; }
.nav { display: none; flex-direction: column; width: 100%; padding-bottom: 12px; gap: 2px; } .nav.open { display: flex; }
.nav a, .nav button.linklike { color: var(--ink); text-decoration: none; padding: 10px 14px; border-radius: 999px; font-weight: 600; font-size: .9rem; background: none; border: 0; font-family: inherit; cursor: pointer; text-align: left; }
.nav a:hover, .nav button.linklike:hover { background: var(--surface-2); } .nav a[aria-current="page"] { background: var(--accent-soft); color: var(--accent-text); } .nav a.cta { background: var(--accent); color: var(--on-accent); } .nav a.cta:hover { filter: brightness(1.07); }
.menu-btn-pub { display: inline-grid; } @media (min-width: 960px) { .menu-btn-pub { display: none; } .nav { display: flex; flex-direction: row; width: auto; padding: 0; align-items: center; } }
main.public { padding: 28px 0 70px; min-height: 60vh; }
.site-footer { border-top: 1px solid var(--line); padding: 28px 0; color: var(--muted); font-size: .88rem; background: var(--surface); }
.hero { position: relative; overflow: hidden; color: #fff; border-radius: 24px; padding: 44px 36px; margin-bottom: 22px; background: radial-gradient(1200px 400px at 90% -20%, color-mix(in srgb, var(--org-accent) 85%, #fff) 0%, transparent 60%), linear-gradient(135deg, var(--brand), color-mix(in srgb, var(--brand) 55%, var(--org-accent))); }
.hero h1 { font-size: clamp(1.7rem, 3.4vw, 2.5rem); max-width: 18ch; margin-bottom: 10px; } .hero p { opacity: .92; max-width: 56ch; font-size: 1.05rem; }
.hero::after { content: ""; position: absolute; right: -60px; bottom: -80px; width: 320px; height: 320px; border-radius: 50%; background: rgba(255,255,255,.07); }
.hero form { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 18px; max-width: 560px; position: relative; z-index: 1; } .hero .search-pill { flex: 1 1 260px; } .hero .search-pill input { border: 0; min-height: 52px; color: #14202e; background: #fff; box-shadow: 0 10px 30px rgba(0,0,0,.2); }
.hero .btn { background: #fff; color: #14202e; border-color: #fff; min-height: 52px; } .hero .btn:hover { background: #eef3ff; }
.tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 14px; margin-bottom: 22px; }
.tile { display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; padding: 20px 12px; border-radius: 18px; background: var(--surface); border: 1px solid var(--line); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .9rem; box-shadow: var(--shadow-sm); transition: transform .15s, box-shadow .15s; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow); } .tile .tile-ico { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; }
.t-0 { background: #dfe9ff; color: #1b46b8; } .t-1 { background: #ffe3e0; color: #b3261e; } .t-2 { background: #fff0c9; color: #7a4a00; } .t-3 { background: #e0f4e8; color: #0f6b3c; } .t-4 { background: #efe2fb; color: #6b2fa3; } .t-5 { background: #dcf3f6; color: #0a6470; }
:root[data-theme="dark"] .t-0 { background: #1b2c55; color: #a9c1ff; } :root[data-theme="dark"] .t-1 { background: #46201e; color: #ffb4ad; } :root[data-theme="dark"] .t-2 { background: #43330e; color: #ffd98a; } :root[data-theme="dark"] .t-3 { background: #123222; color: #8ae2ae; } :root[data-theme="dark"] .t-4 { background: #34204a; color: #d7b4f5; } :root[data-theme="dark"] .t-5 { background: #0f3a40; color: #8fdde8; } 
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .t-0 { background: #1b2c55; color: #a9c1ff; } :root:not([data-theme="light"]):not([data-theme="dark"]) .t-1 { background: #46201e; color: #ffb4ad; } :root:not([data-theme="light"]):not([data-theme="dark"]) .t-2 { background: #43330e; color: #ffd98a; } :root:not([data-theme="light"]):not([data-theme="dark"]) .t-3 { background: #123222; color: #8ae2ae; } :root:not([data-theme="light"]):not([data-theme="dark"]) .t-4 { background: #34204a; color: #d7b4f5; } :root:not([data-theme="light"]):not([data-theme="dark"]) .t-5 { background: #0f3a40; color: #8fdde8; } }
.featured { display: grid; grid-template-columns: auto 1fr auto; gap: 20px; align-items: center; } .featured .big-date { text-align: center; background: var(--accent); color: var(--on-accent); border-radius: 18px; padding: 14px 20px; line-height: 1; } .featured .big-date b { font-size: 2.4rem; display: block; } .featured .big-date span { text-transform: uppercase; letter-spacing: .1em; font-size: .75rem; font-weight: 700; }
@media (max-width: 700px) { .featured { grid-template-columns: auto 1fr; } .featured .actions { grid-column: 1 / -1; } .hero { padding: 30px 22px; border-radius: 20px; } }
.meta-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 8px 0 0; } .chip { display: inline-flex; align-items: center; gap: 6px; padding: 5px 12px; border-radius: 999px; background: var(--surface-2); color: var(--muted); font-size: .82rem; font-weight: 500; }
.meeting-head { display: flex; gap: 20px; align-items: flex-start; flex-wrap: wrap; } .meeting-head .grow { flex: 1 1 360px; }
.sticky-side { position: sticky; top: 92px; align-self: start; }
.layout-2 { display: grid; gap: 20px; } @media (min-width: 1000px) { .layout-2 { grid-template-columns: minmax(0, 1fr) 340px; } }
.action-bar { display: flex; flex-wrap: wrap; gap: 10px; }

/* ---------- calendar ---------- */
.cal-wrap { display: grid; gap: 18px; } @media (min-width: 1000px) { .cal-wrap { grid-template-columns: minmax(0, 1fr) 340px; } }
.cal-toolbar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 14px; } .cal-toolbar h2 { margin: 0; font-size: 1.25rem; min-width: 160px; text-align: center; }
.cal { border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; background: var(--surface); }
.cal-head, .cal-week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); } .cal-head div { padding: 10px 8px; text-align: center; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); background: var(--surface-2); }
.cal-day { min-height: 108px; padding: 8px 6px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); } .cal-day:first-child { border-left: 0; } .cal-day.out { background: color-mix(in srgb, var(--surface-2) 60%, var(--surface)); } .cal-day.out .num { color: var(--muted); font-weight: 500; }
.cal-day .num { display: inline-grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; font-size: .82rem; font-weight: 600; margin-bottom: 4px; } .cal-day.today .num { background: var(--accent); color: var(--on-accent); }
.ev { display: block; width: 100%; text-align: left; border: 0; border-radius: 8px; padding: 4px 8px; margin-bottom: 3px; font: 600 .74rem/1.3 var(--font); cursor: pointer; text-decoration: none; background: var(--accent-soft); color: var(--accent-text); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ev:hover, .ev.sel { filter: brightness(.96); outline: 2px solid var(--accent); } .ev.cancelled { background: var(--bad-bg); color: var(--bad); text-decoration: line-through; } .ev.live { background: var(--bad); color: #fff; } .ev.draft { background: var(--warn-bg); color: var(--warn); }
.ev-more { font-size: .72rem; color: var(--muted); padding-left: 6px; font-weight: 600; }
.cal-panel .top-bar { height: 6px; border-radius: 6px 6px 0 0; background: var(--accent); margin: -20px -20px 16px; }
.cal-panel dl { margin: 0; } .cal-panel dt { color: var(--muted); font-size: .76rem; text-transform: uppercase; letter-spacing: .06em; font-weight: 700; margin-top: 12px; } .cal-panel dd { margin: 2px 0 0; font-weight: 500; }
.mini-cal .cal-day { min-height: 0; height: 38px; padding: 4px; border: 0; display: grid; place-items: center; } .mini-cal .cal-day .num { margin: 0; } .mini-cal .dotmark { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); display: block; margin: -2px auto 0; }
@media (max-width: 700px) { .cal-day { min-height: 64px; padding: 4px 2px; } .ev { font-size: 0; padding: 0; height: 6px; border-radius: 4px; margin-bottom: 2px; } .cal-day .num { width: 22px; height: 22px; font-size: .74rem; } }

/* ---------- timeline (dashboard) ---------- */
.timeline { list-style: none; margin: 0; padding: 0 20px 14px; } .timeline li { display: grid; grid-template-columns: 74px 1fr; gap: 14px; padding: 12px 0; border-top: 1px solid var(--line); align-items: start; } .timeline li:first-child { border-top: 0; }
.timeline .t { color: var(--muted); font-weight: 600; font-size: .84rem; padding-top: 3px; } .tl-card { border-radius: 14px; padding: 12px 14px; background: var(--surface-2); border-left: 4px solid var(--accent); } .tl-card.draft { border-left-color: #d98300; } .tl-card.cancelled { border-left-color: var(--bad); opacity: .8; } .tl-card h3 { margin: 0 0 2px; }

/* ---------- auth screen ---------- */
.auth { min-height: 100vh; display: grid; grid-template-columns: 1.05fr 1fr; } .auth-art { position: relative; overflow: hidden; color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: space-between; background: radial-gradient(900px 500px at 100% 0%, color-mix(in srgb, var(--org-accent) 85%, #fff), transparent 60%), linear-gradient(160deg, var(--brand), color-mix(in srgb, var(--brand) 50%, #000)); }
.auth-art h1 { font-size: 2.4rem; max-width: 14ch; } .auth-art ul { list-style: none; padding: 0; margin: 0; display: grid; gap: 14px; } .auth-art li { display: flex; gap: 12px; align-items: center; opacity: .95; } .auth-art li .i { background: rgba(255,255,255,.15); padding: 8px; width: 36px; height: 36px; border-radius: 12px; }
.auth-form { display: grid; place-items: center; padding: 32px 20px; } .auth-card { width: min(440px, 100%); } @media (max-width: 900px) { .auth { grid-template-columns: 1fr; } .auth-art { padding: 28px; min-height: 0; } .auth-art h1 { font-size: 1.6rem; } .auth-art ul { display: none; } }

/* ---------- meeting station / display ---------- */
.timer { font-variant-numeric: tabular-nums; font-weight: 800; font-size: 4.2rem; line-height: 1; text-align: center; padding: 22px; border-radius: 20px; background: linear-gradient(135deg, var(--accent-soft), var(--surface-2)); letter-spacing: -.03em; }
.timer.low { background: var(--warn-bg); color: var(--warn); } .timer.out { background: var(--bad-bg); color: var(--bad); }
.station-grid { display: grid; gap: 18px; } @media (min-width: 900px) { .station-grid { grid-template-columns: 1.15fr 1fr; } }
.btn-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; } @media (min-width: 560px) { .btn-grid { grid-template-columns: repeat(3, 1fr); } } .btn-grid .btn { border-radius: 14px; min-height: 48px; }
.vote-row { display: grid; grid-template-columns: 1fr auto; gap: 8px; align-items: center; padding: 10px 0; border-top: 1px solid var(--line); }
body.display { background: #060d1b; color: #fff; min-height: 100vh; font-size: clamp(18px, 2.2vw, 30px); }
.display .wrap { padding: 4vh 5vw; display: grid; gap: 3vh; } .display .title { opacity: .7; font-size: .8em; } .display .now { font-size: 1.9em; font-weight: 800; line-height: 1.15; letter-spacing: -.02em; }
.display .timer { font-size: clamp(64px, 16vw, 220px); background: linear-gradient(135deg, #12284a, #0c1c36); color: #fff; } .display .timer.low { background: #4d3500; color: #ffd27a; } .display .timer.out { background: #5a1212; color: #ffb3b3; }
.display .panel { background: #0e1e38; border-radius: 22px; padding: 2.4vh 2.2vw; border: 1px solid rgba(255,255,255,.06); } .display .announce { background: linear-gradient(135deg, #c2263a, #a31a2b); font-weight: 800; text-align: center; border-radius: 22px; padding: 2.4vh 2.2vw; font-size: 1.3em; } .display ol { margin: 0; padding-left: 1.2em; }
.kiosk .site-header .nav, .kiosk .menu-btn-pub { display: none; }
@media print { .sidebar, .topbar, .bottom-nav, .site-header, .site-footer, .btn, form { display: none !important; } .app { display: block; } body { background: #fff; color: #000; } .card { box-shadow: none; border: 0; } }
@media (prefers-reduced-motion: reduce) { * { scroll-behavior: auto !important; transition: none !important; animation: none !important; } }
body > main.public { flex: 1; width: 100%; } body > .app { flex: 1; }

.logo img { width: 100%; height: 100%; object-fit: contain; } .logo.has-img { background: transparent; }
.theme-btn .i-sun { display: none; } :root[data-theme="dark"] .theme-btn .i-sun { display: block; } :root[data-theme="dark"] .theme-btn .i-moon { display: none; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-btn .i-sun { display: block; } :root:not([data-theme="light"]):not([data-theme="dark"]) .theme-btn .i-moon { display: none; } }
.pipe { display: flex; gap: 4px; height: 14px; margin: 14px 0 10px; border-radius: 999px; overflow: hidden; background: var(--surface-2); } .pipe .seg { display: block; min-width: 8px; }
.s1 { background: #8da2c8; } .s2 { background: #f0a62b; } .s3 { background: #2ca36b; } .s4 { background: var(--accent); }
.pipe-key { display: flex; gap: 18px; flex-wrap: wrap; font-size: .82rem; color: var(--muted); } .pipe-key i { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 6px; }
.get-involved { display: flex; align-items: center; justify-content: space-between; gap: 18px; flex-wrap: wrap; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); }

/* ---------- public site v2: announcement, utility bar, rich header/footer, hero card ---------- */
.announce-bar { background: var(--accent); color: var(--on-accent); font-size: .88rem; font-weight: 600; } .announce-bar .container { display: flex; gap: 16px; align-items: center; justify-content: center; padding-top: 9px; padding-bottom: 9px; flex-wrap: wrap; text-align: center; }
.announce-bar a { color: inherit; display: inline-flex; gap: 6px; align-items: center; white-space: nowrap; } .announce-bar .i { width: 17px; height: 17px; margin-right: 6px; vertical-align: -3px; } .announce-bar a .i { margin: 0; }
.util-bar { background: var(--brand); color: #e8eefb; font-size: .8rem; } .util-bar .container { display: flex; justify-content: space-between; gap: 16px; padding-top: 7px; padding-bottom: 7px; flex-wrap: wrap; }
.util-bar a { color: #fff; text-decoration: none; } .util-bar a:hover { text-decoration: underline; } .util-bar .i { width: 15px; height: 15px; margin-right: 6px; vertical-align: -3px; } .util-left, .util-right { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; }
@media (max-width: 640px) { .hide-sm { display: none; } .util-bar .container { justify-content: center; } }
.nav-search .i { width: 19px; height: 19px; vertical-align: -4px; } .nav-search .show-sm { display: none; margin-left: 8px; } @media (max-width: 959px) { .nav-search .show-sm { display: inline; } }
.eyebrow { display: inline-block; text-transform: uppercase; letter-spacing: .12em; font-size: .72rem; font-weight: 700; opacity: .85; margin-bottom: 10px; }
.hero { display: grid; gap: 28px; align-items: center; } @media (min-width: 960px) { .hero { grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); padding: 52px 48px; } }
.hero-main, .hero-card { position: relative; z-index: 1; }
.hero-card { display: flex; flex-direction: column; gap: 6px; padding: 22px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.25); backdrop-filter: blur(8px); color: #fff; text-decoration: none; transition: transform .15s, background .15s; }
.hero-card:hover { transform: translateY(-3px); background: rgba(255,255,255,.18); } .hero-card strong { font-size: 1.25rem; letter-spacing: -.01em; line-height: 1.25; } .hc-date { display: flex; align-items: baseline; gap: 8px; } .hc-date b { font-size: 3rem; line-height: 1; letter-spacing: -.03em; } .hc-date span { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .85; }
.hc-meta { display: flex; gap: 8px; align-items: center; opacity: .92; font-size: .9rem; } .hc-meta .i { width: 17px; height: 17px; } .hc-go { margin-top: 10px; font-weight: 700; display: inline-flex; gap: 8px; align-items: center; }
.stat-strip { display: grid; grid-template-columns: repeat(3, 1fr); background: var(--surface); border: 1px solid var(--line); border-radius: 18px; box-shadow: var(--shadow); margin: -6px 0 18px; } .stat-strip div { padding: 18px 20px; text-align: center; border-left: 1px solid var(--line); } .stat-strip div:first-child { border-left: 0; }
.stat-strip b { display: block; font-size: 1.9rem; letter-spacing: -.03em; color: var(--accent-text); line-height: 1.1; } .stat-strip span { color: var(--muted); font-size: .84rem; font-weight: 500; }
.steps { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); margin-top: 12px; } .step { background: var(--surface); border: 1px solid var(--line); border-radius: 18px; padding: 22px; box-shadow: var(--shadow-sm); } .step h3 { margin: 12px 0 4px; font-size: 1.05rem; } .step p { margin: 0; }
.step-n { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; background: var(--accent-soft); color: var(--accent-text); font-weight: 800; }
.site-footer { margin-top: 30px; padding: 0; background: var(--surface); border-top: 1px solid var(--line); color: var(--muted); }
.foot-grid { display: grid; gap: 32px; padding: 44px 0 30px; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); } @media (min-width: 960px) { .foot-grid { grid-template-columns: 1.6fr repeat(auto-fit, minmax(150px, 1fr)); } }
.site-footer h2 { font-size: .78rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink); margin-bottom: 14px; } .site-footer ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 9px; } .site-footer a { color: var(--muted); text-decoration: none; } .site-footer a:hover { color: var(--accent-text); text-decoration: underline; }
.foot-about p { margin: 14px 0; max-width: 40ch; } .foot-about .brand { color: var(--ink); } .site-footer .foot-contact .i { width: 17px; height: 17px; margin-right: 8px; vertical-align: -3px; color: var(--accent-text); }
.socials { display: flex; gap: 10px; } .socials a { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); color: var(--ink); } .socials a:hover { background: var(--accent); color: var(--on-accent); text-decoration: none; }
.foot-bottom { display: flex; justify-content: space-between; gap: 12px; flex-wrap: wrap; padding: 18px 0 26px; border-top: 1px solid var(--line); font-size: .86rem; }

/* ---------- chat ---------- */
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 70; } .chat-fab { display: inline-flex; align-items: center; gap: 10px; min-height: 52px; padding: 0 20px; border-radius: 999px; border: 0; background: var(--accent); color: var(--on-accent); font: 700 .92rem var(--font); cursor: pointer; box-shadow: 0 12px 30px color-mix(in srgb, var(--org-accent) 45%, transparent); }
.chat-fab:hover { filter: brightness(1.07); } .chat-panel { position: absolute; right: 0; bottom: 66px; width: min(380px, calc(100vw - 28px)); max-height: min(600px, calc(100vh - 120px)); display: flex; flex-direction: column; background: var(--surface); border: 1px solid var(--line); border-radius: 20px; box-shadow: 0 20px 60px rgba(15,27,51,.28); overflow: hidden; }
.chat-panel[hidden] { display: none !important; } .chat-panel header { display: flex; justify-content: space-between; align-items: center; padding: 14px 16px; background: var(--brand); color: #fff; } .chat-close { background: none; border: 0; color: #fff; cursor: pointer; padding: 4px; display: grid; }
.chat-log { flex: 1; overflow-y: auto; padding: 14px; display: flex; flex-direction: column; gap: 10px; min-height: 200px; } .chat-log.big { min-height: 340px; max-height: 60vh; }
.msg { max-width: 88%; padding: 10px 14px; border-radius: 16px; font-size: .92rem; } .msg p { margin: 0; white-space: pre-wrap; } .msg.me { align-self: flex-end; background: var(--accent); color: var(--on-accent); border-bottom-right-radius: 4px; } .msg.bot { align-self: flex-start; background: var(--surface-2); border-bottom-left-radius: 4px; } .msg.err { background: var(--bad-bg); color: var(--bad); } .msg.wait { opacity: .7; }
.src-h { margin-top: 8px; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); font-weight: 700; } .src { margin: 4px 0 0; padding-left: 18px; font-size: .82rem; }
.chip-btn { align-self: flex-start; text-align: left; background: var(--accent-soft); color: var(--accent-text); border: 0; border-radius: 999px; padding: 8px 14px; font: 600 .84rem var(--font); cursor: pointer; }
.chat-form { display: flex; gap: 8px; padding: 12px; border-top: 1px solid var(--line); } .chat-form input { border-radius: 999px; } .chat-note { margin: 0; padding: 0 14px 10px; font-size: .72rem; color: var(--muted); }
.assistant .chat-form { border-top: 1px solid var(--line); margin: 0 -20px -20px; padding: 14px 20px; } .assistant .tool-box { padding-top: 14px; border-top: 1px solid var(--line); margin-top: 8px; }
@media (max-width: 1000px) { .chat { bottom: 92px; } .chat-fab span { display: none; } .chat-fab { width: 52px; padding: 0; justify-content: center; } }
@media print { .chat { display: none; } }

/* ---------- report charts (pure CSS, no libraries) ---------- */
.bars { display: flex; align-items: flex-end; gap: 6px; height: 190px; padding-top: 18px; } .bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; min-width: 0; }
.bar { display: block; width: 100%; max-width: 34px; min-height: 3px; border-radius: 8px 8px 3px 3px; background: var(--accent); } .bar-n { font-size: .7rem; color: var(--muted); font-weight: 600; margin-bottom: 3px; } .bar-l { font-size: .68rem; color: var(--muted); margin-top: 6px; }
.t-b { background: #8a45c7; } .t-c { background: #2ca36b; } .t-d { background: #f0a62b; } .t-e { background: #0e7c86; }
.hbars { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; } .hbars li { display: grid; grid-template-columns: minmax(90px, 30%) 1fr 36px; gap: 12px; align-items: center; font-size: .88rem; } .hb-track { height: 12px; background: var(--surface-2); border-radius: 999px; overflow: hidden; } .hb-fill { display: block; height: 100%; border-radius: 999px; background: var(--accent); } .hb-n { text-align: right; font-weight: 700; }

.bar.t-b, .hb-fill.t-b { background: #8a45c7; } .bar.t-c, .hb-fill.t-c { background: #2ca36b; } .bar.t-d, .hb-fill.t-d { background: #f0a62b; } .bar.t-e, .hb-fill.t-e { background: #0e7c86; }

/* photos */
img.avatar { object-fit: cover; background: var(--surface-2); } .hero.has-photo { background: linear-gradient(135deg, rgba(8,20,48,.86), rgba(8,20,48,.55)), var(--hero-img) center/cover no-repeat, var(--brand); }
.photo-row { display: flex; gap: 16px; align-items: center; flex-wrap: wrap; }

.tool-groups { display: grid; gap: 14px; margin-bottom: 16px; } @media (min-width: 1100px) { .tool-groups { grid-template-columns: 1fr 1fr; } }
.tool-group { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; box-shadow: var(--shadow-sm); } .tool-group h2 { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); margin-bottom: 10px; }
.tool-group .btn { min-height: 38px; } .tool-group .btn .i { width: 17px; height: 17px; }
.entry-actions { display: flex; flex-wrap: wrap; gap: 8px 14px; margin-top: 8px; align-items: center; } .entry-actions select { max-width: 220px; min-height: 34px; padding: 4px 10px; }
.list > li > span > a:first-child, .list > li > a:first-child { text-decoration: none; font-weight: 600; } .list > li > span > a:first-child:hover, .list > li > a:first-child:hover { text-decoration: underline; }

/* language menu */
.lang-switch { display: inline-flex; align-items: center; gap: 6px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 0 6px 0 12px; height: 42px; color: var(--muted); }
.lang-switch select { border: 0; background: transparent; min-height: 36px; padding: 0 6px; width: auto; font-weight: 600; font-size: .86rem; color: var(--ink); cursor: pointer; } .lang-switch select:focus { box-shadow: none; outline: 2px solid var(--accent); }
.lang-bar { background: var(--accent-soft); color: var(--accent-text); font-size: .86rem; font-weight: 600; padding: 8px 16px; text-align: center; } .lang-bar.err { background: var(--warn-bg); color: var(--warn); } .lang-bar button { margin-left: 8px; text-decoration: underline; }
html[dir="rtl"] .sidebar { border-right: 0; border-left: 1px solid var(--side-line); } html[dir="rtl"] .chat { right: auto; left: 20px; }
@media (max-width: 959px) { .nav .lang-switch { align-self: flex-start; margin: 4px 14px; } }

.linklike { background: none; border: 0; font: inherit; color: inherit; cursor: pointer; padding: 0; }
.setup-card { margin-bottom: 18px; background: linear-gradient(135deg, var(--accent-soft), var(--surface)); } .steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); }
.steps-list a { display: flex; gap: 12px; align-items: flex-start; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; } .steps-list a:hover { border-color: var(--accent); }
.steps-list b { flex: none; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: var(--surface-2); font-size: .8rem; } .steps-list .done b { background: var(--ok-bg); color: var(--ok); } .steps-list .done a { opacity: .75; } .steps-list small { display: block; font-size: .8rem; font-weight: 400; margin-top: 2px; } .steps-list span { font-weight: 600; font-size: .92rem; } .steps-list .i { width: 16px; height: 16px; }
.meter { height: 10px; border-radius: 999px; background: var(--surface-2); margin: 12px 0 16px; overflow: hidden; } .meter span { display: block; height: 100%; background: var(--accent); border-radius: 999px; }

/* v3 fixes: compact header, language menu in dark mode, native controls follow the theme */
:root { color-scheme: light; } :root[data-theme="dark"] { color-scheme: dark; } @media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) { color-scheme: dark; } }
select option, select optgroup { background: var(--surface); color: var(--ink); }
.site-header .wrap { flex-wrap: nowrap; gap: 12px; } .site-header .brand { flex: none; min-width: 0; } .site-header .brand small { max-width: 28ch; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nav { flex-wrap: nowrap; gap: 0; margin-left: auto; } .nav a, .nav button.linklike { padding: 8px 11px; font-size: .88rem; white-space: nowrap; }
.nav .lang-switch { margin: 0 4px; } .nav .icon-btn { width: 38px; height: 38px; flex: none; } .nav a.cta { margin-left: 4px; padding: 9px 16px; }
.lang-switch { height: 38px; background: var(--surface); border-color: var(--line); color: var(--ink); padding: 0 4px 0 10px; } .lang-switch select { background: transparent; color: var(--ink); max-width: 9.5rem; min-height: 34px; padding: 0 22px 0 4px; appearance: none; -webkit-appearance: none; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23888' stroke-width='3' stroke-linecap='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 6px center; }
.lang-switch .i { width: 17px; height: 17px; }
@media (max-width: 1180px) { .site-header .brand small { display: none; } }
@media (max-width: 959px) { .site-header .wrap { flex-wrap: wrap; } .nav { flex-wrap: wrap; width: 100%; margin-left: 0; } .nav.open { display: flex; } }
.assistant-card { margin-bottom: 18px; } .assistant-card .chat-log { min-height: 0; max-height: 280px; padding: 10px 0; } .assistant-card .chat-form { border-top: 1px solid var(--line); padding: 12px 0 0; }
/* visually hidden labels (not the skip-link): invisible but read by screen readers */
label.skip, .skip:not(a) { position: absolute !important; width: 1px !important; height: 1px !important; overflow: hidden !important; clip: rect(0 0 0 0) !important; clip-path: inset(50%) !important; white-space: nowrap !important; padding: 0 !important; margin: -1px !important; top: auto !important; left: auto !important; border: 0 !important; background: none !important; }
/* safety net: long translated menu labels wrap onto a second line instead of overflowing the page */
.site-header .wrap { flex-wrap: wrap; row-gap: 4px; } .nav { flex-wrap: wrap; justify-content: flex-end; flex: 1 1 auto; row-gap: 2px; min-width: 0; }
@media (max-width: 959px) { .nav { flex: 0 0 100%; justify-content: flex-start; } }

/* collapsible sidebar */
.side-collapse { display: grid; place-items: center; width: 30px; height: 30px; margin: 0 4px 6px auto; border-radius: 50%; border: 1px solid var(--side-line); background: transparent; color: var(--side-muted); cursor: pointer; flex: none; } .side-collapse:hover { background: var(--side-hover); color: var(--side-ink); } .side-collapse .i { width: 16px; height: 16px; transition: transform .2s; }
.side-user { text-decoration: none; border-radius: 12px; } .side-user:hover { background: var(--side-hover); }
@media (min-width: 1001px) {
  html.sb-collapsed .app { --sidebar: 76px; } html.sb-collapsed .sidebar { padding: 14px 10px; align-items: stretch; }
  html.sb-collapsed .side-collapse { margin: 0 auto 8px; } html.sb-collapsed .side-collapse .i { transform: rotate(180deg); }
  html.sb-collapsed .side-brand { justify-content: center; padding: 4px 0 14px; } html.sb-collapsed .side-brand > span:last-child { display: none; }
  html.sb-collapsed .side-label { font-size: 0; padding: 8px 0 4px; border-top: 1px solid var(--side-line); margin-top: 6px; height: 1px; overflow: hidden; }
  html.sb-collapsed .side-link { font-size: 0; justify-content: center; gap: 0; padding: 11px 0; } html.sb-collapsed .side-link .i { width: 21px; height: 21px; }
  html.sb-collapsed .side-user { justify-content: center; padding: 6px 0; } html.sb-collapsed .side-user > span { display: none; }
}
@media (max-width: 1000px) { .side-collapse { display: none; } }

/* notification bell */
.bell-wrap { position: relative; } .bell-btn.ring .i { animation: bell-ring 1s ease; transform-origin: 50% 0; } @keyframes bell-ring { 0% { transform: rotate(0); } 10% { transform: rotate(18deg); } 20% { transform: rotate(-16deg); } 30% { transform: rotate(14deg); } 40% { transform: rotate(-12deg); } 55% { transform: rotate(8deg); } 70% { transform: rotate(-5deg); } 100% { transform: rotate(0); } }
.bell-btn .dot { animation: none; } .bell-btn.ring .dot { animation: dot-pop .5s ease 2; } @keyframes dot-pop { 50% { transform: scale(1.35); } }
.bell-panel { position: absolute; right: 0; top: 50px; width: min(380px, 92vw); background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(15,27,51,.25); z-index: 70; overflow: hidden; } .bell-panel[hidden] { display: none; }
.bell-head { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px; border-bottom: 1px solid var(--line); } .bell-head .linklike { color: var(--accent-text); }
.bell-list { list-style: none; margin: 0; padding: 0; max-height: 380px; overflow-y: auto; } .bell-list li a { display: block; padding: 12px 16px; text-decoration: none; color: var(--ink); border-bottom: 1px solid var(--line); } .bell-list li a:hover { background: var(--surface-2); }
.bell-list li.unread a { background: var(--accent-soft); } .bell-list li strong { display: block; font-size: .9rem; } .bell-list li span { display: block; color: var(--muted); font-size: .82rem; margin-top: 2px; } .bell-list li small { color: var(--muted); font-size: .74rem; }
.bell-foot { display: block; text-align: center; padding: 11px; font-weight: 600; font-size: .86rem; text-decoration: none; } .unread-title::before { content: ""; display: inline-block; width: 8px; height: 8px; border-radius: 50%; background: var(--accent); margin-right: 8px; }
@media (max-width: 1000px) { .bell-panel { position: fixed; left: 8px; right: 8px; top: 64px; width: auto; } }

/* staff search suggestions */
.staff-search { position: relative; } .suggest { position: absolute; left: 0; right: 0; top: 50px; background: var(--surface); border: 1px solid var(--line); border-radius: 16px; box-shadow: 0 20px 50px rgba(15,27,51,.22); z-index: 75; max-height: 70vh; overflow-y: auto; padding: 6px; min-width: min(460px, 90vw); } .suggest[hidden] { display: none; }
.sg-group { font-size: .68rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); padding: 10px 12px 4px; } .sg-item, .sg-all { display: block; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: var(--ink); } .sg-item strong { display: block; font-size: .9rem; } .sg-item span { display: block; font-size: .78rem; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sg-item:hover, .sg-item.on, .sg-all:hover, .sg-all.on { background: var(--accent-soft); } .sg-all { text-align: center; font-weight: 600; color: var(--accent-text); font-size: .86rem; } .sg-empty { padding: 14px; color: var(--muted); font-size: .86rem; }
mark { background: color-mix(in srgb, #ffd54a 55%, transparent); color: inherit; padding: 0 2px; border-radius: 3px; }

/* calendar: visible feedback when a different meeting is picked */
.cal { animation: cal-in .35s ease both; } @keyframes cal-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.ev { transition: transform .15s ease, box-shadow .15s ease, outline-color .15s; } .ev.sel { transform: scale(1.04); box-shadow: 0 4px 14px rgba(15,27,51,.22); position: relative; z-index: 1; }
.cal-day { transition: background .25s ease; } .cal-day.sel { background: var(--accent-soft); }
.cal-panel.pulse [data-detail] { animation: panel-in .42s cubic-bezier(.2,.8,.2,1) both; } .cal-panel.pulse .top-bar { animation: bar-flash .7s ease; }
@keyframes panel-in { from { opacity: 0; transform: translateX(14px) scale(.98); } to { opacity: 1; transform: none; } } @keyframes bar-flash { 0% { filter: brightness(1.8); transform: scaleX(.3); transform-origin: left; } 100% { filter: none; transform: none; } }
.cal-panel .badge, .cal-panel h2, .cal-panel dl { animation-fill-mode: both; }

/* contact page */
.contact-grid { display: grid; gap: 20px; } @media (min-width: 900px) { .contact-grid { grid-template-columns: minmax(280px, 1fr) minmax(0, 1.5fr); align-items: start; } }
.contact-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 18px; } .contact-list li { display: flex; gap: 14px; } .contact-list .ci { flex: none; width: 42px; height: 42px; border-radius: 14px; background: var(--accent-soft); color: var(--accent-text); display: grid; place-items: center; }
.hp { position: absolute !important; left: -5000px; width: 1px; height: 1px; overflow: hidden; } .note-card { background: var(--warn-bg); border-color: transparent; }

/* assistant: icon-only floating button, chat tools, saved chats */
.sr-only { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
.chat-fab { width: 56px; height: 56px; padding: 0; justify-content: center; border-radius: 50%; transition: transform .2s, box-shadow .2s; } .chat-fab:hover { transform: scale(1.07); } .chat-fab .i { width: 24px; height: 24px; } .chat-fab > span:not(.sr-only) { display: none; }
.chat-tool { background: none; border: 0; color: #fff; cursor: pointer; padding: 5px; border-radius: 8px; display: grid; place-items: center; opacity: .9; } .chat-tool:hover { background: rgba(255,255,255,.16); } .chat-tool .i { width: 18px; height: 18px; } .chat-more { color: #fff; font-size: .78rem; opacity: .9; padding: 0 4px; }
.chat-hist { padding: 8px 10px; border-bottom: 1px solid var(--line); max-height: 220px; overflow-y: auto; background: var(--surface-2); } .chat-hist[hidden] { display: none; } .hist-note, .hist-empty { font-size: .74rem; color: var(--muted); padding: 4px 6px 8px; }
.hist-item { display: block; width: 100%; text-align: left; background: none; border: 0; padding: 8px 10px; border-radius: 10px; font: 500 .86rem var(--font); color: var(--ink); cursor: pointer; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .hist-item:hover, .hist-item.on { background: var(--accent-soft); color: var(--accent-text); }
@media (max-width: 1000px) { .chat-fab { width: 52px; height: 52px; } }

/* confirmation pop-up */
.confirm-dialog { border: 0; border-radius: 20px; padding: 0; max-width: min(440px, 92vw); width: 100%; background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(8,14,30,.4); animation: dlg-in .2s ease; } .confirm-dialog::backdrop { background: rgba(8,14,30,.55); backdrop-filter: blur(2px); animation: fade-in .2s ease; }
.confirm-dialog form { padding: 26px 26px 22px; } .confirm-dialog h2 { margin: 0 0 8px; font-size: 1.15rem; } .confirm-dialog .cd-msg { margin: 0 0 22px; color: var(--muted); line-height: 1.5; } .cd-actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; }
@keyframes dlg-in { from { opacity: 0; transform: translateY(10px) scale(.97); } to { opacity: 1; transform: none; } } @keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }

/* page rhythm: consistent gaps between a header and the blocks under it, on every page */
.content > :where(* + *) { margin-top: 18px; } .content > :where(.page-head, .row.between:first-of-type, p:first-child) { margin-bottom: 0; } .content > .row.between { align-items: flex-start; gap: 14px; flex-wrap: wrap; } .content > .row.between h1 { margin: 0; }
.content > p.muted { margin-top: 6px; }
.page-head > :first-child { min-width: 0; max-width: 70ch; }

/* smooth sidebar collapse */
.app { transition: grid-template-columns .28s cubic-bezier(.4,0,.2,1); } .sidebar { transition: padding .28s cubic-bezier(.4,0,.2,1); }
.side-link { transition: background .15s, font-size .22s ease, padding .22s ease, gap .22s ease; } .side-link .i { transition: width .22s ease, height .22s ease; } .side-brand > span:last-child, .side-user > span { transition: opacity .15s; } .side-label { transition: font-size .2s, padding .2s, opacity .2s; }

/* new-item badges draw the eye */
.dot, .side-link .count { animation: badge-pulse 2s ease-in-out infinite; } @keyframes badge-pulse { 0%, 100% { box-shadow: 0 0 0 0 rgba(229,56,76,.55); } 50% { box-shadow: 0 0 0 7px rgba(229,56,76,0); } }
.badge.info.dot::before { animation: dot-blink 1.4s ease-in-out infinite; } @keyframes dot-blink { 50% { opacity: .25; } } .unread-title::before { animation: dot-blink 1.4s ease-in-out infinite; }
.foot-links { display: flex; gap: 6px 16px; flex-wrap: wrap; } .foot-links a + a::before { content: ""; }

/* mini calendar: days with meetings are links */
a.cal-day.has { text-decoration: none; color: inherit; cursor: pointer; border-radius: 10px; transition: background .15s, transform .15s; } a.cal-day.has:hover { background: var(--accent-soft); transform: scale(1.08); } .mini-cal .cal-day.today .num { background: var(--accent); color: var(--on-accent); }

.audit-filters { display: grid; gap: 4px 14px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); } .audit-filters .field { margin-bottom: 8px; }

.attention ul { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; } .attention li a { display: inline-flex; align-items: center; gap: 8px; padding: 8px 14px; border-radius: 999px; background: var(--surface-2); text-decoration: none; color: var(--ink); font-weight: 600; font-size: .88rem; } .attention li a:hover { background: var(--accent-soft); }
.att-dot { width: 9px; height: 9px; border-radius: 50%; background: var(--accent); animation: dot-blink 1.6s ease-in-out infinite; } .attention .bad .att-dot { background: #e5384c; } .attention .warn .att-dot { background: #f0a62b; }
.range-form input[type=date] { width: auto; min-height: 36px; padding: 4px 10px; }
/* notification panel header: title on its own line, tools wrap neatly below */
.bell-head { flex-wrap: wrap; gap: 6px 12px; } .bell-tools { display: flex; flex-wrap: wrap; gap: 4px 14px; } .bell-tools .linklike { background: none; border: 0; padding: 0; cursor: pointer; font: 600 .78rem var(--font); }
/* busy state on submit buttons + bottom toast */
.btn.is-busy, button.is-busy { position: relative; pointer-events: none; opacity: .75; } .is-busy::after { content: ""; display: inline-block; width: 14px; height: 14px; margin-left: 8px; vertical-align: -2px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.work-toast { position: fixed; left: 50%; bottom: 22px; transform: translateX(-50%); z-index: 90; display: flex; align-items: center; gap: 10px; background: var(--ink, #0f1b33); color: #fff; padding: 10px 18px; border-radius: 999px; box-shadow: 0 10px 30px rgba(15,27,51,.3); font: 600 .88rem var(--font); }
.work-toast::before { content: ""; width: 14px; height: 14px; border: 2px solid #fff; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }
.filters .btn, .range-form .btn, form .row .btn { white-space: nowrap; }
/* ---- public home polish ---- */
.home-grid { align-items: start; }
.list li.is-cancelled strong, .list li.is-cancelled a { color: var(--muted); text-decoration: line-through; text-decoration-thickness: 1px; }
.announce-bar { position: relative; } .announce-x { position: absolute; right: 12px; top: 50%; transform: translateY(-50%); background: transparent; border: 0; color: inherit; font-size: 1.3rem; line-height: 1; cursor: pointer; opacity: .8; padding: 4px 8px; } .announce-x:hover { opacity: 1; }
.announce-bar .container { padding-right: 44px; padding-left: 44px; }
@media (min-width: 1500px) { .container { max-width: 1320px; } }
/* ---- command palette ---- */
dialog.palette { border: 1px solid var(--line); border-radius: 16px; padding: 0; width: min(620px, 94vw); background: var(--surface); color: var(--ink); box-shadow: 0 30px 80px rgba(15,27,51,.35); margin: 12vh auto auto; }
dialog.palette::backdrop { background: rgba(15,27,51,.45); backdrop-filter: blur(2px); }
.palette input { width: 100%; border: 0; border-bottom: 1px solid var(--line); padding: 16px 18px; font: 500 1rem var(--font); background: transparent; color: inherit; outline: none; }
.pal-list { max-height: 50vh; overflow: auto; padding: 6px; } .pal-group { font: 700 .7rem var(--font); text-transform: uppercase; letter-spacing: .06em; color: var(--muted); padding: 10px 12px 4px; }
.pal-item { display: flex; justify-content: space-between; gap: 12px; padding: 9px 12px; border-radius: 10px; text-decoration: none; color: inherit; } .pal-item span { color: var(--muted); font-size: .82rem; } .pal-item.on, .pal-item:hover { background: var(--accent-soft, rgba(30,100,220,.1)); }
.pal-empty, .pal-hint { padding: 12px 16px; color: var(--muted); font-size: .82rem; } .pal-hint { border-top: 1px solid var(--line); }
/* ---- item list filters, saved views, bulk bar ---- */
.filter-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 14px; align-items: end; } .filter-grid .field { margin: 0; } .filter-grid .check { display: flex; gap: 8px; align-items: center; min-height: 40px; } .filter-grid .row { gap: 8px; }
.chips { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 4px 0 12px; } .chip { display: inline-flex; align-items: center; gap: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 999px; padding: 3px 4px 3px 12px; font-size: .86rem; } .chip form { display: inline; } .chip button { background: none; border: 0; cursor: pointer; color: var(--muted); font-size: 1.05rem; line-height: 1; padding: 2px 8px; border-radius: 999px; } .chip button:hover { background: var(--line); }
.save-view { margin: 0 0 14px; gap: 8px; } .save-view input { max-width: 260px; }
.bulk-bar { position: sticky; top: 8px; z-index: 20; display: flex; flex-wrap: wrap; gap: 10px; align-items: center; background: var(--surface); border: 1px solid var(--accent); border-radius: 14px; padding: 10px 14px; margin-bottom: 12px; box-shadow: 0 8px 24px rgba(15,27,51,.14); animation: pop-in .2s ease-out; } .bulk-bar[hidden] { display: none; } .bulk-bar select { max-width: 260px; }
@keyframes pop-in { from { transform: translateY(-6px); opacity: 0; } to { transform: none; opacity: 1; } }
/* ---- reading comfort: text size + high contrast ---- */
html[data-text="lg"] { font-size: 112.5%; } html[data-text="xl"] { font-size: 125%; } html[data-text="xxl"] { font-size: 150%; }
.a11y-btn { font: 700 .82rem var(--font); }
html[data-contrast="1"] { --line: #000; --muted: #222; --ink: #000; --bg: #fff; --surface: #fff; }
html[data-contrast="1"][data-theme="dark"] { --line: #fff; --muted: #e6e6e6; --ink: #fff; --bg: #000; --surface: #000; }
html[data-contrast="1"] a { text-decoration: underline; } html[data-contrast="1"] .card, html[data-contrast="1"] input, html[data-contrast="1"] select, html[data-contrast="1"] textarea, html[data-contrast="1"] .btn { border-color: currentColor; border-width: 2px; }
/* ---- public live page ---- */
.live-card { display: grid; gap: 16px; } .live-title { font: 800 clamp(1.4rem, 4vw, 2.2rem)/1.2 var(--font); } .live-cols { display: grid; gap: 18px; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); } .small-h { font-size: .8rem; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 6px; }
.live-timer { font: 800 2rem var(--font); margin-top: 6px; font-variant-numeric: tabular-nums; } .live-motion { border: 1px solid var(--line); border-left: 4px solid var(--accent); border-radius: 10px; padding: 10px 14px; background: var(--surface-2); } .live-queue { margin: 0 0 12px; padding-left: 20px; }
@media (min-width: 760px) { .search-filters { grid-template-columns: repeat(4, 1fr); } }
.entry[draggable="true"] { cursor: grab; } .entry.dragging { opacity: .5; outline: 2px dashed var(--accent); border-radius: 10px; }
.comments { list-style: none; margin: 0 0 14px; padding: 0; display: grid; gap: 10px; } .comments li { border: 1px solid var(--line); border-radius: 12px; padding: 10px 14px; background: var(--surface-2); } .comments p { margin: 4px 0 0; }
/* ---- loading: top progress bar + skeleton placeholders ---- */
.nav-progress { position: fixed; left: 0; top: 0; height: 3px; width: 0; background: var(--accent); z-index: 100; box-shadow: 0 0 8px var(--accent); transition: width 8s cubic-bezier(.1,.7,.2,1); } .nav-progress.go { width: 85%; }
.skeleton { position: relative; overflow: hidden; background: var(--line); border-radius: 8px; min-height: 1em; color: transparent !important; } .skeleton::after { content: ""; position: absolute; inset: 0; transform: translateX(-100%); background: linear-gradient(90deg, transparent, rgba(255,255,255,.45), transparent); animation: shimmer 1.2s infinite; } @keyframes shimmer { to { transform: translateX(100%); } }
@media (prefers-reduced-motion: reduce) { .nav-progress, .skeleton::after { transition: none; animation: none; } }
.a11y-btn { width: 42px; padding: 0; } .a11y-btn .i { width: 20px; height: 20px; }
/* ---- sharing ---- */
.share { position: relative; display: inline-block; } .share-menu { position: absolute; z-index: 40; right: 0; top: calc(100% + 6px); min-width: 170px; display: grid; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 16px 40px rgba(15,27,51,.2); padding: 6px; } .share-menu[hidden] { display: none; }
.share-menu a, .share-menu button { display: block; text-align: left; padding: 8px 12px; border-radius: 8px; color: var(--ink); text-decoration: none; background: none; border: 0; font: 600 .88rem var(--font); cursor: pointer; } .share-menu a:hover, .share-menu button:hover { background: var(--surface-2); }
.share-row { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; } .share-pick { display: inline-flex; gap: 6px; align-items: center; cursor: pointer; color: var(--muted); }
.share-bar { position: sticky; bottom: 12px; z-index: 30; display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-top: 12px; border-color: var(--accent); box-shadow: 0 10px 30px rgba(15,27,51,.2); } .share-bar[hidden] { display: none; } .share-bar .share-menu { top: auto; bottom: calc(100% + 6px); }
.legal h2 { margin-top: 0; } .legal h3 { margin: 22px 0 6px; } .legal ul { padding-left: 22px; } .legal li { margin: 4px 0; }
/* ---- agenda item picker ---- */
.pick-list { list-style: none; margin: 8px 0 12px; padding: 0; max-height: 340px; overflow: auto; border: 1px solid var(--line); border-radius: 12px; } .pick-list li { border-bottom: 1px solid var(--line); } .pick-list li:last-child { border-bottom: 0; } .pick-list li[hidden] { display: none; }
.pick-list label { display: flex; gap: 10px; align-items: flex-start; padding: 10px 12px; cursor: pointer; } .pick-list label:hover { background: var(--surface-2); } .pick-list input { margin-top: 4px; flex: none; }
/* ---- inline public comment ---- */
.inline-comment { margin: 8px 0 0; } .inline-comment summary { cursor: pointer; font-weight: 600; color: var(--accent-text, var(--accent)); } .inline-comment form { margin-top: 10px; padding: 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface-2); max-width: 560px; }
/* breathing room between the little round buttons in the headers */
.nav .icon-btn + .icon-btn, .nav .lang-switch + .icon-btn, .nav .icon-btn + a.cta { margin-left: 8px; } .topbar .icon-btn + .icon-btn { margin-left: 2px; }
/* ---- breadcrumbs ---- */
.crumbs { margin: 0 0 14px; font-size: .86rem; } .crumbs ol { display: flex; flex-wrap: wrap; align-items: center; gap: 2px 0; margin: 0; padding: 0; list-style: none; } .crumbs li { display: inline-flex; align-items: center; min-width: 0; }
.crumbs li + li::before { content: "\203A"; margin: 0 8px; color: var(--muted); font-size: 1.1rem; line-height: 1; } .crumbs a { color: var(--muted); text-decoration: none; padding: 2px 4px; border-radius: 6px; } .crumbs a:hover { color: var(--ink); background: var(--surface-2); text-decoration: underline; }
.crumbs li[aria-current] span { color: var(--ink); font-weight: 600; max-width: 60ch; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: inline-block; }
@media print { .crumbs { display: none; } }
/* ---- signature pad ---- */
.sigpad { border: 1px solid var(--line); border-radius: 12px; padding: 10px; background: var(--surface-2); } .sigpad canvas { display: block; width: 100%; max-width: 600px; height: auto; aspect-ratio: 3 / 1; background: #fff; border: 1px dashed var(--muted); border-radius: 8px; touch-action: none; cursor: crosshair; } .sigpad canvas.sig-missing { outline: 3px solid #e5384c; }
.sigpad .row { margin-top: 8px; } .sig-img { max-height: 70px; background: #fff; border: 1px solid var(--line); border-radius: 6px; margin-top: 4px; }
.big-num { font-size: 1.1rem; margin: 4px 0 10px; } .big-num b { font-size: 1.9rem; letter-spacing: -.02em; }

/* ---- stronger, clearer buttons ---- */
.btn.good { background: var(--ok, #1f8f5a); color: #fff; border-color: transparent; font-weight: 700; box-shadow: 0 6px 16px color-mix(in srgb, var(--ok, #1f8f5a) 35%, transparent); } .btn.good:hover { filter: brightness(1.08); }
.btn.good[disabled], .btn.good:disabled { background: var(--surface-2); color: var(--muted); border: 1px dashed var(--line); box-shadow: none; cursor: not-allowed; }
.btn.danger { border-color: color-mix(in srgb, #e5384c 45%, transparent); } .btn.danger:hover { background: #e5384c; color: #fff; }
.action-bar-hint { flex-basis: 100%; }
/* ---- friendlier assistant chat ---- */
.msg { position: relative; line-height: 1.5; animation: msg-in .22s ease-out both; box-shadow: 0 1px 2px rgba(15,27,51,.05); overflow-wrap: anywhere; }
@keyframes msg-in { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
.msg.me { background: linear-gradient(135deg, var(--accent), color-mix(in srgb, var(--accent) 70%, #7b3fc4)); border-bottom-right-radius: 5px; }
.msg.bot { background: var(--surface); border: 1px solid var(--line); border-bottom-left-radius: 5px; padding-left: 46px; }
.msg.bot::before { content: "\2726"; position: absolute; left: 10px; top: 10px; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: .8rem; background: linear-gradient(135deg, #7b3fc4, var(--accent)); box-shadow: 0 4px 10px color-mix(in srgb, var(--accent) 35%, transparent); }
.msg.err { border: 1px solid color-mix(in srgb, var(--bad) 35%, transparent); } .msg.err::before { background: var(--bad); content: "!"; }
.msg.wait { opacity: 1; } .msg.wait p { display: inline-block; color: var(--muted); } .msg.wait p::after { content: ""; display: inline-block; width: 1.4em; text-align: left; animation: dots 1.2s steps(4, end) infinite; } @keyframes dots { 0% { content: ""; } 25% { content: "."; } 50% { content: ".."; } 75%, 100% { content: "..."; } }
.chip-btn { transition: transform .12s ease, background .12s ease, box-shadow .12s ease; border: 1px solid color-mix(in srgb, var(--accent) 22%, transparent); } .chip-btn:hover { transform: translateY(-1px); background: color-mix(in srgb, var(--accent) 16%, var(--accent-soft)); box-shadow: 0 4px 12px color-mix(in srgb, var(--accent) 20%, transparent); }
.chat-form input { transition: box-shadow .15s ease, border-color .15s ease; } .chat-form input:focus { border-color: var(--accent); box-shadow: 0 0 0 4px color-mix(in srgb, var(--accent) 18%, transparent), 0 0 22px color-mix(in srgb, var(--accent) 22%, transparent); outline: none; }
.chat-form .btn.primary { box-shadow: 0 8px 20px color-mix(in srgb, var(--accent) 38%, transparent); }
.chat-log.big { scroll-behavior: smooth; background: radial-gradient(1200px 300px at 100% 0, color-mix(in srgb, var(--accent) 6%, transparent), transparent); }
.hist-item, .chat-hist button { transition: background .12s; }
@media (prefers-reduced-motion: reduce) { .msg, .msg.wait p::after { animation: none; } }

/* ---- layout robustness: long (translated) text must wrap, never push the page sideways ---- */
html, body { overflow-wrap: break-word; } .content, .container, main, .card, .stat, .tile, .tl-card, .item-row > div, .entry, .page-head > div, .row > *, .grid > *, .tiles > * { min-width: 0; }
h1, h2, h3, h4, .btn, .badge, .chip, .side-link, .stat .lbl, .tile, .hb-l, td, th, li, label, .small, p { overflow-wrap: anywhere; }
.btn { white-space: normal; text-align: center; max-width: 100%; } .row { flex-wrap: wrap; } .page-head { flex-wrap: wrap; gap: 10px 16px; } img, svg, video, canvas, iframe { max-width: 100%; }
.table-wrap { max-width: 100%; overflow-x: auto; } pre, code { white-space: pre-wrap; overflow-wrap: anywhere; } .stat .lbl { hyphens: auto; }
.nav { row-gap: 4px; } .nav a, .nav button.linklike { white-space: normal; text-align: center; } @media (min-width: 960px) { .nav a { white-space: nowrap; } }
.side-link { min-width: 0; } .side-link { align-items: flex-start; } .side-link .i { margin-top: 2px; flex: none; }
/* ---- round 2: header, tabs, bars and tables hold up under long text ---- */
:where(h1, h2, h3, h4, p, li, td, th, span, a, label, div, button, strong, small, b, em, legend, summary, dt, dd) { overflow-wrap: anywhere; }
:where(.row, .grid, .tiles, .stack, .card, .page-head, .topbar, .site-header .wrap, .tabs, .hbars li, .bars, .stat, .tl-card, .vote-row, .item-row, .entry-actions) > * { min-width: 0; }
.topbar .title { flex: 0 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 28vw; } .topbar { min-width: 0; } .topbar .search-pill { flex: 1 1 140px; min-width: 0; }
@media (max-width: 1000px) { .topbar .title { max-width: 38vw; } .topbar .icon-btn { flex: none; } .topbar .lang-switch { min-width: 0; max-width: 110px; } }
.brand { min-width: 0; max-width: 100%; } .brand span, .brand small, .brand b { overflow: hidden; text-overflow: ellipsis; min-width: 0; } .site-header .wrap { min-width: 0; }
.tabs, .seg { flex-wrap: wrap; max-width: 100%; } .tabs a, .seg a, .seg button { white-space: normal; }
.stat .lbl, .bar-l, .hb-l, .hb-n { min-width: 0; overflow-wrap: anywhere; } .hbars li { grid-template-columns: minmax(0, 1fr) minmax(40px, 1.2fr) auto; } .stat { min-width: 0; } .stat > div { min-width: 0; }
table.meta, table.meta td, table.meta th { overflow-wrap: anywhere; word-break: break-word; } table { max-width: 100%; } .assistant .meta { table-layout: fixed; width: 100%; }
.hero-main, .hero-main > *, .hero-card, .date-chip, .eyebrow { min-width: 0; max-width: 100%; } .date-chip { flex: none; }
.btn, button { overflow-wrap: anywhere; } .btn.sm { white-space: normal; }
input, select, textarea { max-width: 100%; min-width: 0; }
input[type="date"], input[type="datetime-local"], input[type="time"], input[type="month"], input[type="week"] { width: 100%; min-width: 0; max-width: 100%; box-sizing: border-box; }
.filter-grid, .filter-grid .field, .filter-grid input, .filter-grid select, .range-form input { min-width: 0; max-width: 100%; } .range-form { max-width: 100%; }
table.meta { table-layout: fixed; width: 100%; } table.meta td, table.meta th, .meta small { overflow-wrap: anywhere; word-break: break-word; }
/* selects size to their longest option; never let that widen the page */
select { max-width: 100%; min-width: 0; text-overflow: ellipsis; }
.field select, .filter-grid select, form.card select { width: 100%; }
table.meta small, header#summary small { display: block; overflow-wrap: anywhere; white-space: normal; max-width: 100%; }
table.meta, table.meta td, table.meta th { max-width: 100%; overflow-wrap: anywhere; word-break: break-word; }
html, body { overflow-x: clip; } @media (max-width: 1000px) { .content table { display: block; max-width: 100%; overflow-x: auto; } }
/* queue and other dense tables: pills and buttons never wrap mid-word; dates stay on one line */
td .badge, td .btn, td .pill, th .badge { white-space: nowrap; } .badge, .btn { max-width: 100%; overflow-wrap: anywhere; }
.table-wrap td, .table-wrap th { vertical-align: middle; }
.table-wrap td:nth-child(n+3):not(:last-child) { min-width: 6.5rem; }
.table-wrap { overflow-x: auto; }
/* switched-off controls (finished meeting) all look the same: dimmed and not clickable */
#station button:disabled, #station input:disabled, #station select:disabled, #station textarea:disabled { opacity: .45; cursor: not-allowed; box-shadow: none; filter: grayscale(.4); }
.mention-list { position: absolute; left: 0; right: 0; z-index: 20; margin: 2px 0 0; padding: 4px; list-style: none; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; box-shadow: 0 10px 30px rgba(15,27,51,.18); }
.mention-list li { padding: 8px 12px; border-radius: 8px; cursor: pointer; } .mention-list li.on, .mention-list li:hover { background: var(--accent); color: var(--on-accent); }
/* dark mode: loading effects keep the dark look instead of flashing white */
:root[data-theme="dark"] .work-toast { background: #1c2b49; color: #e8eefb; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0,0,0,.55); }
:root[data-theme="dark"] .work-toast::before { border-color: #e8eefb; border-right-color: transparent; }
:root[data-theme="dark"] .skeleton { background: var(--surface-2); }
:root[data-theme="dark"] .skeleton::after { background: linear-gradient(90deg, transparent, rgba(120,150,210,.16), transparent); }
:root[data-theme="dark"] .is-busy { opacity: .6; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]):not([data-theme="dark"]) .work-toast { background: #1c2b49; color: #e8eefb; border: 1px solid var(--line-strong); box-shadow: 0 10px 30px rgba(0,0,0,.55); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .work-toast::before { border-color: #e8eefb; border-right-color: transparent; }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .skeleton { background: var(--surface-2); }
  :root:not([data-theme="light"]):not([data-theme="dark"]) .skeleton::after { background: linear-gradient(90deg, transparent, rgba(120,150,210,.16), transparent); }
}
/* "More" menus keep the page calm: the common buttons stay visible, the rest open on click */
.more-menu { position: relative; display: inline-block; } .more-menu > summary { list-style: none; cursor: pointer; } .more-menu > summary::-webkit-details-marker { display: none; }
.more-menu > summary::after { content: " \25BE"; }
.more-pop { position: absolute; z-index: 30; top: calc(100% + 6px); left: 0; display: flex; flex-direction: column; gap: 6px; align-items: stretch; min-width: 220px; padding: 10px; background: var(--surface); border: 1px solid var(--line); border-radius: 14px; box-shadow: 0 14px 34px rgba(15,27,51,.2); }
.more-pop.wide { min-width: min(340px, 86vw); } .more-pop .btn { justify-content: flex-start; } .more-pop form { display: flex; flex-direction: column; gap: 6px; }
@media (max-width: 700px) { .more-pop { position: static; margin-top: 6px; box-shadow: none; } }
/* saved chats: each row has its own Delete */
.hist-row { display: flex; align-items: center; gap: 4px; } .hist-row .hist-item { flex: 1 1 auto; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hist-del { background: none; border: 0; color: var(--bad); font: 600 .78rem var(--font); cursor: pointer; padding: 6px 8px; border-radius: 8px; } .hist-del:hover { background: var(--bad-bg); }
.hist-del.all { display: block; margin: 6px 4px 2px; }
.content > *, .card.flush { min-width: 0; max-width: 100%; } .card.flush { overflow: hidden; }
.hist-del { white-space: nowrap; flex: 0 0 auto; } .more-pop { max-width: min(360px, calc(100vw - 32px)); } .more-pop .btn { white-space: normal; } .tool-group:last-child .more-pop { left: auto; right: 0; }
.mini-cal .dots { display: flex; gap: 2px; justify-content: center; margin-top: -2px; } .mini-cal .dots .dotmark { margin: 0; }
/* staff assistant: saved chats in a sidebar next to the conversation */
.assistant.chat-layout { display: grid; grid-template-columns: 270px minmax(0, 1fr); gap: 16px; align-items: start; background: none; border: 0; box-shadow: none; padding: 0; }
.chat-side { padding: 14px; position: sticky; top: 76px; max-height: calc(100vh - 110px); overflow: auto; } .chat-side-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 10px; }
.chat-side .chat-hist { position: static; border: 0; padding: 0; background: none; box-shadow: none; max-height: none; } .chat-side .chat-hist[hidden] { display: none; }
.chat-side-toggle { display: none; width: 100%; margin-bottom: 8px; }
.chat-main { padding: 16px; min-width: 0; } .chat-main .chat-log.big { min-height: 46vh; max-height: 62vh; }
@media (max-width: 900px) { .assistant.chat-layout { grid-template-columns: minmax(0, 1fr); } .chat-side { position: static; max-height: none; } .chat-side-toggle { display: inline-flex; justify-content: center; } }
@media (min-width: 701px) { .chat-form .btn { white-space: nowrap; flex: 0 0 auto; } }
/* dark mode: solid green buttons need a deep green behind white text (the light dark-mode green fails contrast) */
:root[data-theme="dark"] .btn.good:not(:disabled):not([disabled]) { background: #1f7a4d; color: #fff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]):not([data-theme="dark"]) .btn.good:not(:disabled):not([disabled]) { background: #1f7a4d; color: #fff; } }
/* saved chats list: every row lines up the same; the open chat is highlighted as a whole row */
.hist-row { padding: 0 4px 0 0; border-radius: 10px; } .hist-row:has(.hist-item.on) { background: var(--accent-soft); } .hist-row .hist-item, .hist-row .hist-item.on { background: none; }

/* AI draft box on the item form */
.ai-box{margin:12px 0 22px;padding:14px 16px;border:1px dashed var(--border);border-radius:10px;background:var(--surface-2)}
.ai-box label{display:block;font-size:.8125rem;font-weight:600;margin-bottom:8px}
.ai-box .row{flex-wrap:wrap}
.ai-box input{flex:1 1 220px;min-width:0}

/* Chat on an item page */
.ai-chat .chat-log{max-height:340px;overflow:auto;margin-bottom:10px;display:flex;flex-direction:column;gap:8px}
.ai-chat .chat-log:empty{display:none}

/* Meeting menu: one quick bar on every page of a meeting */
.meeting-menu{background:var(--surface);border:1px solid var(--line);border-radius:var(--radius);padding:10px 14px;margin:0 0 16px;box-shadow:var(--shadow-sm)}
.meeting-menu .mm-title{margin-bottom:8px;font-size:.9rem}
.meeting-menu ul{list-style:none;margin:0;padding:0;display:flex;flex-wrap:wrap;gap:6px}
.meeting-menu a{display:inline-flex;align-items:center;gap:6px;min-height:38px;padding:6px 12px;border-radius:999px;text-decoration:none;color:var(--text);border:1px solid var(--line);background:var(--surface-2);font-weight:600;font-size:.875rem}
.meeting-menu a:hover{border-color:var(--accent)}
.meeting-menu a[aria-current="page"]{background:var(--accent);color:var(--on-accent,#fff);border-color:var(--accent)}
.meeting-menu .i{width:16px;height:16px}
.meeting-menu .mm-sep{width:1px;background:var(--line);margin:4px 4px}
@media (max-width:640px){.meeting-menu a{padding:6px 10px;min-height:44px}.meeting-menu .mm-sep{display:none}}
.meeting-menu{max-width:100%;min-width:0}.meeting-menu li{max-width:100%}

/* Speaker details on the live screens */
.display .sp-topic{font-size:.6em;opacity:.85;margin-top:.3em;font-weight:500}
.display .sp-meta{opacity:.8;font-weight:500}

/* the meeting menu inside a card on the Meeting station home */
.card .meeting-menu{border:0;box-shadow:none;padding:10px 0 0;margin:10px 0 0;background:transparent}
.card .meeting-menu .mm-title{display:none}

/* Meetings list and Meeting station: filters, cards and list rows */
.meeting-filters{margin:0 0 16px}
.meeting-filters .mf-grid{display:grid;grid-template-columns:minmax(0,2fr) repeat(auto-fit,minmax(130px,1fr));gap:10px 12px;align-items:end}
.meeting-filters .field{margin:0}.meeting-filters .mf-q{grid-column:span 1}
.view-toggle{display:inline-flex;gap:6px}
.meeting-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(min(100%,300px),1fr));gap:14px}
.meeting-card{display:flex;flex-direction:column;gap:8px;min-width:0}.meeting-card h3{margin:0;font-size:1.05rem;overflow-wrap:anywhere}
.meeting-card .mc-when{margin:0;font-weight:600}.meeting-card .meeting-menu{margin-top:auto}
.meeting-row{align-items:flex-start;gap:10px;flex-wrap:wrap}.meeting-row .mr-main{flex:1 1 280px;min-width:0}
.meeting-menu.compact{border:0;box-shadow:none;background:transparent;padding:8px 0 0;margin:6px 0 0}
.meeting-menu.compact a{min-height:34px;padding:4px 10px;font-size:.8125rem}
.card .meeting-menu.compact .mm-title{display:none}

.view-toggle{flex-wrap:wrap}.meeting-filters .row{flex-wrap:wrap}.meeting-filters .btn{max-width:100%;white-space:normal}
.meeting-filters .mf-grid > *{min-width:0}.meeting-filters input,.meeting-filters select{max-width:100%;min-width:0}

/* AI draft box: room between the input row, the refine chips and the field above and below */
.ai-box .row{gap:10px}
.ai-box .row.small{margin-top:12px;gap:8px 10px}
.ai-box .chip-btn{padding:7px 14px;margin:0}
.ai-box [data-ai-msg],.ai-box .small.muted{display:block;margin-top:10px}
.ai-box + .field,.field + .ai-box{margin-top:12px}
.ai-box-card .row.small{gap:8px 10px;margin-top:12px}.ai-box-card .chip-btn{margin:0}

/* Translation language picker on the staff meeting page */
.lang-pick{position:relative}.lang-pick summary{list-style:none;cursor:pointer}.lang-pick summary::-webkit-details-marker{display:none}
.lang-pick summary::after{content:"";display:inline-block;margin-left:8px;border:5px solid transparent;border-top-color:currentColor;vertical-align:-2px}
.lang-pop{position:absolute;z-index:30;top:calc(100% + 6px);left:0;min-width:260px;max-height:340px;overflow:auto;background:var(--surface);border:1px solid var(--line);border-radius:12px;box-shadow:var(--shadow-lg,0 12px 32px rgba(15,23,42,.18));padding:10px 12px;display:grid;gap:6px}
.lang-pop .check{display:flex;align-items:center;gap:8px;margin:0;font-weight:500}.lang-pop .badge{margin-left:auto}
li > form.inline-form .linklike{margin-left:8px}

/* ===== Assistant v2: one clean chat (bubble and full page). One scroll area, quick actions always reachable, a full-screen sheet on phones ===== */
.chat .chat-panel{display:flex;flex-direction:column;width:min(400px,calc(100vw - 24px));height:min(640px,calc(100dvh - 110px));max-height:none;overflow:hidden}
.chat .chat-panel header{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px 10px 16px}
.chat .chat-panel header strong{font-size:1rem;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;min-width:0}
.chat-head-actions{display:flex;align-items:center;gap:2px;flex:0 0 auto}
.chat-head-actions .chat-tool,.chat-head-actions .chat-close{display:inline-flex;align-items:center;gap:5px;min-height:40px;min-width:40px;padding:0 9px;border-radius:10px;color:#fff;text-decoration:none;background:transparent;border:0;font:600 .8rem var(--font);cursor:pointer}
.chat-head-actions .chat-tool:hover,.chat-head-actions .chat-close:hover{background:rgba(255,255,255,.16)}
.chat-head-actions .chat-tool .i{width:17px;height:17px}.chat-head-actions .chat-tool{justify-content:center;padding:0 8px}
.chat-body{position:relative;flex:1 1 auto;min-height:0;display:flex;flex-direction:column}
.chat-panel .chat-log{flex:1 1 auto;min-height:0;max-height:none;overflow-y:auto;padding:14px;display:flex;flex-direction:column;gap:10px;overscroll-behavior:contain}
.chat-body .chat-hist{position:absolute;inset:0;z-index:3;max-height:none;overflow-y:auto;background:var(--surface);padding:12px 14px;border:0}
.chat-hist .hist-head{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:10px}
.msg p{white-space:pre-wrap;overflow-wrap:anywhere;margin:0}
.msg .btn{margin-top:10px;display:inline-flex}
.src-wrap{margin-top:8px;font-size:.8rem}.src-wrap summary{cursor:pointer;color:var(--muted)}.src-wrap .src{margin:6px 0 0;padding-left:18px}
.chat-start{display:flex;flex-wrap:wrap;gap:8px}
.chat-start .chip-btn{align-self:auto}
.chat-actions-row{flex:0 0 auto;display:flex;gap:8px;padding:8px 12px 2px;overflow-x:auto;scrollbar-width:thin;-webkit-overflow-scrolling:touch;border-top:1px solid var(--line)}
.chat-actions-row .chip-btn,.chat-start .chip-btn{display:inline-flex;align-items:center;gap:6px;flex:0 0 auto;white-space:nowrap;min-height:36px;padding:6px 12px;font-size:.82rem}
.chat-actions-row .chip-btn .i,.chat-start .chip-btn .i{width:15px;height:15px}
.chat.is-empty .chat-actions-row,.assistant.is-empty .chat-actions-row{display:none}
.chat-mode{flex:0 0 auto;display:flex;align-items:center;justify-content:space-between;gap:8px;margin:8px 12px 0;padding:6px 6px 6px 12px;border-radius:10px;background:var(--accent-soft);color:var(--accent-text,var(--accent));font-size:.84rem;font-weight:600}
.chat-mode[hidden]{display:none}
.chat-mode button{display:inline-grid;place-items:center;width:30px;height:30px;border:0;border-radius:8px;background:transparent;color:inherit;cursor:pointer}.chat-mode .i{width:15px;height:15px}
.chat-form{flex:0 0 auto;display:flex;align-items:flex-end;gap:8px;padding:10px 12px;border-top:0}
.chat-form textarea{flex:1 1 auto;min-width:0;resize:none;max-height:160px;border-radius:16px;padding:10px 14px;line-height:1.4;font:inherit}
.chat-form .btn{flex:0 0 auto}
.chat-note{flex:0 0 auto;margin:0;padding:0 14px 10px;font-size:.72rem;color:var(--muted)}
.assistant .chat-main{display:flex;flex-direction:column}
.assistant .chat-main .chat-log.big{min-height:46vh;max-height:62vh}
.assistant .chat-form{margin:0;padding:10px 0}.assistant .chat-actions-row{padding:10px 0 2px;flex-wrap:wrap;overflow:visible}.assistant .chat-mode{margin:8px 0 0}.assistant .chat-note{padding:0 0 4px}
.assistant .chat-start .chip-btn{flex:0 0 auto}
@media (max-width:640px){
  .chat.open .chat-panel{position:fixed;inset:0;width:auto;height:auto;border-radius:0;border:0;max-height:none;padding-top:env(safe-area-inset-top,0)}
  .chat.open .chat-fab{display:none}
  .chat .chat-panel header{padding:8px 8px 8px 14px}
  .chat-head-actions .chat-tool span{display:none}.chat-head-actions .chat-tool,.chat-head-actions .chat-close{min-width:44px;min-height:44px;justify-content:center;padding:0}
  .chat-form{padding:10px 12px calc(10px + env(safe-area-inset-bottom,0))}
  .chat-form textarea{font-size:16px}
  .chat-note{padding-bottom:calc(8px + env(safe-area-inset-bottom,0))}
}
html.chat-lock{overflow:hidden}

/* message box: one line to start, grows with the text; the header keeps room for the title */
.chat .chat-form textarea,.assistant .chat-form textarea{min-height:44px;height:44px;padding:10px 14px;box-sizing:border-box}
.chat .chat-form .btn.icon{width:44px;height:44px;padding:0;display:inline-grid;place-items:center;border-radius:50%}
.chat .chat-panel header strong{flex:1 1 auto}
.chat-start .chip-btn,.assistant .chat-actions-row .chip-btn{white-space:normal;max-width:100%;text-align:left}
.assistant .chat-form{flex-wrap:wrap}.assistant .chat-form textarea{flex:1 1 200px}.assistant .chat-form .btn{max-width:100%}

/* Big-screen display: the organization's own header (logo, name, clock), meeting details and contact footer */
.display .brandbar{display:flex;align-items:center;justify-content:space-between;gap:2vw;padding-bottom:2vh;border-bottom:.35vh solid var(--display-accent,#1d6fd6)}
.display .brand{display:flex;align-items:center;gap:1.4vw;min-width:0}
.display .logo-tile{flex:0 0 auto;display:grid;place-items:center;background:#fff;border-radius:1.2vh;padding:.8vh .9vw}
.display .logo-tile img{display:block;height:min(11vh,90px);width:auto;max-width:18vw;object-fit:contain}
.display .org-name{display:block;font-size:1.15em;font-weight:800;letter-spacing:-.01em;line-height:1.1}
.display .org-tag{display:block;font-size:.55em;opacity:.7;margin-top:.3vh}
.display .clock{text-align:right;flex:0 0 auto;line-height:1.1}.display .clock #clock-time{display:block;font-size:1.5em;font-weight:800;font-variant-numeric:tabular-nums}.display .clock #clock-date{display:block;font-size:.55em;opacity:.7}
.display .meeting-line .title{opacity:.85;font-size:.85em}.display .meeting-line .title.small{font-size:.6em;opacity:.65;margin-top:.4vh}
.display .display-foot{display:flex;justify-content:space-between;gap:2vw;flex-wrap:wrap;padding-top:2vh;border-top:1px solid rgba(255,255,255,.1);font-size:.5em;opacity:.65}

/* the filter bars sit clear of the heading above them, and their buttons share the row with the fields */
.meeting-filters{margin:18px 0 16px}
.meeting-filters .mf-grid{grid-template-columns:minmax(0,2fr) repeat(auto-fit,minmax(130px,1fr)) auto;align-items:end}
.match-line{margin:4px 0 0;color:var(--text);overflow-wrap:anywhere}.match-line .muted{margin-right:2px}
.meeting-filters .mf-actions{display:flex;gap:8px;align-items:center;flex-wrap:wrap}
.meeting-filters .mf-grid{grid-template-columns:minmax(0,2fr) repeat(auto-fit,minmax(130px,1fr))}
.meeting-filters .mf-actions{grid-column:1 / -1}
@media (min-width:1100px){.meeting-filters .mf-grid{grid-template-columns:minmax(0,2fr) repeat(5,minmax(120px,1fr)) auto}.meeting-filters .mf-actions{grid-column:auto}}
.display .org-name{color:#fff}.display .org-tag{color:rgba(255,255,255,.72);opacity:1}

/* ===== Display and reading settings (partials/a11y_buttons.html, js/theme.js, js/display_prefs.js) ===== */
.dp-wrap { position: relative; display: inline-flex; }
.dp-panel { position: absolute; right: 0; top: calc(100% + 8px); z-index: 120; width: min(380px, calc(100vw - 32px)); max-height: min(78vh, 640px); overflow: auto; background: var(--surface); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 16px; box-shadow: 0 18px 50px rgba(15,27,51,.22); padding: 16px 18px 14px; text-align: left; }
.dp-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 4px; } .dp-head h2 { margin: 0; font-size: 1.05rem; }
.dp-x { font-size: 1.4rem; line-height: 1; }
.dp-note { color: var(--muted); font-size: .84rem; margin: 0 0 10px; }
.dp-group { border: 0; padding: 0; margin: 0 0 14px; min-width: 0; } .dp-group legend { font-weight: 700; font-size: .86rem; padding: 0; margin-bottom: 6px; }
.dp-seg { display: flex; flex-wrap: wrap; gap: 6px; }
.dp-seg label { position: relative; flex: 1 1 auto; }
.dp-seg input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.dp-seg span { display: flex; align-items: center; justify-content: center; min-height: 40px; padding: 6px 10px; border: 1px solid var(--line-strong); border-radius: 10px; font-weight: 600; font-size: .86rem; cursor: pointer; background: var(--surface); color: var(--ink); text-align: center; }
.dp-seg input:checked + span { background: var(--accent); border-color: var(--accent); color: var(--on-accent); }
.dp-seg input:checked + span::before { content: "\2713"; margin-right: 6px; }
.dp-seg input:focus-visible + span { outline: 3px solid var(--accent); outline-offset: 2px; }
.dp-f-easy { font-family: Verdana, Tahoma, "DejaVu Sans", sans-serif !important; } .dp-f-serif { font-family: Georgia, "Times New Roman", "DejaVu Serif", serif !important; }
.dp-checks label { display: flex; align-items: center; gap: 10px; min-height: 36px; font-size: .9rem; cursor: pointer; }
.dp-checks input { width: 20px; height: 20px; flex: none; accent-color: var(--accent); }
.dp-foot { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; border-top: 1px solid var(--line); padding-top: 12px; }
.dp-status { font-size: .82rem; color: var(--muted); }
@media (max-width: 959px) {
  .dp-panel { position: fixed; left: 16px; right: 16px; top: auto; bottom: 16px; width: auto; max-height: 80vh; }
  .nav .dp-wrap { align-self: flex-start; margin: 4px 14px; }
}
/* Font choice: system fonts only, nothing is downloaded. Verdana/Tahoma have wide, clear letter shapes. */
html[data-font="easy"] { --font: Verdana, Tahoma, "DejaVu Sans", "Segoe UI", sans-serif; }
html[data-font="serif"] { --font: Georgia, "Times New Roman", "DejaVu Serif", serif; }
html[data-font] body { font-feature-settings: normal; }
/* WCAG 1.4.12 text spacing values. */
html[data-spacing="wide"] body { line-height: 1.8; letter-spacing: .12em; word-spacing: .16em; }
html[data-spacing="wide"] p, html[data-spacing="wide"] li { margin-bottom: 1.2em; }
html[data-spacing="wide"] h1, html[data-spacing="wide"] h2, html[data-spacing="wide"] h3 { letter-spacing: .04em; line-height: 1.4; }
/* Colour-blind friendly status colours (Okabe-Ito: blue, orange-brown, vermilion). Every status also has words. */
html[data-cvd="safe"] { --ok: #005a9c; --ok-bg: #e2effa; --warn: #7a4a00; --warn-bg: #fff3d6; --bad: #a33900; --bad-bg: #fdebdc; }
html[data-cvd="safe"][data-theme="dark"] { --ok: #8cc8ff; --ok-bg: #0f2b45; --warn: #ffd089; --warn-bg: #3a2a0c; --bad: #ffb27f; --bad-bg: #3f2210; }
@media (prefers-color-scheme: dark) { html[data-cvd="safe"]:not([data-theme="light"]):not([data-theme="dark"]) { --ok: #8cc8ff; --ok-bg: #0f2b45; --warn: #ffd089; --warn-bg: #3a2a0c; --bad: #ffb27f; --bad-bg: #3f2210; } }
html[data-cvd="safe"] .badge.ok::before, html[data-cvd="safe"] .msgs li.success::before { content: "\2713  "; }
html[data-cvd="safe"] .badge.bad::before, html[data-cvd="safe"] .msgs li.error::before { content: "! "; font-weight: 800; }
html[data-links="1"] a, html[data-links="1"] .linklike { text-decoration: underline !important; text-decoration-thickness: 2px !important; }
html[data-focus="strong"] :focus-visible { outline: 4px solid var(--ink) !important; outline-offset: 3px !important; box-shadow: 0 0 0 7px #ffd400 !important; }
html[data-motion="reduce"], html[data-motion="reduce"] * { scroll-behavior: auto !important; transition: none !important; animation: none !important; }
/* Idle sign-out warning (partials/session_timer.html) */
.st-backdrop { position: fixed; inset: 0; z-index: 300; background: rgba(10,17,32,.55); display: grid; place-items: center; padding: 16px; }
.st-dialog { background: var(--surface); color: var(--ink); border-radius: 18px; padding: 22px 24px; max-width: 440px; width: 100%; box-shadow: 0 24px 60px rgba(0,0,0,.35); border: 1px solid var(--line-strong); }
.st-dialog h2 { font-size: 1.2rem; } .st-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 14px; }
/* ===== Meeting video and recording (station, playback) ===== */
.rec-dot { display: inline-block; width: 12px; height: 12px; border-radius: 50%; background: #d1242f; box-shadow: 0 0 0 0 rgba(209,36,47,.6); animation: rec-pulse 1.6s infinite; flex: none; }
.is-paused .rec-dot { background: var(--warn); animation: none; }
@keyframes rec-pulse { 0% { box-shadow: 0 0 0 0 rgba(209,36,47,.55); } 70% { box-shadow: 0 0 0 9px rgba(209,36,47,0); } 100% { box-shadow: 0 0 0 0 rgba(209,36,47,0); } }
@media (prefers-reduced-motion: reduce) { .rec-dot { animation: none; } }
.station-media { margin-bottom: 16px; }
.sm-body { display: grid; grid-template-columns: minmax(0, 360px) minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 12px; }
.station-media.sm-big .sm-body { grid-template-columns: 1fr; }
.sm-frame { position: relative; padding-top: 56.25%; background: #000; border-radius: 12px; overflow: hidden; }
.sm-frame iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.sm-frame:fullscreen { padding-top: 0; border-radius: 0; }
.sm-video-tools .btn .i { width: 16px; height: 16px; margin-right: 4px; }
.sm-rec-line { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin: 0 0 10px; font-size: 1.02rem; }
.station-media.is-recording { border-color: color-mix(in srgb, #d1242f 45%, var(--line)); }
@media (max-width: 800px) { .sm-body { grid-template-columns: 1fr; } }
.rec-check { display: flex; gap: 8px; align-items: center; margin: 6px 0 8px; font-weight: 600; } .rec-check input { width: 18px; height: 18px; }
.rec-list { list-style: none; padding: 0; margin: 10px 0 0; display: grid; gap: 12px; }
.rec-item { border-top: 1px solid var(--line); padding-top: 10px; }
.rec-player, .public-recording video { width: 100%; max-height: 420px; background: #000; border-radius: 10px; margin-top: 8px; }
.chapters { margin: 4px 0 0; padding-left: 20px; display: grid; gap: 2px; } .chapters .linklike { text-align: left; color: var(--accent-text); font-weight: 600; text-decoration: underline; text-underline-offset: 3px; background: none; border: 0; padding: 2px 0; cursor: pointer; font-size: inherit; }
.linklike .i { width: 15px; height: 15px; vertical-align: -3px; margin-right: 4px; }
.rec-notice { display: inline-flex; align-items: center; gap: 8px; font-weight: 600; margin: 8px 0; }
.display .rec-notice { position: fixed; right: 24px; bottom: 18px; background: rgba(0,0,0,.45); color: #fff; padding: 8px 14px; border-radius: 99px; font-size: 1rem; }
/* Assistant: chat history tools and memory note */
.hist-search { width: 100%; margin: 6px 0 8px; min-height: 38px; }
.hist-row { display: flex; align-items: center; gap: 4px; flex-wrap: wrap; } .hist-row .hist-item { flex: 1 1 140px; }
.hist-tools { display: inline-flex; gap: 2px; } .hist-tool { background: none; border: 0; color: var(--accent-text); font: 600 .76rem var(--font); cursor: pointer; padding: 6px 6px; border-radius: 8px; } .hist-tool:hover { background: var(--accent-soft); }
.hist-row.pinned .hist-item { font-weight: 700; }
.hist-memory { display: flex; align-items: center; gap: 8px; margin: 12px 0 4px; font-size: .84rem; } .hist-memory input { width: 18px; height: 18px; }
.msg-note { font-size: .76rem; opacity: .8; margin-top: 6px !important; font-style: italic; }
