/* Opulence One design system — tokens from opulence_design_system.css */
:root {
  --bg: #062C36; --card: #0A3744; --card-2: #0E4150; --hover: #114B5A; --line: rgba(255,255,255,.07);
  --lime: #A2F4B3; --mint: #22C55E; --gold: #F2CE6B; --cyan: #62C9D1; --coral: #F97316; --plum: #8B5CF6;
  --text: #FFFFFF; --text-2: #91B3BC; --muted: #5C8793; --dark: #072C36; --danger: #F87171;
  --r-xl: 24px; --r-lg: 16px; --r-md: 12px; --r-sm: 8px;
  --mono: "JetBrains Mono", "Fira Code", ui-monospace, SFMono-Regular, Menlo, Consolas, monospace;
  --sans: Inter, "Plus Jakarta Sans", -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  color-scheme: dark;
}
[data-theme="light"] {
  --bg: #EDE9E1; --card: #FAF7F2; --card-2: #F3EFE7; --hover: #FFFFFF; --line: rgba(0,0,0,.08);
  --text: #072C36; --text-2: #5B6B70; --muted: #7A8A8F; color-scheme: light;
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.5 var(--sans); overflow-x: hidden; }
a { color: var(--lime); text-decoration: none; } [data-theme="light"] a { color: #15803D; }
button, input, select, textarea { font: inherit; color: inherit; }
.mono, .num { font-family: var(--mono); font-feature-settings: "zero" 1; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.01em; margin: 4px 0 8px; }
h2 { font-size: 20px; font-weight: 600; margin: 0; } h3 { font-size: 16px; font-weight: 500; margin: 0; }
.caps { font-size: 11px; font-weight: 600; letter-spacing: .06em; text-transform: uppercase; color: var(--text-2); }
.sub { color: var(--text-2); } .muted { color: var(--muted); } .small { font-size: 12px; }

/* shell */
.shell { max-width: 1560px; margin: 0 auto; padding: 16px; }
.topbar { display: flex; align-items: center; gap: 14px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 12px 16px; position: sticky; top: 8px; z-index: 30; }
.brand { display: flex; align-items: center; gap: 12px; min-width: 200px; cursor: pointer; }
.brand img { width: 44px; height: 44px; border-radius: 50%; background: #fff; padding: 2px; }
.brand b { display: block; font-size: 16px; font-weight: 600; } .brand span { font-size: 12px; color: var(--text-2); }
.pills { display: flex; gap: 4px; background: rgba(0,0,0,.18); border-radius: 999px; padding: 4px; overflow-x: auto; scrollbar-width: none; flex: 0 1 auto; }
[data-theme="light"] .pills { background: rgba(0,0,0,.05); }
.pill { border: 0; background: transparent; color: var(--text-2); padding: 8px 14px; border-radius: 999px; cursor: pointer; white-space: nowrap; display: flex; align-items: center; gap: 8px; font-weight: 500; }
.pill.on { background: #fff; color: var(--dark); } .pill:hover:not(.on) { color: var(--text); }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; flex: none; }
.spacer { flex: 1; }
.iconbtn { width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line); background: var(--card-2); display: grid; place-items: center; cursor: pointer; position: relative; flex: none; }
.iconbtn:hover { background: var(--hover); }
.badge-dot { position: absolute; top: 6px; right: 7px; min-width: 16px; height: 16px; border-radius: 8px; background: var(--coral); color: #fff; font-size: 10px; font-weight: 700; display: grid; place-items: center; padding: 0 3px; }
.layout { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; margin-top: 24px; align-items: start; }
.sidebar { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 16px 12px; position: sticky; top: 100px; max-height: calc(100vh - 116px); overflow-y: auto; display: flex; flex-direction: column; }
.sidebar .caps { padding: 10px 12px 4px; }
.nav { display: flex; align-items: center; gap: 12px; padding: 7px 14px; border-radius: 999px; color: var(--text); cursor: pointer; font-weight: 500; border: 0; background: none; width: 100%; text-align: left; }
.nav svg { color: var(--text-2); flex: none; } .nav:hover { background: var(--hover); }
.nav.on { background: #fff; color: var(--dark); } .nav.on svg { color: var(--dark); }
.subnav { padding-left: 40px; font-size: 13px; font-weight: 400; padding-top: 6px; padding-bottom: 6px; }
.usercard { margin-top: 16px; display: flex; gap: 10px; align-items: center; background: var(--card-2); border-radius: var(--r-lg); padding: 12px; cursor: pointer; }
.avatar { width: 40px; height: 40px; border-radius: 50%; background: var(--lime); color: var(--dark); display: grid; place-items: center; font-weight: 700; flex: none; }
.main { min-width: 0; }
.menu-toggle { display: none; }

/* page header */
.pagehead { display: flex; gap: 16px; align-items: flex-end; justify-content: space-between; flex-wrap: wrap; margin-bottom: 20px; }
.pagehead p { margin: 0; color: var(--text-2); max-width: 760px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

/* buttons */
.btn { display: inline-flex; align-items: center; gap: 8px; border: 1px solid var(--line); background: var(--card-2); color: var(--text); padding: 10px 16px; border-radius: 999px; cursor: pointer; font-weight: 600; font-size: 13px; white-space: nowrap; }
.btn:hover { background: var(--hover); } .btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.gold { background: var(--gold); color: var(--dark); border-color: transparent; } .btn.gold:hover { filter: brightness(1.05); }
.btn.lime { background: var(--lime); color: var(--dark); border-color: transparent; }
.btn.white { background: #fff; color: var(--dark); }
.btn.danger { color: var(--danger); } .btn.sm { padding: 6px 12px; font-size: 12px; } .btn.ghost { background: transparent; border-color: transparent; color: var(--lime); }

/* cards & grids */
.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); padding: 22px; min-width: 0; overflow: hidden; }
.card.feat { background: var(--lime); color: var(--dark); } .card.feat .caps, .card.feat .sub { color: #1f4d3a; }
.card-head { display: flex; justify-content: space-between; align-items: flex-start; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.grid { display: grid; gap: 20px; }
.g4 { grid-template-columns: repeat(4, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(3, minmax(0, 1fr)); } .g2 { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.g-2-1 { grid-template-columns: minmax(0, 2fr) minmax(0, 1fr); }
.section { margin-top: 28px; } .section > .row { display: flex; justify-content: space-between; align-items: flex-end; margin-bottom: 14px; gap: 12px; flex-wrap: wrap; }
.kpi .big { font-family: var(--mono); font-size: 30px; font-weight: 600; margin: 10px 0 12px; letter-spacing: -.02em; }
.tag { display: inline-flex; align-items: center; gap: 4px; font-family: var(--mono); font-size: 11px; font-weight: 600; padding: 3px 9px; border-radius: 999px; background: rgba(255,255,255,.08); color: var(--text-2); text-transform: uppercase; letter-spacing: .04em; white-space: nowrap; }
.tag.green { background: rgba(34,197,94,.15); color: #4ADE80; } .tag.gold { background: rgba(242,206,107,.16); color: var(--gold); }
.tag.coral { background: rgba(249,115,22,.16); color: #FB923C; } .tag.cyan { background: rgba(98,201,209,.16); color: var(--cyan); }
.tag.plum { background: rgba(139,92,246,.2); color: #A78BFA; } .tag.red { background: rgba(248,113,113,.16); color: var(--danger); }
[data-theme="light"] .tag.green { color: #15803D; } [data-theme="light"] .tag.gold { color: #92660B; } [data-theme="light"] .tag.coral { color: #C2410C; } [data-theme="light"] .tag.cyan { color: #0E7490; }
.bar { height: 6px; border-radius: 6px; background: rgba(255,255,255,.1); overflow: hidden; display: flex; }
[data-theme="light"] .bar, .card.feat .bar { background: rgba(0,0,0,.1); }
.bar > i { display: block; height: 100%; border-radius: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; margin: 14px 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); }
.stats .caps { text-transform: none; letter-spacing: 0; font-weight: 400; }

/* tables */
.tablewrap { overflow-x: auto; margin: 0 -22px; padding: 0 22px; }
table.t { width: 100%; border-collapse: collapse; min-width: 640px; }
.t th { text-align: left; font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--muted); padding: 10px 10px; border-bottom: 1px solid var(--line); white-space: nowrap; cursor: default; }
.t th.sort { cursor: pointer; } .t th.sort:hover { color: var(--text); }
.t td { padding: 12px 10px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.t tr.click { cursor: pointer; } .t tr.click:hover td { background: rgba(255,255,255,.03); }
.t td.n { font-family: var(--mono); white-space: nowrap; }
.toolbar { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.input, select.input, textarea.input { background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md); padding: 9px 12px; color: var(--text); min-width: 0; }
.input:focus { outline: 2px solid var(--cyan); outline-offset: 0; }
textarea.input { width: 100%; min-height: 90px; resize: vertical; }
.pager { display: flex; justify-content: space-between; align-items: center; margin-top: 12px; color: var(--text-2); font-size: 12px; }
.empty { padding: 36px; text-align: center; color: var(--text-2); }
.tabs { display: inline-flex; gap: 4px; background: rgba(0,0,0,.18); border-radius: 999px; padding: 4px; margin-bottom: 18px; max-width: 100%; overflow-x: auto; }
[data-theme="light"] .tabs { background: rgba(0,0,0,.05); }

/* forms & modal */
.overlay { position: fixed; inset: 0; background: rgba(2, 20, 26, .65); z-index: 50; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 16px; overflow-y: auto; }
.modal { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-xl); width: 100%; max-width: 760px; padding: 24px; box-shadow: 0 30px 80px rgba(0,0,0,.4); }
.modal.wide { max-width: 1040px; }
.form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px 16px; }
.form label { display: flex; flex-direction: column; gap: 6px; font-size: 12px; color: var(--text-2); font-weight: 500; }
.form label.full { grid-column: 1 / -1; } .form .req::after { content: " *"; color: var(--coral); }
.form .err { color: var(--danger); } .check { flex-direction: row !important; align-items: center; gap: 8px !important; }
.alert { padding: 12px 14px; border-radius: var(--r-md); background: rgba(248,113,113,.12); color: var(--danger); margin-bottom: 12px; font-size: 13px; }
.alert.info { background: rgba(98,201,209,.12); color: var(--cyan); }
.toasts { position: fixed; bottom: 20px; right: 20px; z-index: 80; display: flex; flex-direction: column; gap: 8px; }
.toast { background: #fff; color: var(--dark); padding: 12px 16px; border-radius: var(--r-md); box-shadow: 0 10px 30px rgba(0,0,0,.3); font-weight: 500; max-width: 380px; }
.toast.err { background: #FEE2E2; color: #7F1D1D; }
.dropdown { position: absolute; right: 0; top: 52px; width: 400px; max-width: 92vw; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); box-shadow: 0 20px 60px rgba(0,0,0,.4); padding: 8px; z-index: 40; max-height: 70vh; overflow-y: auto; }
.item { padding: 10px 12px; border-radius: var(--r-md); cursor: pointer; display: block; color: var(--text); }
.item:hover { background: var(--hover); }
.insight { background: var(--card-2); border-radius: var(--r-lg); padding: 14px; margin-bottom: 10px; display: block; color: var(--text); }
.list-row { display: flex; gap: 12px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); }
.list-row:last-child { border-bottom: 0; }
.datebox { width: 46px; height: 46px; border-radius: 12px; background: var(--card-2); display: flex; flex-direction: column; align-items: center; justify-content: center; font-family: var(--mono); line-height: 1.1; flex: none; }
.datebox small { font-size: 10px; color: var(--text-2); }
.spin { width: 22px; height: 22px; border: 3px solid var(--line); border-top-color: var(--lime); border-radius: 50%; animation: s 1s linear infinite; margin: 40px auto; }
@keyframes s { to { transform: rotate(360deg); } }

/* gantt & calendar */
.gantt { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-lg); }
.gantt-inner { position: relative; }
.g-row { display: flex; border-bottom: 1px solid var(--line); height: 38px; }
.g-label { position: sticky; left: 0; z-index: 4; width: 260px; flex: none; background: var(--card); padding: 0 12px; display: flex; align-items: center; gap: 8px; border-right: 1px solid var(--line); font-size: 13px; overflow: hidden; white-space: nowrap; text-overflow: ellipsis; }
.g-track { position: relative; flex: none; }
.g-bar { position: absolute; top: 9px; height: 20px; border-radius: 6px; cursor: grab; overflow: hidden; font-size: 11px; color: var(--dark); font-weight: 600; padding: 0 6px; white-space: nowrap; display: flex; align-items: center; user-select: none; touch-action: none; }
.g-bar .prog { position: absolute; left: 0; top: 0; bottom: 0; background: rgba(0,0,0,.22); pointer-events: none; }
.g-bar span { position: relative; }
.g-ms { position: absolute; top: 11px; width: 16px; height: 16px; transform: rotate(45deg); background: var(--gold); border-radius: 3px; cursor: pointer; }
.g-head { display: flex; height: 34px; border-bottom: 1px solid var(--line); position: sticky; top: 0; background: var(--card); z-index: 3; }
.g-cell { flex: none; border-left: 1px solid var(--line); font-size: 11px; color: var(--text-2); padding: 8px 4px; overflow: hidden; white-space: nowrap; }
.g-today { position: absolute; top: 0; bottom: 0; width: 2px; background: var(--coral); z-index: 1; pointer-events: none; }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: var(--r-lg); overflow: hidden; }
.cal .dow { padding: 8px; font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; border-bottom: 1px solid var(--line); }
.cal .day { min-height: 112px; padding: 6px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); cursor: pointer; min-width: 0; }
.cal .day.out { opacity: .4; } .cal .day.today { background: rgba(162,244,179,.06); }
.ev { font-size: 11px; padding: 2px 6px; border-radius: 6px; margin-top: 3px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--dark); font-weight: 600; }
.heat { display: grid; grid-template-columns: 28px repeat(5, 1fr); gap: 4px; }
.heat div { aspect-ratio: 1.6; border-radius: 8px; display: grid; place-items: center; font-family: var(--mono); font-weight: 700; cursor: pointer; color: var(--dark); }
.heat .ax { background: none !important; color: var(--muted); font-size: 11px; cursor: default; }
.kanban { display: grid; grid-template-columns: repeat(6, minmax(200px, 1fr)); gap: 12px; overflow-x: auto; }
.kcol { background: var(--card-2); border-radius: var(--r-lg); padding: 12px; min-height: 200px; }
.kcard { background: var(--card); border: 1px solid var(--line); border-radius: var(--r-md); padding: 10px; margin-top: 8px; cursor: pointer; }
.login { min-height: 100vh; display: grid; place-items: center; padding: 16px; }
.login .card { width: 100%; max-width: 420px; padding: 32px; }
.report-doc { background: #fff; color: #0b2530; border-radius: var(--r-lg); padding: 36px; }
.report-doc h1, .report-doc h2 { color: #062C36; } .report-doc h2 { font-size: 17px; margin: 26px 0 10px; border-bottom: 2px solid #A2F4B3; padding-bottom: 4px; }
.report-doc table { width: 100%; border-collapse: collapse; font-size: 12px; } .report-doc th, .report-doc td { border-bottom: 1px solid #e5e7eb; padding: 6px; text-align: left; }
.report-doc .kp { display: grid; grid-template-columns: repeat(4, 1fr); gap: 10px; } .report-doc .kp div { background: #F3F7F5; border-radius: 10px; padding: 10px; }
.report-doc .kp b { display: block; font-family: var(--mono); font-size: 18px; }

@media (max-width: 1200px) { .g4 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g3 { grid-template-columns: repeat(2, minmax(0, 1fr)); } .g-2-1 { grid-template-columns: 1fr; } }
@media (max-width: 900px) {
  .layout { grid-template-columns: 1fr; margin-top: 16px; }
  .sidebar { display: none; position: fixed; inset: 0 30% 0 0; top: 0; max-height: none; z-index: 60; border-radius: 0; }
  .sidebar.open { display: flex; }
  .menu-toggle { display: grid; }
  .topbar .pills { display: none; } .brand { min-width: 0; } .brand span { display: none; }
  .mobile-pills { display: flex !important; margin-top: 12px; }
  .hide-sm { display: none !important; }
}
@media (max-width: 640px) {
  .g4, .g3, .g2 { grid-template-columns: 1fr; } .form { grid-template-columns: 1fr; } h1 { font-size: 24px; }
  .shell { padding: 10px; } .card { padding: 16px; } .tablewrap { margin: 0 -16px; padding: 0 16px; }
  .cal .day { min-height: 70px; } .ev { font-size: 9px; } .kpi .big { font-size: 24px; } .report-doc { padding: 18px; } .report-doc .kp { grid-template-columns: 1fr 1fr; }
}
.mobile-pills { display: none; }
@media print {
  body { background: #fff; color: #000; } .topbar, .sidebar, .noprint, .toasts { display: none !important; }
  .layout { display: block; margin: 0; } .card { break-inside: avoid; border-color: #ddd; } .report-doc { padding: 0; }
}

/* ===== v1.5 layout refinements: fluid type, fit-to-height collapsible sidebar, fitting top bar, tidy cards ===== */
body { font-size: clamp(12.5px, 0.3vw + 9.5px, 14px); }
h1 { font-size: clamp(21px, 1.2vw + 12px, 30px); overflow-wrap: anywhere; }
h2 { font-size: clamp(16px, 0.5vw + 11px, 20px); } h3 { font-size: clamp(14px, 0.25vw + 11px, 16px); }
.clamp1 { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }

/* cards wrap their content; grids reflow instead of overflowing */
.card { overflow-wrap: anywhere; padding: clamp(14px, 1.3vw, 22px); }
.card-head > * { min-width: 0; }
.g4 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 210px), 1fr)); }
.g3 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr)); }
.g2 { grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr)); }
.grid { gap: clamp(12px, 1.3vw, 20px); }
.kpi .big { font-size: clamp(20px, 1vw + 12px, 30px); line-height: 1.15; overflow-wrap: anywhere; margin: 8px 0 10px; }
.kpi .caps { overflow-wrap: anywhere; }
.stats { grid-template-columns: repeat(auto-fit, minmax(62px, 1fr)); }
.tag { white-space: normal; max-width: 100%; overflow-wrap: anywhere; text-align: left; line-height: 1.35; }
.t .tag, .pill .tag { white-space: nowrap; }
.list-row > * { min-width: 0; }
.insight, .alert { overflow-wrap: anywhere; }
.pagehead > div:first-child { min-width: 0; flex: 1 1 320px; }

/* responsive buttons */
.btn { font-size: clamp(12px, 0.2vw + 10px, 13px); padding: clamp(7px, 0.5vw, 10px) clamp(10px, 0.9vw, 16px); min-height: 34px; justify-content: center; }
.btn.sm { min-height: 28px; padding: 5px 10px; }
.actions { flex-wrap: wrap; }
.iconbtn { width: clamp(36px, 2.6vw, 42px); height: clamp(36px, 2.6vw, 42px); }
@media (max-width: 520px) { .pagehead .actions { width: 100%; } .pagehead .actions > .btn, .pagehead .actions > a.btn { flex: 1 1 auto; } }

/* top bar: everything fits — labels shorten, then become icons */
.topbar { gap: clamp(6px, 0.7vw, 14px); padding: clamp(8px, 0.8vw, 12px) clamp(10px, 1vw, 16px); }
.brand { min-width: 0; flex: 0 1 auto; gap: 10px; } .brand img { width: clamp(36px, 2.8vw, 44px); height: clamp(36px, 2.8vw, 44px); }
.brand b { font-size: clamp(14px, 0.3vw + 10px, 16px); white-space: nowrap; }
.pills { flex: 0 1 auto; min-width: 0; }
.pill { padding: clamp(6px, 0.5vw, 8px) clamp(8px, 0.8vw, 14px); font-size: clamp(12px, 0.2vw + 10px, 14px); gap: 6px; }
.lbl-short { display: none; }
.topbtn { flex: none; }
@media (max-width: 1560px) { .pill .lbl-full { display: none; } .pill .lbl-short { display: inline; } }
@media (max-width: 1320px) { .topbtn .lbl-full { display: none; } .topbtn .lbl-short { display: inline; } .brand span { display: none; } }
@media (max-width: 1080px) { .pill .dot { display: none; } }
@media (max-width: 640px) { .topbtn .lbl-short { display: none; } .topbtn { padding: 8px 10px; } .brand b { display: none; } }

/* sidebar: fits the viewport height (no scrolling) and collapses to icons */
.layout { transition: grid-template-columns .2s ease; grid-template-columns: clamp(210px, 16vw, 250px) minmax(0, 1fr); gap: clamp(14px, 1.5vw, 24px); }
.layout.collapsed { grid-template-columns: 72px minmax(0, 1fr); }
.sidebar { top: 92px; height: calc(100vh - 108px); max-height: none; overflow: hidden; padding: clamp(6px, 1vh, 14px) 10px; gap: 0; }
.navlist { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.nav { padding: clamp(2px, 0.55vh, 8px) 12px; font-size: clamp(11.5px, 1.45vh, 14px); gap: 10px; min-height: 0; flex: 0 1 auto; line-height: 1.3; }
.nav svg { width: clamp(15px, 2vh, 18px); height: clamp(15px, 2vh, 18px); }
.nav .lbl { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.sidebar .caps { padding: clamp(3px, 0.9vh, 12px) 12px clamp(1px, 0.35vh, 6px); font-size: clamp(9px, 1.15vh, 11px); flex: none; }
.collapse-btn { color: var(--text-2); font-size: 12px; flex: none; margin-bottom: 2px; }
.usercard { margin-top: clamp(4px, 1vh, 16px); padding: clamp(6px, 1vh, 12px); flex: none; }
.avatar { flex: none; overflow: hidden; } img.avatar { display: block; background: var(--card-2); }
.avatar-wrap { position: relative; display: inline-flex; border-radius: 50%; }
.avatar-edit { position: absolute; right: -2px; bottom: -2px; width: 16px; height: 16px; border-radius: 50%; background: var(--gold); color: var(--dark); display: grid; place-items: center; opacity: 0; transition: opacity .15s; }
.avatar-wrap:hover .avatar-edit { opacity: 1; }
@media (max-height: 760px) { .sidebar .caps { display: none; } .navlist { justify-content: space-evenly; } }
@media (max-height: 600px) { .uc-links { display: none; } }
.sidebar.mini { padding: 10px 8px; align-items: center; }
.sidebar.mini .navlist { width: 100%; align-items: center; }
.sidebar.mini .nav { justify-content: center; padding-left: 0; padding-right: 0; width: 46px; }
.sidebar.mini .nav .lbl, .sidebar.mini .uc-body { display: none; }
.sidebar.mini .caps { font-size: 0; padding: 0; margin: clamp(3px, 0.8vh, 8px) 10px; border-top: 1px solid var(--line); width: 36px; align-self: center; }
.sidebar.mini .usercard { padding: 6px; justify-content: center; background: none; }
@media (max-width: 900px) { .layout, .layout.collapsed { grid-template-columns: 1fr; } .sidebar { height: auto; top: 0; } .sidebar.open { height: 100vh; } .collapse-btn { display: none; } }

/* staff directory */
.staff-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.staff-card { cursor: pointer; display: flex; flex-direction: column; gap: 10px; transition: border-color .15s, transform .15s; }
.staff-card:hover { border-color: var(--lime); transform: translateY(-1px); }
.staff-meta { display: grid; gap: 6px; }
.staff-meta a, .staff-meta span { display: flex; align-items: center; gap: 8px; color: var(--text-2); min-width: 0; }
.staff-meta svg { flex: none; }
.tablewrap { margin: 0 calc(-1 * clamp(14px, 1.3vw, 22px)); padding: 0 clamp(14px, 1.3vw, 22px); }

/* ===== v1.6: visible selections, chips, checklists, filter bar ===== */
select.input option, select.input optgroup { background: var(--card); color: var(--text); }
select.input optgroup { font-weight: 700; color: var(--text-2); }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { border: 1px solid var(--line); background: var(--card-2); color: var(--text); border-radius: 999px; padding: 6px 12px; font-size: 12.5px; cursor: pointer; font-weight: 500; }
.chip:hover { border-color: var(--cyan); } .chip.on { background: var(--lime); color: var(--dark); border-color: transparent; font-weight: 700; }
.checklist { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 6px 14px; max-height: 220px; overflow-y: auto; padding: 8px 10px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-md); }
.checklist .check { color: var(--text); font-size: 13px; }
.locpick { display: flex; flex-wrap: wrap; gap: 6px; } .locpick select { flex: 1 1 140px; min-width: 0; }
.locpick.compact select { flex: 0 1 150px; padding: 7px 10px; font-size: 12.5px; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 10px; padding: 8px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r-lg); }
.filterbar select { padding: 7px 10px; font-size: 12.5px; }
.filterbar .fl-label { font-size: 11px; font-weight: 600; letter-spacing: .05em; text-transform: uppercase; color: var(--text-2); }
.filterbar.active { border-color: var(--gold); }
.filter-note { font-size: 12px; color: var(--gold); margin-top: -8px; margin-bottom: 12px; }
.brief { display: grid; gap: 4px; font-size: 12.5px; color: var(--text-2); }
.brief b { color: var(--text); font-weight: 600; }
.group-title { display: flex; align-items: center; gap: 10px; margin: 26px 0 12px; }
.tree { display: grid; gap: 4px; } .tree-node { display: flex; align-items: center; gap: 8px; padding: 6px 10px; border-radius: 10px; }
.tree-node:hover { background: var(--hover); } .tree-kids { margin-left: 18px; border-left: 1px dashed var(--line); padding-left: 10px; }
.demobar { display: flex; height: 14px; border-radius: 8px; overflow: hidden; margin: 10px 0; }
.demobar i { display: block; height: 100%; }
@media print { .filterbar { display: flex !important; border: 0; padding: 0; } .filterbar select, .filterbar button { display: none; } }
.print-only { display: none; } @media print { .print-only { display: inline; } }
.clamp3{display:-webkit-box;-webkit-line-clamp:3;-webkit-box-orient:vertical;overflow:hidden}

/* ===== v1.7 layout: full-height grouped sidebar + content column (reference: grouped dark sidebar) ===== */
.app2 { --sw: clamp(232px, 17vw, 268px); display: grid; grid-template-columns: var(--sw) minmax(0, 1fr); min-height: 100vh; transition: grid-template-columns .2s ease; }
.app2.mini { --sw: 76px; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 10px; padding: 18px 12px 14px; background: linear-gradient(180deg, color-mix(in srgb, var(--card) 92%, #000) 0%, var(--bg) 100%); border-right: 1px solid var(--line); z-index: 50; min-width: 0; }
.side-brand { display: flex; align-items: center; gap: 8px; padding: 0 4px 10px; border-bottom: 1px solid var(--line); }
.side-brand .brand { flex: 1; min-width: 0; cursor: pointer; display: flex; align-items: center; gap: 10px; }
.side-brand .brand img { width: 36px; height: 36px; border-radius: 50%; flex: none; }
.side-brand .brand b { font-size: 17px; letter-spacing: -.01em; white-space: nowrap; } .side-brand .brand span { display: block; font-size: 11px; color: var(--text-2); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.sqbtn { width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line); background: rgba(255,255,255,.04); color: var(--text-2); display: grid; place-items: center; cursor: pointer; flex: none; }
.sqbtn:hover { color: var(--text); background: var(--hover); }
.side-groups { flex: 1 1 auto; min-height: 0; overflow-y: auto; scrollbar-width: none; display: flex; flex-direction: column; gap: 2px; }
.side-groups::-webkit-scrollbar { display: none; }
.grp-head { display: flex; align-items: center; gap: 6px; width: 100%; border: 0; background: none; color: var(--muted); cursor: pointer; padding: 12px 10px 6px; font: 600 10.5px/1 var(--sans); letter-spacing: .09em; text-transform: uppercase; }
.grp-head .lbl { flex: 1; text-align: left; } .grp-head:hover { color: var(--text-2); }
.grp-head svg { transition: transform .18s ease; } .grp.closed .grp-head svg { transform: rotate(-90deg); }
.grp-items { display: grid; grid-template-rows: 1fr; transition: grid-template-rows .2s ease; } .grp-items > * { min-height: 0; }
.grp.closed .grp-items { display: none; }
.nav2 { display: flex; align-items: center; gap: 11px; width: 100%; border: 0; background: none; color: var(--text-2); cursor: pointer; padding: 6px 8px; border-radius: 12px; font: 500 13.5px/1.2 var(--sans); text-align: left; position: relative; }
.nav2 .ni { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: rgba(255,255,255,.04); border: 1px solid var(--line); flex: none; color: var(--text-2); }
.nav2:hover { color: var(--text); background: rgba(255,255,255,.04); }
.nav2.on { color: var(--text); background: linear-gradient(180deg, rgba(255,255,255,.11), rgba(255,255,255,.04)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 8px 20px rgba(0,0,0,.22); }
.nav2.on .ni { background: #fff; color: var(--dark); border-color: transparent; }
.nav2 .lbl { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nb { font: 600 10.5px/1 var(--mono); padding: 4px 7px; border-radius: 999px; border: 1px solid var(--line); background: rgba(255,255,255,.05); color: var(--text); flex: none; }
.nav2.on .nb { background: var(--lime); color: var(--dark); border-color: transparent; }
.side-promo { display: flex; gap: 10px; align-items: center; padding: 12px; border-radius: 14px; cursor: pointer; background: radial-gradient(120% 140% at 0% 0%, rgba(162,244,179,.16), transparent 60%), rgba(255,255,255,.04); border: 1px solid var(--line); }
.side-promo .ni { width: 30px; height: 30px; border-radius: 9px; display: grid; place-items: center; background: var(--lime); color: var(--dark); flex: none; }
.side-promo b { display: block; font-size: 13px; } .side-promo span { font-size: 11px; color: var(--text-2); }
.side .usercard { margin-top: 0; padding: 10px; }
.app2.mini .side .lbl, .app2.mini .grp-head .lbl, .app2.mini .side-brand .brand .lbl, .app2.mini .uc-links, .app2.mini .grp-head .nb { display: none; }
.app2.mini .side-brand { flex-direction: column; gap: 10px; } .app2.mini .grp-head { justify-content: center; padding: 10px 0 4px; }
.app2.mini .grp-head::before { content: ''; width: 18px; height: 1px; background: var(--line); }
.app2.mini .nav2 { justify-content: center; padding: 5px 0; } .app2.mini .nav2 .nb { position: absolute; top: 0; right: 6px; padding: 2px 5px; font-size: 9px; }
.app2.mini .side-promo, .app2.mini .usercard { justify-content: center; padding: 8px 0; background: none; border-color: transparent; }
.content { min-width: 0; padding: 14px clamp(12px, 1.6vw, 26px) 28px; display: flex; flex-direction: column; }
.topbar2 { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: clamp(8px, 1vw, 14px); padding: 10px 0; margin-bottom: 6px; background: color-mix(in srgb, var(--bg) 82%, transparent); backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.crumbs { display: flex; align-items: baseline; gap: 6px; white-space: nowrap; font-size: 14px; min-width: 0; } .crumbs .sep { color: var(--muted); } .crumbs b { font-weight: 600; }
.topbar2 .pills { background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 999px; padding: 3px; overflow: hidden; min-width: 0; }
.actgroup { display: flex; align-items: center; gap: 6px; padding: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); flex: none; }
.actgroup .iconbtn { width: 36px; height: 36px; } .actgroup .btn { padding: 8px 14px; }
.content .filterbar { margin: 8px 0 16px; }
.content .main { flex: 1; }
.scrim { position: fixed; inset: 0; background: rgba(0,0,0,.45); z-index: 55; }
.app2 .menu-toggle { display: none; }
@media (max-width: 1280px) { .crumbs .sub, .crumbs .sep { display: none; } }
@media (max-width: 1100px) { .topbar2 .pills { display: none; } .app2 .mobile-pills { display: flex !important; margin: 6px 0 0; } }
@media (max-width: 900px) {
  .app2, .app2.mini { grid-template-columns: minmax(0, 1fr); }
  .side { position: fixed; left: 0; top: 0; bottom: 0; width: min(300px, 86vw); transform: translateX(-102%); transition: transform .2s ease; z-index: 60; }
  .side.open { transform: none; }
  .app2.mini .side .lbl, .app2.mini .grp-head .lbl, .app2.mini .side-brand .brand .lbl, .app2.mini .uc-links { display: revert; }
  .app2 .menu-toggle { display: grid; }
}
@media (max-width: 560px) { .actgroup .btn .lbl-full { display: none; } .crumbs { display: none; } }
@media print { .side, .topbar2, .scrim { display: none !important; } .app2 { display: block; } .content { padding: 0; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; animation-duration: .001ms !important; animation-iteration-count: 1 !important; transition-duration: .001ms !important; } }
[data-theme="light"] .side { background: linear-gradient(180deg, var(--card) 0%, var(--card-2) 100%); }
[data-theme="light"] .nav2.on { background: #fff; box-shadow: 0 6px 16px rgba(0,0,0,.08); } [data-theme="light"] .nav2.on .ni { background: var(--dark); color: #fff; }
[data-theme="light"] .nav2 .ni, [data-theme="light"] .actgroup, [data-theme="light"] .topbar2 .pills, [data-theme="light"] .nb { background: rgba(0,0,0,.03); }
.actgroup .topbtn .lbl-full { display: inline; } .side-brand .brand b { display: block !important; } .side-brand .brand span { display: block; }
@media (max-width: 560px) { .actgroup .topbtn .lbl-full { display: none; } }
.remq td { vertical-align: top; }
.pagehead { align-items: center; margin: 4px 0 18px; } .pagehead h1 { margin: 0 0 4px; }
.pagehead > .actions:not(:empty) { padding: 4px; gap: 4px; border-radius: 999px; background: rgba(255,255,255,.04); border: 1px solid var(--line); flex-wrap: wrap; }
.pagehead > .actions .btn { padding: 8px 14px; } .pagehead > .actions .tabs { margin: 0; }
[data-theme="light"] .pagehead > .actions:not(:empty) { background: rgba(0,0,0,.03); }
@media (max-width: 520px) { .pagehead > .actions:not(:empty) { border-radius: 18px; } }
/* fit all groups to the viewport height without scrolling */
.nav2 { padding: clamp(1px, .28vh, 6px) 8px; font-size: clamp(12px, 1.45vh, 13.5px); }
.nav2 .ni { width: clamp(22px, 2.65vh, 30px); height: clamp(22px, 2.65vh, 30px); border-radius: 8px; }
.grp-head { padding: clamp(6px, 1.1vh, 12px) 10px clamp(3px, .5vh, 6px); }
.side { gap: clamp(6px, 1vh, 10px); padding-top: clamp(10px, 1.8vh, 18px); padding-bottom: clamp(8px, 1.4vh, 14px); }
.side-brand { padding-bottom: clamp(6px, 1vh, 10px); }
.side .usercard { padding: clamp(6px, 1vh, 10px); } .side .uc-links { margin-top: 2px !important; }
@media (max-height: 860px) { .side-promo { display: none; } }
@media (max-height: 1000px) { .side-promo { display: none; } }
/* ===== v1.8: sticky header, responsive top bar, tabs never overflow ===== */
html, body { overflow-x: clip; }
.stickyhead { position: sticky; top: 0; z-index: 35; margin: -14px calc(-1 * clamp(12px, 1.6vw, 26px)) 14px; padding: 8px clamp(12px, 1.6vw, 26px) 10px; background: color-mix(in srgb, var(--bg) 88%, transparent); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.stickyhead .topbar2 { position: static; background: none; backdrop-filter: none; border-bottom: 0; margin: 0; padding: 4px 0 8px; flex-wrap: wrap; row-gap: 8px; }
.stickyhead .filterbar { margin: 0; }
.topbar2 .crumbs { flex: 0 1 auto; overflow: hidden; text-overflow: ellipsis; }
.topbar2 .pills { flex: 1 1 260px; max-width: max-content; overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; }
.topbar2 .pills::-webkit-scrollbar { display: none; }
.topbar2 .spacer { flex: 1 1 0; min-width: 0; }
.actgroup { margin-left: auto; }
.filterbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.filterbar .locpick { display: flex; flex-wrap: wrap; gap: 6px; min-width: 0; }
.filterbar select.input { min-width: 0; max-width: 100%; }
.tabs { display: flex; flex-wrap: wrap; gap: 4px; max-width: 100%; width: fit-content; min-width: 0; box-sizing: border-box; }
.tabs .pill { flex: 0 1 auto; min-width: 0; max-width: 100%; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tabs:has(.pill:nth-child(5)) { border-radius: 20px; }
.main, .card, .section { min-width: 0; }
@media (max-width: 1100px) { .stickyhead .mobile-pills { overflow-x: auto; scrollbar-width: none; flex-wrap: nowrap; margin: 0 0 8px; } }
@media (max-width: 700px) { .filterbar .fl-label { display: none; } .filterbar select.input { flex: 1 1 120px; } }
/* donor packages */
.pkg-grid { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.pkg-card { display: flex; flex-direction: column; }
.pkg-items { margin: 12px 0 0; font-size: 12.5px; } .pkg-items td, .pkg-items th { padding: 7px 6px; } .num { text-align: right; }
.pkg-foot { display: flex; justify-content: space-between; gap: 12px; margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); }
.pkg-foot b { font-size: clamp(15px, 1.3vw, 19px); }
.pkg-total { display: flex; gap: 16px; flex-wrap: wrap; font-size: 13px; }
.items-ed .t td { padding: 4px; } .items-ed .tablewrap { margin: 0; }
.form label:has(.items-ed) { grid-column: 1 / -1; }
.filterbar .pills { display: flex; flex-wrap: wrap; gap: 2px; background: rgba(255,255,255,.04); border: 1px solid var(--line); border-radius: 20px; padding: 3px; min-width: 0; max-width: 100%; }
.filterbar .pills .pill { padding: 6px 12px; } .filterbar .pills .pill .lbl-full { display: inline; } .filterbar .pills .pill .lbl-short { display: none; }
.fl-sep { width: 1px; align-self: stretch; background: var(--line); margin: 0 4px; }
@media (max-width: 1100px) { .fl-sep { display: none; } }
.pkg-items { width: 100%; table-layout: fixed; } .pkg-items th:first-child { width: 40%; } .pkg-items td { white-space: normal; word-break: break-word; } .pkg-items .num { font-size: 12px; }
.stickyhead { background: var(--bg); }
@media (max-height: 840px) { .nav2 .ni { width: 20px; height: 20px; border-radius: 6px; } .nav2 { padding-top: 1px; padding-bottom: 1px; } .grp-head { padding: 5px 10px 2px; } .side .usercard .uc-body > .small.sub { display: none; } .side .usercard .uc-links { gap: 6px !important; font-size: 11px; } .side-brand .brand span { display: none; } }
.calc-val { background: transparent; border-style: dashed; font-family: var(--mono); font-weight: 600; cursor: default; }
.collapse-head { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: var(--text); cursor: pointer; padding: 0; }
.collapse-head svg, .audit-day-head svg { transition: transform .15s; } .collapse-head[aria-expanded="false"] svg, .audit-day-head[aria-expanded="false"] svg { transform: rotate(-90deg); }
.audit-day { border: 1px solid var(--line); border-radius: 14px; margin-top: 10px; overflow: hidden; }
.audit-day-head { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 14px; background: rgba(255,255,255,.03); border: 0; color: var(--text); cursor: pointer; text-align: left; }
.audit-day .tablewrap { margin: 0; }
/* donor package cards: everything wraps inside the card */
.pkg-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.pkg-card { min-width: 0; overflow: hidden; overflow-wrap: anywhere; }
.pkg-list { list-style: none; margin: 12px 0 0; padding: 0; display: grid; gap: 6px; }
.pkg-list li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 10px; padding: 8px 10px; border-radius: 10px; background: rgba(255,255,255,.03); font-size: 13px; }
.pkg-name { grid-column: 1 / -1; font-weight: 500; overflow-wrap: anywhere; }
.pkg-calc { font-size: 11.5px; color: var(--text-2); min-width: 0; overflow-wrap: anywhere; } .pkg-cost { text-align: right; font-size: 12.5px; }
.pkg-foot { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 10px 16px; }
.pkg-foot > div { min-width: 0; flex: 1 1 130px; } .pkg-foot > div:last-child { text-align: right; }
.pkg-foot b { display: block; font-size: clamp(14px, 1.2vw, 18px); overflow-wrap: anywhere; }
@media (max-width: 420px) { .pkg-foot > div:last-child { text-align: left; } }
/* ===== v2.0 themes (Opulence Classic, 001–004): tokens come from shared/themes.ts ===== */
body { background-image: var(--bg-image, none); background-attachment: fixed; }
html[data-look] .card.feat { background: var(--feat); color: var(--on-feat); } html[data-look] .card.feat .caps, html[data-look] .card.feat .sub, html[data-look] .card.feat .small { color: var(--feat-sub); }
html[data-look] .btn.gold { color: var(--on-gold); }
html[data-look] .pill.on, html[data-look] .nav2.on .ni, html[data-look] .chip[aria-checked="true"] { background: var(--sel); color: var(--on-sel); border-color: transparent; }
html[data-look] .stickyhead { background: color-mix(in srgb, var(--bg) 88%, transparent); }
html[data-look="o004"] .card, html[data-look="o004"] .side, html[data-look="o004"] .modal, html[data-look="o004"] .stickyhead, html[data-look="o003"] .card { backdrop-filter: blur(14px); -webkit-backdrop-filter: blur(14px); }
html[data-look="o004"] .modal, html[data-look="o003"] .modal { background: color-mix(in srgb, var(--bg) 92%, #fff 8%); }
html[data-look="o001"] .mono, html[data-look="o001"] .kpi .v { letter-spacing: -.02em; }
html[data-look="o003"] h1 { font-weight: 400; letter-spacing: -.02em; font-size: clamp(30px, 3.2vw, 46px); }
/* top navigation layout (Opulence 003 / 004) */
.topnav, .top-brand, .top-user { display: none; }
@media (min-width: 901px) {
  html[data-layout="top"] .app2 { grid-template-columns: minmax(0, 1fr); }
  html[data-layout="top"] .side { display: none; }
  html[data-layout="top"] .topnav { display: flex; gap: 4px; padding: 4px; border-radius: 999px; background: var(--card); border: 1px solid var(--line); flex-wrap: wrap; min-width: 0; }
  html[data-layout="top"] .top-brand { display: flex; align-items: center; gap: 10px; cursor: pointer; } html[data-layout="top"] .top-brand img { width: 38px; height: 38px; border-radius: 50%; }
  html[data-layout="top"] .top-brand b { font-size: 17px; white-space: nowrap; }
  html[data-layout="top"] .top-user { display: inline-flex; } html[data-layout="top"] .crumbs { display: none; }
  html[data-layout="top"] .content { max-width: 1600px; margin: 0 auto; width: 100%; }
}
.topnav .tn { position: relative; } .topnav .tn > button { border: 0; background: none; color: var(--text-2); padding: 8px 14px; border-radius: 999px; cursor: pointer; font: 500 13.5px/1 var(--sans); display: flex; align-items: center; gap: 6px; white-space: nowrap; }
.topnav .tn > button:hover { color: var(--text); } .topnav .tn.on > button { background: var(--sel); color: var(--on-sel); }
.tn-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 230px; background: var(--card-2); border: 1px solid var(--line); border-radius: var(--r-lg); padding: 6px; box-shadow: 0 20px 50px rgba(0,0,0,.35); z-index: 60; backdrop-filter: blur(14px); }
.tn-menu button { display: flex; align-items: center; gap: 10px; width: 100%; border: 0; background: none; color: var(--text); padding: 9px 10px; border-radius: 10px; cursor: pointer; font: 500 13.5px var(--sans); text-align: left; }
.tn-menu button:hover, .tn-menu button.on { background: var(--hover); } .tn-menu .nb { margin-left: auto; }
/* appearance / theme selector */
.theme-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; margin-top: 12px; }
.theme-card { border: 2px solid var(--line); border-radius: 18px; overflow: hidden; cursor: pointer; background: none; padding: 0; text-align: left; color: var(--text); }
.theme-card.on { border-color: var(--lime); } .theme-card .tc-body { padding: 10px 12px; } .theme-card b { display: block; font-size: 14px; } .theme-card span { font-size: 12px; color: var(--text-2); }
.tc-prev { height: 92px; display: grid; grid-template-columns: 22% 1fr; gap: 6px; padding: 8px; }
.tc-prev i { border-radius: 8px; display: block; } .tc-prev .tc-main { display: grid; grid-template-rows: 14px 1fr; gap: 6px; } .tc-prev .tc-cards { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 6px; }
.seg { display: inline-flex; padding: 3px; border-radius: 999px; background: var(--card-2); border: 1px solid var(--line); gap: 2px; }
.seg button { border: 0; background: none; color: var(--text-2); padding: 7px 14px; border-radius: 999px; cursor: pointer; font: 600 13px var(--sans); display: inline-flex; gap: 6px; align-items: center; } .seg button.on { background: var(--sel); color: var(--on-sel); }
