/* 全站共用：变量、基础排版、顶栏、页脚、按钮、表单、弹窗，以及登录、结算、我的租赁、条款、远控外壳、管理台的版式。
   落地页专用的样式在 portal.css。 */
:root {
  color-scheme: dark;
  --bg: #080c0b;
  --panel: #101615;
  --ink: #eef2ef;
  --muted: #8d9996;
  --line: #ffffff1f;
  --line-strong: #ffffff47;
  --accent: #8fe3cb;
  --warn: #f2d48a;
  font-family: Inter, system-ui, -apple-system, "PingFang SC", "HarmonyOS Sans SC", "Microsoft YaHei", sans-serif;
  scroll-behavior: smooth;
  scroll-padding-top: 5rem;
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { position: relative; margin: 0; color: var(--ink); background: var(--bg); line-height: 1.6; -webkit-font-smoothing: antialiased; }
body::before { content: ""; position: absolute; z-index: -1; inset: 0 0 auto; height: 52rem; background: radial-gradient(54rem 28rem at 50% -4rem, #23695a8c, transparent 72%); pointer-events: none; }
h1, h2, h3, p, ol, ul, dl, dd, fieldset { margin: 0; padding: 0; }
h1, h2, h3 { font-weight: 600; line-height: 1.12; letter-spacing: -.02em; }
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; color: inherit; }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
.wrap { width: min(100% - 2.5rem, 70rem); margin-inline: auto; }
.wrap.wide { width: min(100% - 2.5rem, 86rem); }
.wrap.narrow { width: min(100% - 2.5rem, 30rem); }

.top { position: sticky; top: 0; z-index: 5; border-bottom: 1px solid var(--line); background: #080c0bc7; -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px); }
.top .wrap { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.75rem; }
.brand { display: flex; align-items: center; gap: .6rem; font-weight: 600; letter-spacing: .02em; white-space: nowrap; }
.brand small { color: var(--muted); font-weight: 400; font-size: .82rem; letter-spacing: .06em; }
.brand-mark { flex: none; width: 1.35rem; height: 1.35rem; border: 1.5px solid var(--ink); border-radius: .35rem; position: relative; }
.brand-mark::after { content: ""; position: absolute; left: 50%; bottom: -.32rem; width: .7rem; height: 1.5px; background: var(--ink); transform: translateX(-50%); }
.top nav { display: flex; align-items: center; gap: clamp(1rem, 3vw, 2rem); font-size: .9rem; white-space: nowrap; }
.top nav a:not(.button), .top nav .link { color: var(--muted); text-decoration: none; transition: color .15s; }
.top nav a:not(.button):hover, .top nav .link:hover, .top nav a[aria-current] { color: var(--ink); }

.button { display: inline-flex; align-items: center; justify-content: center; min-height: 3rem; padding: .6rem 1.75rem; border: 1px solid var(--ink); border-radius: 99rem; background: var(--ink); color: #07100e; font: inherit; font-weight: 600; cursor: pointer; transition: background .15s, border-color .15s, color .15s; }
.button:hover { background: #fff; border-color: #fff; }
.button.small { min-height: 2.25rem; padding: .25rem 1.1rem; font-size: .88rem; }
.button.ghost { background: transparent; color: var(--ink); border-color: var(--line-strong); }
.button.ghost:hover { border-color: var(--ink); }
.button:disabled, .button[aria-disabled="true"] { opacity: .4; cursor: not-allowed; pointer-events: none; }
.link { padding: 0; border: 0; background: none; color: var(--muted); font: inherit; cursor: pointer; text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .3em; transition: color .15s; }
.link:hover { color: var(--ink); }
.link:disabled { opacity: .4; cursor: not-allowed; }

.eyebrow { color: var(--accent); font-size: .82rem; letter-spacing: .22em; }
.notice { color: var(--muted); }
.flash { padding: .75rem 1rem; border: 1px solid var(--line-strong); border-radius: .85rem; font-size: .9rem; overflow-wrap: anywhere; }
.flash.error { border-color: #f2d48a59; color: var(--warn); }
.flash.ok { border-color: #8fe3cb59; color: var(--accent); }
.flash.plain { padding: 0; border: 0; }
.flash a { margin-left: .5rem; color: var(--ink); text-decoration: underline; text-underline-offset: .3em; }
.fine { margin-top: 1rem; color: var(--muted); font-size: .8rem; text-align: center; }

fieldset { border: 0; min-width: 0; margin-bottom: 2rem; }
legend { margin-bottom: .75rem; color: var(--muted); font-size: .8rem; letter-spacing: .16em; }
.options { display: grid; gap: .6rem; }
.options.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
.option { position: relative; display: block; cursor: pointer; }
.option input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.option-body { display: flex; flex-direction: column; gap: .2rem; height: 100%; padding: .95rem 1.1rem; border: 1px solid var(--line); border-radius: .85rem; transition: border-color .15s, background .15s; }
.option:hover .option-body { border-color: var(--line-strong); }
.option input:checked + .option-body { border-color: var(--accent); background: #8fe3cb12; }
.option input:focus-visible + .option-body { outline: 2px solid var(--accent); outline-offset: 3px; }
.option input:disabled { cursor: not-allowed; }
.option input:disabled + .option-body { border-color: var(--line); border-style: dashed; color: var(--muted); }
.option strong { font-weight: 600; }
.option small { color: var(--muted); font-size: .84rem; }
.option.split .option-body { display: grid; grid-template-columns: minmax(0, 1fr) auto; column-gap: 1rem; align-items: center; }
.option.split .price { grid-column: 2; grid-row: 1 / span 2; }
.option .price { color: var(--muted); font-size: .9rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.option input:checked + .option-body .price { color: var(--ink); }

dt { color: var(--muted); white-space: nowrap; }
dd { text-align: right; }
.lines div { display: flex; justify-content: space-between; gap: 1rem; padding-block: .6rem; border-bottom: 1px solid var(--line); font-size: .92rem; }
.total { display: flex; align-items: baseline; flex-wrap: wrap; gap: .25rem .6rem; margin: 1.4rem 0 1.25rem; }
.total span { width: 100%; color: var(--muted); font-size: .8rem; letter-spacing: .16em; }
.total strong { font-size: 2.6rem; font-weight: 600; line-height: 1.1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.total small { color: var(--muted); font-size: .86rem; }

.field { display: block; margin-bottom: 1.1rem; }
.field > span, .field > legend, .field > label { display: block; margin-bottom: .5rem; padding: 0; color: var(--muted); font-size: .8rem; letter-spacing: .16em; }
.field i { font-style: normal; letter-spacing: 0; opacity: .7; }
.field small { display: block; margin-top: .4rem; color: var(--muted); font-size: .8rem; }
.input { display: block; width: 100%; min-height: 3rem; padding: .65rem 1rem; border: 1px solid var(--line); border-radius: .85rem; background: transparent; color: var(--ink); transition: border-color .15s; }
.input:hover { border-color: var(--line-strong); }
.input:focus-visible { border-color: var(--accent); outline-offset: 2px; }
.input:disabled { color: var(--muted); border-style: dashed; cursor: not-allowed; }
.input::placeholder { color: #8d999699; }
textarea.input { min-height: 6.5rem; resize: vertical; line-height: 1.5; }
select.input { padding-right: .6rem; }
select.input option { background: var(--panel); color: var(--ink); }
.ticks { display: flex; flex-wrap: wrap; gap: .5rem 1.4rem; }
.tick { display: inline-flex; align-items: center; gap: .5rem; cursor: pointer; }
.tick input { width: 1.05rem; height: 1.05rem; margin: 0; accent-color: var(--accent); }
.agree { display: flex; align-items: flex-start; margin-bottom: 1rem; color: var(--muted); font-size: .88rem; line-height: 1.5; }
.agree input { flex: none; margin-top: .14rem; }
.agree a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .3em; }
.agree a:hover { text-decoration-color: var(--ink); }

dialog { width: min(100% - 2rem, 28rem); max-height: calc(100dvh - 2rem); padding: 1.75rem; border: 1px solid var(--line-strong); border-radius: 1.3rem; color: var(--ink); background: var(--panel); box-shadow: 0 2rem 6rem #000a; }
dialog::backdrop { background: #030605bf; -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); }
dialog h2 { font-size: 1.4rem; margin-bottom: .5rem; }
dialog p { color: var(--muted); font-size: .9rem; }
dialog .flash.error { color: var(--warn); }
dialog form { margin-top: 1.25rem; }
dialog fieldset { margin-bottom: 0; }
dialog .field { margin-bottom: 1rem; }
dialog textarea.input { min-height: 5.4rem; }
dialog .button { width: 100%; }
dialog .options { margin-bottom: 0; }
dialog .agree { margin: 1.25rem 0 0; }
.dialog-actions { display: grid; gap: .6rem; margin-top: 1.4rem; }
dialog .flash { margin-top: 1rem; }

.state { display: inline-flex; align-items: center; gap: .45rem; white-space: nowrap; }
.state::before { content: ""; flex: none; width: .45rem; height: .45rem; border-radius: 50%; background: #ffffff40; }
.state.on { color: var(--accent); }
.state.on::before { background: var(--accent); }
.state.warn { color: var(--warn); }
.state.warn::before { background: var(--warn); }
.contact-list { display: grid; gap: .4rem; }
.contact-list div { display: flex; flex-wrap: wrap; gap: 0 1rem; }
.contact-list dd { min-width: 0; text-align: left; overflow-wrap: anywhere; }
.tag { display: inline-block; margin-left: .5rem; padding: 0 .55rem; border: 1px solid var(--line-strong); border-radius: 99rem; color: var(--muted); font-size: .74rem; font-weight: 400; line-height: 1.6; letter-spacing: .04em; vertical-align: .1em; white-space: nowrap; }

/* 应用页面骨架 */
body.app::before { height: 30rem; opacity: .6; }
.page { padding-block: clamp(2.75rem, 7vw, 4.75rem) clamp(3.5rem, 9vw, 6.5rem); }
.title { margin: 1.1rem 0 .9rem; font-size: clamp(2.2rem, 7.4vw, 4.2rem); letter-spacing: -.03em; line-height: 1.06; overflow-wrap: anywhere; }
.meta { display: flex; flex-wrap: wrap; gap: .2rem 1.2rem; color: var(--muted); font-size: .95rem; }
.row-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .75rem; margin-top: 2rem; }
.hint { margin-top: 1.1rem; color: var(--muted); font-size: .9rem; }
.hint a, .hint .link { margin-left: .4rem; color: var(--ink); text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .3em; }
.page > .flash { margin-bottom: 1.5rem; }
.block { margin-top: clamp(3rem, 8vw, 5rem); }
.block-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .75rem 1rem; padding-bottom: 1rem; border-bottom: 1px solid var(--line); }
.block-head h2 { font-size: clamp(1.3rem, 2.6vw, 1.6rem); }
.empty-line { padding-block: 1.2rem; border-bottom: 1px solid var(--line); color: var(--muted); font-size: .92rem; }

/* 页脚。带页脚的应用页面把它压在视口底部。 */
.foot { border-top: 1px solid var(--line); color: var(--muted); font-size: .84rem; }
.foot .wrap { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .5rem 2rem; padding-block: 2rem; }
.foot .contacts { display: flex; flex-wrap: wrap; gap: .25rem 1.5rem; }
.foot a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .3em; transition: color .15s; }
.foot a:hover { color: var(--ink); }
body.with-foot { display: flex; flex-direction: column; min-height: 100vh; min-height: 100dvh; }
body.with-foot > main { flex: 1 0 auto; }

/* 登录 */
.auth { padding-block: clamp(3rem, 12vh, 7rem) 4rem; }
.auth .title { margin-top: 0; margin-bottom: 2rem; font-size: clamp(2.2rem, 8vw, 3.2rem); }
.auth .button { width: 100%; margin-top: .6rem; }
.auth .flash { margin-bottom: 1.1rem; }
.switch { margin-top: 1.6rem; color: var(--muted); font-size: .9rem; text-align: center; }
.switch .link { margin-left: .35rem; color: var(--ink); }

/* 结算 */
.checkout .title { font-size: clamp(2rem, 7vw, 3rem); margin-bottom: 2rem; }
.checkout .lines div:first-child { border-top: 1px solid var(--line); }
.checkout .lines div { padding-block: .85rem; font-size: 1rem; }
.checkout .button { width: 100%; }
.pay-note { margin-top: .85rem; text-align: center; font-size: .88rem; }
.checkout .link { font-size: .9rem; }
.checkout .after { display: grid; justify-items: center; gap: 1.1rem; margin-top: 1.5rem; }
.checkout .after .button { justify-self: stretch; }
.checkout .flash { margin-top: 1rem; }
.checkout .hint { text-align: center; }
.checkout .fine { margin-top: .35rem; }
.checkout .claim-status { margin: 0 0 1.5rem; text-align: left; }
.pay-how { margin-bottom: 1.4rem; }
.pay-how h2 { margin-bottom: .6rem; color: var(--muted); font-size: .8rem; font-weight: 400; line-height: 1.6; letter-spacing: .16em; }
.pay-panel { padding: 1rem 1.1rem; border: 1px solid var(--line-strong); border-radius: .85rem; background: #ffffff08; }
.pay-text { line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; }
.pay-panel .contact-list { margin-top: .8rem; padding-top: .8rem; border-top: 1px solid var(--line); }
.checkout .field { margin-bottom: 1.25rem; }
.checkout .flash.ok { text-align: center; }

/* 我的租赁 */
.figures { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); margin-top: clamp(2rem, 5vw, 3rem); border-block: 1px solid var(--line); }
.figures div { padding-block: 1.4rem 1.5rem; }
.figures div + div { padding-left: clamp(1rem, 3vw, 2.25rem); border-left: 1px solid var(--line); }
.figures dt { margin-bottom: .55rem; font-size: .8rem; letter-spacing: .16em; }
.figures dd { text-align: left; font-size: clamp(1.7rem, 5vw, 2.8rem); font-weight: 600; line-height: 1.1; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.usage { margin-top: 1.1rem; color: var(--muted); font-size: .92rem; font-variant-numeric: tabular-nums; }
.usage b { margin-left: .2rem; color: var(--ink); font-weight: 600; }
.progress { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: .75rem; max-width: 40rem; margin-top: 2.5rem; list-style: none; }
.progress li { padding-top: .9rem; border-top: 1px solid var(--line); color: var(--muted); font-size: .93rem; }
.progress li[data-state="done"] { border-color: var(--accent); color: var(--ink); }
.progress li[data-state="current"] { border-color: var(--ink); color: var(--ink); font-weight: 600; }
.rows { list-style: none; }
.rows li { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: .15rem 1.5rem; align-items: center; padding-block: 1rem; border-bottom: 1px solid var(--line); }
.rows .sub { color: var(--muted); font-size: .84rem; }
.rows .side { display: grid; justify-items: end; gap: .15rem; text-align: right; }
.rows .amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rows .side .sub { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .1rem .8rem; }
.rows .link { color: var(--ink); }
.checks { list-style: none; }
.checks li { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding-block: .85rem; border-bottom: 1px solid var(--line); font-size: .95rem; }
.checks b { display: inline-flex; align-items: center; gap: .5rem; color: var(--muted); font-weight: 400; font-variant-numeric: tabular-nums; white-space: nowrap; }
.checks b::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: #ffffff40; }
.checks li[data-state="ok"] b { color: var(--accent); }
.checks li[data-state="ok"] b::before { background: var(--accent); }
.checks li[data-state="fail"] b { color: var(--warn); }
.checks li[data-state="fail"] b::before { background: var(--warn); }

/* 条款 */
.terms { counter-reset: clause; }
.terms-head { max-width: 40rem; padding-bottom: clamp(2.25rem, 6vw, 3.5rem); }
.terms-head .title { margin-bottom: 1.2rem; }
.terms-head .lead { color: var(--muted); font-size: clamp(1rem, 2.2vw, 1.12rem); }
.terms-head .flash { display: inline-block; margin-top: 1.5rem; color: var(--muted); }
.terms section { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr); gap: 1rem clamp(1.5rem, 4vw, 3.5rem); padding-block: clamp(1.75rem, 4vw, 2.5rem); border-top: 1px solid var(--line); counter-increment: clause; }
.terms section h2 { font-size: clamp(1.25rem, 2.4vw, 1.55rem); }
.terms section h2::before { content: counter(clause, decimal-leading-zero); display: block; margin-bottom: .9rem; color: var(--accent); font-size: .82rem; font-weight: 400; letter-spacing: .14em; font-variant-numeric: tabular-nums; }
.terms section > div { max-width: 40rem; }
.terms section ul { display: grid; gap: .7rem; list-style: none; }
.terms section li { position: relative; padding-left: 1.3rem; }
.terms section li::before { content: ""; position: absolute; left: 0; top: .8em; width: .5rem; height: 1px; background: var(--line-strong); }
.terms section p { color: var(--muted); }
.terms section p + ul, .terms section p + dl { margin-top: .8rem; }
.terms section a { text-decoration: underline; text-decoration-color: var(--line-strong); text-underline-offset: .3em; overflow-wrap: anywhere; }
.terms section a:hover { text-decoration-color: var(--ink); }

/* 远控外壳 */
.desk { display: flex; flex-direction: column; height: 100vh; height: 100dvh; overflow: hidden; }
.desk::before { display: none; }
.deskbar { flex: none; display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.4rem); min-height: 2.9rem; padding-inline: clamp(.8rem, 2vw, 1.25rem); border-bottom: 1px solid var(--line); font-size: .88rem; white-space: nowrap; }
.deskbar .brand { font-size: .92rem; }
.desk-device { display: flex; align-items: center; gap: .6rem; min-width: 0; margin-right: auto; }
.desk-device strong { min-width: 0; overflow: hidden; text-overflow: ellipsis; font-weight: 600; }
.desk-time { color: var(--muted); font-variant-numeric: tabular-nums; }
.desk-time b { margin-left: .5rem; color: var(--ink); font-weight: 600; }
.deskbar nav { display: flex; align-items: center; gap: clamp(.7rem, 2vw, 1.25rem); }
.deskbar .link { text-decoration: none; }
.only-narrow { display: none; }
.stage { position: relative; flex: 1; min-height: 0; background: #000; }
.stage iframe { display: block; width: 100%; height: 100%; border: 0; }
.veil { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: 1.6rem; padding: 1.5rem; text-align: center; background: var(--bg); }
.veil h1 { font-size: clamp(2rem, 7vw, 3.4rem); letter-spacing: -.03em; }
.veil p { color: var(--muted); }

/* 管理台 */
.tabs { display: flex; gap: clamp(1.1rem, 3vw, 2.2rem); overflow-x: auto; border-bottom: 1px solid var(--line); scrollbar-width: none; }
.tabs a { flex: none; padding: 1rem 0 .9rem; border-bottom: 1px solid transparent; color: var(--muted); font-size: .95rem; white-space: nowrap; transition: color .15s; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current] { border-color: var(--accent); color: var(--ink); }
.tabs a:focus-visible { outline-offset: -2px; }
.tabs b { margin-left: .4rem; color: var(--accent); font-size: .8rem; font-weight: 400; font-variant-numeric: tabular-nums; }
.admin .page { padding-top: 0; }
.admin .page > .flash { margin: 1.5rem 0 0; }
.view-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 1rem; margin: clamp(2rem, 5vw, 3.25rem) 0 1.5rem; }
.view-head h1 { font-size: clamp(1.8rem, 5vw, 2.6rem); letter-spacing: -.03em; }
.stats { display: grid; grid-template-columns: repeat(5, minmax(0, 1fr)); border-block: 1px solid var(--line); }
.stats a { display: block; padding: clamp(1.4rem, 3vw, 2rem) clamp(1rem, 2vw, 1.5rem); border-left: 1px solid var(--line); }
.stats a:first-child { border-left: 0; padding-left: 0; }
.stats strong { display: block; margin-bottom: .5rem; font-size: clamp(2.3rem, 5vw, 3.8rem); font-weight: 600; line-height: 1.05; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.stats span { color: var(--muted); font-size: .9rem; }
.stats a:hover span { color: var(--ink); }
.stats a.hot strong { color: var(--accent); }
.filters, .head-actions { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { display: inline-flex; align-items: center; min-height: 2.1rem; padding: .2rem .95rem; border: 1px solid var(--line); border-radius: 99rem; background: transparent; color: var(--muted); font-size: .86rem; white-space: nowrap; cursor: pointer; transition: border-color .15s, color .15s; }
.chip:hover { border-color: var(--line-strong); color: var(--ink); }
.chip[aria-pressed="true"] { border-color: var(--accent); background: #8fe3cb12; color: var(--ink); }
.chip.act { border-color: var(--line-strong); color: var(--ink); }
.chip.act:hover { border-color: var(--ink); }
.chip.primary { border-color: var(--ink); background: var(--ink); color: #07100e; font-weight: 600; }
.chip.primary:hover { background: #fff; }
.chip:disabled { opacity: .4; cursor: not-allowed; }
.chip b { margin-left: .5rem; color: var(--accent); font-weight: 400; font-variant-numeric: tabular-nums; }
.table-scroll { overflow-x: auto; border-top: 1px solid var(--line); }
table { width: 100%; border-collapse: collapse; font-size: .9rem; }
th, td { padding: .9rem 1.4rem .9rem 0; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; white-space: nowrap; }
th { color: var(--muted); font-size: .78rem; font-weight: 400; letter-spacing: .14em; }
td.long { min-width: 20rem; white-space: normal; }
th:last-child, td:last-child { padding-right: 0; }
td.num, th.num { text-align: right; font-variant-numeric: tabular-nums; }
td .sub { display: block; color: var(--muted); font-size: .84rem; }
td .sub.wrap { width: auto; min-width: 13rem; max-width: 30rem; margin-inline: 0; white-space: normal; overflow-wrap: anywhere; }
td .fail { display: block; min-width: 14rem; max-width: 26rem; margin-top: .3rem; color: var(--warn); font-size: .84rem; white-space: normal; overflow-wrap: anywhere; }
td .claim { display: block; color: var(--accent); font-size: .84rem; }
td.acts { padding-block: .58rem; text-align: right; }
td.acts div { display: flex; justify-content: flex-end; gap: .4rem; }
.mono { font-variant-numeric: tabular-nums; }
.sub-view { margin-top: clamp(2.5rem, 6vw, 3.5rem); }
.sub-view h2 { margin-bottom: 1.1rem; font-size: clamp(1.2rem, 2.6vw, 1.45rem); }
dialog.form { width: min(100% - 2rem, 32rem); }
.command { margin-top: 1.1rem; }
.command div { display: flex; align-items: center; justify-content: space-between; gap: 1rem; margin-bottom: .45rem; color: var(--muted); font-size: .8rem; letter-spacing: .16em; }
.command i { font-style: normal; letter-spacing: 0; opacity: .7; }
.command .chip { flex: none; letter-spacing: 0; }
.command code { display: block; padding: .7rem .9rem; border: 1px solid var(--line); border-radius: .85rem; color: var(--ink); font: .8rem/1.6 ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; overflow-wrap: anywhere; -webkit-user-select: all; user-select: all; }
.pair { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 .8rem; }
.settings { max-width: 40rem; }
.settings .field { margin-bottom: 2.2rem; }
.settings > .flash { margin-bottom: 1.2rem; }
.settings .row-actions { margin-top: 0; }
.contact-rows { display: grid; gap: .6rem; margin-bottom: .8rem; }
.contact-rows:empty { display: none; }
.contact-row { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2.2fr) auto; gap: .5rem; align-items: center; }
.with-action { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.with-action .input { flex: 1 1 15rem; width: auto; }
.with-action ~ .flash { margin-top: .7rem; }
.command code.secret { font-size: 1rem; letter-spacing: .04em; }

@media (max-width: 60rem) {
  .stats { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .stats a { padding-inline: 1.1rem; border-top: 1px solid var(--line); }
  .stats a:nth-child(-n+2) { border-top: 0; }
  .stats a:nth-child(odd) { border-left: 0; padding-left: 0; }
  .stats a:last-child { grid-column: 1 / -1; }
}
@media (max-width: 48rem) {
  .terms section { grid-template-columns: minmax(0, 1fr); }
  .terms section h2::before { margin-bottom: .5rem; }
}
@media (max-width: 36rem) {
  .brand small { display: none; }
  .option-body { padding: .85rem .9rem; }
  .figures { grid-template-columns: minmax(0, 1fr); }
  .figures div + div { padding-left: 0; border-left: 0; border-top: 1px solid var(--line); }
  .row-actions .button { flex: 1 1 auto; padding-inline: 1.2rem; }
  .deskbar .brand span:not(.brand-mark), .desk-time span, .desk-device .state span, .only-wide { display: none; }
  .only-narrow { display: inline; }
  .pair { grid-template-columns: minmax(0, 1fr); }
  .contact-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1.5fr) auto; }
  .contact-row .input { padding-inline: .7rem; }
  .settings .row-actions .button { flex: 0 1 auto; }
  dialog { padding: 1.4rem; }
}
@media (prefers-reduced-motion: reduce) { :root { scroll-behavior: auto; } }
