/* QUIETPASS service site: page and section styles. Tokens and shared components live in site.css. */

@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes beacon { 0% { box-shadow: 0 0 0 0 currentColor; } 70% { box-shadow: 0 0 0 .5rem transparent; } 100% { box-shadow: 0 0 0 0 transparent; } }

/* ---------- Hero ---------- */
.hero { position: relative; padding-block: clamp(2rem, 5vw, 4.5rem) clamp(3.5rem, 7vw, 6rem); }
.hero-title { font-size: var(--fs-hero); line-height: 1.04; letter-spacing: -.04em; font-weight: 780; }
.hero-title .grad, .hero-title .hero-line { display: inline-block; padding-bottom: .08em; }
.lead { max-width: 36rem; color: var(--ink-2); font-size: clamp(.9rem, .87rem + .2vw, 1rem); line-height: 1.75; }
.hero-cta { display: flex; flex-wrap: wrap; gap: .8rem; }
.hero-facts { display: flex; flex-wrap: wrap; gap: 1.2rem 2.6rem; width: 100%; max-width: 34rem; padding-top: 1.4rem; border-top: 1px solid var(--line); }
.hero-facts dt { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .1em; }
.hero-facts dd { display: flex; align-items: baseline; gap: .3rem; }
.hero-facts b { font-size: 1.45rem; line-height: 1.1; font-weight: 740; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.hero-facts span { color: var(--ink-2); font-size: var(--fs-sm); }
.scroll-cue { display: none; }
@media (min-width: 60rem) and (min-height: 44rem) {
  .scroll-cue { display: block; position: absolute; left: 50%; bottom: .6rem; width: 2.75rem; height: 3.4rem; margin-left: -1.375rem; opacity: .8; }
  .scroll-cue::before { content: ""; position: absolute; left: 50%; top: .5rem; width: 1.5rem; height: 2.4rem; margin-left: -.75rem; border: 1.5px solid var(--line-2); border-radius: 1rem; }
  .scroll-cue span { position: absolute; left: 50%; top: .95rem; width: .24rem; height: .5rem; margin-left: -.12rem; border-radius: 1rem; background: var(--accent); animation: cue 2s var(--ease) infinite; }
}
@keyframes cue { 0% { transform: translateY(0); opacity: 0; } 30% { opacity: 1; } 100% { transform: translateY(.95rem); opacity: 0; } }

/* The passage scene: nested arches that recede into a lit gate. */
.scene { position: relative; width: min(100%, 33rem); aspect-ratio: 520 / 560; }
.scene-art { width: 100%; height: 100%; overflow: visible; }
.scene::after { content: ""; position: absolute; left: 12%; right: 12%; bottom: -3%; height: 9%; z-index: -1; border-radius: 50%; background: radial-gradient(closest-side, var(--shadow-soft), transparent); }
.ly { transform: translate3d(calc(var(--px, 0) * var(--d, 0) * 1px), calc(var(--py, 0) * var(--d, 0) * 1px), 0); transition: transform .45s var(--ease); will-change: transform; }
.ly-glow { --d: 3; } .ly-floor { --d: 5; } .ly-a1 { --d: 17; } .ly-a2 { --d: 13; } .ly-a3 { --d: 10; } .ly-a4 { --d: 7; } .ly-a5 { --d: 4; } .ly-a6 { --d: 2; } .ly-core { --d: 1; } .ly-spark { --d: -9; }
.arch {
  fill: url(#sc-pane); stroke: url(#sc-edge); stroke-linecap: round; stroke-linejoin: round;
  stroke-dasharray: 1; stroke-dashoffset: 1;
  animation: draw 1.5s var(--ease) calc(.3s + var(--k, 0) * .13s) both, arch-pulse 5.2s ease-in-out calc(var(--k, 0) * -.55s) infinite;
}
.a1 { --k: 0; stroke-width: 2.6; } .a2 { --k: 1; stroke-width: 2.3; } .a3 { --k: 2; stroke-width: 2; }
.a4 { --k: 3; stroke-width: 1.8; } .a5 { --k: 4; stroke-width: 1.6; } .a6 { --k: 5; stroke-width: 1.4; }
@keyframes arch-pulse { 0%, 100% { stroke-opacity: .5; } 50% { stroke-opacity: 1; } }
.floor { opacity: .9; }
.rung { fill: none; stroke: var(--accent); stroke-opacity: .22; stroke-width: 1; }
.rail { fill: none; stroke: var(--accent); stroke-opacity: .32; stroke-width: 1.2; }
.flow { fill: none; stroke: #c9fff2; stroke-width: 2.4; stroke-linecap: round; stroke-dasharray: 2.4 9.6; animation: flow 1.5s linear infinite; }
@keyframes flow { to { stroke-dashoffset: -12; } }
.core-halo { transform-box: fill-box; transform-origin: center; animation: breathe 4.4s ease-in-out infinite; }
@keyframes breathe { 50% { transform: scale(1.14); opacity: .82; } }
.spark { fill: #e6fff9; opacity: 0; animation: rise 4.6s linear infinite; }
.sp1 { animation-delay: 0s; } .sp2 { animation-delay: -1.1s; animation-duration: 5.4s; } .sp3 { animation-delay: -2.2s; animation-duration: 3.9s; } .sp4 { animation-delay: -3.3s; animation-duration: 5s; } .sp5 { animation-delay: -.6s; animation-duration: 4.2s; }
@keyframes rise { 0% { transform: translateY(0) scale(1); opacity: 0; } 18% { opacity: .95; } 100% { transform: translateY(-110px) scale(.2); opacity: 0; } }
.chip3d {
  position: absolute; display: flex; align-items: center; gap: .75rem; padding: .65rem 1.05rem .65rem .7rem; border-radius: 1.05rem;
  background: var(--glass); -webkit-backdrop-filter: blur(14px) saturate(1.5); backdrop-filter: blur(14px) saturate(1.5);
  border: 1px solid var(--line-2); box-shadow: var(--sh-3);
  transform: translate3d(calc(var(--px, 0) * var(--cd, 20) * 1px), calc(var(--py, 0) * var(--cd, 20) * 1px), 0);
  transition: transform .45s var(--ease); animation: float 7s ease-in-out infinite; white-space: nowrap;
}
.chip3d .i { box-sizing: content-box; width: 1.4rem; height: 1.4rem; padding: .4rem; border-radius: .7rem; color: var(--accent-text); background: var(--hover); border: 1px solid var(--line); }
.chip3d b { display: block; font-size: .924rem; line-height: 1.2; }
.chip3d small { display: block; color: var(--ink-3); font-size: .71rem; line-height: 1.3; }
.c1 { left: 0; top: 10%; --cd: 28; }
.c2 { right: 0; top: 41%; --cd: 22; animation-delay: -2.4s; }
.c3 { left: 4%; bottom: 8%; --cd: 32; animation-delay: -4.6s; }
@keyframes float { 50% { translate: 0 -.7rem; } }
.scene.is-paused *, .scene.is-paused { animation-play-state: paused; }
@media (max-width: 30rem) { .scene { width: min(100%, 22rem); } .chip3d { padding: .5rem .8rem .5rem .55rem; } .chip3d small { display: none; } }

/* ---------- Sections ---------- */
.scenes, .why, .how, .plans, .trust, .faq { padding-block: clamp(2.2rem, 3.8vw, 3.4rem); }
.how-cta { display: flex; flex-wrap: wrap; gap: .8rem; margin-top: clamp(1.6rem, 3vw, 2.4rem); }

/* ---------- Scenes: pick a category, read the need and the answer ---------- */
.hero-pills { display: flex; flex-wrap: wrap; gap: .5rem; }
.hero-pills li { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.25rem; padding: .3rem .9rem .3rem .7rem; border-radius: 99px; background: var(--hover); border: 1px solid var(--line-2); color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; }
.hero-pills .i { color: var(--accent-text); }
.tabs.scene-tabs { display: flex; width: fit-content; margin-bottom: 1.6rem; }
.tabs.scene-tabs[hidden] { display: none; }
.scene-tabs .tab { display: inline-flex; align-items: center; gap: .45rem; }
.scene-tabs .tab .i { width: 1.05rem; height: 1.05rem; }
@media (max-width: 40rem) {
  .tabs.scene-tabs { flex-wrap: nowrap; width: 100%; overflow-x: auto; scrollbar-width: none; }
  .tabs.scene-tabs::-webkit-scrollbar { display: none; }
  /* A fade on the right edge says "there is more"; it goes away once the last tab is reached. */
  .tabs.scene-tabs:not(.is-end) { -webkit-mask-image: linear-gradient(90deg, #000 calc(100% - 2.4rem), transparent); mask-image: linear-gradient(90deg, #000 calc(100% - 2.4rem), transparent); }
  .scene-tabs .tab { flex: 0 0 auto; }
}
.scene-panel { display: grid; gap: 1.4rem; }
.scene-panel + .scene-panel { margin-top: 2.6rem; }
.scene-tabs:not([hidden]) ~ .scene-panel:not(.is-on) { display: none; }
.scene-tabs:not([hidden]) ~ .scene-panel { margin-top: 0; }
.scene-head { display: grid; gap: 0; }
.scene-head h3 { font-size: var(--fs-xl); letter-spacing: -.02em; }
.scene-head .muted { margin-top: .35rem; font-size: var(--fs-sm); }
.scene-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .scene-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (min-width: 62rem) { .scene-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.scene-cta { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; justify-items: start; gap: .8rem; padding: 1.5rem; color: inherit; }
.scene-cta:hover { text-decoration: none; }
.scene-cta h4 { font-size: 1.02rem; letter-spacing: -.01em; }
.scene-cta p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.scene-cta:hover .tile-go .i { transform: translateX(4px); }
.story { display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; align-content: start; padding: 1.5rem; }
.story h4 { font-size: 1.02rem; letter-spacing: -.01em; transform: translateZ(14px); }
.story p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.story small { display: block; margin-bottom: .3rem; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; }
.story .fix { padding: .8rem .95rem; border-radius: var(--r-md); color: var(--ink); background: var(--hover); border: 1px solid var(--line); transform: translateZ(8px); }
.story .fix small { color: var(--accent-text); }
.scene-panel.is-on .story { animation: story-in .6s var(--ease) both; }
.scene-panel.is-on .story:nth-child(2) { animation-delay: .05s; }
.scene-panel.is-on .story:nth-child(3) { animation-delay: .1s; }
.scene-panel.is-on .story:nth-child(4) { animation-delay: .15s; }
.scene-panel.is-on .story:nth-child(5) { animation-delay: .2s; }
@keyframes story-in { from { opacity: 0; translate: 0 1rem; } }
.scene-note { max-width: 46rem; margin-top: 1.8rem; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.8; }
.sec-head { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; justify-items: start; max-width: 42rem; margin-bottom: clamp(1.8rem, 4vw, 3rem); }
.sec-head h2 { font-size: var(--fs-2xl); letter-spacing: -.03em; }
.steps { position: relative; display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15.5rem), 1fr)); }
.step { position: relative; z-index: 1; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; align-content: start; padding: 1.5rem; }
.step-no { position: absolute; top: .9rem; right: 1.3rem; font-size: 1.6rem; font-weight: 800; line-height: 1; letter-spacing: -.04em; color: transparent; -webkit-text-stroke: 1px var(--line-2); font-variant-numeric: tabular-nums; }
.step-ico { width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; color: var(--accent-text); background: linear-gradient(145deg, var(--hover), transparent); border: 1px solid var(--line-2); box-shadow: 0 10px 22px -12px var(--accent-glow); }
.step h3 { font-size: 1.027rem; }
.step p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
@media (min-width: 62rem) {
  .steps::before { content: ""; position: absolute; left: 8%; right: 8%; top: 3rem; height: 1px; z-index: 0; background: repeating-linear-gradient(90deg, var(--ring) 0 .4rem, transparent .4rem .8rem); }
}

/* ---------- Plans ---------- */
.seg, .tabs { position: relative; display: inline-flex; flex-wrap: wrap; gap: .2rem; padding: .3rem; border-radius: 1.6rem; background: var(--field); border: 1px solid var(--line-2); max-width: 100%; }
.seg-btn, .tab {
  position: relative; z-index: 1; min-height: 2.75rem; padding: .5rem 1.15rem; border: 0; border-radius: 999px; background: transparent;
  color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; white-space: nowrap; transition: color .3s;
}
.seg-btn:hover, .tab:hover { color: var(--ink); }
.seg-btn[aria-checked="true"], .tab[aria-selected="true"] { color: var(--on-accent); }
.seg-thumb, .tab-thumb {
  position: absolute; z-index: 0; top: 0; left: 0; width: var(--tw, 0); height: var(--th, 0); border-radius: 999px; opacity: 0;
  background: var(--grad-accent); box-shadow: 0 8px 20px -8px var(--accent-glow);
  transform: translate(var(--tx, 0), var(--ty, 0)); transition: transform .55s var(--spring), width .55s var(--spring), height .3s, opacity .3s;
}
.seg-thumb.is-ready, .tab-thumb.is-ready { opacity: 1; }
@media (max-width: 30rem) {
  .seg { flex-wrap: nowrap; overflow-x: auto; scrollbar-width: none; }
  .seg::-webkit-scrollbar { display: none; }
  .seg-btn { flex: 1 0 auto; padding: .5rem .7rem; }
}
/* Tiles: one card per country or question, each opened in a popup. */
.tile-grid { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 16.5rem), 1fr)); }
.tile { display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto auto 1fr auto; justify-items: start; gap: .55rem; padding: 1.4rem; color: inherit; }
.tile:hover { text-decoration: none; }
.tile-sub { color: var(--ink-3); font-size: var(--fs-sm); }
.tile-sub b { color: var(--ink-2); }
.tile-facts { display: flex; flex-wrap: wrap; column-gap: .65rem; }
.tile-facts > span { white-space: nowrap; }
.tile-meta { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem 1rem; }
.tile-price { color: var(--ink-3); font-size: var(--fs-sm); white-space: nowrap; }
.tile-price b { color: var(--ink); font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.tile-go { align-self: end; justify-self: stretch; display: flex; align-items: center; justify-content: space-between; gap: .6rem; margin-top: .5rem; padding-top: .85rem; border-top: 1px dashed var(--line-2); color: var(--accent-text); font-size: var(--fs-sm); font-weight: 650; }
.tile-go .i { transition: transform .35s var(--spring); }
.tile:hover .tile-go .i { transform: translateX(4px); }
.tile-grid-ask { grid-template-columns: repeat(auto-fill, minmax(min(100%, 19.5rem), 1fr)); }
.tile-ask { grid-template-rows: 1fr auto; }
.tile-ask h3 { font-size: 1.076rem; line-height: 1.55; }
.region-pin { width: 2.75rem; height: 2.75rem; display: grid; place-items: center; border-radius: .85rem; color: var(--accent-text); background: var(--hover); border: 1px solid var(--line-2); }
.region-title { font-size: var(--fs-lg); word-break: keep-all; overflow-wrap: anywhere; }
/* The popup's content stays in the page; without script a tile simply jumps to it. */
.drawers-ready .sheet:not(.is-open):not(:target) { display: none; }
.sheet:target:not(.is-open) { margin-top: 1.2rem; padding: 1.3rem; scroll-margin-top: calc(var(--top-h) + 1rem); border: 1px solid var(--line-2); border-radius: var(--r-lg); background: var(--surface-2); }
.sheet-name { font-weight: 700; }
.sheet-answer { color: var(--ink-2); line-height: 1.9; }
/* At most five tiers to a row, each an equal share; narrow screens and large text fit fewer. */
.tiers { display: grid; grid-template-columns: repeat(auto-fill, minmax(max(min(100%, 6.4rem), calc(20% - .5rem)), 1fr)); gap: .6rem; }
.tier { display: contents; }
.tier-card { position: relative; display: grid; justify-items: start; align-content: start; gap: .35rem; padding: .95rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--field); }
.plan-name { font-size: 1.076rem; }
.tier-size { font-size: 1.076rem; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tier-card .tile-meta { flex-direction: column; align-items: flex-start; align-self: end; min-height: 4.1rem; justify-content: flex-end; }
.tier-hit { display: none; position: absolute; inset: 0; width: 100%; padding: 0; border: 0; border-radius: inherit; background: transparent; cursor: pointer; transition: box-shadow .25s, background-color .25s; }
.tiers-ready .tier-hit { display: block; }
.tier-hit[aria-pressed="true"] { box-shadow: inset 0 0 0 2px var(--accent-text); background: var(--hover); }
@media (hover: hover) { .tier-hit:hover { background: var(--hover); } }
.tier-panel { grid-column: 1 / -1; display: grid; grid-template-columns: minmax(0, 1fr); gap: .9rem; }
.tiers-ready .tier-panel { order: 2; }
.tiers-ready .tier-panel:not(.is-on) { display: none; }
.tier-panel > .plan-name { padding-top: .9rem; border-top: 1px solid var(--line-2); }
.tier-panel img { max-width: 100%; height: auto; border-radius: var(--r-sm); }
.plan-facts { display: grid; gap: .6rem; padding-top: .9rem; border-top: 1px dashed var(--line-2); }
.plan-facts li { display: flex; gap: .7rem; align-items: flex-start; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.55; }
.plan-facts .i { margin-top: .12em; color: var(--accent-text); }
.plan-facts b { color: var(--ink); }
.terms { display: grid; border-top: 1px dashed var(--line-2); }
.plan-option { display: grid; grid-template-columns: minmax(0, 1fr) auto auto; grid-template-areas: "name price act"; align-items: center; column-gap: 1rem; min-height: 3.75rem; padding: .55rem 0; border-bottom: 1px dashed var(--line); }
.plan-option:last-child { border-bottom: 0; }
.term-name { grid-area: name; font-weight: 650; }
.term-price { grid-area: price; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.plan-option > form, .plan-option > .btn, .term-state { grid-area: act; }
.plan-option .btn, .term-state { min-width: 6.75rem; justify-content: center; text-align: center; }
.term-state { color: var(--ink-3); font-size: var(--fs-sm); }
@media (max-width: 36rem) {
  /* Phones show the countries two to a row so the page stays short; large text falls back to one. */
  .tile-grid:not(.tile-grid-ask) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 9rem), 1fr)); gap: .75rem; }
  .tile-grid:not(.tile-grid-ask) .tile { padding: 1rem .9rem; gap: .45rem; }
  .tile-grid:not(.tile-grid-ask) .tile-go { display: none; }
  .tile-grid:not(.tile-grid-ask) .region-title { font-size: .95rem; line-height: 1.45; }
  .tile-grid:not(.tile-grid-ask) .tile-meta { gap: .35rem .6rem; }
  /* Narrow screens read the term and its total on the left, with the one action beside them. */
  .plan-option { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "name act" "price act"; }
}
.plan-none { margin-top: 2rem; padding: 2rem; text-align: center; color: var(--ink-3); }

/* Collection codes: one column per channel, every uploaded code a card showing its actual picture. */
.code-grid { display: grid; gap: 1rem; grid-template-columns: repeat(auto-fill, minmax(min(100%, 13rem), 1fr)); }
.code-card { display: grid; grid-template-columns: minmax(0, 1fr); align-content: start; gap: .85rem; padding: .9rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); scroll-margin-top: calc(var(--top-h) + 1rem); }
.code-card.is-live { border-color: var(--ring); }
.code-card:target { box-shadow: 0 0 0 3px var(--ring); }
.code-image { display: block; padding: .6rem; border-radius: var(--r-sm); background: #fff; }
.code-image img { width: 100%; height: auto; aspect-ratio: 1; object-fit: contain; }
.code-meta { display: grid; justify-items: start; gap: .35rem; overflow-wrap: anywhere; }
.code-meta span:not(.pill) { color: var(--ink-3); font-size: var(--fs-xs); }
.code-upload { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; }
.code-preview { justify-self: center; width: auto; height: auto; max-width: min(14rem, 100%); max-height: 17rem; border-radius: var(--r-md); background: #fff; }
.empty { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1rem; padding: clamp(2rem, 6vw, 4rem) 1.5rem; text-align: center; }
.empty-art { width: 7.5rem; height: auto; filter: drop-shadow(0 10px 24px var(--accent-glow)); }

/* ---------- Trust, FAQ ---------- */
.bento { display: grid; gap: 1.1rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 16rem), 1fr)); }
.bento .card, .why-grid .card { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; align-content: start; padding: 1.7rem; }
.bento h3, .why-grid h3 { font-size: 1.014rem; transform: translateZ(14px); }
.bento p, .why-grid p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.bento .step-ico, .why-grid .step-ico { transform: translateZ(26px); }
/* Five advantages: two rows that fill the width (3 + 2) on wide screens. */
.why-grid { display: grid; gap: 1.1rem; grid-template-columns: minmax(0, 1fr); }
@media (min-width: 40rem) { .why-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); } .why-grid .card:last-child { grid-column: 1 / -1; } }
@media (min-width: 75rem) { .why-grid { grid-template-columns: repeat(5, minmax(0, 1fr)); } .why-grid .card:last-child { grid-column: auto; } }
@keyframes faq-in { from { opacity: 0; transform: translateY(-.5rem); } }
.faq-foot { margin-top: 1.8rem; text-align: center; color: var(--ink-3); font-size: var(--fs-sm); }

/* ---------- Auth ---------- */
.auth { padding-block: clamp(1.5rem, 5vw, 4rem); }
.auth-in { display: grid; grid-template-columns: minmax(0, 1fr); gap: 2rem; align-items: start; }
@media (min-width: 62rem) { .auth-in { grid-template-columns: minmax(0, 1fr) minmax(0, 28rem); gap: 4.5rem; } }
.auth-side { display: grid; gap: 1.3rem; justify-items: start; min-width: 0; }
.auth-title { font-size: clamp(1.7rem, 1.2rem + 1.8vw, 2.3rem); line-height: 1.08; letter-spacing: -.04em; font-weight: 780; }
.auth-art { display: none; width: 100%; }
@media (min-width: 62rem) { .auth-art { display: grid; place-items: center; } }
.auth-art .scene { width: min(100%, 25rem); }
.auth-art .chip3d { display: none; }
.auth-panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; min-width: 0; }
.auth-card, .pane { min-width: 0; }
.auth-card, .pane { padding: clamp(1.4rem, 4vw, 2.2rem); }
.auth-card h2, .pane h2 { font-size: var(--fs-xl); }
.pane > .muted { margin-top: .5rem; font-size: var(--fs-sm); }
.auth-alt { margin-top: 1.3rem; text-align: center; color: var(--ink-2); font-size: var(--fs-sm); }
.tabs { display: flex; width: 100%; overflow-x: auto; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tab { flex: 1 0 auto; }
.js .pane { display: none; }
.js .pane.is-on { display: block; animation: pane-in .55s var(--ease); }
@keyframes pane-in { from { opacity: 0; transform: translateY(.8rem); } }
.prefill { display: flex; align-items: center; gap: .5rem; margin-top: 1rem; padding: .65rem .95rem; border-radius: var(--r-md); color: var(--ok); background: rgba(69, 230, 162, .1); border: 1px solid rgba(69, 230, 162, .35); font-size: var(--fs-sm); animation: alert-in .5s var(--spring); }

/* ---------- Result and error pages ---------- */
.status-page { padding-block: clamp(2rem, 7vw, 5rem); }
.status { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.1rem; padding: clamp(1.8rem, 5vw, 3.2rem); text-align: center; }
.status-ico { position: relative; width: 4.6rem; height: 4.6rem; display: grid; place-items: center; border-radius: 50%; color: var(--accent-text); background: var(--hover); border: 1px solid var(--line-2); box-shadow: 0 0 0 .6rem var(--hover), 0 18px 44px -12px var(--accent-glow); animation: pop .7s var(--spring) both; }
.status-ico .i { width: 2.1rem; height: 2.1rem; stroke-width: 2; }
.tone-success .status-ico { color: var(--ok); }
.tone-pending .status-ico { color: var(--warn); }
.tone-error .status-ico { color: var(--danger); box-shadow: 0 0 0 .6rem rgba(255, 131, 146, .08), 0 18px 44px -12px rgba(255, 131, 146, .4); }
.status-ico .draw, .guide-done .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s .35s var(--ease) forwards; }
.tone-pending .status-ico .i { animation: flip 3.2s var(--ease) infinite; }
@keyframes pop { from { opacity: 0; transform: scale(.5); } }
@keyframes flip { 0%, 55% { transform: rotate(0); } 85%, 100% { transform: rotate(180deg); } }
.status-code { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .2em; }
.status h1 { font-size: var(--fs-2xl); letter-spacing: -.03em; }
.status-msg { max-width: 32rem; color: var(--ink-2); }
.status-details { width: 100%; display: grid; gap: .2rem; text-align: left; }
.status-details div { display: flex; justify-content: space-between; gap: 1rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.status-details dt { color: var(--ink-3); }
.secret { width: 100%; display: grid; gap: .55rem; padding: 1rem; border-radius: var(--r-md); text-align: left; background: var(--field); border: 1px dashed var(--ring); }
.secret-label { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .08em; }
.secret-row { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; }
.secret-value { flex: 1 1 12rem; min-width: 0; padding: .65rem .85rem; border-radius: .65rem; background: var(--surface-3); color: var(--accent-text); font-size: .866rem; line-height: 1.5; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.status-note { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: var(--r-md); text-align: left; color: var(--warn); background: rgba(255, 195, 92, .08); border: 1px solid rgba(255, 195, 92, .32); font-size: var(--fs-sm); }
.status-note .i { margin-top: .12em; }
.status-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: .7rem; margin-top: .4rem; }

/* ---------- Account ---------- */
.dash { padding-block: clamp(1.5rem, 5vw, 3.5rem); }
.svc-list { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.4rem; }
.svc { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.5rem; padding: clamp(1.3rem, 3.5vw, 2rem); }
@media (min-width: 44rem) { .svc { grid-template-columns: auto minmax(0, 1fr); gap: 2.2rem; } }
.svc-ring, .claim-ring { position: relative; width: 9rem; height: 9rem; justify-self: center; }
.ring { width: 100%; height: 100%; overflow: visible; }
.ring-track { fill: none; stroke: var(--line-2); stroke-width: 7; }
.ring-bar { fill: none; stroke: url(#g-brand); stroke-width: 7; stroke-linecap: round; animation: ring-in 1.8s var(--ease) .2s both; }
@keyframes ring-in { from { stroke-dasharray: 0 100; } }
.ring-wait { stroke: var(--warn); animation: ring-wait 14s linear infinite; transform-origin: 60px 60px; }
@keyframes ring-wait { from { transform: rotate(-90deg); } to { transform: rotate(270deg); } }
.ring-center { position: absolute; inset: 0; display: grid; place-content: center; justify-items: center; gap: .15rem; text-align: center; }
.ring-center b { font-size: 1.5rem; font-weight: 790; line-height: 1; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ring-center span { color: var(--ink-3); font-size: var(--fs-xs); }
.ring-center .i { width: 1.8rem; height: 1.8rem; color: var(--warn); }
.svc-main { min-width: 0; }
.svc-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .8rem 1rem; }
.svc-head h2 { font-size: var(--fs-xl); }
.status-chip { display: inline-flex; align-items: center; gap: .5rem; padding: .28rem .85rem; border: 1px solid currentColor; border-radius: 99px; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 680; white-space: nowrap; }
.status-chip i { width: .5rem; height: .5rem; border-radius: 50%; background: currentColor; }
.status-chip.tone-active, .status-chip.tone-healthy { color: var(--ok); }
.status-chip.tone-pending, .status-chip.tone-stale { color: var(--warn); }
.status-chip.tone-abnormal { color: var(--danger); }
.status-chip.tone-expired, .status-chip.tone-unknown { color: var(--ink-3); }
.status-chip.tone-active i, .status-chip.tone-pending i, .status-chip.tone-abnormal i { animation: beacon 2.2s ease-out infinite; }
.svc-meta { display: grid; gap: 1.1rem 1.4rem; margin-top: 1.3rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
.svc-meta dt { display: flex; align-items: center; gap: .45rem; color: var(--ink-3); font-size: var(--fs-xs); }
.svc-meta dt .i { width: 1.05em; height: 1.05em; }
.svc-meta dd { margin-top: .3rem; font-weight: 620; font-variant-numeric: tabular-nums; }
.flow { display: flex; flex-wrap: wrap; gap: .6rem 1.5rem; margin-top: 1.4rem; padding: 1rem 1.15rem; border-radius: var(--r-md); background: var(--field); border: 1px solid var(--line); }
.flow li { display: flex; align-items: center; gap: .55rem; color: var(--ink-3); font-size: var(--fs-sm); }
.flow i { width: .8rem; height: .8rem; border-radius: 50%; border: 2px solid var(--line-2); flex: none; }
.flow .done { color: var(--ink-2); }
.flow .done i { background: var(--ok); border-color: var(--ok); }
.flow .now { color: var(--warn); font-weight: 650; }
.flow .now i { border-color: var(--warn); animation: beacon 2s ease-out infinite; color: var(--warn); }
.svc-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: .85rem; margin-top: 1.6rem; }
.svc-block h3 { display: flex; align-items: center; gap: .5rem; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 650; letter-spacing: .06em; }
.guide-links, .dev-list { display: grid; gap: .75rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.guide-link { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3.4rem; padding: .85rem 1.15rem; border-radius: var(--r-md); color: var(--ink); background: var(--field); border: 1px solid var(--line); font-weight: 620; transition: transform .35s var(--spring), border-color .25s, background-color .25s; }
.guide-link:hover { transform: translateY(-2px); border-color: var(--ring); background: var(--hover); text-decoration: none; }
.guide-link .i { color: var(--accent-text); transition: transform .35s var(--spring); }
.guide-link:hover .i { transform: translateX(4px); }
.dev { margin: 0; }
.dev-btn { width: 100%; display: flex; align-items: center; gap: .95rem; padding: .85rem 1.1rem; border-radius: var(--r-md); text-align: left; background: var(--field); border: 1px solid var(--line-2); transition: transform .35s var(--spring), border-color .25s, background-color .25s, box-shadow .3s; }
.dev-btn:hover { transform: translateY(-2px); border-color: var(--ring); background: var(--hover); box-shadow: 0 14px 30px -16px var(--accent-glow); }
.dev-btn:active { transform: scale(.98); }
.dev-ico { width: 2.7rem; height: 2.7rem; flex: none; display: grid; place-items: center; border-radius: .9rem; color: var(--on-accent); background: var(--grad-accent); box-shadow: 0 10px 22px -10px var(--accent-glow); }
.dev-txt { display: grid; flex: 1; min-width: 0; }
.dev-txt small { color: var(--ink-3); font-size: var(--fs-xs); }
.dev-go { color: var(--ink-3); transition: transform .4s var(--spring), color .25s; }
.dev-btn:hover .dev-go { transform: translateY(3px); color: var(--accent-text); }

/* ---------- Guide: the manual a customer follows step by step ---------- */
.guide { padding-block: 0; }
.crumbs a { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; padding: .45rem .2rem; color: var(--ink-2); font-size: var(--fs-sm); }
.crumbs a:hover { color: var(--ink); text-decoration: none; }
.crumbs .i { transition: transform .35s var(--spring); }
.crumbs a:hover .i { transform: translateX(-4px); }

.g-hero { position: relative; overflow: hidden; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: 1.2rem 1.8rem; margin-bottom: 1.4rem; padding: clamp(1.2rem, 3vw, 2rem); }
.g-hero > * { position: relative; z-index: 1; }
.g-hero::before { content: ""; position: absolute; inset: -40% -10% auto auto; width: 36rem; height: 22rem; z-index: 0; pointer-events: none; background: radial-gradient(closest-side, var(--spot), transparent 72%); }
.g-ico { width: 4.8rem; height: 4.8rem; display: grid; place-items: center; border-radius: 1.5rem; color: var(--on-accent); background: var(--grad-accent); box-shadow: 0 18px 40px -14px var(--accent-glow), 0 1px 0 rgba(255, 255, 255, .5) inset; animation: float 7s ease-in-out infinite; }
.g-ico .i { width: 2.2rem; height: 2.2rem; stroke-width: 1.9; }
.g-head { display: grid; gap: .75rem; justify-items: start; min-width: 0; }
.g-head h1 { font-size: var(--fs-2xl); letter-spacing: -.035em; }
.g-sub { max-width: 34rem; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.75; }
.g-links { display: flex; flex-wrap: wrap; gap: .6rem; }
.g-progress { display: grid; justify-items: center; gap: .5rem; text-align: center; }
.g-ring { position: relative; width: 6.4rem; height: 6.4rem; }
.g-ring .ring { width: 100%; height: 100%; }
.g-ring b { position: absolute; inset: 0; display: grid; place-items: center; font-size: 1.3rem; font-weight: 790; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.g-progress .ring-bar, .g-mini .ring-bar { animation: none; transition: stroke-dasharray .8s var(--ease); }
.g-count { color: var(--ink-2); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
@media (max-width: 44rem) {
  .g-hero { grid-template-columns: auto minmax(0, 1fr); }
  .g-progress { grid-column: 1 / -1; grid-template-columns: auto 1fr auto; justify-items: start; align-items: center; text-align: left; gap: .9rem; padding-top: 1rem; border-top: 1px dashed var(--line-2); }
  .g-ring { width: 4.2rem; height: 4.2rem; }
  .g-ring b { font-size: .95rem; }
  .g-ico { width: 3.6rem; height: 3.6rem; border-radius: 1.2rem; }
  .g-ico .i { width: 1.7rem; height: 1.7rem; }
}

.g-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (min-width: 75rem) {
  .g-layout { grid-template-columns: 15.5rem minmax(0, 1fr); gap: 2rem; }
  .g-main .gstep-text, .g-main .gtext { max-width: 46rem; }
  .g-side { position: sticky; top: calc(var(--top-h) + 1rem); display: grid; gap: .9rem; max-height: calc(100dvh - var(--top-h) - 2rem); }
  .g-toc { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; }
  .g-bar { display: none !important; }
}
.g-side { display: grid; gap: .8rem; min-width: 0; }
.g-toc { border: 1px solid var(--line); border-radius: var(--r-lg); background: var(--field); }
.g-toc > summary { display: flex; align-items: center; gap: .6rem; min-height: 3rem; padding: .6rem 1rem; font-weight: 650; cursor: pointer; list-style: none; }
.g-toc > summary::-webkit-details-marker { display: none; }
.g-toc > summary .g-sum { margin-left: auto; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 500; font-variant-numeric: tabular-nums; }
.g-toc > summary .i { color: var(--ink-3); transition: transform .45s var(--spring); }
.g-toc[open] > summary .i { transform: rotate(180deg); }
@media (min-width: 75rem) { .g-toc > summary { cursor: default; pointer-events: none; } .g-toc > summary .i { display: none; } }
.g-steps { display: grid; gap: .1rem; padding: 0 .5rem .5rem; }
.g-link { display: flex; align-items: center; gap: .7rem; min-height: 2.75rem; padding: .35rem .6rem; border-radius: var(--r-md); color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.4; transition: color .2s, background-color .25s; }
.g-link:hover { color: var(--ink); background: var(--hover); text-decoration: none; }
.g-extra { margin: 0 .5rem .5rem; }
.g-n { flex: none; width: 1.7rem; height: 1.7rem; display: grid; place-items: center; border-radius: 50%; border: 1.5px solid var(--line-2); color: var(--ink-3); font-size: var(--fs-xs); font-weight: 700; font-variant-numeric: tabular-nums; transition: background-color .3s, border-color .3s, color .3s; }
.g-n .i { width: .95rem; height: .95rem; }
.g-t { min-width: 0; overflow: hidden; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; }
.g-link.is-done .g-n { color: var(--on-accent); background: var(--ok); border-color: var(--ok); font-size: 0; }
.g-link.is-done .g-n::before { content: ""; width: .5rem; height: .28rem; margin-top: -.12rem; border-left: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); }
.g-link.is-done .g-t { color: var(--ink-3); }
.g-link.is-now { color: var(--ink); background: linear-gradient(90deg, var(--hover), transparent 92%); box-shadow: inset 0 0 0 1px var(--line-2); }
.g-link.is-now .g-n { color: var(--on-accent); background: var(--grad-accent); border-color: transparent; }
.g-link.is-spy:not(.is-now) { background: var(--hover); }
.g-help { font-size: var(--fs-sm); }

.g-bar { position: sticky; top: calc(var(--top-h) + .35rem); z-index: 6; display: flex; align-items: center; gap: .8rem; margin-bottom: .9rem; padding: .35rem .5rem .35rem .85rem; border-radius: 999px; background: var(--glass); border: 1px solid var(--line-2); box-shadow: var(--sh-3); -webkit-backdrop-filter: blur(16px) saturate(1.5); backdrop-filter: blur(16px) saturate(1.5); }
.g-bar[hidden] { display: none; }
.g-mini { width: 1.9rem; height: 1.9rem; flex: none; }
.g-mini .ring { width: 100%; height: 100%; }
.g-bar-text { flex: 1; min-width: 0; font-size: var(--fs-sm); font-weight: 650; font-variant-numeric: tabular-nums; }

.guide-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; }
.gstep { position: relative; display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: .4rem 1.1rem; align-items: start; padding: 1.25rem 1.3rem; scroll-margin-top: calc(var(--top-h) + 4.5rem); transition: opacity .4s, box-shadow .4s var(--ease), border-color .4s; }
.gstep-no { position: relative; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; color: var(--ink-2); background: var(--hover); border: 1px solid var(--line-2); transition: background .4s, color .4s, border-color .4s, transform .5s var(--spring); }
.gstep-no b { font-size: 1.05rem; font-weight: 780; font-variant-numeric: tabular-nums; transition: opacity .25s, transform .4s var(--spring); }
.gstep-no .i { position: absolute; width: 1.4rem; height: 1.4rem; stroke-width: 2.6; opacity: 0; transform: scale(.4); transition: opacity .25s, transform .5s var(--spring); }
.gstep-text p { padding-top: .5rem; font-size: 1rem; line-height: 1.9; }
.gstep-act { grid-column: 2 / -1; display: none; padding-top: .5rem; }
.gstep.is-now { border-color: var(--accent); box-shadow: 0 0 0 1px var(--ring), 0 28px 64px -28px var(--accent-glow), var(--sh-2); }
.gstep.is-now .gstep-no { color: var(--on-accent); background: var(--grad-accent); border-color: transparent; box-shadow: 0 12px 26px -10px var(--accent-glow); transform: scale(1.06); }
.gstep.is-now .gstep-act { display: block; }
.gstep.is-done { opacity: .62; }
.gstep.is-done .gstep-no { color: var(--on-accent); background: var(--ok); border-color: transparent; }
.gstep.is-done .gstep-no b { opacity: 0; transform: scale(.4); }
.gstep.is-done .gstep-no .i { opacity: 1; transform: none; }
.gstep.is-done:hover, .gstep.is-done:focus-within { opacity: 1; }
.ui-label { display: inline-block; margin-inline: .08em; padding: .02rem .5rem; border-radius: .5rem; background: var(--hover); border: 1px solid var(--line-2); color: var(--accent-text); font-weight: 650; line-height: 1.6; }
.gtext { color: var(--ink-2); font-size: 1rem; line-height: 1.9; padding-inline: .3rem; }
.gnote { display: flex; align-items: flex-start; gap: .75rem; padding: .95rem 1.15rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--hover); font-size: var(--fs-sm); line-height: 1.75; }
.gnote .i { margin-top: .15em; color: var(--accent-text); }
.gnote[data-kind="warn"] { color: var(--warn); background: rgba(255, 195, 92, .08); border-color: rgba(255, 195, 92, .38); }
.gnote[data-kind="warn"] .i { color: var(--warn); }
.gnote p { color: inherit; }
/* On phones the text gets the whole row: the number tile toggles a step, and the box only appears on finished steps to undo them. */
@media (max-width: 36rem) {
  .gstep { grid-template-columns: auto minmax(0, 1fr); gap: .3rem .8rem; padding: 1rem; }
  .gstep-no { width: 2.5rem; height: 2.5rem; border-radius: .85rem; }
  .gstep-text p { padding-top: .35rem; }
  .gstep:not(.is-done) .gcheck { display: none; }
  .gstep .gcheck { grid-column: 2; justify-self: start; }
  .gstep-act { grid-column: 1 / -1; }
}
.js .gstep-no { cursor: pointer; }
.js .gstep-no:hover { border-color: var(--ring); }
.gcheck { position: relative; display: grid; place-items: center; width: 2.75rem; height: 2.75rem; cursor: pointer; }
.gcheck input { position: absolute; inset: 0; margin: 0; opacity: 0; cursor: pointer; }
.gcheck .box { width: 1.9rem; height: 1.9rem; display: grid; place-items: center; border-radius: .6rem; border: 2px solid var(--line-2); color: transparent; transition: background-color .25s, border-color .25s, color .25s, transform .4s var(--spring); }
.gcheck .box .i { width: 1.1rem; height: 1.1rem; stroke-width: 2.6; }
.gcheck input:checked + .box { background: var(--grad-accent); border-color: transparent; color: var(--on-accent); transform: scale(1.08); }
.gcheck input:focus-visible + .box { outline: 2px solid var(--accent-text); outline-offset: 3px; }

.guide-done { display: flex; flex-wrap: wrap; align-items: center; gap: 1.2rem; margin-top: .4rem; padding: 1.5rem; border-color: rgba(69, 230, 162, .4); background: linear-gradient(120deg, rgba(69, 230, 162, .1), transparent 60%), linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 62%); animation: modal-in .7s var(--spring); }
.guide-done > .i { width: 3.4rem; height: 3.4rem; padding: .8rem; border-radius: 50%; color: var(--ok); background: rgba(69, 230, 162, .12); border: 1px solid rgba(69, 230, 162, .4); stroke-width: 2.4; }
.guide-done > div:not(.guide-done-actions) { display: grid; gap: .35rem; flex: 1 1 14rem; min-width: 0; }
.guide-done h2 { font-size: var(--fs-xl); }
.guide-done .muted { font-size: var(--fs-sm); }
.guide-done .draw { stroke-dasharray: 1; stroke-dashoffset: 1; animation: draw .8s .2s var(--ease) forwards; }
.guide-done-actions { display: flex; flex-wrap: wrap; gap: .6rem; }

/* Daily fixes: symptoms, what to do, how to tell it worked, when to stop. */
.g-rec { display: grid; gap: 1.1rem; margin-top: 1.8rem; padding: clamp(1.1rem, 3vw, 1.6rem); border-radius: var(--r-lg); border: 1px solid var(--line-2); background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 70%); scroll-margin-top: calc(var(--top-h) + 1rem); }
.g-rec-head { display: flex; align-items: flex-start; gap: 1rem; }
.g-rec-head > div { display: grid; gap: .35rem; min-width: 0; }
.g-rec-head h2 { font-size: var(--fs-xl); letter-spacing: -.02em; }
.g-rec-head .muted { font-size: var(--fs-sm); line-height: 1.7; }
.g-rec-ico { flex: none; width: 2.8rem; height: 2.8rem; display: grid; place-items: center; border-radius: .95rem; color: var(--warn); background: rgba(255, 195, 92, .1); border: 1px solid rgba(255, 195, 92, .4); }
.recs { display: grid; gap: .6rem; }
.rec { display: flex; align-items: flex-start; gap: .8rem; padding: .85rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--field); }
.rec-text { min-width: 0; flex: 1; color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.8; }
.rec-dot { flex: none; width: .55rem; height: .55rem; margin-top: .6rem; border-radius: 50%; background: var(--warn); }
.rec-tag { flex: none; min-width: 4.6rem; padding: .12rem .6rem; border-radius: 99px; text-align: center; color: var(--ink-2); background: var(--hover); border: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 700; letter-spacing: .06em; }
.rec-tag[data-tag="症状"], .rec-tag[data-tag="停止条件"], .rec-tag[data-tag="联系支持"] { color: var(--warn); background: rgba(255, 195, 92, .09); border-color: rgba(255, 195, 92, .4); }
.rec-tag[data-tag="操作"] { color: var(--accent-text); }
.rec-tag[data-tag="成功标志"] { color: var(--ok); background: rgba(69, 230, 162, .08); border-color: rgba(69, 230, 162, .4); }
@media (max-width: 36rem) { .rec { flex-wrap: wrap; } .rec-text { flex-basis: 100%; } }

@media print {
  .g-side, .g-bar, .g-links, .g-progress, .gcheck, .gstep-act, .guide-done { display: none !important; }
  .g-layout { display: block; }
  .gstep, .g-rec, .rec { break-inside: avoid; opacity: 1 !important; }
}

.burst { position: fixed; left: 0; top: 0; width: 0; height: 0; z-index: 95; pointer-events: none; }
.burst i { position: absolute; width: .5rem; height: .9rem; border-radius: .15rem; background: var(--accent); opacity: 0; animation: confetti 1.3s var(--ease) forwards; }
@keyframes confetti { 0% { opacity: 1; transform: translate(0, 0) rotate(0); } 100% { opacity: 0; transform: translate(var(--bx, 0), var(--by, 0)) rotate(var(--br, 360deg)); } }

/* ---------- Device configuration claim ---------- */
.claim-page { padding-block: clamp(2rem, 7vw, 5rem); }
.claim { display: grid; grid-template-columns: minmax(0, 1fr); justify-items: center; gap: 1.2rem; padding: clamp(1.8rem, 5vw, 3rem); text-align: center; }
.claim-ring { width: 10.5rem; height: 10.5rem; }
.claim h1 { font-size: var(--fs-2xl); letter-spacing: -.035em; }
.claim-lead { max-width: 30rem; color: var(--ink-2); }
.claim form { width: 100%; max-width: 24rem; margin: 0; }
.claim-notes { display: grid; gap: .65rem; text-align: left; color: var(--ink-2); font-size: var(--fs-sm); }
.claim-notes li { display: flex; align-items: flex-start; gap: .65rem; }
.claim-notes .i { margin-top: .15em; color: var(--accent-text); }
.claim .ring-bar { animation: none; }
.claim.is-counting .ring-bar { animation: drain linear forwards; }
@keyframes drain { to { stroke-dasharray: 0 100; } }
.claim.is-low .ring-bar { stroke: var(--warn); }
.claim.is-expired .ring-bar, .claim.is-done .ring-bar { stroke: var(--line-2); }
.claim.is-expired .ring-center b { color: var(--ink-3); }
.claim.is-done .claim-ring { animation: pop .6s var(--spring); }

/* ---------- Operator console ---------- */
.search { position: relative; flex: 1 1 16rem; max-width: 26rem; }
.search .i { position: absolute; left: 1.05rem; top: 50%; translate: 0 -50%; color: var(--ink-3); pointer-events: none; }
.search input { width: 100%; min-height: 2.9rem; padding: .6rem 1rem .6rem 2.8rem; border-radius: 99px; background: var(--field); border: 1px solid var(--line-2); color: var(--ink); transition: border-color .2s, box-shadow .25s var(--ease); }
.search input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.chip { min-height: 2.75rem; padding: .45rem 1.05rem; border: 1px solid var(--line-2); border-radius: 99px; background: transparent; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; transition: background-color .25s, color .25s, border-color .25s, transform .35s var(--spring); }
.chip:hover { color: var(--ink); border-color: var(--ring); }
.chip:active { transform: scale(.94); }
.chip.is-on { color: var(--on-accent); background: var(--grad-accent); border-color: transparent; }
.digest { color: var(--accent-text); font-size: .809rem; }
.is-warn { color: var(--warn); }
.is-danger { color: var(--danger); }

/* The support portal and console use the same form, timeline and responsive layout. */
.support-page { display: grid; gap: 1.2rem; align-content: start; }
.support-card { padding: clamp(1rem, 4vw, 1.6rem); display: grid; gap: .75rem; min-width: 0; }
.support-card code, .support-card dd { overflow-wrap: anywhere; }
.support-card details { border-top: 1px solid var(--line); padding-block: .65rem; }
.support-card summary { cursor: pointer; font-weight: 650; }
.support-links { display: flex; gap: 1rem; flex-wrap: wrap; }
.support-form { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 13rem), 1fr)); align-items: end; gap: .85rem; }
.support-form label { display: grid; align-content: start; gap: .35rem; min-width: 0; }
.support-form input:not([type=checkbox]), .support-form select {
  width: 100%; min-height: 2.65rem; padding: .45rem .65rem; border: 1px solid var(--line-2);
  background: var(--field); color: var(--ink); border-radius: .45rem;
}
.support-form input[type=checkbox] { justify-self: start; }
.support-form [role=status] { grid-column: 1 / -1; }
.support-events { display: grid; gap: .5rem; list-style: none; padding: 0; }
.support-events li { padding: .7rem; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.support-events time { color: var(--ink-3); font-size: var(--fs-sm); }

/* ============================================================
   Console components: shared by the operator console and the customer centre.
   Tones are set with data-tone="ok|warn|danger|info|muted" so they never collide with text colour helpers.
   ============================================================ */
.page { width: 100%; max-width: var(--shoulder); margin-inline: auto; padding: clamp(1.2rem, 3vw, 2.2rem) var(--gut) 2rem; }
.ph { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 1rem 1.5rem; margin-bottom: clamp(1.2rem, 3vw, 1.9rem); }
.ph-text { display: grid; gap: .5rem; min-width: 0; max-width: 46rem; }
.ph-eyebrow { display: inline-flex; align-items: center; gap: .55rem; color: var(--accent-text); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .14em; }
.ph h1 { font-size: var(--fs-2xl); letter-spacing: -.035em; }
.ph-sub { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }
.ph-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }
.back { display: inline-flex; align-items: center; gap: .45rem; min-height: 2.75rem; color: var(--ink-2); font-size: var(--fs-sm); }
.back:hover { color: var(--ink); text-decoration: none; }
.back .i { transition: transform .35s var(--spring); }
.back:hover .i { transform: translateX(-4px); }

.kpis { display: grid; gap: 1rem; margin-bottom: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12.5rem), 1fr)); }
.kpi { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .15rem 1rem; padding: 1.15rem 1.3rem; color: var(--ink); }
a.kpi:hover { text-decoration: none; }
.kpi-ico { grid-row: span 2; width: 3rem; height: 3rem; display: grid; place-items: center; border-radius: 1rem; color: var(--accent-text); background: var(--hover); border: 1px solid var(--line-2); transition: transform .45s var(--spring); }
a.kpi:hover .kpi-ico { transform: translateY(-2px) rotate(-6deg); }
.kpi b { font-size: 1.75rem; font-weight: 790; line-height: 1.05; letter-spacing: -.04em; font-variant-numeric: tabular-nums; }
.kpi-l { color: var(--ink-2); font-size: var(--fs-sm); }
.kpi-go { display: inline-flex; align-items: center; gap: .3rem; grid-column: 2; margin-top: .25rem; color: var(--ink-3); font-size: var(--fs-xs); transition: color .25s; }
.kpi-go .i { width: 1em; height: 1em; transition: transform .35s var(--spring); }
a.kpi:hover .kpi-go { color: var(--accent-text); }
a.kpi:hover .kpi-go .i { transform: translateX(3px); }
.kpi[data-tone="ok"] .kpi-ico { color: var(--ok); border-color: rgba(69, 230, 162, .4); background: rgba(69, 230, 162, .08); }
.kpi[data-tone="warn"] .kpi-ico { color: var(--warn); border-color: rgba(255, 195, 92, .45); background: rgba(255, 195, 92, .09); }
.kpi[data-tone="warn"] b { color: var(--warn); }
.kpi[data-tone="danger"] .kpi-ico { color: var(--danger); border-color: rgba(255, 131, 146, .45); background: rgba(255, 131, 146, .09); }
.kpi[data-tone="danger"] b { color: var(--danger); }
.kpi-label { margin: 1.6rem 0 .8rem; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .14em; }

.panel { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.1rem; min-width: 0; padding: clamp(1.1rem, 2.6vw, 1.6rem); align-content: start; }
.panel + .panel, .panel-gap { margin-top: 1.2rem; }
.panel-h { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.panel-h h2, .panel-h h3 { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-lg); letter-spacing: -.02em; }
.panel-h h2 .i, .panel-h h3 .i { color: var(--accent-text); }
.panel-h p { color: var(--ink-3); font-size: var(--fs-sm); }
.cols { display: grid; gap: 1.2rem; align-items: start; grid-template-columns: repeat(auto-fit, minmax(min(100%, 26rem), 1fr)); }
.cols > .panel + .panel { margin-top: 0; }
@media (min-width: 70rem) { .cols-3-2 { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); } .cols-2-3 { grid-template-columns: minmax(0, 2fr) minmax(0, 3fr); } }

.tbl-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); }
.tbl { width: 100%; border-collapse: collapse; font-size: var(--fs-sm); }
.tbl th { padding: .75rem 1rem; text-align: left; color: var(--ink-3); background: var(--hover); border-bottom: 1px solid var(--line-2); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .06em; white-space: nowrap; }
.tbl td { padding: .8rem 1rem; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tbody tr { transition: background-color .2s; }
.tbl tbody tr:hover { background: var(--hover); }
.tbl tbody tr:last-child td { border-bottom: 0; }
.tbl .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.tbl .act { text-align: right; white-space: nowrap; }
.tbl .strong { font-weight: 650; color: var(--ink); }
.tbl-note { margin-top: -.3rem; color: var(--ink-3); font-size: var(--fs-xs); }
@media (max-width: 44rem) {
  .tbl.stack thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .tbl.stack, .tbl.stack tbody, .tbl.stack tr, .tbl.stack td { display: block; }
  .tbl.stack tr { padding: .75rem 1rem; border-bottom: 1px solid var(--line); }
  .tbl.stack tr:last-child { border-bottom: 0; }
  .tbl.stack td { display: flex; align-items: center; justify-content: space-between; gap: 1rem; padding: .3rem 0; border: 0; text-align: right; }
  .tbl.stack td::before { content: attr(data-label); flex: none; color: var(--ink-3); font-size: var(--fs-xs); text-align: left; }
  .tbl.stack td.act { justify-content: flex-end; padding-top: .55rem; }
  .tbl.stack td.act::before { content: none; }
  .tbl.stack td[colspan] { display: block; text-align: center; }
  .tbl.stack td[colspan]::before { content: none; }
}

.pill { display: inline-flex; align-items: center; gap: .4rem; padding: .18rem .7rem; border-radius: 99px; border: 1px solid var(--line-2); background: var(--hover); color: var(--ink-2); font-size: var(--fs-xs); font-weight: 650; line-height: 1.5; white-space: nowrap; }
.pill::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; flex: none; }
.pill[data-tone="ok"] { color: var(--ok); border-color: rgba(69, 230, 162, .42); background: rgba(69, 230, 162, .08); }
.pill[data-tone="warn"] { color: var(--warn); border-color: rgba(255, 195, 92, .45); background: rgba(255, 195, 92, .09); }
.pill[data-tone="danger"] { color: var(--danger); border-color: rgba(255, 131, 146, .45); background: rgba(255, 131, 146, .09); }
.pill[data-tone="info"] { color: var(--info); border-color: rgba(124, 188, 255, .42); background: rgba(124, 188, 255, .09); }
.pill[data-tone="muted"] { color: var(--ink-3); }
.pill[data-live]::before { animation: beacon 2.2s ease-out infinite; }
.pill-plain::before { display: none; }

.kv { display: grid; grid-template-columns: minmax(0, 1fr); }
.kv > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .15rem 1.2rem; padding: .65rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); }
.kv > div:last-child { border-bottom: 0; }
.kv dt { flex: 0 1 auto; color: var(--ink-3); }
.kv dd { min-width: 0; margin-left: auto; text-align: right; font-weight: 600; overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.kv-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); column-gap: 2rem; }
@media (min-width: 44.01rem) {
  .kv-grid > div { flex-direction: column; flex-wrap: nowrap; justify-content: flex-start; align-items: flex-start; }
  .kv-grid dd { max-width: 100%; margin-left: 0; text-align: left; }
}
.hash { display: inline-flex; align-items: center; gap: .35rem; max-width: 100%; padding: .12rem .2rem .12rem .6rem; border-radius: .55rem; background: var(--surface-3); color: var(--accent-text); font-family: var(--font-mono); font-size: .78rem; line-height: 1.5; }
.hash code { max-width: min(14rem, 100%); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hash button { flex: none; display: inline-grid; place-items: center; width: 2.75rem; height: 2.75rem; margin: -.8rem -.5rem -.8rem -.2rem; padding: 0; border: 0; border-radius: .6rem; background: transparent; color: var(--ink-3); transition: color .2s, background-color .2s; }
.hash button:hover { color: var(--ink); background: var(--hover); }
.hash button .i { width: 1rem; height: 1rem; }
.hash:not(:has(button)) { padding-right: .6rem; }
.mono { font-family: var(--font-mono); font-size: max(.75rem, .9em); }

/* Forms: one compact field family for every console form. */
.fgrid { display: grid; gap: 1rem; align-items: end; grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.fx { display: grid; gap: .4rem; align-content: start; min-width: 0; font-size: var(--fs-sm); }
/* Notes under the boxes differ in length, so neighbouring fields line up from their labels down. */
.fgrid > .fx, .fgrid > .digest { align-self: start; }
.fx > span:first-child { color: var(--ink-2); font-weight: 620; }
.fx small { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.5; }
.fx input:not([type="checkbox"]):not([type="radio"]):not([type="file"]), .fx select, .fx textarea {
  width: 100%; min-width: 0; min-height: 2.9rem; padding: .55rem .9rem; border-radius: var(--r-md); border: 1px solid var(--line-2);
  background: var(--field); color: var(--ink); font-size: .9rem; line-height: 1.4; appearance: none; -webkit-appearance: none;
  transition: border-color .2s, box-shadow .25s var(--ease), background-color .2s;
}
.fx textarea { min-height: 7.5rem; line-height: 1.65; resize: vertical; }
.fx textarea.mono { font-size: .82rem; line-height: 1.7; }
.fx input:hover, .fx select:hover, .fx textarea:hover { border-color: var(--ring); }
.fx input:focus, .fx select:focus, .fx textarea:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.fx input[readonly] { color: var(--ink-2); background: var(--hover); }
.fx-wide { grid-column: 1 / -1; }
.fx-actions { display: flex; flex-wrap: wrap; align-items: center; gap: .7rem; grid-column: 1 / -1; }
.sel { position: relative; display: block; }
.sel select { padding-right: 2.6rem; cursor: pointer; }
.sel::after { content: ""; position: absolute; right: 1.1rem; top: 50%; width: .5rem; height: .5rem; margin-top: -.38rem; border-right: 2px solid var(--ink-3); border-bottom: 2px solid var(--ink-3); transform: rotate(45deg); pointer-events: none; transition: border-color .2s; }
.sel:focus-within::after { border-color: var(--accent-text); }
.cx { display: flex; align-items: flex-start; gap: .7rem; font-size: var(--fs-sm); line-height: 1.6; cursor: pointer; }
.cx input { flex: none; width: 1.2rem; height: 1.2rem; margin: .15rem 0 0; accent-color: var(--accent); }
.tog { display: grid; gap: .4rem; margin: 0; padding: 0; border: 0; min-width: 0; }
.tog legend { padding: 0; margin-bottom: .4rem; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 620; }
.tog-row { display: inline-grid; grid-auto-flow: column; grid-auto-columns: 1fr; gap: .2rem; padding: .25rem; width: fit-content; border-radius: 999px; background: var(--field); border: 1px solid var(--line-2); }
.tog label { position: relative; display: block; cursor: pointer; }
.tog input { position: absolute; inset: 0; opacity: 0; margin: 0; cursor: pointer; }
.tog label span { display: grid; place-items: center; min-height: 2.75rem; padding: .3rem 1.3rem; border-radius: 999px; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; transition: background-color .3s, color .3s, box-shadow .3s; }
.tog input:checked + span { color: var(--on-accent); background: var(--grad-accent); box-shadow: 0 8px 18px -8px var(--accent-glow); }
.tog input:focus-visible + span { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.drop { position: relative; display: grid; gap: .3rem; justify-items: center; padding: 1.4rem 1rem; border: 1.5px dashed var(--line-2); border-radius: var(--r-md); background: var(--field); color: var(--ink-2); text-align: center; cursor: pointer; transition: border-color .25s, background-color .25s; }
.drop:hover, .drop:focus-within { border-color: var(--accent); background: var(--hover); }
.drop input { position: absolute; inset: 0; opacity: 0; cursor: pointer; }
.drop .i { width: 1.6rem; height: 1.6rem; color: var(--accent-text); }
.drop small { color: var(--ink-3); }
.drop-name { color: var(--ok); font-weight: 650; }

/* Pipeline: a row of stages, each done, current or waiting. */
.pipe { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .5rem; }
.pipe li { position: relative; display: grid; gap: .15rem; align-content: start; padding-top: 1.7rem; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.5; }
.pipe li::before { content: ""; position: absolute; top: .42rem; left: .9rem; right: -.5rem; height: 2px; background: var(--line-2); }
.pipe li:last-child::before { display: none; }
.pipe li::after { content: ""; position: absolute; top: 0; left: 0; width: .9rem; height: .9rem; border-radius: 50%; border: 2px solid var(--line-2); background: var(--bg); }
.pipe b { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; }
.pipe li.done::before { background: var(--ok); }
.pipe li.done::after { background: var(--ok); border-color: var(--ok); }
.pipe li.done b { color: var(--ink); }
.pipe li.now::after { border-color: var(--warn); background: var(--warn); animation: beacon 2s ease-out infinite; color: var(--warn); }
.pipe li.now b { color: var(--warn); }
.pipe li.fail::after { border-color: var(--danger); background: var(--danger); }
.pipe li.fail b { color: var(--danger); }
@media (max-width: 44rem) {
  .pipe { grid-auto-flow: row; gap: 0; }
  .pipe li { padding: 0 0 1.1rem 1.8rem; }
  .pipe li::before { top: .9rem; bottom: -.1rem; left: .38rem; right: auto; width: 2px; height: auto; }
}

.bar { display: block; width: 100%; height: .5rem; }
.bar-bg { fill: var(--line-2); }
.bar-fg { fill: url(#g-brand); transform-box: fill-box; transform-origin: 0 50%; animation: bar-grow 1.2s var(--ease) both; }
@keyframes bar-grow { from { transform: scaleX(0); } }

.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1.1rem; }
.toolbar .search { margin: 0; }
a.chip { display: inline-flex; align-items: center; }
a.chip:hover { text-decoration: none; }
.chip[aria-current="page"], .chip[aria-current="true"] { color: var(--on-accent); background: var(--grad-accent); border-color: transparent; }

.rows { display: grid; gap: .6rem; }
.rw { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .25rem 1rem; padding: .85rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--field); transition: border-color .25s, background-color .25s, transform .35s var(--spring); }
.rw:hover { border-color: var(--ring); }
.rw-ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .85rem; color: var(--accent-text); background: var(--hover); border: 1px solid var(--line-2); }
.rw-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: .1rem; min-width: 0; }
.rw-main b { font-weight: 650; }
.rw-main small { color: var(--ink-3); font-size: var(--fs-xs); }
.rw-end { display: flex; align-items: center; gap: .6rem; flex-wrap: wrap; justify-content: flex-end; }
.rw.is-new { border-color: rgba(255, 184, 77, .38); }
.rw.is-new .rw-main b::after { content: ""; display: inline-block; width: .5rem; height: .5rem; margin-left: .5rem; border-radius: 50%; background: var(--accent); box-shadow: 0 0 10px var(--accent-glow); vertical-align: middle; }
@media (max-width: 36rem) { .rw { grid-template-columns: auto minmax(0, 1fr); } .rw-end { grid-column: 1 / -1; justify-content: flex-start; } }
.nada { display: grid; justify-items: center; gap: .6rem; padding: 2.4rem 1rem; color: var(--ink-3); text-align: center; }
.nada .i { width: 2rem; height: 2rem; color: var(--ink-3); opacity: .8; }
.pager { display: flex; justify-content: center; margin-top: 1.2rem; }
.note-line { display: flex; align-items: flex-start; gap: .6rem; padding: .85rem 1rem; border-radius: var(--r-md); color: var(--ink-2); background: var(--hover); border: 1px solid var(--line); font-size: var(--fs-sm); line-height: 1.6; }
.note-line .i { margin-top: .12em; color: var(--accent-text); }
.note-line[data-tone="warn"] { color: var(--warn); background: rgba(255, 195, 92, .08); border-color: rgba(255, 195, 92, .32); }
.note-line[data-tone="warn"] .i { color: var(--warn); }
.fold { border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); }
.fold > summary { display: flex; align-items: center; justify-content: space-between; gap: 1rem; min-height: 3rem; padding: .7rem 1.1rem; font-weight: 640; cursor: pointer; list-style: none; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary .i { color: var(--ink-3); transition: transform .45s var(--spring), color .3s; }
.fold[open] > summary .i { transform: rotate(180deg); color: var(--accent-text); }
.fold-body { display: grid; gap: 1rem; padding: .2rem 1.1rem 1.2rem; animation: faq-in .45s var(--ease); }
.pre { margin: 0; padding: 1rem; overflow: auto; max-height: 22rem; border-radius: var(--r-md); background: var(--surface-3); color: var(--ink-2); font-family: var(--font-mono); font-size: .78rem; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; }
.big { font-size: clamp(1.5rem, 1.2rem + 1vw, 2rem); font-weight: 790; letter-spacing: -.04em; line-height: 1.1; font-variant-numeric: tabular-nums; }
.inline-form { display: inline; margin: 0; }
.stack-gap { display: grid; gap: 1rem; }
.receipts { display: flex; flex-wrap: wrap; gap: 1rem 3rem; }
.kpi b.kpi-text { font-size: .98rem; font-weight: 680; line-height: 1.4; letter-spacing: -.01em; }
.btn.danger { color: var(--danger); border-color: rgba(255, 131, 146, .4); }
.btn.danger:hover { background: rgba(255, 131, 146, .1); border-color: var(--danger); }
.fold-card { display: grid; gap: .7rem; padding: 1rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--field); }
.rev-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.rev-head h3 { font-size: 1rem; overflow-wrap: anywhere; }
.rev-meta { color: var(--ink-3); font-size: var(--fs-xs); }
.fin-groups { display: grid; gap: 1.4rem 2.2rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 17rem), 1fr)); }
.fin-h { display: flex; align-items: center; gap: .5rem; color: var(--ink-3); font-size: var(--fs-sm); font-weight: 650; letter-spacing: .06em; }
.fin-h .i { color: var(--accent-text); width: 1.05em; height: 1.05em; }
.fin-group .kv { margin-top: .5rem; }
.big-l { display: block; margin-top: .25rem; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 500; letter-spacing: .08em; text-align: right; }
.funnel { display: grid; gap: 1.1rem; }
.funnel li { display: grid; gap: .5rem; }
.funnel p { font-size: var(--fs-sm); color: var(--ink-2); }
.gauges { display: grid; gap: 1.4rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 12rem), 1fr)); align-content: start; }
.gauge-item { display: grid; justify-items: center; gap: .7rem; text-align: center; font-size: var(--fs-sm); color: var(--ink-2); }
.gauge { position: relative; width: 7.5rem; height: 7.5rem; }
.gauge .ring { width: 100%; height: 100%; }
.gauge-c { position: absolute; inset: 0; display: grid; place-items: center; }
.gauge-c b { font-size: 1.35rem; font-weight: 790; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .4rem; }
.sub { display: grid; gap: .15rem; font-size: var(--fs-sm); }
.sub span { white-space: nowrap; }
.sub .muted { color: var(--ink-3); font-size: var(--fs-xs); }
.tbl .hash code { max-width: 9rem; }
.tbl td.act { white-space: normal; }
@media (max-width: 44rem) { .tbl.stack td .acts { justify-content: flex-end; } .tbl.stack .hash code { max-width: 12rem; } }
.form.form-flat { margin-top: 0; }
.mail-steps { display: grid; gap: 1.4rem; counter-reset: ms; }
.mail-steps li { display: grid; gap: .9rem; padding-top: 1.2rem; border-top: 1px dashed var(--line-2); }
.mail-steps li:first-child { padding-top: 0; border-top: 0; }
.mail-steps h3 { display: flex; align-items: center; gap: .65rem; font-size: var(--fs-sm); font-weight: 650; color: var(--ink-2); }
.step-n { width: 1.6rem; height: 1.6rem; display: inline-grid; place-items: center; border-radius: 50%; color: var(--on-accent); background: var(--grad-accent); font-size: var(--fs-xs); font-weight: 780; }
.refcode { display: grid; gap: .8rem; justify-items: start; }
.refcode .fx { width: 100%; }
.refcode input { font-family: var(--font-mono); font-size: 1.05rem; letter-spacing: .08em; }
.kv .hash code { max-width: 14rem; }
/* Device cards on the account page */
.dev-list { grid-template-columns: repeat(auto-fill, minmax(min(100%, 17rem), 1fr)); }
.dev-card { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: center; gap: .7rem .9rem; padding: .95rem 1.05rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--field); transition: border-color .25s, transform .35s var(--spring); }
.dev-card:hover { border-color: var(--ring); }
.dev-card .dev-ico { width: 2.7rem; height: 2.7rem; display: grid; place-items: center; border-radius: .9rem; color: var(--on-accent); background: var(--grad-accent); box-shadow: 0 10px 22px -10px var(--accent-glow); }
.dev-card[data-state="revoked"] .dev-ico, .dev-card[data-state="cancelled"] .dev-ico { filter: grayscale(1); opacity: .55; }
.dev-card .dev-txt { display: grid; gap: .3rem; justify-items: start; min-width: 0; }
.dev-acts { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: .4rem; }
.dev-acts form { display: contents; }
.dev-add { grid-template-columns: minmax(0, 1fr); align-content: start; border-style: dashed; }

/* Links that stand alone in a heading, a table cell or a row keep a full-size tap target. */
.panel-h h2 a, .rw-main b a, .tbl td a:not(.btn):not(.pill), .svc-head h2 a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.rw-end { min-width: 0; }
.rw-end .hash code { max-width: 9rem; }
.rw-main b a { overflow-wrap: anywhere; }

/* Quick jump palette (operator console) */
.modal.palette { width: min(34rem, calc(100% - 2rem)); margin: 12dvh auto auto; }
.palette-card { gap: .7rem; padding: .8rem; }
.palette-input { width: 100%; min-height: 3rem; padding: .6rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--field); color: var(--ink); font-size: 1rem; appearance: none; -webkit-appearance: none; }
.palette-input:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 4px var(--ring); }
.palette-list { display: grid; gap: .15rem; max-height: 52dvh; overflow-y: auto; overscroll-behavior: contain; }
.pal-item a { display: flex; align-items: center; gap: .8rem; min-height: 2.75rem; padding: .5rem .85rem; border-radius: var(--r-md); color: var(--ink-2); font-weight: 560; text-decoration: none; }
.pal-item.is-on a, .pal-item a:hover { color: var(--ink); background: var(--hover); box-shadow: inset 0 0 0 1px var(--line); }
.pal-item .i { color: var(--accent-text); }
.pal-none { padding: 1.2rem; color: var(--ink-3); text-align: center; font-size: var(--fs-sm); }
.cand { display: grid; gap: .7rem; padding: 1.1rem 0 .3rem; border-top: 1px dashed var(--line-2); }
.cand:first-of-type { border-top: 0; padding-top: .2rem; }
.cand h3 { font-size: var(--fs-lg); letter-spacing: -.02em; }
.cand p { color: var(--ink-2); font-size: var(--fs-sm); }
.screen { display: grid; gap: .4rem; padding-bottom: 1rem; border-bottom: 1px dashed var(--line); }
.screen:last-child { border-bottom: 0; padding-bottom: 0; }
.screen h3 { font-size: var(--fs-sm); font-weight: 650; }
.screen p { color: var(--ink-2); font-size: var(--fs-sm); }
.bullets { display: grid; gap: .25rem; padding-left: 1.2rem; list-style: disc; color: var(--ink-2); font-size: var(--fs-sm); }
a.pill { min-height: 2.75rem; padding-inline: 1rem; text-decoration: none; transition: border-color .25s, transform .35s var(--spring); }
a.pill:hover { border-color: currentColor; transform: translateY(-1px); text-decoration: none; }

/* Tables scroll instead of squeezing their columns; words are not broken mid-way. */
.tbl { min-width: 38rem; }
.tbl th, .tbl td { overflow-wrap: normal; word-break: normal; }
@media (max-width: 44rem) { .tbl.stack { min-width: 0; } }
.dev-card { min-width: 0; }
.dev-card .pill { white-space: normal; }
/* Very large text on a narrow phone: pictures give their width to the words, and paired choices may wrap. */
.dev-list { container-type: inline-size; }
@container (max-width: 12rem) { .dev-card { grid-template-columns: minmax(0, 1fr); } .dev-card .dev-ico { display: none; } }
@media (max-width: 22rem) { .tog-row { display: flex; flex-wrap: wrap; max-width: 100%; border-radius: var(--r-lg); } .tog label { flex: 1 1 auto; } }
.help-foot { display: flex; align-items: center; justify-content: center; gap: .5rem; margin-top: 2.2rem; color: var(--ink-3); font-size: var(--fs-sm); }
.help-foot .i { color: var(--accent-text); }
.help-foot a { display: inline-flex; align-items: center; min-height: 2.75rem; }

/* Site announcement on the storefront */
.notice-wrap { padding-block: .5rem 1.5rem; }
.notice { display: grid; grid-template-columns: auto minmax(0, 1fr); align-items: start; gap: 1rem; padding: 1.1rem 1.4rem; border-color: rgba(255, 195, 92, .38); background: linear-gradient(120deg, rgba(255, 195, 92, .1), transparent 60%), linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 62%); }
.notice-ico { width: 2.6rem; height: 2.6rem; display: grid; place-items: center; border-radius: .9rem; color: var(--warn); background: rgba(255, 195, 92, .12); border: 1px solid rgba(255, 195, 92, .4); }
.notice-text { display: grid; gap: .3rem; }
.notice-text h2 { font-size: var(--fs-lg); letter-spacing: -.02em; }
.notice-text p { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.7; }


/* ============================================================
   ONLY ONE: the brand's cultural gene. Not a ratio but a feeling: of all the lights, the one that is only yours, and steady.
   Spoken as "有些东西，还是独享的好。" Never says anything about who used an exit before; only about now.
   ============================================================ */
/* The one light: warm, steady, and the only thing on the page that never moves. The crowd around it drifts. */
.one { position: relative; width: min(13rem, 52vw); aspect-ratio: 1; margin-inline: auto; }
.one-sm { width: min(8rem, 40vw); }
.one { transition: transform .7s var(--spring); }
/* It answers you: the light leans in when you reach for the button. */
.hero-oo:has(.hero-cta .btn:hover) .one { transform: scale(1.08); }
.one-svg { width: 100%; height: 100%; overflow: visible; }
.one-g1 { stop-color: #fff6df; }
.one-g2 { stop-color: var(--one); stop-opacity: .5; }
.one-g3 { stop-color: var(--one-2); stop-opacity: 0; }
.one-halo, .one-core, .one-ring { transform-box: fill-box; transform-origin: center; }
.one-halo { animation: one-breathe 5.5s ease-in-out infinite; }
.one-core { fill: var(--one); filter: drop-shadow(0 0 8px var(--one)) drop-shadow(0 0 26px var(--one-glow)); animation: one-rise 1.2s var(--spring) .3s both; }
.one-ring { fill: none; stroke: var(--one); stroke-width: 1; opacity: 0; animation: one-ripple 4.8s var(--ease) 1.4s infinite; }
.one-r2 { animation-delay: 3.8s; }
@keyframes one-breathe { 50% { transform: scale(1.08); opacity: .78; } }
@keyframes one-rise { from { transform: scale(0); opacity: 0; } }
@keyframes one-ripple { 0% { transform: scale(.4); opacity: .6; } 100% { transform: scale(3.1); opacity: 0; } }

.crowd-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.crowd { transform: translate(calc(var(--px, 0) * -16px), calc(var(--py, 0) * -9px)); transition: transform .8s var(--ease); animation: crowd-drift 80s linear infinite alternate; }
.cd { fill: var(--ink-2); opacity: .55; }
.cd-1 { animation: cd-twinkle 5s ease-in-out infinite; }
.cd-2 { animation: cd-twinkle 7s ease-in-out 1.5s infinite; }
.cd-3 { animation: cd-twinkle 9s ease-in-out 3s infinite; }
@keyframes cd-twinkle { 50% { opacity: .12; } }
@keyframes crowd-drift { to { translate: -40px 16px; } }
.hero-sky.is-paused * { animation-play-state: paused; }

/* The wordmark: spaced capitals, "ONE" carries the colour. */
.only-one { display: inline-flex; align-items: center; justify-content: center; gap: 1.3em; margin-right: -.6em; color: var(--ink-2); font-size: .95rem; font-weight: 650; letter-spacing: .6em; line-height: 1; }
.only-one > span:last-child { background: var(--grad-one); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; }
.eyebrow .only-one { margin-right: -.4em; font-size: var(--fs-xs); letter-spacing: .4em; }

/* The storefront opening: one lit gate, one pair of ones, one sentence. */
.hero-oo { overflow: clip; padding-block: clamp(2.2rem, 6vw, 4.5rem) clamp(3.6rem, 8vw, 6.5rem); }
.hero-sky { position: absolute; inset: 0; z-index: 0; pointer-events: none; -webkit-mask-image: radial-gradient(ellipse 52% 50% at 50% 44%, transparent 8%, #000 78%); mask-image: radial-gradient(ellipse 40% 38% at 50% 40%, transparent 6%, #000 70%); }
.hero-oo-in { position: relative; z-index: 1; display: grid; justify-items: center; gap: 1.3rem; text-align: center; }
.hero-brand { margin-right: -.55em; color: var(--ink-2); font-size: var(--fs-sm); font-weight: 650; letter-spacing: .55em; }
.hero-oo .hero-title { max-width: 22ch; }
.hero-oo .lead { margin-inline: auto; text-align: center; }
.hero-oo .hero-pills, .hero-oo .hero-cta { justify-content: center; }
.hero-note { color: var(--ink-3); font-size: var(--fs-xs); letter-spacing: .08em; }
.hero-help { display: inline-flex; align-items: center; gap: .35rem; min-height: 2.75rem; margin-left: .6rem; padding-inline: .25rem; color: var(--accent-text); font-weight: 650; letter-spacing: 0; vertical-align: middle; }
.hero-help .i { width: 1.05rem; height: 1.05rem; }
.hero-oo .hero-facts { justify-content: center; margin-inline: auto; max-width: 38rem; }
.hero-oo-in > .rv:nth-child(1) { --rd: .05s; }
.hero-oo-in > .rv:nth-child(2) { --rd: .12s; }
.hero-oo-in > .rv:nth-child(3) { --rd: .9s; }
.hero-oo-in > .rv:nth-child(4) { --rd: 1.05s; }
.hero-oo-in > .rv:nth-child(5) { --rd: 1.15s; }
.hero-oo-in > .rv:nth-child(6) { --rd: 1.25s; }
.hero-oo-in > .rv:nth-child(7) { --rd: 1.35s; }
.hero-oo-in > .rv:nth-child(8) { --rd: 1.45s; }
.hero-oo-in > .rv:nth-child(9) { --rd: 1.55s; }

/* Five lines that take turns. Without motion they simply sit one under another. */
.manifesto { padding-block: clamp(1.6rem, 4vw, 3rem); border-block: 1px solid var(--line); background: linear-gradient(180deg, transparent, var(--hover) 50%, transparent); }
.mf-stage { display: grid; justify-items: center; text-align: center; min-height: 3rem; }
.mf-line { grid-area: 1 / 1; opacity: 0; max-width: 100%; font-size: clamp(1.25rem, 1rem + 1.5vw, 1.9rem); font-weight: 720; letter-spacing: -.02em; line-height: 1.35; background: var(--grad-text); -webkit-background-clip: text; background-clip: text; color: transparent; -webkit-text-fill-color: transparent; animation: mf-turn 25s ease-in-out infinite; }
.mf-line:nth-child(2) { animation-delay: 5s; }
.mf-line:nth-child(3) { animation-delay: 10s; }
.mf-line:nth-child(4) { animation-delay: 15s; }
.mf-line:nth-child(5) { animation-delay: 20s; }
@keyframes mf-turn {
  0% { opacity: 0; transform: translateY(.7rem); filter: blur(6px); }
  3%, 17% { opacity: 1; transform: none; filter: none; }
  20%, 100% { opacity: 0; transform: translateY(-.7rem); filter: blur(6px); }
}
@media (prefers-reduced-motion: reduce) {
  .mf-stage { gap: .7rem; }
  .mf-line { grid-area: auto; opacity: 1; transform: none; filter: none; animation: none; }
}

.finale { padding-block: clamp(2.2rem, 3.8vw, 3.4rem); }
.finale-card { display: grid; justify-items: center; gap: 1.1rem; padding: clamp(1.8rem, 5vw, 3.4rem); text-align: center; overflow: hidden; }
.finale-card::before { content: ""; position: absolute; inset: auto 0 -60% 0; height: 22rem; pointer-events: none; background: radial-gradient(closest-side, var(--spot), transparent 72%); }
.finale-card > * { position: relative; }
.finale-card .hero-cta { justify-content: center; }
.finale-help { display: flex; align-items: center; justify-content: center; gap: .5rem; color: var(--ink-3); font-size: var(--fs-sm); }
.finale-help .i { color: var(--accent-text); }
.finale-help a { display: inline-flex; align-items: center; min-height: 2.75rem; }
@media (max-width: 36rem) { .finale-card .hero-cta { flex-direction: column; align-items: stretch; width: min(100%, 20rem); } .finale-card .hero-cta .btn { justify-content: center; } }
.finale-card h2 { font-size: var(--fs-2xl); letter-spacing: -.035em; }
.plan-own b { color: var(--accent-text); }
.auth-one { display: none; justify-items: start; gap: 1.1rem; text-align: left; }
@media (min-width: 62rem) { .auth-one { display: grid; } }
.auth-one .one { width: min(11rem, 100%); margin-inline: 0; }
.auth-line { color: var(--ink-2); font-size: var(--fs-sm); letter-spacing: .08em; }
.foot-line { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem 1.4rem; color: var(--ink-2); font-size: var(--fs-sm); }
.sb-one { display: flex; align-items: center; gap: .8rem; padding: .5rem .8rem; }
.sb-one i { flex: none; width: .6rem; height: .6rem; border-radius: 50%; background: var(--one); box-shadow: 0 0 0 3px var(--one-glow), 0 0 14px var(--one-glow); }
.sb-one .only-one { margin-right: 0; font-size: .75rem; letter-spacing: .4em; }
@media (min-width: 62rem) { html[data-side="rail"] .sb-one span { display: none; } html[data-side="rail"] .sb-one { justify-content: center; padding-inline: 0; } }
.svc-meta .own { color: var(--one-text); }
.svc-meta ~ a.btn { margin: .9rem .5rem 0 0; }

/* ---------- Country workbench: country list and price grid ---------- */
.mk-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; align-items: start; }
@media (min-width: 62rem) {
  .mk-layout { grid-template-columns: 14.5rem minmax(0, 1fr); }
  .mk-rail { position: sticky; top: calc(var(--top-h) + 1rem); max-height: calc(100dvh - var(--top-h) - 2rem); overflow: auto; }
}
.mk-rail { display: grid; gap: .7rem; padding: .8rem; align-content: start; }
.mk-list { display: grid; gap: .15rem; }
@media (max-width: 61.99rem) {
  .mk-list { display: flex; gap: .4rem; overflow-x: auto; scrollbar-width: none; padding-bottom: .2rem; }
  .mk-list li { flex: none; }
}
.mk { display: flex; align-items: center; gap: .55rem; min-height: 2.75rem; padding: .4rem .75rem; border: 1px solid transparent; border-radius: var(--r-sm); color: var(--ink-2); white-space: nowrap; }
.mk:hover { background: var(--hover); color: var(--ink); text-decoration: none; }
.mk[aria-current="page"] { color: var(--ink); background: var(--hover); border-color: var(--ring); box-shadow: inset 3px 0 0 var(--accent); }
.mk-name { font-weight: 620; }
.mk-tag { padding: .02rem .45rem; border: 1px solid var(--line-2); border-radius: 99px; color: var(--ink-3); font-size: var(--fs-xs); }
.mk.is-off .mk-name { color: var(--ink-3); }
.mk-main { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1.2rem; min-width: 0; }
.mk-head { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem 1rem; }
.mk-title { flex: 1 1 14rem; min-width: 0; }
.mk-title h2 { font-size: var(--fs-2xl); }
.mk-title p { color: var(--ink-3); font-size: var(--fs-sm); }
.mk-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.mx-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; }
.mx-legend { display: flex; flex-wrap: wrap; gap: .3rem 1.1rem; color: var(--ink-2); font-size: var(--fs-xs); }
.mx-legend li { display: inline-flex; align-items: center; gap: .4rem; }
.mx-legend i, .mx-st i { flex: none; width: .55rem; height: .55rem; border-radius: 50%; background: var(--ink-3); }
.mx-legend [data-tone="ok"] i, [data-tone="ok"] .mx-st i { background: var(--ok); }
.mx-legend [data-tone="warn"] i, [data-tone="warn"] .mx-st i { background: var(--warn); }
.mx-legend [data-tone="danger"] i, [data-tone="danger"] .mx-st i { background: var(--danger); }
.mx-wrap { position: relative; overflow: auto; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); }
.mx-wrap:focus-visible { outline-offset: -2px; }
.mx { width: 100%; min-width: 44rem; border-collapse: separate; border-spacing: 0; font-size: var(--fs-sm); }
.mx th, .mx td { padding: .8rem; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.mx tbody tr:last-child > * { border-bottom: 0; }
.mx thead th { position: sticky; top: 0; z-index: 2; background: var(--surface-2); color: var(--ink-3); font-weight: 650; }
.mx thead th b { display: block; color: var(--ink); font-size: var(--fs-sm); }
.mx thead th small { font-size: var(--fs-xs); }
.mx-corner { left: 0; z-index: 3 !important; }
.mx-tier { position: sticky; left: 0; z-index: 1; min-width: 5.6rem; background: var(--surface-2); border-right: 1px solid var(--line); }
.mx-tier .pill { margin: 0 .4rem .3rem 0; }
.mx-tier .inline-form { display: block; }
@media (min-width: 48rem) { .mx-tier { min-width: 8.5rem; } .mx-tier .inline-form { display: inline-block; } }
.mx-cap { display: flex; align-items: center; min-height: 2.75rem; color: var(--ink); font-size: var(--fs-lg); font-weight: 700; }
.mx-cell { min-width: 10rem; border-left: 1px solid var(--line); box-shadow: inset 0 3px 0 var(--cell-tone, var(--line-2)); transition: background-color .25s; }
.mx-cell[data-tone="ok"] { --cell-tone: var(--ok); }
.mx-cell[data-tone="warn"] { --cell-tone: var(--warn); }
.mx-cell[data-tone="danger"] { --cell-tone: var(--danger); }
.mx-price { display: block; font-size: var(--fs-lg); font-variant-numeric: tabular-nums; }
.mx-st { display: flex; align-items: center; gap: .4rem; margin-top: .15rem; color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.4; }
.mx-use, .mx-draft { margin-top: .15rem; color: var(--ink-3); font-size: var(--fs-xs); }
.mx-draft { color: var(--accent-text); font-weight: 650; }
.mx-in { position: relative; display: block; margin-top: .55rem; }
.mx-yen { position: absolute; left: .65rem; top: 50%; transform: translateY(-50%); color: var(--ink-3); pointer-events: none; }
.mx-in input, .mx-act select { width: 100%; min-height: 2.75rem; border: 1px solid var(--line-2); border-radius: var(--r-sm); background: var(--field); color: var(--ink); font-size: var(--fs-sm); }
.mx-in input { padding: .3rem .6rem .3rem 1.5rem; font-variant-numeric: tabular-nums; }
.mx-act { display: block; margin-top: .45rem; }
.mx-act select { padding: .3rem .5rem; }
.mx-in input:hover, .mx-act select:hover { border-color: var(--ring); }
.mx-in input:focus, .mx-act select:focus { outline: 0; border-color: var(--accent); box-shadow: 0 0 0 3px var(--ring); }
.mx-cell.is-dirty { background: rgba(63, 176, 255, .07); }
.mx-cell.is-dirty .mx-in input { border-color: var(--accent-2); }
.mx-act.is-chosen select { border-color: var(--accent); color: var(--accent-text); }
.mx-more { display: inline-flex; align-items: center; gap: .2rem; min-height: 2.75rem; margin-top: .2rem; color: var(--ink-3); font-size: var(--fs-xs); }
.mx-more:hover { color: var(--accent-text); }
.mx-more .i { width: 1em; height: 1em; }
.mx-bar { position: sticky; bottom: 1rem; z-index: 5; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .7rem 1rem; margin-top: 1rem; padding: .7rem 1rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--glass); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); box-shadow: var(--sh-3); transition: border-color .3s; }
.mx-bar.is-active { border-color: var(--accent); }
.mx-count { color: var(--ink-2); font-size: var(--fs-sm); }
.mx-count span { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; }
.mx-bar-act { display: flex; flex-wrap: wrap; gap: .5rem; }
.mx-bar button:disabled { opacity: .45; cursor: not-allowed; }
@media (max-width: 36rem) { .mx-bar { bottom: .6rem; padding: .6rem; } .mx-bar-act { width: 100%; } .mx-bar-act .btn { flex: 1 1 auto; } }

/* ---------- Console tables and columns: keep words whole and give neighbouring blocks room ---------- */
.panel + .cols, .cols + .panel { margin-top: 1.2rem; }
.cols .tbl { min-width: 0; }
.tbl .acts .btn, .tbl .pill { white-space: nowrap; }
.rw-main small .hash { margin-left: .3rem; vertical-align: middle; }
.rw-main small .hash code { max-width: 10rem; }
.finder { grid-template-columns: minmax(0, 1fr) auto auto; align-items: end; }
@media (max-width: 40rem) { .finder { grid-template-columns: minmax(0, 1fr); } }
.finder-code .hash code { font-size: var(--fs-lg); }
.scope-links { display: flex; flex-wrap: wrap; gap: .4rem; }
.line-facts { display: flex; flex-wrap: wrap; align-items: center; gap: .3rem 1.2rem; color: var(--ink-2); font-size: var(--fs-sm); }
.line-facts a { display: inline-flex; align-items: center; min-height: 2.75rem; }
.tree { display: grid; gap: .3rem; }
.tree li { display: grid; gap: .1rem; padding: .5rem 0; border-bottom: 1px dashed var(--line); overflow-wrap: anywhere; }
.tree a, .tree summary { display: inline-flex; align-items: center; min-height: 2.75rem; }
.tree small { color: var(--ink-3); font-size: var(--fs-xs); }
.tree summary { justify-self: start; gap: .45rem; color: var(--accent-text); font-size: var(--fs-sm); font-weight: 600; cursor: pointer; list-style: none; }
.tree summary::-webkit-details-marker { display: none; }
.tree summary::before { content: ""; width: .4rem; height: .4rem; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s; }
.tree details[open] > summary::before { transform: rotate(45deg); }
.tree ul { margin-left: .9rem; padding-left: .9rem; border-left: 1px solid var(--line-2); }
.amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.rw-main > a { display: inline-flex; align-items: center; justify-self: start; min-height: 2.75rem; }
@media (min-width: 44.01rem) and (max-width: 90rem) {
  .tbl th, .tbl td { padding-inline: .7rem; }
  .tbl .hash code { max-width: 7.5rem; }
  .tbl .acts { gap: .3rem; }
  .tbl .acts .btn { padding-inline: .7rem; }
}
/* Large text on narrow screens: long identifiers and status chips give way instead of widening the page. */
.tbl.stack td .hash, .rw-main .hash { min-width: 0; }
.ph-actions .pill { white-space: normal; }
/* Plain disclosure rows added by business pages still need a comfortable target. */
.page details:not([class]) > summary { padding-block: .75rem; cursor: pointer; font-weight: 650; }

/* ---------- Supply chain: record tabs, inquiry cards, record rows and the grouped entry forms ---------- */
.hx-tabs { display: flex; flex-wrap: wrap; gap: .6rem 1.6rem; }
.hx-group { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.hx-group > span { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 650; letter-spacing: .08em; }
.hx-group .chip, .quick .chip { display: inline-flex; align-items: center; }
.hx-group .chip:hover { text-decoration: none; }
.hx-find { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem; }

.rate-line { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; color: var(--ink-2); font-size: var(--fs-sm); }
.rate-line b { display: inline-block; margin-right: .8rem; font-variant-numeric: tabular-nums; }
.sup-list { display: grid; gap: .9rem; }
.sup { display: grid; gap: .9rem; min-width: 0; container-type: inline-size; padding: 1.1rem 1.2rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--field); }
.sup:hover { border-color: var(--ring); }
.sup-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .5rem 1rem; }
.sup-name { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.sup-name h2, .sup-name h3 { display: block; font-size: var(--fs-lg); letter-spacing: -.02em; }
.sup-name p { color: var(--ink-3); font-size: var(--fs-sm); }
.sup-flags, .sup-acts { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
/* The five facts always sit in the same order so plans can be compared by eye. */
.panel + .fold, .stack-gap > .fold { margin-top: 1.2rem; }
.sup-box { container-type: inline-size; }
.sup-facts { display: grid; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--line); grid-template-columns: repeat(2, minmax(0, 1fr)); }
.sup-facts > div:last-child { grid-column: 1 / -1; }
@container (min-width: 34rem) { .sup-facts { grid-template-columns: repeat(3, minmax(0, 1fr)); } .sup-facts > div:last-child { grid-column: span 2; } }
@container (min-width: 58rem) { .sup-facts { grid-template-columns: 1.2fr 1fr 1fr .9fr 1.5fr; } .sup-facts > div:last-child { grid-column: auto; } }
.sup-facts > div { display: grid; gap: .3rem; align-content: start; min-width: 0; padding: .7rem .85rem; background: var(--surface-2); }
.sup-facts dt { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 650; }
.sup-facts dd { display: grid; gap: .1rem; min-width: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.sup-facts dd.spec { display: flex; flex-wrap: wrap; align-content: start; gap: .1rem .8rem; }
.sup-facts dd small, .sup-facts em { color: var(--ink-3); font-size: var(--fs-xs); font-style: normal; }
.sup-facts em { color: var(--warn); }
.sup-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1rem; color: var(--ink-3); font-size: var(--fs-xs); }

.rec-list { display: grid; gap: .6rem; }
.rec { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .5rem 1.2rem; min-width: 0; padding: .8rem 1.1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--field); }
.rec:hover { border-color: var(--ring); }
.rec-main { flex: 1 1 18rem; display: grid; grid-template-columns: minmax(0, 1fr); justify-items: start; gap: .15rem; min-width: 0; overflow-wrap: anywhere; }
.rec-main > a { display: inline-flex; align-items: center; min-height: 2.75rem; margin-block: -.35rem; font-weight: 650; }
.rec-main > b { font-weight: 650; }
.rec-main small { color: var(--ink-3); font-size: var(--fs-xs); }
.rec-main .hash { margin-top: .25rem; }
.rec-end { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; min-width: 0; }
.rec-amount { font-variant-numeric: tabular-nums; white-space: nowrap; }
.src-term { display: grid; gap: .6rem; }
.src-term h3 { display: flex; align-items: baseline; gap: .6rem; font-size: 1rem; }
.src-term h3 small { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 500; }

.sup-form { display: grid; gap: 1.1rem; }
.fgroup { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; min-width: 0; margin: 0; padding: 1rem 1.1rem 1.15rem; border: 1px solid var(--line); border-radius: var(--r-md); }
.fgroup > legend { display: flex; align-items: center; gap: .5rem; padding: 0 .45rem; color: var(--ink); font-size: .95rem; font-weight: 680; }
.fgroup > legend b { display: grid; place-items: center; width: 1.45rem; height: 1.45rem; border-radius: 50%; color: var(--on-accent); background: var(--grad-accent); font-size: .75rem; }
.fgroup-note { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.6; }
.fgrid-tight { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); align-items: start; }
.fgroup.tog > legend { margin-bottom: 0; color: var(--ink); font-size: .95rem; }
.fgroup.tog .tog-row { justify-self: start; }
.sup-form .fx select { padding-right: 2.4rem; background-image: linear-gradient(45deg, transparent 50%, var(--ink-3) 50%), linear-gradient(135deg, var(--ink-3) 50%, transparent 50%); background-repeat: no-repeat; background-size: .36rem .36rem; background-position: calc(100% - 1.2rem) 55%, calc(100% - .84rem) 55%; cursor: pointer; }
.disc-list { display: grid; gap: .7rem; }
.disc-list:empty { display: none; }
.disc { display: grid; gap: .7rem; grid-template-columns: repeat(auto-fit, minmax(min(100%, 10rem), 1fr)); align-items: start; padding: .85rem; border-radius: var(--r-sm); border: 1px dashed var(--line-2); }
.disc-del { grid-column: 1 / -1; justify-self: end; }
[data-discounts] { display: grid; gap: .7rem; justify-items: start; }
[data-discounts] .disc-list { justify-self: stretch; }
.quick { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; color: var(--ink-3); font-size: var(--fs-xs); }
.digest { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem .7rem; min-width: 0; }
.digest > .fx, .digest > .fld { flex: 1 1 100%; }
.digest small { color: var(--ink-3); font-size: var(--fs-xs); overflow-wrap: anywhere; }
.digest-pick { cursor: pointer; }
.digest-pick:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
@media (max-width: 40rem) {
  .hx-tabs, .hx-group { display: grid; gap: .4rem; }
  .hx-group { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .hx-group > span { grid-column: 1 / -1; }
  .hx-group .chip { justify-content: center; padding-inline: .4rem; text-align: center; line-height: 1.35; }
  .hx-find .search { flex-basis: 10rem; }
  .fgrid-tight, .disc { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8rem), 1fr)); }
  .disc > .fx:last-of-type { grid-column: 1 / -1; }
}

/* Customer centre: figures and service facts sit side by side instead of one long column. */
.page-account .svc-meta { grid-template-columns: repeat(auto-fit, minmax(min(100%, 8.5rem), 1fr)); }
.page-account .cols-3-2 { align-items: stretch; }
.page-account .kv-grid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 11rem), 1fr)); }
@media (max-width: 36rem) {
  .page-account .kpis { grid-template-columns: repeat(auto-fit, minmax(min(100%, 9rem), 1fr)); gap: .7rem; }
  .page-account .kpi { gap: .15rem .7rem; padding: .85rem .8rem; }
  .page-account .kpi-ico { width: 2.4rem; height: 2.4rem; border-radius: .8rem; }
  .page-account .kpi b { font-size: 1.35rem; }
  .page-account .ph-actions { width: 100%; }
  .page-account .ph-actions .btn { flex: 1 1 8rem; justify-content: center; border-color: var(--line-2); }
}

/* Guide on phones: the heading reads across the whole card and one help entry stays at the end. */
@media (max-width: 36rem) {
  .g-hero { grid-template-columns: minmax(0, 1fr); }
  .g-ico { display: none; }
  .g-help { display: none; }
}

/* ---------- Home screen: install card, device notifications, install steps ---------- */
.page.pwa-slot { padding-block: clamp(1rem, 2.5vw, 1.6rem) 0; }
.page.pwa-slot-end { padding-block: 0 1.5rem; }
/* The slot keeps no space while the script has not offered anything in it. */
.page.pwa-slot:has(> [hidden]:only-child) { display: none; }
.pwa-card { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; align-items: center; gap: .6rem 1rem; padding: .95rem 1.2rem; }
.pwa-card .brand-mark { width: 2.75rem; height: 2.75rem; }
.pwa-card h2 { font-size: var(--fs-lg); }
.pwa-card p { color: var(--ink-2); font-size: var(--fs-sm); }
.pwa-card-acts { display: flex; flex-wrap: wrap; justify-content: flex-end; gap: .5rem; }
@media (max-width: 36rem) {
  .pwa-card { grid-template-columns: auto minmax(0, 1fr); padding-inline: 1rem; }
  .pwa-card-acts { grid-column: 1 / -1; }
}

.pwa-notify { padding: 0; scroll-margin-top: calc(var(--top-h) + 1rem); container-type: inline-size; }
@container (max-width: 12rem) { .pwa-notify .pill { display: none; } }
.pwa-notify > summary { display: flex; align-items: center; gap: .85rem; min-height: 3.9rem; padding: .75rem 1.15rem; list-style: none; cursor: pointer; border-radius: inherit; }
.pwa-notify > summary::-webkit-details-marker { display: none; }
.pwa-notify-ico { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--hover); color: var(--accent-text); }
.pwa-notify-ico .i { width: 1.3rem; height: 1.3rem; }
.pwa-notify-title { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.pwa-notify-title b { font-size: var(--fs-lg); }
.pwa-notify-title small { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.5; }
.pwa-notify .pill { flex: none; }
.pwa-chev { flex: none; width: 1.2rem; height: 1.2rem; color: var(--ink-3); transition: transform .3s var(--ease); }
.pwa-notify[open] .pwa-chev { transform: rotate(180deg); }
.pwa-notify-body { display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; padding: 1rem 1.15rem 1.15rem; border-top: 1px solid var(--line); }
.pwa-state { font-weight: 620; }
.pwa-notify-acts { display: flex; flex-wrap: wrap; gap: .6rem; }
.pwa-notify-acts:not(:has(> :not([hidden]))) { display: none; }
.pwa-devices { display: grid; }
.pwa-devices:empty { display: none; }
.pwa-devices li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .75rem; padding: .45rem 0; border-top: 1px dashed var(--line-2); font-size: var(--fs-sm); }
.pwa-hint { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.7; }
.pwa-status { color: var(--accent-text); font-size: var(--fs-sm); font-weight: 620; }
.pwa-status:empty { display: none; }
@media (max-width: 30rem) {
  .pwa-notify-ico { display: none; }
  .pwa-notify-acts .btn { flex: 1 1 100%; justify-content: center; }
}

/* Writing to a customer first, inside their record. */
.contact { border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--hover); }
.contact > summary { display: flex; align-items: center; gap: .85rem; min-height: 3.9rem; padding: .7rem 1rem; list-style: none; cursor: pointer; border-radius: inherit; }
.contact > summary::-webkit-details-marker { display: none; }
.contact-ico { flex: none; display: grid; place-items: center; width: 2.5rem; height: 2.5rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--surface-2); color: var(--accent-text); }
.contact-ico .i { width: 1.3rem; height: 1.3rem; }
.contact-title { flex: 1; min-width: 0; display: grid; gap: .1rem; }
.contact-title b { font-size: var(--fs-lg); }
.contact-title small { color: var(--ink-2); font-size: var(--fs-xs); line-height: 1.5; }
.contact-chev { flex: none; width: 1.2rem; height: 1.2rem; color: var(--ink-3); transition: transform .3s var(--ease); }
.contact[open] .contact-chev { transform: rotate(180deg); }
.contact-form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; padding: .9rem 1rem 1rem; border-top: 1px solid var(--line); }
.contact-form textarea { min-height: 6.5rem; }
.contact-hint { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.7; }
.contact-form .btn { justify-self: end; }
.contact-form .form-status { margin: 0; padding: .55rem .85rem; border: 1px solid var(--line-2); border-radius: var(--r-md); background: var(--surface); color: var(--ink-2); font-size: var(--fs-sm); }
.contact-form.is-error .form-status { color: var(--danger); border-color: var(--danger); }
@media (max-width: 36rem) { .contact-ico { display: none; } .contact-form .btn { justify-self: stretch; justify-content: center; } }

.pwa-guide { width: min(27rem, calc(100% - 2rem)); }
.pwa-guide-head { display: flex; align-items: center; gap: .9rem; }
.pwa-guide-head .brand-mark { flex: none; width: 3rem; height: 3rem; }
.pwa-guide-head h2 { font-size: var(--fs-xl); }
.pwa-guide-head p { color: var(--ink-2); font-size: var(--fs-sm); }
.pwa-steps { display: grid; gap: .55rem; counter-reset: pwa-step; }
.pwa-steps li { position: relative; min-height: 2.9rem; padding: .7rem .9rem .7rem 3.1rem; border: 1px solid var(--line); border-radius: var(--r-md); background: var(--hover); counter-increment: pwa-step; }
.pwa-steps li::before { content: counter(pwa-step); position: absolute; left: .75rem; top: .65rem; display: grid; place-items: center; width: 1.6rem; height: 1.6rem; border-radius: 50%; background: var(--grad-accent); color: var(--on-accent); font-size: var(--fs-xs); font-weight: 760; }
.pwa-steps b { margin-inline: .15rem; color: var(--accent-text); }
.pwa-other { color: var(--ink-2); }
.pwa-guide .modal-actions .btn { min-width: min(8rem, 100%); justify-content: center; }
/* The card takes the first focus, so an invitation opens without a ring around one of its buttons. */
.pwa-guide .modal-card:focus { outline: 0; }
.pwa-benefits { display: grid; gap: .55rem; }
.pwa-benefits li { display: flex; align-items: flex-start; gap: .65rem; }
.pwa-benefits .i { flex: none; width: 1.25rem; height: 1.25rem; margin-top: .15rem; color: var(--accent-text); }
/* Inside chat apps the way out is their own menu in the top right corner. */
.pwa-pointer { position: fixed; top: max(.5rem, env(safe-area-inset-top)); right: max(.8rem, env(safe-area-inset-right)); display: flex; align-items: center; gap: .35rem; padding: .35rem .6rem .35rem .9rem; border-radius: 999px; background: var(--grad-accent); color: var(--on-accent); box-shadow: var(--sh-3); font-size: var(--fs-sm); font-weight: 760; white-space: nowrap; }
.pwa-pointer .i { width: 1.4rem; height: 1.4rem; transform: rotate(45deg); animation: pwa-nudge 1s ease-in-out infinite alternate; }
@keyframes pwa-nudge { to { translate: .22rem -.22rem; } }
/* Phones: a sheet rising from the bottom edge, with the main action nearest the thumb. */
@media (max-width: 47.99rem) {
  .modal.pwa-guide { width: 100%; max-width: 100%; max-height: 88dvh; margin: auto 0 0; }
  .modal.pwa-guide[open] { animation: drawer-up .36s var(--ease); }
  .pwa-guide .modal-card { max-height: 88dvh; gap: .9rem; padding: 1.35rem 1.2rem calc(1rem + env(safe-area-inset-bottom)); border-radius: 1.5rem 1.5rem 0 0; }
  .pwa-guide .modal-actions { flex-direction: column-reverse; gap: .4rem; }
  .pwa-guide .modal-actions .btn { width: 100%; }
}
/* Wide screens: an invitation waits in the corner without covering the work. */
@media (min-width: 48rem) {
  .modal.pwa-guide.is-corner { position: fixed; inset: auto 1.5rem 1.5rem auto; z-index: 85; width: 24rem; margin: 0; }
  .pwa-guide.is-corner .modal-card { max-height: calc(100dvh - 3rem); gap: .9rem; padding: 1.3rem; }
}
/* The sheet keeps clear of the pointer on short screens. */
.modal.pwa-guide.has-pointer, .pwa-guide.has-pointer .modal-card { max-height: min(88dvh, calc(100dvh - 4.5rem)); }

/* ---------- Delivery: whose turn it is, how far an order got, and the one thing to do now ---------- */
[data-group] { --turn: var(--ink-3); }
[data-group="you"] { --turn: var(--warn); }
[data-group="check"] { --turn: var(--danger); }
[data-group="codex"] { --turn: var(--info); }
[data-group="waiting"] { --turn: var(--ink-2); }
[data-group="done"] { --turn: var(--ok); }
.dlv-tally { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 9.5rem), 1fr)); gap: .7rem; margin-bottom: 1.4rem; }
.dlv-tally a { display: flex; align-items: baseline; gap: .6rem; min-height: 3.4rem; padding: .75rem 1rem; border-radius: var(--r-md); border: 1px solid var(--line); background: var(--field); color: var(--ink-2); font-size: var(--fs-sm); transition: border-color .2s; }
.dlv-tally a:hover { border-color: var(--turn); }
.dlv-tally b { color: var(--turn); font-size: 1.5rem; line-height: 1; font-variant-numeric: tabular-nums; }
.dlv-group { display: grid; gap: .8rem; scroll-margin-top: calc(var(--top-h) + 1rem); }
.dlv-group + .dlv-group { margin-top: 1.7rem; }
.dlv-group > h2 { display: flex; align-items: center; gap: .55rem; font-size: var(--fs-lg); letter-spacing: -.02em; }
.dlv-group > h2::before { content: ""; width: .55rem; height: .55rem; border-radius: 50%; background: var(--turn); }
.dlv-group > h2 small { color: var(--ink-3); font-size: var(--fs-sm); font-weight: 600; font-variant-numeric: tabular-nums; }
.dlv-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 19rem), 1fr)); gap: .9rem; }
.dlv-grid > li { display: grid; min-width: 0; }
.dlv-card { display: grid; grid-template-rows: auto auto auto 1fr auto; gap: .7rem; min-width: 0; padding: 1.1rem 1.15rem 1rem; border-radius: var(--r-lg); border: 1px solid var(--line); background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 62%); box-shadow: var(--sh-1); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.dlv-card:hover { transform: translateY(-2px); border-color: var(--turn); box-shadow: var(--sh-3); }
.dlv-card:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.dlv-card[data-group="you"] { border-color: color-mix(in srgb, var(--warn) 45%, transparent); }
.dlv-card-h { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: .2rem .8rem; }
.dlv-card-h b { font-size: var(--fs-lg); letter-spacing: -.02em; overflow-wrap: anywhere; }
.dlv-price { color: var(--ink); font-weight: 700; font-variant-numeric: tabular-nums; white-space: nowrap; }
.dlv-plan { margin-top: -.45rem; color: var(--ink-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.dlv-next { display: flex; align-items: center; justify-content: space-between; gap: .6rem; align-self: end; font-size: var(--fs-sm); }
.dlv-next b { color: var(--ink); font-weight: 650; overflow-wrap: anywhere; }
.dlv-next .i { flex: none; color: var(--turn); transition: transform .25s var(--ease); }
.dlv-card:hover .dlv-next .i { transform: translateX(3px); }
.dlv-card-f { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .4rem .8rem; padding-top: .7rem; border-top: 1px solid var(--line); }
.dlv-meta { color: var(--ink-3); font-size: var(--fs-xs); font-variant-numeric: tabular-nums; }
.dlv-steps { display: grid; grid-auto-flow: column; grid-auto-columns: minmax(0, 1fr); gap: .3rem; }
.dlv-steps li { display: grid; gap: .15rem; align-content: start; min-width: 0; color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.4; overflow-wrap: anywhere; }
.dlv-steps li::before { content: ""; height: .28rem; margin-bottom: .2rem; border-radius: 99px; background: var(--line-2); }
.dlv-steps b { font-weight: 600; }
.dlv-steps li.done::before { background: var(--ok); }
.dlv-steps li.done b { color: var(--ink-2); }
.dlv-steps li.now::before { background: var(--warn); animation: dlv-pulse 1.8s ease-in-out infinite; }
.dlv-steps li.now b { color: var(--warn); }
.dlv-steps li.fail::before { background: var(--danger); }
.dlv-steps li.fail b { color: var(--danger); }
.dlv-steps.is-full li time { display: none; color: var(--ink-3); font-variant-numeric: tabular-nums; }
@keyframes dlv-pulse { 50% { opacity: .45; } }
@media (prefers-reduced-motion: reduce) { .dlv-card, .dlv-card:hover, .dlv-card:hover .dlv-next .i { transform: none; } .dlv-steps li.now::before { animation: none; } }

.dlv { min-width: 0; }
/* A drawer keeps only what is inside the marked block, so the sheet itself is the measuring container. */
.dlv-sheet { gap: 1.2rem; container-type: inline-size; }
.dlv-top { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; }
.dlv-id h2 { font-size: var(--fs-lg); letter-spacing: -.02em; overflow-wrap: anywhere; }
.dlv-id p { color: var(--ink-3); font-size: var(--fs-sm); font-variant-numeric: tabular-nums; }
.dlv-body, .dlv-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; min-width: 0; }
.dlv-now { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: .8rem; min-width: 0; padding: 1.15rem 1.2rem 1.25rem; border-radius: var(--r-md); border: 1px solid var(--line-2); background: var(--field); }
.dlv-now[data-group] { border-color: color-mix(in srgb, var(--turn) 48%, transparent); background: color-mix(in srgb, var(--turn) 7%, var(--field)); }
.dlv-who { display: flex; align-items: center; gap: .45rem; color: var(--turn); font-size: var(--fs-xs); font-weight: 750; }
.dlv-who::before { content: ""; width: .45rem; height: .45rem; border-radius: 50%; background: currentColor; }
.dlv-now h3 { margin-top: -.35rem; font-size: 1.15rem; line-height: 1.45; letter-spacing: -.01em; text-wrap: balance; overflow-wrap: anywhere; }
.dlv-say { color: var(--ink-2); font-size: var(--fs-sm); line-height: 1.65; }
.dlv-hint { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.6; }
.dlv-now form { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; min-width: 0; }
.dlv-now form.fgrid { grid-template-columns: repeat(auto-fit, minmax(min(100%, 15rem), 1fr)); }
.dlv-main { justify-self: start; justify-content: center; min-width: min(100%, 16rem); text-align: center; }
@container (max-width: 30rem) { .dlv-main { justify-self: stretch; } }
.dlv-done { display: flex; align-items: center; gap: .5rem; color: var(--ok); font-weight: 650; font-size: var(--fs-sm); }
.dlv-facts { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--line); }
.dlv-facts > div { display: grid; gap: .2rem; align-content: start; min-width: 0; padding: .65rem .8rem; background: var(--surface-2); }
.dlv-facts > .is-wide { grid-column: 1 / -1; }
.dlv-facts dt { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 650; }
.dlv-facts dd { min-width: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.dlv-facts code { font-size: var(--fs-sm); overflow-wrap: anywhere; }
.dlv-facts > .is-key dd { font-size: 1.08rem; font-weight: 750; }
@container (max-width: 22rem) { .dlv-facts > .is-key { grid-column: 1 / -1; } }
@container (max-width: 15rem) { .dlv-facts { grid-template-columns: minmax(0, 1fr); } }
.dlv-console { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem .8rem; font-size: var(--fs-sm); color: var(--ink-2); }
.dlv-console code { flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.dlv-raw textarea { width: 100%; min-width: 0; padding: .8rem; border-radius: var(--r-sm); border: 1px solid var(--line-2); background: var(--field); color: var(--ink-2); font: var(--fs-xs)/1.6 var(--font-mono); resize: vertical; }
.dlv-choices { display: grid; gap: .6rem; }
.dlv-choices > li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .6rem 1rem; padding: .8rem .9rem; border-radius: var(--r-sm); border: 1px solid var(--line); background: var(--surface-2); }
.dlv-choices li > div { display: grid; gap: .15rem; flex: 1 1 14rem; min-width: 0; overflow-wrap: anywhere; }
.dlv-choices span { color: var(--ink-3); font-size: var(--fs-xs); }
.dlv-block { display: grid; grid-template-columns: minmax(0, 1fr); gap: .6rem; min-width: 0; }
.dlv-block h3 { font-size: var(--fs-sm); color: var(--ink-2); }
.dlv-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.dlv-side .fold form { display: grid; justify-items: start; }
@container (min-width: 30rem) { .dlv-steps.is-full li time { display: block; } }
@container (min-width: 56rem) { .dlv-body { grid-template-columns: minmax(0, 3fr) minmax(0, 2fr); align-items: start; } }
@media (max-width: 22rem) { .dlv-card-f .dlv-meta { flex-basis: 100%; } }
/* Very large text on a small phone: paddings give way before the words do. */
.dlv-card { grid-template-columns: minmax(0, 1fr); padding: min(1.1rem, 4.5vw) min(1.15rem, 4.5vw); }
.dlv-card .pill, .dlv-sheet .pill { white-space: normal; }
.page .dlv-sheet.panel { padding: min(1.5rem, 4.5vw); }
.dlv-now { padding: min(1.2rem, 4vw); }
.dlv-facts > div { padding: .65rem min(.8rem, 3vw); }
.dlv-main { white-space: normal; }
.panel-h > .pill { white-space: normal; }

/* ---------- Instances: which machine needs attention, how to reach it, and what is verified about it ---------- */
.ins-tools { display: flex; flex-wrap: wrap; align-items: center; gap: .8rem 1.2rem; margin-bottom: 1rem; }
.ins-lookup { margin-bottom: 1.4rem; }
.ins-lookup form { display: flex; flex-wrap: wrap; align-items: flex-end; gap: .8rem; }
.ins-lookup .fx { flex: 1 1 22rem; }
.ins-card { position: relative; display: grid; grid-template-columns: minmax(0, 1fr); grid-template-rows: auto auto 1fr auto; gap: .55rem; min-width: 0; padding: min(1.1rem, 4.5vw) min(1.15rem, 4.5vw); border-radius: var(--r-lg); border: 1px solid var(--line); border-left: 3px solid var(--tone, var(--line-2)); background: linear-gradient(160deg, var(--surface-2) 0%, var(--surface) 62%); box-shadow: var(--sh-1); transition: transform .25s var(--ease), border-color .25s, box-shadow .25s; }
.ins-card:hover { transform: translateY(-2px); box-shadow: var(--sh-3); }
.ins-card:focus-within { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ins-card.is-off { display: none; }
[data-tone="ok"] { --tone: var(--ok); }
[data-tone="warn"] { --tone: var(--warn); }
[data-tone="danger"] { --tone: var(--danger); }
.ins-card-h { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .3rem .8rem; }
.ins-card h3 { flex: 1 1 8rem; min-width: 0; font-size: var(--fs-lg); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ins-card h3 a { color: var(--ink); }
.ins-card h3 a:focus-visible { outline: 0; }
/* The whole card opens the machine; other links on it stay above that layer. */
.ins-card h3 a::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.ins-card .pill, .ins-sheet .pill { white-space: normal; max-width: 100%; }
.ins-card-sub { color: var(--ink-3); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.ins-card-facts { display: grid; gap: .1rem; align-content: start; }
.ins-card-facts > div { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: baseline; gap: .1rem 1rem; padding: .35rem 0; border-top: 1px solid var(--line); font-size: var(--fs-sm); }
.ins-card-facts dt { color: var(--ink-3); }
.ins-card-facts dd { min-width: 0; margin-left: auto; text-align: right; font-variant-numeric: tabular-nums; overflow-wrap: anywhere; }
.ins-card-facts dd small, .ins-facts dd small { color: var(--ink-3); font-size: var(--fs-xs); }
.ins-card-link { position: relative; z-index: 1; justify-self: start; }
.ins-start { justify-self: start; }

.ins-sheet { container-type: inline-size; gap: 1.1rem; }
.page .ins-sheet.panel { padding: min(1.5rem, 4.5vw); }
.ins-top { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: .8rem 1rem; }
.ins-id { display: grid; gap: .2rem; min-width: 0; }
.ins-id h2 { font-size: var(--fs-lg); letter-spacing: -.02em; overflow-wrap: anywhere; }
.ins-id p { color: var(--ink-3); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.ins-flags { display: flex; flex-wrap: wrap; align-items: center; gap: .4rem; }
.ins-body, .ins-col { display: grid; grid-template-columns: minmax(0, 1fr); gap: 1rem; align-content: start; min-width: 0; }
@container (min-width: 50rem) { .ins-body { grid-template-columns: repeat(2, minmax(0, 1fr)); align-items: start; } .ins-body > .ins-wide { grid-column: 1 / -1; } }
.ins-part { container-type: inline-size; display: grid; grid-template-columns: minmax(0, 1fr); gap: .75rem; min-width: 0; padding: min(1.1rem, 4vw); border: 1px solid var(--line); border-radius: var(--r-md); background: var(--field); }
.ins-part h3 { font-size: 1rem; letter-spacing: -.01em; }
.ins-part h4, .ins-fold h4 { color: var(--ink-2); font-size: var(--fs-sm); font-weight: 700; }
.ins-sub { display: grid; grid-template-columns: minmax(0, 1fr); gap: .5rem; min-width: 0; }
.ins-detail { min-width: 0; }
.ins-tiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 7.5rem), 1fr)); gap: .6rem; }
.ins-tile { display: grid; gap: .2rem; align-content: start; min-width: 0; padding: .7rem min(.8rem, 3vw); border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--tone, var(--ink-3)) 42%, transparent); background: color-mix(in srgb, var(--tone, var(--ink-3)) 7%, var(--surface-2)); overflow-wrap: anywhere; }
.ins-tile > span { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 650; }
.ins-tile > b { color: var(--tone, var(--ink)); font-size: 1rem; line-height: 1.45; }
.ins-tile > b time { font-size: var(--fs-sm); }
.ins-tile small { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.5; }
.ins-fix { display: grid; gap: .25rem; padding: .7rem .9rem; border-left: 3px solid var(--tone, var(--warn)); border-radius: 0 var(--r-sm) var(--r-sm) 0; background: color-mix(in srgb, var(--tone, var(--warn)) 8%, transparent); font-size: var(--fs-sm); line-height: 1.6; overflow-wrap: anywhere; }
.ins-alert { padding: .65rem .85rem; border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--tone, var(--ink-3)) 40%, transparent); background: color-mix(in srgb, var(--tone, var(--ink-3)) 8%, transparent); color: var(--tone, var(--ink-2)); font-size: var(--fs-sm); line-height: 1.6; overflow-wrap: anywhere; }
.ins-cmd { display: flex; flex-wrap: wrap; align-items: center; gap: .6rem .9rem; padding: .75rem min(.9rem, 3vw); border-radius: var(--r-sm); background: var(--surface-3); }
.ins-cmd code { flex: 1 1 18rem; min-width: 0;color: var(--ink); font-family: var(--font-mono); font-size: .95rem; overflow-wrap: anywhere; user-select: all; -webkit-user-select: all; }
.ins-print { display: grid; gap: .2rem; font-size: var(--fs-sm); }
.ins-print > span:first-child { color: var(--ink-3); font-size: var(--fs-xs); }
.ins-chip { display: inline-flex; flex-wrap: wrap; align-items: center; gap: .2rem; max-width: 100%; margin-right: .5rem; vertical-align: middle; }
.ins-chip code { flex: 1 1 8ch; min-width: 0; font-family: var(--font-mono); font-size: .82rem; overflow-wrap: anywhere; }
.ins-copy { --tap: min(2.75rem, max(44px, 12vw)); flex: none; display: inline-grid; place-items: center; width: var(--tap); height: var(--tap); margin: min(-.2rem, calc((1.4rem - var(--tap)) / 2)) 0 min(-.2rem, calc((1.4rem - var(--tap)) / 2)) -.2rem; padding: 0; border: 0; border-radius: .6rem; background: transparent; color: var(--ink-3); transition: color .2s, background-color .2s; }
.ins-copy:hover { color: var(--ink); background: var(--hover); }
.ins-copy .i { width: 1rem; height: 1rem; }
.ins-keys { display: grid; gap: .45rem; }
.ins-keys li { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: .35rem 1rem; padding: .55rem min(.75rem, 3vw); border-radius: var(--r-sm); border: 1px solid color-mix(in srgb, var(--tone, var(--ink-3)) 28%, transparent); background: var(--surface-2); font-size: var(--fs-sm); }
.ins-keys li[data-tone="muted"] { color: var(--ink-3); }
.ins-keys li > div { display: flex; flex-wrap: wrap; align-items: center; gap: .15rem .6rem; min-width: 0; overflow-wrap: anywhere; }
.ins-keys small { color: var(--ink-3); font-size: var(--fs-xs); }
/* Facts fill the row they are on, so a lone last one never leaves a hole. */
.ins-facts { display: flex; flex-wrap: wrap; gap: 1px; overflow: hidden; border: 1px solid var(--line); border-radius: var(--r-sm); background: var(--line); }
.ins-facts > div { flex: 1 1 calc(50% - 1px); display: grid; gap: .2rem; align-content: start; min-width: min(100%, 8.5rem); padding: .6rem min(.75rem, 3vw); background: var(--surface-2); }
.ins-facts > .is-wide { flex-basis: 100%; }
.ins-facts > div:has(.ins-chip) { min-width: min(100%, 12.5rem); }
.ins-facts dt { color: var(--ink-3); font-size: var(--fs-xs); font-weight: 650; }
.ins-facts dd { min-width: 0; font-size: var(--fs-sm); overflow-wrap: anywhere; font-variant-numeric: tabular-nums; }
.ins-facts code { font-family: var(--font-mono); font-size: .82rem; overflow-wrap: anywhere; }
.ins-facts > .is-key dd { font-size: 1.02rem; font-weight: 700; }
.ins-pending { color: var(--ink-3); }
.ins-stale { margin-left: .35rem; color: var(--warn); font-size: var(--fs-xs); font-weight: 650; white-space: nowrap; }
.ins-counts { display: flex; flex-wrap: wrap; gap: .35rem; }
.ins-counts > span { padding: .08rem .55rem; border-radius: 99px; border: 1px solid color-mix(in srgb, var(--tone, var(--ink-3)) 40%, transparent); color: var(--tone, var(--ink-3)); font-size: var(--fs-xs); font-weight: 650; font-variant-numeric: tabular-nums; }
.ins-gaps { color: var(--ink-3); font-size: var(--fs-xs); line-height: 1.7; overflow-wrap: anywhere; }
.ins-links { display: flex; flex-wrap: wrap; gap: .5rem; }
.ins-missing summary { display: flex; align-items: center; min-height: 2.75rem; color: var(--ink-2); font-size: var(--fs-xs); font-weight: 650; cursor: pointer; }
.ins-missing summary:focus-visible { outline: 2px solid var(--accent-text); outline-offset: 2px; }
.ins-fold summary { gap: .5rem; }
.ins-fold summary small { margin-left: auto; color: var(--ink-3); font-size: var(--fs-xs); font-weight: 500; font-variant-numeric: tabular-nums; }
.ins-fold .ins-fold > summary { min-height: 2.75rem; font-size: var(--fs-sm); }
.ins-fold .fold-body { padding-inline: min(1.1rem, 3vw); }
.ins-timeline { display: grid; gap: 0; }
.ins-timeline li { display: grid; gap: .2rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-sm); overflow-wrap: anywhere; }
.ins-timeline li:last-child { border-bottom: 0; }
.ins-timeline li > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; }
.ins-timeline b { color: var(--tone, var(--ink)); }
.ins-sources { display: grid; gap: 0; }
.ins-sources li { display: grid; gap: .2rem; padding: .6rem 0; border-bottom: 1px dashed var(--line); font-size: var(--fs-xs); color: var(--ink-3); overflow-wrap: anywhere; }
.ins-sources li > div { display: flex; flex-wrap: wrap; justify-content: space-between; gap: .1rem 1rem; color: var(--ink-2); font-size: var(--fs-sm); }
@media (prefers-reduced-motion: reduce) { .ins-card, .ins-card:hover { transform: none; } }
