/* RSP Hub: interface in the RSP website's own system. Gotham for text and labels, Georgia for headings,
   black and white, hairline rules, square corners. Fonts come from the website (/assets/fonts/);
   Montserrat and the system Georgia stand in if they are missing. The cards keep their own type (card.css). */
@font-face { font-family: "Gotham"; src: url(/assets/fonts/Gotham-Book.woff2) format("woff2"), url(/assets/fonts/Gotham-Book.woff) format("woff"); font-weight: 400; font-display: swap; }
@font-face { font-family: "Gotham-m"; src: url(/assets/fonts/Gotham-Medium.woff2) format("woff2"), url(/assets/fonts/Gotham-Medium.woff) format("woff"); font-weight: 400 600; font-display: swap; }
@font-face { font-family: "Gotham-l"; src: url(/assets/fonts/GothamLight.woff2) format("woff2"), url(/assets/fonts/GothamLight.woff) format("woff"); font-weight: 300 400; font-display: swap; }
@font-face { font-family: "RSP Georgia"; src: url(/assets/fonts/Georgia.woff2) format("woff2"), url(/assets/fonts/Georgia.woff) format("woff"); font-weight: 400; font-display: swap; }

:root {
  --sans: "Gotham", "Montserrat", Arial, sans-serif;
  --sans-m: "Gotham-m", "Montserrat", Arial, sans-serif;
  --serif: "RSP Georgia", Georgia, "Times New Roman", serif;
  --ink: #111214; --muted: #6b6e73; --soft: #8c9099;
  --rule: rgba(17,18,20,.14); --rule-soft: rgba(17,18,20,.08); --wrule: rgba(255,255,255,.18);
  --ground: #f6f7f9; --panel: #ffffff;
  --acc: #111214;
  --ok: #1f6b45; --ok-bg: #edf5f0; --warn: #8a5a00; --warn-bg: #fbf4e4; --bad: #a3261f; --bad-bg: #fbeceb; --info: #253C7B; --info-bg: #eef2f9;
  /* names the older templates still use */
  --mut: var(--muted); --line: var(--rule); --line2: rgba(17,18,20,.22); --tint: var(--ground); --maroon: var(--acc); --maroon-d: #000;
}
.co-piya { --acc: #921932; }
* { box-sizing: border-box; min-width: 0; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: #fff; color: var(--ink); font: 400 15px/1.6 var(--sans); overflow-x: clip; }
a { color: var(--ink); text-decoration: underline; text-decoration-color: var(--rule); text-underline-offset: 3px; }
a:hover { color: var(--ink); text-decoration-color: currentColor; }
img { max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3 { margin: 0; font-weight: 400; }
h1 { font: 400 clamp(32px, 3.4vw, 46px)/1.08 var(--sans-m); letter-spacing: -.012em; }
h2 { font: 400 clamp(24px, 2.2vw, 30px)/1.2 var(--serif); }
h3 { font: 400 20px/1.3 var(--serif); }
p { margin: 0; }
.mut { color: var(--muted); }
.small { font-size: 13px; }
.nowrap { white-space: nowrap; }
b, strong { font-family: var(--sans-m); font-weight: 400; }

/* page width: the website's 1250 px column, with its 95 px margins on a laptop */
.wrap { width: min(1250px, calc(100% - 2 * max(16px, 5.5vw))); margin-left: auto; margin-right: auto; }
.kicker { font: 400 12px/1.6 var(--sans-m); letter-spacing: .24em; text-transform: uppercase; color: var(--muted); margin: 0 0 16px; }

/* ---------- header: the website's black bar ---------- */
.site-top { background: #000; color: #fff; position: sticky; top: 0; z-index: 30; }
.site-top .wrap { min-height: 76px; display: flex; align-items: center; gap: 28px; }
.site-top .home { display: flex; align-items: center; gap: 16px; text-decoration: none; color: #fff; flex: none; }
.site-top .logo { width: 140px; height: auto; display: block; }
.site-top .home span { font: 400 12px/1 var(--sans-m); letter-spacing: .24em; text-transform: uppercase; color: rgba(255,255,255,.55); border-left: 1px solid var(--wrule); padding: 4px 0 4px 16px; }
.hubnav { display: flex; gap: 30px; margin-left: auto; }
.hubnav a, .site-top .me button, .site-top .site { font: 400 12px/1 var(--sans-m); letter-spacing: .18em; text-transform: uppercase; color: rgba(255,255,255,.66); text-decoration: none; padding: 8px 0; white-space: nowrap; }
.site-top .site { margin-left: auto; letter-spacing: .04em; text-transform: none; font-family: var(--sans); font-size: 14px; }
.hubnav a:hover, .site-top .site:hover, .site-top .me button:hover { color: #fff; }
.hubnav a[aria-current="page"] { color: #fff; box-shadow: inset 0 -1px 0 #fff; }
.site-top .me { display: flex; align-items: center; gap: 22px; padding-left: 28px; border-left: 1px solid var(--wrule); flex: none; }
.site-top .me a { color: #fff; font: 400 14px/1 var(--sans); text-decoration: none; white-space: nowrap; }
.site-top .me form { margin: 0; }
.site-top .me button { background: none; border: 0; cursor: pointer; }

/* ---------- strips under the header, like the website's "on this page" bar ---------- */
.strip { border-bottom: 1px solid var(--rule); background: #fff; }
.strip .wrap { display: flex; align-items: center; gap: 28px; }
.strip nav { display: flex; gap: 30px; overflow-x: auto; scrollbar-width: none; }
.strip nav::-webkit-scrollbar { display: none; }
.strip nav a { font: 400 12px/18px var(--sans-m); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 17px 0 16px; white-space: nowrap; }
.strip nav a:hover { color: var(--ink); }
.strip nav a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }
.strip nav a.later { color: var(--soft); }
.strip .lbl { font: 400 12px/18px var(--sans-m); letter-spacing: .24em; text-transform: uppercase; color: var(--ink); flex: none; padding-right: 28px; border-right: 1px solid var(--rule); }
.secstrip { background: var(--ground); }
.secstrip nav a[aria-current="page"] { box-shadow: inset 0 -1px 0 var(--acc); color: var(--ink); }
.cohome { display: flex; align-items: center; flex: none; padding-right: 28px; border-right: 1px solid var(--rule); text-decoration: none; }
.mk { display: inline-flex; align-items: center; gap: 9px; }
.mk .rl { width: 92px; height: auto; display: block; }
.mk img.f { width: 20px; height: auto; } .mk img.w { width: 48px; height: auto; }
.mk.tw { font: 400 18px/1 var(--serif); color: var(--ink); }

/* ---------- page ---------- */
main.wrap { padding: 48px 0 96px; min-height: 52vh; }
.head { display: flex; align-items: flex-end; justify-content: space-between; gap: 24px; flex-wrap: wrap; margin-bottom: 36px; }
.head .lede, .lede { margin-top: 14px; color: var(--muted); max-width: 64ch; font-size: 16px; line-height: 1.65; }
.head .acts { display: flex; gap: 12px; flex-wrap: wrap; align-items: center; }
.head h2 { margin-top: 4px; }

/* buttons: the website's black block button, its outline twin, and its underlined text link */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 12px; font: 400 12.5px/1 var(--sans-m); letter-spacing: .16em; text-transform: uppercase; text-decoration: none; cursor: pointer;
  min-height: 48px; padding: 0 24px; border-radius: 0; border: 1px solid var(--ink); background: var(--ink); color: #fff; white-space: nowrap; transition: background .25s, color .25s, border-color .25s; }
.btn:hover { background: #000; border-color: #000; color: #fff; }
.btn.alt { background: transparent; color: var(--ink); border-color: var(--ink); }
.btn.alt:hover { background: var(--ink); color: #fff; }
.btn.quiet { background: transparent; border: 0; color: var(--ink); padding: 0 0 6px; min-height: 0; box-shadow: inset 0 -1px 0 currentColor; }
.btn.quiet:hover { background: transparent; color: var(--ink); box-shadow: inset 0 -1px 0 transparent; }
.btn.danger { background: transparent; border-color: var(--bad); color: var(--bad); }
.btn.danger:hover { background: var(--bad); color: #fff; }
.btn.sm { min-height: 38px; padding: 0 16px; font-size: 11.5px; letter-spacing: .14em; }
.btn[disabled], .btn[disabled]:hover { opacity: .35; cursor: not-allowed; background: var(--ink); color: #fff; }
.btn.alt[disabled] { background: transparent; color: var(--ink); }
.btn svg { width: 16px; height: 16px; }
.lnk { display: inline-flex; align-items: center; gap: 12px; font: 400 12.5px/1.5 var(--sans-m); letter-spacing: .18em; text-transform: uppercase; color: var(--ink); padding-bottom: 6px; text-decoration: none; white-space: nowrap; position: relative; }
/* the website's link underline: it wipes away and redraws on hover */
.lnk::after { content: ""; position: absolute; left: 0; bottom: 0; height: 1px; width: 100%; background: currentColor; transform-origin: right; transition: transform .45s cubic-bezier(.7,0,.2,1); }
.lnk:hover::after { transform: scaleX(0); transform-origin: left; animation: hubRelink .9s .45s forwards; }
@keyframes hubRelink { to { transform: scaleX(1); transform-origin: left; } }
.lnk .ar { width: 20px; height: 13px; flex: none; transition: transform .35s ease; }
.lnk:hover .ar { transform: translateX(5px); }
.lnk.light, .lnk.light:hover { color: #fff; }

/* panels: hairline boxes, no rounding */
.panel { background: var(--panel); border: 1px solid var(--rule); border-radius: 0; }
.panel > .ph { padding: 18px 24px; border-bottom: 1px solid var(--rule); display: flex; align-items: center; justify-content: space-between; gap: 12px; flex-wrap: wrap; }
.panel > .pb { padding: 28px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 20px; }

/* messages */
.flash { padding: 14px 18px; margin-bottom: 18px; font-size: 14.5px; border: 1px solid transparent; border-left-width: 2px; border-radius: 0; }
.flash.ok { background: var(--ok-bg); color: var(--ok); border-color: rgba(31,107,69,.2); border-left-color: var(--ok); }
.flash.error { background: var(--bad-bg); color: var(--bad); border-color: rgba(163,38,31,.2); border-left-color: var(--bad); }
.flash.info { background: var(--info-bg); color: var(--info); border-color: rgba(37,60,123,.18); border-left-color: var(--info); }
.flash.warn { background: var(--warn-bg); color: var(--warn); border-color: rgba(138,90,0,.2); border-left-color: var(--warn); }

/* figures across the top of a list */
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 0; margin-bottom: 32px; border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.stat { background: #fff; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); padding: 22px 24px; text-decoration: none; color: var(--ink); display: block; }
.stat:hover { background: var(--ground); color: var(--ink); }
.stat b { display: block; font: 400 34px/1 var(--sans-m); letter-spacing: -.01em; margin-bottom: 12px; }
.stat span { font: 400 11.5px/1.4 var(--sans-m); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.stats.five { grid-template-columns: repeat(5, minmax(0, 1fr)); }
.stat.on { background: var(--ground); box-shadow: inset 0 -2px 0 var(--acc); }

/* lists */
.bar { display: flex; flex-wrap: wrap; gap: 14px 20px; align-items: center; padding: 16px 24px; border-bottom: 1px solid var(--rule); }
.bar input[type=search] { flex: 1 1 260px; }
.bar select { flex: 0 1 200px; }
.bar .grow { flex: 1; }
.tablewrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
th { text-align: left; font: 400 11px/1.3 var(--sans-m); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); padding: 14px 16px; border-bottom: 1px solid var(--rule); background: #fff; white-space: nowrap; }
td { padding: 13px 16px; border-bottom: 1px solid var(--rule-soft); vertical-align: middle; }
tr:last-child td { border-bottom: 0; }
tbody tr:hover td { background: #fafbfc; }
td.chk, th.chk { width: 48px; text-align: center; }
td .thumb { width: 38px; height: 46px; border-radius: 0; object-fit: cover; background: var(--ground); display: block; filter: grayscale(1); }
.co-piya td .thumb { filter: none; }
td .thumb.none { display: grid; place-items: center; text-align: center; font-size: 9px; line-height: 1.15; padding: 8px 2px 0; color: var(--soft); }
td a.name { font: 400 15px/1.4 var(--sans-m); color: var(--ink); text-decoration: none; }
td a.name:hover { text-decoration: underline; }
.sub { display: block; font-size: 13px; color: var(--muted); }
.empty { padding: 56px 24px; text-align: center; color: var(--muted); }
.empty h3 { color: var(--ink); margin-bottom: 8px; }
input[type=checkbox] { width: 17px; height: 17px; accent-color: var(--ink); }

.badge { display: inline-flex; align-items: center; gap: 7px; font: 400 11px/1 var(--sans-m); letter-spacing: .12em; text-transform: uppercase; padding: 0; white-space: nowrap; background: none; }
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge.active { color: var(--ok); }
.badge.left { color: var(--soft); }
.badge.suspended, .badge.expired { color: var(--warn); }
.badge.print { color: var(--info); }
.swatch { display: inline-block; width: 10px; height: 10px; border-radius: 0; vertical-align: -1px; margin-right: 8px; }

.selbar { position: sticky; bottom: 16px; z-index: 15; margin-top: 18px; display: flex; align-items: center; gap: 14px; flex-wrap: wrap;
  background: #000; color: #fff; border-radius: 0; padding: 12px 14px 12px 22px; box-shadow: 0 12px 30px rgba(0,0,0,.22); }
.selbar .grow { flex: 1; font-size: 14px; }
.selbar .btn { background: #fff; color: #000; border-color: #fff; }
.selbar .btn:hover { background: transparent; color: #fff; }
.selbar .btn.alt { background: transparent; color: #fff; border-color: var(--wrule); }
.selbar .btn.alt:hover { border-color: #fff; }

/* forms: the website's small capital labels over underlined fields */
form .f { display: grid; gap: 8px; margin-bottom: 26px; align-content: start; }
label, .lab { font: 400 11.5px/1.4 var(--sans-m); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); display: flex; justify-content: space-between; gap: 10px; align-items: baseline; }
.count { font: 400 11.5px/1 var(--sans); letter-spacing: .04em; text-transform: none; color: var(--soft); font-variant-numeric: tabular-nums; }
.count.near { color: var(--warn); }
.hint { font-size: 13px; color: var(--muted); line-height: 1.5; }
.hint.bad { color: var(--bad); }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=url], select {
  font: 400 16px/1.3 var(--sans); color: var(--ink); background: transparent; border: 0; border-bottom: 1px solid var(--line2); border-radius: 0; padding: 10px 0; width: 100%; min-height: 46px; }
select { padding-right: 24px; cursor: pointer; }
textarea { font: 400 15px/1.5 var(--sans); color: var(--ink); background: #fff; border: 1px solid var(--line2); border-radius: 0; padding: 12px 14px; width: 100%; min-height: 96px; resize: vertical; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink); box-shadow: 0 1px 0 var(--ink); }
textarea:focus { box-shadow: inset 0 0 0 1px var(--ink); }
.btn:focus-visible, a:focus-visible, button:focus-visible { outline: 2px solid var(--ink); outline-offset: 3px; }
input[readonly] { color: var(--muted); }
.f.err input, .f.err select { border-color: var(--bad); box-shadow: 0 1px 0 var(--bad); }
input::placeholder { color: var(--soft); }
.row2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 0 28px; }
.row3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 28px; }

/* password fields: Show / Hide inside the underline, a live checklist and a live match line */
.pw { position: relative; }
.pw input { padding-right: 64px; }
.pw .eye { position: absolute; right: 0; bottom: 1px; height: 44px; padding: 0 0 0 12px; background: none; border: 0; cursor: pointer;
  font: 400 11.5px/1 var(--sans-m); letter-spacing: .16em; text-transform: uppercase; color: var(--muted); }
.pw .eye:hover, .pw .eye[aria-pressed="true"] { color: var(--ink); }
input[type=password]::-ms-reveal, input[type=password]::-ms-clear { display: none; }
.pwrules { list-style: none; margin: 2px 0 0; padding: 0; display: flex; flex-wrap: wrap; gap: 4px 20px; font-size: 13px; line-height: 1.5; color: var(--muted); }
.pwrules li { display: flex; align-items: center; gap: 8px; }
.pwrules li::before { content: ""; width: 8px; height: 8px; border: 1px solid var(--soft); border-radius: 50%; flex: none; }
.pwrules li.ok { color: var(--ok); }
.pwrules li.ok::before { background: var(--ok); border-color: var(--ok); }
.hint.match:empty { display: none; }
.hint.match.ok { color: var(--ok); }
.hint.match.bad { color: var(--bad); }
.seg { display: inline-flex; flex-wrap: wrap; justify-self: start; max-width: 100%; border: 1px solid var(--ink); border-radius: 0; overflow: hidden; background: #fff; }
.seg label { margin: 0; cursor: pointer; color: var(--ink); }
.seg input { position: absolute; opacity: 0; pointer-events: none; }
.seg span { display: block; padding: 12px 18px; font: 400 11.5px/1.2 var(--sans-m); letter-spacing: .14em; border-right: 1px solid var(--ink); }
.seg label:last-child span { border-right: 0; }
.seg input:checked + span { background: var(--ink); color: #fff; }
.seg input:focus-visible + span { outline: 2px solid var(--ink); outline-offset: -4px; }
.formfoot { display: flex; gap: 18px; flex-wrap: wrap; align-items: center; padding-top: 10px; }

/* editor: the form on the left, the live card on the right */
.editor { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 470px); gap: 32px; align-items: start; }
.stage { position: sticky; top: 100px; }
.stage .panel { padding: 26px; background: var(--ground); border-color: transparent; }
.stage .cap { font: 400 11.5px/1.5 var(--sans-m); letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin-bottom: 18px; display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; }
.pair { display: flex; gap: 20px; justify-content: center; flex-wrap: wrap; }
.view { --s: 1.55; width: calc(54mm * var(--s)); height: calc(85.6mm * var(--s)); position: relative; flex: none; }
.view > .idc { transform: scale(var(--s)); transform-origin: 0 0; border-radius: 3.2mm; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.14); }
.view > .rspc { transform: scale(var(--s)); transform-origin: 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 28px rgba(10,16,36,.18); }
.view.bcv { --s: 1.2; width: calc(88.9mm * var(--s)); height: calc(50.8mm * var(--s)); }
.view.bcv > .bc { transform: scale(var(--s)); transform-origin: 0 0; box-shadow: 0 1px 2px rgba(0,0,0,.08), 0 12px 28px rgba(0,0,0,.12); }
.vcap { text-align: center; font: 400 11px/1 var(--sans-m); color: var(--muted); margin-top: 12px; letter-spacing: .2em; text-transform: uppercase; }
.fitwarn { margin-top: 16px; }

.photo-pick { display: flex; gap: 16px; align-items: center; }
.photo-pick .ph { width: 64px; height: 78px; border-radius: 0; background: var(--ground); overflow: hidden; flex: none; display: grid; place-items: center; font-size: 11px; color: var(--soft); }
.photo-pick .ph img { width: 100%; height: 100%; object-fit: cover; display: block; }
.co-rsp .photo-pick .ph img { filter: grayscale(1) contrast(1.16) brightness(1.04); }

/* photo cropper */
.modal { position: fixed; inset: 0; background: rgba(0,0,0,.6); display: grid; place-items: center; z-index: 50; padding: 16px; }
.modal .box { background: #fff; border-radius: 0; width: min(560px, 100%); max-height: 100%; overflow: auto; padding: 32px; }
.modal h2 { margin-bottom: 8px; }
.crop { position: relative; width: 300px; height: 348px; margin: 20px auto; touch-action: none; cursor: grab; overflow: hidden; border-radius: 0; background: var(--ground); }
.crop canvas { position: absolute; inset: 0; width: 100%; height: 100%; }
.crop .guide { position: absolute; left: 50%; top: 18%; width: 46%; height: 38%; transform: translateX(-50%); border: 1.5px dashed rgba(255,255,255,.9); border-radius: 50% 50% 46% 46%; pointer-events: none; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.zoom { display: flex; align-items: center; gap: 12px; margin: 0 auto 18px; max-width: 320px; font-size: 13px; color: var(--muted); }
.zoom input { flex: 1; accent-color: var(--ink); }

/* policy */
.doc { max-width: 820px; }
.doc section { padding: 30px 0; border-top: 1px solid var(--rule); }
.doc section:first-of-type { border-top: 0; padding-top: 0; }
.doc h2 { margin-bottom: 14px; }
.doc p, .doc li { color: #2b2d31; }
.doc ul { margin: 10px 0 0; padding-left: 20px; display: grid; gap: 8px; }
.doc table { margin-top: 12px; border: 1px solid var(--rule); }
.doc td, .doc th { padding: 11px 14px; }

/* settings tabs: the same small capital links as the strips */
.tabs { display: flex; gap: 30px; margin-bottom: 30px; flex-wrap: wrap; border-bottom: 1px solid var(--rule); }
.tabs a { font: 400 12px/18px var(--sans-m); letter-spacing: .18em; text-transform: uppercase; color: var(--muted); text-decoration: none; padding: 0 0 14px; }
.tabs a:hover { color: var(--ink); }
.tabs a[aria-current="page"] { color: var(--ink); box-shadow: inset 0 -1px 0 var(--ink); }

/* sign in and setup */
.gate { padding: 72px 0 110px; display: grid; place-items: start center; }
.gate .box { width: min(440px, 100%); }
.gate h1 { margin-bottom: 10px; }
.gate .lede { margin: 0 0 34px; }
.gate .btn { width: 100%; margin-top: 6px; }
.gatefoot { margin-top: 24px; text-align: center; font-size: 14px; }
.gatefoot a { color: var(--muted); }
.gatefoot a:hover { color: var(--ink); }

/* your account: password and email side by side */
.acct { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 24px; align-items: start; max-width: 1060px; }
.acct h2 { margin-bottom: 20px; }
.site-top .home + .me { margin-left: auto; padding-left: 0; border-left: 0; }
.site-top .me span { color: #fff; font: 400 14px/1 var(--sans); white-space: nowrap; }

/* putting the hub on a phone or laptop */
.install { display: grid; grid-template-columns: 112px minmax(0, 1fr); gap: 28px; align-items: start; }
.install img { width: 112px; height: 112px; border-radius: 24px; display: block; }
.install .steps { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 22px 28px; margin-top: 18px; }
.install .steps h3 { font: 400 11.5px/1.4 var(--sans-m); letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-bottom: 8px; }
.install .steps p { font-size: 14px; color: #2b2d31; line-height: 1.6; }

.print-hint { display: flex; gap: 14px; align-items: flex-start; background: var(--ground); border: 0; border-left: 2px solid var(--ink); border-radius: 0; padding: 16px 18px; font-size: 14px; color: #2b2d31; }

/* ---------- hub home ---------- */
.colist { border-top: 1px solid var(--rule); margin-bottom: 72px; }
.corow { display: grid; grid-template-columns: 56px minmax(0, 1.25fr) minmax(0, 1fr) auto; align-items: center; gap: 24px; padding: 26px 0; border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); }
.corow:hover { color: var(--ink); background: linear-gradient(90deg, var(--ground), #fff 70%); }
.corow .n { font: 300 12px/1 "Gotham-l", var(--sans); letter-spacing: .22em; color: var(--muted); }
.corow .nm { display: flex; align-items: center; gap: 18px; flex-wrap: wrap; }
.corow .nm b { font: 400 clamp(22px, 2vw, 28px)/1.15 var(--serif); }
.corow .st { color: var(--muted); font-size: 14.5px; }
.corow .st em { font-style: normal; color: var(--ink); font-family: var(--sans-m); }
.corow.later .nm b { color: var(--soft); }
.corow .lnk { justify-self: end; }
.corow.later .lnk { color: var(--soft); }
.toolgrid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); border-top: 1px solid var(--rule); border-left: 1px solid var(--rule); }
.tool-c { display: flex; flex-direction: column; gap: 10px; padding: 26px 28px 24px; border-right: 1px solid var(--rule); border-bottom: 1px solid var(--rule); text-decoration: none; color: var(--ink); min-height: 176px; }
.tool-c:hover { background: var(--ground); color: var(--ink); }
.tool-c b { font: 400 21px/1.25 var(--serif); }
.tool-c span { font-size: 14px; color: var(--muted); line-height: 1.55; }
.tool-c i { font: 400 11px/1.5 var(--sans-m); font-style: normal; letter-spacing: .16em; text-transform: uppercase; color: var(--ink); margin-top: auto; padding-top: 8px; display: flex; align-items: center; gap: 10px; overflow-wrap: anywhere; }
.tool-c i .ar { width: 18px; height: 12px; flex: none; }
.sechead { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 26px; flex-wrap: wrap; }
.soonbox { max-width: 640px; padding: 24px 0 40px; }
.soonbox .lede { margin: 16px 0 32px; }

/* ---------- footer: the website's ---------- */
.site-foot { background: #000; color: #fff; padding: 80px 0 32px; font-size: 14px; }
.site-foot a { color: inherit; text-decoration: none; }
.ftop { display: flex; justify-content: space-between; align-items: flex-end; gap: 40px; padding-bottom: 44px; border-bottom: 1px solid var(--wrule); }
.fbrand .flogo { width: 132px; height: auto; display: block; }
.fbrand p { font: 400 18px/1.6 var(--serif); color: rgba(255,255,255,.66); margin: 22px 0 0; }
.fcta { text-align: right; max-width: 520px; }
.fcta h2 { font: 400 clamp(24px, 2.1vw, 30px)/1.25 var(--serif); color: #fff; max-width: 15ch; margin: 0 0 20px auto; }
.fgrid { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 40px; padding: 48px 0 56px; }
.fcol h6 { font: 400 12px/1.2 var(--sans-m); letter-spacing: .24em; text-transform: uppercase; color: #fff; margin: 0 0 22px; }
.fcol ul { margin: 0; padding: 0; list-style: none; }
.fcol li { margin: 0 0 12px; }
.fcol li a { font: 400 15px/1.5 var(--sans); letter-spacing: .01em; color: rgba(255,255,255,.66); transition: color .3s; }
.fcol li a:hover { color: #fff; }
.fcol .hrs { display: block; font-size: 13px; color: rgba(255,255,255,.5); margin-top: 2px; }
.fbot { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding-top: 24px; border-top: 1px solid var(--wrule); font: 400 13px/1.5 var(--sans); letter-spacing: .04em; color: rgba(255,255,255,.5); flex-wrap: wrap; }

@media print {
  body { background: #fff; font-size: 12px; }
  .site-top, .strip, .site-foot, .head .acts, .tabs, .selbar, .kicker { display: none !important; }
  main.wrap { padding: 0; width: auto; }
  .panel { border: 0; }
  .panel > .pb { padding: 0; }
  .doc section { break-inside: avoid; padding: 14px 0; }
}
@media (max-width: 1100px) {
  .editor { grid-template-columns: minmax(0, 1fr); }
  .stage { position: static; order: -1; }
  .stats, .stats.five { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .toolgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 991px) {
  .site-top .wrap { flex-wrap: wrap; row-gap: 0; }
  .hubnav { order: 3; flex-basis: 100%; margin-left: 0; gap: 26px; overflow-x: auto; padding-bottom: 12px; scrollbar-width: none; }
  .site-top .me { margin-left: auto; padding-left: 0; border-left: 0; }
  .ftop { flex-direction: column; align-items: flex-start; gap: 32px; }
  .fcta { text-align: left; max-width: none; }
  .fcta h2 { margin-left: 0; }
  .fgrid { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 36px 28px; padding: 44px 0 48px; }
  .corow { grid-template-columns: 40px minmax(0, 1fr); gap: 8px 16px; }
  .corow .st, .corow .lnk { grid-column: 2; justify-self: start; }
  .install { grid-template-columns: minmax(0, 1fr); gap: 18px; }
}
@media (max-width: 760px) {
  .site-top { position: static; }
  .site-top .wrap { min-height: 64px; }
  .site-top .logo { width: 112px; }
  .site-top .me a, .site-top .me span, .site-top .site { display: none; }
  .acct { grid-template-columns: minmax(0, 1fr); }
  .install { grid-template-columns: minmax(0, 1fr); gap: 18px; }
  .install img { width: 84px; height: 84px; border-radius: 18px; }
  .install .steps { grid-template-columns: minmax(0, 1fr); }
  .strip .lbl { display: none; }
  .cohome { padding-right: 18px; }
  .grid2, .row2, .row3, .grid3 { grid-template-columns: minmax(0, 1fr); }
  .toolgrid { grid-template-columns: minmax(0, 1fr); }
  main.wrap { padding: 32px 0 72px; }
  .view { --s: 1.25; }
  .view.bcv { --s: .9; }
  .hide-sm { display: none; }
  .panel > .pb { padding: 20px; }
  .bar { padding: 14px 16px; }
  .fgrid { grid-template-columns: minmax(0, 1fr); }
  .fbot { flex-direction: column; align-items: flex-start; gap: 8px; }
}
@media (max-width: 380px) { .view.bcv { --s: .8; } .view:not(.bcv) { --s: 1.15; } }
.site-foot.solo .ftop { border-bottom: 0; }
/* links in scrolling rows keep their width instead of squeezing into each other */
.strip nav a, .hubnav a, .tabs a { flex: none; }
@media (max-width: 991px) {
  .site-top .wrap { padding-top: 16px; }
  .site-top .home, .site-top .me { min-height: 44px; }
  .hubnav { padding-top: 6px; }
}
@media (max-width: 760px) {
  .site-top .wrap { min-height: 0; }
  .corow { padding: 22px 0; }
}

/* ================= motion =================
   The website's easing. Short, and only where it helps you see what changed.
   Anyone who has asked their device for less motion gets none of it. */
:root { --ease: cubic-bezier(.2,.7,.2,1); }
.btn { transition: background .3s, color .3s, border-color .3s, transform .2s var(--ease); }
.btn:active:not([disabled]) { transform: translateY(1px); }
input[type=text], input[type=search], input[type=password], input[type=email], input[type=tel], input[type=date], input[type=number], input[type=url], select { transition: border-color .25s, box-shadow .25s; }
.corow .nm b, .tool-c b { transition: transform .5s var(--ease); }
.corow:hover .nm b, .tool-c:hover b { transform: translateX(6px); }
.corow:hover .lnk .ar, .tool-c:hover i .ar { transform: translateX(5px); }
.tool-c i .ar { transition: transform .35s ease; }
.tool-c, .corow { transition: background .35s ease; }

/* a button that has been pressed shows it is working and cannot be pressed twice */
.btn.busy, .btn.busy[disabled] { opacity: 1; cursor: progress; position: relative; overflow: hidden; }
.btn.busy::after { content: ""; position: absolute; left: 0; bottom: 0; height: 2px; width: 34%; background: currentColor; opacity: .9; }

/* confirmation box, in the hub's own style */
dialog.confirm { border: 0; padding: 0; width: min(480px, calc(100% - 32px)); max-width: none; background: #fff; color: var(--ink); box-shadow: 0 30px 80px rgba(0,0,0,.28); }
dialog.confirm::backdrop { background: rgba(17,18,20,.55); }
dialog.confirm form { margin: 0; padding: 32px 32px 28px; }
dialog.confirm .q { font: 400 20px/1.45 var(--serif); margin: 0 0 28px; }
dialog.confirm .acts { display: flex; gap: 12px; justify-content: flex-end; flex-wrap: wrap; }
dialog.confirm .btn.danger { background: var(--bad); border-color: var(--bad); color: #fff; }
dialog.confirm .btn.danger:hover { background: #7f1d18; border-color: #7f1d18; }

/* putting the hub on this device */
.installbar { display: flex; align-items: center; gap: 18px; padding: 16px 20px; background: #000; color: #fff; margin: 0 0 30px; flex-wrap: wrap; }
.installbar img { width: 44px; height: 44px; border-radius: 10px; flex: none; }
.installbar p { flex: 1 1 260px; font-size: 14.5px; line-height: 1.5; color: rgba(255,255,255,.78); }
.installbar p b { color: #fff; }
.installbar .btn { background: #fff; color: #000; border-color: #fff; min-height: 42px; }
.installbar .btn:hover { background: transparent; color: #fff; }
.installbar .x { background: none; border: 0; color: rgba(255,255,255,.6); font: 400 12px/1 var(--sans-m); letter-spacing: .16em; text-transform: uppercase; cursor: pointer; padding: 10px 0; }
.installbar .x:hover { color: #fff; }
.install .now { display: flex; gap: 14px; align-items: center; flex-wrap: wrap; margin-top: 20px; }
.install .done { color: var(--ok); font-size: 14.5px; }
.install .qr { display: flex; gap: 18px; align-items: center; margin-top: 22px; padding-top: 20px; border-top: 1px solid var(--rule); }
.install .qr svg { width: 112px; height: 112px; flex: none; }
.install .qr p { font-size: 14px; color: #2b2d31; max-width: 40ch; }

/* safety and backups */
.safety { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
.facts { margin: 14px 0 0; display: grid; gap: 12px; }
.facts div { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 16px; padding-bottom: 12px; border-bottom: 1px solid var(--rule-soft); }
.facts dt { font-size: 14px; color: var(--muted); }
.facts dd { margin: 0; font-family: var(--sans-m); font-size: 14.5px; text-align: right; }
.facts dd .mut { font-family: var(--sans); }
.warnline { color: var(--warn); }
tr.blocked td { color: var(--soft); }
tr.blocked td b { color: var(--muted); }
@media (max-width: 991px) { .safety { grid-template-columns: minmax(0, 1fr); } }

@media (prefers-reduced-motion: no-preference) {
  /* each page settles in from just below, a beat apart */
  main.wrap > *, .gate .box > * { animation: hubIn .6s var(--ease) backwards; }
  main.wrap > :nth-child(2), .gate .box > :nth-child(2) { animation-delay: .04s; }
  main.wrap > :nth-child(3), .gate .box > :nth-child(3) { animation-delay: .08s; }
  main.wrap > :nth-child(4), .gate .box > :nth-child(4) { animation-delay: .12s; }
  main.wrap > :nth-child(5), .gate .box > :nth-child(5) { animation-delay: .16s; }
  main.wrap > :nth-child(6), .gate .box > :nth-child(6) { animation-delay: .2s; }
  main.wrap > :nth-child(n+7), .gate .box > :nth-child(n+7) { animation-delay: .24s; }
  .flash { animation: hubDrop .55s var(--ease) backwards; }
  .pwrules li.ok::before { animation: hubPop .35s var(--ease); }
  .hint.match { animation: hubFade .3s ease; }
  .btn.busy::after { animation: hubBusy 1.1s var(--ease) infinite; }
  dialog.confirm[open] { animation: hubRise .35s var(--ease); }
  dialog.confirm[open]::backdrop { animation: hubFade .3s ease; }
  .installbar:not([hidden]) { animation: hubDrop .6s var(--ease) backwards; }
}
@keyframes hubIn { from { opacity: 0; transform: translateY(14px); } }
@keyframes hubDrop { from { opacity: 0; transform: translateY(-8px); } }
@keyframes hubFade { from { opacity: 0; } }
@keyframes hubPop { 0% { transform: scale(.4); } 60% { transform: scale(1.35); } 100% { transform: scale(1); } }
@keyframes hubRise { from { opacity: 0; transform: translateY(16px) scale(.98); } }
@keyframes hubBusy { from { transform: translateX(-100%); } to { transform: translateX(300%); } }
@media print { main.wrap > *, .flash { animation: none !important; } }
