/* One stylesheet for every page: the front page, the guide, the customer console and the
   operator pages. Colours and type are tokens taken from the V2 design; there is one theme. */
/* The faces of the design, served from here (SIL Open Font License; the licences are beside them). */
@font-face { font-family: "Geist"; src: url(/static/geist-variable.woff2) format("woff2"); font-weight: 100 900; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/static/ibmplexmono-regular.woff2) format("woff2"); font-weight: 400; font-style: normal; font-display: swap; }
@font-face { font-family: "IBM Plex Mono"; src: url(/static/ibmplexmono-medium.woff2) format("woff2"); font-weight: 500; font-style: normal; font-display: swap; }

:root {
  color-scheme: light;
  --bg: #f5f7fa;
  --surface: #ffffff;
  --surface-2: #f0f3f7;
  --border: #d6dde5;
  --border-strong: #c2ccd8;
  --text: #101823;
  --text-2: #4a596b;
  --text-3: #7a8797;
  --accent: #184ee7;
  --accent-hover: #123fc4;
  --accent-text: #ffffff;
  --accent-soft: #e9efff;
  --accent-soft-hover: #dbe5ff;
  --ink: #0b0e12;
  --ink-2: #11151c;
  --ink-rule: #333d4a;
  --on-ink: #ffffff;
  --on-ink-2: #aab6c6;
  --on-ink-accent: #a5c6ff;
  --ok: #0f7a4d;
  --ok-soft: #e1f5ea;
  --warn: #8a5300;
  --warn-soft: #fdf0d5;
  --bad: #b3261e;
  --bad-hover: #99201a;
  --bad-soft: #fde8e6;
  --info-soft: #eaeef3;
  --screen: #0b0e12;
  --radius: 6px;
  --radius-sm: 4px;
  --mast: 72px;
  --mono: "IBM Plex Mono", ui-monospace, "SF Mono", SFMono-Regular, Menlo, Consolas, "Liberation Mono", monospace;
  --sans: "Geist", "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI", "Hiragino Sans", "Hiragino Kaku Gothic ProN",
          "PingFang SC", "Noto Sans SC", "Noto Sans JP", "Yu Gothic UI", Meiryo, sans-serif;
}

* { box-sizing: border-box; }

html { -webkit-text-size-adjust: 100%; }

body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--sans);
  overflow-x: hidden;
  -webkit-font-smoothing: antialiased;
}

h1, h2, h3 { margin: 0; line-height: 1.25; font-weight: 500; }
h1 { font-size: 30px; letter-spacing: -.03em; }
h2 { font-size: 21px; letter-spacing: -.02em; }
h3 { font-size: 16px; font-weight: 600; }
p { margin: 0; }
a { color: var(--accent); }
[hidden] { display: none !important; }

:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }

.muted { color: var(--text-2); }
.faint { color: var(--text-3); }
.small { font-size: 13px; }
.mono { font-family: var(--mono); font-size: 13px; }
.num { font-variant-numeric: tabular-nums; }
.right { text-align: right; }
.nowrap { white-space: nowrap; }
.spacer { flex: 1; }

/* Small capitals in the fixed-width face: the label above a figure, the line above a title. */
.eyebrow {
  font-family: var(--mono); font-size: 11px; font-weight: 500; line-height: 1.3;
  letter-spacing: .05em; text-transform: uppercase; color: var(--text-2);
}

/* ---- masthead -------------------------------------------------------------- */
.mast {
  position: sticky; top: 0; z-index: 6;
  display: flex; align-items: center; gap: 22px;
  min-height: var(--mast); padding: 0 40px;
  background: var(--ink); color: var(--on-ink);
  border-bottom: 1px solid var(--ink-rule);
}
.wordmark { display: inline-flex; align-items: center; gap: 8px; color: var(--on-ink); text-decoration: none;
            font-size: 25px; font-weight: 600; letter-spacing: -.05em; line-height: 1; white-space: nowrap; }
.wordmark svg { width: 29px; height: 29px; flex: none; }
.wordmark.on-light { color: var(--text); }
.mast a.mast-link, .mast .mast-link { color: var(--on-ink-2); text-decoration: none; font-size: 15px; background: none; border: 0;
                                      padding: 0; font-family: inherit; cursor: pointer; white-space: nowrap; }
.mast a.mast-link:hover, .mast .mast-link:hover { color: var(--on-ink); }
.mast .mast-link.on { color: var(--on-ink); }
.mast .eyebrow { color: var(--on-ink-accent); white-space: nowrap; }
.mast .who { color: var(--on-ink-2); font-size: 14px; max-width: 220px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mast .rule { width: 1px; height: 17px; background: var(--ink-rule); flex: none; }
.locale { display: inline-flex; align-items: center; gap: 6px; color: var(--on-ink-2); }
.locale svg { width: 16px; height: 16px; flex: none; }
.locale select { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 4px 2px; color: inherit;
                 font: inherit; font-size: 14px; cursor: pointer; }
.locale select:hover { color: var(--on-ink); }
.locale select option { color: var(--text); }
.locale.on-light { color: var(--text-2); }
.locale.on-light select:hover { color: var(--text); }

/* ---- the frame of the console and the operator pages -------------------------- */
.shell { display: grid; grid-template-columns: 216px minmax(0, 1fr); min-height: calc(100vh - var(--mast)); }
.rail { background: var(--surface); border-right: 1px solid var(--border); padding: 26px 16px 32px;
        display: flex; flex-direction: column; gap: 2px; }
.rail .eyebrow { padding: 0 2px 10px; }
.rail a { display: flex; align-items: center; gap: 11px; min-height: 40px; padding: 0 12px; border-radius: var(--radius-sm);
          color: var(--text); text-decoration: none; font-size: 14px; white-space: nowrap; }
.rail a svg { width: 18px; height: 18px; flex: none; color: var(--text-2); }
.rail a:hover { background: var(--surface-2); }
.rail a[aria-current="page"] { background: var(--accent-soft); color: var(--accent); font-weight: 600; }
.rail a[aria-current="page"] svg { color: var(--accent); }
.rail.ops a[aria-current="page"] { background: none; color: var(--text); box-shadow: inset 3px 0 0 var(--accent); border-radius: 0; }
.rail.ops a[aria-current="page"] svg { color: var(--text); }
.rail hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.rail .count { margin-left: auto; min-width: 20px; padding: 0 6px; border-radius: 999px; background: var(--bad); color: #fff;
               font-size: 12px; font-weight: 600; text-align: center; }

.main { padding: 38px 48px 80px; max-width: 1280px; min-width: 0; }
.crumb { margin-bottom: 22px; }
.page-head { display: flex; align-items: flex-end; gap: 16px 24px; flex-wrap: wrap; margin-bottom: 40px; }
.page-head > div:first-child { flex: 1; min-width: 240px; }
.page-title { font-size: clamp(34px, 4.4vw, 52px); font-weight: 500; letter-spacing: -.048em; line-height: 1.06; }
.page-title-row { display: flex; align-items: center; gap: 12px 22px; flex-wrap: wrap; }
.page-lead { margin-top: 16px; font-size: 16px; color: var(--text-2); max-width: 46em; }
:lang(zh) .page-title, :lang(ja) .page-title { font-size: clamp(30px, 3.4vw, 38px); letter-spacing: -.01em; line-height: 1.3; }
:lang(zh) h2, :lang(ja) h2, :lang(zh) h1, :lang(ja) h1 { letter-spacing: 0; }

.container { max-width: 920px; margin: 0 auto; padding: 24px 20px 64px; }
.container.wide { max-width: 1240px; }

.stack { display: flex; flex-direction: column; gap: 16px; }
.stack.tight { gap: 8px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.row.top { align-items: flex-start; }
.section-head { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; margin: 44px 0 16px; }
.section-head:first-child { margin-top: 0; }
.section-note { margin: -8px 0 16px; font-size: 13px; color: var(--text-2); }

.card {
  background: var(--surface);
  border: 1px solid var(--border);
  border-radius: var(--radius);
  padding: 24px;
}
.card.flush { padding: 0; overflow: hidden; }
.card + .card { margin-top: 12px; }

.footnote { margin-top: 44px; color: var(--text-2); font-size: 13px; }

/* ---- figures in a row ------------------------------------------------------- */
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); overflow: hidden;
         background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); }
.stats + .stats { margin-top: 12px; }
.stat { padding: 20px 24px 21px; min-width: 0; box-shadow: -1px 0 0 var(--border), 0 -1px 0 var(--border); }
.stat .value { margin: 8px 0 7px; font-size: 32px; font-weight: 500; letter-spacing: -.05em; line-height: 1.06;
               font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.stat .sub { color: var(--text-2); font-size: 13px; }
.stat.alert .value { color: var(--bad); }
:lang(zh) .stat .value, :lang(ja) .stat .value { letter-spacing: -.02em; }

/* ---- controls ------------------------------------------------------------ */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 8px 18px;
  border: 1px solid var(--border-strong); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit; font-weight: 500; line-height: 1.2;
  cursor: pointer; white-space: nowrap; text-decoration: none;
}
.btn:hover { background: var(--surface-2); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); border-color: var(--accent); color: var(--accent-text); }
.btn.primary:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.btn.soft { background: var(--accent-soft); border-color: var(--accent-soft); color: var(--accent); }
.btn.soft:hover { background: var(--accent-soft-hover); border-color: var(--accent-soft-hover); }
.btn.dark { background: var(--ink-2); border-color: var(--ink-rule); color: var(--on-ink); }
.btn.dark:hover { background: #1a2029; }
.btn.danger { color: var(--bad); border-color: var(--bad); }
.btn.danger:hover { background: var(--bad-soft); }
.btn.danger.solid { background: var(--bad); color: #fff; }
.btn.danger.solid:hover { background: var(--bad-hover); border-color: var(--bad-hover); }
.btn.lg { min-height: 44px; padding: 10px 19px; }
.btn.sm { min-height: 30px; padding: 3px 11px; font-size: 13px; }
.btn.link { border-color: transparent; background: none; color: var(--accent); padding-left: 4px; padding-right: 4px; }
.btn.link:hover { text-decoration: underline; background: none; }
.btn.go::after { content: "→"; margin-left: 8px; }
.btn.out::after { content: "↗"; margin-left: 8px; }
a.btn { text-decoration: none; }

select.select, select.input, input.input, textarea.input {
  width: 100%;
  min-height: 46px; padding: 11px 14px;
  border: 1px solid var(--border); border-radius: var(--radius-sm);
  background: var(--surface); color: var(--text);
  font: inherit;
}
select.input:hover, input.input:hover, textarea.input:hover { border-color: var(--border-strong); }
select.input:focus, input.input:focus, textarea.input:focus { border-color: var(--accent); outline: 1px solid var(--accent); outline-offset: 0; }
input.input::placeholder, textarea.input::placeholder { color: var(--text-3); }
textarea.input { min-height: 96px; resize: vertical; font-family: var(--mono); font-size: 13px; line-height: 1.55; }
select.select { width: auto; min-height: 0; padding: 5px 8px; font-size: 13px; }

.field { display: flex; flex-direction: column; gap: 8px; }
.field > label, .field > .label { font-weight: 500; font-size: 14px; }
.field .hint { color: var(--text-2); font-size: 13px; }
.check { display: flex; align-items: flex-start; gap: 10px; }
.check input { margin: 4px 0 0; width: 15px; height: 15px; flex: none; accent-color: var(--accent); }

.switch { display: inline-flex; align-items: center; gap: 10px; font-size: 14px; cursor: pointer; }
.switch input { appearance: none; -webkit-appearance: none; position: relative; flex: none; margin: 0; width: 38px; height: 22px;
                border-radius: 11px; background: var(--border-strong); cursor: pointer; transition: background .15s; }
.switch input::after { content: ""; position: absolute; top: 3px; left: 3px; width: 16px; height: 16px; border-radius: 50%;
                       background: #fff; transition: transform .15s; }
.switch input:checked { background: var(--accent); }
.switch input:checked::after { transform: translateX(16px); }
@media (prefers-reduced-motion: reduce) { .switch input, .switch input::after { transition: none; } }

/* ---- status -------------------------------------------------------------- */
.badge {
  display: inline-flex; align-items: center; gap: 7px;
  padding: 4px 10px; border-radius: 999px;
  font-size: 12px; font-weight: 500; line-height: 1.35; white-space: nowrap;
  background: var(--info-soft); color: var(--text-2);
}
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-soft); color: var(--ok); }
.badge.warn { background: var(--warn-soft); color: var(--warn); }
.badge.bad { background: var(--bad-soft); color: var(--bad); }
.badge.busy { background: var(--accent-soft); color: var(--accent); }
.badge.busy::before { animation: pulse 1.2s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .25; } }
@media (prefers-reduced-motion: reduce) { .badge.busy::before { animation: none; } }

.banner {
  border-radius: var(--radius-sm); padding: 12px 16px; font-size: 14px;
  background: var(--info-soft); color: var(--text);
  border-left: 3px solid var(--border-strong);
}
.banner.warn { background: var(--warn-soft); border-left-color: var(--warn); }
.banner.bad { background: var(--bad-soft); border-left-color: var(--bad); }
.banner.ok { background: var(--ok-soft); border-left-color: var(--ok); }

.empty { padding: 26px 22px; color: var(--text-2); }

/* ---- key/value and copyable values ---------------------------------------- */
.kv { display: grid; grid-template-columns: max-content 1fr; gap: 10px 20px; align-items: center; }
.kv > dt { color: var(--text-2); font-size: 13px; }
.kv > dd { margin: 0; min-width: 0; }

.copyline { display: flex; align-items: center; gap: 8px; min-width: 0; }
.copyline code {
  flex: 1; min-width: 0;
  padding: 7px 11px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px solid var(--border);
  font-family: var(--mono); font-size: 13px;
  overflow-x: auto; white-space: nowrap;
}

/* ---- tables -------------------------------------------------------------- */
.table-wrap { overflow-x: auto; }
table.data { width: 100%; border-collapse: collapse; font-size: 14px; }
table.data th, table.data td { padding: 17px 13px; text-align: left; border-bottom: 1px solid var(--border);
                               vertical-align: middle; white-space: nowrap; }
table.data td.wrap { white-space: normal; min-width: 260px; }
table.data th { padding-top: 13px; padding-bottom: 12px; font-size: 12px; font-weight: 400; color: var(--text-2); white-space: nowrap; }
table.data tr:last-child td { border-bottom: 0; }
table.data td.right, table.data th.right { text-align: right; }
table.data tr.click { cursor: pointer; }
table.data tr.click:hover td { background: var(--surface-2); }
table.data td .badge + .badge { margin-left: 6px; }
.amount.plus { color: var(--ok); }

/* ---- dialogs and toasts --------------------------------------------------- */
dialog {
  width: min(560px, calc(100vw - 32px));
  max-height: calc(100vh - 48px);
  padding: 0; overflow: hidden;
  border: 1px solid var(--border); border-radius: var(--radius);
  background: var(--surface); color: var(--text);
  box-shadow: 0 24px 60px rgba(11, 14, 18, .28);
}
dialog.wide { width: min(880px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(11, 14, 18, .55); }
/* Title and buttons stay put; only the middle scrolls. */
dialog[open], dialog > form { display: flex; flex-direction: column; min-height: 0; }
dialog > form { flex: 1; }
.dialog-head { padding: 24px 26px 0; flex: none; }
.dialog-head h2 { font-size: 22px; }
.dialog-body { padding: 16px 26px 20px; display: flex; flex-direction: column; gap: 16px; overflow-y: auto; min-height: 0; }
.dialog-body > * { flex: none; }
.dialog-foot { flex: none; padding: 0 26px 24px; display: flex; justify-content: flex-end; gap: 8px; flex-wrap: wrap; }

.toasts { position: fixed; left: 50%; bottom: 20px; transform: translateX(-50%); z-index: 50;
          display: flex; flex-direction: column; gap: 8px; align-items: center; width: min(520px, calc(100vw - 32px)); }
.toast { padding: 11px 18px; border-radius: var(--radius-sm); background: var(--ink); color: #fff;
         font-size: 14px; box-shadow: 0 8px 24px rgba(11, 14, 18, .3); max-width: 100%; }
.toast.bad { background: var(--bad); color: #fff; }

/* ---- signing in: a dark panel beside the form --------------------------------- */
.auth { display: grid; grid-template-columns: minmax(320px, 42.5%) minmax(0, 1fr); min-height: 100vh; background: var(--surface); }
.auth-brand { display: flex; flex-direction: column; background: var(--ink); color: var(--on-ink); padding: 32px 38px 40px; min-width: 0; }
.auth-brand .eyebrow { margin-top: 78px; color: var(--on-ink-accent); }
.auth-brand h2 { margin-top: 34px; font-size: clamp(34px, 3.8vw, 50px); font-weight: 500; letter-spacing: -.048em; line-height: 1.12;
                 max-width: 7em; }
.auth-photo { margin: 56px -38px 0; flex: 1; min-height: 220px; max-height: 300px;
              background: var(--ink) url(/static/hardware-card.jpg) center / cover no-repeat; }
.auth-brand .foot { margin-top: auto; padding-top: 48px; font-family: var(--mono); font-size: 13px; color: var(--on-ink-2); }
.auth-form { padding: 28px 60px 64px; min-width: 0; }
.auth-top { display: flex; justify-content: flex-end; align-items: center; gap: 22px; min-height: 36px; font-size: 14px; }
.auth-top a { color: var(--text-2); text-decoration: none; }
.auth-top a:hover { color: var(--text); }
.auth-inner { max-width: 478px; margin-top: 16px; }
.auth-inner h1 { margin: 28px 0 0; font-size: clamp(32px, 3.4vw, 42px); font-weight: 500; letter-spacing: -.048em; line-height: 1.1; }
.auth-inner .page-lead { margin: 22px 0 34px; }
.auth-inner form.stack { gap: 20px; }
.auth-inner form .btn.primary { align-self: flex-start; margin-top: 14px; }
.auth-other { margin-top: 38px; display: flex; flex-direction: column; gap: 10px; align-items: flex-start; color: var(--text-2); }
.auth-other .btn.link { min-height: 0; padding: 0 2px; font-size: 15px; }
:lang(zh) .auth-brand h2, :lang(ja) .auth-brand h2, :lang(zh) .auth-inner h1, :lang(ja) .auth-inner h1 { letter-spacing: -.01em; }

/* The operators' sign-in: one card under the masthead. */
.login { max-width: 440px; margin: 9vh auto 0; padding: 0 20px; }
.login .card { padding: 30px; }
.login h1 { margin-bottom: 6px; }

/* ---- customer console ------------------------------------------------------ */
/* A machine that can be rented: picture, what it is, what it costs. */
.hardware { display: grid; grid-template-columns: 247px minmax(0, 1fr) minmax(220px, 31%); align-items: stretch; gap: 0 26px; padding: 24px; }
.hardware + .hardware { margin-top: 12px; }
.hardware .photo { min-height: 194px; background: var(--ink) url(/static/hardware-card.jpg) center / cover no-repeat; }
.hardware .what { padding: 7px 0; display: flex; flex-direction: column; align-items: flex-start; }
.hardware .name { margin: 12px 0 0; font-size: 34px; font-weight: 500; letter-spacing: -.045em; line-height: 1.15; }
.hardware .where { margin: 14px 0 22px; font-size: 16px; color: var(--text-2); }
.hardware .rate { border-left: 1px solid var(--border); padding: 16px 0 6px 30px; display: flex; flex-direction: column; align-items: flex-start; }
.hardware .price { margin: 12px 0 4px; font-size: 34px; font-weight: 500; letter-spacing: -.05em; line-height: 1.15; font-variant-numeric: tabular-nums; }
.hardware .per { color: var(--text-2); font-size: 13px; }
.hardware .btn { margin-top: auto; }
:lang(zh) .hardware .price, :lang(ja) .hardware .price, :lang(zh) .figure, :lang(ja) .figure { letter-spacing: -.02em; }

/* One rented machine in a list. */
.rental { display: flex; align-items: center; gap: 12px 18px; flex-wrap: wrap; padding: 20px 24px; }
.rental .name { font-size: 20px; font-weight: 500; letter-spacing: -.02em; }

/* The page of one machine. */
.dark-card { background: var(--ink); color: var(--on-ink); border-radius: var(--radius); padding: 26px 28px 22px; }
.dark-card .eyebrow { color: var(--on-ink-accent); }
.dark-card .label-row { display: flex; align-items: center; gap: 16px; }
.dark-card .label-row svg { width: 28px; height: 28px; color: var(--on-ink-accent); }
.dark-card .body { display: flex; align-items: center; gap: 16px 32px; flex-wrap: wrap; margin-top: 22px; }
.dark-card .body > div:first-child { flex: 1; min-width: 240px; }
.dark-card h2 { font-size: 32px; font-weight: 500; letter-spacing: -.04em; }
.dark-card p { margin-top: 14px; color: var(--on-ink-2); font-size: 16px; }
.dark-card .facts { display: flex; flex-wrap: wrap; gap: 12px 56px; margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--ink-rule); }
.dark-card .fact { display: flex; align-items: center; gap: 14px; min-width: 0; font-size: 14px; }
.dark-card .fact .k { color: var(--on-ink-2); font-size: 13px; white-space: nowrap; }
.dark-card .fact .v { font-family: var(--mono); overflow-wrap: anywhere; }
.dark-card .fact button { background: none; border: 0; padding: 2px 4px; color: var(--on-ink); font: inherit; font-size: 14px; cursor: pointer; }
.dark-card .fact button:hover { text-decoration: underline; }
.dark-card :focus-visible { outline-color: var(--on-ink-accent); }

.plain-card { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; padding: 22px 26px; margin-top: 22px; }
.plain-card .head { display: flex; align-items: center; gap: 13px; font-size: 17px; font-weight: 500; }
.plain-card .head svg { width: 22px; height: 22px; }
.plain-card > div:first-child { flex: 1; min-width: 220px; }
.plain-card .line { margin-top: 18px; font-family: var(--mono); font-size: 15px; overflow-wrap: anywhere; }
.plain-card .sub { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.plain-card .actions { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }

.closing { display: flex; align-items: center; gap: 14px 24px; flex-wrap: wrap; margin-top: 52px; padding-top: 30px; border-top: 1px solid var(--border); }
.closing > div:first-child { flex: 1; min-width: 220px; }
.closing h2 { font-size: 20px; }
.closing p { margin-top: 6px; color: var(--text-2); }

/* Ordering: the form beside what it comes to. */
.order { display: grid; grid-template-columns: minmax(0, 1fr) minmax(260px, 364px); gap: 26px 38px; align-items: start; }
.order .card { padding: 24px 26px 28px; }
.order form { display: flex; flex-direction: column; gap: 20px; }
.order form h2 { font-size: 22px; margin-bottom: 4px; }
.order hr { width: 100%; border: 0; border-top: 1px solid var(--border); margin: 4px 0; }
.order .renew { display: flex; align-items: flex-start; gap: 16px; }
.order .renew > div { flex: 1; }
.order .renew .t { font-size: 16px; font-weight: 500; }
.order .renew .d { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.order .buttons { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 6px; }
.summary .name { margin: 16px 0 0; font-size: 30px; font-weight: 500; letter-spacing: -.045em; }
.summary .where { margin-top: 8px; color: var(--text-2); font-size: 14px; }
.summary hr { border: 0; border-top: 1px solid var(--border); margin: 28px 0 26px; }
.summary .price { margin: 12px 0 0; font-size: 34px; font-weight: 500; letter-spacing: -.05em; font-variant-numeric: tabular-nums; }
.summary .note { margin-top: 22px; color: var(--text-2); font-size: 14px; }
:lang(zh) .summary .price, :lang(ja) .summary .price { letter-spacing: -.02em; }

.balance { display: flex; align-items: flex-end; gap: 14px 32px; flex-wrap: wrap; }
.balance .figure { margin-top: 10px; font-size: 44px; font-weight: 500; letter-spacing: -.05em; line-height: 1.05; font-variant-numeric: tabular-nums; }
.lease-foot { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.pre { white-space: pre-wrap; }
ol.steps { margin: 0; padding-left: 1.4em; display: flex; flex-direction: column; gap: 4px; }
.row.after { margin-top: 12px; }

.tips { margin-top: 22px; padding: 18px 22px; background: var(--surface); border: 1px solid var(--border); border-radius: var(--radius); font-size: 14px; }
.tips-title { font-weight: 600; margin-bottom: 6px; }
.tips ul { margin: 0 0 8px; padding-left: 18px; color: var(--text-2); line-height: 1.7; }
.with-peek { display: flex; gap: 8px; align-items: stretch; }
.with-peek .input { flex: 1; min-width: 0; }
.with-peek .peek { flex: none; min-height: 46px; }

/* ---- operator pages -------------------------------------------------------- */
.lead { margin: -4px 0 14px; }
.attention { display: flex; align-items: flex-start; gap: 14px; padding: 18px 22px; border-bottom: 1px solid var(--border); }
.attention:last-child { border-bottom: 0; }
.attention .what { flex: 1; min-width: 0; }

.log { margin: 0; padding: 12px 14px; max-height: 340px; overflow: auto;
       background: var(--surface-2); border: 1px solid var(--border); border-radius: var(--radius-sm);
       font-family: var(--mono); font-size: 12.5px; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
details.job { border-bottom: 1px solid var(--border); }
details.job:last-child { border-bottom: 0; }
details.job > summary { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; padding: 16px 20px; cursor: pointer; list-style: none; }
details.job > summary::-webkit-details-marker { display: none; }
details.job > summary:hover { background: var(--surface-2); }
details.job > .inside { padding: 0 20px 16px; }

.screen { aspect-ratio: 16 / 10; width: 100%; max-height: 46vh; border-radius: var(--radius-sm); background: var(--screen);
          display: flex; align-items: center; justify-content: center; overflow: hidden; color: #c9d1d9; }
.screen img { width: 100%; height: 100%; object-fit: contain; display: block; }
.screen .sim { text-align: center; padding: 16px; }
.screen .sim .name { font-family: var(--mono); font-size: 20px; }
.screen .sim .note { color: #8b949e; font-size: 13px; margin-top: 6px; }

/* ---- narrow windows ------------------------------------------------------- */
@media (max-width: 1000px) {
  .hardware { grid-template-columns: 200px minmax(0, 1fr); }
  .hardware .rate { grid-column: 1 / -1; border-left: 0; border-top: 1px solid var(--border); margin-top: 22px; padding: 20px 0 0;
                    flex-direction: row; flex-wrap: wrap; align-items: center; gap: 6px 18px; }
  .hardware .rate .price { margin: 0; }
  .hardware .rate .btn { margin: 0 0 0 auto; }
  .order { grid-template-columns: 1fr; }
}
@media (max-width: 860px) {
  :root { --mast: 64px; }
  .mast { padding: 0 20px; gap: 16px; }
  .wordmark { font-size: 23px; }
  .mast .who, .mast .hide-narrow, .mast .rule { display: none; }
  .shell { display: block; }
  .rail { flex-direction: row; align-items: center; gap: 4px; padding: 8px 12px; border-right: 0; border-bottom: 1px solid var(--border);
          overflow-x: auto; position: sticky; top: var(--mast); z-index: 5; }
  .rail .eyebrow, .rail hr { display: none; }
  .rail a { min-height: 36px; padding: 0 12px; flex: none; }
  .rail.ops a[aria-current="page"] { box-shadow: inset 0 -3px 0 var(--accent); }
  .rail .count { margin-left: 6px; }
  .main { padding: 28px 22px 64px; }
  .page-head { margin-bottom: 30px; }
  .auth { display: block; min-height: 0; }
  .auth-brand { flex-direction: row; align-items: center; padding: 0 22px; min-height: 64px; }
  .auth-brand .eyebrow, .auth-brand h2, .auth-photo, .auth-brand .foot { display: none; }
  .auth-form { padding: 18px 22px 56px; }
  .auth-inner h1 { margin-top: 20px; }
}
@media (max-width: 640px) {
  .container { padding: 20px 16px 56px; }
  .card { padding: 20px; }
  .kv { grid-template-columns: 1fr; gap: 2px 0; }
  .kv > dd { margin-bottom: 10px; }
  .balance .figure { font-size: 38px; }
  .hardware { grid-template-columns: 1fr; padding: 20px; }
  .hardware .photo { min-height: 160px; margin-bottom: 18px; }
  .hardware .name { font-size: 30px; }
  .hardware .rate .btn { margin-left: 0; }
  .dark-card { padding: 22px 20px 20px; }
  .dark-card h2 { font-size: 28px; }
  .dark-card .facts { gap: 14px 40px; }
  .dark-card .fact { flex-direction: column; align-items: flex-start; gap: 4px; }
  .plain-card { padding: 20px; }
  .stat { padding: 16px 20px; }
  .stat .value { font-size: 28px; }
  .dialog-head { padding: 20px 20px 0; }
  .dialog-body { padding: 14px 20px 18px; }
  .dialog-foot { padding: 0 20px 20px; }
  table.data th, table.data td { padding: 13px 14px; }
}

/* ---- signing in under the masthead; small pieces of the console ------------------ */
.page-note { margin-bottom: 16px; }
.signin-grid { display: grid; grid-template-columns: minmax(0, 665px) minmax(200px, 260px); gap: 30px 34px; align-items: start; }
.signin-grid .card { padding: 24px 24px 30px; gap: 24px; }
.signin-grid form.stack { gap: 20px; max-width: 534px; }
.signin-grid form .btn.primary { align-self: flex-start; margin-top: 10px; }
.signin-side { padding-top: 18px; display: flex; flex-direction: column; gap: 12px; align-items: flex-start; }
.signin-side h2 { font-size: 22px; }
form.card.narrow { max-width: 477px; gap: 20px; }
@media (max-width: 860px) { .signin-grid { grid-template-columns: 1fr; } }

/* ---- how each machine is doing, at a glance ---------------------------------------- */
.health-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 12px; }
.health-grid .card + .card { margin-top: 0; }
.hcard { display: flex; flex-direction: column; gap: 16px; padding: 20px 22px 18px; border-top: 3px solid var(--border-strong); }
.hcard.ok { border-top-color: #18a566; }
.hcard.warn { border-top-color: #d08a00; }
.hcard.bad { border-top-color: var(--bad); background: #fffafa; }
.hcard[role="button"] { cursor: pointer; }
.hcard[role="button"]:hover { box-shadow: 0 2px 10px rgba(16, 24, 35, .08); }
.hcard-top { display: flex; align-items: center; gap: 14px; }
.light { flex: none; width: 14px; height: 14px; margin: 0 4px; border-radius: 50%; background: var(--border-strong); box-shadow: 0 0 0 5px var(--info-soft); }
.light.ok { background: #18a566; box-shadow: 0 0 0 5px var(--ok-soft); animation: breathe 2.6s ease-in-out infinite; }
.light.warn { background: #d08a00; box-shadow: 0 0 0 5px var(--warn-soft); }
.light.bad { background: var(--bad); box-shadow: 0 0 0 5px var(--bad-soft); animation: pulse 1s ease-in-out infinite; }
@keyframes breathe { 50% { box-shadow: 0 0 0 8px var(--ok-soft); } }
.hcard-name { flex: 1; min-width: 0; }
.hcard-name .slot { font-family: var(--mono); font-size: 18px; font-weight: 500; line-height: 1.3; }
.hcard-word { font-size: 22px; font-weight: 500; white-space: nowrap; }
.hcard-word.ok { color: var(--ok); }
.hcard-word.warn { color: var(--warn); }
.hcard-word.bad { color: var(--bad); }
.hcard-word.idle { color: var(--text-3); font-size: 16px; }
.hcard-down { color: var(--bad); font-weight: 500; }
.strip { display: block; width: 100%; height: 22px; }
.strip .up { fill: #18a566; }
.strip .down { fill: var(--bad); }
.strip .none { fill: var(--info-soft); }
.strip-note { display: flex; justify-content: space-between; margin-top: 6px; }
.meters { display: flex; flex-direction: column; gap: 10px; }
.meter-row { display: grid; grid-template-columns: 38px minmax(0, 1fr) minmax(96px, auto); align-items: center; gap: 12px; font-size: 13px; }
.meter-name { color: var(--text-2); }
.meter-value { text-align: right; white-space: nowrap; }
.meter { display: block; width: 100%; height: 8px; border-radius: 4px; overflow: hidden; }
.meter .track { fill: var(--info-soft); }
.meter.ok .fill { fill: var(--accent); }
.meter.warn .fill { fill: #d08a00; }
.meter.bad .fill { fill: var(--bad); }
.doors { display: flex; align-items: center; gap: 8px 18px; flex-wrap: wrap; font-size: 13px; }
.door { display: inline-flex; align-items: center; gap: 7px; white-space: nowrap; }
.door i { width: 8px; height: 8px; border-radius: 50%; background: #18a566; }
.door.bad { color: var(--bad); font-weight: 600; }
.door.bad i { background: var(--bad); }
@media (prefers-reduced-motion: reduce) { .light.ok, .light.bad { animation: none; } }
.door.unknown { color: var(--text-3); }
.door.unknown i { background: var(--border-strong); }
