/* Xpress Vault console. Brand: navy #0A2350, red #DF2726, blue #1068B3, stripe yellow/orange/blue/green.
   Fonts are served from /fonts (SIL Open Font License, see fonts/OFL-*.txt). */
@font-face { font-family: "Inter"; font-weight: 400; font-display: swap; src: url(fonts/inter-latin-400-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 600; font-display: swap; src: url(fonts/inter-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Inter"; font-weight: 700; font-display: swap; src: url(fonts/inter-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 600; font-display: swap; src: url(fonts/poppins-latin-600-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 700; font-display: swap; src: url(fonts/poppins-latin-700-normal.woff2) format("woff2"); }
@font-face { font-family: "Poppins"; font-weight: 800; font-display: swap; src: url(fonts/poppins-latin-800-normal.woff2) format("woff2"); }

:root {
  --red: #df2726; --red-dark: #b81d1c; --blue: #1068b3; --navy: #0a2350; --yellow: #ffcb05; --orange: #ef4023; --green: #0db14b; --amber: #f5a400;
  --bg: #f3f5f9; --card: #ffffff; --text: #0a2350; --body: #2b3550; --muted: #5a6478; --line: #e7ebf2; --field: #c8cfdb;
  --ok-bg: #e6f6ec; --ok: #0a6b33; --warn-bg: #fff4d6; --warn: #7a5000; --bad-bg: #fde7e6; --bad: #b3191a; --info-bg: #e5f0fa;
  --shadow: 0 1px 4px rgba(10, 35, 80, .06); --head: Poppins, Inter, "Segoe UI", system-ui, sans-serif;
  font-family: Inter, "Segoe UI", system-ui, -apple-system, sans-serif;
  color: var(--text); background: var(--bg);
}
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-height: 100vh; background: var(--bg); }
a { color: var(--blue); }
a:hover { color: var(--navy); }

/* ---- top bar ---- */
.top { background: var(--navy); color: #fff; position: relative; z-index: 5; }
.top .bar { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 20px; padding: 12px 24px; max-width: 1400px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; color: #fff; }
.brand:hover { color: #fff; }
.brand svg { width: 34px; height: 34px; flex: none; }
.brand .word { font-family: var(--head); font-size: 21px; font-weight: 800; line-height: 1; letter-spacing: -.3px; white-space: nowrap; }
.brand .word b { color: #ff5a4e; font-weight: 800; }
.top .org { color: #c9d3e6; font-size: 13px; font-weight: 600; padding-left: 12px; margin-left: 2px; border-left: 1px solid rgba(255,255,255,.25); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 220px; }
.top .org:empty { display: none; }
@media (max-width: 700px) { .top .org { display: none; } }
#nav { display: flex; flex-wrap: wrap; gap: 4px; flex: 1 1 auto; }
#nav a { color: #fff; font-weight: 600; font-size: 14px; padding: 9px 14px; border-radius: 20px; text-decoration: none; white-space: nowrap; }
#nav a:hover { background: rgba(255, 255, 255, .1); }
#nav a.on { background: var(--yellow); color: var(--navy); font-weight: 700; padding: 9px 16px; }
.top .right { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.account { position: relative; }
.account > button { display: flex; align-items: center; gap: 8px; background: none; border: 0; color: #fff; padding: 4px 6px; font-weight: 600; font-size: 14px; border-radius: 22px; }
.account > button:hover { background: rgba(255, 255, 255, .1); }
.avatar { width: 32px; height: 32px; border-radius: 50%; background: var(--blue); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 14px; flex: none; }
#menu { position: absolute; right: 0; top: calc(100% + 8px); background: #fff; color: var(--text); border-radius: 14px; box-shadow: 0 12px 32px rgba(10, 35, 80, .25); padding: 8px; min-width: 240px; z-index: 20; }
#menu .who { padding: 8px 12px 10px; border-bottom: 1px solid var(--line); margin-bottom: 6px; font-size: 13px; color: var(--muted); overflow-wrap: anywhere; }
#menu .who b { display: block; color: var(--text); font-size: 14px; }
#menu button, #menu a { display: block; width: 100%; text-align: left; background: none; border: 0; color: var(--text); padding: 9px 12px; border-radius: 8px; font-weight: 600; font-size: 14px; text-decoration: none; }
#menu button:hover, #menu a:hover { background: var(--bg); }
.stripe { display: flex; height: 4px; }
.stripe i { flex: 1; }
.stripe i:nth-child(1) { background: var(--yellow); } .stripe i:nth-child(2) { background: var(--orange); }
.stripe i:nth-child(3) { background: var(--blue); } .stripe i:nth-child(4) { background: var(--green); }

/* Staff looking at one customer: the customer's own menu under the main bar. */
#subnav { background: #fff; border-bottom: 1px solid var(--line); }
#subnav .in { max-width: 1400px; margin: 0 auto; padding: 8px 24px; display: flex; flex-wrap: wrap; gap: 6px 16px; align-items: center; }
#subnav .cust { display: flex; align-items: center; gap: 10px; font-weight: 700; }
#subnav .cust a.back { font-weight: 600; font-size: 13px; text-decoration: none; }
#subnav .cust .via { font-weight: 500; color: var(--muted, #5b6680); font-size: 13px; }
#subnav .cust button.edit { font-size: 13px; }
#subnav nav { display: flex; flex-wrap: wrap; gap: 2px; }
#subnav nav a { color: var(--body); font-weight: 600; font-size: 14px; padding: 7px 12px; border-radius: 16px; text-decoration: none; }
#subnav nav a:hover { background: var(--bg); }
#subnav nav a.on { background: var(--navy); color: #fff; }
.initial { width: 32px; height: 32px; border-radius: 9px; background: var(--navy); color: #fff; display: grid; place-items: center; font-weight: 700; font-size: 15px; flex: none; }

#crumbs { font-size: 13px; color: var(--muted); margin: 0 0 10px; min-height: 0; }
#crumbs:empty { display: none; }
#crumbs a { color: var(--blue); text-decoration: none; font-weight: 600; }
#crumbs span.sep { margin: 0 6px; }

main { max-width: 1180px; margin: 0 auto; padding: 26px 20px 64px; }
h1 { color: var(--navy); font-family: var(--head); font-size: 30px; font-weight: 700; margin: 0 0 4px; line-height: 1.2; }
h2 { color: var(--navy); font-family: var(--head); font-size: 19px; font-weight: 700; margin: 0 0 12px; }
.sub { color: var(--muted); margin: 0 0 20px; font-size: 14px; line-height: 1.5; }
.muted { color: var(--muted); }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 12px 20px; flex-wrap: wrap; margin-bottom: 18px; }
.page-head .sub { margin-bottom: 0; }
.page-head .row { margin: 0; }

/* ---- cards ---- */
.card { background: var(--card); border-radius: 18px; padding: 22px; margin-bottom: 20px; box-shadow: var(--shadow); }
.card-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; margin-bottom: 12px; }
.card-head h2 { margin: 0; }
.card-head > a { color: var(--blue); font-weight: 600; text-decoration: none; font-size: 14px; }
.card-head > a:hover { text-decoration: underline; }
.cols { display: flex; flex-wrap: wrap; gap: 20px; margin-bottom: 20px; }
.cols > .card { flex: 1 1 420px; min-width: 0; margin-bottom: 0; }

/* Dashboard hero with the protection score */
.hero { background: linear-gradient(120deg, #fff 60%, #fff8dd); border-radius: 22px; padding: 30px; display: flex; flex-wrap: wrap; gap: 24px; align-items: center; box-shadow: 0 2px 10px rgba(10, 35, 80, .06); margin-bottom: 28px; }
.hero .txt { flex: 1 1 460px; min-width: 0; }
.hero .who-row { display: flex; align-items: center; gap: 12px; }
.hero .who-row .initial { width: 44px; height: 44px; border-radius: 12px; font-size: 18px; }
.hero .who-row b { display: block; font-size: 18px; }
.hero .who-row span { color: var(--muted); font-size: 13px; }
.badge { display: inline-flex; align-items: center; gap: 8px; margin-top: 18px; font-weight: 700; font-size: 12px; letter-spacing: 1px; padding: 6px 12px; border-radius: 14px; text-transform: uppercase; }
.badge::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
.badge.ok { background: var(--ok-bg); color: var(--ok); } .badge.warn { background: var(--warn-bg); color: var(--warn); } .badge.bad { background: var(--bad-bg); color: var(--bad); }
.hero h1 { font-size: 38px; margin: 14px 0 0; }
.hero p.lead { margin: 10px 0 0; font-size: 17px; color: var(--body); line-height: 1.5; }
.hero .row { margin-top: 22px; gap: 12px; }
.hero .ring { flex: 0 0 220px; display: flex; justify-content: center; }
.ring svg { width: 210px; height: 210px; }
.ring .big { font-family: var(--head); font-size: 52px; font-weight: 800; fill: var(--navy); }
.ring .lbl { font-size: 13px; fill: var(--muted); }
.ring .grade { font-size: 14px; font-weight: 700; }

.section-title { display: flex; flex-wrap: wrap; align-items: baseline; gap: 6px 14px; margin: 0 0 14px; }
.section-title h2 { margin: 0; font-size: 22px; }
.section-title span { color: var(--muted); font-size: 13px; }

/* Stat cards with a coloured bottom edge */
.grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); margin-bottom: 28px; }
.stat { background: var(--card); border-radius: 16px; padding: 18px; border-bottom: 4px solid var(--blue); box-shadow: var(--shadow); text-decoration: none; color: var(--text); display: block; }
a.stat:hover { box-shadow: 0 4px 14px rgba(10, 35, 80, .12); color: var(--text); }
.stat.ok, .stat.warn, .stat.bad, .stat.info { background: var(--card); color: var(--text); }
.stat.ok { border-bottom-color: var(--green); } .stat.warn { border-bottom-color: var(--amber); } .stat.bad { border-bottom-color: var(--red); }
.stat .top-row { display: flex; justify-content: space-between; align-items: center; }
.stat .ico { width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; background: var(--info-bg); color: var(--blue); }
.stat.ok .ico { background: var(--ok-bg); color: var(--ok); } .stat.warn .ico { background: var(--warn-bg); color: var(--warn); } .stat.bad .ico { background: var(--bad-bg); color: var(--bad); }
.stat .ico svg { width: 18px; height: 18px; }
.stat .tag { font-size: 12px; font-weight: 700; padding: 3px 9px; border-radius: 10px; }
.stat.ok .tag { background: var(--ok-bg); color: var(--ok); } .stat.warn .tag { background: var(--warn-bg); color: var(--warn); } .stat.bad .tag { background: var(--bad-bg); color: var(--bad); }
.stat .name { margin-top: 14px; font-size: 13px; color: var(--muted); font-weight: 600; }
.stat b { display: block; font-family: var(--head); font-size: 28px; font-weight: 700; color: var(--navy); line-height: 1.2; margin-top: 2px; }
.stat span.note { font-size: 13px; color: var(--muted); }

/* ---- tables ---- */
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th { text-align: left; color: var(--muted); font-size: 12px; letter-spacing: .5px; font-weight: 600; text-transform: uppercase; padding: 10px 12px; white-space: nowrap; border-bottom: 1px solid var(--line); }
td { padding: 13px 12px; border-top: 1px solid var(--line); vertical-align: middle; }
tbody tr:first-child td { border-top: 0; }
tr.click { cursor: pointer; } tr.click:hover td { background: #f7f9fc; }
tr.attn td { background: #fffbeb; }
td a { color: var(--blue); font-weight: 600; text-decoration: none; }
.dev { display: flex; gap: 10px; align-items: center; }
.dev .dot { width: 10px; height: 10px; border-radius: 50%; background: var(--green); flex: none; }
.dev .dot.warn { background: var(--amber); } .dev .dot.bad { background: var(--red); } .dev .dot.idle { background: #a7b0c0; }
.dev b { display: block; font-weight: 600; color: var(--text); }
.dev small { color: var(--muted); font-size: 12px; }
.pill { display: inline-block; padding: 3px 10px; border-radius: 10px; font-size: 12px; font-weight: 600; white-space: nowrap; }
.ok { background: var(--ok-bg); color: var(--ok); } .warn { background: var(--warn-bg); color: var(--warn); }
.bad { background: var(--bad-bg); color: var(--bad); } .idle { background: #eef0f4; color: #2b3550; } .info { background: var(--info-bg); color: var(--navy); }

/* ---- buttons and forms ---- */
button, .btn { font: inherit; font-size: 14px; border-radius: 22px; padding: 9px 18px; cursor: pointer; border: 1px solid var(--blue); background: var(--blue); color: #fff; font-weight: 700; }
button:hover, .btn:hover { filter: brightness(1.08); }
button.cta, .btn.cta { background: var(--red); border-color: var(--red); box-shadow: 0 6px 16px rgba(223, 39, 38, .2); }
button.secondary, .btn.secondary { background: #fff; color: var(--navy); border-color: var(--field); font-weight: 600; }
button.secondary:hover, .btn.secondary:hover { border-color: var(--navy); filter: none; }
button.danger { background: #fff; color: var(--bad); border-color: var(--bad); }
button.link { background: none; border: 0; color: var(--blue); padding: 0; font-weight: 600; border-radius: 0; }
button.link:hover { text-decoration: underline; filter: none; }
.btn.big, button.big { padding: 13px 22px; font-size: 15px; border-radius: 24px; }
button:disabled { opacity: .5; cursor: default; filter: none; }
button:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 3px solid var(--yellow); outline-offset: 2px; }
.row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
label { display: block; font-size: 13px; font-weight: 600; color: var(--body); margin: 14px 0 6px; }
input, select, textarea { font: inherit; font-size: 15px; width: 100%; padding: 10px 13px; border: 1px solid var(--field); border-radius: 10px; background: #fff; color: var(--text); }
input:not([type=checkbox]):not([type=radio]) { min-height: 44px; }
input[type=checkbox], input[type=radio] { width: 18px; height: 18px; accent-color: var(--blue); margin: 0; flex: none; }
.inline select { width: auto; font-size: 13px; padding: 6px 10px; min-height: 0; border-radius: 8px; }
input::placeholder { color: #9aa3b2; }
textarea { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; resize: vertical; }
.hint { font-size: 12px; color: var(--muted); margin-top: 5px; line-height: 1.45; }
.error { color: var(--bad); font-size: 14px; margin-top: 10px; min-height: 1em; }
code, .code { font-family: ui-monospace, "Cascadia Mono", Consolas, monospace; font-size: 13px; }
.code { display: block; background: #0f1b33; color: #e8eefc; padding: 10px 12px; border-radius: 8px; white-space: pre-wrap; word-break: break-all; margin: 6px 0 12px; }
.checks { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 8px 14px; margin-top: 4px; }
.checks label { display: flex; gap: 10px; align-items: center; font-weight: 400; color: var(--text); margin: 0; font-size: 14px; }
.check-row { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; margin: 10px 0; color: var(--text); font-size: 14px; }
.check-row input { margin-top: 2px; }

/* Choice cards (radio) */
.choices { display: flex; flex-direction: column; gap: 10px; border: 0; padding: 0; margin: 0; }
.choices legend { font-size: 13px; font-weight: 600; margin-bottom: 8px; padding: 0; color: var(--body); }
.choice { display: flex; gap: 12px; align-items: flex-start; border: 1px solid #d5dbe5; border-radius: 12px; padding: 14px; margin: 0; font-weight: 400; cursor: pointer; color: var(--text); font-size: 14px; }
.choice:has(input:checked) { border: 2px solid var(--blue); background: #f2f7fd; padding: 13px; }
.choice input { margin-top: 2px; }
.choice strong { display: block; font-size: 15px; }
.choice span.d { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; line-height: 1.45; }
.tagline { display: inline-block; background: var(--ok-bg); color: var(--ok); font-size: 11px; font-weight: 700; padding: 2px 8px; border-radius: 8px; margin-left: 6px; vertical-align: 1px; }
.notice { display: flex; gap: 10px; align-items: flex-start; background: #fffbeb; border-radius: 12px; padding: 12px 14px; font-size: 13px; color: #5a4500; margin-top: 16px; line-height: 1.45; }
.notice.blue { background: #f2f7fd; color: var(--navy); }

/* ---- sign-in ---- */
.login-page { min-height: 100vh; display: flex; flex-wrap: wrap; background: #fff; }
.login-hero { flex: 1 1 560px; min-width: 0; background: var(--navy); color: #fff; padding: 56px 56px 0; display: flex; flex-direction: column; }
.login-hero .word { font-family: var(--head); font-size: 34px; font-weight: 800; letter-spacing: -.5px; line-height: 1; display: flex; align-items: center; gap: 14px; }
.login-hero .word b { color: var(--red); font-weight: 800; }
.login-hero .word svg { width: 52px; height: 52px; }
.login-hero .tag { margin-top: 12px; font-size: 12px; letter-spacing: 2.5px; font-weight: 600; color: #c9d3e6; }
.login-hero .mini { display: flex; width: 250px; margin-top: 8px; height: 3px; }
.login-hero .mini i { flex: 1; } .login-hero .mini i:nth-child(1) { background: var(--yellow); } .login-hero .mini i:nth-child(2) { background: var(--orange); }
.login-hero .mini i:nth-child(3) { background: var(--blue); } .login-hero .mini i:nth-child(4) { background: var(--green); }
.login-hero .eyebrow { margin-top: 64px; font-size: 13px; letter-spacing: 2px; font-weight: 700; color: var(--yellow); }
.login-hero h1 { color: #fff; font-size: 46px; line-height: 1.1; margin: 12px 0 0; }
.login-hero h1 span { color: #ff6b4a; }
.login-hero p { margin: 18px 0 0; font-size: 17px; line-height: 1.5; color: #dce3f0; max-width: 520px; }
.login-hero ul { list-style: none; padding: 0; margin: 30px 0 0; display: flex; flex-direction: column; gap: 14px; max-width: 520px; }
.login-hero li { display: flex; gap: 12px; align-items: center; font-size: 15px; }
.login-hero li i { width: 30px; height: 30px; border-radius: 8px; border: 1px solid #3a5384; display: grid; place-items: center; flex: none; font-style: normal; color: var(--yellow); font-weight: 700; }
.login-hero .grow { flex: 1; }
.login-hero .stripe { margin: 48px -56px 0; height: 6px; }
.login-side { flex: 1 1 420px; min-width: 0; display: flex; align-items: center; justify-content: center; padding: 48px 24px; }
.login-side form { width: 100%; max-width: 400px; }
.login-side h2 { font-size: 28px; margin: 0; }
.login-side .sub { margin: 6px 0 8px; font-size: 15px; }
.login-side button[type=submit] { width: 100%; margin-top: 20px; height: 52px; font-size: 16px; border-radius: 26px; background: var(--red); border-color: var(--red); box-shadow: 0 6px 16px rgba(223, 39, 38, .25); }
.login-side .after { margin-top: 16px; font-size: 14px; }
.login-side .fine { display: flex; gap: 10px; align-items: flex-start; margin-top: 22px; font-size: 13px; color: var(--muted); line-height: 1.5; }
.login-side .fine svg { flex: none; width: 18px; height: 18px; margin-top: 1px; }
.login-side .logo-sm { display: none; }
.qr { display: flex; justify-content: center; margin: 12px 0; }
.qr svg { width: 200px; height: 200px; }
/* Older single-card form (forced password change, reset link) */
.login { max-width: 420px; margin: 56px auto; }
.login .card { padding: 30px; }
.login img.logo { height: 40px; width: auto; display: block; margin: 0 auto 18px; }
.login button[type=submit] { width: 100%; margin-top: 20px; padding: 12px; background: var(--red); border-color: var(--red); }

/* ---- lists ---- */
.alert-row { display: flex; gap: 12px; align-items: flex-start; padding: 12px 0; border-bottom: 1px solid var(--line); }
.alert-row:last-child { border-bottom: 0; }
.alert-row .msg { flex: 1; font-size: 14px; min-width: 0; overflow-wrap: anywhere; line-height: 1.45; }
.alert-row .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.alert-row .when { flex: 0 0 110px; font-size: 12px; color: var(--muted); padding-top: 2px; }
.watch { display: flex; gap: 14px; align-items: flex-start; margin-top: 10px; padding: 14px; border-radius: 14px; background: #fffbeb; }
.watch.critical { background: #fdeeed; } .watch.fixed { background: #f3f8f5; }
.watch .i { width: 32px; height: 32px; border-radius: 50%; background: #fff0c2; display: grid; place-items: center; flex: none; color: var(--warn); font-weight: 800; }
.watch.critical .i { background: #fbd5d3; color: var(--bad); } .watch.fixed .i { background: #ddf3e5; color: var(--ok); }
.watch .t { font-weight: 600; font-size: 14px; overflow-wrap: anywhere; }
.watch .d { font-size: 13px; color: var(--muted); margin-top: 2px; }
.watch .body { flex: 1; min-width: 0; }
.watch button { flex: none; padding: 6px 12px; font-size: 13px; }
.empty { color: var(--muted); font-size: 14px; padding: 8px 0; }
dl.kv { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0; font-size: 14px; }
dl.kv dt { color: var(--muted); } dl.kv dd { margin: 0; overflow-wrap: anywhere; }
ol.steps { list-style: none; margin: 0; padding: 0; }
ol.steps li { display: flex; gap: 10px; align-items: flex-start; padding: 9px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
ol.steps li:last-child { border-bottom: 0; }
ol.steps .tick { flex: 0 0 24px; height: 24px; border-radius: 50%; border: 2px solid #d5dbe5; display: grid; place-items: center; font-size: 13px; font-weight: 700; }
ol.steps li.done .tick { background: var(--green); border-color: var(--green); color: #fff; }
ol.steps li.done .t { color: var(--muted); }
ol.steps .meta { font-size: 12px; color: var(--muted); margin-top: 2px; }
.restore-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); }
.restore-grid .card { margin: 0; display: flex; flex-direction: column; gap: 10px; }
.restore-grid .card .row { margin-top: auto; }
.restore-grid h2 { margin: 0; font-size: 18px; }

/* ---- dialogs and toast ---- */
dialog { border: 0; border-radius: 18px; padding: 24px; max-width: min(600px, calc(100vw - 32px)); width: 100%; box-shadow: 0 20px 60px rgba(10, 35, 80, .3); max-height: calc(100vh - 32px); overflow-y: auto; color: var(--text); }
dialog.wide { max-width: min(760px, calc(100vw - 32px)); }
dialog::backdrop { background: rgba(10, 35, 80, .45); }
dialog h2 { margin-bottom: 6px; }
dialog > .row { justify-content: flex-end; margin-top: 20px; }
dialog .row.start { justify-content: flex-start; margin-top: 16px; }
#toast { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); background: var(--navy); color: #fff; padding: 11px 20px; border-radius: 12px; font-size: 14px; opacity: 0; transition: opacity .2s; pointer-events: none; max-width: calc(100vw - 32px); z-index: 50; }
#toast.show { opacity: 1; }
h2.section-gap { margin-top: 24px; }
.actions-list { display: grid; gap: 10px; }
.actions-list > div { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.actions-list button { min-width: 200px; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.hide-sm { }

/* Browse a backup */
.row.nowrap { flex-wrap: nowrap; }
a.btn { display: inline-block; text-decoration: none; white-space: nowrap; }
a.btn:hover { color: #fff; } a.btn.secondary:hover { color: var(--navy); }
button.small, a.btn.small { padding: 5px 12px; font-size: 13px; }
.pathbar { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; font-size: 14px; word-break: break-all; }
.pathbar .sep { color: var(--muted); }
.pathbar a { color: var(--blue); font-weight: 600; text-decoration: none; }
table.browse td.check, table.browse th.check { width: 32px; }
table.browse .num, table.browse th.num { text-align: right; white-space: nowrap; }
table.browse a.folder { font-weight: 600; text-decoration: none; }
.toolbar { margin-top: 14px; }
.inline-label { margin: 0; font-weight: 600; font-size: 13px; }
.pick-list { margin: 8px 0 12px 18px; font-size: 13px; color: var(--muted); word-break: break-all; }
.keep { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px 16px; margin: 4px 0; }
.keep span { display: flex; align-items: center; gap: 8px; }
.keep label.unit { margin: 0; font-weight: 400; font-size: 13px; }
input.num-in { width: 90px; }
.inline-num { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.inline-num label { margin: 0; font-weight: 400; font-size: 14px; }

/* Folder picker (live listing of a PC) */
.picker { border: 1px solid #d5dbe5; border-radius: 12px; margin-top: 10px; }
.picker .ptop { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 10px 12px; border-bottom: 1px solid var(--line); font-size: 13px; }
.picker .ptop button.link { font-size: 13px; }
.picker ul { list-style: none; margin: 0; padding: 4px; max-height: 340px; overflow-y: auto; }
.picker li { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 8px; font-size: 14px; }
.picker li:hover { background: #f2f7fd; }
.picker li .nm { flex: 1; min-width: 0; overflow-wrap: anywhere; cursor: pointer; }
.picker li .nm small { display: block; color: var(--muted); font-size: 12px; }
.picker li .k { width: 22px; height: 22px; flex: none; display: grid; place-items: center; }
.picker .pfoot { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-top: 1px solid var(--line); }
.chosen { list-style: none; padding: 0; margin: 8px 0 0; display: flex; flex-direction: column; gap: 6px; }
.chosen li { display: flex; align-items: center; gap: 10px; background: var(--bg); border-radius: 10px; padding: 8px 12px; font-size: 14px; }
.chosen li code { flex: 1; min-width: 0; overflow-wrap: anywhere; font-size: 13px; }
.chosen li button { padding: 2px 6px; }

@media (max-width: 760px) {
  .top .bar { padding: 10px 16px; gap: 8px 12px; }
  #nav { order: 3; flex-basis: 100%; overflow-x: auto; flex-wrap: nowrap; padding-bottom: 2px; }
  #nav a { padding: 7px 12px; }
  .account > button span.nm { display: none; }
  #subnav .in { padding: 8px 16px; }
  #subnav nav { flex-wrap: nowrap; overflow-x: auto; max-width: 100%; }
  main { padding: 20px 16px 56px; }
  h1 { font-size: 24px; }
  .hero { padding: 22px; }
  .hero h1 { font-size: 28px; }
  .hero .ring { flex-basis: 100%; }
  .card { padding: 18px; }
  .hide-sm { display: none; }
  .login-hero { padding: 32px 24px 0; flex-basis: 100%; }
  .login-hero .eyebrow { margin-top: 32px; }
  .login-hero h1 { font-size: 32px; }
  .login-hero ul { display: none; }
  .login-hero .stripe { margin: 28px -24px 0; }
  .alert-row .when { flex-basis: 70px; }
  .keep { grid-template-columns: 1fr; }
}
body.bare main { max-width: none; padding: 0; }
body.bare #crumbs { display: none; }
.notice svg { width: 18px; height: 18px; flex: none; margin-top: 1px; }
.choices .check-row { margin: 2px 0; }
fieldset.section-gap, div.section-gap { margin-top: 22px; }
.row > input { flex: 1 1 220px; width: auto; }

.block { display: block; }
