/* =====================================================================
   SpreadsheetPivot design system
   Navy / slate base, soft grays, teal + blue accents. Light theme.
   Public site, auth screens, client portal and admin share these tokens.
   ===================================================================== */
:root {
  --sp-navy-950: #0b1220;
  --sp-navy-900: #0f172a;
  --sp-navy-800: #1e293b;
  --sp-navy-700: #334155;
  --sp-slate-600: #475569;
  --sp-slate-500: #64748b;
  --sp-slate-300: #cbd5e1;
  --sp-slate-200: #e2e8f0;
  --sp-slate-100: #f1f5f9;
  --sp-slate-50: #f8fafc;
  --sp-teal-700: #0f766e;
  --sp-teal-600: #0d9488;
  --sp-teal-500: #14b8a6;
  --sp-teal-100: #ccfbf1;
  --sp-blue-600: #2563eb;
  --sp-blue-100: #dbeafe;
  --sp-radius: 14px;
  --sp-radius-sm: 8px;
  --sp-shadow: 0 1px 2px rgba(15,23,42,.06), 0 8px 24px rgba(15,23,42,.06);
  --sp-shadow-lg: 0 2px 4px rgba(15,23,42,.06), 0 24px 56px rgba(15,23,42,.14);
  --bs-primary: var(--sp-teal-600);
  --bs-primary-rgb: 13,148,136;
  --bs-link-color: var(--sp-teal-700);
  --bs-link-hover-color: var(--sp-teal-600);
  --bs-body-font-family: Inter, "Segoe UI Variable", "Segoe UI", system-ui, -apple-system, Roboto, "Helvetica Neue", Arial, sans-serif;
  --bs-body-color: var(--sp-navy-800);
  --bs-body-bg: #fff;
  --bs-border-color: var(--sp-slate-200);
  --bs-border-radius: var(--sp-radius-sm);
  --bs-body-font-size: 1rem;
}
html { scroll-behavior: smooth; }
body { -webkit-font-smoothing: antialiased; line-height: 1.6; }
h1, h2, h3, h4, h5, .display-1, .display-2, .display-3 { color: var(--sp-navy-900); letter-spacing: -0.02em; font-weight: 700; line-height: 1.15; }
.text-teal { color: var(--sp-teal-600) !important; }
.text-muted { color: var(--sp-slate-500) !important; }
.text-muted-light { color: #94a3b8; }
a { text-underline-offset: 3px; }
:focus-visible { outline: 3px solid var(--sp-blue-600); outline-offset: 2px; border-radius: 4px; }
.skip-link { position: absolute; left: -999px; top: 8px; background: #fff; padding: 8px 14px; border-radius: 6px; z-index: 2000; font-weight: 600; }
.skip-link:focus { left: 8px; }
::selection { background: var(--sp-teal-100); }

/* ---------- buttons ---------- */
.btn { font-weight: 600; border-radius: 10px; padding: .55rem 1.15rem; }
.btn-lg { padding: .8rem 1.6rem; font-size: 1.05rem; border-radius: 12px; }
.btn-sm { padding: .3rem .7rem; border-radius: 8px; }
.btn-accent { background: var(--sp-teal-600); border-color: var(--sp-teal-600); color: #fff; box-shadow: 0 6px 16px rgba(13,148,136,.25); }
.btn-accent:hover, .btn-accent:focus { background: var(--sp-teal-700); border-color: var(--sp-teal-700); color: #fff; }
.btn-ghost-light { color: #fff; border: 1px solid rgba(255,255,255,.35); }
.btn-ghost-light:hover { background: rgba(255,255,255,.12); color: #fff; }
.btn-outline-navy { color: var(--sp-navy-900); border: 1px solid var(--sp-slate-300); background: #fff; }
.btn-outline-navy:hover { background: var(--sp-slate-100); color: var(--sp-navy-900); }
.btn-primary { background: var(--sp-teal-600); border-color: var(--sp-teal-600); }
.btn-primary:hover { background: var(--sp-teal-700); border-color: var(--sp-teal-700); }
.btn-loading { pointer-events: none; opacity: .75; }

/* ---------- forms ---------- */
.form-control, .form-select { border-radius: 10px; border-color: var(--sp-slate-300); padding: .6rem .85rem; }
.form-control:focus, .form-select:focus { border-color: var(--sp-teal-600); box-shadow: 0 0 0 .25rem rgba(13,148,136,.18); }
.form-label { font-weight: 600; font-size: .9rem; color: var(--sp-navy-800); margin-bottom: .3rem; }
.form-text { color: var(--sp-slate-500); }
.hp-field { position: absolute !important; left: -9999px !important; height: 0; width: 0; overflow: hidden; }

/* ---------- badges ---------- */
.badge-soft { font-weight: 600; padding: .38em .7em; border-radius: 999px; letter-spacing: .01em; white-space: nowrap; }
.badge-success { background: #dcfce7; color: #166534; }
.badge-danger { background: #fee2e2; color: #991b1b; }
.badge-warning { background: #fef3c7; color: #92400e; }
.badge-info { background: var(--sp-blue-100); color: #1e40af; }
.badge-secondary { background: var(--sp-slate-100); color: var(--sp-slate-600); }

/* ---------- brand ---------- */
.brand { display: inline-flex; align-items: center; gap: .6rem; font-weight: 800; font-size: 1.2rem; letter-spacing: -.03em; color: var(--sp-navy-900); text-decoration: none; }
.brand-light, .brand-light:hover { color: #fff; }
.brand-mark { width: 34px; height: 34px; border-radius: 9px; display: inline-grid; place-items: center; background: linear-gradient(135deg, var(--sp-teal-500), var(--sp-blue-600)); color: #fff; font-size: 1rem; }

/* =====================================================================
   PUBLIC SITE
   ===================================================================== */
.site-header { background: rgba(255,255,255,.92); backdrop-filter: saturate(160%) blur(12px); border-bottom: 1px solid var(--sp-slate-200); z-index: 1030; }
.site-header .nav-link { color: var(--sp-navy-700); font-weight: 500; padding: .5rem .7rem; border-radius: 8px; }
.site-header .nav-link:hover { color: var(--sp-teal-700); background: var(--sp-slate-100); }
.site-header .nav-link.active { color: var(--sp-teal-700); }
.hero { position: relative; overflow: hidden; background: radial-gradient(1200px 500px at 85% -10%, rgba(20,184,166,.28), transparent 60%), radial-gradient(900px 500px at -10% 110%, rgba(37,99,235,.28), transparent 60%), linear-gradient(180deg, var(--sp-navy-950), var(--sp-navy-900)); color: #fff; padding: 5rem 0 6rem; }
.hero h1 { color: #fff; font-size: clamp(2.3rem, 5vw, 3.9rem); }
.hero .lead { color: #cbd5e1; font-size: 1.2rem; max-width: 40rem; }
.eyebrow { display: inline-block; font-size: .8rem; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--sp-teal-500); margin-bottom: 1rem; }
.hero .eyebrow { background: rgba(20,184,166,.12); border: 1px solid rgba(20,184,166,.35); padding: .35rem .8rem; border-radius: 999px; }
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; margin-top: 2rem; color: #cbd5e1; font-size: .95rem; }
.trust-row span i { color: var(--sp-teal-500); margin-right: .4rem; }
.section { padding: 5rem 0; }
.section-alt { background: var(--sp-slate-50); border-top: 1px solid var(--sp-slate-200); border-bottom: 1px solid var(--sp-slate-200); }
.section-dark { background: linear-gradient(180deg, var(--sp-navy-900), var(--sp-navy-950)); color: #cbd5e1; }
.section-dark h2, .section-dark h3 { color: #fff; }
.section-title { text-align: center; max-width: 46rem; margin: 0 auto 3rem; }
.section-title p { color: var(--sp-slate-600); font-size: 1.1rem; }
.section-dark .section-title p { color: #94a3b8; }
.page-hero { background: linear-gradient(180deg, var(--sp-slate-50), #fff); border-bottom: 1px solid var(--sp-slate-200); padding: 4rem 0 3rem; }
.page-hero h1 { font-size: clamp(2rem, 4vw, 3rem); }
.page-hero .lead { color: var(--sp-slate-600); max-width: 46rem; }
.feature-card { height: 100%; background: #fff; border: 1px solid var(--sp-slate-200); border-radius: var(--sp-radius); padding: 1.75rem; transition: transform .2s, box-shadow .2s, border-color .2s; }
.feature-card:hover { transform: translateY(-3px); box-shadow: var(--sp-shadow); border-color: var(--sp-teal-100); }
.feature-card h3 { font-size: 1.15rem; margin: 1rem 0 .5rem; }
.feature-card p { color: var(--sp-slate-600); margin: 0; }
.icon-chip { width: 46px; height: 46px; border-radius: 12px; display: inline-grid; place-items: center; background: var(--sp-teal-100); color: var(--sp-teal-700); font-size: 1.35rem; }
.icon-chip.blue { background: var(--sp-blue-100); color: var(--sp-blue-600); }
.icon-chip.red { background: #fee2e2; color: #b91c1c; }
.step { position: relative; padding-left: 4rem; padding-bottom: 2rem; }
.step:not(:last-child)::before { content: ""; position: absolute; left: 20px; top: 44px; bottom: 4px; width: 2px; background: var(--sp-slate-200); }
.step-num { position: absolute; left: 0; top: 0; width: 42px; height: 42px; border-radius: 50%; display: grid; place-items: center; background: var(--sp-navy-900); color: #fff; font-weight: 700; }
.step h3 { font-size: 1.15rem; margin-bottom: .25rem; }
.step p { color: var(--sp-slate-600); margin: 0; }
.check-list { list-style: none; padding: 0; margin: 0; }
.check-list li { position: relative; padding-left: 2rem; margin-bottom: .8rem; }
.check-list li::before { content: "\F26A"; font-family: "bootstrap-icons"; position: absolute; left: 0; color: var(--sp-teal-600); font-size: 1.2rem; line-height: 1.4; }
.section-dark .check-list li::before { color: var(--sp-teal-500); }
.price-card { height: 100%; border: 1px solid var(--sp-slate-200); border-radius: var(--sp-radius); padding: 2rem; background: #fff; display: flex; flex-direction: column; }
.price-card.featured { border: 2px solid var(--sp-teal-600); box-shadow: var(--sp-shadow-lg); position: relative; }
.price-card .price { font-size: 2.4rem; font-weight: 800; color: var(--sp-navy-900); letter-spacing: -.03em; }
.price-card .price small { font-size: 1rem; font-weight: 500; color: var(--sp-slate-500); }
.price-label { font-size: .8rem; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--sp-slate-500); }
.option-card { height: 100%; border: 1px solid var(--sp-slate-200); border-radius: var(--sp-radius); padding: 1.75rem; background: #fff; }
.option-card .tag { display: inline-block; font-size: .8rem; font-weight: 700; color: var(--sp-teal-700); background: var(--sp-teal-100); padding: .25rem .65rem; border-radius: 999px; }
.callout { border-left: 4px solid var(--sp-teal-600); background: var(--sp-slate-50); padding: 1.25rem 1.5rem; border-radius: 0 var(--sp-radius-sm) var(--sp-radius-sm) 0; }
.cta-band { background: linear-gradient(135deg, var(--sp-teal-700), var(--sp-blue-600)); color: #fff; border-radius: 20px; padding: 3.5rem 2rem; text-align: center; }
.cta-band h2 { color: #fff; }
.cta-band p { color: #e0f2fe; }
.cta-band .btn-light { color: var(--sp-teal-700); }
.accordion-item { border-color: var(--sp-slate-200); }
.accordion-button:not(.collapsed) { color: var(--sp-teal-700); background: var(--sp-slate-50); }
.legal-body h2 { font-size: 1.3rem; margin-top: 2rem; }
.legal-body p, .legal-body li { color: var(--sp-slate-600); }
.site-footer { background: var(--sp-navy-950); color: #cbd5e1; padding: 4rem 0 2rem; }
.site-footer a { color: #cbd5e1; text-decoration: none; }
.site-footer a:hover { color: #fff; text-decoration: underline; }
.footer-h { font-size: .8rem; letter-spacing: .12em; text-transform: uppercase; color: #94a3b8; font-weight: 700; }
.footer-links li { margin-bottom: .5rem; }
.footer-blurb { color: #94a3b8; max-width: 28rem; }
.footer-bottom { margin-top: 3rem; padding-top: 1.5rem; border-top: 1px solid var(--sp-navy-800); font-size: .9rem; color: #94a3b8; }

/* dashboard mockup (hero) */
.mock { background: #fff; border-radius: 16px; box-shadow: var(--sp-shadow-lg); border: 1px solid rgba(255,255,255,.1); overflow: hidden; color: var(--sp-navy-800); }
.mock-bar { display: flex; align-items: center; gap: .4rem; padding: .7rem 1rem; background: var(--sp-slate-100); border-bottom: 1px solid var(--sp-slate-200); }
.mock-bar i { width: 10px; height: 10px; border-radius: 50%; background: var(--sp-slate-300); display: inline-block; }
.mock-tabs { display: flex; gap: .25rem; padding: .6rem 1rem 0; border-bottom: 1px solid var(--sp-slate-200); }
.mock-tab { border: 0; background: none; padding: .5rem .9rem; font-weight: 600; font-size: .85rem; color: var(--sp-slate-500); border-bottom: 2px solid transparent; }
.mock-tab.active { color: var(--sp-teal-700); border-color: var(--sp-teal-600); }
.mock-pane { padding: 1.1rem; display: none; }
.mock-pane.active { display: block; }
.kpi { border: 1px solid var(--sp-slate-200); border-radius: 12px; padding: .8rem 1rem; background: #fff; }
.kpi .v { font-size: 1.5rem; font-weight: 800; letter-spacing: -.03em; color: var(--sp-navy-900); line-height: 1.1; }
.kpi .l { font-size: .75rem; color: var(--sp-slate-500); text-transform: uppercase; letter-spacing: .08em; font-weight: 600; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 110px; padding-top: 8px; }
.bars span { flex: 1; background: linear-gradient(180deg, var(--sp-teal-500), var(--sp-teal-700)); border-radius: 6px 6px 0 0; min-height: 8px; }
.bars span:nth-child(odd) { background: linear-gradient(180deg, #60a5fa, var(--sp-blue-600)); }
.mini-table { width: 100%; font-size: .82rem; }
.mini-table td, .mini-table th { padding: .4rem .5rem; border-bottom: 1px solid var(--sp-slate-100); }
.mini-table th { color: var(--sp-slate-500); font-weight: 600; font-size: .72rem; text-transform: uppercase; letter-spacing: .06em; }

/* =====================================================================
   AUTH
   ===================================================================== */
.site-auth { min-height: 100vh; background: radial-gradient(900px 500px at 100% 0, rgba(20,184,166,.18), transparent 60%), radial-gradient(800px 500px at 0 100%, rgba(37,99,235,.14), transparent 60%), var(--sp-slate-100); }
.auth-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 2rem 1rem; }
.auth-card { width: 100%; max-width: 440px; background: #fff; border: 1px solid var(--sp-slate-200); border-radius: 18px; padding: 2.25rem; box-shadow: var(--sp-shadow-lg); }
.auth-card .flash-stack { padding: 0; }
.auth-foot { margin-top: 1.25rem; font-size: .9rem; }

/* =====================================================================
   APP SHELL (portal + admin)
   ===================================================================== */
.app-body { background: var(--sp-slate-100); min-height: 100vh; }
.app-shell { display: flex; min-height: 100vh; }
.app-sidebar { width: 264px; flex: 0 0 264px; background: var(--sp-navy-900); color: #cbd5e1; display: flex; flex-direction: column; position: sticky; top: 0; height: 100vh; overflow-y: auto; z-index: 1040; }
.app-sidebar .side-brand { padding: 1.1rem 1.25rem; border-bottom: 1px solid rgba(255,255,255,.08); }
.side-group { padding: 1rem .75rem .25rem; }
.side-group-title { font-size: .68rem; letter-spacing: .14em; text-transform: uppercase; color: #64748b; font-weight: 700; padding: 0 .6rem .35rem; }
.side-link { display: flex; align-items: center; gap: .7rem; padding: .5rem .7rem; margin-bottom: 2px; border-radius: 9px; color: #cbd5e1; text-decoration: none; font-size: .93rem; font-weight: 500; }
.side-link i { width: 1.25rem; text-align: center; color: #94a3b8; font-size: 1.05rem; }
.side-link:hover { background: rgba(255,255,255,.07); color: #fff; }
.side-link.active { background: rgba(20,184,166,.18); color: #fff; }
.side-link.active i { color: var(--sp-teal-500); }
.side-link .count { margin-left: auto; background: var(--sp-teal-600); color: #fff; font-size: .7rem; border-radius: 999px; padding: .1rem .5rem; font-weight: 700; }
.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.app-topbar { background: #fff; border-bottom: 1px solid var(--sp-slate-200); padding: .6rem 1.25rem; display: flex; align-items: center; gap: 1rem; position: sticky; top: 0; z-index: 1030; }
.app-content { padding: 1.5rem; flex: 1; }
.app-topbar > * { min-width: 0; }
.org-pill { max-width: 42vw; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; display: inline-block; }
@media (max-width: 575.98px) { .app-topbar { padding: .5rem .75rem; gap: .5rem; } .app-topbar .btn { padding-left: .6rem; padding-right: .6rem; } }
.page-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 1rem; margin-bottom: 1.25rem; }
.page-head h1 { font-size: 1.55rem; margin: 0; }
.breadcrumb { font-size: .85rem; margin-bottom: .35rem; }
.card-sp { background: #fff; border: 1px solid var(--sp-slate-200); border-radius: var(--sp-radius); box-shadow: 0 1px 2px rgba(15,23,42,.04); }
.card-sp .card-h { padding: 1rem 1.25rem; border-bottom: 1px solid var(--sp-slate-200); display: flex; align-items: center; justify-content: space-between; gap: .75rem; font-weight: 700; color: var(--sp-navy-900); }
.card-sp .card-b { padding: 1.25rem; }
.stat { padding: 1.1rem 1.25rem; height: 100%; }
.stat .label { font-size: .75rem; letter-spacing: .08em; text-transform: uppercase; font-weight: 700; color: var(--sp-slate-500); }
.stat .value { font-size: 1.7rem; font-weight: 800; color: var(--sp-navy-900); letter-spacing: -.03em; line-height: 1.2; }
.stat .sub { font-size: .85rem; color: var(--sp-slate-500); }
.stat .icon-chip { float: right; }
.progress { height: .65rem; border-radius: 999px; background: var(--sp-slate-100); }
.progress-bar { background: linear-gradient(90deg, var(--sp-teal-500), var(--sp-teal-700)); }
.progress-stack .progress-bar.reserved { background: repeating-linear-gradient(45deg, #fbbf24, #fbbf24 6px, #fcd34d 6px, #fcd34d 12px); }
.progress-stack .progress-bar.used { background: linear-gradient(90deg, #64748b, #475569); }
.table-sp { margin: 0; }
.table-sp thead th { background: var(--sp-slate-50); font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sp-slate-500); font-weight: 700; border-bottom: 1px solid var(--sp-slate-200); white-space: nowrap; }
.table-sp th:first-child, .table-sp td:first-child { padding-left: 1.25rem; }
.table-sp th:last-child, .table-sp td:last-child { padding-right: 1.25rem; }
.table-sp tbody td { vertical-align: middle; font-size: .93rem; padding-top: .7rem; padding-bottom: .7rem; }
.swatch { display: inline-block; width: .8rem; height: .8rem; border-radius: 3px; vertical-align: -1px; margin-right: .15rem; }
.table-sp tbody tr:hover { background: var(--sp-slate-50); }
.table-sp a.row-link { font-weight: 600; text-decoration: none; }
.empty { text-align: center; padding: 3rem 1rem; color: var(--sp-slate-500); }
.empty i { font-size: 2.5rem; color: var(--sp-slate-300); display: block; margin-bottom: .5rem; }
.filter-bar { display: flex; flex-wrap: wrap; gap: .6rem; align-items: end; padding: 1rem 1.25rem; border-bottom: 1px solid var(--sp-slate-200); background: var(--sp-slate-50); border-radius: var(--sp-radius) var(--sp-radius) 0 0; }
.filter-bar .form-control, .filter-bar .form-select { font-size: .9rem; padding: .4rem .65rem; }
.timeline { list-style: none; padding: 0; margin: 0; }
.timeline li { position: relative; padding: 0 0 1.1rem 1.6rem; font-size: .9rem; }
.timeline li::before { content: ""; position: absolute; left: 4px; top: 6px; width: 10px; height: 10px; border-radius: 50%; background: var(--sp-teal-600); }
.timeline li::after { content: ""; position: absolute; left: 8px; top: 18px; bottom: 0; width: 2px; background: var(--sp-slate-200); }
.timeline li:last-child::after { display: none; }
.comment { border: 1px solid var(--sp-slate-200); border-radius: 12px; padding: .9rem 1rem; background: #fff; margin-bottom: .75rem; }
.comment.internal { background: #fffbeb; border-color: #fde68a; }
.comment .who { font-weight: 700; font-size: .9rem; }
.comment .when { color: var(--sp-slate-500); font-size: .8rem; }
.kv { display: grid; grid-template-columns: 11rem 1fr; gap: .45rem 1rem; font-size: .93rem; }
.kv dt { color: var(--sp-slate-500); font-weight: 600; }
.kv dd { margin: 0; }
.ledger-box { background: var(--sp-slate-50); border: 1px solid var(--sp-slate-200); border-radius: 12px; padding: 1rem 1.25rem; }
.ledger-box .row-l { display: flex; justify-content: space-between; padding: .25rem 0; font-variant-numeric: tabular-nums; }
.ledger-box .row-l.total { border-top: 1px solid var(--sp-slate-300); margin-top: .4rem; padding-top: .6rem; font-weight: 800; }
.dropzone { border: 2px dashed var(--sp-slate-300); border-radius: 14px; padding: 2rem 1rem; text-align: center; background: var(--sp-slate-50); transition: border-color .2s, background .2s; cursor: pointer; }
.dropzone.drag { border-color: var(--sp-teal-600); background: #f0fdfa; }
.upload-item { display: flex; align-items: center; gap: .75rem; padding: .5rem 0; font-size: .9rem; }
.upload-item .progress { flex: 1; height: .5rem; }
.kanban { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(250px, 1fr); gap: 1rem; overflow-x: auto; padding-bottom: 1rem; align-items: start; }
.kan-col { background: #e8edf3; border-radius: 14px; padding: .75rem; min-height: 160px; }
.kan-col h2 { font-size: .8rem; text-transform: uppercase; letter-spacing: .08em; color: var(--sp-slate-600); display: flex; justify-content: space-between; margin: 0 0 .65rem; }
.kan-col.drop { outline: 2px dashed var(--sp-teal-600); background: #ddf4f0; }
.kan-card { background: #fff; border: 1px solid var(--sp-slate-200); border-radius: 10px; padding: .7rem .8rem; margin-bottom: .55rem; font-size: .88rem; box-shadow: 0 1px 2px rgba(15,23,42,.05); cursor: grab; }
.kan-card.dragging { opacity: .5; }
.kan-card a { font-weight: 700; text-decoration: none; color: var(--sp-navy-900); }
.toast-host { position: fixed; right: 1rem; bottom: 1rem; z-index: 3000; display: flex; flex-direction: column; gap: .5rem; }
.cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 1px; background: var(--sp-slate-200); border: 1px solid var(--sp-slate-200); border-radius: 12px; overflow: hidden; }
.cal-cell { background: #fff; min-height: 96px; padding: .35rem .45rem; font-size: .78rem; }
.cal-cell.muted { background: var(--sp-slate-50); color: var(--sp-slate-300); }
.cal-cell .d { font-weight: 700; color: var(--sp-slate-600); }
.cal-ev { display: block; background: var(--sp-teal-100); color: var(--sp-teal-700); border-radius: 5px; padding: 1px 5px; margin-top: 2px; text-decoration: none; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.cal-head { background: var(--sp-slate-100); text-align: center; font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .08em; padding: .4rem; color: var(--sp-slate-500); }
.notif { border-bottom: 1px solid var(--sp-slate-100); padding: .65rem 1rem; font-size: .88rem; }
.notif.unread { background: #f0fdfa; }
.org-pill { border: 1px solid var(--sp-slate-200); border-radius: 999px; padding: .25rem .8rem; font-weight: 600; font-size: .88rem; background: var(--sp-slate-50); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: .85em; }
.pre-wrap { white-space: pre-wrap; word-break: break-word; }

@media (max-width: 991.98px) {
  .app-sidebar { position: fixed; left: -280px; transition: left .25s ease; box-shadow: var(--sp-shadow-lg); }
  .app-sidebar.open { left: 0; }
  .sidebar-scrim { position: fixed; inset: 0; background: rgba(15,23,42,.45); z-index: 1035; display: none; }
  .sidebar-scrim.open { display: block; }
  .app-content { padding: 1rem; }
  .hero { padding: 3.5rem 0 4rem; }
  .section { padding: 3.5rem 0; }
  .kv { grid-template-columns: 1fr; }
  .kv dt { margin-top: .5rem; }
}
@media (prefers-reduced-motion: reduce) { * { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }
@media print { .app-sidebar, .app-topbar, .site-header, .site-footer, .btn { display: none !important; } .app-content { padding: 0; } }

/* ---- small-screen fixes (verified with a 390px overflow audit) ---- */
.kv dd, .kv dt { min-width: 0; overflow-wrap: anywhere; }
@media (max-width: 575.98px) {
  .row.g-5, .row.gx-5 { --bs-gutter-x: 1.5rem; }   /* the default 3rem gutter pulls the row 12px past a fluid container */
}
@media (max-width: 767.98px) {
  .card-sp > table.table-sp { display: block; width: 100%; overflow-x: auto; -webkit-overflow-scrolling: touch; }
}
