:root {
  color-scheme: dark;
  --bg: #101012;
  --sidebar: #141416;
  --panel: #19191c;
  --panel-2: #202024;
  --line: #2b2b31;
  --text: #f4f4f5;
  --muted: #a1a1ac;
  --accent: #fa2038;
  --accent-hover: #ff3c51;
  --accent-soft: #2c191f;
  --ok: #79d9b0;
  --warn: #edbd6a;
  --bad: #ff8491;
  --radius: 12px;
  --sidebar-width: 246px;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { min-width: 320px; scrollbar-color: #44444d var(--bg); }
body { margin: 0; background: var(--bg); color: var(--text); font: 14px/1.55 "Segoe UI", -apple-system, BlinkMacSystemFont, Arial, sans-serif; -webkit-font-smoothing: antialiased; }
a { color: var(--text); text-decoration: none; }
a:hover { color: #fff; }
a, button, input, select, textarea { -webkit-tap-highlight-color: transparent; }
:focus-visible { outline: 2px solid var(--accent-hover); outline-offset: 4px; }
::selection { background: #932537; color: #fff; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 8px; font-size: clamp(26px, 2.6vw, 34px); font-weight: 650; line-height: 1.2; letter-spacing: -.035em; overflow-wrap: anywhere; }
h2 { font-size: 17px; font-weight: 600; letter-spacing: -.02em; margin: 30px 0 14px; }
h3 { font-size: 14px; font-weight: 600; margin-bottom: 8px; }
p { margin-bottom: 16px; }
code, .mono { font-family: "Cascadia Code", "Cascadia Mono", Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; }
.muted { color: var(--muted); }
.small { font-size: 12px; }
.bad { color: var(--bad); }
.icon { width: 20px; height: 20px; flex: 0 0 auto; vertical-align: middle; }
.eyebrow { color: var(--muted); font-size: 10px; font-weight: 650; letter-spacing: .16em; text-transform: uppercase; margin-bottom: 12px; }
.page-description { margin: 8px 0 0; color: var(--muted); font-size: 14px; }
main > h1 + .page-description { margin: 0 0 28px; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 100; padding: 12px 20px; border-radius: 8px; background: var(--accent); color: white; }
.skip-link:focus { top: 12px; }

/* Application frame */
.sidebar { position: fixed; inset: 0 auto 0 0; z-index: 40; width: var(--sidebar-width); background: var(--sidebar); border-right: 1px solid var(--line); display: flex; flex-direction: column; padding: 30px 16px 0; overflow-y: auto; }
.brand { display: flex; gap: 12px; align-items: center; padding: 0 10px; margin-bottom: 43px; }
.brand img { object-fit: contain; flex: 0 0 auto; }
.brand > span { font-size: 22px; letter-spacing: -.04em; font-weight: 700; line-height: 1.3; }
.brand small { display: block; font-size: 8px; font-weight: 500; color: var(--muted); letter-spacing: .14em; margin-top: 5px; }
.nav-label { display: block; font-size: 9px; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: #95959f; margin: 0 12px 14px; }
.nav-label-secondary { margin-top: 31px; }
.nav-item { display: flex; align-items: center; gap: 13px; min-height: 44px; padding: 10px 13px; margin-bottom: 5px; color: var(--muted); border: 1px solid transparent; border-radius: 7px; transition: background .16s, color .16s; }
.nav-item .icon { width: 18px; height: 18px; }
.nav-item:hover { background: var(--panel-2); }
.nav-item.active { color: #ff6577; background: var(--accent-soft); border-color: #50232b; }
.nav-indicator { width: 5px; height: 5px; border-radius: 50%; background: var(--accent); margin-left: auto; }
.sidebar-bottom { margin-top: auto; padding-top: 50px; }
.workspace-products { border-top: 1px solid var(--line); padding: 23px 12px 27px; }
.workspace-products .nav-label { margin: 0 0 15px; }
.workspace-products > div { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; margin-top: 12px; }
.product-dot { display: inline-block; width: 7px; height: 7px; background: var(--accent); border-radius: 2px; transform: skew(-12deg); flex: 0 0 auto; }
.product-dot.neutral { background: #d8d8df; }
.profile { display: flex; align-items: center; gap: 5px; border-top: 1px solid var(--line); margin: 0 -16px; padding: 20px 15px; }
.profile-link { min-width: 0; display: flex; align-items: center; gap: 10px; flex: 1; }
.avatar { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 9px; background: #2b2428; border: 1px solid #493039; color: #f5abb4; font-size: 13px; font-weight: 650; flex: 0 0 auto; }
.profile-text { min-width: 0; }
.profile-text strong { display: block; font-size: 11px; font-weight: 600; }
.profile-text small { display: block; color: var(--muted); font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 137px; margin-top: 3px; }
.profile form { margin: 0; }
.profile .icon-button { width: 29px; height: 34px; padding: 5px; }
.profile .icon { width: 17px; height: 17px; }
.app-workspace { margin-left: var(--sidebar-width); min-height: 100vh; display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 73px; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: 15px; padding: 0 38px; }
.breadcrumb { display: flex; align-items: center; gap: 15px; min-width: 0; font-size: 12px; }
.breadcrumb > span { color: var(--muted); }
.breadcrumb > .icon { width: 13px; height: 13px; color: #72727d; }
.breadcrumb strong { font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.topbar-badge { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--muted); margin-left: auto; white-space: nowrap; }
.topbar-badge .icon { width: 15px; height: 15px; }
main { width: 100%; max-width: 1760px; padding: 35px 38px 50px; margin: 0 auto; flex: 1; min-width: 0; }
main:focus { outline: none; }
.app-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; color: #92929e; font-size: 10px; letter-spacing: .02em; margin: 0 38px; padding: 19px 0; border-top: 1px solid var(--line); }
.footer-divider { color: var(--accent); margin: 0 8px; }
.nav-toggle, .nav-close, .nav-overlay { display: none; }
.head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; margin-bottom: 28px; }
.head h1 { margin-bottom: 0; }
.head > div { min-width: 0; }
.head > .button { flex-shrink: 0; }
.dashboard-head { margin: 2px 0 29px; }

/* Controls */
input, select, textarea, button, .button { font: inherit; color: var(--text); }
input, select, textarea { background: #141417; border: 1px solid #393940; border-radius: 7px; padding: 10px 12px; min-height: 42px; min-width: 0; max-width: 100%; transition: border-color .16s, box-shadow .16s; }
input::placeholder, textarea::placeholder { color: #95959f; opacity: 1; }
input:focus, select:focus, textarea:focus { border-color: #ee5366; outline: 0; box-shadow: 0 0 0 3px #fa203817; }
input:disabled { opacity: .45; cursor: not-allowed; }
input[type=checkbox] { min-height: auto; width: 16px; height: 16px; accent-color: var(--accent); margin: 0; cursor: pointer; }
textarea { resize: vertical; }
button, .button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 40px; border: 1px solid #3a3a43; border-radius: 7px; padding: 9px 15px; background: #242429; font-size: 12px; font-weight: 600; cursor: pointer; text-decoration: none; transition: background .16s, border-color .16s, transform .16s; }
button:hover, .button:hover { background: #303037; border-color: #62626d; color: #fff; text-decoration: none; }
button:active, .button:active { transform: translateY(1px); }
button .icon, .button .icon { width: 16px; height: 16px; }
button.primary, .button.primary { background: #df1730; border-color: #fa2038; color: #fff; box-shadow: 0 3px 12px #fa203812; }
button.primary:hover, .button.primary:hover { background: #f0203a; border-color: #ff596d; }
button.danger { border-color: #71323e; background: #301b22; color: var(--bad); }
button.danger:hover { background: #4b202d; border-color: var(--bad); }
button.small { min-height: 30px; padding: 5px 10px; font-size: 11px; }
button.link { background: none; border: 0; color: var(--muted); padding: 0; }
.icon-button { width: 36px; height: 36px; min-height: 36px; padding: 7px; background: transparent; border-color: transparent; color: var(--muted); }
.text-link { display: inline-flex; gap: 8px; align-items: center; color: #c4c4ce; font-size: 11px; font-weight: 500; white-space: nowrap; }
.text-link:hover { color: #ff8392; }
.text-link .icon { width: 15px; height: 15px; }
.filters { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; padding: 16px; margin: 0 0 20px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.filters input[type=search] { flex: 1; min-width: 200px; }
.filters input, .filters select { font-size: 12px; }
.filters button { min-height: 42px; }
.filter-reset { font-size: 12px; color: var(--muted); padding: 10px 4px; }

/* Tables and shared panels */
.panel, .card { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); }
.card { padding: 25px; }
.panel { min-width: 0; overflow: hidden; }
.table-scroll { max-width: 100%; overflow-x: auto; border: 1px solid var(--line); border-radius: 10px; overscroll-behavior-x: contain; scrollbar-width: thin; }
table { width: 100%; border-collapse: collapse; text-align: left; background: var(--panel); font-size: 12px; }
th, td { padding: 15px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
th { padding-top: 12px; padding-bottom: 12px; background: #1d1d21; font-size: 10px; text-transform: uppercase; letter-spacing: .075em; color: var(--muted); font-weight: 600; white-space: nowrap; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #ffffff02; }
td a { color: #e8e8ef; text-decoration: underline; text-decoration-color: #5b3b43; text-underline-offset: 4px; }
td a:hover { color: #ff8392; }
td form { margin: 0; }
td input { width: 100%; min-width: 95px; }
td[colspan].muted { text-align: center; padding: 45px 20px; }
td .mono, td.mono { font-size: 11px; }
td .pill { white-space: nowrap; }
.form { display: grid; gap: 20px; max-width: 680px; }
.form.wide { max-width: 1100px; }
.form button { justify-self: start; }
.form label, .card label { display: grid; gap: 8px; font-size: 12px; color: #d5d5dd; font-weight: 500; }
.form label .small, .card label .small { font-weight: 400; font-size: 11px; }
.form label.inline, .card label.inline { display: flex; gap: 10px; align-items: center; }
.form h2 { margin: 0; }
.form p:last-child, .card p:last-child { margin-bottom: 0; }
.form-section { display: grid; gap: 18px; padding-bottom: 24px; border-bottom: 1px solid var(--line); }
.form-section h2 { font-size: 14px; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.form-actions { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
fieldset { border: 1px solid #393940; border-radius: 8px; display: grid; gap: 14px; padding: 17px; margin: 0; min-width: 0; }
legend { color: var(--muted); font-size: 11px; padding: 0 8px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 13px 30px; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: 25px; font-size: 13px; }
.facts dt { color: var(--muted); }
.facts dd { margin: 0; overflow-wrap: anywhere; }
.facts a { color: #ff8796; }
.actions { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 16px; }
.actions .card { display: grid; gap: 14px; align-content: start; }
.actions .card button { justify-self: start; }
.actions .card h3 { margin-bottom: 0; }
.actions .wide { grid-column: 1 / -1; }
.reveal { border-color: #345c50; background: #172520; margin-bottom: 24px; }
.reveal h2 { margin-top: 0; }
.reveal .key { font-size: clamp(15px, 2vw, 22px); letter-spacing: .04em; user-select: all; margin: 12px 0; overflow-wrap: anywhere; }
.reveal p:last-child { margin-top: 16px; }
.pager { margin-top: 20px; display: flex; gap: 12px; }
.pager a { padding: 8px 14px; border: 1px solid var(--line); border-radius: 7px; color: var(--muted); font-size: 12px; }
.pager a:hover { background: var(--panel-2); color: var(--text); }
.flash { display: flex; align-items: flex-start; gap: 12px; padding: 14px 17px; border-radius: 8px; border: 1px solid var(--line); background: var(--panel); font-size: 13px; }
.flash .icon { width: 18px; height: 18px; margin-top: 1px; }
.flash.ok { border-color: #305b4d; background: #17251f; color: #b5edd3; }
.flash.bad { border-color: #71323e; background: #2e1b22; color: #ffc1c9; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 9px; border-radius: 5px; font-size: 10px; border: 1px solid var(--line); font-weight: 500; }
.pill::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.pill.ok { border-color: #2d4a40; color: var(--ok); background: #1b2b25; }
.pill.warn { border-color: #56452b; color: var(--warn); background: #30291d; }
.pill.bad { border-color: #60333d; color: var(--bad); background: #321f26; }
.pill.muted { color: var(--muted); }
.toast { position: fixed; bottom: 24px; left: calc(50% + var(--sidebar-width) / 2); transform: translateX(-50%); z-index: 80; max-width: calc(100% - 32px); margin: 0; padding: 13px 20px; background: #303038; color: white; border: 1px solid #62626d; border-radius: 9px; box-shadow: 0 8px 40px #0006; font-size: 12px; }

/* Dashboard */
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.tile { position: relative; display: flex; flex-direction: column; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); color: var(--text); padding: 20px 21px 0; overflow: hidden; transition: border-color .18s, background .18s, transform .18s; }
.tile:hover { border-color: #5b3941; background: #1d1c20; transform: translateY(-2px); }
.tile.product-tile:first-child::before { content: ""; position: absolute; top: 0; left: 21px; right: 21px; height: 2px; background: var(--accent); }
.tile.alert { border-color: #57452a; }
.tile-heading { display: flex; gap: 8px; justify-content: space-between; align-items: center; min-height: 32px; }
.tile .label { font-size: 13px; font-weight: 500; color: #c7c7d0; }
.tile-icon { width: 33px; height: 33px; display: grid; place-items: center; border-radius: 8px; color: #bcbcc8; background: #242429; flex-shrink: 0; }
.tile-icon .icon { width: 17px; height: 17px; }
.tile-icon.red { color: #ff687b; background: #342029; }
.tile-icon.amber { color: var(--warn); background: #352d21; }
.metric { display: flex; flex-wrap: wrap; align-items: baseline; gap: 9px; margin-top: 15px; }
.metric .big { font-size: 42px; line-height: 1.15; letter-spacing: -.055em; font-weight: 600; font-variant-numeric: tabular-nums; color: #fafafa; }
.metric > span:last-child { font-size: 11px; color: var(--muted); }
.tile-meta { display: flex; align-items: center; gap: 6px; color: var(--muted); font-size: 11px; margin: 12px 0 19px; min-height: 16px; }
.status-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--ok); }
.tile-footer { display: flex; align-items: center; flex-wrap: wrap; gap: 5px; border-top: 1px solid var(--line); margin-top: auto; padding: 12px 0; font-size: 10px; color: var(--muted); min-height: 42px; }
.tile-footer > span { color: #7c7c86; }
.tile-link { justify-content: space-between; font-size: 10px; color: #bfbfc9; }
.tile-link .icon { width: 14px; height: 14px; }
.activity-strip { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 18px; background: #161619; border: 1px solid var(--line); border-radius: 9px; padding: 16px 21px; margin: 23px 0 29px; }
.strip-title { display: flex; align-items: center; flex-wrap: wrap; gap: 12px; }
.strip-title > .icon { color: #ff6577; width: 18px; height: 18px; }
.strip-title strong { font-size: 11px; font-weight: 500; color: #d9d9e1; }
.strip-title .small { font-size: 10px; padding-left: 12px; border-left: 1px solid #43434c; }
.strip-metrics { display: flex; gap: 27px; font-size: 11px; color: var(--muted); }
.strip-metrics strong { margin-right: 4px; font-weight: 600; color: var(--text); font-variant-numeric: tabular-nums; }
.dashboard-grid { display: grid; grid-template-columns: minmax(0, 1.6fr) minmax(300px, 1fr); gap: 22px; align-items: start; }
.dashboard-side { display: grid; gap: 22px; min-width: 0; }
.panel-head { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 14px; padding: 22px 22px 19px; border-bottom: 1px solid var(--line); }
.panel-head h2 { font-size: 15px; margin: 0; font-weight: 600; }
.panel-head p { font-size: 12px; color: var(--muted); margin: 6px 0 0; }
.heading-icon { color: #9696a3; }
.heading-icon .icon { width: 18px; height: 18px; }
.panel .table-scroll { border: 0; border-radius: 0; }
.activity-table th { font-size: 9px; }
.activity-table th, .activity-table td { padding-left: 20px; padding-right: 20px; }
.activity-table td { font-size: 12px; }
.activity-cell { display: flex; align-items: center; gap: 11px; }
.activity-cell strong { display: block; font-size: 12px; font-weight: 500; white-space: nowrap; }
.activity-cell small { display: block; font-size: 9px; color: var(--muted); margin-top: 4px; }
.event-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid #34343c; background: #222226; color: #b1b1be; border-radius: 7px; flex: 0 0 auto; }
.event-icon .icon { width: 14px; height: 14px; }
.date-cell { font-variant-numeric: tabular-nums; color: var(--muted); white-space: nowrap; font-size: 10px !important; }
.date-cell > .muted { display: none; }
.panel-foot { display: flex; align-items: center; gap: 8px; padding: 13px 21px; border-top: 1px solid var(--line); color: var(--muted); font-size: 10px; }
.panel-foot .icon { width: 13px; height: 13px; }
.panel-foot-link { justify-content: space-between; }
.panel-foot-link:hover { background: #ffffff03; color: #ff8392; }
.empty-state { display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 68px 30px; min-height: 280px; }
.empty-icon { display: grid; place-items: center; width: 46px; height: 46px; color: #9898a6; border: 1px solid #36363e; background: #212126; border-radius: 12px; margin-bottom: 18px; }
.empty-icon .icon { width: 22px; height: 22px; }
.empty-icon.success { color: var(--ok); background: #1c2a24; border-color: #2d463a; }
.empty-state h3 { font-size: 12px; font-weight: 500; margin: 0 0 7px; }
.empty-state p { font-size: 11px; max-width: 270px; color: var(--muted); margin: 0; line-height: 1.7; }
.empty-state .text-link { margin-top: 20px; }
.empty-state.compact { min-height: 170px; padding: 25px 22px; }
.compact .empty-icon { width: 36px; height: 36px; border-radius: 9px; margin-bottom: 13px; }
.compact .empty-icon .icon { width: 18px; height: 18px; }
.record-list { list-style: none; padding: 0; margin: 0; }
.record-list li + li { border-top: 1px solid var(--line); }
.record-list li > a { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 16px 22px; }
.record-list li > a:hover { background: #ffffff03; }
.record-list strong { display: block; font-size: 12px; font-weight: 500; overflow-wrap: anywhere; }
.record-list small { display: block; color: var(--muted); font-size: 11px; margin-top: 5px; }
.record-list .expiry-date { color: var(--warn); background: #2f281e; padding: 4px 7px; border-radius: 5px; font-size: 9px; white-space: nowrap; font-variant-numeric: tabular-nums; }
.signal-list li { padding: 16px 22px; }
.signal-list small { overflow-wrap: anywhere; }
.signal-list a { color: #e5abb4; }

/* Login, second factor and errors */
.auth-page { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth-story { position: relative; display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; min-height: 100vh; padding: 45px 55px; background: #171719; border-right: 1px solid var(--line); }
.auth-story::before { content: ""; position: absolute; width: 580px; height: 900px; right: -390px; top: -80px; transform: rotate(-38deg); background: repeating-linear-gradient(90deg, transparent 0 19px, #fa203818 19px 22px); pointer-events: none; }
.auth-story::after { content: ""; position: absolute; width: 650px; height: 170px; bottom: 105px; left: -340px; transform: rotate(-38deg); background: repeating-linear-gradient(0deg, transparent 0 10px, #ffffff04 10px 13px); pointer-events: none; }
.auth-brand { position: relative; z-index: 1; margin: 0; padding: 0; }
.auth-brand img { width: 48px; height: auto; }
.auth-story-content { position: relative; z-index: 1; padding: 60px 0; max-width: 480px; }
.auth-story-content .eyebrow { color: #f37a8b; letter-spacing: .18em; margin-bottom: 25px; }
.auth-story-content h2 { font-size: clamp(36px, 4.8vw, 70px); line-height: 1.08; letter-spacing: -.06em; font-weight: 650; margin: 0 0 28px; }
.auth-story-content h2 span { color: #fa344b; }
.auth-story-content > p:last-of-type { font-size: 14px; color: #a8a8b2; line-height: 1.8; max-width: 330px; }
.auth-products { display: flex; flex-wrap: wrap; gap: 20px; margin-top: 40px; color: #ceced6; font-size: 11px; }
.auth-products > span { display: flex; align-items: center; gap: 8px; }
.auth-story-footer { position: relative; z-index: 1; display: flex; gap: 12px; align-items: center; color: #92929e; font-size: 10px; letter-spacing: .03em; }
.racing-lines { width: 35px; height: 13px; display: inline-block; transform: skew(-32deg); background: repeating-linear-gradient(90deg, var(--accent) 0 4px, transparent 4px 8px); flex-shrink: 0; }
.auth-main { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 50px 35px; position: relative; }
.auth-form { width: 100%; max-width: 365px; display: grid; gap: 23px; }
.auth-form h1 { font-size: 29px; letter-spacing: -.035em; margin: 0 0 10px; }
.auth-form .page-description { font-size: 13px; line-height: 1.75; }
.auth-step { color: var(--muted); font-size: 10px; letter-spacing: .13em; text-transform: uppercase; display: flex; align-items: center; gap: 9px; margin-bottom: 18px; }
.auth-step > span { display: inline-block; height: 3px; width: 23px; border-radius: 2px; background: var(--line); }
.auth-step > span.current { background: var(--accent); }
.auth-form label { display: grid; gap: 9px; font-size: 12px; font-weight: 500; }
.auth-form input { height: 46px; font-size: 13px; }
.auth-form > .primary { min-height: 45px; justify-content: space-between; margin-top: 2px; }
.auth-form .flash { margin-bottom: 0; }
.auth-note { color: var(--muted); font-size: 11px; display: flex; align-items: center; justify-content: center; gap: 7px; padding-top: 20px; border-top: 1px solid var(--line); text-align: center; }
.auth-note .icon { width: 14px; height: 14px; }
.auth-back { justify-self: center; font-size: 12px; color: var(--muted); }
.auth-form .otp-input { font-family: "Cascadia Mono", Consolas, monospace; letter-spacing: .3em; font-size: 26px; text-align: center; height: 60px; }
.auth-mobile-brand { display: none; }
.center { display: grid; place-items: center; min-height: 100vh; padding: 24px; }
.narrow { width: min(440px, 100%); display: grid; gap: 15px; }
.error-card { text-align: center; padding: 40px; }
.error-card img { display: block; margin: 0 auto 12px; width: 52px; height: auto; }
.error-card .eyebrow { margin: 0; color: #ff788b; }
.error-card h1 { font-size: 27px; margin-bottom: 0; }
.error-card p { color: var(--muted); overflow-wrap: anywhere; }

@media (min-width: 1650px) {
  main { padding-top: 45px; }
  .tile { padding: 24px 25px 0; }
  .metric .big { font-size: 49px; }
  .tile .label { font-size: 14px; }
  .metric > span:last-child, .tile-meta { font-size: 12px; }
  .tile-footer { font-size: 10px; }
}
@media (max-width: 1250px) {
  :root { --sidebar-width: 220px; }
  .sidebar { padding-left: 12px; padding-right: 12px; }
  .profile { margin-left: -12px; margin-right: -12px; }
  .profile-text small { max-width: 115px; }
  .topbar { padding: 0 26px; }
  main { padding: 30px 26px 40px; }
  .app-footer { margin: 0 26px; }
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .dashboard-grid { grid-template-columns: minmax(0, 1fr); }
  .dashboard-side { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; }
}
@media (max-width: 800px) {
  .app-workspace { margin-left: 0; }
  .sidebar { position: relative; width: 100%; padding: 20px; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar .brand { margin-bottom: 20px; }
  .sidebar-bottom { padding-top: 20px; }
  .workspace-products { display: none; }
  .profile { margin: 0; padding-bottom: 0; }
  .profile-text small { max-width: 210px; }
  .js-enabled .sidebar { position: fixed; width: 272px; inset: 0 auto 0 0; padding: 30px 16px 0; border-right: 1px solid var(--line); border-bottom: 0; transform: translateX(-100%); visibility: hidden; transition: transform .2s, visibility .2s; }
  .js-enabled .sidebar .brand { margin-bottom: 38px; }
  .js-enabled .sidebar-bottom { padding-top: 40px; }
  .js-enabled .profile { padding-bottom: 20px; }
  .js-enabled .workspace-products { display: block; }
  .js-enabled .nav-toggle { display: inline-flex; flex-shrink: 0; }
  .js-enabled .nav-close { display: inline-flex; position: absolute; top: 8px; right: 7px; width: 28px; height: 28px; min-height: 28px; }
  .nav-open { overflow: hidden; }
  .nav-open .sidebar { transform: translateX(0); visibility: visible; }
  .nav-open .nav-overlay { display: block; position: fixed; inset: 0; z-index: 35; border: 0; border-radius: 0; background: #0009; backdrop-filter: blur(3px); width: 100%; height: 100%; }
  .topbar { height: 62px; padding: 0 18px; gap: 10px; }
  .breadcrumb { gap: 10px; }
  .topbar-badge { font-size: 10px; }
  main { padding: 28px 20px 35px; }
  .app-footer { margin: 0 20px; }
  .toast { left: 50%; }
  .auth-story { padding: 35px; }
  .auth-story-content h2 { font-size: 45px; }
}
@media (max-width: 600px) {
  .tiles { gap: 12px; }
  .tile { padding: 15px 15px 0; }
  .tile-heading { align-items: flex-start; }
  .tile .label { font-size: 12px; }
  .tile-icon { width: 26px; height: 26px; border-radius: 6px; }
  .tile-icon .icon { width: 14px; height: 14px; }
  .metric { gap: 3px; flex-direction: column; margin-top: 12px; }
  .metric .big { font-size: 36px; }
  .metric > span:last-child { font-size: 11px; }
  .tile-meta { font-size: 10px; margin: 10px 0 15px; }
  .tile-footer { gap: 4px; font-size: 9px; min-height: 49px; }
  .tile-link { font-size: 9px; }
  .dashboard-head { align-items: flex-start; gap: 20px; }
  .dashboard-head .button { width: 100%; }
  .dashboard-side { grid-template-columns: minmax(0, 1fr); }
  .activity-strip { padding: 15px; gap: 15px; }
  .strip-title { gap: 8px; }
  .strip-title .small { width: 100%; border: 0; padding-left: 26px; }
  .strip-metrics { width: 100%; padding-top: 12px; border-top: 1px solid var(--line); gap: 24px; }
  .panel-head { padding: 20px 17px; }
  .panel-head .text-link { font-size: 10px; }
  .breadcrumb > span, .breadcrumb > .icon { display: none; }
  .topbar-badge { font-size: 9px; }
  .head { gap: 16px; margin-bottom: 22px; }
  .head h1 { font-size: 28px; }
  .page-description { font-size: 12px; }
  .eyebrow { font-size: 9px; }
  .filters { padding: 12px; }
  .filters select { flex: 1 1 130px; width: 100%; }
  .filters input[type=search] { flex-basis: 100%; width: 100%; min-width: 0; }
  .card { padding: 20px; }
  .form-row { grid-template-columns: 1fr; }
  .facts { padding: 20px; gap: 11px 17px; font-size: 12px; }
  .actions { grid-template-columns: minmax(0, 1fr); }
  .app-footer { font-size: 9px; align-items: flex-start; }
  .app-footer > span:last-child { text-align: right; }
  .auth-page { display: block; }
  .auth-story { display: none; }
  .auth-main { min-height: 100vh; padding: 36px 25px; justify-content: center; }
  .auth-mobile-brand { display: flex; width: 100%; max-width: 365px; margin-bottom: 52px; padding: 0; }
  .auth-mobile-brand img { width: 37px; height: auto; }
  .auth-mobile-brand > span { font-size: 20px; }
  .auth-form h1 { font-size: 28px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { transition: none !important; scroll-behavior: auto !important; }
}