@font-face { font-family: Gilroy; src: url("/assets/gilroy-medium.ttf") format("truetype"); font-weight: 400 500; font-display: swap; }
@font-face { font-family: Gilroy; src: url("/assets/gilroy-semibold.ttf") format("truetype"); font-weight: 600; font-display: swap; }
@font-face { font-family: Gilroy; src: url("/assets/gilroy-bold.ttf") format("truetype"); font-weight: 700 900; font-display: swap; }

/* MYB HQ's look (myb-hq/dist/styles.css): its tokens, top bar, sidebar, page heading, metrics, panels and tables. */
:root {
  color-scheme: light;
  --bg: #fff; --sidebar: #fff; --panel: #fff; --panel-alt: #f4f6fa; --hover: #f4effe; --line: #e4e7ee;
  --fg: #111a39; --muted: #677087; --faint: #74718a; --accent: #7133db; --accent-ink: #fff;
  --good: #167b63; --bad: #b62645; --amber: #956208; --tint: #f7f2ff; --shadow: 0 20px 80px #24104422; --brand-dark: #070d1f;
}
:root[data-theme=dark] {
  color-scheme: dark;
  --bg: #0d1223; --sidebar: #11182b; --panel: #161e34; --panel-alt: #1f2942; --hover: #282b49; --line: #30394f;
  --fg: #f5f3fb; --muted: #b3b9cf; --faint: #a3abc2; --accent: #b78af7; --accent-ink: #111a39;
  --good: #82d4b1; --bad: #ffa4bb; --amber: #e8c278; --tint: #211b38; --shadow: 0 20px 80px #0006;
}

* { box-sizing: border-box; }
body { margin: 0; font: 15px/1.5 Gilroy, Arial, sans-serif; background: var(--bg); color: var(--fg); -webkit-font-smoothing: antialiased; }
button, select, input { font: inherit; color: inherit; }
button { cursor: pointer; border: 0; background: none; padding: 0; }
button:disabled { cursor: default; opacity: .5; }
:is(button, a, select, input, summary):focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
a { color: inherit; text-decoration: none; }
h1, h2, h3, p { margin: 0; }
h1 { font-size: 30px; line-height: 1.2; font-weight: 600; letter-spacing: -.8px; }
h2 { font-size: 18px; font-weight: 600; letter-spacing: -.35px; }
svg { display: block; }
.muted { color: var(--muted); }
.error { color: var(--bad); }
.negative { color: var(--bad); }
.amber { color: var(--amber); }

/* Top bar and sidebar */
.topbar { position: fixed; inset: 0 0 auto; height: 72px; z-index: 10; display: flex; align-items: center; gap: 30px; padding: 0 32px; background: var(--brand-dark); color: #fff; border-bottom: 1px solid #ffffff20; }
.brand img { display: block; width: 166px; height: auto; }
.breadcrumb { display: flex; align-items: center; margin-right: auto; font-size: 14px; }
.breadcrumb span:first-child { color: #c4c5d1; }
.slash { margin: 0 13px; color: #aaa9bf; }
.theme-button { border: 1px solid #ffffff60; border-radius: 50px; background: #ffffff12; color: #fff; padding: 10px 18px; font-size: 14px; min-height: 42px; white-space: nowrap; }
.theme-button:hover { background: #ffffff22; }
.sidebar { position: fixed; top: 72px; bottom: 0; left: 0; width: 238px; z-index: 5; display: flex; flex-direction: column; padding: 24px 18px 18px; background: var(--sidebar); border-right: 1px solid var(--line); overflow: auto; }
.nav-label { font-size: 10px; letter-spacing: 1.2px; color: var(--faint); font-weight: 600; margin: 0 12px 9px; }
.nav-link { display: flex; gap: 13px; align-items: center; padding: 13px; margin: 3px 0; border-radius: 12px; font-size: 14px; font-weight: 700; }
.nav-link svg { width: 18px; height: 18px; }
.nav-link:hover, .nav-link.active { background: var(--hover); }
.nav-link.active { color: var(--accent); }
.profile { margin-top: auto; border-top: 1px solid var(--line); padding-top: 16px; display: flex; align-items: center; gap: 9px; font-size: 12px; min-width: 0; }
.profile > div { min-width: 0; flex: 1; }
.profile small { display: block; color: var(--faint); font-size: 11px; overflow: hidden; text-overflow: ellipsis; }
.avatar { width: 32px; height: 32px; border-radius: 50%; display: grid; place-content: center; background: #eee5fc; color: #6027bf; font-size: 11px; font-weight: 600; flex-shrink: 0; }

/* Page */
.app-shell { margin-left: 238px; padding-top: 72px; }
main { padding: 30px 36px 40px; max-width: 1700px; margin: auto; }
.page-heading { display: flex; align-items: center; gap: 16px; margin-bottom: 24px; padding: 24px; background: var(--tint); border: 1px solid color-mix(in srgb, var(--accent) 12%, var(--line)); border-radius: 6px 28px 28px 28px; }
.broll-e { width: 70px; height: 64px; flex-shrink: 0; }
.eyebrow { font-size: 10px; font-weight: 700; letter-spacing: 1.3px; color: var(--accent); margin-bottom: 9px; }
.title-dot { color: var(--accent); }
.page-description { font-size: 15px; line-height: 1.6; color: var(--muted); margin-top: 9px; max-width: 650px; }
.loading { padding: 140px 16px; text-align: center; color: var(--muted); }

/* Controls */
.button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; border-radius: 8px; padding: 9px 16px; min-height: 42px; font-size: 14px; font-weight: 700; white-space: nowrap; }
.button svg { width: 16px; height: 16px; }
.primary-button { background: var(--accent); color: var(--accent-ink); }
.secondary-button { background: var(--panel); border: 1px solid color-mix(in srgb, var(--accent) 20%, var(--line)); font-weight: 600; }
.button:hover:not(:disabled) { filter: brightness(1.13); }
.text-button { color: var(--accent); font-size: 13px; font-weight: 600; padding: 6px 0; }
.filterbar { display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; margin-bottom: 18px; }
.filter-fields { display: flex; gap: 10px; flex-wrap: wrap; }
.filterbar label { display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); color: var(--muted); font-size: 13px; }
.filterbar label:focus-within { border-color: var(--accent); }
.filterbar select, .filterbar input { background: transparent; border: 0; color: var(--fg); font-size: 13px; outline: none; }
.filterbar select option { background: var(--panel); }
.search { flex: 1; min-width: 240px; max-width: 520px; }
.search input { flex: 1; min-width: 0; }
.search svg { width: 16px; height: 16px; flex-shrink: 0; }

/* Metrics, panels, table */
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin-bottom: 22px; }
.metric { border: 1px solid var(--line); border-radius: 18px; background: var(--panel); padding: 20px; box-shadow: 0 3px 14px #24104403; }
.metric.highlight { background: var(--tint); border-color: color-mix(in srgb, var(--accent) 18%, var(--line)); }
.metric.highlight .metric-value { color: var(--accent); }
.metric-label { font-size: 13px; color: var(--muted); }
.metric-value { font-size: 28px; font-weight: 600; letter-spacing: -.9px; margin-top: 8px; font-variant-numeric: tabular-nums; }
.panel { background: var(--panel); border: 1px solid var(--line); border-radius: 18px; overflow: hidden; box-shadow: 0 3px 14px #24104403; }
.empty-state { padding: 35px; color: var(--muted); }
.table-wrap { overflow: auto; position: relative; }
.data-table { border-collapse: collapse; width: 100%; font-size: 13px; white-space: nowrap; }
.data-table th { text-align: left; color: var(--muted); font-weight: 500; font-size: 12px; padding: 13px 18px; border-bottom: 1px solid var(--line); background: color-mix(in srgb, var(--panel-alt) 50%, transparent); }
.data-table td { padding: 14px 18px; border-bottom: 1px solid var(--line); font-variant-numeric: tabular-nums; }
.data-table th:first-child, .data-table td:first-child { padding-left: 22px; }
.data-table tr:last-child td { border-bottom: 0; }
.data-table tbody tr { cursor: pointer; }
.data-table tbody tr:hover td { background: var(--hover); }
.clip { max-width: 340px; overflow: hidden; text-overflow: ellipsis; }
.row-button { font-weight: 600; text-align: left; }
.row-button:hover { color: var(--accent); }
.table-note { padding: 10px 22px; border-top: 1px solid var(--line); }
.pill { display: inline-block; border-radius: 5px; padding: 3px 8px; font-size: 11px; font-weight: 600; text-transform: capitalize; background: var(--panel-alt); color: var(--muted); }
.pill.green { background: color-mix(in srgb, var(--good) 11%, transparent); color: var(--good); }
.pill.amber { background: color-mix(in srgb, var(--amber) 10%, transparent); color: var(--amber); }
.pill.red { background: color-mix(in srgb, var(--bad) 10%, transparent); color: var(--bad); }

/* Log entry */
dialog { width: min(980px, calc(100% - 32px)); max-height: 90vh; border: 1px solid var(--line); border-radius: 18px; padding: 25px; background: var(--panel); color: var(--fg); box-shadow: var(--shadow); }
dialog::backdrop { background: #0009; backdrop-filter: blur(4px); }
.dialog-head { display: flex; align-items: center; gap: 12px; }
.dialog-head .muted { margin-right: auto; font-size: 13px; }
.icon-button { background: var(--panel-alt); border-radius: 6px; font-size: 22px; line-height: 1; width: 32px; height: 32px; }
dialog h2 { font-size: 24px; margin: 14px 0 6px; overflow-wrap: anywhere; }
.detail-list { margin: 16px 0 22px; }
.detail-list > div { display: flex; justify-content: space-between; gap: 24px; padding: 11px 0; border-bottom: 1px solid var(--line); font-size: 13px; }
.detail-list span { color: var(--muted); flex-shrink: 0; }
.detail-list strong { font-weight: 500; text-align: right; overflow-wrap: anywhere; }
.section-label { font-size: 13px; font-weight: 600; margin-bottom: 10px; }
.email-frame { display: block; width: 100%; height: 60vh; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.note { color: var(--muted); font-size: 13px; margin-top: 14px; }
.note summary { cursor: pointer; font-weight: 600; }
.note p { margin-top: 6px; overflow-wrap: anywhere; }
.note pre { margin: 10px 0 0; padding: 14px; max-height: 360px; overflow: auto; background: var(--panel-alt); border-radius: 10px; color: var(--fg); font: 12px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }

/* Templates */
.templates { display: grid; grid-template-columns: 150px 260px minmax(0, 1fr); height: max(560px, calc(100vh - 300px)); }
.list { overflow-y: auto; padding: 10px; border-right: 1px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.list button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 8px 10px; border-radius: 9px; text-align: left; font-size: 13px; }
.list button:hover { background: var(--hover); }
.list button.active { background: var(--hover); color: var(--accent); font-weight: 700; }
.list-label { margin: 14px 10px 4px; font-size: 11px; font-weight: 600; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); }
.list-note { margin: 4px 10px 8px; font-size: 12px; line-height: 1.5; }
.list-note code { font-size: 11px; }
.count, .tag { margin-left: auto; font-size: 11px; color: var(--muted); font-weight: 500; }
.tag { border: 1px solid var(--line); border-radius: 5px; padding: 0 5px; }
.preview { display: flex; flex-direction: column; gap: 10px; padding: 16px 20px; min-width: 0; min-height: 0; }
.preview-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.preview-head h2 { margin-right: auto; font-size: 16px; }
.preview .note { margin-top: 0; }
.preview .email-frame { flex: 1; height: auto; min-height: 300px; }
.empty { place-self: center; color: var(--muted); }

/* Dashboard */
.dash-toolbar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; font-size: 13px; }
.segmented { display: inline-flex; padding: 3px; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); }
.segmented button { padding: 7px 14px; border-radius: 7px; font-size: 13px; font-weight: 600; color: var(--muted); }
.segmented button[aria-pressed="true"] { background: var(--tint); color: var(--accent); }
.dashboard.refreshing { opacity: .6; transition: opacity .2s; }
.metric-note { font-size: 12px; color: var(--muted); margin-top: 6px; }
.metric-value.negative { color: var(--bad); }
.dash-panel { margin-bottom: 18px; overflow: visible; }
.dash-panel-head { padding: 18px 22px 0; }
.dash-panel-head h2 { font-size: 16px; letter-spacing: -.2px; }
.dash-panel-head p { font-size: 13px; margin-top: 3px; }
.dash-panel > .table-wrap, .dash-panel > .empty-state, .dash-panel > .problems { margin-top: 12px; }
.dash-chart { padding: 14px 22px 18px; }
.dash-chart .legend { margin-bottom: 10px; }
.dash-table .num, .dash-table th.num { text-align: right; }
.dash-table tr.selected td { background: var(--tint); }
.dash-table.static tbody tr { cursor: default; }
.grid-2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.problems { list-style: none; margin: 0; padding: 0 0 6px; }
.problems li { display: flex; align-items: flex-start; gap: 12px; padding: 12px 22px; border-top: 1px solid var(--line); font-size: 13px; }
.problems a { flex: 1; min-width: 0; color: inherit; }
.problems a:hover strong { color: var(--accent); }
.problems .sub { overflow-wrap: anywhere; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 18px; list-style: none; margin: 0; padding: 0; font-size: 12px; color: var(--muted); }
.legend li { display: inline-flex; align-items: center; gap: 7px; }
.legend strong { color: var(--fg); font-weight: 600; font-variant-numeric: tabular-nums; }
.legend-key, .tip-key { display: inline-block; width: 10px; height: 10px; border-radius: 3px; }
.chart { position: relative; width: 100%; }
.chart-svg { display: block; width: 100%; height: auto; overflow: visible; font-family: inherit; }
.chart-svg:focus-visible { outline: 2px solid var(--accent); outline-offset: 4px; border-radius: 6px; }
.chart-svg text { font-size: 11px; fill: var(--muted); font-variant-numeric: tabular-nums; }
.chart-svg .grid { stroke: var(--line); stroke-width: 1; }
.chart-svg .baseline { stroke: color-mix(in srgb, var(--muted) 60%, var(--line)); stroke-width: 1; }
.chart-svg .hover-band { fill: var(--hover); opacity: .7; }
.chart-svg .dim { opacity: .45; }
.chart-svg .chart-empty { font-size: 13px; fill: var(--muted); }
.chart-empty-block { padding: 28px 0; text-align: center; color: var(--muted); font-size: 13px; }
.chart-svg.bars .bar-label { font-size: 12px; fill: var(--fg); }
.chart-svg.bars .bar-value { font-size: 12px; fill: var(--muted); }
.chart-svg.bars .row-hit { fill: transparent; }
.chart-svg.bars .bar-row.active .row-hit { fill: var(--hover); opacity: .6; }
.chart-tip { position: absolute; z-index: 5; pointer-events: none; min-width: 150px; padding: 9px 11px; border-radius: 9px; background: var(--panel); border: 1px solid var(--line); box-shadow: 0 10px 30px #1118352e; font-size: 12px; transform: translate(-50%, -100%); margin-top: -8px; white-space: nowrap; }
.chart-tip.start { transform: translate(0, -100%); }
.chart-tip.end { transform: translate(-100%, -100%); }
.chart-svg.bars + .chart-tip { transform: translate(0, 4px); margin-top: 0; }
.chart-tip-title { font-weight: 600; color: var(--fg); margin-bottom: 5px; }
.chart-tip-row { display: flex; align-items: center; gap: 7px; color: var(--muted); line-height: 1.7; }
.chart-tip-row strong { color: var(--fg); font-variant-numeric: tabular-nums; min-width: 28px; }

/* API docs */
.docs { display: grid; gap: 18px; }
.docs-section { padding: 20px 22px; display: grid; gap: 12px; overflow: visible; }
.docs-section h2 { font-size: 16px; }
.docs-section p, .docs-section li { font-size: 14px; line-height: 1.6; max-width: 78ch; }
.docs-section ul { display: grid; gap: 10px; padding-left: 20px; }
.docs-section .table-wrap { border: 1px solid var(--line); border-radius: 12px; }
.docs-section code, .docs-code { font: 12.5px/1.6 ui-monospace, SFMono-Regular, Menlo, monospace; }
.docs-section p code, .docs-section li code { background: var(--panel-alt); padding: 1px 5px; border-radius: 4px; }
.docs-code { margin: 0; padding: 14px 16px; background: var(--panel-alt); border-radius: 12px; overflow-x: auto; color: var(--fg); }
.docs-wrap { white-space: normal; min-width: 220px; }

/* Log entry: sending again */
.retry-box { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; margin: 4px 0 14px; font-size: 13px; }
.retry-box .text-button { display: inline-flex; align-items: center; gap: 8px; }

/* Suppression list */
.auto-panel { display: flex; align-items: flex-start; justify-content: space-between; gap: 24px; padding: 20px 22px; margin-bottom: 22px; }
.auto-panel h2 { font-size: 16px; margin-bottom: 6px; }
.auto-panel p { font-size: 13px; max-width: 720px; margin-top: 4px; }
.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 600; flex: none; }
.switch-track { width: 38px; height: 22px; border-radius: 11px; background: var(--line); position: relative; transition: background .15s; }
.switch-thumb { position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%; background: var(--panel); box-shadow: 0 1px 3px #0003; transition: transform .15s; }
.switch[aria-checked="true"] .switch-track { background: var(--accent); }
.switch[aria-checked="true"] .switch-thumb { transform: translateX(16px); }
.tabs { display: flex; gap: 22px; border-bottom: 1px solid var(--line); margin-bottom: 18px; }
.tabs button { padding: 10px 0; font-size: 14px; font-weight: 600; color: var(--muted); border-bottom: 2px solid transparent; margin-bottom: -1px; }
.tabs button.active { color: var(--accent); border-bottom-color: var(--accent); }
.add-form { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.pill.as-is { text-transform: none; }

/* Settings sections and API keys */
.section-title { margin: 8px 0 14px; }
.section-title h2 { font-size: 18px; letter-spacing: -.3px; }
.section-title p { font-size: 13px; margin-top: 4px; max-width: 760px; }
.section-panel { margin-bottom: 34px; }
.sub { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; white-space: normal; }
.new-key { padding: 18px 22px; margin-bottom: 14px; background: var(--tint); border-color: color-mix(in srgb, var(--accent) 25%, var(--line)); }
.new-key code { display: block; margin: 10px 0; padding: 10px 12px; border-radius: 8px; background: var(--panel); font: 13px/1.4 ui-monospace, SFMono-Regular, Menlo, monospace; overflow-wrap: anywhere; user-select: all; }
.new-key-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 14px; margin-bottom: 8px; }
.new-key p { font-size: 13px; }
.new-key p + p { margin-top: 6px; }
.replace-key .new-key-actions { margin: 14px 0 0; }
.new-key p code { display: inline; margin: 0 2px; padding: 2px 6px; font-size: 12px; white-space: nowrap; }
.data-table code { font: 12px ui-monospace, SFMono-Regular, Menlo, monospace; }
tr.revoked td { color: var(--muted); }
.key-actions { display: inline-flex; gap: 16px; }
.replace-key label { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; }
.replace-key select, .replace-key input { background: var(--panel); color: var(--fg); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; }
.replace-key input { width: 110px; }

/* Settings */
.settings-note { min-height: 21px; margin: -6px 0 12px; font-size: 13px; }
.settings-table tbody tr { cursor: default; }
.settings-table td:last-child { text-align: right; padding-right: 22px; }
.visually-hidden { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }

/* A newer UI is deployed: ask for a refresh, as in MYB Support */
.update-banner { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 70; display: flex; align-items: center; gap: 12px; max-width: calc(100vw - 32px); padding: 10px 12px 10px 16px; border-radius: 12px; background: var(--brand-dark); color: #fff; font-size: 13px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent); box-shadow: 0 12px 32px #0005; }
.update-banner svg { flex: none; }
.update-banner .button { flex: none; min-height: 36px; padding: 7px 14px; }
@media (max-width: 760px) { .update-banner { left: 16px; right: 16px; bottom: 76px; transform: none; flex-wrap: wrap; } }

/* The old herokuapp.com address */
.old-address { position: sticky; top: 0; z-index: 60; padding: 10px 16px; text-align: center; font-size: 13px; font-weight: 600; background: color-mix(in srgb, var(--amber) 16%, var(--panel)); color: var(--fg); border-bottom: 1px solid color-mix(in srgb, var(--amber) 40%, var(--line)); }
.old-address a { color: var(--accent); text-decoration: underline; }

/* Sign in, as in MYB Support */
.signin { display: grid; grid-template-rows: auto 1fr auto; min-height: 100vh; min-height: 100dvh; background: radial-gradient(ellipse at 18% 40%, var(--tint), transparent 65%), var(--bg); animation: signin-fade .45s cubic-bezier(.2, .7, .2, 1); }
.signin-header { display: flex; align-items: center; gap: 24px; min-height: 80px; padding: 20px 36px; }
.signin-header a { display: inline-flex; flex-shrink: 0; }
.signin-header img { width: 168px; height: auto; }
.signin-product { border-left: 1px solid var(--line); padding-left: 24px; font-size: 13px; color: var(--muted); }
.signin-main { display: flex; align-items: center; justify-content: center; min-width: 0; padding: 24px 36px; }
.signin-panel { width: 100%; max-width: 450px; padding: 42px; border: 1px solid var(--line); border-radius: 22px; background: var(--panel); box-shadow: 0 20px 70px #14102b0b; animation: signin-rise .5s cubic-bezier(.2, .7, .2, 1); }
.signin-icon { display: grid; place-items: center; width: 46px; height: 46px; margin-bottom: 26px; border: 1px solid var(--line); border-radius: 13px; background: var(--tint); color: var(--accent); }
.signin-icon svg { width: 25px; height: 25px; }
.signin-eyebrow { font-size: 10px; letter-spacing: 1.5px; color: var(--muted); font-weight: 600; margin-bottom: 10px; }
.signin-panel h1 { font-size: 30px; font-weight: 700; letter-spacing: -.6px; line-height: 1.2; margin-bottom: 14px; }
.signin-intro { color: var(--muted); font-size: 14px; line-height: 1.65; margin-bottom: 28px; overflow-wrap: anywhere; }
.signin-button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 14px 16px; border-radius: 10px; background: var(--accent); color: var(--accent-ink); font-size: 14px; font-weight: 600; line-height: 1.4; box-shadow: 0 4px 10px #7133db18; }
.signin-button:hover:not(:disabled) { filter: brightness(1.1); }
.signin-button:disabled { cursor: wait; opacity: .65; }
.signin-button svg { flex: 0 0 19px; width: 19px; height: 19px; }
.signin-arrow { margin-left: auto; font-size: 20px; line-height: 1; }
.signin-provider { color: var(--muted); font-size: 11px; text-align: center; margin: 13px 0 18px; }
.signin-provider > span { margin: 0 4px; }
.signin-help { border-top: 1px solid var(--line); padding-top: 22px; }
.signin-help strong { font-size: 12px; font-weight: 600; }
.signin-help p { font-size: 12px; color: var(--muted); line-height: 1.6; margin-top: 5px; }
.signin-footer { display: flex; justify-content: space-between; gap: 20px; padding: 18px 36px; color: var(--muted); font-size: 11px; }
.for-dark { display: none; }
img.for-light { mix-blend-mode: multiply; }
:root[data-theme="dark"] .for-dark { display: inline; }
:root[data-theme="dark"] .for-light { display: none; }
:root[data-theme="dark"] .signin-panel { box-shadow: var(--shadow); }
@keyframes signin-rise { from { opacity: 0; transform: translateY(8px); } }
@keyframes signin-fade { from { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .signin, .signin-panel { animation: none; } }
@media (max-width: 560px) {
  .signin-header { padding: 16px 20px; min-height: 68px; }
  .signin-header img { width: 130px; }
  .signin-product { display: none; }
  .signin-main { padding: 10px 18px; }
  .signin-panel { padding: 25px; }
  .signin-panel h1 { font-size: 27px; }
  .signin-footer { padding: 14px 20px; font-size: 10px; }
}

@media (max-width: 1100px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .grid-2 { grid-template-columns: minmax(0, 1fr); }
  .auto-panel { flex-direction: column; }
}
@media (max-width: 760px) {
  .topbar { height: 60px; padding: 0 16px; gap: 12px; }
  .brand img { width: 124px; }
  .breadcrumb { display: none; }
  .theme-button { margin-left: auto; padding: 6px 12px; min-height: 34px; font-size: 12px; }
  .sidebar { top: auto; width: 100%; height: 64px; flex-direction: row; align-items: center; padding: 0 8px; border-right: 0; border-top: 1px solid var(--line); }
  .sidebar nav { display: flex; gap: 4px; }
  .nav-label, .profile .avatar, .profile > div { display: none; }
  .nav-link { margin: 0; padding: 9px 12px; }
  .nav-link span { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
  .profile { margin: 0 0 0 auto; padding: 0 8px; border: 0; }
  .app-shell { margin-left: 0; padding: 60px 0 64px; }
  main { padding: 20px 16px 32px; }
  .page-heading { padding: 18px; border-radius: 6px 22px 22px 22px; }
  .broll-e { width: 48px; height: 44px; }
  h1 { font-size: 25px; }
  .page-description { font-size: 14px; }
  .search { min-width: 0; max-width: none; flex-basis: 100%; }
  .metric { padding: 16px; }
  .metric-value { font-size: 24px; }
  dialog { padding: 18px; }
  .templates { grid-template-columns: minmax(0, 1fr); height: auto; }
  .list { flex-direction: row; flex-wrap: wrap; max-height: 30vh; border-right: 0; border-bottom: 1px solid var(--line); }
  .list button { width: auto; }
  .preview .email-frame { min-height: 70vh; }
}
