@font-face {
  font-family: "Hanken Grotesk";
  src: url("/assets/hanken-grotesk-latin.woff2") format("woff2");
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

:root {
  color-scheme: dark;
  --bg-base: oklch(15% 0.01 285);
  --bg-surface: oklch(19% 0.015 285);
  --bg-elevated: oklch(23% 0.02 285);
  --bg-muted: oklch(26% 0.018 285);
  --bg-overlay: oklch(16% 0.014 285 / 0.82);
  --border-subtle: oklch(28% 0.015 285);
  --border-strong: oklch(36% 0.02 285);
  --fg-primary: oklch(96% 0.01 285);
  --fg-secondary: oklch(74% 0.015 285);
  --fg-muted: oklch(64% 0.015 285);
  --accent: oklch(66% 0.22 295);
  --accent-solid: oklch(59% 0.22 295);
  --accent-soft: oklch(40% 0.14 295);
  --success: oklch(72% 0.18 155);
  --warning: oklch(82% 0.18 75);
  --danger: oklch(66% 0.22 25);
  --font-sans: "Hanken Grotesk", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-display: "Hanken Grotesk", "Segoe UI Variable", "Segoe UI", system-ui, sans-serif;
  --font-mono: "Cascadia Mono", "SFMono-Regular", Consolas, monospace;
  --shell-max: 72rem;
  --gutter: clamp(0.75rem, 2.4vw, 1.75rem);
  --bottom-height: 3.5rem;
  --z-topbar: 20;
  --z-status: 18;
}

*, *::before, *::after { box-sizing: border-box; letter-spacing: 0 !important; }
html { min-width: 20rem; min-height: 100%; background: var(--bg-base); font-family: var(--font-sans); color: var(--fg-primary); -webkit-font-smoothing: antialiased; scrollbar-gutter: stable; }
body { min-height: 100svh; margin: 0; background: var(--bg-base); font-size: 0.875rem; line-height: 1.55; }
button, input, select { color: inherit; font: inherit; }
button, a, select { -webkit-tap-highlight-color: transparent; }
button { border: 0; }
a { color: inherit; text-decoration: none; }
img, svg { display: block; }
h1, h2, h3, p, ul, ol { margin: 0; }
h1, h2, h3 { font-family: var(--font-display); font-weight: 600; line-height: 1.1; }
[hidden] { display: none !important; }
.tabular, time, data, output { font-family: var(--font-mono); font-variant-numeric: tabular-nums lining-nums; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
.skip-link { position: fixed; top: 0.5rem; left: 0.5rem; z-index: 50; min-height: 2.75rem; display: inline-flex; align-items: center; padding: 0.65rem 0.9rem; background: var(--fg-primary); color: var(--bg-base); transform: translateY(-150%); }
.skip-link:focus { transform: translateY(0); }
:focus-visible { outline: 2px solid var(--accent) !important; outline-offset: 2px; border-radius: 2px; }

.topbar { position: sticky; top: 0; z-index: var(--z-topbar); min-height: 3.5rem; display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); align-items: center; gap: 0.5rem; padding: 0.45rem max(var(--gutter), calc((100vw - var(--shell-max)) / 2 + var(--gutter))); border-bottom: 1px solid var(--border-subtle); background: oklch(13% 0.01 285 / 0.98); }
.brand-group { min-width: 0; display: flex; align-items: center; gap: 0.45rem; justify-self: start; }
.brand { min-width: 2.75rem; display: inline-flex; align-items: center; gap: 0.5rem; justify-self: start; min-height: 2.75rem; font-family: var(--font-display); font-size: 0.95rem; font-weight: 600; }
.brand img { width: 1.55rem; height: 1.55rem; }
.plan-badge { padding: 0.28rem 0.48rem; border: 1px solid color-mix(in oklch, var(--warning) 35%, transparent); background: color-mix(in oklch, var(--warning) 12%, var(--bg-base)); color: var(--warning); font-family: var(--font-display); font-size: 0.62rem; text-transform: uppercase; white-space: nowrap; }
.plan-badge[data-plan="premium"] { border-color: color-mix(in oklch, var(--success) 35%, transparent); background: color-mix(in oklch, var(--success) 10%, var(--bg-base)); color: var(--success); }
.plan-badge[data-plan="expired"] { border-color: color-mix(in oklch, var(--danger) 45%, transparent); background: color-mix(in oklch, var(--danger) 12%, var(--bg-base)); color: var(--danger); }
.topbar__nav { display: flex; align-items: center; justify-content: center; gap: 0.25rem; }
.nav-tab { min-height: 2.75rem; display: inline-flex; align-items: center; gap: 0.45rem; padding: 0.45rem 0.72rem; border: 1px solid transparent; border-radius: 2px; background: transparent; color: var(--fg-secondary); font-family: var(--font-display); cursor: pointer; }
.nav-tab:hover { background: var(--bg-surface); color: var(--fg-primary); }
.nav-tab.is-active { border-color: color-mix(in oklch, var(--accent) 40%, transparent); background: var(--bg-elevated); color: var(--accent); box-shadow: 3px 3px 0 color-mix(in oklch, var(--accent) 20%, var(--bg-base)); }
.topbar__account { min-width: 0; display: flex; align-items: center; justify-content: flex-end; gap: 0.3rem; }
.device-picker select { min-height: 2.75rem; max-width: 10rem; padding: 0.4rem 0.6rem; border: 1px solid var(--border-subtle); border-radius: 2px; background: var(--bg-surface); }
.icon-button, .account-button { min-width: 2.75rem; min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; border-radius: 2px; background: transparent; color: var(--fg-secondary); cursor: pointer; }
.icon-button:hover, .account-button:hover { background: var(--bg-surface); color: var(--fg-primary); }
.account-menu { position: relative; }
.account-menu > summary { list-style: none; }
.account-menu > summary::-webkit-details-marker { display: none; }
.account-button { gap: 0.45rem; padding-inline: 0.65rem; }
.account-button > [data-account-email] { display: none; }
.account-button__chevron { color: var(--fg-muted); font-size: 0.72rem; transition: transform 140ms ease; }
.account-menu[open] .account-button { background: var(--bg-surface); color: var(--fg-primary); }
.account-menu[open] .account-button__chevron { transform: rotate(180deg); }
.account-menu__panel { position: absolute; top: calc(100% + 0.45rem); right: 0; z-index: calc(var(--z-topbar) + 1); width: min(18rem, calc(100vw - 1.5rem)); padding: 0.8rem; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-elevated); box-shadow: 0 1rem 2.5rem oklch(5% 0.02 285 / 0.55); }
.account-menu__label { color: var(--fg-muted); font-size: 0.62rem; font-weight: 700; }
.account-menu__email { margin-top: 0.2rem; overflow: hidden; color: var(--fg-primary); font-size: 0.78rem; text-overflow: ellipsis; white-space: nowrap; }
.account-menu__logout { width: 100%; min-height: 2.75rem; margin-top: 0.75rem; padding: 0.55rem 0.7rem; border: 1px solid color-mix(in oklch, var(--danger) 35%, var(--border-subtle)); border-radius: 2px; background: color-mix(in oklch, var(--danger) 8%, var(--bg-surface)); color: var(--fg-primary); text-align: left; cursor: pointer; }
.account-menu__logout:hover { border-color: color-mix(in oklch, var(--danger) 65%, var(--border-subtle)); background: color-mix(in oklch, var(--danger) 15%, var(--bg-surface)); }
.account-menu__logout:disabled { cursor: wait; opacity: 0.6; }
.online-dot { width: 0.45rem; height: 0.45rem; display: inline-block; flex: 0 0 auto; border-radius: 50%; background: var(--success); box-shadow: 0 0 8px color-mix(in oklch, var(--success) 65%, transparent); }
.readonly-chip { display: none; color: var(--fg-muted); font-size: 0.68rem; }
.manage-devices-button { font-family: var(--font-mono); font-size: 1rem; }

main { min-height: calc(100svh - 3.5rem); }
.screen { width: min(100%, 72rem); min-height: calc(100svh - 3.5rem); margin-inline: auto; padding: clamp(2rem, 6vw, 5rem) var(--gutter); }
.screen--boot { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 0.65rem; text-align: center; }
.boot-mark { width: 4.5rem; height: 4.5rem; margin-bottom: 0.5rem; }
.screen--boot h1 { font-size: 1.35rem; }
.screen--boot p { color: var(--fg-secondary); }
.boot-track { width: min(14rem, 70vw); height: 2px; margin-top: 1rem; overflow: hidden; background: var(--border-subtle); }
.boot-track span { display: block; width: 40%; height: 100%; background: var(--accent); animation: boot 1.2s ease-out infinite; }
@keyframes boot { from { transform: translateX(-110%); } to { transform: translateX(360%); } }

.screen--auth { display: grid; align-items: center; gap: clamp(2rem, 7vw, 6rem); }
.auth-intro { max-width: 42rem; }
.auth-intro > img { width: 4.9rem; height: 4.9rem; margin-bottom: 2rem; }
.hud-label, .status-kicker { color: var(--accent); font-family: var(--font-display); font-size: 0.68rem; text-transform: uppercase; }
.auth-intro h1 { max-width: 16ch; margin-top: 0.75rem; font-size: clamp(2.4rem, 8vw, 4.8rem); }
.auth-intro > p:not(.hud-label) { max-width: 58ch; margin-top: 1.25rem; color: var(--fg-secondary); font-size: 1.05rem; }
.auth-facts { display: grid; gap: 0.65rem; margin-top: 2rem; padding: 1.25rem 0 0; border-top: 1px solid var(--border-subtle); list-style: none; }
.auth-facts span { color: var(--success); }
.auth-panel { max-width: 29rem; padding: clamp(1.25rem, 4vw, 2rem); border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-surface); }
.auth-panel h2 { margin-top: 0.55rem; font-size: 1.8rem; }
.auth-panel h2 + p, .auth-sent h2 + p { margin-top: 0.65rem; color: var(--fg-secondary); }
.login-form { display: grid; gap: 0.65rem; margin-top: 1.5rem; }
.login-form label { font-weight: 650; }
.login-form input { width: 100%; min-height: 3rem; padding: 0.65rem 0.75rem; border: 1px solid var(--border-strong); border-radius: 2px; background: var(--bg-base); }
.login-form input::placeholder { color: var(--fg-secondary); opacity: 1; }
.field-help, .field-error { font-size: 0.78rem; }
.field-help { color: var(--fg-muted); }
.field-error { color: var(--danger); }
.button { min-height: 2.75rem; display: inline-flex; align-items: center; justify-content: center; gap: 0.6rem; padding: 0.65rem 1rem; border-radius: 2px; font-weight: 700; cursor: pointer; }
.button--primary { border: 1px solid var(--accent); background: var(--accent-solid); color: white; }
.button--primary:hover { background: var(--accent); color: var(--bg-base); }
.button--secondary { border: 1px solid var(--border-strong); background: transparent; }
.login-form .button { width: 100%; margin-top: 0.35rem; }
.auth-panel__security { margin-top: 1.5rem; padding-top: 1rem; border-top: 1px solid var(--border-subtle); color: var(--fg-muted); font-size: 0.75rem; }
.auth-sent__icon { width: 2.5rem; height: 2.5rem; display: grid; place-items: center; margin-bottom: 1rem; background: color-mix(in oklch, var(--success) 18%, var(--bg-base)); color: var(--success); }
.auth-sent .button { margin-top: 1.25rem; }

.screen--error { max-width: 42rem; display: flex; flex-direction: column; align-items: flex-start; justify-content: center; gap: 0.85rem; }
.error-symbol { width: 3rem; height: 3rem; display: grid; place-items: center; border: 1px solid var(--danger); color: var(--danger); font-family: var(--font-display); font-size: 1.4rem; }
.screen--error h1 { font-size: clamp(2rem, 6vw, 3.4rem); }
.screen--error > p:not(.hud-label) { color: var(--fg-secondary); }

.remote-shell { min-height: calc(100svh - 3.5rem); padding-bottom: var(--bottom-height); }
.no-device { width: min(calc(100% - 2 * var(--gutter)), var(--shell-max)); min-height: calc(100svh - 8rem); margin-inline: auto; display: grid; place-content: center; justify-items: start; gap: 0.85rem; }
.no-device h1 { font-size: clamp(2rem, 7vw, 3.5rem); }
.no-device > p:not(.hud-label) { max-width: 55ch; color: var(--fg-secondary); }
.no-device .button { margin-top: 0.65rem; }
.dashboard__content { min-width: 0; }
.upgrade-notice { padding: 0.75rem var(--gutter); border-bottom: 1px solid color-mix(in oklch, var(--warning) 45%, transparent); background: color-mix(in oklch, var(--warning) 10%, var(--bg-base)); color: var(--warning); text-align: center; }
.trial-expired-notice { width: min(calc(100% - 2 * var(--gutter)), var(--shell-max)); display: flex; align-items: center; justify-content: space-between; gap: 1.5rem; margin: 1rem auto 0; padding: 1rem 1.15rem; border: 1px solid color-mix(in oklch, var(--danger) 55%, var(--border-strong)); border-radius: 4px; background: color-mix(in oklch, var(--danger) 10%, var(--bg-surface)); box-shadow: inset 3px 0 0 var(--danger); }
.trial-expired-notice > div { min-width: 0; }
.trial-expired-notice .hud-label { color: var(--danger); }
.trial-expired-notice h2 { margin-top: 0.25rem; font-size: clamp(1.2rem, 3vw, 1.55rem); }
.trial-expired-notice h2 + p { margin-top: 0.35rem; color: var(--fg-secondary); }
.trial-expired-notice .button { flex: 0 0 auto; }
.trial-expired-notice__feedback { min-height: 1.2em; margin-top: 0.35rem; color: var(--warning); font-size: 0.75rem; }
.tab-panel { min-width: 0; }
.overview-scene { position: relative; min-height: calc(100svh - 3.5rem - var(--bottom-height)); overflow: clip; background: var(--bg-base); isolation: isolate; }
.overview-scene__art { position: absolute; inset: 0; z-index: -3; width: 100%; height: 100%; min-height: 100%; object-fit: cover; object-position: center top; opacity: 0.86; }
.overview-scene__shade { position: absolute; inset: 0; z-index: -2; background: linear-gradient(180deg, oklch(15% 0.01 285 / 0.28) 0%, oklch(15% 0.01 285 / 0.42) 42%, oklch(15% 0.01 285 / 0.82) 100%), radial-gradient(ellipse 100% 70% at 50% 0%, transparent 0%, oklch(15% 0.01 285 / 0.52) 85%); }
.overview-content { width: min(100%, var(--shell-max)); margin-inline: auto; padding: 2rem var(--gutter) 3rem; }
.current-status { min-height: 4.25rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.75rem 1rem; border: 1px solid color-mix(in oklch, var(--success) 40%, transparent); background: color-mix(in oklch, var(--success) 12%, oklch(15% 0.01 285 / 0.82)); color: var(--success); }
.status-icon { width: 2.35rem; height: 2.35rem; display: grid; place-items: center; flex: 0 0 auto; border: 1px solid color-mix(in oklch, var(--success) 42%, transparent); color: var(--success); font-family: var(--font-mono); font-size: 1.3rem; }
.current-status > div { min-width: 0; display: grid; }
.status-kicker { color: var(--success); }
.current-status strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.freshness { margin-left: auto; color: var(--fg-secondary); font-size: 0.72rem; white-space: nowrap; }

.active-board, .queue-board { margin-top: 1.15rem; padding: 1rem; border: 1px solid color-mix(in oklch, var(--accent) 46%, transparent); background: oklch(15% 0.01 285 / 0.68); }
.active-board__header { display: flex; align-items: flex-end; justify-content: space-between; gap: 1rem; padding: 0.2rem 0.2rem 1rem; }
.active-board__header h1 { margin-top: 0.35rem; font-size: clamp(1.8rem, 6vw, 2.8rem); overflow-wrap: anywhere; }
.active-meta { display: grid; justify-items: end; gap: 0.25rem; color: var(--fg-secondary); font-size: 0.75rem; }
.campaign-stack, .campaign-library { display: grid; gap: 1rem; }
.campaign-block { min-width: 0; padding: 0.85rem; border: 1px solid var(--border-strong); background: oklch(15% 0.01 285 / 0.72); }
.campaign-block__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; margin-bottom: 0.85rem; }
.campaign-block__header h2 { font-size: 1.05rem; }
.campaign-block__header p, .campaign-block__header time { color: var(--fg-secondary); font-size: 0.72rem; }
.campaign-block__header time { flex: 0 0 auto; text-align: right; }
.drop-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 9.6rem), 12.5rem)); justify-content: start; gap: 0.65rem; }
.drop-card { min-width: 0; display: grid; grid-template-rows: auto auto auto auto auto; align-content: start; gap: 0.45rem; padding: 0.55rem; border: 1px solid var(--border-subtle); background: oklch(19% 0.015 285 / 0.82); }
.drop-card.is-active { border-color: var(--accent); background: color-mix(in oklch, var(--accent) 8%, var(--bg-surface)); }
.drop-card.is-unverifiable { border-color: color-mix(in oklch, var(--warning) 45%, var(--border)); background: color-mix(in oklch, var(--warning) 5%, var(--bg-surface)); }
.image-fallback { position: relative; overflow: hidden; display: grid; place-items: center; background: var(--bg-elevated); color: var(--accent); font-family: var(--font-display); }
.image-fallback img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.drop-card__image { width: 100%; aspect-ratio: 1; }
.drop-card h3 { min-height: 2.2em; font-family: var(--font-sans); font-size: 0.78rem; line-height: 1.1; text-align: center; overflow-wrap: anywhere; }
.drop-card__status { color: var(--fg-secondary); font-size: 0.67rem; text-align: center; }
.drop-card.is-active .drop-card__status { color: var(--success); }
.drop-card.is-unverifiable .drop-card__status { color: var(--warning); }
.progress-track { width: 100%; height: 3px; overflow: hidden; border: 0; background: var(--bg-muted); color: var(--accent); appearance: none; }
.progress-track::-webkit-progress-bar { background: var(--bg-muted); }
.progress-track::-webkit-progress-value { background: var(--accent); }
.progress-track::-moz-progress-bar { background: var(--accent); }
.drop-card__figures { display: flex; align-items: baseline; justify-content: space-between; gap: 0.35rem; font-size: 0.67rem; }
.drop-card__figures strong { color: var(--accent); }
.drop-card__figures span { color: var(--fg-secondary); }
.active-empty { min-height: 8rem; display: grid; place-content: center; gap: 0.2rem; text-align: center; }
.active-empty span { color: var(--fg-secondary); }

.section-heading { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding-bottom: 0.85rem; }
.section-heading h2 { font-size: 1rem; }
.section-heading p { margin-top: 0.2rem; color: var(--fg-secondary); font-size: 0.73rem; }
.count-badge { min-width: 1.8rem; height: 1.8rem; display: grid; place-items: center; border: 1px solid var(--accent-soft); color: var(--accent); font-family: var(--font-mono); font-size: 0.72rem; }
.queue-list { display: grid; gap: 0.5rem; padding: 0; list-style: none; }
.queue-item { min-width: 0; min-height: 4.75rem; display: flex; align-items: center; gap: 0.7rem; padding: 0.55rem; border: 1px solid var(--border-subtle); background: oklch(15% 0.01 285 / 0.6); }
.queue-item__position { width: 1.8rem; height: 1.8rem; display: grid; place-items: center; flex: 0 0 auto; background: var(--bg-elevated); color: var(--fg-secondary); font-size: 0.68rem; }
.queue-item__image { width: 2.7rem; height: 2.7rem; flex: 0 0 auto; }
.queue-item__copy { min-width: 0; flex: 1; }
.queue-item__title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 0.35rem; }
.queue-item__title strong { font-size: 0.82rem; }
.queue-item__title span, .queue-item__detail { color: var(--fg-secondary); font-size: 0.68rem; }
.queue-item__state { margin-top: 0.1rem; color: var(--success); font-size: 0.72rem; }
.queue-item--waiting .queue-item__state { color: var(--warning); }
.queue-item--blocked .queue-item__state { color: var(--danger); }
.queue-item__next { flex: 0 0 auto; color: var(--accent); font-family: var(--font-display); font-size: 0.62rem; }
.list-empty { min-height: 9rem; display: grid; place-content: center; gap: 0.25rem; text-align: center; }
.list-empty span { color: var(--fg-secondary); }

.mining-plan { margin-top: 1.15rem; display: grid; gap: 0.85rem; padding: 1rem; border-top: 1px solid var(--border-subtle); border-bottom: 1px solid var(--border-subtle); background: oklch(15% 0.01 285 / 0.68); }
.mining-plan h2 { font-size: 0.95rem; }
.mining-plan p { color: var(--fg-secondary); font-size: 0.72rem; }
.mining-plan ol { display: grid; gap: 0.35rem; padding: 0; list-style: none; }
.mining-plan li { min-height: 3rem; display: flex; align-items: center; gap: 0.75rem; padding: 0.45rem 0.6rem; border: 1px solid var(--border-subtle); }
.mining-plan li > span { color: var(--accent); }
.mining-plan li > div { min-width: 0; display: grid; flex: 1; }
.mining-plan small { color: var(--fg-secondary); }
.mining-plan time { color: var(--fg-secondary); font-size: 0.72rem; }
.mining-plan .plan-empty { color: var(--fg-secondary); }

.content-page { width: min(100%, var(--shell-max)); min-height: calc(100svh - 3.5rem - var(--bottom-height)); margin-inline: auto; padding: 2.25rem var(--gutter) 4rem; }
.page-heading { margin-bottom: 1.4rem; }
.page-heading h1 { margin-top: 0.4rem; font-size: clamp(2rem, 7vw, 3.4rem); }
.page-heading > p:last-child { max-width: 62ch; margin-top: 0.5rem; color: var(--fg-secondary); }
.opportunity-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.85rem; }
.opportunity-group { min-width: 0; padding: 0.9rem; border: 1px solid var(--border-subtle); background: var(--bg-surface); }
.opportunity-group > header { display: flex; align-items: center; justify-content: space-between; gap: 0.75rem; padding-bottom: 0.7rem; border-bottom: 1px solid var(--border-subtle); }
.opportunity-group > header span { font-weight: 700; }
.opportunity-group > header strong { min-width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border: 1px solid var(--border-strong); color: var(--fg-secondary); font-family: var(--font-mono); font-size: 0.68rem; }
.opportunity-group--now { border-color: color-mix(in oklch, var(--success) 45%, var(--border-subtle)); }
.opportunity-group--now > header strong { color: var(--success); }
.opportunity-group--urgent { border-color: color-mix(in oklch, var(--warning) 55%, var(--border-subtle)); }
.opportunity-group--urgent > header strong { color: var(--warning); }
.opportunity-group--attention { border-color: color-mix(in oklch, var(--danger) 48%, var(--border-subtle)); }
.opportunity-group--attention > header strong { color: var(--danger); }
.opportunity-group [data-opportunity-list] { display: grid; gap: 0.5rem; margin-top: 0.7rem; }
.opportunity-item { min-width: 0; display: grid; grid-template-columns: 2.75rem minmax(0, 1fr); align-items: center; gap: 0.65rem; padding: 0.55rem; border: 1px solid var(--border-subtle); background: var(--bg-base); }
.opportunity-item__image { width: 2.75rem; height: 2.75rem; }
.opportunity-item__copy { min-width: 0; display: grid; }
.opportunity-item__copy strong, .opportunity-item__copy span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.opportunity-item__copy span, .opportunity-item__copy p { color: var(--fg-secondary); font-size: 0.68rem; }
.opportunity-item__copy p { margin-top: 0.15rem; overflow-wrap: anywhere; }
.opportunity-empty { min-height: 3.75rem; display: grid; place-content: center; color: var(--fg-muted); font-size: 0.75rem; text-align: center; }
.subsection-heading { display: flex; align-items: end; justify-content: space-between; gap: 1rem; margin: 2.25rem 0 1rem; padding-bottom: 0.8rem; border-bottom: 1px solid var(--border-subtle); }
.subsection-heading h2 { margin-top: 0.25rem; font-size: 1.35rem; }
.subsection-heading > p { max-width: 32rem; color: var(--fg-secondary); text-align: right; }
.campaign-library .campaign-block { background: var(--bg-surface); }
.claims-list { display: grid; padding: 0; border-top: 1px solid var(--border-subtle); list-style: none; }
.history-more { margin: 1.25rem auto 0; }
.claim-item { min-height: 4.5rem; display: flex; align-items: center; gap: 0.8rem; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--border-subtle); }
.claim-item__check { width: 2rem; height: 2rem; display: grid; place-items: center; flex: 0 0 auto; background: color-mix(in oklch, var(--success) 17%, var(--bg-base)); color: var(--success); }
.claim-item > div { min-width: 0; display: grid; flex: 1; }
.claim-item > div span, .claim-item time { color: var(--fg-secondary); font-size: 0.72rem; }
.activity-filters { display: flex; flex-wrap: wrap; gap: 0.45rem; margin-bottom: 1.25rem; }
.activity-filters button { min-height: 2.5rem; padding: 0.5rem 0.85rem; border: 1px solid var(--border-subtle); border-radius: 2px; background: var(--bg-surface); color: var(--fg-secondary); cursor: pointer; }
.activity-filters button:hover { border-color: var(--border-strong); color: var(--fg-primary); }
.activity-filters button.is-active { border-color: color-mix(in oklch, var(--accent) 55%, var(--border-strong)); background: color-mix(in oklch, var(--accent) 12%, var(--bg-surface)); color: var(--accent); }
.activity-list { display: grid; padding: 0; border-top: 1px solid var(--border-subtle); list-style: none; }
.activity-item { min-height: 4.5rem; display: grid; grid-template-columns: 0.65rem minmax(0, 1fr) auto; align-items: center; gap: 0.85rem; padding: 0.8rem 0.25rem; border-bottom: 1px solid var(--border-subtle); }
.activity-item__marker { width: 0.55rem; height: 0.55rem; border-radius: 50%; background: var(--fg-muted); box-shadow: 0 0 8px color-mix(in oklch, currentcolor 55%, transparent); }
.activity-item__marker--mining { background: var(--accent); color: var(--accent); }
.activity-item__marker--reward { background: var(--success); color: var(--success); }
.activity-item__marker--connection { background: var(--warning); color: var(--warning); }
.activity-item > div { min-width: 0; display: grid; }
.activity-item > div span, .activity-item time { color: var(--fg-secondary); font-size: 0.72rem; }
.activity-item time { text-align: right; white-space: nowrap; }
.sync-footer { width: min(100%, var(--shell-max)); min-height: 3rem; display: flex; align-items: center; gap: 0.5rem; margin-inline: auto; padding: 0.7rem var(--gutter); color: var(--fg-muted); font-size: 0.72rem; }

.bottom-status { position: fixed; right: 0; bottom: 0; left: 0; z-index: var(--z-status); min-height: var(--bottom-height); display: flex; align-items: center; justify-content: center; padding: 0.35rem max(var(--gutter), calc((100vw - var(--shell-max)) / 2 + var(--gutter))); border-top: 1px solid color-mix(in oklch, var(--success) 45%, transparent); background: oklch(14% 0.012 285 / 0.98); }
.bottom-status__facts { width: min(100%, var(--shell-max)); display: flex; align-items: center; justify-content: flex-end; color: var(--fg-secondary); font-family: var(--font-mono); font-size: 0.72rem; }
.bottom-status__facts > span { min-height: 2.25rem; display: inline-flex; align-items: center; gap: 0.35rem; padding-inline: 0.85rem; border-left: 1px solid var(--border-subtle); white-space: nowrap; }
.bottom-status__facts > span:first-child { border-left: 0; }
.bottom-status__facts strong { color: var(--fg-primary); font-weight: 650; }
.connection-fact .online-dot { width: 0.55rem; height: 0.55rem; }
.connection-fact[data-connection="online"] strong { color: var(--success); }
.connection-fact[data-connection="offline"] strong { color: var(--warning); }
.connection-fact[data-connection="offline"] .online-dot { background: var(--warning); box-shadow: 0 0 8px color-mix(in oklch, var(--warning) 65%, transparent); }
.connection-fact[data-connection="no_data"] strong { color: var(--fg-muted); }
.connection-fact[data-connection="no_data"] .online-dot { background: var(--fg-muted); box-shadow: none; }
.version-fact strong { font-variant-numeric: tabular-nums; }
.license-copy strong { color: var(--warning); }
.license-copy[data-plan="premium"] strong { color: var(--success); }
.license-copy[data-plan="expired"] strong { color: var(--danger); }
.trial-lives { color: var(--accent); }
.trial-lives[data-urgency="warning"], .trial-lives[data-urgency="critical"] { color: var(--warning); }
.trial-lives svg { width: 1.2rem; height: 1.2rem; overflow: visible; filter: drop-shadow(0 2px 3px oklch(4% 0.01 285 / 0.65)); }
.trial-lives svg[data-filled-segments="0"] { opacity: 0.34; }
.trial-lives rect[data-filled="true"] { fill: currentcolor; }
.trial-lives rect[data-filled="false"] { fill: var(--bg-muted); }
.trial-lives[data-urgency="critical"] svg:not([data-filled-segments="0"]) { animation: trial-heart-pulse 1.2s ease-in-out infinite; }
@keyframes trial-heart-pulse { 50% { opacity: 0.55; transform: scale(0.92); } }

.device-dialog { width: min(calc(100% - 2rem), 44rem); max-height: min(48rem, calc(100dvh - 2rem)); margin: auto; padding: 0; overflow: hidden; border: 1px solid var(--border-strong); border-radius: 4px; background: var(--bg-surface); color: var(--fg-primary); box-shadow: 0 2rem 6rem oklch(0% 0 0 / 0.72); }
.device-dialog::backdrop { background: oklch(4% 0.015 285 / 0.86); }
.device-dialog__header { display: flex; align-items: start; justify-content: space-between; gap: 1rem; padding: 1.25rem; border-bottom: 1px solid var(--border-subtle); }
.device-dialog__header h2 { margin-top: 0.35rem; font-size: clamp(1.4rem, 5vw, 2rem); }
.device-dialog__header p:last-child { margin-top: 0.4rem; color: var(--fg-secondary); }
.device-manager { max-height: min(30rem, calc(100dvh - 15rem)); overflow-y: auto; overscroll-behavior: contain; padding: 0.35rem 1.25rem; }
.device-manager__empty { padding: 3rem 0; color: var(--fg-secondary); text-align: center; }
.device-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(14rem, 0.85fr) auto; align-items: center; gap: 0.75rem; padding: 1rem 0; border-bottom: 1px solid var(--border-subtle); }
.device-row__summary { min-width: 0; display: flex; align-items: center; gap: 0.65rem; }
.device-row__summary > div { min-width: 0; display: grid; gap: 0.2rem; }
.device-row__summary strong { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-row__summary span:last-child { color: var(--fg-secondary); font-size: 0.7rem; }
.device-row__signal { width: 0.6rem; height: 0.6rem; flex: 0 0 auto; border-radius: 50%; background: var(--fg-muted); }
.device-row__signal--online { background: var(--success); box-shadow: 0 0 8px color-mix(in oklch, var(--success) 65%, transparent); }
.device-row__signal--offline { background: var(--warning); }
.device-row__form { min-width: 0; display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 0.4rem; }
.device-row__form input { min-width: 0; min-height: 2.75rem; padding: 0.55rem 0.65rem; border: 1px solid var(--border-strong); border-radius: 2px; background: var(--bg-base); }
.device-row__form .button { min-height: 2.75rem; }
.device-row__revoke { min-height: 2.75rem; border: 1px solid color-mix(in oklch, var(--danger) 42%, transparent); background: transparent; color: var(--danger); }
.device-row__revoke[data-confirm="true"] { background: color-mix(in oklch, var(--danger) 15%, var(--bg-base)); }
.device-dialog__feedback { min-height: 2.9rem; padding: 0.8rem 1.25rem; border-top: 1px solid var(--border-subtle); color: var(--fg-secondary); font-size: 0.75rem; }
.billing-manager { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: 1rem 1.25rem; border-top: 1px solid var(--border-subtle); background: var(--bg-elevated); }
.billing-manager h3 { margin-top: 0.25rem; font-size: 1rem; }
.billing-manager p:last-child { margin-top: 0.25rem; color: var(--fg-secondary); font-size: 0.72rem; }
.billing-manager .button { flex: 0 0 auto; }
.push-manager { padding: 1rem 1.25rem; border-top: 1px solid var(--border-subtle); }
.push-manager__heading { display: flex; align-items: center; justify-content: space-between; gap: 1rem; }
.push-manager h3 { margin-top: 0.25rem; font-size: 1rem; }
.push-manager__heading p:last-child { margin-top: 0.25rem; color: var(--fg-secondary); font-size: 0.72rem; }
.push-manager fieldset { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0.55rem 1rem; margin-top: 0.9rem; padding: 0; border: 0; }
.push-manager legend { margin-bottom: 0.5rem; color: var(--fg-secondary); font-size: 0.7rem; }
.push-manager label { display: flex; align-items: center; gap: 0.45rem; font-size: 0.72rem; }
.push-manager input { width: 1rem; height: 1rem; accent-color: var(--accent); }

@media (min-width: 48rem) {
  .screen--auth { grid-template-columns: minmax(0, 1.25fr) minmax(20rem, 0.75fr); }
  .auth-facts { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .readonly-chip { display: inline; }
  .account-button > [data-account-email] { display: inline; }
  .mining-plan { grid-template-columns: minmax(12rem, 0.42fr) minmax(0, 1fr); align-items: start; }
}

@media (max-width: 63.999rem) {
  .topbar { grid-template-columns: minmax(0, 1fr) auto; }
  .topbar__nav { grid-column: 1 / -1; grid-row: 2; width: 100%; justify-content: start; order: 3; overflow-x: auto; scrollbar-width: thin; }
  .topbar__account { grid-column: 2; grid-row: 1; }
  .remote-shell { --bottom-height: 4rem; }
}

@media (max-width: 47.999rem) {
  .topbar { position: relative; min-height: auto; padding-block: 0.35rem; }
  .brand span { display: none; }
  .brand-group { gap: 0.15rem; }
  .nav-tab { min-height: 2.75rem; flex: 0 0 auto; justify-content: center; padding-inline: 0.65rem; }
  .topbar__account { gap: 0.1rem; }
  .device-picker select { max-width: 6.5rem; }
  main { min-height: calc(100svh - 6.6rem); }
  .screen { min-height: calc(100svh - 6.6rem); }
  .remote-shell { padding-bottom: 5.5rem; --bottom-height: 5.5rem; }
  .overview-content { padding-top: 0.75rem; }
  .trial-expired-notice { align-items: stretch; flex-direction: column; gap: 0.85rem; }
  .trial-expired-notice .button { width: 100%; }
  .current-status { align-items: start; }
  .freshness { display: none; }
  .active-board, .queue-board { padding: 0.7rem; }
  .active-board__header { align-items: start; flex-direction: column; }
  .active-meta { justify-items: start; }
  .campaign-block__header { flex-direction: column; }
  .campaign-block__header time { text-align: left; }
  .drop-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .queue-item__next { display: none; }
  .queue-item__detail { overflow-wrap: anywhere; }
  .opportunity-grid { grid-template-columns: 1fr; }
  .subsection-heading { align-items: start; flex-direction: column; }
  .subsection-heading > p { text-align: left; }
  .activity-item { grid-template-columns: 0.65rem minmax(0, 1fr); }
  .activity-item time { grid-column: 2; text-align: left; }
  .bottom-status { padding-block: 0.4rem; }
  .bottom-status__facts { display: grid; grid-template-columns: auto auto minmax(0, 1fr); justify-content: stretch; }
  .bottom-status__facts > span { min-height: 1.9rem; justify-content: center; padding-inline: 0.55rem; }
  .license-copy { min-width: 0; overflow: hidden; justify-self: stretch; text-overflow: ellipsis; }
  .trial-lives { grid-column: 1 / -1; justify-self: center; border-top: 1px solid var(--border-subtle); border-left: 0 !important; }
  .device-dialog { width: 100%; max-width: none; max-height: calc(100dvh - 0.75rem); margin: auto 0 0; border-right: 0; border-bottom: 0; border-left: 0; }
  .device-dialog { overflow-y: auto; }
  .device-manager { max-height: none; overflow: visible; }
  .device-row { grid-template-columns: 1fr; }
  .device-row__revoke { justify-self: start; }
  .billing-manager { align-items: stretch; flex-direction: column; }
  .push-manager__heading { align-items: stretch; flex-direction: column; }
  .push-manager fieldset { grid-template-columns: 1fr; }
}

@media (max-width: 23rem) {
  .nav-tab { font-size: 0.72rem; }
  .device-picker { display: none; }
  .drop-grid { grid-template-columns: 1fr; }
  .bottom-status__facts { font-size: 0.65rem; }
  .bottom-status__facts > span { padding-inline: 0.35rem; }
  .trial-lives svg { width: 1.05rem; height: 1.05rem; }
}

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

@media (forced-colors: active) {
  .overview-scene__shade { display: none; }
  .online-dot, .progress-track { forced-color-adjust: none; }
}
