:root {
  color-scheme: dark;
  --ink: #f3f2ed;
  --muted: #abb8c8;
  --quiet: #92a1b5;
  --base: #0c131d;
  --surface: #121d2b;
  --lift: #182637;
  --line: #29394e;
  --orange: #ff803a;
  --orange-soft: #ffb381;
  --teal: #73d6bb;
  --danger: #ff9b9e;
  --body: "Segoe UI", system-ui, sans-serif;
}

*, *::before, *::after { box-sizing: border-box; }
body { margin: 0; min-width: 260px; background: var(--base); color: var(--ink); font: 400 0.95rem/1.5 var(--body); }
[hidden] { display: none !important; }
button, input, select, textarea { font: inherit; }
a { color: inherit; text-decoration: none; }
a:hover { text-decoration: underline; text-underline-offset: .22em; }
svg, img { display: block; }
:focus-visible { outline: 2px solid var(--orange); outline-offset: 3px; }
:focus:not(:focus-visible) { outline: none; }
:where(h1, h2, h3, p) { margin: 0; }
.skip { position: fixed; top: .5rem; left: .5rem; z-index: 6; transform: translateY(-200%); padding: .65rem .85rem; background: var(--orange); color: #1a120a; }
.skip:focus { transform: none; }
.initial { min-height: 85vh; display: grid; justify-content: center; align-content: center; gap: 1rem; color: var(--muted); text-align: center; }
.initial img { width: 11rem; height: auto; margin: auto; }
.brand { display: block; width: 8.5rem; }
.brand img { width: 100%; height: auto; }

.auth { min-height: 100vh; display: grid; grid-template-columns: minmax(24rem, .86fr) 1fr; }
.auth-main { padding: clamp(1.3rem, 5vw, 4.5rem); align-self: center; }
.auth-main .brand { width: 9.5rem; margin-bottom: 2.7rem; }
.auth-content { max-width: 29rem; }
.auth-content h1 { font-size: clamp(2.35rem, 4vw, 3.5rem); font-weight: 780; letter-spacing: -.055em; line-height: 1.04; }
.auth-content p { margin: .8rem 0 0; color: var(--muted); }
.auth-content form { margin: 1.35rem 0 1rem; }
.auth-links { display: flex; flex-wrap: wrap; gap: .45rem 1rem; }
.auth-links .text-link { min-height: 40px; }
.auth-photo { position: relative; align-self: stretch; background: #111e2c url("/assets/stadium.webp") center right / cover; isolation: isolate; }
.auth-photo::before { content: ""; position: absolute; inset: 0; background: linear-gradient(0deg, #090f18e8, #101a293d 62%); z-index: -1; }

.workspace { display: grid; grid-template-columns: 15rem minmax(0, 1fr); min-height: 100vh; }
.sidebar { align-self: start; position: sticky; top: 0; min-height: 100vh; display: flex; flex-direction: column; background: #101a27; border-right: 1px solid var(--line); }
.sidebar-top { padding: 1.5rem 1.3rem 1.15rem; border-bottom: 1px solid var(--line); }
.sidebar-top .brand { margin-bottom: .75rem; }
.sidebar-top span { display: block; color: var(--muted); font-size: .84rem; font-weight: 650; }
.sidebar nav { display: grid; gap: .2rem; padding: 1.1rem .7rem; }
.sidebar nav a { display: flex; align-items: center; gap: .65rem; min-height: 42px; padding: .5rem .65rem; border-left: 2px solid transparent; border-radius: .25rem; color: var(--muted); font-weight: 620; white-space: nowrap; }
.sidebar nav a:hover { background: #172538; text-decoration: none; color: var(--ink); }
.sidebar nav a[aria-current] { background: #263142; border-left-color: var(--orange); color: var(--ink); }
.sidebar nav a[aria-current] svg { color: var(--orange-soft); }
.sidebar nav a[href="#support"] { margin-top: .55rem; }
.sidebar-footer { margin: auto .7rem .8rem; border-top: 1px solid var(--line); padding: .75rem .52rem 0; }
.sidebar-footer a { display: inline-flex; align-items: center; min-height: 38px; gap: .55rem; color: var(--muted); }
.icon { width: 18px; height: 18px; stroke: currentColor; stroke-width: 1.65; fill: none; stroke-linecap: round; stroke-linejoin: round; flex: none; }
.workzone { min-width: 0; }
.topbar { display: flex; align-items: center; justify-content: space-between; min-height: 64px; gap: 1rem; padding: .65rem clamp(1.2rem, 3.1vw, 3rem); border-bottom: 1px solid var(--line); background: #0f1824; }
.bread { display: flex; align-items: center; flex-wrap: wrap; gap: .45rem; color: var(--quiet); font-size: .9rem; }
.bread strong { color: var(--ink); font-weight: 650; }
.profile { display: flex; align-items: center; justify-content: end; gap: .7rem; }
.profile .mobile-public { display: none; }
.profile-name { max-width: 14rem; text-overflow: ellipsis; overflow: hidden; white-space: nowrap; font-size: .88rem; font-weight: 650; }
.workmain { width: min(100%, 1510px); margin: auto; padding: clamp(1.15rem, 3.15vw, 3rem); }
.page-heading { margin-bottom: 1.55rem; }
.page-heading h1 { font-size: clamp(2rem, 3.5vw, 3.55rem); letter-spacing: -.055em; font-weight: 790; line-height: 1.06; }
.page-heading p { max-width: 65ch; margin: .5rem 0 0; color: var(--muted); }
.panel { background: var(--surface); border: 1px solid var(--line); border-radius: .55rem; padding: clamp(.85rem, 1.65vw, 1.4rem); min-width: 0; }
.panel h2 { font-size: 1.2rem; letter-spacing: -.022em; line-height: 1.25; }
.panel h3 { font-size: 1rem; line-height: 1.25; }
.panel-head { display: flex; justify-content: space-between; align-items: start; flex-wrap: wrap; gap: .65rem; margin-bottom: .75rem; }
.panel-head p { margin-top: .3rem; color: var(--muted); font-size: .88rem; }
.stack { display: grid; gap: 1rem; }
.columns { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1rem; align-items: start; }
.split { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(17rem, 1fr); gap: 1rem; align-items: start; }
.metrics { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border: 1px solid var(--line); border-radius: .55rem; overflow: hidden; background: var(--surface); }
.metric { min-height: 107px; min-width: 0; padding: .9rem 1.05rem; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.metric:nth-child(4n) { border-right: 0; }
.metric:nth-last-child(-n+4) { border-bottom: 0; }
.metric dt { font-size: .87rem; font-weight: 600; color: var(--muted); }
.metric dd { margin: .2rem 0 0; font-size: clamp(1.55rem, 3vw, 2.5rem); line-height: 1.1; font-weight: 730; font-variant-numeric: tabular-nums; letter-spacing: -.045em; }
.metric dd a:hover { color: var(--orange-soft); text-decoration: none; }
.metrics, .table, .tag-list, .list-reset { margin: 0; }
.metrics--short { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.metrics--short .metric { border-bottom: 0; }
.metrics--short .metric:nth-child(2n) { border-right: 0; }
.analytics-toolbar { display: flex; justify-content: end; }
.matomo-report { display: grid; gap: .75rem; }
.metrics.metrics--matomo { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.metrics.metrics--matomo > .metric { border-bottom: 0; border-right: 1px solid var(--line); }
.metrics--matomo .metric:last-child { border-right: 0; }
.matomo-settings .notice { margin: .65rem 0 0; }
.matomo-settings .check { min-height: 38px; }
.list-reset { padding: 0; list-style: none; }
.row-list > li { min-width: 0; display: flex; align-items: start; justify-content: space-between; gap: .65rem; border-top: 1px solid var(--line); padding: .67rem 0; }
.row-list > li:last-child { padding-bottom: 0; }
.row-list > li > * { min-width: 0; }
.meta { font-size: .86rem; color: var(--muted); overflow-wrap: anywhere; }
.notice { color: var(--muted); background: #172435; border-left: 3px solid #58718f; padding: .65rem .8rem; border-radius: .25rem; margin-bottom: .8rem; }
.notice[data-tone="success"] { color: #b1e8d4; border-color: var(--teal); }
.notice[data-tone="error"] { color: #ffd0d1; border-color: #e2787f; }
.empty { color: var(--muted); padding: .65rem 0; }
.table-wrap { overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; text-align: left; }
.table th, .table td { padding: .63rem .45rem; border-bottom: 1px solid var(--line); vertical-align: top; }
.table th { color: var(--muted); font-weight: 680; font-size: .82rem; white-space: nowrap; }
.table td { font-size: .89rem; overflow-wrap: anywhere; }
.table tbody tr:last-child td { border-bottom: 0; }
.table th:first-child, .table td:first-child { padding-left: 0; }
.table th:last-child, .table td:last-child { padding-right: 0; }
.table .nowrap { white-space: nowrap; }
.table small { display: block; margin-top: .15rem; }
.badge { display: inline-flex; align-items: center; min-height: 22px; padding: .08rem .42rem; border-radius: .2rem; border: 1px solid #3a4c65; color: #ccd8e8; background: #1c2a3c; font-size: .75rem; font-weight: 680; white-space: nowrap; }
.badge[data-state="published"], .badge[data-state="ready"], .badge[data-state="reviewed"], .badge[data-state="sent"] { background: #17342d; color: #a4e6cd; border-color: #305f53; }
.badge[data-state="open"], .badge[data-state="pending"], .badge[data-state="waiting"] { color: #ffcb9f; background: #392b25; border-color: #704e38; }
.badge[data-state="failed"] { color: #ffd0d1; background: #37232c; border-color: #674251; }
.badge-set { display: flex; flex-wrap: wrap; gap: .3rem; }
.tag-list { display: grid; list-style: none; padding: 0; }
.tag-list li { display: flex; justify-content: space-between; align-items: center; gap: .6rem; min-width: 0; padding: .4rem 0; border-bottom: 1px solid var(--line); }
.tag-list li:last-child { border: 0; }
.tag-list span { overflow-wrap: anywhere; }

.form { display: grid; gap: .8rem; }
.form-row { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; align-items: end; }
.form-inline { display: flex; align-items: end; gap: .65rem; }
.form-inline .field { flex: 1; min-width: 5rem; }
.field { min-width: 0; display: grid; gap: .27rem; color: #dce5ef; font-size: .89rem; font-weight: 630; }
.field input, .field select, .field textarea, .entry { width: 100%; min-height: 42px; padding: .47rem .6rem; border-radius: .3rem; border: 1px solid #3f526b; background: #0d1723; color: var(--ink); font-weight: 450; }
.field textarea { min-height: 92px; resize: vertical; }
.field small { color: var(--muted); font-size: .8rem; font-weight: 450; }
.buttons { display: flex; flex-wrap: wrap; align-items: center; gap: .55rem; }
.pagination { justify-content: end; border-top: 1px solid var(--line); margin-top: .5rem; padding-top: .55rem; }
.block-space { margin-top: .75rem; }
.actions-inline { display: flex; align-items: center; justify-content: end; flex-wrap: wrap; gap: .2rem .42rem; }
.button { border: 1px solid #475c77; border-radius: .3rem; min-height: 40px; padding: .42rem .75rem; background: #1a293b; color: #f2f4f8; cursor: pointer; display: inline-flex; justify-content: center; align-items: center; gap: .45rem; font-size: .9rem; font-weight: 710; line-height: 1.15; text-align: center; }
.button:hover { background: #243850; text-decoration: none; }
.button--primary { color: #211307; background: var(--orange); border-color: var(--orange); }
.button--primary:hover { background: #ff9b63; border-color: #ff9b63; }
.button--small { min-height: 35px; padding: .33rem .55rem; font-size: .82rem; }
.button:disabled { opacity: .55; cursor: wait; }
.text-link { display: inline-flex; align-items: center; min-height: 35px; border: 0; padding: 0; background: none; color: var(--orange-soft); cursor: pointer; font-size: .9rem; font-weight: 680; }
.text-link:hover { text-decoration: underline; text-underline-offset: .22em; }
.check-list { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .3rem .6rem; margin: 0; padding: .45rem .6rem .65rem; border: 1px solid var(--line); border-radius: .35rem; }
.check-list legend { color: var(--muted); }
.check { display: flex; align-items: center; gap: .45rem; min-height: 34px; overflow-wrap: anywhere; }
.check input { width: 1rem; height: 1rem; accent-color: var(--orange); }
.dialog { width: min(calc(100% - 1.4rem), 39rem); max-height: 88vh; border: 1px solid #445a75; padding: clamp(.9rem, 2vw, 1.4rem); border-radius: .55rem; color: var(--ink); background: var(--surface); }
.dialog::backdrop { background: #03080dd1; }
.dialog h2 { font-size: 1.4rem; letter-spacing: -.025em; }
.dialog .form { margin-top: .8rem; }
.dialog .panel-head { align-items: center; }
.dialog pre { white-space: pre-wrap; overflow-wrap: anywhere; }
.clip { max-height: 13rem; overflow-y: auto; padding: .7rem; border-radius: .3rem; background: #0e1825; margin: .7rem 0; }
.transcript { display: grid; gap: .55rem; padding: 0; list-style: none; }
.transcript li { padding: .65rem .75rem; border-radius: .3rem; background: #0e1825; border-left: 2px solid #435b77; }
.transcript p { margin-top: .24rem; white-space: pre-wrap; overflow-wrap: anywhere; }
.ledger-total { border: 1px solid var(--line); padding: .5rem .65rem; border-radius: .35rem; min-width: 10rem; }
.ledger-total dt { color: var(--muted); font-size: .82rem; }
.ledger-total dd { margin: .13rem 0 0; font-weight: 730; font-variant-numeric: tabular-nums; }
.revenue-workspace { display: grid; grid-template-columns: minmax(16rem, .86fr) minmax(0, 1.3fr); align-items: start; gap: 1rem; }
.revenue-workspace > * { min-width: 0; }
.revenue-team-list { min-width: 0; margin: 0; padding: .55rem .65rem .65rem; border: 1px solid var(--line); border-radius: .36rem; }
.revenue-team-list legend { padding-inline: .25rem; color: #dce5ef; font-size: .9rem; font-weight: 630; }
.revenue-team-list .buttons { border-top: 1px solid var(--line); padding-top: .52rem; margin-top: .42rem; }
.revenue-team-choices { max-height: 14rem; overflow-y: auto; padding-inline: .12rem; }
.revenue-team-choices .check { align-items: start; padding-block: .32rem; }
.revenue-team-choices .check input { flex: none; margin-top: .18rem; }
.revenue-metrics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .52rem; margin: 0; }
.revenue-metrics > div { padding: .72rem .62rem; background: #0e1825; border: 1px solid var(--line); border-radius: .37rem; min-width: 0; }
.revenue-metrics > div:nth-child(2) { border-color: #77513b; background: #302318; }
.revenue-metrics dt { color: var(--muted); font-size: .78rem; font-weight: 650; }
.revenue-metrics dd { margin: .22rem 0 0; font-size: clamp(1rem, 2.2vw, 1.68rem); font-weight: 750; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; line-height: 1.12; }
.revenue-metrics > div:nth-child(2) dd { color: var(--orange-soft); }
.revenue-metrics + .notice { margin-top: .8rem; }
.revenue-breakdown { margin: 0; }
.revenue-breakdown > div { display: flex; justify-content: space-between; align-items: baseline; gap: .7rem; border-top: 1px solid var(--line); padding: .54rem 0; }
.revenue-breakdown > div:last-child { padding-bottom: 0; font-weight: 720; }
.revenue-breakdown dt { color: var(--muted); }
.revenue-breakdown dd { margin: 0; text-align: end; white-space: nowrap; font-variant-numeric: tabular-nums; }
.trend-key { display: flex; align-items: center; gap: 1rem; flex-wrap: wrap; margin-block: .6rem; color: var(--muted); font-size: .8rem; }
.trend-key span::before { content: ""; display: inline-block; margin-right: .34rem; width: .55rem; height: .55rem; border-radius: .12rem; background: var(--orange); }
.trend-key span + span::before { background: var(--teal); }
.trend-wrap { width: 100%; min-width: 0; }
.trend-chart { width: 100%; height: auto; overflow: visible; background: #101a27; border-radius: .3rem; }
.trend-chart .grid-line { stroke: var(--line); }
.trend-chart .trend-primary { stroke: var(--orange); }
.trend-chart .trend-secondary { stroke: var(--teal); }
.trend-dates { display: flex; justify-content: space-between; gap: .6rem; color: var(--muted); font-size: .76rem; margin-top: .25rem; }
.bunny-status { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: .65rem; }
.bunny-setup { color: var(--muted); max-width: 70ch; }
.bunny-setup code { color: var(--ink); overflow-wrap: anywhere; }
.bunny-issues { margin: 0; padding: .6rem .85rem .6rem 1.8rem; background: #241f25; border-left: 3px solid var(--orange-soft); color: var(--muted); border-radius: .25rem; }
.bunny-issues strong { color: var(--ink); margin-inline-end: .3rem; }
.bunny-balance, .bunny-measures { display: grid; margin: 0; background: #0e1825; border: 1px solid var(--line); border-radius: .43rem; overflow: hidden; }
.bunny-balance { grid-template-columns: minmax(0, 1.16fr) repeat(2, minmax(0, 1fr)); }
.bunny-measures { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-top: .85rem; }
.bunny-balance > div, .bunny-measures > div { min-width: 0; padding: .8rem .9rem; border-right: 1px solid var(--line); }
.bunny-balance > div:last-child, .bunny-measures > div:last-child { border-right: 0; }
.bunny-balance > div:first-child { background: #302318; }
.bunny-balance dt, .bunny-measures dt { font-size: .84rem; color: var(--muted); font-weight: 620; }
.bunny-balance dd, .bunny-measures dd { margin: .2rem 0 0; font-size: clamp(1.25rem, 2.55vw, 2.15rem); letter-spacing: -.032em; font-variant-numeric: tabular-nums; font-weight: 740; line-height: 1.2; overflow-wrap: anywhere; }
.bunny-balance > div:first-child dd { color: var(--orange-soft); }
.bunny-measures dd { font-size: clamp(1.05rem, 2vw, 1.5rem); }
.bunny-filters { display: grid; grid-template-columns: minmax(8rem, 1fr) minmax(9rem, 1.35fr) auto; gap: .65rem; align-items: end; max-width: 43rem; }
.bunny-filters > button { min-height: 42px; }
.bunny-chart-wrap { margin-top: .7rem; }
.bunny-trend-key .bunny-origin::before { background: var(--teal); }
.bunny-chart .bunny-delivered { stroke: var(--orange); stroke-width: 2.5px; }
.bunny-chart .bunny-origin { stroke: var(--teal); stroke-width: 1.65px; }
.bunny-chart circle { fill: var(--surface); }
.bunny-chart text { fill: var(--muted); font-size: 9px; }
.bunny-details { margin-top: .75rem; color: var(--muted); }
.bunny-details summary { cursor: pointer; width: fit-content; }
.bunny-details[open] summary { margin-bottom: .55rem; }
.bunny-billing-details { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); gap: .65rem 1.25rem; margin: .55rem 0 .9rem; }
.bunny-billing-details dt { font-size: .82rem; }
.bunny-billing-details dd { margin: .2rem 0 0; color: var(--ink); font-weight: 650; }
.bunny-secondary, .bunny-section-time { margin: .7rem 0 0; }
.ott-workspace { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); align-items: start; gap: 1rem; }
.ott-form [data-feedback]:empty { display: none; }
.ott-form [data-feedback] .notice { margin: 0; }
.ott-actions { justify-content: end; }
.ott-collections { min-width: 0; margin: .1rem 0 0; padding: .35rem .65rem .6rem; border: 1px solid var(--line); border-radius: .35rem; }
.ott-collections legend { padding-inline: .2rem; color: var(--muted); font-size: .87rem; }
.ott-collection-list { max-height: 18rem; overflow-y: auto; }
.ott-collection { align-items: start; padding: .4rem .15rem; }
.ott-collection + .ott-collection { border-top: 1px solid var(--line); }
.ott-collection input { flex: none; margin: .24rem .13rem 0 .03rem; }
.ott-collection small { display: block; }
.ott-collections > .meta { margin-top: .55rem; }
.ott-team-state { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: .75rem; margin: .1rem 0 0; padding-top: .65rem; border-top: 1px solid var(--line); }
.ott-team-state dt { color: var(--muted); font-size: .82rem; }
.ott-team-state dd { margin: .14rem 0 0; font-size: 1.23rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.scroll-spacer { margin: 0; max-width: 70ch; white-space: pre-wrap; overflow-wrap: anywhere; }
.story-editor-head { display: flex; align-items: center; justify-content: space-between; gap: .6rem; flex-wrap: wrap; margin-bottom: .85rem; }
.story-editor-head h2 { font-size: clamp(1.2rem, 2vw, 1.6rem); letter-spacing: -.025em; }
.story-workspace { display: grid; grid-template-columns: minmax(0, 1.75fr) minmax(17rem, 1fr); align-items: start; gap: 1rem; }
.story-workspace > * { min-width: 0; }
.story-headline input { font-size: clamp(1.05rem, 2vw, 1.35rem); font-weight: 680; }
.story-blocks { display: grid; gap: .55rem; }
.story-block { min-width: 0; margin: 0; padding: .45rem .7rem .65rem; border: 1px solid var(--line); border-radius: .35rem; }
.story-block legend { padding-inline: .3rem; color: var(--muted); font-size: .83rem; font-weight: 650; }
.story-block-actions .button:disabled { cursor: default; }
.story-add-block { max-width: 26rem; }
.story-add-block .button { min-height: 42px; }
.story-facebook-preview { margin-top: .75rem; padding: .65rem .75rem; background: #0e1825; border-left: 2px solid #435b77; border-radius: .25rem; }
.story-facebook-preview h3 { margin-bottom: .3rem; }
.story-caption { white-space: pre-wrap; overflow-wrap: anywhere; font-size: .89rem; }
.badge[data-state="posted"] { background: #17342d; color: #a4e6cd; border-color: #305f53; }
.badge[data-state="uncertain"] { color: #ffcb9f; background: #392b25; border-color: #704e38; }

.mail-toolbar { display: flex; align-items: end; justify-content: space-between; flex-wrap: wrap; gap: .7rem 1rem; padding-bottom: 1rem; }
.mail-selector { flex: 1 1 18rem; min-width: 0; max-width: 29rem; }
.mail-selector select { text-overflow: ellipsis; }
.mail-toolbar .button[aria-pressed="true"] { border-color: #936448; background: #3b2c28; color: #ffcaab; }
.mail-panes { display: grid; grid-template-columns: minmax(16rem, 1fr) minmax(0, 1.55fr); border: 1px solid var(--line); border-radius: .45rem; }
.mail-list, .mail-reader { min-width: 0; padding: .85rem; overflow-wrap: anywhere; }
.mail-list { border-right: 1px solid var(--line); }
.mail-list > h2 { margin-bottom: .55rem; }
.mail-message-list { max-height: 25rem; overflow-y: auto; }
.mail-message-list > li { border-bottom: 1px solid var(--line); }
.mail-message-row { display: flex; justify-content: space-between; align-items: start; gap: .55rem; width: 100%; border: 0; padding: .58rem .45rem; color: var(--ink); background: transparent; text-align: left; cursor: pointer; }
.mail-message-row:hover { background: var(--lift); }
.mail-message-row[aria-current] { box-shadow: inset 2px 0 var(--orange); background: var(--lift); }
.mail-message-row:focus-visible { outline-offset: -2px; }
.mail-message-summary { min-width: 0; }
.mail-message-summary > * { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mail-message-summary strong { font-size: .9rem; }
.mail-message-time { display: grid; justify-items: end; gap: .2rem; flex: none; text-align: right; color: var(--muted); font-size: .74rem; }
.mail-message-details { display: grid; gap: .28rem; margin: .65rem 0 .9rem; padding-bottom: .7rem; border-bottom: 1px solid var(--line); font-size: .85rem; }
.mail-message-details > div { display: grid; grid-template-columns: 3rem minmax(0, 1fr); }
.mail-message-details dt { color: var(--muted); }
.mail-message-details dd { margin: 0; }
.mail-message-body { min-height: 5rem; max-height: 36rem; overflow-y: auto; white-space: pre-wrap; overflow-wrap: anywhere; }
.mail-attachments { margin-top: 1rem; }
.mail-attachments ul { margin: .35rem 0 0; padding-inline-start: 1.25rem; }
.mail-vault-slot code { display: block; overflow-wrap: anywhere; margin-top: .3rem; padding: .35rem .55rem; border-radius: .3rem; background: var(--base); }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 12.5rem minmax(0, 1fr); }
  .split { grid-template-columns: minmax(0, 1fr); }
  .revenue-workspace { grid-template-columns: minmax(0, 1fr); }
  .ott-workspace { grid-template-columns: minmax(0, 1fr); }
  .story-workspace { grid-template-columns: minmax(0, 1fr); }
  .profile-name { max-width: 8rem; }
}
@media (max-width: 950px) {
  .mail-panes { grid-template-columns: minmax(0, 1fr); }
  .mail-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .mail-message-list { max-height: 17rem; }
}
@media (max-width: 750px) {
  .auth { display: block; min-height: 100vh; }
  .auth-main { max-width: 32rem; margin: auto; }
  .auth-photo { display: none; }
  .workspace { display: block; }
  .sidebar { position: static; min-height: 0; border-right: 0; border-bottom: 1px solid var(--line); }
  .sidebar-top { border-bottom: 0; padding: .85rem 1.1rem .2rem; display: flex; align-items: center; gap: .7rem; }
  .sidebar-top .brand { margin: 0; width: 7rem; }
  .sidebar-top span { padding-top: .25rem; }
  .sidebar nav { display: flex; gap: .12rem; overflow-x: auto; padding: .42rem .7rem; }
  .sidebar nav a { padding-inline: .47rem; border: 0; border-bottom: 2px solid transparent; font-size: .82rem; }
  .sidebar nav a[aria-current] { border-color: var(--orange); }
  .sidebar nav a[href="#support"] { margin-top: 0; }
  .sidebar nav .icon { width: 15px; height: 15px; }
  .sidebar-footer { display: none; }
  .topbar { min-height: 53px; }
  .profile .mobile-public { display: inline-flex; }
  .columns { grid-template-columns: 1fr; }
}
@media (max-width: 500px) {
  .profile-name { display: none; }
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .metric:nth-child(2n) { border-right: 0; }
  .metric:nth-last-child(-n+4) { border-bottom: 1px solid var(--line); }
  .metric:nth-last-child(-n+2) { border-bottom: 0; }
  .metric { min-height: 82px; padding: .65rem .7rem; }
  .form-row { grid-template-columns: 1fr; gap: .65rem; }
  .check-list { grid-template-columns: 1fr; }
  .bunny-filters { grid-template-columns: 1fr 1fr; }
  .bunny-filters > button { justify-self: start; }
  .bunny-balance, .bunny-measures { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .bunny-balance > div, .bunny-measures > div { padding: .65rem .6rem; }
  .bunny-balance > div:first-child { grid-column: 1 / -1; border-right: 0; border-bottom: 1px solid var(--line); }
  .bunny-measures > div:nth-child(2n) { border-right: 0; }
  .bunny-measures > div:nth-child(-n+2) { border-bottom: 1px solid var(--line); }
}
