/* GSV Workspace theme: warm cream + terracotta (light), black + orange (dark). Loaded last; overrides styles.css
   and layout.css. Every colour is a token so both themes stay in step. */

/* ---------- tokens */
:root, :root[data-theme="light"] {
  --bg: #f5f0e8; --panel: #fbf8f3; --card: #fffdf9; --border: #e7dfd2; --border-strong: #d8ccba;
  --text: #1d1a16; --muted: #7a7064; --accent: #b4572f; --accent-soft: #f4e3d7; --accent-text: #9a4523;
  --primary: #24201b; --primary-text: #fffaf3; --header-row: #fbefd0; --skipped: #efe8dc; --grid-head: #f2ece2;
  --new-col: #e6f2e3; --danger: #b93a30; --ok: #2f8a55; --warn: #b46a12; --ribbon: #fbf8f3; --tab-bg: #ece5d9;
  --icon-bg: #2a2621; --icon-fg: #f6efe5; --shadow: 0 10px 30px rgba(60, 40, 20, .10);
  --shadow-soft: 0 1px 2px rgba(60, 40, 20, .06);
  --ill-card: #fffdf9; --ill-line: #e3d8c8; --ill-soft: #efe5d6; --ill-ink: #3a332b; --ill-bar: #ddcdb7;
  --ill-glow: rgba(180, 87, 47, .10); --ill-acc-soft: rgba(180, 87, 47, .17);
  --login-brand-bg: radial-gradient(120% 80% at 10% 0%, #f9efe2 0%, #f1e6d6 55%, #eadcc8 100%);
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #0a0a0a; --panel: #111111; --card: #151515; --border: #242424; --border-strong: #333;
    --text: #ededed; --muted: #8f8f8f; --accent: #e27b48; --accent-soft: #2a1a11; --accent-text: #f0915f;
    --primary: #e27b48; --primary-text: #170b04; --header-row: #3a2e1a; --skipped: #1a1a1a; --grid-head: #171717;
    --new-col: #16301e; --danger: #ff6b5e; --ok: #4cc27a; --warn: #e0a84a; --ribbon: #111; --tab-bg: #1c1c1c;
    --icon-bg: #222; --icon-fg: #e9e9e9; --shadow: 0 12px 34px rgba(0, 0, 0, .55); --shadow-soft: 0 1px 2px rgba(0,0,0,.4);
    --ill-card: #161616; --ill-line: #2c2c2c; --ill-soft: #242424; --ill-ink: #d8d8d8; --ill-bar: #383838;
    --ill-glow: rgba(226, 123, 72, .13); --ill-acc-soft: rgba(226, 123, 72, .22);
    --login-brand-bg: radial-gradient(110% 80% at 15% 0%, #1c140f 0%, #101010 50%, #0c0c0c 100%);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #0a0a0a; --panel: #111111; --card: #151515; --border: #242424; --border-strong: #333;
  --text: #ededed; --muted: #8f8f8f; --accent: #e27b48; --accent-soft: #2a1a11; --accent-text: #f0915f;
  --primary: #e27b48; --primary-text: #170b04; --header-row: #3a2e1a; --skipped: #1a1a1a; --grid-head: #171717;
  --new-col: #16301e; --danger: #ff6b5e; --ok: #4cc27a; --warn: #e0a84a; --ribbon: #111; --tab-bg: #1c1c1c;
  --icon-bg: #222; --icon-fg: #e9e9e9; --shadow: 0 12px 34px rgba(0, 0, 0, .55); --shadow-soft: 0 1px 2px rgba(0,0,0,.4);
  --ill-card: #161616; --ill-line: #2c2c2c; --ill-soft: #242424; --ill-ink: #d8d8d8; --ill-bar: #383838;
  --ill-glow: rgba(226, 123, 72, .13); --ill-acc-soft: rgba(226, 123, 72, .22);
  --login-brand-bg: radial-gradient(110% 80% at 15% 0%, #1c140f 0%, #101010 50%, #0c0c0c 100%);
  color-scheme: dark;
}

:root { --serif: "Iowan Old Style", "Palatino Linotype", Palatino, "Book Antiqua", Georgia, serif; }
body { font-family: "Inter", "Segoe UI Variable Text", "Segoe UI", system-ui, -apple-system, Roboto, Arial, sans-serif; }
.btn { border-radius: 8px; background: var(--card); }
.btn:hover { border-color: var(--border-strong); background: var(--panel); }
.btn.primary { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.btn.primary:hover { filter: brightness(1.12); background: var(--primary); }
.btn svg { width: 16px; height: 16px; }
.input:focus { outline: 2px solid var(--accent-soft); border-color: var(--accent); }
.pill { background: var(--skipped); color: var(--muted); }
.spacer { flex: 1; }

/* ---------- top bar */
.topbar { background: var(--panel); border-bottom: 1px solid var(--border); padding: 0 20px; min-height: 58px; gap: 12px; }
.topbar .brand { display: inline-flex; align-items: center; gap: 10px; }
.wordmark { font-size: 17px; letter-spacing: -.01em; white-space: nowrap; }
.wordmark b { font-weight: 800; }
.wordmark i { font-family: var(--serif); font-style: italic; color: var(--accent); font-weight: 500; font-size: 1.12em; }
.wordmark-btn { border: none; background: none; padding: 4px 2px; cursor: pointer; color: var(--text); }
.brand-divider { width: 1px; height: 22px; background: var(--border); }
.home-btn {
  display: inline-flex; align-items: center; gap: 6px; padding: 5px 10px; border-radius: 8px; cursor: pointer;
  border: 1px solid var(--border); background: var(--card); color: var(--text); font-weight: 600; font-size: 13px;
}
.home-btn:hover { border-color: var(--accent); color: var(--accent); }
.home-btn svg { width: 15px; height: 15px; }
.tool-brand { display: inline-flex; align-items: center; gap: 8px; font-size: 15px; white-space: nowrap; }
.brand-sub { color: var(--muted); font-weight: 400; font-size: 13px; }
.nav { gap: 2px; margin-left: 14px; }
.nav-tab { border-radius: 8px; color: var(--muted); font-weight: 600; font-size: 13.5px; padding: 7px 12px; }
.nav-tab:hover { background: var(--skipped); color: var(--text); }
.nav-tab.active { background: var(--skipped); color: var(--text); box-shadow: inset 0 -2px 0 var(--accent); }
.nav-tab.active .nav-num { background: var(--accent); color: #fff; }
.portal-tab svg { width: 16px; height: 16px; }
.actions { gap: 10px; }
.header-search {
  display: flex; align-items: center; gap: 8px; width: 240px; padding: 6px 8px 6px 10px; border-radius: 9px;
  background: var(--card); border: 1px solid var(--border); color: var(--muted); cursor: text;
}
.header-search:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.header-search svg { width: 15px; height: 15px; flex-shrink: 0; }
.header-search input { flex: 1; min-width: 0; border: none; outline: none; background: none; color: var(--text); font-size: 13.5px; }
kbd { font: 600 10.5px/1 inherit; padding: 3px 5px; border-radius: 5px; border: 1px solid var(--border); color: var(--muted); background: var(--panel); white-space: nowrap; }
.theme-switch { display: inline-flex; padding: 2px; border-radius: 9px; border: 1px solid var(--border); background: var(--card); }
.theme-switch button { display: grid; place-items: center; width: 28px; height: 26px; border: none; border-radius: 7px; background: none; color: var(--muted); cursor: pointer; }
.theme-switch button.on { background: var(--skipped); color: var(--text); }
.theme-switch svg { width: 15px; height: 15px; }
.icon-square { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 8px; border: 1px solid var(--border); background: var(--card); color: var(--muted); cursor: pointer; }
.icon-square:hover { color: var(--accent); border-color: var(--accent); }
.icon-square svg { width: 16px; height: 16px; }
.user-chip { display: inline-flex; align-items: center; gap: 7px; padding: 3px 8px 3px 3px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); cursor: pointer; color: var(--text); }
.user-chip:hover { border-color: var(--border-strong); }
.avatar { display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: #fff; font-size: 11px; font-weight: 700; letter-spacing: .02em; }
.user-name { font-size: 13px; font-weight: 600; max-width: 140px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.user-chip svg { width: 14px; height: 14px; color: var(--muted); }
.retention { background: var(--accent-soft); color: var(--text); border-bottom: 1px solid var(--border); }

/* ---------- portal pages (dashboard, recent, feedback, tool requirements, manage users) */
main.portal-page { align-items: center; padding: 26px 22px 40px; gap: 18px; overflow-y: auto; }
main.portal-page > * { width: min(1120px, 100%); flex-shrink: 0; }
.page-intro { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; }
.page-intro h1 { margin: 10px 0 6px; font-size: 30px; font-weight: 650; letter-spacing: -.02em; display: flex; align-items: center; gap: 6px; }
.page-intro .btn { flex-shrink: 0; }
.intro-quote { margin: 0; color: var(--muted); font-size: 14px; }
.intro-sub { margin: 0; color: var(--muted); font-size: 14px; max-width: 720px; line-height: 1.5; }
.date-chip { display: inline-flex; border: 1px solid var(--border); border-radius: 8px; overflow: hidden; font-size: 12px; font-weight: 600; background: var(--card); }
.date-chip span { padding: 4px 9px; }
.date-chip span:first-child { background: var(--skipped); color: var(--muted); border-right: 1px solid var(--border); }
.dash-body { display: flex; flex-direction: column; gap: 26px; }
.cat-head { display: flex; align-items: center; gap: 8px; margin: 0 0 12px; padding-bottom: 8px; border-bottom: 1px solid var(--border);
  font-size: 11.5px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--text); }
.cat-mark { width: 7px; height: 7px; border-radius: 2px; background: var(--accent); }
.card-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(290px, 1fr)); gap: 12px; }
.page-intro + .card-grid, .page-intro + .empty-card { margin-top: 4px; }
.tool-card2 {
  display: flex; align-items: center; gap: 14px; padding: 14px 16px; text-align: left; cursor: pointer; min-height: 72px;
  background: var(--card); border: 1px solid var(--border); border-radius: 12px; color: var(--text); box-shadow: var(--shadow-soft);
  transition: border-color .15s, box-shadow .15s, transform .15s;
}
.tool-card2:hover:not(:disabled) { border-color: var(--border-strong); box-shadow: var(--shadow); transform: translateY(-1px); }
.tool-card2:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.tool-card2:disabled { cursor: default; }
.tool-card2.soon .tool-logo { opacity: .75; }
.card-text { display: flex; flex-direction: column; gap: 3px; flex: 1; min-width: 0; }
.card-name { font-weight: 650; font-size: 14.5px; }
.card-sub { color: var(--muted); font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.card-arrow { width: 18px; height: 18px; color: var(--muted); flex-shrink: 0; transition: transform .15s, color .15s; }
.tool-card2:hover .card-arrow { transform: translateX(2px); color: var(--accent); }
.soon-pill { flex-shrink: 0; display: inline-flex; align-items: center; gap: 5px; padding: 3px 9px; border-radius: 999px; font-size: 11.5px; font-weight: 600;
  background: var(--accent-soft); color: var(--accent-text); }
.soon-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--accent); }
.tool-logo { display: grid; place-items: center; width: 42px; height: 42px; flex-shrink: 0; border-radius: 10px; background: var(--icon-bg); color: var(--icon-fg); }
.tool-logo svg { width: 22px; height: 22px; }
.tool-logo .glyph-acc { stroke: var(--accent); }
.tool-logo .glyph-acc-fill { fill: var(--accent); stroke: var(--accent); stroke-width: 1; }
.tool-logo.small { width: 28px; height: 28px; border-radius: 7px; }
.tool-logo.small svg { width: 16px; height: 16px; }
.tool-card2.folder .tool-logo { background: var(--accent-soft); color: var(--accent-text); }
.crumbs { display: flex; align-items: center; gap: 6px; font-size: 14px; color: var(--muted); flex-wrap: wrap; }
.crumbs svg { width: 14px; height: 14px; }
.crumbs b { color: var(--text); }
.crumb-link { border: none; background: none; padding: 0; color: var(--accent-text); font: inherit; font-weight: 600; cursor: pointer; }
.crumb-link:hover { text-decoration: underline; }
.empty-card { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 40px 20px; color: var(--muted);
  border: 1px dashed var(--border-strong); border-radius: 14px; background: var(--card); }
.empty-card > svg { width: 28px; height: 28px; color: var(--accent); }
.empty-card b { color: var(--text); font-size: 15px; }
.mobile-only { display: none !important; }
.dash-search { display: flex; align-items: center; gap: 8px; padding: 9px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--border); color: var(--muted); }
.dash-search svg { width: 16px; height: 16px; }
.dash-search input { flex: 1; border: none; outline: none; background: none; color: var(--text); font-size: 15px; min-width: 0; }

/* panels, chips, feedback — one spacing scale: 8 / 12 / 16 / 20 px */
.two-col { display: grid; grid-template-columns: minmax(300px, 400px) 1fr; gap: 20px; align-items: start; }
.panel-card { background: var(--card); border: 1px solid var(--border); border-radius: 14px; padding: 20px; display: flex; flex-direction: column; gap: 16px; box-shadow: var(--shadow-soft); }
.panel-card h3 { margin: 0; font-size: 15px; }
.panel-card .form-field, .dialog .form-field { gap: 6px; }
main.portal-page textarea.input { resize: vertical; font: inherit; line-height: 1.45; }
main.portal-page .input { padding: 8px 10px; border-radius: 8px; background: var(--card); }
.chip-group { display: flex; flex-wrap: wrap; gap: 8px; }
.chip { display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 14px; border-radius: 999px; border: 1px solid var(--border); background: var(--card); color: var(--text); cursor: pointer; font-size: 13px; font-weight: 600; }
.chip:hover { border-color: var(--border-strong); }
.chip.on { background: var(--primary); border-color: var(--primary); color: var(--primary-text); }
.chip-count { font-size: 11px; min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--skipped); color: var(--muted); text-align: center; }
.chip.on .chip-count { background: rgba(255,255,255,.2); color: inherit; }
.feed-list { display: flex; flex-direction: column; gap: 12px; }
.feed-item { border: 1px solid var(--border); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 12px; background: var(--panel); }
.feed-item.done > .feed-msg, .feed-item.done > .feed-meta { opacity: .7; }
.feed-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; font-size: 13px; }
.feed-kind { font-weight: 650; }
.feed-msg { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.reply-box { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: 10px; background: var(--accent-soft); border-left: 3px solid var(--accent); font-size: 13.5px; line-height: 1.5; white-space: pre-wrap; }
.reply-box b { font-size: 12px; letter-spacing: .02em; color: var(--accent-text); }
.admin-row { display: grid; grid-template-columns: 1fr auto auto auto; gap: 8px; align-items: end; padding-top: 12px; border-top: 1px dashed var(--border); }
.admin-row .btn { height: 38px; }
.admin-row.req { grid-template-columns: 170px 150px 1fr auto; }
.admin-row .form-field .input { height: 38px; }
.admin-row textarea.input { height: auto; min-height: 38px; }
.admin-buttons { display: flex; gap: 8px; }
.meta-text { font-size: 12.5px; color: var(--muted); }

/* tool requirements */
.filter-bar { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.sort-select { width: auto; height: 34px; }
.req-list { display: flex; flex-direction: column; gap: 12px; }
.req-card { display: flex; gap: 16px; padding: 20px; background: var(--card); border: 1px solid var(--border); border-radius: 14px; box-shadow: var(--shadow-soft); }
.vote { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; width: 60px; height: 72px; flex-shrink: 0; border-radius: 12px;
  border: 1px solid var(--border-strong); background: var(--panel); color: var(--muted); cursor: pointer; align-self: flex-start; transition: border-color .15s, background .15s; }
.vote svg { width: 16px; height: 16px; }
.vote b { color: var(--text); font-size: 16px; line-height: 1.1; }
.vote small { font-size: 10.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; }
.vote:hover:not(:disabled) { border-color: var(--accent); color: var(--accent-text); background: var(--accent-soft); }
.vote.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-text); }
.vote:disabled { cursor: default; border-style: dashed; }
.req-body { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.req-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.req-top h3 { margin: 0; font-size: 16px; }
.req-meta { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: -4px; }
.req-meta .pill { margin: 0; }
.req-desc { margin: 0; white-space: pre-wrap; line-height: 1.55; }
.req-freq { margin: 0; font-size: 13px; color: var(--muted); }
.req-freq b { color: var(--text); }
.status-pill { flex-shrink: 0; padding: 4px 10px; border-radius: 999px; font-size: 12px; font-weight: 600; background: var(--skipped); color: var(--muted); white-space: nowrap; }
.status-pill.s-review { background: color-mix(in srgb, var(--warn) 16%, transparent); color: var(--warn); }
.status-pill.s-planned, .status-pill.s-building { background: var(--accent-soft); color: var(--accent-text); }
.status-pill.s-done { background: color-mix(in srgb, var(--ok) 16%, transparent); color: var(--ok); }
.status-pill.s-declined { background: var(--skipped); color: var(--muted); }

/* manage users */
.admin-tabs { border-bottom: 1px solid var(--border); }
main.portal-page .card { background: var(--card); border-radius: 12px; }
main.portal-page .stat { background: var(--card); border-radius: 12px; }

/* ---------- login */
.login { background: var(--bg); align-items: stretch; justify-content: stretch; overflow: auto; }
.login-split { display: flex; width: 100%; height: 100%; min-height: 560px; }
.login-brand {
  flex: 1.15; display: flex; flex-direction: column; gap: 18px; padding: 52px 56px 32px; background: var(--login-brand-bg);
  border-right: 1px solid var(--border); position: relative; overflow: hidden;
}
.login-brand-top { position: relative; z-index: 1; }
.wordmark.big { display: block; font-size: 54px; line-height: 1.05; letter-spacing: -.03em; }
.wordmark.big b { font-weight: 800; }
.wordmark.big i { font-size: 1.04em; letter-spacing: -.02em; }
.brand-lead { margin: 14px 0 4px; font-size: 19px; font-weight: 700; }
.brand-sub-lead { margin: 0; color: var(--muted); font-size: 15px; }
/* the illustration takes the space left under the text and scales to fit it, so nothing overlaps */
.login-art-wrap { flex: 1 1 0; min-height: 200px; display: flex; align-items: center; justify-content: center; margin-top: 8px; }
.login-art { display: block; width: 100%; height: 100%; max-width: 600px; max-height: 470px; overflow: visible; }
.login-brand-foot { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 12px; color: var(--muted); }
.login-brand-foot b { display: block; color: var(--accent-text); font-size: 13px; }
.login-brand-foot small { letter-spacing: .14em; text-transform: uppercase; font-size: 10.5px; }
.login-form-side { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 32px 24px; background: var(--bg); position: relative; }
.login-theme { position: absolute; top: 18px; right: 20px; }
.login-form-wrap { width: min(380px, 100%); display: flex; flex-direction: column; gap: 18px; }
.login-card { width: 100%; background: none; border: none; box-shadow: none; padding: 0; display: flex; flex-direction: column; gap: 16px; }
.login-card h2 { margin: 0 0 4px; font-size: 28px; font-weight: 650; letter-spacing: -.02em; }
.login-field { display: flex; flex-direction: column; gap: 6px; }
.login-hint { margin: 0 0 10px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.login-label { font-size: 13px; font-weight: 600; color: var(--text); }
.login-label-row { display: flex; align-items: baseline; justify-content: space-between; }
.login-card .input { padding: 11px 13px; font-size: 15px; border-radius: 10px; background: var(--card); width: 100%; }
.pw-wrap { position: relative; display: flex; }
.pw-wrap .input { padding-right: 44px; }
.pw-toggle { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); display: grid; place-items: center; width: 32px; height: 32px; border: none; background: none; color: var(--muted); cursor: pointer; border-radius: 8px; }
.pw-toggle:hover { color: var(--text); background: var(--skipped); }
.pw-toggle svg { width: 18px; height: 18px; }
.login-submit { margin-top: 2px; justify-content: center; gap: 8px; padding: 12px; font-size: 15px; font-weight: 600; border-radius: 10px; }
.login-submit svg { width: 17px; height: 17px; transition: transform .15s; }
.login-submit:hover svg { transform: translateX(3px); }
.login-link { color: var(--accent-text); font-size: 13px; text-decoration: none; font-weight: 600; }
.login-link:hover { text-decoration: underline; }
.login-link.back { align-self: center; margin-top: 6px; }
.login-error { color: var(--danger); font-size: 13px; }
.login-error:empty { display: none; }
.login-msg { color: var(--ok); font-size: 13.5px; min-height: 18px; line-height: 1.45; }
.login-note { margin: 2px 0 0; color: var(--muted); font-size: 12px; text-align: center; }
.login-secure { display: flex; align-items: center; justify-content: center; gap: 6px; margin: 8px 0 0; padding-top: 16px; border-top: 1px solid var(--border); color: var(--muted); font-size: 12px; text-align: center; }
.login-secure svg { width: 14px; height: 14px; flex-shrink: 0; }

/* login illustration (inline SVG, theme-aware) */
.ill-glow { fill: var(--ill-glow); }
.ill-dash { fill: none; stroke: var(--ill-line); stroke-width: 1.5; stroke-dasharray: 3 7; }
.ill-card { fill: var(--ill-card); stroke: var(--ill-line); stroke-width: 1.5; }
.ill-line { fill: none; stroke: var(--ill-line); stroke-width: 1.5; }
.ill-dot { fill: var(--ill-line); }
.ill-soft { fill: var(--ill-soft); }
.ill-ink-fill { fill: var(--ill-ink); opacity: .75; }
.ill-bar { fill: var(--ill-bar); }
.ill-acc { fill: var(--accent); }
.ill-acc-soft { fill: var(--ill-acc-soft); }
.ill-acc-text { fill: var(--accent); font: 700 21px/1 var(--serif); }
.ill-on-acc { fill: #fff; font: 700 20px/1 "Segoe UI", system-ui, sans-serif; }
.ill-on-acc-s { fill: none; stroke: #fff; stroke-width: 2.4; stroke-linecap: round; stroke-linejoin: round; }
.ill-acc-s { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; }
.ill-acc-s.thick { stroke-width: 3.5; }
.ill-trend { fill: none; stroke: var(--accent); stroke-width: 2.5; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 4 5; }
.ill-lens { fill: var(--ill-acc-soft); stroke: var(--ill-ink); stroke-width: 5; }
.ill-handle { fill: none; stroke: var(--ill-ink); stroke-width: 9; stroke-linecap: round; }
.ill-shadow { filter: drop-shadow(0 10px 18px rgba(60, 40, 20, .08)); }
@keyframes floaty { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-7px); } }
.float-a, .float-b, .float-c { transform-box: fill-box; animation: floaty 6s ease-in-out infinite; }
.float-b { animation-duration: 7s; animation-delay: -2s; }
.float-c { animation-duration: 8s; animation-delay: -4s; }
.float-a.slow, .float-b.slow { animation-duration: 9s; }
@media (prefers-reduced-motion: reduce) { .float-a, .float-b, .float-c { animation: none; } }

/* ---------- smaller screens */
@media (max-width: 1250px) {
  .header-search { width: 180px; }
  .header-search kbd { display: none; }
}
@media (max-width: 1100px) {
  .portal-tab .nav-label { display: none; }
  .portal-tab.active .nav-label { display: inline; }
}
@media (max-width: 980px) {
  .header-search { display: none; }
  .mobile-only { display: flex !important; }
  .two-col { grid-template-columns: 1fr; }
  .admin-row, .admin-row.req { grid-template-columns: 1fr; }
  .user-name { display: none; }
  .login-brand { padding: 36px 32px 24px; }
  .wordmark.big { font-size: 42px; }
}
@media (max-width: 820px) {
  .login-split { flex-direction: column; }
  .login-brand { flex: none; border-right: none; border-bottom: 1px solid var(--border); }
  .login-split { height: auto; }
  .login-art-wrap { flex: none; height: 220px; min-height: 0; }
  .login-art { max-height: 220px; }
  .login-brand-foot { display: none; }
  .brand-lead { margin-top: 16px; }
  .topbar { padding: 6px 12px; }
  .nav { margin-left: 0; }
  .page-intro h1 { font-size: 25px; }
}

/* ---------- tools fit the window: the top bar, ribbon and sheet tabs stay on screen; only the table scrolls */
body { overflow: hidden; }
main { min-height: 0; }
main.page-sheets { overflow: hidden; }
.page-sheets .table-area { min-height: 160px; }
.page-sheets .sheet-tabs { flex-shrink: 0; }
.retention { padding: 5px 20px; font-size: 12px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
@media (max-width: 1400px) { .tool-brand .brand-sub { display: none; } }
@media (max-width: 820px) { .wordmark.big { font-size: 36px; } }
