/* The panel keeps its working text size. The site's larger reading sizes are for the site. */
body.tool { font-size: 17px; line-height: 26px; }
@media (max-width: 767px) { body.tool { font-size: 16px; line-height: 24px; } }
/* The panel, on top of the site's styles.css: same tokens, same lines, no cards. Rules: plans/06-panel-design-plan.md */

html, body { height: 100%; }
body { font-size: 16px; line-height: 24px; }
.ico { display: inline-flex; flex: none; }
.ico svg { display: block; }
.field {
  width: 100%; height: 36px; padding: 0 10px; background: var(--white); color: var(--ink);
  border: 1px solid var(--control); border-radius: 0; font-size: 16px;
}
textarea.field { height: auto; padding: 8px 10px; resize: vertical; line-height: 20px; }
input[type="file"].field { padding: 6px 10px; height: auto; }
.field:focus-visible { outline: 2px solid var(--ink); outline-offset: 1px; }
.field:disabled { background: var(--soft); color: var(--muted); }
.field[aria-invalid="true"] { border-color: var(--exp-bg); }
.linkbtn { color: inherit; }
.linkbtn.danger { color: var(--crit-fg); }
.btn:disabled { background: var(--control); border-color: var(--control); cursor: default; }
.btn-quiet { background: var(--white); color: var(--ink); border-color: var(--control); }
.btn-quiet:hover { background: var(--soft); }
.btn-danger { background: var(--exp-bg); border-color: var(--exp-bg); }
.btn-danger:hover { background: var(--crit-fg); }
.btn-danger:disabled { background: var(--control); border-color: var(--control); }
.form-error { color: var(--crit-fg); font-size: 14px; line-height: 20px; margin-top: 8px; }
.form-error:empty { display: none; }
.toast { position: fixed; left: 50%; bottom: 72px; transform: translateX(-50%); z-index: 90; max-width: min(90vw, 560px); padding: 10px 14px; background: var(--ink); color: var(--white); font-size: 14px; line-height: 20px; }

/* Shell */
.app { display: grid; grid-template-columns: 200px minmax(0, 1fr); height: 100vh; height: 100dvh; }
.app.menu-small { grid-template-columns: 56px minmax(0, 1fr); }
.side { display: flex; flex-direction: column; border-right: 1px solid var(--line); padding: 12px 8px; min-height: 0; transition: width 120ms ease; }
.side-mark { display: block; margin: 0 0 16px; padding: 4px 10px; height: 36px; }
.mark-small { display: none; }
.menu-small .mark-full { display: none; }
.menu-small .mark-small { display: block; text-align: center; }
.menu-small .side-mark { padding-inline: 0; }
.nav-group { display: flex; flex-direction: column; gap: 2px; }
.nav-bottom { margin-top: auto; }
.nav-item { display: flex; align-items: center; gap: 10px; height: 36px; padding: 0 10px; text-decoration: none; color: var(--later); font-size: 14px; white-space: nowrap; }
.nav-item:hover { background: var(--soft); color: var(--ink); }
.nav-item[aria-current="page"] { background: var(--soft); color: var(--ink); font-weight: 500; box-shadow: inset 2px 0 0 var(--ink); }
.menu-small .nav-item { justify-content: center; padding: 0; }
.menu-small .nav-label { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.main-col { display: flex; flex-direction: column; min-width: 0; min-height: 0; }
#view { flex: 1; min-height: 0; overflow: auto; outline: none; }
.app.is-window { grid-template-columns: minmax(0, 1fr); }
.is-window .side, .is-window .banners { display: none; }
.is-window .app-bar { display: none; }
.exit-full { position: fixed; right: 12px; top: 8px; z-index: 30; height: 32px; padding: 0 10px; background: var(--white); border: 1px solid var(--control); font-size: 13px; }
.exit-full:hover { background: var(--soft); }

/* Banners */
.banner { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 16px; padding: 8px 30px; background: var(--soft); border-bottom: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.banner p { flex: 1 1 280px; }
.banner-red { background: var(--exp-bg); color: var(--white); border-bottom: 0; }
.banner-link { background: none; border: 0; padding: 0; color: inherit; text-decoration: underline; font-size: 14px; }
.banner-btn { height: 30px; padding: 0 10px; background: none; color: inherit; border: 1px solid currentColor; font-size: 13px; }
.banner-btn:hover { background: rgba(255, 255, 255, 0.14); }
.banner-red :focus-visible { outline-color: var(--white); }

/* Toolbars */
.app-bar { flex-wrap: wrap; height: auto; min-height: 48px; border-top: 0; border-bottom: 1px solid var(--line); padding: 6px 12px; gap: 6px 8px; }
.app-bar .month { margin: 0 8px; min-width: 0; font-size: 18px; line-height: 24px; font-weight: 400; white-space: nowrap; }
.app-bar .stat { margin-left: 4px; white-space: nowrap; }
.app-bar .icon { width: 30px; height: 30px; }
.bar-btn { display: inline-flex; align-items: center; height: 30px; padding: 0 10px; background: var(--white); color: var(--ink); border: 1px solid var(--control); font-size: 14px; line-height: 1; text-decoration: none; white-space: nowrap; }
.bar-btn:hover { background: var(--soft); }
.bar-field { width: auto; max-width: 150px; height: 30px; padding: 0 6px; font-size: 13px; }
input.bar-field { width: 130px; }
.cal-filters { display: flex; gap: 6px; margin-left: auto; flex-wrap: wrap; }
.app-bar .btn-s { height: 30px; font-size: 14px; padding-inline: 10px; }
.filters-toggle { display: none; }
.filter-chip { margin-left: auto; }
.filter-chip:empty { display: none; }
.filter-chip + input { margin-left: 0; }
.filter-chip:empty + input { margin-left: auto; }

/* Calendar: fills the window, with no margins */
.app-cal { min-height: 0 !important; height: 100%; overflow: auto; }
.js .app-cal { min-height: 0; }
.app-cal .grid th { border-top: 0; }
.app-cal .grid { border-top: 0; }
.cal-note-app:empty { display: none; }
.cal-line { padding: 4px 12px; }
.cal-line .linkbtn { font-size: inherit; }
.cal-empty { padding: 12px; text-align: center; }
.chip.exp { font-weight: 500; }
/* A calendar day's tag (public/js/calendar.js): amber money lost to a pricier registrar, green the best price. */
.grid td { position: relative; }
.daytag { position: absolute; right: 4px; bottom: 4px; height: 18px; padding: 0 5px; border-radius: 3px; font-size: 11px; line-height: 18px; font-weight: 600; white-space: nowrap; pointer-events: none; font-feature-settings: "tnum", "lnum"; }
.daytag.is-save { background: var(--save-bg); color: var(--ink); }
.daytag.is-best { color: var(--good); font-weight: 500; }
@media (forced-colors: active) { .daytag { border: 1px solid CanvasText; } }
.chip.repeat, .name-row.is-repeat { background: var(--white); box-shadow: inset 0 0 0 1px var(--control); }
.name-row.is-repeat { padding-inline: 6px; }
input[type="radio"][name="order"] { width: 24px; height: 24px; vertical-align: middle; }

/* Panels */
.panel-back { position: fixed; inset: 0; z-index: 40; background: transparent; }
.panel.app-panel { position: fixed; top: 0; right: 0; bottom: 0; width: 420px; max-width: 100vw; min-width: 0; z-index: 41; border-width: 0 0 0 1px; padding: 16px 18px 24px; }
.panel-name { font: 16px/22px var(--mono); font-feature-settings: normal; overflow-wrap: anywhere; font-weight: 400; }
.panel-day { font-size: 15px; line-height: 22px; font-weight: 400; }
.panel-source { margin-top: 8px; color: var(--later); }
.panel-actions { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 8px; }
.panel-lost { margin-top: 8px; }
/* "Cheaper at X" in the domain panel (public/js/move.js). */
.panel-move { display: grid; gap: 8px; margin-top: 16px; padding: 12px 14px; border: 1px solid var(--line); border-radius: 8px; }
.panel-move p { margin: 0; }
.panel-move-how summary { cursor: pointer; font-size: 14px; }
.panel-move-how ol { margin: 8px 0 0; padding-left: 20px; display: grid; gap: 4px; list-style: decimal; }
.panel-move-how li { display: list-item; }
.panel-move-none { margin-top: 12px; }
.panel-history { margin-top: 12px; }
.panel-history summary { cursor: pointer; font-size: 14px; }
.panel-history ul { margin: 6px 0 0; padding-left: 18px; list-style: disc; overflow-wrap: anywhere; }
.panel-history li { display: list-item; }
.panel-decide { margin-top: 8px; }
.panel .warnline + .warnline { margin-top: 4px; }
.pf-grid { margin-top: 16px; display: flex; flex-direction: column; gap: 12px; }
.pf-row { display: grid; grid-template-columns: 1fr 96px; gap: 8px; }
.own-row { display: grid; grid-template-columns: 2fr 3fr; gap: 8px; margin-bottom: 6px; }
.pf-label { display: block; font-size: 14px; line-height: 20px; color: var(--later); margin-bottom: 4px; }
.pf-note { font-size: 14px; line-height: 20px; color: var(--later); margin: -4px 0 0; }
.pf-check { display: flex; align-items: center; gap: 6px; font-size: 14px; line-height: 20px; }
fieldset.pf { padding: 0; }
fieldset.pf legend { padding: 0; }
.panel-bottom { margin-top: 24px; padding-top: 12px; border-top: 1px solid var(--line); }
.panel .choice { margin-top: 12px; }

/* Dialog */
.dialog-back { position: fixed; inset: 0; z-index: 70; display: grid; place-items: center; padding: 16px; background: rgba(26, 29, 33, 0.4); }
.dialog { width: 100%; max-width: 440px; background: var(--white); padding: 20px; border: 1px solid var(--ink); }
.dialog > * + * { margin-top: 12px; }
.dialog-title { font-size: 20px; line-height: 28px; font-weight: 500; overflow-wrap: anywhere; }
.dialog-actions { display: flex; gap: 8px; flex-wrap: wrap; }

/* Dashboard */
.dash { padding: 0 30px 30px; max-width: 1760px; margin: 0 auto; }
.tiles { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); border-bottom: 1px solid var(--line); }
/* Three shared rows, so a label that wraps doesn't push one number below the others. */
.tile { display: grid; grid-template-columns: minmax(0, 1fr); grid-row: span 3; grid-template-rows: subgrid; row-gap: 0; padding: 14px 16px 14px 16px; border-left: 1px solid var(--line); min-width: 0; }
.tile:first-child { border-left: 0; padding-left: 0; }
.tile-label { font-size: 15px; line-height: 22px; font-weight: 500; }
.tile-value { font-size: 28px; line-height: 36px; letter-spacing: -0.02em; white-space: nowrap; }
.tile-sub { font-size: 14px; line-height: 20px; color: #4a4e55; min-height: 20px; }
/* The founder's main value: what you'll pay. It comes first, at the size of the home page's numbers. */
.ahead { padding: 24px 0 20px; border-bottom: 1px solid var(--line); }
.ahead-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px 30px; }
.ahead-item { border-top: 1px solid var(--ink); padding-top: 10px; min-width: 0; }
.ahead-item .tile-label { font-size: 18px; line-height: 26px; }
.ahead-value { font-size: 48px; line-height: 54px; letter-spacing: -0.02em; white-space: nowrap; font-variant-numeric: tabular-nums; }
.ahead-item .tile-sub { font-size: 15px; line-height: 22px; }
.ahead-note { margin-top: 12px; }
.dash-mid { display: grid; grid-template-columns: minmax(0, 2fr) minmax(320px, 1fr); gap: 0 30px; padding-block: 16px; }
.dash-left, .dash-right { min-width: 0; }
.dash-right { display: flex; flex-direction: column; gap: 24px; }
.dash-low { display: grid; grid-template-columns: repeat(auto-fit, minmax(210px, 1fr)); gap: 24px 30px; padding-top: 16px; margin-top: 16px; border-top: 1px solid var(--line); }
.dash-low .where-top { flex-wrap: wrap; gap: 0 12px; }
.dash-low .block-title { white-space: nowrap; }
.dash-chart-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 0 16px; }
.block-title { font-size: 14px; line-height: 20px; font-weight: 500; margin-bottom: 8px; }
.dash-chart-top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: 4px 16px; }
.dash-chart-tools { display: flex; align-items: baseline; gap: 16px; }
.dash-chart { height: 240px; margin-top: 8px; }
.dash-label { font-size: 14px; line-height: 18px; }
/* The script sets --x when a tip or a label would leave the scrolling view. */
.dash-chart .col .tip, .dash-chart .col .col-label { left: 50%; right: auto; transform: translateX(calc(-50% + var(--x, 0px))); }
/* The scale's numbers stay readable when a tall bar reaches them. A hovered bar's tip goes over them. */
.dash-chart .chart-line { z-index: 2; }
.dash-chart .chart-line span { background: var(--white); padding: 0 3px; }
.dash-chart .col:hover, .dash-chart .col:focus-visible { z-index: 3; }
.dash-legend { display: flex; flex-wrap: wrap; gap: 2px 16px; margin-top: 8px; font-size: 13px; line-height: 20px; color: var(--later); }
.dash-legend li { display: flex; align-items: center; gap: 6px; min-width: 0; overflow-wrap: anywhere; }
.dash-legend i { flex: none; width: 10px; height: 10px; border-radius: 50%; background: var(--seg); }
.dash-table { margin-top: 8px; overflow-x: auto; }
.dash-table:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.dash-table th, .dash-table td { white-space: nowrap; }
.dash-urgent { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px 30px; padding-block: 16px; border-bottom: 1px solid var(--line); }
.dash-where { margin-top: 8px; }
.dash-where .where-row { height: 36px; margin-bottom: 4px; padding: 0 8px; }
.dash-where .where-ext.is-name, .dash-where .where-sum { font-size: 14px; }
.dash-where .where-ext { font-size: 13px; min-width: 0; white-space: nowrap; }
.where-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; }
.dash-where .where-ext i { flex: none; }
.dash-where .where-sum { white-space: nowrap; }
.dash-note { margin-top: 8px; font-size: 13px; line-height: 18px; }
.dash-counts { display: flex; gap: 16px; margin-bottom: 8px; }
.dash-row { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(64px, auto); gap: 10px; align-items: center; width: 100%; min-height: 30px; padding: 4px 0; background: none; border: 0; border-top: 1px solid var(--line); text-align: left; font-size: 13px; }
.dash-row .mono { font-size: 12.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.dash-row:hover .mono { text-decoration: underline; }
.dash-when { color: var(--muted); white-space: nowrap; }
.dash-price { text-align: right; white-space: nowrap; }
.u-crit .dash-when, .u-exp .dash-when { color: var(--crit-fg); }
.attention li { border-top: 1px solid var(--line); }
.attn-row { display: flex; justify-content: space-between; gap: 10px; width: 100%; min-height: 30px; padding: 4px 0; background: none; border: 0; text-align: left; font-size: 13px; line-height: 20px; }
.attn-row:hover .attn-title { text-decoration: underline; }
.attn-num { white-space: nowrap; color: var(--later); }
.dash-decide { font-size: 14px; line-height: 20px; }
.dash-decide-num { font-size: 20px; line-height: 28px; margin-block: 4px; }
.split li { padding: 4px 0; border-top: 1px solid var(--line); font-size: 13px; line-height: 20px; }
.split-line { display: flex; justify-content: space-between; gap: 10px; }
.split-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.split-num { white-space: nowrap; color: var(--later); }
.split-bar { display: block; height: 6px; margin-top: 2px; background: var(--bar); }
.dash-empty { padding: 96px 30px; max-width: 620px; margin: 0 auto; text-align: center; }
.dash-empty > * + * { margin-top: 16px; }

/* Domains */
.domains { display: flex; flex-direction: column; height: 100%; min-height: 0; }
.table-scroll { flex: 1; min-height: 0; overflow: auto; }
.table-scroll:focus-visible { outline: 2px solid var(--ink); outline-offset: -2px; }
.dom-table { width: 100%; border-collapse: collapse; font-size: 16px; line-height: 24px; }
.dom-table thead th { position: sticky; top: 0; z-index: 2; background: var(--white); box-shadow: inset 0 -1px 0 var(--ink); text-align: left; font-weight: 400; color: var(--muted); white-space: nowrap; padding: 6px 10px; }
.dom-table td, .dom-table tbody th { height: 36px; padding: 0 10px; border-bottom: 1px solid var(--line); text-align: left; font-weight: 400; white-space: nowrap; }
.dom-table tbody tr:hover td, .dom-table tbody tr:hover th { background: #fafafa; }
.dom-table .spacer td { padding: 0; border: 0; background: none; }
.sort { background: none; border: 0; padding: 0; color: inherit; font-size: 13px; white-space: nowrap; }
.sort:hover { text-decoration: underline; }
.col-check { width: 36px; padding-right: 0 !important; }
.col-check input { display: block; width: 16px; height: 16px; margin: 0; }
.check-hit { display: flex; align-items: center; min-height: 24px; cursor: pointer; }
.dom-open { max-width: 320px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; background: none; border: 0; padding: 0; font-size: 16px; text-align: left; display: block; }
.dom-open:hover { text-decoration: underline; }
.dom-table .is-drop .dom-open { color: var(--muted); text-decoration: line-through; }
.dom-table .col-tags, .dom-table .col-registrar { max-width: 200px; overflow: hidden; text-overflow: ellipsis; }
.u-crit .col-date, .u-exp .col-date { color: var(--crit-fg); }
.bulk { display: flex; flex-wrap: wrap; align-items: center; gap: 4px 14px; padding: 8px 12px; border-top: 1px solid var(--ink); background: var(--white); font-size: 14px; }
.bulk-count { font-weight: 500; }
.bulk-select { display: inline-flex; align-items: center; gap: 4px; font-size: 14px; }
.bulk .linkbtn { font-size: 14px; }

/* Add domains */
.wizard { max-width: 640px; margin: 0 auto; padding: 16px 30px 64px; }
.wizard-steps { display: flex; flex-wrap: wrap; gap: 4px 20px; margin-bottom: 24px; font-size: 13px; line-height: 20px; color: var(--muted); }
.wizard-steps .now { color: var(--ink); font-weight: 500; }
.wizard-title { font-size: 34px; line-height: 42px; letter-spacing: -0.01em; font-weight: 400; margin-bottom: 16px; outline: none; }
.wizard > * + * { margin-top: 12px; }
.wizard-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 16px; margin-top: 16px; }
.tabs { display: flex; flex-wrap: wrap; gap: 0 20px; border-bottom: 1px solid var(--line); margin-bottom: 16px; }
.price-own { display: block; font-weight: 400; }
.tab { background: none; border: 0; height: 36px; padding: 0; font-size: 14px; color: var(--later); }
.tab[aria-selected="true"] { color: var(--ink); box-shadow: inset 0 -2px 0 var(--ink); font-weight: 500; }
#tab-body > * + * { margin-top: 12px; }
.paste-area { font: 13px/20px var(--mono); font-feature-settings: normal; }
.progress { display: block; width: 100%; height: 8px; accent-color: var(--ink); }
.missing li { padding: 8px 0; border-top: 1px solid var(--line); font-size: 14px; line-height: 20px; }
.skipped summary { cursor: pointer; font-size: 14px; }
.skipped li { font-size: 13px; line-height: 20px; padding: 2px 0; }
.table-wide { overflow-x: auto; }
.wizard:has(.table-wide) { max-width: 880px; }
.preview-table thead th { vertical-align: top; min-width: 150px; white-space: normal; position: static; }
.col-title { display: block; margin-bottom: 4px; font-size: 13px; }
.price-table .price-input { width: 110px; }
.price-table select { width: auto; }
.price-table td, .price-table tbody th { height: 44px; white-space: normal; }
.price-what { min-width: 200px; }
.connect-form { margin-top: 16px; }
.connect-form > * + * { margin-top: 12px; }
.connect-steps { list-style: decimal; padding-left: 20px; font-size: 14px; line-height: 20px; }
.connect-steps li { padding: 2px 0; }
.reg-choose { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 12px; }
.reg-btn { height: 36px; padding: 0 14px; background: var(--white); border: 1px solid var(--control); font-size: 14px; }
.reg-btn:hover { background: var(--soft); }
.reg-btn[aria-pressed="true"] { background: var(--ink); color: var(--white); border-color: var(--ink); }

/* Settings */
.settings { max-width: 650px; padding: 16px 30px 64px; }
/* Prices: one extension, every registrar's first-year, renewal and five-year price. */
.prices { display: flex; flex-direction: column; min-height: 0; height: 100%; padding: 16px 30px 0; }
.prices-title { font-size: 24px; line-height: 32px; font-weight: 500; margin: 0 0 8px; }
.prices > p { max-width: 720px; }
.prices-bar { margin-top: 16px; }
.prices-row { display: flex; gap: 8px; max-width: 420px; }
.prices-field { flex: 1; }
.prices-order { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; margin-top: 12px; }
.prices-order .pf-label { margin: 0; }
.prices-sort { width: auto; }
/* Savings (public/js/savings.js), and its line on the dashboard. */
.dash-save { padding: 12px 0; border-bottom: 1px solid var(--line); }
.dash-save p { margin: 0; }
.savings { padding: 16px 30px 32px; overflow: auto; height: 100%; box-sizing: border-box; }
.savings-title { font-size: 24px; line-height: 32px; font-weight: 500; margin: 0 0 8px; }
.savings > p { max-width: 720px; margin: 0 0 12px; }
.savings-sum .big { font-size: 24px; line-height: 32px; font-weight: 600; margin-right: 4px; }
.savings-order { width: auto; }
.savings-group { margin-top: 24px; }
.savings-group-head { font-size: 18px; line-height: 26px; font-weight: 500; margin: 0 0 8px; }
.savings-table { margin-top: 12px; }
.savings-table .num { text-align: right; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) { .savings { padding: 12px 16px 24px; } }
.prices-quick { margin-top: 12px; font-size: 14px; line-height: 20px; color: var(--later); }
.prices-quick .linkbtn { margin-right: 6px; }
.prices-sum { margin: 12px 0 8px; font-weight: 500; }
.prices-table { margin: 0 -30px; padding: 0 20px; }
@media (max-width: 767px) { .prices { padding: 12px 16px 0; } .prices-table { margin: 0 -16px; padding: 0 6px; } }
.set-group { padding-block: 16px; border-top: 1px solid var(--line); }
.set-group > * + * { margin-top: 12px; }
.set-group .block-title { margin-bottom: 0; }
.set-group .field { max-width: 360px; }
.connect-form .field { max-width: 100%; }
.conn-list li { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px 16px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.conn-list .panel-actions { margin-top: 0; }
.settings .linkbtn, .settings a.linkbtn { font-size: 14px; }

/* Login */
.login { max-width: 420px; margin: 0 auto; padding: 15vh 30px 64px; }
.login > * + * { margin-top: 16px; }
.login-title { font-size: 34px; line-height: 42px; letter-spacing: -0.01em; font-weight: 400; }
.login form > * + * { margin-top: 12px; }
.login .btn { width: 100%; }
.login-alt .bar-btn { width: 100%; justify-content: center; height: 44px; }

/* Login and sign-up: the form on the left, the photo on the right; on a phone the photo is a band on top. */
.auth {
  --auth-paper: #fbfaf7; --auth-night: #1b140c; --auth-sun: #ffc65c;
  display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr);
  background: var(--auth-paper); position: relative;
}
/* #view has min-height: 0 for the panel's views; this screen fills the window. */
#view.auth { min-height: 100vh; min-height: 100dvh; }
.auth-side { display: flex; flex-direction: column; padding: 36px clamp(24px, 6vw, 96px) 32px; min-width: 0; }
.auth-side .wordmark { align-self: flex-start; font-size: 26px; color: var(--ink); }
.auth-box { width: 100%; max-width: 400px; margin-block: auto; padding-block: 56px 40px; animation: auth-rise .6s cubic-bezier(.2, .7, .2, 1) both; }
.auth-title { font-size: 44px; line-height: 50px; letter-spacing: -0.025em; font-weight: 600; }
.auth-lead { margin-top: 12px; font-size: 17px; line-height: 26px; color: var(--muted); }
.auth-alert { margin-top: 20px; padding: 10px 14px; background: var(--crit-bg); color: var(--crit-fg); font-size: 15px; line-height: 22px; border-left: 3px solid var(--exp-bg); }
.auth-ways { margin-top: 32px; }
.auth-google {
  display: flex; align-items: center; justify-content: center; gap: 12px; width: 100%; height: 52px;
  background: var(--white); color: var(--ink); border: 1px solid var(--line); font-size: 16px; cursor: pointer;
  box-shadow: 0 1px 2px rgba(26, 29, 33, .06); transition: border-color .15s, box-shadow .15s;
}
.auth-google:hover { border-color: var(--control); box-shadow: 0 4px 14px rgba(26, 29, 33, .08); }
.auth-google:disabled { color: var(--muted); cursor: default; }
.auth-google:focus-visible, .auth-btn:focus-visible, .auth-again:focus-visible, .auth-foot a:focus-visible, .auth-side .wordmark:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
.auth-or { display: flex; align-items: center; gap: 14px; margin: 22px 0; color: var(--control); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.auth-or::before, .auth-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.auth-form .pf-label { color: var(--ink); font-size: 14px; font-weight: 500; margin-bottom: 8px; }
.auth-field { height: 52px; padding: 0 16px; font-size: 17px; border-color: var(--line); box-shadow: 0 1px 2px rgba(26, 29, 33, .06); transition: border-color .15s, box-shadow .15s; }
.auth-field::placeholder { color: #a3a7ad; }
.auth-field:hover { border-color: var(--control); }
.auth-field:focus-visible { outline: none; border-color: var(--ink); box-shadow: 0 0 0 3px rgba(255, 179, 0, .35); }
.auth-form .form-error { margin-top: 8px; }
.auth-btn { width: 100%; height: 52px; margin-top: 14px; gap: 10px; font-size: 17px; font-weight: 500; transition: background .15s, transform .15s; }
.auth-btn:active:not(:disabled) { transform: translateY(1px); }
.auth-actions { display: flex; flex-direction: column; align-items: center; gap: 12px; margin-top: 8px; }
.auth-actions .linkbtn { font-size: 15px; }
.auth .pf-check { margin-top: 18px; }
.auth-note { display: flex; align-items: center; gap: 8px; margin-top: 18px; font-size: 14px; line-height: 20px; color: var(--muted); }
.auth-note .ico { color: var(--good); }
.auth-sent { margin-top: 32px; padding: 28px; background: var(--white); border: 1px solid var(--line); box-shadow: 0 10px 30px rgba(26, 29, 33, .06); outline: none; }
.auth-sent > * + * { margin-top: 10px; }
.auth-sent p { font-size: 15px; line-height: 23px; color: var(--muted); }
.auth-sent .auth-sent-title { margin-top: 18px; font-size: 22px; line-height: 28px; font-weight: 600; color: var(--ink); }
.auth-sent-ico { display: inline-flex; align-items: center; justify-content: center; width: 48px; height: 48px; border-radius: 50%; background: var(--today-bg); color: var(--save-ink); }
.auth-sent-ico svg { width: 22px; height: 22px; }
.auth-again { margin-top: 16px; padding: 0; background: none; border: 0; color: var(--ink); font-size: 15px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.auth-foot { font-size: 14px; line-height: 21px; color: var(--muted); }
.auth-foot > * + * { margin-top: 6px; }
.auth-switch { font-size: 15px; color: var(--later); }
.auth-switch a { color: var(--ink); font-weight: 600; text-underline-offset: 3px; }
.auth-legal a { color: inherit; text-underline-offset: 2px; }

.auth-art { position: relative; overflow: hidden; background: var(--auth-night); isolation: isolate; }
.auth-art img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; object-position: 50% 30%; animation: auth-settle 1.6s cubic-bezier(.2, .7, .2, 1) both; }
.auth-art::after {
  content: ""; position: absolute; inset: 0; z-index: 1; pointer-events: none;
  background: linear-gradient(180deg, rgba(27, 20, 12, 0) 45%, rgba(27, 20, 12, .55) 70%, rgba(20, 14, 8, .92) 100%);
}
.auth-art-copy { position: absolute; left: clamp(32px, 5vw, 72px); right: clamp(32px, 5vw, 72px); bottom: clamp(48px, 7vh, 80px); z-index: 2; color: #fff; max-width: 560px; }
.auth-art-title { font-size: clamp(34px, 3.4vw, 52px); line-height: 1.08; letter-spacing: -0.025em; font-weight: 600; text-wrap: balance; }
.auth-art-title em { font-style: normal; color: var(--auth-sun); }
.auth-art-text { margin-top: 16px; font-size: 17px; line-height: 26px; color: rgba(255, 255, 255, .82); max-width: 460px; }
.auth-art-text .brand { color: #fff; }
.auth-credit { position: absolute; right: 16px; bottom: 12px; z-index: 2; font-size: 11px; color: rgba(255, 255, 255, .5); }

@keyframes auth-rise { from { opacity: 0; transform: translateY(12px); } }
@keyframes auth-settle { from { opacity: 0; transform: scale(1.06); } }
@media (prefers-reduced-motion: reduce) { .auth-box, .auth-art img { animation: none; } }

@media (max-width: 860px) {
  .auth { grid-template-columns: 1fr; grid-template-rows: auto 1fr; }
  .auth-art { grid-row: 1; height: clamp(260px, 40vh, 340px); }
  .auth-art img { object-position: 50% 26%; }
  .auth-art::after { background: linear-gradient(180deg, rgba(20, 14, 8, .45) 0%, rgba(20, 14, 8, 0) 30%, rgba(20, 14, 8, 0) 45%, rgba(20, 14, 8, .85) 100%); }
  .auth-art-copy { left: 24px; right: 24px; bottom: 24px; }
  .auth-art-title { font-size: 30px; }
  .auth-art-text { display: none; }
  .auth-credit { top: 22px; bottom: auto; right: 16px; }
  .auth-side { grid-row: 2; padding: 0 24px 28px; }
  .auth-side .wordmark { position: absolute; top: 16px; left: 24px; z-index: 3; color: #fff; }
  .auth-box { margin-block: 0 auto; padding-block: 32px 32px; max-width: 480px; }
  .auth-title { font-size: 34px; line-height: 40px; }
}

/* Under 1100 the low row folds, per plans/06 */
@media (max-width: 1100px) {
  .dash-low { grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: 0; border-top: 0; }
  .dash-mid { grid-template-columns: minmax(0, 1fr); gap: 16px; border-bottom: 1px solid var(--line); }
}

/* Between phone and laptop the three filter lists fold behind one button, so the toolbar keeps one row. */
@media (min-width: 900px) and (max-width: 1100px) {
  .filters-toggle { display: inline-flex; }
  .app-cal .cal-filters { display: none; }
  .app-bar.show-filters .cal-filters { display: flex; order: 9; width: 100%; margin: 0; }
}

/* Phone and small tablet: tabs along the bottom, sheets from the bottom */
@media (max-width: 899px) {
  .app, .app.menu-small { grid-template-columns: minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) 56px; }
  .main-col { grid-row: 1; }
  .side { grid-row: 2; flex-direction: row; padding: 0; border-right: 0; border-top: 1px solid var(--line); background: var(--white); }
  .side-mark { display: none; }
  .nav-group, .nav-bottom { display: contents; }
  .nav-item, .menu-small .nav-item { flex: 1; flex-direction: column; justify-content: center; gap: 2px; height: 56px; min-width: 0; padding: 0; font-size: 11px; line-height: 14px; box-shadow: none; }
  .nav-item[aria-current="page"] { box-shadow: inset 0 2px 0 var(--ink); }
  .nav-label, .menu-small .nav-label { position: static; width: auto; height: auto; overflow: visible; clip-path: none; }
  .banner { padding: 8px 12px; }
  .banner-btn { height: 44px; padding: 0 14px; }
  .banner-link { display: inline-flex; align-items: center; min-height: 44px; }
  .full-toggle { display: none; }
  .app-bar .icon { width: 44px; height: 44px; }
  .bar-btn, .bar-field, .app-bar .btn-s { height: 44px; }
  .app-bar { padding: 8px 12px; align-items: center; }
  .app-bar .month { flex: 1 1 auto; font-size: 16px; text-align: center; margin: 0 4px; }
  .app-bar .stat { order: 5; width: 100%; margin: 0; }
  .filters-toggle { display: inline-flex; order: 6; }
  .app-cal .cal-filters, .app-cal .app-bar input.bar-field { display: none; }
  .app-bar.show-filters .cal-filters { display: flex; order: 9; width: 100%; margin: 0; }
  .app-bar.show-filters .cal-filters .bar-field { flex: 1 1 30%; max-width: none; min-width: 0; }
  .app-cal .app-bar.show-filters input.bar-field { display: block; order: 10; flex: 1 1 100%; max-width: none; }
  .app-bar .btn-s { order: 7; flex: 1 1 40%; }
  .domains .app-bar input.bar-field { flex: 1 1 100%; max-width: none; order: 9; }
  .app-bar .bar-btn { flex: none; }
  .app-cal { padding: 0; }
  .app-cal .cal-body { padding: 0 12px 16px; }
  .panel.app-panel { top: auto; left: 0; right: 0; bottom: var(--consent-h, 0px); width: auto; max-height: 86vh; border-width: 1px 0 0; }
  .panel .field, .dialog .field { height: 44px; font-size: 16px; }
  .panel textarea.field { height: auto; }
  .field { height: 44px; font-size: 16px; }
  textarea.field { height: auto; }
  .dash { padding: 0 16px 24px; }
  .dash-empty { padding: 48px 16px; }
  .dash-row, .attn-row { min-height: 44px; }
  .where-mode button, .dash-chart-tools .linkbtn, .dash-counts .linkbtn { min-height: 44px; }
  .wizard, .settings { padding: 12px 16px 48px; }
  .wizard-title { font-size: 28px; line-height: 34px; }
  .tab { height: 44px; }
  .reg-btn { height: 44px; }
  .pf-check { min-height: 44px; }
  .pf-check input { width: 22px; height: 22px; }
  .toast { bottom: 68px; }
  .choice span { height: 44px; line-height: 42px; }

  /* The table becomes cards with the same data. */
  .domains .dom-table thead { display: none; }
  .domains .dom-table, .domains .dom-table tbody { display: block; }
  .domains .dom-table tr { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; grid-template-rows: 24px 24px; align-items: center; height: 72px; padding: 12px 12px; border-bottom: 1px solid var(--line); box-sizing: border-box; column-gap: 4px; }
  .domains .dom-table .spacer { display: block; height: auto; padding: 0; border: 0; }
  .domains .dom-table .spacer td { display: block; }
  .domains .dom-table td, .domains .dom-table tbody th { display: none; height: auto; padding: 0; border: 0; background: none !important; }
  .domains .dom-table .col-check { display: flex; grid-row: 1 / 3; width: auto; align-items: center; height: 44px; }
  .domains .dom-table .col-check input { width: 22px; height: 22px; }
  .check-hit { min-width: 44px; min-height: 44px; }
  .domains .dom-table .col-name { display: block; grid-column: 2; grid-row: 1; min-width: 0; }
  .dom-open { max-width: 100%; font-size: 13px; min-height: 24px; }
  .domains .dom-table tr { position: relative; }
  .domains .dom-open::after { content: ""; position: absolute; inset: 0 0 0 48px; }
  .domains .dom-table .col-date { display: block; grid-column: 2; grid-row: 2; color: var(--muted); }
  .domains .dom-table .u-crit .col-date, .domains .dom-table .u-exp .col-date { color: var(--crit-fg); }
  .domains .dom-table .col-price { display: block; grid-column: 3; grid-row: 1; text-align: right; }
  .domains .dom-table .col-decision { display: block; grid-column: 3; grid-row: 2; text-align: right; color: var(--muted); }
  .bulk .linkbtn { min-height: 44px; }
}
@media (max-width: 640px) {
  .tiles { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .ahead-grid { grid-template-columns: minmax(0, 1fr); gap: 12px; }
  .tile { padding: 14px 10px 12px 10px; }
  .tile:nth-child(odd) { border-left: 0; padding-left: 0; }
  .tile:nth-child(n + 3) { border-top: 1px solid var(--line); }
  .tile-value { font-size: 24px; line-height: 32px; }
  .ahead-value { font-size: 36px; line-height: 42px; }
  /* Label and number share a line, so the urgent blocks reach the first screen. */
  .ahead-item { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 12px; align-items: baseline; padding-top: 8px; }
  .ahead-item .tile-sub { grid-column: 1 / -1; }
  .ahead-value { text-align: right; }
  .ahead { padding-top: 16px; }
  .ahead-item + .ahead-item { margin-top: 0; }
  .dash-urgent { grid-template-columns: minmax(0, 1fr); }
  /* Plan 06: a list on a phone. Every field is visible, with its name above it. */
  .price-table thead { display: none; }
  .price-table, .price-table tbody { display: block; }
  .price-table tr { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 8px; padding: 12px 0; border-bottom: 1px solid var(--line); }
  .price-table tbody th, .price-table td { display: block; height: auto; padding: 0; border: 0; white-space: normal; }
  .price-table .price-what { grid-column: 1 / -1; }
  .price-table td::before { content: attr(data-label); display: block; font-size: 13px; line-height: 18px; color: var(--later); margin-bottom: 4px; }
  .dash-low { grid-template-columns: minmax(0, 1fr); }
  .dash-chart { gap: 3px; height: 200px; }
  .dash-label { font-size: 13px; }
  .axis { gap: 3px; font-size: 10px; }
  .axis span:nth-child(even) { visibility: hidden; }
}

@media (max-width: 360px) {
  .app-bar { padding-inline: 8px; gap: 6px 4px; }
  .app-bar .month { font-size: 15px; margin: 0; }
}

@media (prefers-reduced-motion: reduce) {
  .side { transition: none; }
}

@media (forced-colors: active) {
  .split-bar { background: CanvasText; forced-color-adjust: none; }
  .nav-item[aria-current="page"] { outline: 2px solid Highlight; outline-offset: -2px; }
  .banner-red { border: 2px solid CanvasText; }
}

/* A long list keeps its button in reach. */
.check-actions { position: sticky; bottom: 0; padding: 12px 0; background: var(--white); }
/* Settings, AI agents (MCP): the commands to copy and a new token. */
.mcp-code { margin: 4px 0 12px; padding: 10px 12px; background: var(--soft); border: 1px solid var(--line); font: 13px/20px ui-monospace, Menlo, Consolas, monospace; white-space: pre-wrap; word-break: break-all; overflow-wrap: anywhere; }
.mcp-new { margin-top: 12px; }
.mcp-fresh { margin: 12px 0; padding: 12px; border: 1px solid var(--ink); }
.mcp-fresh input { width: 100%; margin-top: 6px; }
.set-sub { margin: 16px 0 4px; font-size: 15px; line-height: 22px; font-weight: 600; }
.feed-how { margin: 8px 0 0; padding-left: 18px; list-style: disc; }
.feed-how li { display: list-item; }
