:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  --bg: #0b0b0c;
  --bg-deep: #050506;
  --bar: #111113;
  --panel: #151517;
  --panel-raised: #1a1a1d;
  --field: #101012;
  --border: #2c2c30;
  --border-soft: #242427;
  --text: #f7f7f4;
  --soft: #d2d2cd;
  --muted: #8f8f8a;
  --faint: #62625e;
  --accent: #ffd400;
  --accent-bright: #ffe55c;
  --accent-soft: rgba(255, 212, 0, .11);
  --green: #32c48d;
  --green-soft: rgba(50, 196, 141, .12);
  --red: #ef5962;
  --red-soft: rgba(239, 89, 98, .12);
  --amber: #f2a619;
  --shadow: 0 18px 55px rgba(0, 0, 0, .2);
}

* { box-sizing: border-box; }
html { min-width: 320px; background: var(--bg); scroll-behavior: smooth; }
body { margin: 0; min-height: 100vh; background: var(--bg); color: var(--text); }
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
button:focus-visible, a:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
a { color: inherit; }
svg { fill: none; stroke: currentColor; stroke-linecap: round; stroke-linejoin: round; stroke-width: 1.8; }
.svg-sprite { position: absolute; width: 0; height: 0; overflow: hidden; }
.is-hidden { display: none !important; }
.ambient { position: fixed; inset: 0; pointer-events: none; background: radial-gradient(circle at 82% -12%, rgba(255, 212, 0, .055), transparent 34rem); }

.appbar {
  align-items: center;
  background: linear-gradient(180deg, #30353a, #202428);
  border-bottom: 1px solid #08090a;
  box-shadow: 0 5px 18px rgba(0,0,0,.32);
  display: flex;
  height: 58px;
  justify-content: space-between;
  padding: 0 26px;
  position: sticky;
  top: 0;
  z-index: 50;
}
.brand { align-items: center; display: flex; gap: 10px; text-decoration: none; }
.brand-mark { align-items: center; background: transparent; border-radius: 7px; color: var(--accent); display: flex; height: 36px; justify-content: center; width: 42px; }
.brand-mark svg { height: 28px; stroke-width: 2.1; width: 38px; }
.brand-copy { display: flex; flex-direction: column; line-height: 1; }
.brand-copy strong { font-size: 16px; font-weight: 950; letter-spacing: -.045em; }
.brand-copy strong span { color: inherit; }
.brand-copy small { color: #8e979e; font-size: 7px; font-weight: 800; letter-spacing: .19em; margin-top: 4px; }
.appbar-meta { align-items: center; display: flex; gap: 12px; }
.last-updated { color: #a2abb1; font-size: 10px; }
.server-state { align-items: center; border-right: 1px solid rgba(255,255,255,.08); color: #aab1b6; display: inline-flex; font-size: 9px; font-weight: 800; gap: 6px; letter-spacing: .06em; padding-right: 13px; text-transform: uppercase; }
.server-state i, .live-badge i { background: var(--amber); border-radius: 50%; box-shadow: 0 0 0 4px rgba(242,166,25,.11); height: 6px; width: 6px; }
.server-state.online { color: #91e2c2; }
.server-state.online i, .live-badge i { background: var(--green); box-shadow: 0 0 0 4px rgba(50,196,141,.11); }
.server-state.offline { color: #ff9298; }
.server-state.offline i { background: var(--red); box-shadow: 0 0 0 4px rgba(239,89,98,.11); }
.icon-button { align-items: center; background: rgba(255,255,255,.025); border: 1px solid rgba(255,255,255,.08); border-radius: 7px; color: #bbc3c8; display: flex; height: 32px; justify-content: center; padding: 0; width: 32px; }
.icon-button svg { height: 16px; width: 16px; }
.icon-button:hover { border-color: rgba(255,229,92,.45); color: var(--accent-bright); }
.icon-button.loading svg { animation: spin .7s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

.login-shell { display: grid; min-height: calc(100vh - 58px); padding: 7vh 24px; place-items: start center; position: relative; }
.login-card { background: var(--panel); border: 1px solid var(--border); border-radius: 14px; box-shadow: 0 34px 90px rgba(0,0,0,.34); display: grid; grid-template-columns: 1.1fr .9fr; max-width: 920px; min-height: 470px; overflow: hidden; width: 100%; }
.login-visual { background: linear-gradient(145deg, #181d20, #111416); border-right: 1px solid var(--border); display: flex; flex-direction: column; justify-content: space-between; overflow: hidden; padding: 52px; position: relative; }
.login-grid { background-image: linear-gradient(rgba(255,212,0,.07) 1px, transparent 1px), linear-gradient(90deg, rgba(255,212,0,.07) 1px, transparent 1px); background-size: 34px 34px; inset: 0; mask-image: linear-gradient(to bottom right, #000, transparent 75%); opacity: .7; position: absolute; }
.login-visual > div { position: relative; }
.login-visual h1 { font-size: clamp(37px, 5vw, 58px); letter-spacing: -.06em; line-height: .96; margin: 14px 0 18px; max-width: 520px; }
.login-visual p { color: var(--muted); font-size: 14px; line-height: 1.65; margin: 0; max-width: 430px; }
.login-health { align-items: center; color: #879198; display: flex; font-size: 10px; gap: 9px; }
.login-health span { background: var(--green); border-radius: 50%; box-shadow: 0 0 0 5px var(--green-soft); height: 7px; width: 7px; }
.login-form { align-self: center; padding: 46px; }
.eyebrow, .panel-kicker { color: var(--accent-bright); font-size: 9px; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; }
.login-form h2 { font-size: 27px; letter-spacing: -.04em; margin: 9px 0 9px; }
.login-form > p { color: var(--muted); font-size: 12px; line-height: 1.55; margin: 0 0 25px; }
.login-form code { color: var(--soft); }

label { color: #aeb6bb; display: flex; flex-direction: column; font-size: 9px; font-weight: 750; gap: 7px; letter-spacing: .02em; }
input, select, textarea { background: var(--field); border: 1px solid var(--border); border-radius: 5px; color: var(--text); min-height: 40px; outline: none; padding: 0 11px; }
input::placeholder, textarea::placeholder { color: #5c656b; }
input:focus, select:focus, textarea:focus { border-color: rgba(255,229,92,.65); box-shadow: 0 0 0 3px rgba(255,212,0,.09); }
textarea { line-height: 1.5; min-height: 118px; padding-block: 10px; resize: vertical; }
select { cursor: pointer; }
.button { align-items: center; border: 1px solid transparent; border-radius: 5px; display: inline-flex; font-size: 10px; font-weight: 850; gap: 7px; justify-content: center; min-height: 40px; padding: 0 17px; transition: .15s ease; }
.button svg { height: 15px; width: 15px; }
.button.primary { background: var(--accent); color: #06131a; }
.button.primary:hover { background: var(--accent-bright); transform: translateY(-1px); }
.button.secondary { background: transparent; border-color: #6b5d18; color: var(--accent-bright); }
.button.secondary:hover { background: var(--accent-soft); border-color: var(--accent); }
.button.full { margin-top: 13px; width: 100%; }
.button:disabled { cursor: wait; opacity: .55; transform: none !important; }
.form-status { color: #ff9298; font-size: 10px; line-height: 1.45; min-height: 16px; margin-top: 8px; }
.form-status.success { color: #7de0b9; }

.dashboard { min-height: calc(100vh - 58px); }
.module-nav { align-items: stretch; background: #171a1c; border-bottom: 1px solid var(--border); display: flex; gap: 0; overflow-x: auto; padding: 0 25px; position: sticky; top: 58px; z-index: 40; }
.nav-item { align-items: center; background: none; border: 0; border-bottom: 3px solid transparent; color: #899198; display: flex; flex: 0 0 auto; font-size: 10px; font-weight: 650; gap: 8px; min-height: 51px; padding: 0 21px; }
.nav-item svg { height: 15px; width: 15px; }
.nav-item b { align-items: center; background: #2a2e31; border-radius: 10px; color: #aab2b8; display: flex; font-size: 8px; height: 17px; justify-content: center; min-width: 17px; padding: 0 5px; }
.nav-item:hover { color: #d4dade; }
.nav-item.active { border-bottom-color: var(--accent); color: var(--accent-bright); }
.nav-item.active b { background: var(--accent-soft); color: var(--accent-bright); }
.content-shell { margin: 0 auto; max-width: 1540px; padding: 24px 30px 80px; position: relative; }
.view { display: none; }
.view.active { animation: view-in .2s ease both; display: block; }
@keyframes view-in { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.page-heading { align-items: flex-end; display: flex; gap: 20px; justify-content: space-between; margin: 0 0 23px; }
.page-heading h1 { color: var(--accent-bright); font-size: clamp(25px, 4vw, 34px); letter-spacing: -.045em; line-height: 1; margin: 8px 0 5px; }
.page-heading p { color: var(--muted); font-size: 11px; margin: 0; }
.live-badge { align-items: center; color: #7f8a91; display: inline-flex; font-size: 9px; font-weight: 800; gap: 8px; letter-spacing: .07em; text-transform: uppercase; }
.heading-stat { border-left: 1px solid var(--border); padding-left: 22px; text-align: right; }
.heading-stat small { color: var(--muted); display: block; font-size: 8px; font-weight: 800; letter-spacing: .12em; }
.heading-stat strong { display: block; font-size: 23px; letter-spacing: -.04em; margin-top: 3px; }

.filter-panel { align-items: end; background: var(--panel-raised); border: 1px solid var(--border); border-radius: 8px; display: grid; gap: 11px; grid-template-columns: 180px 180px minmax(210px, 1fr) auto auto; padding: 15px 16px; }
.section-tabs { border-bottom: 1px solid var(--border); display: flex; gap: 4px; margin: 18px 0; overflow-x: auto; }
.section-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; color: #9ca4aa; flex: 0 0 auto; font-size: 10px; min-height: 45px; padding: 0 18px; }
.section-tabs button:hover { color: var(--text); }
.section-tabs button.active { border-bottom-color: var(--accent); color: var(--text); font-weight: 750; }
.section-heading { align-items: flex-end; display: flex; justify-content: space-between; margin-bottom: 14px; }
.section-heading h2 { color: var(--accent); font-size: 16px; margin: 0; }
.section-heading p { color: var(--muted); font-size: 9px; margin: 4px 0 0; }

.metric-grid { display: grid; gap: 12px; grid-template-columns: repeat(4, 1fr); }
.metric-card { align-items: center; background: linear-gradient(145deg, #202326, #1b1e20); border: 1px solid var(--border); border-radius: 7px; display: flex; gap: 14px; min-height: 112px; padding: 16px; position: relative; }
.metric-card::after { border-radius: inherit; content: ""; inset: 0; pointer-events: none; position: absolute; }
.metric-card.featured::after { border-top: 2px solid var(--accent); }
.metric-card.success::after { border-top: 2px solid rgba(50,196,141,.65); }
.metric-card.danger::after { border-top: 2px solid rgba(239,89,98,.65); }
.metric-icon { align-items: center; background: var(--accent-soft); border: 1px solid rgba(255,212,0,.22); border-radius: 8px; color: var(--accent-bright); display: flex; flex: 0 0 40px; height: 40px; justify-content: center; }
.metric-card.success .metric-icon { background: var(--green-soft); border-color: rgba(50,196,141,.22); color: var(--green); }
.metric-card.danger .metric-icon { background: var(--red-soft); border-color: rgba(239,89,98,.22); color: var(--red); }
.metric-icon svg { height: 19px; width: 19px; }
.metric-card small { color: #aeb5ba; display: block; font-size: 8px; font-weight: 800; letter-spacing: .07em; }
.metric-card strong { display: block; font-size: clamp(19px, 2.2vw, 27px); letter-spacing: -.045em; line-height: 1.1; margin: 6px 0 3px; }
.metric-card > div > span { color: var(--muted); display: block; font-size: 8px; }
.overview-grid { display: grid; gap: 12px; grid-template-columns: minmax(0, 1.75fr) minmax(310px, .75fr); margin-top: 18px; }
.panel { background: var(--panel); border: 1px solid var(--border); border-radius: 7px; box-shadow: 0 7px 22px rgba(0,0,0,.08); overflow: hidden; }
.panel-head { align-items: center; border-bottom: 1px solid var(--border-soft); display: flex; gap: 14px; justify-content: space-between; min-height: 64px; padding: 13px 17px; }
.panel-head h2 { font-size: 14px; letter-spacing: -.02em; margin: 4px 0 0; }
.chart-legend { align-items: center; color: var(--muted); display: flex; font-size: 8px; gap: 7px; }
.chart-legend span { border-radius: 2px; height: 3px; margin-left: 6px; width: 17px; }
.chart-legend .cyan { background: var(--accent); }
.chart-legend .red { background: var(--red); }
.chart-wrap { min-height: 275px; padding: 16px; position: relative; }
.chart-wrap canvas { display: block; height: 245px; max-width: 100%; width: 100%; }
.chart-empty { align-items: center; color: var(--faint); display: none; font-size: 10px; inset: 0; justify-content: center; position: absolute; }
.chart-wrap.empty .chart-empty { display: flex; }
.chart-wrap.empty canvas { opacity: .18; }
.score-ring { align-items: center; background: radial-gradient(circle, var(--panel) 55%, transparent 58%), conic-gradient(var(--green) var(--score, 0%), #31363a 0); border-radius: 50%; color: var(--text); display: flex; font-size: 9px; font-variant-numeric: tabular-nums; font-weight: 900; height: 43px; justify-content: center; width: 43px; }
.health-list { display: grid; gap: 0; padding: 3px 17px 12px; }
.health-item { align-items: center; border-bottom: 1px solid var(--border-soft); display: grid; gap: 11px; grid-template-columns: 30px 1fr auto; min-height: 58px; }
.health-item:last-child { border-bottom: 0; }
.health-item > span:first-child { align-items: center; background: #24282b; border-radius: 6px; color: #aeb6bb; display: flex; height: 29px; justify-content: center; width: 29px; }
.health-item svg { height: 14px; width: 14px; }
.health-item strong { display: block; font-size: 10px; }
.health-item small { color: var(--muted); display: block; font-size: 8px; margin-top: 2px; }
.health-state { border-radius: 9px; font-size: 7px; font-weight: 850; padding: 4px 7px; text-transform: uppercase; }
.health-state.ok { background: var(--green-soft); color: #6adcad; }
.health-state.warn { background: rgba(242,166,25,.12); color: #f5b83f; }
.health-state.error { background: var(--red-soft); color: #ff858c; }
.recent-panel { margin-top: 12px; }
.text-button { background: none; border: 0; color: var(--accent-bright); font-size: 9px; }

.toolbar-panel { align-items: center; background: var(--panel-raised); border: 1px solid var(--border); border-radius: 7px; display: flex; gap: 10px; margin-bottom: 12px; padding: 11px; }
.search-field { flex: 1; min-width: 220px; position: relative; }
.search-field svg { color: var(--muted); height: 15px; left: 11px; position: absolute; top: 12px; width: 15px; }
.search-field input { padding-left: 34px; width: 100%; }
.toolbar-panel select { min-width: 170px; }
.result-count { color: var(--muted); font-size: 9px; margin-left: auto; white-space: nowrap; }
.table-panel { box-shadow: var(--shadow); }
.table-wrap { overflow: auto; }
table { border-collapse: collapse; width: 100%; }
.wide-table { min-width: 1080px; }
.feedback-table { min-width: 1250px; }
th, td { border-bottom: 1px solid var(--border-soft); padding: 12px 14px; text-align: left; vertical-align: middle; }
th { background: #1f2225; color: #7f888f; font-size: 8px; font-weight: 850; letter-spacing: .08em; position: sticky; text-transform: uppercase; top: 0; z-index: 2; }
td { color: #b9c0c5; font-size: 9px; line-height: 1.45; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover { background: rgba(255,255,255,.015); }
td strong { color: #e5e9eb; font-size: 10px; }
td small { color: var(--muted); }
td code { background: #151719; border: 1px solid #2a2e31; border-radius: 4px; color: #ccd3d7; font-size: 8px; padding: 4px 6px; white-space: nowrap; }
.status-badge { border-radius: 10px; display: inline-flex; font-size: 7px; font-weight: 850; padding: 4px 8px; text-transform: uppercase; white-space: nowrap; }
.status-badge.ok, .status-badge.active, .status-badge.email_sent { background: var(--green-soft); color: #68dba9; }
.status-badge.error, .status-badge.revoked, .status-badge.email_failed, .status-badge.refunded { background: var(--red-soft); color: #ff7e86; }
.status-badge.pending, .status-badge.key_created { background: rgba(242,166,25,.12); color: #f5b83f; }
.status-badge.neutral { background: rgba(255,255,255,.06); color: #a8b0b5; }
.payment-error { color: #ff8b92; display: block; font-size: 7px; margin-top: 4px; max-width: 190px; }
.table-button { background: transparent; border: 1px solid #3c444a; border-radius: 4px; color: #b9c2c8; font-size: 8px; min-height: 28px; padding: 0 8px; }
.table-button:hover { border-color: var(--accent); color: var(--accent-bright); }
.table-button.danger { border-color: rgba(239,89,98,.25); color: #ff8087; }
.action-row { display: flex; flex-wrap: wrap; gap: 5px; }
.empty-state { color: var(--muted); font-size: 10px; padding: 48px 20px; text-align: center; }
.activation-list { color: var(--muted); font-size: 8px; margin-top: 5px; max-width: 250px; }
.activation-list div + div { border-top: 1px solid var(--border-soft); margin-top: 5px; padding-top: 5px; }

.form-panel { overflow: visible; }
.form-grid { align-items: end; display: grid; gap: 10px; padding: 16px; }
.license-form { grid-template-columns: 120px 160px 170px minmax(220px, 1fr) auto; }
.security-note { color: var(--muted); font-size: 8px; }
.created-output { background: rgba(255,212,0,.06); border: 1px solid rgba(255,212,0,.22); border-radius: 5px; margin: 0 16px 16px; padding: 13px; }
.created-output > strong { display: block; font-size: 10px; margin-bottom: 8px; }
.created-key { align-items: center; display: flex; gap: 8px; justify-content: space-between; padding: 5px 0; }
.created-key code { color: var(--accent-bright); font-size: 11px; }
.created-key button { background: transparent; border: 1px solid #6b5d18; border-radius: 4px; color: var(--accent-bright); font-size: 8px; min-height: 27px; }
.split-layout { align-items: start; display: grid; gap: 13px; grid-template-columns: minmax(360px, .8fr) minmax(0, 1.2fr); }
.sticky-panel { position: sticky; top: 128px; }
.stack-form { display: grid; gap: 13px; padding: 17px; }
.two-columns { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.check-field { align-items: center; flex-direction: row; gap: 8px; }
.check-field input { accent-color: var(--accent); min-height: auto; width: 15px; }
.check-field span { color: var(--soft); font-size: 9px; }
.check-field.critical span { color: #ff8c92; }
.notices-list { display: grid; gap: 0; }
.notice-card { border-bottom: 1px solid var(--border-soft); display: grid; gap: 12px; grid-template-columns: 34px minmax(0,1fr) auto; padding: 15px 17px; }
.notice-card:last-child { border-bottom: 0; }
.notice-tone { align-items: center; background: var(--accent-soft); border: 1px solid rgba(255,212,0,.22); border-radius: 6px; color: var(--accent-bright); display: flex; font-size: 12px; font-weight: 900; height: 32px; justify-content: center; width: 32px; }
.notice-card.critical .notice-tone { background: var(--red-soft); border-color: rgba(239,89,98,.25); color: var(--red); }
.notice-copy h3 { font-size: 11px; margin: 0 0 5px; }
.notice-copy p { color: #aeb5ba; font-size: 9px; line-height: 1.5; margin: 0; white-space: pre-line; }
.notice-meta { align-items: center; color: var(--muted); display: flex; flex-wrap: wrap; font-size: 7px; gap: 8px; margin-top: 8px; }

.version-badge { background: var(--accent-soft); border: 1px solid rgba(255,212,0,.28); border-radius: 5px; color: var(--accent-bright); font-size: 12px; font-weight: 900; padding: 8px 12px; }
.release-layout { grid-template-columns: .85fr 1.15fr; }
.current-release-panel { min-height: 430px; }
.current-release-panel .panel-head h2 { color: var(--accent-bright); font-size: 26px; }
.release-details { display: grid; gap: 1px; grid-template-columns: 1fr 1fr; margin: 0; padding: 16px; }
.release-details div { background: var(--field); border: 1px solid var(--border-soft); padding: 15px; }
.release-details dt, .system-list dt { color: var(--muted); font-size: 8px; text-transform: uppercase; }
.release-details dd { font-size: 13px; font-weight: 750; margin: 5px 0 0; }
.release-notes { margin: 0 16px 16px; padding: 16px; }
.release-notes small { color: var(--muted); font-size: 8px; font-weight: 800; }
.release-notes p { color: #bcc3c7; font-size: 10px; line-height: 1.6; white-space: pre-line; }
.input-value { color: var(--accent-bright); float: right; }
.range-input { accent-color: var(--accent); border: 0; box-shadow: none !important; padding: 0; }
.file-drop { align-items: center; border: 1px dashed #635b2b; border-radius: 6px; cursor: pointer; min-height: 95px; justify-content: center; padding: 14px; text-align: center; }
.file-drop:hover { background: var(--accent-soft); border-color: var(--accent); }
.file-drop input { display: none; }
.file-drop svg { color: var(--accent-bright); height: 22px; width: 22px; }
.file-drop strong { color: var(--soft); font-size: 10px; }
.file-drop span { color: var(--muted); font-size: 8px; }

.feedback-metrics { grid-template-columns: repeat(4, 1fr); margin-bottom: 13px; }
.score-cell { align-items: center; background: var(--accent-soft); border-radius: 5px; color: var(--accent-bright); display: inline-flex; font-size: 11px; font-weight: 900; height: 29px; justify-content: center; width: 29px; }
.copy-cell { max-width: 280px; white-space: pre-wrap; }
.integration-grid { display: grid; gap: 12px; grid-template-columns: repeat(3, 1fr); margin-bottom: 13px; }
.integration-card { background: var(--panel); border: 1px solid var(--border); border-radius: 7px; min-height: 155px; padding: 17px; position: relative; }
.integration-card::before { background: var(--green); content: ""; height: 2px; left: 0; position: absolute; right: 0; top: 0; }
.integration-card.warn::before { background: var(--amber); }
.integration-card.error::before { background: var(--red); }
.integration-top { align-items: center; display: flex; justify-content: space-between; }
.integration-icon { align-items: center; background: #25292c; border-radius: 6px; color: #b6bec3; display: flex; height: 34px; justify-content: center; width: 34px; }
.integration-icon svg { height: 17px; width: 17px; }
.integration-card h3 { font-size: 13px; margin: 16px 0 4px; }
.integration-card p { color: var(--muted); font-size: 9px; line-height: 1.5; margin: 0; }
.system-grid { display: grid; gap: 12px; grid-template-columns: 1fr 1fr 1.2fr; }
.system-list { margin: 0; padding: 7px 17px 14px; }
.system-list div { align-items: center; border-bottom: 1px solid var(--border-soft); display: flex; justify-content: space-between; min-height: 43px; }
.system-list div:last-child { border-bottom: 0; }
.system-list dd { color: var(--soft); font-size: 9px; font-weight: 650; margin: 0; }
.route-list { display: grid; gap: 7px; grid-template-columns: 1fr 1fr; padding: 15px; }
.route-list code { background: var(--field); border: 1px solid var(--border-soft); border-radius: 4px; color: #aab2b7; font-size: 8px; padding: 9px; }
.route-list b { color: var(--accent-bright); font-size: 7px; margin-right: 5px; }

.audit-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.audit-warning { align-items: center; background: rgba(242,166,25,.08); border: 1px solid rgba(242,166,25,.28); border-radius: 7px; color: #e9b94e; display: flex; gap: 12px; margin-bottom: 12px; padding: 12px 15px; }
.audit-warning svg { flex: 0 0 auto; height: 20px; width: 20px; }
.audit-warning strong { color: #f4c867; display: block; font-size: 10px; }
.audit-warning span { color: #bca96f; display: block; font-size: 8px; line-height: 1.5; margin-top: 2px; }
.audit-filter-panel { grid-template-columns: 160px minmax(210px, .75fr) minmax(280px, 1.25fr) auto; }
.audit-search-label { min-width: 0; }
.audit-metrics { margin-bottom: 13px; }
.audit-privacy-panel { margin-bottom: 13px; }
.audit-privacy-grid { display: grid; gap: 1px; grid-template-columns: repeat(4, 1fr); padding: 0 17px 17px; }
.audit-privacy-card { background: var(--field); border: 1px solid var(--border-soft); min-height: 112px; padding: 14px; }
.audit-privacy-card:first-child { border-radius: 6px 0 0 6px; }
.audit-privacy-card:last-child { border-radius: 0 6px 6px 0; }
.audit-privacy-card small { color: var(--muted); display: block; font-size: 7px; font-weight: 850; letter-spacing: .08em; text-transform: uppercase; }
.audit-privacy-card strong { color: var(--text); display: block; font-size: 21px; margin: 9px 0 5px; }
.audit-privacy-card p { color: #929aa0; font-size: 8px; line-height: 1.45; margin: 0; }
.audit-privacy-card.high strong { color: #ff7f87; }
.audit-privacy-card.medium strong { color: #f0bd53; }
.audit-privacy-card.low strong { color: #5ed7a2; }
.audit-insight-grid { display: grid; gap: 13px; grid-template-columns: 1fr 1fr; margin-bottom: 13px; }
.audit-rank-list, .audit-files { display: grid; gap: 0; padding: 4px 17px 13px; }
.audit-rank-row { align-items: center; border-bottom: 1px solid var(--border-soft); display: grid; gap: 10px; grid-template-columns: minmax(130px, 1fr) minmax(90px, .8fr) auto; min-height: 40px; }
.audit-rank-row:last-child, .audit-file-row:last-child { border-bottom: 0; }
.audit-rank-row code { color: #c5ccd0; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.audit-rank-bar { background: #2b3033; border-radius: 5px; height: 5px; overflow: hidden; }
.audit-rank-bar i { background: linear-gradient(90deg, #9b7f00, var(--accent-bright)); border-radius: inherit; display: block; height: 100%; min-width: 2px; }
.audit-rank-row b { color: var(--accent-bright); font-size: 9px; text-align: right; }
.audit-file-row { align-items: center; border-bottom: 1px solid var(--border-soft); display: grid; gap: 10px; grid-template-columns: 1fr auto auto; min-height: 40px; }
.audit-file-row code { color: #bfc7cb; font-size: 8px; }
.audit-file-row span { color: var(--muted); font-size: 8px; }
.audit-file-row b { color: #98a1a6; font-size: 8px; font-weight: 700; }
.audit-events-panel, .audit-fields-panel { margin-bottom: 13px; }
.audit-event-table { min-width: 1220px; }
.audit-field-table { min-width: 920px; }
.audit-identity { display: grid; gap: 2px; max-width: 210px; }
.audit-identity code { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; }
.audit-env { display: grid; gap: 3px; }
.audit-env strong { font-size: 9px; }
.audit-env span { color: var(--muted); font-size: 7px; }
.audit-preview { color: #aeb6bb; display: -webkit-box; font-size: 8px; line-height: 1.45; max-width: 320px; overflow: hidden; -webkit-box-orient: vertical; -webkit-line-clamp: 3; }
.privacy-badge, .origin-badge, .method-badge { border-radius: 9px; display: inline-flex; font-size: 7px; font-weight: 850; padding: 4px 7px; text-transform: uppercase; white-space: nowrap; }
.privacy-badge.high { background: var(--red-soft); color: #ff7f87; }
.privacy-badge.medium { background: rgba(242,166,25,.12); color: #f2bd51; }
.privacy-badge.low { background: var(--green-soft); color: #61d8a5; }
.origin-badge { background: rgba(255,255,255,.05); color: #aab2b7; }
.method-badge { background: var(--accent-soft); color: var(--accent-bright); margin-right: 7px; }
.audit-field-path { color: #c8d0d4; font-size: 8px; word-break: break-all; }
.audit-field-types { color: var(--muted); font-size: 8px; }
.audit-route-panel { margin-bottom: 20px; }
.audit-route-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); padding: 0 17px 17px; }
.audit-route-card { background: var(--field); border: 1px solid var(--border-soft); border-radius: 6px; padding: 14px; }
.audit-route-card h3 { align-items: center; color: #dde2e5; display: flex; font-size: 10px; margin: 0 0 7px; }
.audit-route-card > p { color: #929ba0; font-size: 8px; line-height: 1.5; margin: 0 0 12px; }
.audit-route-columns { display: grid; gap: 10px; grid-template-columns: 1fr 1fr; }
.audit-route-columns small { color: var(--muted); display: block; font-size: 7px; font-weight: 800; margin-bottom: 6px; text-transform: uppercase; }
.audit-route-columns ul { color: #abb3b8; font-size: 8px; line-height: 1.5; margin: 0; padding-left: 15px; }
.audit-route-sensitivity { border-top: 1px solid var(--border-soft); color: #f0bd53; font-size: 7px; margin-top: 10px; padding-top: 9px; }
.analytics-jump-nav { align-items: center; background: #1c1f21; border: 1px solid var(--border); border-radius: 7px; display: flex; gap: 4px; margin-bottom: 16px; overflow-x: auto; padding: 6px; }
.analytics-jump-nav button { background: transparent; border: 0; border-radius: 4px; color: #9ca5aa; font-size: 8px; font-weight: 800; min-height: 32px; padding: 0 14px; text-transform: uppercase; white-space: nowrap; }
.analytics-jump-nav button:hover { background: var(--accent-soft); color: var(--accent-bright); }
.analytics-section { border-bottom: 1px solid var(--border); margin-bottom: 22px; padding-bottom: 22px; scroll-margin-top: 120px; }
.analytics-title { align-items: flex-end; display: flex; justify-content: space-between; margin: 0 0 11px; }
.analytics-title h2 { font-size: 17px; margin: 3px 0 4px; }
.analytics-title p { color: var(--muted); font-size: 9px; margin: 0; }
.analytics-kpis { display: grid; gap: 8px; grid-template-columns: repeat(6, minmax(0, 1fr)); margin-bottom: 11px; }
.analytics-kpis article { background: linear-gradient(150deg, #24282b, #202326); border: 1px solid var(--border); border-radius: 6px; min-height: 92px; padding: 13px; position: relative; }
.analytics-kpis article::before { background: var(--accent); content: ""; height: 2px; left: 0; position: absolute; right: 0; top: 0; }
.analytics-kpis article.good::before { background: var(--green); }
.analytics-kpis article.bad::before { background: var(--red); }
.analytics-kpis small { color: #8f989d; display: block; font-size: 7px; font-weight: 850; letter-spacing: .07em; }
.analytics-kpis strong { color: #edf1f3; display: block; font-size: 20px; line-height: 1; margin: 12px 0 5px; }
.analytics-kpis article.good strong { color: #55d69b; }
.analytics-kpis article.bad strong { color: #ff747d; }
.analytics-kpis span { color: var(--muted); display: block; font-size: 7px; line-height: 1.35; }
.analytics-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-bottom: 10px; }
.analytics-grid-three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.analytics-grid-four { grid-template-columns: repeat(4, minmax(0, 1fr)); }
.analytics-grid .panel { min-width: 0; }
.analytics-grid .panel-head h3, .analytics-table-panel .panel-head h3 { font-size: 11px; margin: 2px 0 0; }
.analytics-list { display: grid; gap: 0; max-height: 285px; overflow: auto; padding: 4px 14px 12px; }
.analytics-list-row { align-items: center; border-bottom: 1px solid var(--border-soft); display: grid; gap: 8px; grid-template-columns: minmax(0, 1fr) minmax(52px, .55fr) auto; min-height: 38px; }
.analytics-list-row:last-child { border-bottom: 0; }
.analytics-list-row > span:first-child { color: #bbc3c7; font-size: 8px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.sensitive-list .analytics-list-row > span:first-child { color: #e5b2b5; }
.analytics-list-bar { background: #2b3033; border-radius: 5px; height: 4px; overflow: hidden; }
.analytics-list-bar i { background: linear-gradient(90deg, #9b7f00, var(--accent-bright)); border-radius: inherit; display: block; height: 100%; min-width: 2px; }
.danger-panel .analytics-list-bar i { background: linear-gradient(90deg, #9d3940, var(--red)); }
.analytics-list-row b { color: #aeb7bc; font-size: 8px; text-align: right; }
.analytics-list-empty { color: var(--muted); font-size: 8px; padding: 27px 8px; text-align: center; }
.analytics-table-panel { margin-bottom: 10px; }
.analytics-session-table, .analytics-search-table, .analytics-license-table, .analytics-support-table { min-width: 1180px; }
.analytics-last-table { min-width: 680px; }
.analytics-cell-stack { display: grid; gap: 3px; max-width: 290px; }
.analytics-cell-stack strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-cell-stack small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.analytics-query { color: #f0c4c7; display: block; font-size: 9px; max-width: 360px; white-space: normal; word-break: break-word; }
.analytics-category-tags { display: flex; flex-wrap: wrap; gap: 4px; }
.analytics-category-tags span { background: rgba(255,255,255,.05); border-radius: 8px; color: #9ca5aa; font-size: 7px; padding: 3px 6px; }
.plan-badge { background: var(--accent-soft); border-radius: 9px; color: var(--accent-bright); display: inline-flex; font-size: 7px; font-weight: 850; padding: 4px 7px; text-transform: uppercase; }
.plan-badge.free { background: rgba(255,255,255,.06); color: #aab2b7; }
.customer-linked { color: #62dba7; }
.customer-unlinked { color: var(--muted); }
.payload-dialog { background: #1b1e20; border: 1px solid #3b4449; border-radius: 8px; box-shadow: 0 28px 100px rgba(0,0,0,.62); color: var(--text); height: min(760px, calc(100vh - 50px)); max-width: min(1040px, calc(100vw - 32px)); padding: 0; width: 100%; }
.payload-dialog::backdrop { backdrop-filter: blur(4px); background: rgba(5,7,8,.78); }
.payload-dialog-head { align-items: flex-start; border-bottom: 1px solid var(--border); display: flex; justify-content: space-between; padding: 17px 19px; }
.payload-dialog-head h2 { font-size: 15px; margin: 4px 0; }
.payload-dialog-head p { color: var(--muted); font-size: 8px; margin: 0; }
.payload-dialog-head .icon-button { font-size: 23px; line-height: 1; }
.payload-dialog pre { background: #111315; color: #b8dce8; font-family: Consolas, "SFMono-Regular", monospace; font-size: 10px; height: calc(100% - 83px); line-height: 1.55; margin: 0; overflow: auto; padding: 20px; tab-size: 2; white-space: pre-wrap; word-break: break-word; }

.toast-region { bottom: 20px; display: grid; gap: 8px; max-width: min(360px, calc(100vw - 28px)); position: fixed; right: 20px; z-index: 100; }
.toast { align-items: start; animation: toast-in .22s ease both; background: #24282b; border: 1px solid #3b4247; border-left: 3px solid var(--accent); border-radius: 6px; box-shadow: 0 18px 55px rgba(0,0,0,.34); color: #d5dadd; display: flex; font-size: 10px; gap: 9px; line-height: 1.45; padding: 12px 14px; }
.toast.error { border-left-color: var(--red); }
.toast.success { border-left-color: var(--green); }
@keyframes toast-in { from { opacity: 0; transform: translateX(12px); } }

@media (max-width: 1180px) {
  .metric-grid { grid-template-columns: repeat(2, 1fr); }
  .overview-grid { grid-template-columns: 1fr; }
  .health-list { grid-template-columns: 1fr 1fr; column-gap: 20px; }
  .filter-panel { grid-template-columns: 1fr 1fr 1fr auto auto; }
  .license-form { grid-template-columns: repeat(3, 1fr); }
  .license-form .grow { grid-column: span 2; }
  .system-grid { grid-template-columns: 1fr 1fr; }
  .api-routes-panel { grid-column: 1 / -1; }
  .audit-filter-panel { grid-template-columns: 150px minmax(180px, .75fr) minmax(240px, 1.25fr) auto; }
  .audit-privacy-grid { grid-template-columns: repeat(2, 1fr); }
  .audit-privacy-card:first-child, .audit-privacy-card:last-child { border-radius: 0; }
  .analytics-kpis { grid-template-columns: repeat(3, 1fr); }
  .analytics-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  }

@media (max-width: 820px) {
  .appbar { padding: 0 13px; }
  .last-updated, .server-state { display: none; }
  .module-nav { padding: 0 6px; }
  .nav-item { padding: 0 14px; }
  .content-shell { padding: 20px 14px 70px; }
  .login-card { grid-template-columns: 1fr; }
  .login-visual { display: none; }
  .login-form { padding: 34px 26px; }
  .filter-panel { grid-template-columns: 1fr 1fr; }
  .filter-panel label:nth-child(3) { grid-column: span 2; }
  .split-layout, .release-layout { grid-template-columns: 1fr; }
  .sticky-panel { position: static; }
  .integration-grid { grid-template-columns: 1fr; }
  .system-grid { grid-template-columns: 1fr; }
  .api-routes-panel { grid-column: auto; }
  .health-list { grid-template-columns: 1fr; }
  .audit-filter-panel { grid-template-columns: 1fr 1fr; }
  .audit-filter-panel .audit-search-label { grid-column: 1 / -1; }
  .audit-insight-grid, .audit-route-grid { grid-template-columns: 1fr; }
  .analytics-grid, .analytics-grid-three { grid-template-columns: 1fr; }
}

@media (max-width: 560px) {
  .brand-copy small { display: none; }
  .page-heading { align-items: flex-start; flex-direction: column; }
  .heading-stat { border-left: 0; border-top: 1px solid var(--border); padding: 10px 0 0; text-align: left; width: 100%; }
  .filter-panel, .metric-grid, .feedback-metrics { grid-template-columns: 1fr; }
  .filter-panel label:nth-child(3) { grid-column: auto; }
  .filter-panel .button { width: 100%; }
  .toolbar-panel { align-items: stretch; flex-direction: column; }
  .toolbar-panel select { width: 100%; }
  .result-count { margin-left: 0; }
  .metric-card { min-height: 96px; }
  .license-form { grid-template-columns: 1fr; }
  .license-form .grow { grid-column: auto; }
  .two-columns, .release-details, .route-list { grid-template-columns: 1fr; }
  .notice-card { grid-template-columns: 32px 1fr; }
  .notice-card .action-row { grid-column: 1 / -1; }
  .chart-legend { display: none; }
  .security-note { display: none; }
  .audit-actions { width: 100%; }
  .audit-actions .button { flex: 1; }
  .audit-filter-panel, .audit-privacy-grid { grid-template-columns: 1fr; }
  .audit-filter-panel .audit-search-label { grid-column: auto; }
  .audit-route-columns { grid-template-columns: 1fr; }
  .analytics-title { align-items: flex-start; flex-direction: column; gap: 8px; }
  .analytics-kpis, .analytics-grid-four { grid-template-columns: 1fr; }
  .analytics-jump-nav { margin-left: -14px; margin-right: -14px; }
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; scroll-behavior: auto !important; transition-duration: .01ms !important; }
}

/* PUXAMIDIA admin shell --------------------------------------------------- */
body.app-authenticated { background: #0b0b0c; }
body.app-authenticated .ambient {
  background-image:
    linear-gradient(rgba(255,255,255,.018) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.018) 1px, transparent 1px),
    radial-gradient(circle at 80% 0, rgba(255,212,0,.055), transparent 34rem);
  background-size: 42px 42px, 42px 42px, auto;
  mask-image: linear-gradient(to bottom, #000, transparent 84%);
}

body.app-authenticated .appbar {
  align-items: stretch;
  background: linear-gradient(180deg, #141416 0%, #0d0d0f 100%);
  border-bottom: 0;
  border-right: 1px solid #2a2a2d;
  box-shadow: 12px 0 38px rgba(0,0,0,.22);
  flex-direction: column;
  height: 100vh;
  justify-content: flex-start;
  left: 0;
  padding: 21px 14px 16px;
  position: fixed;
  top: 0;
  width: 238px;
  z-index: 50;
}

body.app-authenticated .brand { min-height: 46px; padding: 0 8px; }
body.app-authenticated .brand-copy strong { font-size: 17px; letter-spacing: -.035em; }
body.app-authenticated .brand-copy small { color: #74746f; font-size: 6px; letter-spacing: .17em; }
body.app-authenticated .appbar-meta {
  align-items: stretch;
  border-top: 1px solid #29292c;
  display: grid;
  gap: 8px;
  grid-template-columns: 1fr auto auto;
  margin-top: auto;
  padding: 14px 5px 0;
}
body.app-authenticated .server-state { border-right: 0; grid-column: 1 / -1; padding: 0; }
body.app-authenticated .last-updated { color: #71716c; font-size: 7px; line-height: 1.35; }
body.app-authenticated .icon-button { background: #19191c; border-color: #303034; }

body.app-authenticated .dashboard { min-height: 100vh; }
body.app-authenticated .module-nav {
  align-items: stretch;
  background: transparent;
  border: 0;
  bottom: 116px;
  display: flex;
  flex-direction: column;
  gap: 3px;
  left: 0;
  overflow-x: hidden;
  overflow-y: auto;
  padding: 0 14px 18px;
  position: fixed;
  top: 84px;
  width: 238px;
  z-index: 60;
}
.nav-label {
  color: #5f5f5b;
  display: block;
  font-size: 7px;
  font-weight: 900;
  letter-spacing: .17em;
  margin: 17px 10px 4px;
}
.nav-label:first-child { margin-top: 4px; }
body.app-authenticated .nav-item {
  border: 1px solid transparent;
  border-radius: 7px;
  color: #94948f;
  flex: 0 0 auto;
  font-size: 10px;
  font-weight: 700;
  gap: 11px;
  justify-content: flex-start;
  min-height: 39px;
  padding: 0 10px;
  position: relative;
  width: 100%;
}
body.app-authenticated .nav-item::before {
  background: transparent;
  border-radius: 0 3px 3px 0;
  content: "";
  height: 18px;
  left: -15px;
  position: absolute;
  width: 3px;
}
body.app-authenticated .nav-item svg { height: 16px; width: 16px; }
body.app-authenticated .nav-item:hover { background: #19191c; color: #e5e5e1; }
body.app-authenticated .nav-item.active {
  background: linear-gradient(90deg, rgba(255,212,0,.13), rgba(255,212,0,.035));
  border-color: rgba(255,212,0,.16);
  color: var(--accent-bright);
}
body.app-authenticated .nav-item.active::before { background: var(--accent); }
body.app-authenticated .nav-item b { background: #29291f; color: #d7c55d; margin-left: auto; }
body.app-authenticated .nav-item.active b { background: var(--accent); color: #111; }

body.app-authenticated .content-shell {
  margin: 0 0 0 238px;
  max-width: 1740px;
  min-height: 100vh;
  padding: 32px 34px 86px;
}
.page-heading { align-items: center; margin-bottom: 20px; }
.page-heading h1 { color: var(--text); font-size: clamp(25px, 3vw, 32px); }
.page-heading p { font-size: 10px; }
.eyebrow, .panel-kicker { color: var(--accent); }
.section-heading { margin: 20px 0 12px; }
.section-heading h2 { color: var(--text); font-size: 15px; }

.button.primary { background: var(--accent); color: #111; }
.button.primary:hover { background: var(--accent-bright); }
.button.secondary:hover { background: var(--accent-soft); }
.text-button { color: var(--accent-bright); }

.filter-panel, .toolbar-panel {
  background: rgba(24,24,27,.9);
  border-color: #303034;
  box-shadow: 0 12px 38px rgba(0,0,0,.12);
}
.metric-card {
  background: linear-gradient(150deg, #19191c, #141416);
  border-color: #303034;
  border-radius: 8px;
  min-height: 104px;
}
.metric-card.featured::after { border-top-color: var(--accent); }
.metric-card strong { font-variant-numeric: tabular-nums; }
.metric-icon { border-radius: 7px; }
.panel {
  background: rgba(20,20,23,.94);
  border-color: #2d2d31;
  box-shadow: 0 16px 44px rgba(0,0,0,.12);
}
.panel-head, th, td { border-color: #28282c; }
th { background: #19191c; }
tbody tr:hover { background: rgba(255,212,0,.018); }
.table-button:hover { border-color: var(--accent); color: var(--accent-bright); }

.analytics-jump-nav {
  backdrop-filter: blur(14px);
  background: rgba(18,18,20,.9);
  border-color: #303034;
  margin: 0 0 18px;
  position: sticky;
  top: 0;
  z-index: 25;
}
.analytics-jump-nav button { border: 1px solid transparent; }
.analytics-jump-nav button:hover { color: var(--accent-bright); }
.analytics-jump-nav button.active {
  background: var(--accent);
  border-color: var(--accent);
  color: #101011;
}
.analytics-section { border-bottom: 0; display: none; margin: 0; padding: 0; }
.analytics-section.active { animation: view-in .18s ease both; display: block; }
.analytics-kpis article { background: linear-gradient(150deg, #19191c, #141416); border-color: #303034; }
.analytics-kpis article::before { background: var(--accent); }
.analytics-technical-section > .analytics-title { margin-top: 4px; }
.panel-description { color: var(--muted); font-size: 8px; line-height: 1.45; margin: 5px 0 0; }

.audit-guide {
  background: linear-gradient(135deg, rgba(255,212,0,.075), rgba(20,20,23,.94) 42%);
  border: 1px solid rgba(255,212,0,.2);
  border-radius: 8px;
  margin: 13px 0;
  padding: 17px;
}
.audit-guide-heading { align-items: center; display: flex; gap: 13px; }
.audit-guide-icon { align-items: center; background: var(--accent); border-radius: 7px; color: #111; display: flex; flex: 0 0 38px; height: 38px; justify-content: center; }
.audit-guide-icon svg { height: 18px; width: 18px; }
.audit-guide h2 { font-size: 15px; margin: 3px 0; }
.audit-guide-heading p { color: #a2a29c; font-size: 9px; line-height: 1.5; margin: 0; }
.audit-flow { align-items: center; display: grid; gap: 8px; grid-template-columns: 1fr auto 1fr auto 1fr auto 1fr; margin: 16px 0; }
.audit-flow > div { align-items: center; background: rgba(8,8,9,.5); border: 1px solid #303034; border-radius: 7px; display: flex; gap: 9px; min-height: 54px; padding: 9px 11px; }
.audit-flow > div > b { align-items: center; background: var(--accent-soft); border-radius: 50%; color: var(--accent-bright); display: flex; flex: 0 0 22px; font-size: 8px; height: 22px; justify-content: center; }
.audit-flow span { display: grid; gap: 2px; }
.audit-flow strong { font-size: 9px; }
.audit-flow small { color: var(--muted); font-size: 7px; }
.audit-flow > i { color: #6e6340; font-size: 13px; font-style: normal; }
.audit-glossary { display: grid; gap: 1px; grid-template-columns: repeat(4, minmax(0,1fr)); margin: 0; }
.audit-glossary > div { background: rgba(8,8,9,.38); border: 1px solid #2b2b2e; padding: 11px; }
.audit-glossary > div:first-child { border-radius: 6px 0 0 6px; }
.audit-glossary > div:last-child { border-radius: 0 6px 6px 0; }
.audit-glossary dt { color: var(--accent-bright); font-size: 8px; font-weight: 850; margin-bottom: 5px; text-transform: uppercase; }
.audit-glossary dd { color: #9b9b96; font-size: 8px; line-height: 1.5; margin: 0; }

@media (max-width: 1080px) and (min-width: 821px) {
  body.app-authenticated .metric-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.app-authenticated .filter-panel { grid-template-columns: 1fr 1fr; }
  body.app-authenticated .filter-panel label:nth-child(3) { grid-column: 1 / -1; }
  .analytics-grid-four { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-glossary > div:first-child, .audit-glossary > div:last-child { border-radius: 0; }
}

@media (max-width: 820px) {
  body.app-authenticated .appbar {
    align-items: center;
    padding: 17px 10px 12px;
    width: 76px;
  }
  body.app-authenticated .brand { justify-content: center; padding: 0; width: 100%; }
  body.app-authenticated .brand-copy { display: none; }
  body.app-authenticated .brand-mark { width: 46px; }
  body.app-authenticated .module-nav {
    align-items: center;
    bottom: 92px;
    padding: 0 10px 12px;
    top: 78px;
    width: 76px;
  }
  .nav-label { display: none; }
  body.app-authenticated .nav-item {
    justify-content: center;
    min-height: 44px;
    padding: 0;
    width: 48px;
  }
  body.app-authenticated .nav-item::before { left: -15px; }
  body.app-authenticated .nav-item > span { display: none; }
  body.app-authenticated .nav-item:hover::after {
    background: #222225;
    border: 1px solid #38383c;
    border-radius: 5px;
    color: #f3f3ef;
    content: attr(data-label);
    font-size: 8px;
    font-weight: 750;
    left: 56px;
    padding: 7px 9px;
    pointer-events: none;
    position: absolute;
    white-space: nowrap;
    z-index: 90;
  }
  body.app-authenticated .nav-item b {
    font-size: 6px;
    height: 14px;
    margin: 0;
    min-width: 14px;
    padding: 0 3px;
    position: absolute;
    right: 1px;
    top: 2px;
  }
  body.app-authenticated .appbar-meta {
    border-top: 0;
    display: flex;
    flex-direction: column;
    padding: 0;
  }
  body.app-authenticated .server-state,
  body.app-authenticated .last-updated { display: none; }
  body.app-authenticated .content-shell {
    margin-left: 76px;
    padding: 21px 18px 70px;
  }
  .analytics-jump-nav {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    overflow: visible;
    top: 0;
  }
  .analytics-jump-nav button { padding: 0 7px; }
  .audit-flow { grid-template-columns: 1fr 1fr; }
  .audit-flow > i { display: none; }
  .audit-glossary { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-glossary > div:first-child, .audit-glossary > div:last-child { border-radius: 0; }
}

@media (max-width: 560px) {
  body.app-authenticated .metric-grid,
  body.app-authenticated .feedback-metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  body.app-authenticated .metric-card { align-items: flex-start; flex-direction: column; gap: 10px; min-height: 140px; }
  body.app-authenticated .metric-card strong { font-size: 21px; }
  body.app-authenticated .filter-panel { grid-template-columns: 1fr 1fr; }
  body.app-authenticated .filter-panel label:nth-child(3) { grid-column: 1 / -1; }
  body.app-authenticated .filter-panel .button { width: auto; }
  .analytics-kpis { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .analytics-jump-nav { margin-left: 0; margin-right: 0; }
}

@media (max-width: 440px) {
  body.app-authenticated .content-shell { padding-left: 12px; padding-right: 12px; }
  body.app-authenticated .metric-grid,
  body.app-authenticated .feedback-metrics,
  .analytics-kpis { grid-template-columns: 1fr; }
  body.app-authenticated .metric-card { min-height: 102px; }
  .analytics-jump-nav { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .audit-flow, .audit-glossary { grid-template-columns: 1fr; }
}
