/* Phoenix Sites: a focused workspace for publishing and managing website folders. */
/* Studio's authenticated app supplies Montserrat and the neutral/orange palette.
   Fonts are local; the server fingerprints their URLs along with this stylesheet. */
@font-face { font-family: Montserrat; font-style: normal; font-weight: 400; font-display: swap;
    src: url("/www-immutable/Montserrat-Regular.11Rz3D9y-N06.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 600; font-display: swap;
    src: url("/www-immutable/Montserrat-SemiBold.GU7EM4zviP5x.woff2") format("woff2"); }
@font-face { font-family: Montserrat; font-style: normal; font-weight: 700; font-display: swap;
    src: url("/www-immutable/Montserrat-Bold.nnqh8OnJ65zg.woff2") format("woff2"); }
:root {
    color-scheme: light;
    --bg: #f6f6f7;
    --surface: #ffffff;
    --surface-soft: #ededee;
    --border: #e3e3e6;
    --border-strong: #7c7c82;
    --ink: #1d1d1f;
    --ink-secondary: #55555b;
    --ink-muted: #626268;
    --brand: #9d4800;
    --brand-hover: #803a00;
    --brand-ink: #ffffff;
    --brand-soft: #fff3e9;
    --success: #267047;
    --success-soft: #edf7f0;
    --warning: #8a5906;
    --warning-soft: #fff6e2;
    --danger: #b22e35;
    --danger-soft: #fff0f0;
    --danger-ink: #ffffff;
    --focus: #2c6ecb;
    --analytics-blue: #246cce;
    --radius: 12px;
    --shadow: 0 8px 28px rgb(24 36 54 / 14%);
    --backdrop: rgb(0 0 0 / 55%);
    --font: Montserrat, "Segoe UI", Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) {
        color-scheme: dark;
        --bg: #050505; --surface: #2a2a2a; --surface-soft: #232222;
        --border: #444444; --border-strong: #858585;
        --ink: #f7f8f8; --ink-secondary: #bfbfbf; --ink-muted: #ababab;
        --brand: #fe9615; --brand-hover: #faaa47; --brand-ink: #161616; --brand-soft: #332b22;
        --success: #86d4a2; --success-soft: #21372c;
        --warning: #f2c16c; --warning-soft: #3b3020;
        --danger: #ffa2a6; --danger-soft: #3e282c; --danger-ink: #161616; --focus: #faaa47;
        --shadow: 0 8px 28px rgb(0 0 0 / 28%);
        --analytics-blue: #559dff;
    }
}
:root[data-theme="dark"] {
    color-scheme: dark;
    --bg: #050505; --surface: #2a2a2a; --surface-soft: #232222;
    --border: #444444; --border-strong: #858585;
    --ink: #f7f8f8; --ink-secondary: #bfbfbf; --ink-muted: #ababab;
    --brand: #fe9615; --brand-hover: #faaa47; --brand-ink: #161616; --brand-soft: #332b22;
    --success: #86d4a2; --success-soft: #21372c;
    --warning: #f2c16c; --warning-soft: #3b3020;
    --danger: #ffa2a6; --danger-soft: #3e282c; --danger-ink: #161616; --focus: #faaa47;
    --shadow: 0 8px 28px rgb(0 0 0 / 28%);
    --analytics-blue: #559dff;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; scrollbar-gutter: stable; }
body { margin: 0; background: var(--bg); color: var(--ink);
    font: 15px/1.6 var(--font); -webkit-font-smoothing: antialiased; }
::selection { background: var(--brand); color: var(--brand-ink); }
:focus-visible { outline: 3px solid var(--focus); outline-offset: 3px; }
a { color: inherit; text-underline-offset: 3px; }
button, a, summary, input, select { -webkit-tap-highlight-color: transparent; }
button, input, select { font: inherit; }
button, .btn { min-height: 44px; display: inline-flex; justify-content: center; align-items: center; gap: 8px;
    padding: 9px 14px; border: 1px solid var(--border-strong); border-radius: 8px;
    background: var(--surface); color: var(--ink); font-size: 14px; font-weight: 600;
    line-height: 1.4; text-decoration: none; cursor: pointer;
    transition: background 160ms ease-out, border-color 160ms ease-out; }
button:hover, .btn:hover { background: var(--surface-soft); border-color: var(--ink-muted); }
button:active, .btn:active { background: var(--border); }
.primary { background: var(--brand); border-color: var(--brand); color: var(--brand-ink); }
.primary:hover { background: var(--brand-hover); border-color: var(--brand-hover); }
.quiet { background: transparent; border-color: transparent; color: var(--ink-secondary); }
.quiet:hover { border-color: transparent; background: var(--surface-soft); }
.danger { color: var(--danger); }
.danger:hover { background: var(--danger-soft); border-color: var(--danger); }
.danger-primary { color: var(--danger-ink); background: var(--danger); border-color: var(--danger); }
.danger-primary:hover { color: var(--danger); background: var(--danger-soft); border-color: var(--danger); }
button:disabled, select:disabled, input:disabled { opacity: .55; cursor: not-allowed; }
button.link { min-height: 0; padding: 0; border: 0; border-radius: 0; background: none;
    color: var(--brand); text-decoration: underline; text-underline-offset: 3px; }
.icon { width: 18px; height: 18px; flex: none; }
.icon-button { width: 40px; padding: 9px; flex: none; }
.row { display: flex; align-items: center; flex-wrap: wrap; gap: 10px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; }
.skip-link { position: fixed; top: -80px; left: 16px; z-index: 20; padding: 10px 18px;
    background: var(--surface); border: 2px solid var(--focus); border-radius: 6px; opacity: 0; }
.skip-link:focus { top: 12px; opacity: 1; }

/* The brand and the working page have separate hierarchy. */
.top { border-bottom: 1px solid var(--border); background: var(--surface); }
.top-inner { max-width: 1216px; min-height: 76px; margin: auto; padding: 0 32px;
    display: flex; align-items: center; justify-content: space-between; gap: 24px; }
.brand { display: inline-flex; align-items: center; gap: 11px; text-decoration: none;
    font-size: 19px; font-weight: 700; letter-spacing: -.025em; white-space: nowrap; }
.brand .mark { width: 32px; height: 32px; flex: none; }
.brand-product { color: var(--ink-secondary); font-weight: 400; }
.header-actions, .who { display: flex; align-items: center; gap: 16px; }
.who:empty { display: none; }
.who { padding-left: 20px; border-left: 1px solid var(--border); gap: 10px; }
.avatar { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 50%;
    background: var(--surface-soft); color: var(--ink-secondary); font-size: 12px; font-weight: 700; }
.editor-link { display: inline-flex; align-items: center; gap: 6px; color: var(--ink-secondary);
    text-decoration: none; font-size: 13px; min-height: 40px; }
.editor-link:hover { color: var(--ink); text-decoration: underline; }
.wrap { width: 100%; max-width: 1184px; margin: 0 auto; padding: 48px 32px 72px; }
.page-heading { display: flex; justify-content: space-between; align-items: center; gap: 24px; margin-bottom: 28px; }
h1, h2, h3, p { margin-top: 0; }
h1 { margin-bottom: 5px; font-size: 30px; line-height: 1.25; letter-spacing: -.03em; font-weight: 600; }
.page-heading p { margin: 0; color: var(--ink-secondary); font-size: 15px; }
.page-heading .usage-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px; margin-top: 12px;
    color: var(--ink-muted); font-size: 13px; font-variant-numeric: tabular-nums; }
.page-heading .usage-values { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 10px;
    color: inherit; font: inherit; }
h2 { font-size: 18px; line-height: 1.4; letter-spacing: -.02em; font-weight: 600; }
.page-heading .primary { flex: none; }

/* A compact publish target leaves the user's existing work in view. */
.drop { position: relative; border: 1px dashed var(--border-strong); border-radius: var(--radius);
    padding: 28px 32px; background: var(--surface); transition: background 160ms ease-out, border-color 160ms ease-out; }
.drop.over { border-color: var(--brand); background: var(--brand-soft); }
.drop.busy { border-style: solid; }
.drop-content { display: flex; align-items: center; gap: 22px; }
.drop:has(.compact-upload) { padding: 18px 24px; background: transparent; }
.compact-upload { gap: 16px; }
.compact-upload .upload-symbol { width: 28px; height: 28px; }
.compact-upload .file-hint { font-size: 13px; }
.upload-symbol { width: 45px; height: 45px; color: var(--ink-muted); flex: none; }
.drop-copy { flex: 1; }
.drop .big { margin: 0 0 4px; font-size: 17px; font-weight: 600; color: var(--ink); }
.sub { margin: 0; font-size: 14px; color: var(--ink-secondary); }
.drop.over .big::after { content: " — release to publish"; color: var(--brand); }
.drop.over .upload-symbol { color: var(--brand); }
.drop.first-site { min-height: 320px; display: grid; place-items: center; }
.first-site .drop-content { flex-direction: column; gap: 20px; text-align: center; max-width: 490px; }
.first-site .upload-symbol { width: 52px; height: 52px; }
.first-site .big { font-size: 23px; margin-bottom: 8px; letter-spacing: -.02em; }
.first-site .sub { font-size: 15px; }
.file-hint { font-size: 12px; color: var(--ink-muted); margin: 10px 0 0; }
.upload-limit { display: block; margin-top: 4px; }
.drop-actions { flex: none; text-align: center; }
#picker, #picker-files { position: absolute; width: 1px; height: 1px; opacity: 0; pointer-events: none; }
.progress { max-width: 540px; margin: 0 auto; text-align: center; padding: 4px 0; }
.progress .label { font-weight: 600; font-size: 17px; margin-bottom: 4px; }
.progress .sub { margin-bottom: 16px; }
.progress progress { display: block; width: 100%; height: 7px; border: 0; border-radius: 8px;
    background: var(--surface-soft); accent-color: var(--brand); overflow: hidden; }
progress::-webkit-progress-bar { background: var(--surface-soft); }
progress::-webkit-progress-value { background: var(--brand); border-radius: 8px; }
progress::-moz-progress-bar { background: var(--brand); border-radius: 8px; }
.progress .count { font-size: 13px; margin-top: 10px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.progress-activity { height: 7px; overflow: hidden; border-radius: 8px; background: var(--surface-soft); }
.progress-activity::after { content: ""; display: block; width: 30%; height: 100%; border-radius: inherit;
    background: var(--brand); animation: publish-activity 1.5s ease-in-out infinite alternate; }
@keyframes publish-activity { to { transform: translateX(234%); } }
.progress-steps { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px;
    margin: 20px 0 0; padding: 0; list-style: none; font-size: 13px; color: var(--ink-muted); }
.progress-steps [aria-current="step"] { color: var(--brand); font-weight: 600; }
.done { display: flex; align-items: center; gap: 20px; }
.done .tick { width: 34px; height: 34px; flex: none; color: var(--success); }
.done-copy { flex: 1; min-width: 0; }
.done .big { color: var(--success); }
.done .addr { font-size: 15px; overflow-wrap: anywhere; }
.done .row { gap: 8px; }
.tight { margin: 6px 0 0; }
.quiet-ink { color: var(--ink-secondary); }
.warn-ink { color: var(--warning); }

/* Projects form one scannable list; titles, addresses, and actions align across rows. */
.collection { margin-top: 38px; }
.collection-heading { display: flex; gap: 14px; justify-content: space-between; align-items: center; margin-bottom: 16px; }
.collection-heading h2 { margin: 0; display: flex; align-items: center; gap: 9px; }
.site-count { min-width: 24px; height: 24px; padding: 1px 7px; display: inline-grid; place-items: center;
    background: var(--border); color: var(--ink-secondary); border-radius: 6px; font-size: 12px; font-weight: 600; }
.list-tools { display: flex; align-items: center; gap: 12px; }
.analytics-range-controls { margin: 12px 0 16px; }
.analytics-range-summary { display: flex; align-items: center; flex-wrap: wrap; gap: 8px 12px; font-size: 13px; }
.analytics-range-summary select { min-height: 44px; max-width: 100%; }
.analytics-range-summary button { min-height: 44px; white-space: normal; text-align: left; }
.analytics-range-scope { color: var(--ink-secondary); font-size: 12px; }
.analytics-range-form { display: flex; flex-wrap: wrap; align-items: end; gap: 12px; margin-top: 16px; }
.analytics-range-form label { display: grid; gap: 6px; flex: 0 1 190px; min-width: 0; font-size: 12px; }
.analytics-range-form input { width: 100%; min-width: 0; min-height: 44px; box-sizing: border-box; padding: 8px 12px;
    border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; }
.analytics-range-actions { display: flex; gap: 8px; }
.analytics-range-actions button { min-height: 44px; }
.analytics-range-form p { flex-basis: 100%; margin: 0; color: var(--ink-secondary); font-size: 12px; }
.analytics-range-form .analytics-range-error { color: var(--danger); }
.search { position: relative; display: flex; align-items: center; }
.search > .icon { position: absolute; left: 12px; color: var(--ink-muted); pointer-events: none; }
.search input { width: 270px; padding-left: 37px; }
input[type="search"], input[type="text"], select { min-height: 40px; padding: 8px 12px;
    border: 1px solid var(--border-strong); border-radius: 8px; background: var(--surface); color: var(--ink);
    font-size: 13px; caret-color: var(--brand); }
.search input[type="search"] { padding-left: 37px; }
input::placeholder { color: var(--ink-muted); opacity: 1; }
select { max-width: 175px; cursor: pointer; }
.site-list { border: 1px solid var(--border); border-radius: var(--radius); background: var(--surface); }
.site { position: relative; padding: 24px; border-radius: var(--radius); transition: background 160ms ease-out; }
.site + .site { border-top: 1px solid var(--border); border-top-left-radius: 0; border-top-right-radius: 0; }
.site.over { background: var(--brand-soft); }
.site.over::after { content: "Release to update this site"; position: absolute; inset: 0;
    display: grid; place-items: center; background: var(--brand-soft); color: var(--brand); border: 1px dashed var(--brand);
    border-radius: inherit; font-size: 17px; font-weight: 600; pointer-events: none; }
.site-main { display: grid; grid-template-columns: 44px minmax(0, 1fr) 144px 216px; align-items: start; gap: 18px; }
.has-analytics .site-main { grid-template-columns: 44px minmax(0, 1fr) 260px 144px 216px; gap: 16px; }
.has-analytics .site-identity { grid-column: 2; min-width: 0; }
.has-analytics .site-status { grid-column: 4; }
.has-analytics .site-actions { grid-column: 5; }
[data-site-summary] { cursor: pointer; }
[data-site-summary] .site-details, [data-site-summary] .rename-form, [data-site-summary] .site-notice { cursor: auto; }
[data-site-summary]:hover .site-toggle { color: var(--brand); }
.site-symbol { width: 44px; height: 44px; border-radius: 10px; display: grid; place-items: center;
    background: var(--surface-soft); color: var(--ink-secondary); }
.site-symbol .icon { width: 23px; height: 23px; }
.site-title-row { display: flex; align-items: center; gap: 4px; min-width: 0; min-height: 44px; }
.site-title { min-width: 0; margin: 0; font-size: 16px; line-height: 1.45; font-weight: 600;
    letter-spacing: -.015em; overflow-wrap: anywhere; }
.site-symbol.site-toggle { align-self: start; min-height: 44px; padding: 12px;
    background: transparent; border-radius: 8px; }
.site-symbol.site-toggle:hover, .site-symbol.site-toggle[aria-expanded="true"] { background: var(--surface-soft); }
.site-toggle .icon { width: 20px; height: 20px; transition: transform 160ms ease-out; }
.site-toggle[aria-expanded="true"] .icon { transform: rotate(90deg); }
.site-rename { width: 44px; min-height: 44px; }
.site-rename .icon { width: 16px; height: 16px; }
.site-details { margin-top: 20px; padding-top: 8px; border-top: 1px solid var(--border); }
.site-tabs { display: flex; gap: 16px; margin-bottom: 18px; border-bottom: 1px solid var(--border); }
.site-tabs .site-tab { padding: 10px 4px; border: 0; border-bottom: 2px solid transparent;
    border-radius: 0; font-size: 14px; }
.site-tabs .site-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.site-details .versions, .site-details .domains { margin: 0; padding: 0; border-top: 0; }
.site-details [role="tabpanel"] { border-radius: 4px; }
.site-analytics-summary { grid-column: 3; display: grid; grid-template-columns: minmax(116px, 1fr) minmax(0, 1.3fr);
    gap: 12px; align-items: center; width: 100%; min-width: 0; min-height: 88px; padding: 8px 0; text-align: left; }
.site-analytics-summary > span:first-child { min-width: 0; }
.site-analytics-summary strong { display: block; margin-top: 4px; font-size: 26px; line-height: 1.3;
    color: var(--ink); font-variant-numeric: tabular-nums; font-weight: 600; overflow-wrap: anywhere; }
.site-analytics-summary.is-unavailable strong { font-size: 13px; line-height: 1.6; color: var(--ink-secondary); }
.analytics-summary-label { display: block; font-size: 12px; font-weight: 400; line-height: 1.4; color: var(--ink-secondary); overflow-wrap: anywhere; }
.analytics-summary-qualifier { display: block; color: var(--ink-secondary); font-size: 12px; font-weight: 400; line-height: 1.4; }
.analytics-sparkline { display: block; width: 100%; height: 60px; color: var(--analytics-blue); }
.analytics-sparkline-line { fill: none; stroke: currentColor; stroke-width: 2; stroke-linejoin: round;
    stroke-linecap: round; vector-effect: non-scaling-stroke; }
.analytics-sparkline-area { stroke: none; }
.analytics-sparkline circle { fill: currentColor; }
.analytics-heading { display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.analytics-heading h3 { margin: 0; font-size: 16px; }
.analytics-heading button { min-height: 44px; flex: none; }
.analytics-period, .analytics-note, .analytics-updated { color: var(--ink-secondary); font-size: 13px; max-width: 75ch; }
.analytics-period { margin: 4px 0 20px; }
.analytics-note { margin: 12px 0; }
.analytics-updated { margin: 16px 0 0; font-size: 12px; }
.analytics-warning { color: var(--warning); }
.analytics-totals { display: flex; flex-wrap: wrap; gap: 16px 40px; margin: 20px 0; }
.analytics-totals dt { color: var(--ink-secondary); font-size: 13px; }
.analytics-totals dd { margin: 4px 0 0; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.analytics-chart { max-width: 720px; margin: 24px 0 12px; }
.analytics-chart-label { display: flex; justify-content: space-between; gap: 12px; color: var(--ink-secondary); font-size: 12px; }
.analytics-chart svg { display: block; width: 100%; height: 140px; overflow: visible; }
.analytics-chart-scroll { overflow-x: auto; padding: 3px; margin: -3px; }
.analytics-chart-plot { position: relative; padding-bottom: 36px; }
.analytics-chart-plot.is-single { max-width: 160px; }
.analytics-chart-plot.is-dense .analytics-day-label { left: 50%; right: auto; width: max-content; transform: translateX(-50%); }
.analytics-chart-plot.is-dense .analytics-day:first-child .analytics-day-label { left: 0; transform: none; }
.analytics-chart-plot.is-dense .analytics-day:last-child .analytics-day-label { left: auto; right: 0; transform: none; }
.analytics-day-targets { position: absolute; inset: 0; display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); }
.analytics-day { position: relative; display: block; min-width: 0; min-height: 44px; padding: 0; border: 0; border-radius: 4px;
    background: transparent; transition: none; }
.analytics-day:hover, .analytics-day:active, .analytics-day.is-inspected { background: transparent; }
/* The 140px SVG's baseline is at y=128. Keep inspection tint above it, clear of date labels. */
.analytics-day::before { content: ""; position: absolute; top: 0; left: 0; right: 0; height: 128px;
    border-radius: 4px 4px 0 0; pointer-events: none; }
.analytics-day:hover::before, .analytics-day.is-inspected::before {
    background: color-mix(in srgb, var(--analytics-blue) 10%, transparent); }
.analytics-day:focus-visible { outline-offset: -3px; }
.analytics-day-label { position: absolute; bottom: 0; left: 2px; right: 2px; text-align: center;
    color: var(--ink-secondary); font-size: 12px; font-weight: 400; line-height: 1.5; }
.analytics-chart-help { margin: 8px 0 0; font-size: 12px; color: var(--ink-secondary); }
.analytics-chart-scroll-help { display: none; }
.analytics-chart-scroll.has-overflow + .analytics-chart-help .analytics-chart-scroll-help { display: inline; }
.analytics-bar { fill: var(--analytics-blue); }
.analytics-bar.is-partial { fill: var(--ink-secondary); }
.analytics-baseline { stroke: var(--border-strong); stroke-width: 1; }
.analytics-missing { fill: var(--ink-muted); font-size: 20px; }
.analytics-tooltip { position: fixed; z-index: 1000; left: 0; top: 0; width: 248px; max-width: calc(100vw - 16px);
    padding: 16px; border-radius: 8px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow);
    font-size: 12px; line-height: 1.5; }
.analytics-tooltip.follows-pointer { pointer-events: none; }
.analytics-tooltip-title { display: block; margin-bottom: 12px; font-size: 13px; overflow-wrap: anywhere; }
.analytics-tooltip dl { margin: 0; font-variant-numeric: tabular-nums; }
.analytics-tooltip dl > div { display: flex; align-items: baseline; justify-content: space-between; gap: 12px; margin-top: 8px; }
.analytics-tooltip dt { color: var(--ink-secondary); }
.analytics-tooltip dd { margin: 0; text-align: right; font-weight: 600; }
.analytics-tooltip p { margin: 12px 0 0; color: var(--ink-secondary); }
.analytics-origins { margin-top: 32px; padding-top: 28px; border-top: 1px solid var(--border); }
.analytics-origins h4 { margin: 0; font-size: 15px; line-height: 1.5; font-weight: 600; }
.analytics-origins .analytics-period { margin-bottom: 24px; }
.analytics-countries > .analytics-note, .analytics-breakdown-grid section > .analytics-note { margin: 6px 0 16px; }
.analytics-geography { display: grid; grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr); gap: 32px; align-items: center; }
.analytics-geography > *, .analytics-breakdown-grid > * { min-width: 0; }
.analytics-geography.is-empty { display: block; }
.analytics-map { margin: 0; min-width: 0; }
.analytics-map > svg { display: block; width: 100%; height: auto; }
.analytics-country { fill: var(--surface-soft); stroke: var(--surface); stroke-width: .55; stroke-linejoin: round; }
.analytics-country-1 { fill: color-mix(in srgb, var(--analytics-blue) 24%, var(--surface)); }
.analytics-country-2 { fill: color-mix(in srgb, var(--analytics-blue) 43%, var(--surface)); }
.analytics-country-3 { fill: color-mix(in srgb, var(--analytics-blue) 62%, var(--surface)); }
.analytics-country-4 { fill: color-mix(in srgb, var(--analytics-blue) 81%, var(--surface)); }
.analytics-country-5 { fill: var(--analytics-blue); }
.analytics-country.is-highlighted { stroke: var(--ink); stroke-width: 1.7; }
.analytics-country[data-map-country] { cursor: pointer; }
.analytics-map-legend { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px 24px; margin-top: 12px; color: var(--ink-secondary); font-size: 11px; }
.analytics-map-legend > span { display: inline-flex; align-items: center; gap: 6px; }
.analytics-map-key { width: 10px; height: 10px; background: var(--surface-soft); border: 1px solid var(--border-strong); }
.analytics-map-scale { width: 62px; height: 8px; background: linear-gradient(to right, color-mix(in srgb, var(--analytics-blue) 24%, var(--surface)), var(--analytics-blue)); }
.analytics-map-placeholder { min-height: 200px; display: grid; place-items: center; padding: 20px; background: var(--surface-soft); }
.analytics-country-list { max-height: 356px; overflow: auto; scrollbar-color: var(--border-strong) var(--surface); scrollbar-width: thin; scroll-padding-block: 48px; }
.analytics-ranked { width: 100%; table-layout: fixed; border-collapse: collapse; font-size: 12px; font-variant-numeric: tabular-nums; }
.analytics-ranked th, .analytics-ranked td { border-bottom: 1px solid var(--border); padding: 8px 0 8px 12px; text-align: right; vertical-align: middle; }
.analytics-ranked th:first-child { width: 55%; padding-left: 0; text-align: left; }
.analytics-ranked th:nth-child(2) { width: 27%; }
.analytics-ranked th:nth-child(3) { width: 18%; }
.analytics-ranked thead th { position: sticky; top: 0; background: var(--surface); z-index: 1; color: var(--ink-secondary); font-weight: 400; padding-block: 10px; }
.analytics-ranked tbody th { font-weight: 400; }
.analytics-ranked tbody th:first-child { position: relative; padding-left: 25px; }
.analytics-ranked td { overflow-wrap: anywhere; }
.analytics-rank-number { position: absolute; left: 0; top: 50%; transform: translateY(-50%); color: var(--ink-muted); font-size: 11px; }
.analytics-rank-label { display: block; min-width: 0; }
.analytics-rank-name { display: block; padding: 8px 0; overflow-wrap: anywhere; }
.analytics-country-bytes { display: block; margin-top: 3px; color: var(--ink-secondary); font-size: 12px; line-height: 1.4; }
.analytics-rank-bar { display: block; width: 100%; height: 3px; fill: var(--analytics-blue); }
.analytics-other th { color: var(--ink-secondary); }
.analytics-ranked .analytics-other th:first-child { padding-left: 0; padding-block: 16px; }
.analytics-breakdown-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.2fr); gap: 40px; margin-top: 32px; padding-block: 28px 24px; border-top: 1px solid var(--border); }
.analytics-dimension-tabs { display: flex; gap: 4px; margin: 8px 0 12px; border-bottom: 1px solid var(--border); }
.analytics-dimension-tab { min-width: 44px; min-height: 44px; padding-inline: 12px; border-radius: 0; border-bottom: 2px solid transparent; font-size: 12px; }
.analytics-dimension-tab[aria-selected="true"] { color: var(--ink); border-bottom-color: var(--analytics-blue); }
.analytics-dimension-tab[aria-selected="false"] { color: var(--ink-secondary); }
.analytics-breakdown-note { margin-bottom: 0; font-size: 12px; }
.analytics-empty { padding-block: 20px; }
.analytics-path-scroll { overflow-x: auto; container-type: inline-size; }
.analytics-path-scroll-hint { display: none; margin: 0 0 8px; color: var(--ink-secondary); font-size: 12px; }
@container (max-width: 419px) {
    .analytics-path-scroll-hint { display: block; }
}
.analytics-paths { min-width: 420px; }
.analytics-paths th:first-child { width: 43%; }
.analytics-paths th:nth-child(2) { width: 19%; }
.analytics-paths th:nth-child(3) { width: 24%; }
.analytics-paths th:nth-child(4) { width: 14%; }
.analytics-paths td { white-space: nowrap; overflow-wrap: normal; }
.analytics-paths .analytics-rank-name { font-family: inherit; word-break: break-word; }
.analytics-pagination { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 4px 12px;
    margin-top: 8px; color: var(--ink-secondary); font-size: 12px; font-variant-numeric: tabular-nums; }
.analytics-pagination > div { display: flex; margin-left: auto; gap: 4px; }
.analytics-pagination button { min-height: 44px; font-size: 12px; padding-inline: 10px; }
.address-line { display: flex; align-items: center; gap: 5px; min-width: 0; }
.address-line .addr { display: inline-flex; align-items: center; gap: 6px; min-width: 0; min-height: 44px;
    color: var(--ink-secondary); font-size: 13px; text-decoration: none; overflow-wrap: anywhere; }
.address-line .addr span { min-width: 0; }
.address-line .addr:hover { text-decoration: underline; }
.address-line .icon-button { width: 44px; min-height: 44px; padding: 12px; }
.address-line .icon { width: 15px; height: 15px; }
/* Other serving addresses stay secondary to the selected share address. Unfinished connections
   get a separate row so their status and cancellation action belong to an unambiguous hostname. */
.also-line { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 10px;
    margin-top: 3px; color: var(--ink-muted); font-size: 12px; min-width: 0; }
.also-addr { overflow-wrap: anywhere; }
.also-tag { color: var(--warning); }
.pending-domains { list-style: none; margin: 4px 0 0; padding: 0; color: var(--ink-secondary); font-size: 12px; }
.pending-domains li { display: flex; align-items: center; flex-wrap: wrap; gap: 0 8px; }
.pending-address { min-width: 0; overflow-wrap: anywhere; }
.pending-address .also-tag { display: inline-block; margin-left: 4px; }
.cancel-domain { flex: none; padding-inline: 8px; font-size: 12px; text-decoration: underline; text-underline-offset: 3px; }
.site-status { display: grid; grid-template-rows: 44px auto; justify-items: start; }
.site-status > .status { align-self: center; }
.status { display: inline-flex; align-items: center; gap: 6px; color: var(--success); background: var(--success-soft);
    border-radius: 5px; padding: 2px 8px; font-size: 12px; font-weight: 600; }
.status.warning { color: var(--warning); background: var(--warning-soft); }
.status.suspended { color: var(--danger); background: var(--danger-soft); }
.status.unpublished { color: var(--ink-secondary); background: var(--surface-soft); }
.dot { display: inline-block; width: 6px; height: 6px; flex: none; border-radius: 50%; background: currentColor; }
.published-time { display: flex; align-items: center; min-height: 44px; font-size: 12px; color: var(--ink-muted); }
.site-actions { display: grid; grid-template-columns: minmax(0, 1fr) 44px; align-items: start; gap: 8px; min-width: 0; }
.site-actions > button { grid-column: 1; width: 100%; }
.site-menu { position: relative; grid-column: 2; margin-left: 0; }
.site-menu summary { list-style: none; display: grid; place-items: center; width: 44px; height: 44px;
    border: 1px solid transparent; border-radius: 8px; color: var(--ink-secondary); cursor: pointer; }
.site-menu summary::-webkit-details-marker { display: none; }
.site-menu summary:hover, .site-menu[open] summary { background: var(--surface-soft); }
.menu-items { position: absolute; z-index: 5; top: 45px; right: 0; width: 234px; max-width: calc(100vw - 40px); padding: 6px;
    border-radius: 9px; background: var(--surface); box-shadow: var(--shadow); }
.menu-items button, .menu-items a { width: 100%; justify-content: flex-start; text-align: left;
    background: none; border-color: transparent; padding: 8px 10px; font-weight: 400; }
.menu-items button:hover, .menu-items a:hover { background: var(--surface-soft); }
.menu-items .danger { border-top: 1px solid var(--border); border-radius: 0 0 5px 5px; margin-top: 4px; }
.menu-items .danger:hover { background: var(--danger-soft); }
.site-notice { margin: 12px 0 0 62px; color: var(--warning); font-size: 13px; }
.site-notice.suspended { color: var(--danger); }
.cache-notice { color: var(--ink-secondary); }
.cache-notice.is-error { color: var(--danger); }
.rename-form { margin: 18px 0 0 62px; padding-top: 18px; border-top: 1px solid var(--border); }
.rename-form label { display: block; font-size: 13px; font-weight: 600; margin-bottom: 6px; }
.rename-form input { width: 280px; max-width: 100%; font-size: 14px; }
.rename-form .sub { margin-top: 6px; font-size: 12px; }
.versions { margin: 20px 0 0 62px; padding-top: 18px; border-top: 1px solid var(--border); }
.restore-progress { max-width: none; margin: 16px 0; padding: 0; text-align: left; }
.restore-progress .label { font-size: 14px; margin-bottom: 10px; }
.hosting-progress .progress-steps { justify-content: flex-start; gap: 8px 20px; margin-top: 16px; }
.hosting-progress .hosting-address { margin-top: 4px; font-size: 12px; color: var(--ink-secondary); overflow-wrap: anywhere; }
.vlist { list-style: none; margin: 0; padding: 0; }
.version { display: grid; grid-template-columns: minmax(140px, 1fr) minmax(0, auto); align-items: center; gap: 12px 18px; padding: 12px 0; font-size: 13px; color: var(--ink-secondary); }
.version + .version { border-top: 1px solid var(--border); }
.version-identity { display: grid; gap: 4px; min-width: 0; }
.version-name { color: var(--ink); overflow-wrap: anywhere; font-size: 14px; }
.vwhen { color: var(--ink); }
.vwhen .storage-kind { margin-left: 8px; }
.version.is-live .vwhen { font-weight: 600; }
.vwhat { font-variant-numeric: tabular-nums; }
.version-actions { display: flex; align-items: center; justify-content: flex-end; flex-wrap: wrap; gap: 4px; }
.version-actions button { min-height: 44px; }
.version-actions .vtag { margin-inline: 8px; }
.version-icon { position: relative; width: 44px; min-width: 44px; padding: 12px; }
.version-icon .icon { width: 18px; height: 18px; }
.version-action-label { position: absolute; bottom: 100%; right: 0; z-index: 4; padding: 8px 10px;
    width: max-content; max-width: 190px; border: 1px solid var(--border); border-radius: 6px;
    background: var(--surface); color: var(--ink); box-shadow: 0 4px 16px #0003;
    font-size: 12px; font-weight: 400; line-height: 1.4; visibility: hidden; }
.version-icon:first-child .version-action-label { left: 0; right: auto; }
.version-icon:not(.hide-action-label):is(:hover, :focus-visible) .version-action-label { visibility: visible; }
.version-download { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap;
    gap: 12px 24px; padding: 16px; margin: 16px 0; border: 1px solid var(--border); border-radius: 12px;
    background: var(--surface-soft); font-size: 14px; }
.version-download > div:first-child { flex: 1 1 280px; min-width: 0; }
.version-download strong, .version-download p { overflow-wrap: anywhere; }
.version-download p { margin: 6px 0; color: var(--ink-secondary); }
.version-download [role="alert"] { color: var(--danger); }
.version-download progress { display: block; width: 100%; height: 8px; accent-color: var(--brand); margin: 12px 0 8px; }
#download-count { color: var(--ink-secondary); font-size: 13px; font-variant-numeric: tabular-nums; }
.download-actions { display: flex; flex-wrap: wrap; gap: 8px; }
.download-actions :is(button, a) { min-height: 44px; }
.version-group { margin-top: 24px; }
.version-group h4 { margin: 0; font-size: 14px; font-weight: 600; color: var(--ink); }
.version-count { margin-left: 8px; color: var(--ink-secondary); font-size: 12px; font-weight: 400; }
.version-editor { grid-column: 1 / -1; margin: 4px 0 8px; padding: 16px; background: var(--surface-soft); border-radius: 8px; }
.version-editor label { display: block; margin-bottom: 6px; font-weight: 600; color: var(--ink); }
.version-editor input { width: 100%; max-width: 420px; min-height: 44px; }
.version-editor .vnote { max-width: 65ch; }
.version-editor-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-top: 16px; }
.version-error { color: var(--danger); }
.vtag { padding: 3px 8px; border-radius: 5px; background: var(--success-soft); color: var(--success); font-size: 12px; white-space: nowrap; }
.vtag.gone { background: var(--surface-soft); color: var(--ink-muted); }
.vnote { color: var(--ink-muted); margin: 10px 0 0; font-size: 13px; }
.versions > .vnote { max-width: 75ch; }
.empty { color: var(--ink-secondary); font-size: 15px; }
.no-results { text-align: center; padding: 44px 24px; }
.no-results h3 { font-size: 16px; margin-bottom: 6px; }
.no-results p { margin: 0 0 16px; }
.list-caption { color: var(--ink-muted); font-size: 12px; margin: 13px 2px 0; }
.note { display: flex; align-items: flex-start; gap: 12px; border: 1px solid var(--border); border-radius: 9px;
    padding: 16px 18px; font-size: 14px; background: var(--surface); margin: 0 0 22px; }
.note.bad { color: var(--danger); border-color: var(--danger); background: var(--danger-soft); }
.note-copy { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.note .icon-button { margin: -7px -7px -7px 0; color: inherit; }
.note a { color: inherit; }
.load-error { padding: 40px 0; }
.load-error h1 { font-size: 25px; }
.help { margin-top: 30px; padding-top: 22px; border-top: 1px solid var(--border); color: var(--ink-secondary); font-size: 13px; }
.help summary { cursor: pointer; width: fit-content; padding: 5px 0; }
.help ol { padding-left: 20px; max-width: 650px; }
.help li { padding: 4px 0; }
.help a { color: var(--brand); }

/* Sign-in introduces the task, with a useful explanation alongside it. */
.welcome { display: grid; grid-template-columns: 1.05fr 1fr; align-items: center; gap: 88px; padding: 70px 20px 50px; }
.welcome h1 { font-size: 40px; line-height: 1.18; letter-spacing: -.035em; max-width: 420px; margin-bottom: 20px; }
.welcome-intro > p { font-size: 16px; color: var(--ink-secondary); line-height: 1.7; max-width: 370px; margin-bottom: 28px; }
.welcome .primary { min-height: 46px; padding-inline: 18px; }
.welcome-intro .account-hint { font-size: 12px; margin-top: 13px; margin-bottom: 0; color: var(--ink-muted); }
.subscription-gate { grid-template-columns: minmax(0, 640px); }
.subscription-gate h1 { max-width: none; }
#subscription-heading:focus { outline: none; }
.subscription-gate .welcome-intro > p { max-width: 56ch; }
.subscription-gate .account-hint { font-size: 14px; }
.welcome-guide { padding: 32px; border: 1px solid var(--border); border-radius: 16px; background: var(--surface); }
.welcome-guide h2 { margin-bottom: 26px; font-size: 19px; }
.publish-steps { list-style: none; margin: 0; padding: 0; counter-reset: publish; }
.publish-steps li { position: relative; padding: 0 0 27px 44px; counter-increment: publish; }
.publish-steps li:last-child { padding-bottom: 0; }
.publish-steps li::before { content: counter(publish); position: absolute; left: 0; top: 0; width: 27px; height: 27px;
    border-radius: 50%; display: grid; place-items: center; background: var(--surface-soft); color: var(--ink-secondary); font-size: 12px; font-weight: 600; }
.publish-steps li:first-child::before { background: var(--brand-soft); color: var(--brand); }
.publish-steps h3 { margin: 0 0 5px; font-size: 14px; font-weight: 600; }
.publish-steps p { margin: 0; font-size: 13px; color: var(--ink-secondary); }
.welcome-footer { border-top: 1px solid var(--border); padding-top: 22px; margin-top: 42px; color: var(--ink-muted); font-size: 13px; }
.welcome-footer a { color: var(--ink-secondary); }
.skeleton { background: var(--border); border-radius: 5px; }
.skeleton-title { width: 190px; height: 32px; margin-bottom: 12px; }
.skeleton-sub { width: min(340px, 100%); height: 16px; }
.skeleton-upload { height: 126px; margin: 30px 0 38px; opacity: .5; }
.skeleton-row { height: 100px; margin: 1px 0; opacity: .4; }
.confirm-dialog { width: min(520px, calc(100% - 32px)); max-height: calc(100dvh - 32px); overflow: auto;
    padding: 28px; border: 1px solid var(--border);
    border-radius: 14px; background: var(--surface); color: var(--ink); box-shadow: var(--shadow); }
.confirm-dialog::backdrop { background: var(--backdrop); }
.confirm-dialog h2 { margin-bottom: 12px; font-size: 21px; overflow-wrap: anywhere; }
.confirm-dialog p { font-size: 14px; color: var(--ink-secondary); margin-bottom: 20px; white-space: pre-line; overflow-wrap: anywhere; }
.confirm-files { max-height: 28vh; overflow: auto; overscroll-behavior: contain; margin: 0 0 20px;
    padding: 12px 16px 12px 32px; background: var(--surface-soft); border-radius: 8px;
    color: var(--ink); font-size: 13px; overflow-wrap: anywhere; }
.confirm-files li + li { margin-top: 6px; }
.confirm-files { scrollbar-color: var(--border-strong) var(--surface-soft); }
.confirm-dialog .row { justify-content: flex-end; align-items: stretch; }

@media (max-width: 1100px) {
    .has-analytics .site-main { grid-template-columns: 44px minmax(0, 1fr) 216px; }
    .has-analytics .site-identity { grid-column: 2; grid-row: 1; }
    .has-analytics .site-analytics-summary { grid-column: 2; grid-row: 2; max-width: 360px; min-height: 72px; }
    .has-analytics .site-status { display: flex; grid-column: 2; grid-row: 2; align-items: center;
        flex-wrap: wrap; gap: 10px; }
    .has-analytics .site-analytics-summary ~ .site-status { grid-column: 3; grid-row: 2; margin-top: 0;
        flex-direction: column; align-items: flex-start; align-self: center; gap: 8px; }
    .has-analytics .site-analytics-summary ~ .site-status > .status { align-self: flex-start; }
    .has-analytics .published-time { min-height: 0; }
    .has-analytics .site-actions { grid-column: 3; grid-row: 1; }
}
@media (max-width: 920px) {
    .analytics-geography { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 20px; }
    .analytics-breakdown-grid { gap: 24px; }
    .site-main { grid-template-columns: 44px minmax(0, 1fr) 216px; gap: 16px; }
    .site-status { display: flex; grid-column: 2; grid-row: 2; align-items: center; flex-wrap: wrap; gap: 10px; margin-top: -6px; }
    .published-time { min-height: 0; }
    .site-actions { grid-column: 3; grid-row: 1 / span 2; }
    .site-symbol { width: 44px; height: 44px; }
    .site-notice, .versions, .rename-form { margin-left: 60px; }
    .done { flex-wrap: wrap; }
    .done .row { width: 100%; margin-left: 54px; }
    .welcome { gap: 38px; padding-inline: 0; }
    .welcome h1 { font-size: 34px; }
}
@media (max-width: 680px) {
    .analytics-geography, .analytics-breakdown-grid { grid-template-columns: minmax(0, 1fr); gap: 24px; }
    .analytics-origins { margin-top: 24px; padding-top: 24px; }
    .analytics-map { max-width: 520px; width: 100%; margin-inline: auto; }
    .analytics-map-placeholder { min-height: 130px; }
    .analytics-breakdown-grid { margin-top: 24px; padding-block: 24px 12px; }
    .analytics-breakdown-grid > section + section { border-top: 1px solid var(--border); padding-top: 24px; }
    .analytics-dimension-tab { flex: 1; }
    .analytics-country-list { max-height: 330px; }
    .analytics-ranked th, .analytics-ranked td { padding-left: 8px; }
    .top-inner { min-height: 68px; padding: 0 20px; gap: 16px; }
    .brand { font-size: 17px; gap: 8px; }
    .brand .mark { width: 28px; height: 28px; }
    .editor-link { display: none; }
    .who { padding-left: 0; border: 0; gap: 5px; }
    .who .quiet { padding-inline: 9px; font-size: 12px; }
    .wrap { padding: 32px 20px 50px; }
    .page-heading { display: grid; grid-template-columns: minmax(0, 1fr) auto;
        align-items: center; gap: 8px 12px; margin-bottom: 24px; }
    .page-heading > div { display: contents; }
    .page-heading h1 { grid-column: 1; grid-row: 1; margin-bottom: 0; }
    .page-heading > .primary { grid-column: 2; grid-row: 1; }
    .page-heading p, .page-heading .usage-summary { grid-column: 1 / -1; }
    .page-heading .usage-summary button { padding-inline: 0; }
    h1 { font-size: 26px; }
    .page-heading p { font-size: 14px; max-width: none; }
    .page-heading .primary { padding: 9px 11px; font-size: 13px; }
    .page-heading .primary .icon { display: none; }
    .drop { padding: 24px; }
    .drop-content { flex-wrap: wrap; gap: 15px; }
    .upload-symbol { width: 32px; height: 32px; }
    .drop-copy { min-width: calc(100% - 48px); }
    .drop .big { font-size: 16px; }
    .drop .sub { font-size: 13px; }
    .drop-actions { width: 100%; text-align: left; padding-left: 47px; }
    .first-site .drop-actions { text-align: center; padding-left: 0; }
    .drop.first-site { min-height: 300px; }
    .first-site .big { font-size: 21px; }
    .first-site .sub { font-size: 14px; }
    .collection { margin-top: 30px; }
    .collection-heading { flex-wrap: wrap; gap: 16px; }
    .list-tools { width: 100%; gap: 8px; }
    .search { flex: 1; min-width: 0; }
    .search input { width: 100%; min-width: 0; }
    select { max-width: 148px; padding-inline: 8px; }
    .site { padding: 20px 16px; }
    .site-main { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
    .has-analytics .site-main { grid-template-columns: 44px minmax(0, 1fr); gap: 12px; }
    .has-analytics .site-actions { grid-column: 2; grid-row: 3; }
    .has-analytics .site-analytics-summary ~ .site-status { grid-column: 2; grid-row: 3;
        flex-direction: row; align-items: center; gap: 10px; }
    .has-analytics .site-analytics-summary ~ .site-actions { grid-row: 4; }
    .site-symbol { width: 44px; height: 44px; border-radius: 8px; align-self: start; }
    .site-symbol .icon { width: 20px; height: 20px; }
    .site-title { font-size: 15px; }
    .address-line { align-items: flex-start; }
    .address-line .addr { font-size: 12px; }
    .site-status { grid-column: 2; grid-row: 2; margin-top: -5px; }
    .site-actions { grid-column: 2; grid-row: 3; padding-top: 3px; }
    .site-actions:not(:has(> *)) { display: none; }
    .site-actions > button { min-height: 44px; font-size: 14px; }
    .site-notice, .versions, .rename-form { margin-left: 0; }
    .list-caption { max-width: 300px; }
    .rename-form input { width: 100%; }
    .rename-form .row { gap: 8px; }
    .version { flex-wrap: wrap; gap: 5px 12px; }
    .vwhen { width: 100%; }
    .version button { font-size: 12px; }
    .version-actions { width: 100%; justify-content: flex-start; }
    .version { grid-template-columns: minmax(0, 1fr); gap: 8px; }
    .version-editor { padding: 12px; }
    .version-editor input { font-size: 16px; min-height: 44px; }
    .done { gap: 13px; }
    .done .row { margin-left: 0; }
    .done .addr { font-size: 13px; }
    .welcome { grid-template-columns: 1fr; gap: 36px; padding: 20px 0 0; }
    .welcome h1 { font-size: 34px; max-width: 350px; }
    .welcome-intro > p { font-size: 15px; max-width: 370px; margin-bottom: 24px; }
    .welcome-guide { padding: 26px; }
    .welcome-footer { margin-top: 32px; }
    .help { margin-top: 26px; }
}
@media (max-width: 380px) {
    .top-inner, .wrap { padding-inline: 16px; }
    .avatar { display: none; }
    .page-heading { flex-wrap: wrap; }
    .list-tools { flex-wrap: wrap; }
    .search { flex-basis: 100%; }
}
@media (max-width: 680px) {
    input, select, .rename-form input, .domain-form input, .search input { font-size: 16px; min-height: 44px; }
    .list-tools { flex-wrap: wrap; }
    .search { flex-basis: 100%; }
    select { max-width: 100%; }
    .compact-upload { flex-wrap: nowrap; align-items: flex-start; }
    .compact-upload .sub { min-width: 0; }
    .address-line .icon-button, .site-menu summary { width: 44px; min-height: 44px; height: 44px; }
    .site-menu summary { padding: 12px; }
    .site-tabs { gap: 8px; }
    .site-tabs .site-tab { font-size: 12px; }
    .site-tabs.has-analytics { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
    .site-tabs.has-analytics .site-tab { flex-direction: column; gap: 4px; padding: 10px 4px; min-height: 68px; white-space: normal; line-height: 1.4; }
    .analytics-heading { flex-wrap: wrap; gap: 0 12px; }
    .analytics-heading h3 { font-size: 15px; }
    .analytics-heading button { margin-left: -12px; }
    .analytics-totals { gap: 16px 24px; }
    .analytics-totals dd { font-size: 21px; }
    .analytics-chart { margin-inline: -4px; }
    .confirm-dialog { padding: 20px; }
    .confirm-dialog .row button { flex: 1; }
}
@media (prefers-reduced-motion: reduce) {
    *, *::before, *::after { transition: none !important; }
    .progress-activity::after { animation: none; }
}

/* ---- custom domain ----
   Same shape as the history panel: it opens under the card's actions, only when asked for. The
   record is a definition list because that is what it is — three labelled values the customer
   copies into someone else's form. */
.domains {
    margin: 12px 0 0;
    padding: 12px 0 0;
    border-top: 1px solid var(--border);
}

.domain-list { list-style: none; margin: 0; padding: 0; }
.domain + .domain { margin-top: 20px; padding-top: 20px; border-top: 1px solid var(--border); }
.domain-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.domain-name { margin: 0; font-size: 17px; font-weight: 600; color: var(--ink); overflow-wrap: anywhere; min-width: 0; }
.vtag.pending { color: var(--warning); background: var(--warning-soft); }
.domain-intro { margin: 12px 0 16px; color: var(--ink-secondary); font-size: 14px; }
.dns-records { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.dns-record { min-width: 0; padding: 16px; background: var(--surface-soft); border-radius: 8px; }
.dns-apex { grid-column: 1 / -1; }
.dns-record h5 { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 0 0 12px; font-size: 14px; font-weight: 600; }
.record-type { font-size: 12px; font-weight: 600; color: var(--ink-secondary); flex: none; }
.record { display: grid; grid-template-columns: 1fr; gap: 2px; margin: 0; font-size: 13px; }
.record dt { color: var(--ink-secondary); margin-top: 8px; }
.record dd { margin: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; color: var(--ink); min-width: 0; }
.record dd code { overflow-wrap: anywhere; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.record-copy { flex: none; font-size: 12px; padding: 9px 8px; }
.record-copy .icon { width: 16px; height: 16px; }
.domain-help, .domain-manage, .domain-add { font-size: 13px; }
.domain-help { margin: 12px 0; }
.domain-help summary, .domain-manage summary, .domain-add summary { padding: 10px 0; min-height: 44px; box-sizing: border-box; cursor: pointer; color: var(--ink-secondary); }
.domain-help .sub { margin: 8px 0; }
.short-record { max-width: 460px; }
.domain-status { display: flex; align-items: center; justify-content: space-between; gap: 16px; padding: 12px 0; border-top: 1px solid var(--border); }
.domain-status .sub { margin: 0; max-width: 640px; }
.domain-status button { flex: none; }
.copy-help { display: inline-block; margin: 0; }
.domain-manage { margin-top: 8px; }
.domain-manage .sub { margin: 4px 0; }
.domain-add { margin-top: 12px; border-top: 1px solid var(--border); }
.domain-add > summary { font-weight: 600; color: var(--ink); }
.domain-form { margin-top: 8px; }
.domain-form label { display: block; font-size: 13px; color: var(--ink-secondary); margin-bottom: 4px; }
.domain-form input { flex: 1 1 220px; min-width: 0; }
.domain-address-preview { max-width: 65ch; margin-top: 8px; overflow-wrap: anywhere; }
.domain-address-preview strong { color: var(--ink); }
.domain-address-redirect { display: block; margin-top: 4px; }
@media (max-width: 880px) {
    .dns-records { grid-template-columns: 1fr; gap: 12px; }
}
@media (max-width: 600px) {
    .domain-status { align-items: flex-start; flex-direction: column; gap: 8px; }
    .domain-name { font-size: 16px; }
    .dns-record { padding: 12px; }
    .record-copy { padding: 9px 4px; }
    .copy-help { display: block; }
}

/* Storage shares the project library's typography and flat working surfaces. */
.account-storage { scroll-margin-top: 24px; }
.storage-back { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; margin: -12px 0 16px; color: var(--ink-secondary); font-size: 14px; text-decoration: none; }
.storage-back:hover { color: var(--ink); text-decoration: underline; }
.storage-back .icon { transform: rotate(180deg); }
.account-storage .page-heading { margin-bottom: 24px; }
.storage-overview { padding: 24px; background: var(--surface); border: 1px solid var(--border); border-radius: 12px; }
.storage-capacity { display: flex; flex-wrap: wrap; align-items: baseline; gap: 8px; font-size: 14px; color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.storage-capacity strong { font-size: 20px; font-weight: 600; color: var(--ink); }
.storage-remaining { margin-left: auto; }
.storage-chart { display: block; width: 100%; height: 6px; border-radius: 3px; overflow: hidden; }
.storage-chart-capacity { height: 20px; border-radius: 5px; margin: 20px 0 24px; }
.storage-fill-site { fill: var(--brand); background: var(--brand); }
.storage-fill-history { fill: #5a82c2; background: #5a82c2; }
.storage-fill-trash { fill: #a888b5; background: #a888b5; }
.storage-fill-other { fill: #439b95; background: #439b95; }
.storage-fill-unfinished { fill: #af82b9; background: #af82b9; }
.storage-fill-removing { fill: var(--ink-muted); background: var(--ink-muted); }
.storage-fill-available { fill: var(--surface-soft); background: var(--surface-soft); }
.storage-fill-reserved { fill: var(--surface-soft); background: var(--surface-soft); stroke: var(--ink-muted); stroke-width: 2px; stroke-dasharray: 4 3; }
.storage-legend { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 12px 16px; margin: 20px 0 0; padding: 0; list-style: none; }
.storage-legend > li { min-width: 0; }
.storage-category-filter { display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; gap: 6px; width: 100%; min-height: 64px; padding: 10px 8px; text-align: left; border: 1px solid transparent; border-radius: 4px; background: transparent; }
.storage-category-filter:hover { border-color: var(--border-strong); }
.storage-category-filter[aria-pressed="true"] { border-color: var(--ink-secondary); background: var(--surface-soft); }
.storage-category-label { display: flex; align-items: center; gap: 8px; color: var(--ink-secondary); font-size: 12px; font-weight: 400; }
.storage-category-filter strong, .storage-reservation strong { display: block; margin-left: 18px; font-size: 15px; font-weight: 600; color: var(--ink); font-variant-numeric: tabular-nums; }
.storage-reservation { display: flex; flex-direction: column; gap: 6px; padding: 11px 9px; }
.storage-overview-note { margin: 16px 8px 0; max-width: 75ch; font-size: 12px; color: var(--ink-secondary); }
.storage-swatch { flex: none; width: 10px; height: 10px; border-radius: 2px; }
.storage-swatch.storage-fill-reserved { border: 1px dashed var(--ink-muted); }
.storage-measurement-note { margin: 20px 0 0; max-width: 75ch; color: var(--ink-secondary); font-size: 12px; }
.storage-sites { border-top: 1px solid var(--border); }
.storage-site { border-bottom: 1px solid var(--border); }
.storage-site-summary { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; align-items: center; gap: 8px 16px; padding: 20px 4px; cursor: pointer; list-style: none; }
.storage-site-summary::-webkit-details-marker { display: none; }
.storage-site-summary:hover { background: var(--surface-soft); }
.storage-site-chevron { display: grid; place-items: center; width: 44px; min-height: 44px; color: var(--ink-secondary); }
.storage-site[open] > summary .storage-site-chevron .icon { transform: rotate(90deg); }
.storage-site-name { min-width: 0; }
.storage-site-name strong { display: block; overflow-wrap: anywhere; font-size: 15px; font-weight: 600; }
.storage-site-facts { display: block; margin-top: 4px; color: var(--ink-secondary); font-size: 12px; }
.storage-site-size { text-align: right; font-size: 16px; font-weight: 600; font-variant-numeric: tabular-nums; white-space: nowrap; }
.storage-site-size > span { display: block; margin-top: 4px; color: var(--ink-secondary); font-size: 12px; font-weight: 400; }
.storage-site-summary .storage-chart { grid-column: 2 / -1; }
.storage-site-content { padding: 0 4px 24px 64px; }
.storage-category { margin-top: 28px; }
.storage-category:first-child { margin-top: 12px; }
.storage-category h3 { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; margin: 0 0 12px; color: var(--ink); font-size: 14px; font-weight: 600; }
.storage-category h3 > span { color: var(--ink-secondary); font-variant-numeric: tabular-nums; }
.storage-category h4 { margin: 24px 0 8px; color: var(--ink-secondary); font-size: 13px; font-weight: 600; }
.storage-section-note { margin: 0 0 12px; max-width: 75ch; font-size: 12px; color: var(--ink-secondary); }
.storage-cleanup { padding: 12px 0 8px; }
.storage-cleanup-panel { margin-top: 20px; border-top: 1px solid var(--border); padding-top: 8px; font-size: 13px; }
.storage-cleanup-panel > summary, .storage-current-details > summary { width: fit-content; min-height: 44px; padding: 12px 0; cursor: pointer; color: var(--ink-secondary); font-size: 13px; }
.storage-current-heading { display: grid; grid-template-columns: minmax(0, 1fr) 172px; gap: 24px; align-items: center; }
.storage-current-heading h3 { margin: 0; }
.storage-current-heading > button { justify-self: end; }
.storage-current-details .storage-row { grid-template-columns: minmax(0, 1fr) 88px; }
.storage-version-group + .storage-version-group, .storage-older { margin-top: 28px; }
.storage-version-group + .storage-older { border-top: 0; margin-top: 12px; }
.storage-group-count { margin-left: 8px; color: var(--ink-muted); font-size: 12px; font-weight: 400; font-variant-numeric: tabular-nums; }
.storage-older { border-top: 1px solid var(--border); }
.storage-older > summary { display: flex; align-items: center; gap: 12px; min-height: 52px; padding: 12px 0; cursor: pointer; font-size: 14px; font-weight: 600; list-style: none; }
.storage-older > summary::-webkit-details-marker { display: none; }
.storage-older > summary::before { content: ''; flex: none; width: 7px; height: 7px; margin: 0 4px 0 2px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: rotate(-45deg); }
.storage-older[open] > summary::before { transform: rotate(45deg); }
.storage-older > summary > span:last-child { margin-left: auto; color: var(--ink-secondary); font-variant-numeric: tabular-nums; white-space: nowrap; }
.storage-cleanup-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin-bottom: 12px; }
.storage-cleanup-controls label { font-size: 13px; color: var(--ink); }
.storage-cleanup-controls input { width: 88px; min-height: 44px; padding: 8px 12px; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--surface); color: var(--ink); font-size: 16px; font-variant-numeric: tabular-nums; }
.storage-cleanup-controls button { min-height: 44px; }
.storage-cleanup .storage-section-note { margin-bottom: 0; }
.storage-cleanup-notice { margin: 12px 0 0; max-width: 75ch; color: var(--ink-secondary); font-size: 13px; }
.storage-site-summary { scroll-margin-top: 24px; }
.storage-section { margin-top: 36px; }
.storage-section-heading h2 { display: flex; gap: 8px; align-items: center; margin: 0; }
.storage-section-heading p { color: var(--ink-secondary); margin: 6px 0 16px; font-size: 13px; }
.storage-filter-context { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 0 16px; }
.storage-filter-context p { flex: 1 1 240px; }
.storage-filter-context button { flex: none; margin-bottom: 8px; }
.storage-section-heading .storage-filter-help { margin-top: -4px; max-width: 75ch; }
.storage-list { list-style: none; padding: 0; margin: 0; border-top: 1px solid var(--border); }
.storage-row { display: grid; grid-template-columns: minmax(0, 1fr) 88px 172px; align-items: start; gap: 24px; padding: 20px 0; border-bottom: 1px solid var(--border); }
.storage-version-row { grid-template-areas: "identity size actions" "facts size actions" "details details details"; row-gap: 0; }
.storage-version-row .storage-file { display: contents; }
.storage-version-row .storage-file-heading { grid-area: identity; min-width: 0; }
.storage-version-row .storage-file-facts { grid-area: facts; }
.storage-version-row .storage-file-size { grid-area: size; }
.storage-version-row .storage-actions { grid-area: actions; }
.storage-version-row .storage-details { grid-area: details; }
.storage-version-row .storage-protection { grid-column: 1 / -1; grid-row: 3; }
.storage-version-row:has(.storage-protection) { grid-template-areas: "identity size actions" "facts size actions" "deadline deadline deadline" "details details details"; }
.storage-file { min-width: 0; }
.storage-file strong { overflow-wrap: anywhere; font-size: 14px; }
.storage-file-heading { display: flex; flex-wrap: wrap; gap: 6px 12px; align-items: baseline; }
.storage-kind { color: var(--ink-secondary); font-size: 12px; }
.storage-kind.warning { color: var(--warning); }
.storage-kind-warning { color: var(--warning); }
.storage-file-facts { margin: 4px 0 0; font-size: 12px; color: var(--ink-secondary); }
.storage-protection { margin: 8px 0 0; max-width: 65ch; font-size: 13px; color: var(--ink-secondary); }
.storage-file-size { font-size: 14px; font-weight: 600; font-variant-numeric: tabular-nums; text-align: right; white-space: nowrap; padding-top: 2px; }
.storage-actions { display: flex; justify-content: flex-end; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: -10px; }
.storage-actions > span { color: var(--ink-secondary); font-size: 13px; }
.storage-actions button, .account-storage button, .usage-summary button { min-height: 44px; }
.storage-actions button { display: inline-flex; align-items: center; gap: 6px; }
.storage-details { margin-top: 4px; color: var(--ink-secondary); font-size: 12px; }
.storage-details summary { width: fit-content; cursor: pointer; padding: 12px 0; min-height: 44px; }
.storage-details p { margin: 0 0 4px; line-height: 1.8; }
.storage-detail-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-left: -12px; }
.storage-empty { padding: 24px 0; color: var(--ink-secondary); font-size: 14px; border-top: 1px solid var(--border); }
.storage-empty h3 { font-size: 16px; color: var(--ink); margin: 0 0 8px; }
.storage-empty p { margin: 0; }
.storage-help { margin-top: 32px; padding-top: 16px; border-top: 1px solid var(--border); font-size: 13px; color: var(--ink-secondary); }
.storage-help summary { min-height: 44px; padding: 12px 0; cursor: pointer; }
.storage-help p { max-width: 75ch; }
.storage-error { color: var(--danger); }
.storage-view-switch { display: flex; gap: 24px; margin-top: 28px; border-bottom: 1px solid var(--border); }
.storage-view-switch button { display: inline-flex; align-items: center; gap: 8px; min-width: 44px; border: 0; border-radius: 0; background: transparent; padding: 12px 4px; color: var(--ink-secondary); border-bottom: 2px solid transparent; }
.storage-view-switch button[aria-pressed="true"] { color: var(--ink); border-bottom-color: var(--brand); }
.trash-row { display: grid; grid-template-columns: minmax(0, 1fr) 190px 180px; align-items: start; gap: 24px; padding: 24px 0; border-bottom: 1px solid var(--border); }
.trash-version { min-width: 0; overflow-wrap: anywhere; font-size: 14px; }
.trash-version p { margin: 6px 0 0; color: var(--ink-secondary); font-size: 13px; }
.trash-expiry { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-variant-numeric: tabular-nums; }
.trash-expiry span { color: var(--ink-secondary); }
.trash-expiry time { color: var(--ink); }
.trash-actions { display: flex; flex-direction: column; align-items: flex-end; gap: 4px; }
.trash-actions button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; min-width: 44px; }
.trash-pagination { display: flex; align-items: center; justify-content: space-between; gap: 16px; color: var(--ink-secondary); font-size: 13px; }
.trash-inventory .storage-section-heading p { max-width: 75ch; }
.usage-summary button { flex: none; }
@media (max-width: 680px) {
    .trash-row { grid-template-columns: minmax(0, 1fr); gap: 16px; padding: 20px 0; }
    .trash-actions { flex-direction: row; align-items: center; flex-wrap: wrap; margin-left: -12px; }
    .trash-pagination { flex-wrap: wrap; }
    .storage-overview { padding: 20px; }
    .storage-row { grid-template-columns: minmax(0, 1fr) auto; gap: 8px 16px; }
    .storage-actions { grid-column: 1 / -1; justify-content: flex-start; margin: -4px 0 0 -12px; }
    .storage-version-row { grid-template-areas: "identity size" "facts facts" "details actions"; row-gap: 0; }
    .storage-version-row .storage-actions { align-self: start; justify-content: flex-end; margin: 4px -12px 0 0; }
    .storage-version-row .storage-details[open] { grid-column: 1 / -1; }
    .storage-version-row:has(.storage-actions) .storage-details > summary { max-width: calc(100% - 100px); min-width: 112px; }
    .storage-version-row:has(.storage-protection) { grid-template-areas: "identity size" "facts facts" "deadline deadline" "details actions"; }
    .storage-legend { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 8px; }
    .storage-category-label { align-items: baseline; }
    .storage-swatch { align-self: flex-start; margin-top: 4px; }
    .storage-overview-note { margin-left: 0; margin-right: 0; }
    .storage-remaining { width: 100%; margin: 4px 0 0; }
    .storage-site-summary { column-gap: 8px; padding: 16px 0; }
    .storage-site-size { font-size: 14px; }
    .storage-site-content { padding: 0 0 20px; }
    .storage-current-heading { grid-template-columns: minmax(0, 1fr); gap: 4px; }
    .storage-current-heading > button { justify-self: start; margin-left: -12px; }
    .storage-current-details .storage-row { grid-template-columns: minmax(0, 1fr) auto; }
    .storage-section { margin-top: 28px; }
    .account-storage .page-heading { align-items: flex-start; gap: 16px; }
    .site-tabs { gap: 12px; }
    .site-tabs .site-tab { font-size: 13px; gap: 6px; }
}
.history-storage-link { display: flex; flex-wrap: wrap; align-items: center; gap: 0 4px; margin: 16px 0 0; color: var(--ink-secondary); font-size: 13px; }
.history-storage-link button { font-size: 13px; }

/* Subscription recovery keeps the workspace and download navigation available. */
.subscription-notice { margin-block: 0 32px; padding: 24px; border: 1px solid var(--border-strong); border-radius: 12px; }
.subscription-notice h2 { margin: 0 0 8px; font-size: 16px; }
.subscription-notice p { max-width: 72ch; margin: 8px 0; }
.subscription-notice-actions { display: flex; flex-wrap: wrap; gap: 8px 16px; margin-top: 16px; align-items: center; }
@media (max-width: 680px) { .subscription-notice { padding: 16px; } }
