:root {
  --bg: #f6f7fb; --card: #fff; --fg: #111827; --dim: #6b7280; --line: #e5e7eb;
  --accent: #2563eb; --accent-fg: #fff; --danger: #dc2626; --hover: #f1f5f9;
  color-scheme: light dark;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #0b1020; --card: #141a2e; --fg: #e5e7eb; --dim: #9aa3b5; --line: #263049; --accent: #4f8cff; --hover: #1b2340; }
}
* { box-sizing: border-box; }
html, body { margin: 0; background: var(--bg); color: var(--fg); font: 15px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
a { color: var(--accent); }
.dim { color: var(--dim); }
.small { font-size: 13px; }
.error { color: var(--danger); min-height: 1em; margin: 6px 0; }
.note { background: var(--hover); padding: 8px 12px; border-radius: 8px; }
.spacer { flex: 1; }

button, input, textarea { font: inherit; color: inherit; }
button {
  border: 1px solid var(--line); background: var(--card); padding: 8px 14px; border-radius: 10px; cursor: pointer;
}
button:hover:not(:disabled) { background: var(--hover); }
button:disabled { opacity: .55; cursor: default; }
button.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
button.primary:hover:not(:disabled) { filter: brightness(1.08); background: var(--accent); }
button.danger, .icon.danger { color: var(--danger); }
button.icon { border: 0; background: transparent; padding: 6px 9px; font-size: 17px; }
input, textarea {
  width: 100%; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); margin: 6px 0;
}
input:focus, textarea:focus { outline: 2px solid var(--accent); outline-offset: -1px; }

header.top {
  display: flex; align-items: center; gap: 12px; padding: 10px max(16px, env(safe-area-inset-left));
  background: var(--card); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 5; flex-wrap: wrap;
}
.brand { display: flex; align-items: center; gap: 8px; font-weight: 700; font-size: 18px; color: var(--fg); text-decoration: none; }
.tabs { display: flex; gap: 4px; }
.tab { border: 0; background: transparent; padding: 6px 12px; border-radius: 8px; }
.tab.active { background: var(--hover); font-weight: 600; }
.usage { display: flex; flex-direction: column; gap: 3px; min-width: 220px; }
.usage .usage-text { font-size: 14px; }
.bar { height: 12px; background: var(--line); border-radius: 6px; overflow: hidden; }
button.icon.settings { font-size: 26px; padding: 2px 8px; line-height: 1; }
.fill { height: 100%; width: 0; background: var(--accent); }
.fill.warn { background: var(--danger); }
.banner { background: #fef3c7; color: #78350f; padding: 10px 16px; text-align: center; }

main.center { display: flex; justify-content: center; padding: 40px 16px; }
.card { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 24px; box-shadow: 0 4px 24px rgb(0 0 0 / 6%); }
.auth { width: 100%; max-width: 400px; display: flex; flex-direction: column; }
.auth h2 { margin-top: 0; }
.auth button.primary { margin-top: 8px; padding: 11px; }
.check { display: flex; gap: 10px; align-items: flex-start; margin: 10px 0; font-size: 14px; }
.check input { width: auto; margin-top: 4px; }
.links { display: flex; gap: 16px; justify-content: center; margin-top: 16px; flex-wrap: wrap; }
.row { display: flex; gap: 8px; }
.recovery { background: var(--hover); padding: 14px; border-radius: 10px; font-size: 17px; letter-spacing: .5px; white-space: pre-wrap; word-break: break-all; }

main.content { max-width: 1100px; margin: 0 auto; padding: 16px; min-height: 60vh; }
main.content.drop { outline: 3px dashed var(--accent); outline-offset: -6px; border-radius: 16px; }
.toolbar { display: flex; align-items: center; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.crumbs a { text-decoration: none; }
.list { background: var(--card); border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.item { align-items: center; padding: 8px 12px; border-bottom: 1px solid var(--line); cursor: pointer; }
.item:last-child { border-bottom: 0; }
.item:hover { background: var(--hover); }
.item .thumb { width: 44px; height: 44px; display: grid; place-items: center; font-size: 24px; flex: none; }
.item .name { flex: 1; min-width: 0; }
.title { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.item .actions { display: flex; opacity: .65; }
.item:hover .actions { opacity: 1; }
.ph { width: 100%; height: 100%; display: grid; place-items: center; border-radius: 8px; overflow: hidden; }
.ph img { width: 100%; height: 100%; object-fit: cover; }
.empty { text-align: center; padding: 48px 16px; }

.month { margin: 18px 0 8px; font-size: 15px; color: var(--dim); font-weight: 600; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 4px; }
.tile { position: relative; aspect-ratio: 1; padding: 0; border: 0; border-radius: 6px; overflow: hidden; background: var(--hover); font-size: 30px; }
.tile .badge { position: absolute; right: 6px; bottom: 4px; color: #fff; font-size: 14px; text-shadow: 0 1px 3px #000; }

.uploads { position: fixed; right: 16px; bottom: 16px; width: min(480px, calc(100vw - 32px)); max-height: 70vh; overflow-y: auto; z-index: 6;
  box-shadow: 0 8px 28px rgba(0,0,0,.18); border-radius: 14px; }
.uploads:empty { display: none; }
.uploads-head, .upload { background: var(--card); border: 1px solid var(--line); }
.uploads-head { display: flex; justify-content: space-between; align-items: center; gap: 8px; flex-wrap: wrap; padding: 10px 16px; border-radius: 14px 14px 0 0; font-size: 16px; position: sticky; top: 0; }
.upload { padding: 10px 16px; border-top: 0; }
.upload .small { font-size: 14px; }
.upload progress { width: 100%; height: 10px; margin-top: 6px; }
.upload:last-child { border-radius: 0 0 14px 14px; }
.upload .small { display: flex; min-width: 0; }
progress { width: 100%; height: 6px; }

.viewer { position: fixed; inset: 0; background: rgb(0 0 0 / 92%); z-index: 20; display: flex; align-items: center; justify-content: center; color: #fff; }
.viewer-bar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; padding: 10px 16px; gap: 8px; }
.viewer-bar .icon, .viewer .nav { color: #fff; }
.viewer .dim { color: #c7cad1; }
.stage { max-width: 92vw; max-height: 84vh; display: grid; place-items: center; }
.stage img, .stage video { max-width: 92vw; max-height: 84vh; border-radius: 6px; }
.stage .loading { text-align: center; min-width: 200px; }
.nav { position: absolute; top: 50%; transform: translateY(-50%); background: transparent; border: 0; font-size: 44px; padding: 10px 16px; }
.nav.prev { left: 4px; } .nav.next { right: 4px; }

.modal { position: fixed; inset: 0; background: rgb(0 0 0 / 45%); display: grid; place-items: center; z-index: 15; padding: 16px; }
.modal .card { width: 100%; max-width: 420px; }
.stack { display: flex; flex-direction: column; gap: 8px; margin: 12px 0; }

footer { display: flex; gap: 16px; justify-content: center; padding: 24px 16px 40px; color: var(--dim); font-size: 13px; flex-wrap: wrap; }
footer a { color: var(--dim); }

@media (max-width: 640px) {
  .usage { order: 5; width: 100%; }
  .item .actions { opacity: 1; }
  .grid { grid-template-columns: repeat(3, 1fr); gap: 2px; }
}

/* plans (Settings) */
.plans { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 10px; margin: 10px 0 14px; }
.plan { border: 1px solid var(--line); border-radius: 12px; padding: 12px; display: flex; flex-direction: column; gap: 4px; }
.plan.current { border-color: var(--accent); box-shadow: 0 0 0 1px var(--accent) inset; }
.plan .size { font-size: 18px; font-weight: 700; }
.plan .price { color: var(--dim); font-size: 14px; }
.plan .perk { font-size: 12px; color: var(--dim); }
.plan button { margin-top: 6px; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; padding: 12px 18px; box-shadow: 0 6px 24px rgb(0 0 0 / 15%); z-index: 50; max-width: calc(100% - 32px); }
/* home page (signed out) */
.nav-link { color: var(--fg); text-decoration: none; padding: 8px 6px; }
a.button { display: inline-block; text-align: center; text-decoration: none; border: 1px solid var(--line); background: var(--card);
  color: var(--fg); padding: 10px 16px; border-radius: 10px; }
a.button.primary { background: var(--accent); color: var(--accent-fg); border-color: transparent; }
/* Not a link yet: looks like a button, clearly switched off. */
span.button.soon { display: inline-block; text-align: center; border: 1px dashed var(--line); color: var(--dim);
  padding: 10px 16px; border-radius: 10px; cursor: default; }
main.landing { max-width: 1040px; margin: 0 auto; padding: 0 16px 24px; }
.landing section { margin: 0 0 64px; }
.landing h2 { font-size: 28px; margin: 0 0 8px; text-align: center; }
.hero { text-align: center; padding: 64px 0 16px; }
.hero h1 { font-size: clamp(34px, 6vw, 56px); line-height: 1.08; margin: 18px 0 16px; letter-spacing: -0.02em; }
.hero .lead { font-size: 19px; color: var(--dim); max-width: 620px; margin: 0 auto 26px; }
.hero .cta { justify-content: center; flex-wrap: wrap; margin-bottom: 10px; }
button.big { padding: 13px 22px; font-size: 16px; border-radius: 12px; }
.features { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 14px; }
.feature { background: var(--card); border: 1px solid var(--line); border-radius: 16px; padding: 20px; }
.feature h3 { margin: 10px 0 6px; font-size: 17px; }
.feature p { margin: 0; }
.feature-icon { font-size: 28px; }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(240px, 1fr)); gap: 18px; margin-top: 22px; }
.step { display: flex; gap: 12px; align-items: flex-start; }
.step p { margin: 4px 0 0; }
.step-n { flex: none; width: 32px; height: 32px; border-radius: 50%; background: var(--accent); color: var(--accent-fg);
  display: grid; place-items: center; font-weight: 700; }
.pricing { text-align: center; }
.landing-plans { text-align: left; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin: 22px 0 12px; }
.landing-plans .plan { padding: 18px; background: var(--card); }
.landing-plans .size { font-size: 26px; }
.app-download { display: flex; justify-content: space-between; align-items: center; gap: 24px; flex-wrap: wrap; }
.app-download h2 { text-align: left; }
.app-download .stack { margin: 0; }
.modal .card { max-height: calc(100vh - 32px); overflow-y: auto; }
.modal h3 { margin: 18px 0 6px; }

/* In-page dialogs (instead of the browser's prompt/confirm/alert boxes) */
.modal.ask { z-index: 30; }
.modal.ask .card { max-width: 380px; }
.modal.ask h2 { margin: 0 0 8px; font-size: 19px; }
.modal.ask .row { justify-content: flex-end; margin-top: 12px; }
button.primary.danger { background: var(--danger); color: #fff; }
button.primary.danger:hover:not(:disabled) { background: var(--danger); }

/* Password strength meter (strength.js): four bars that fill and colour as it gets stronger */
.meter { margin: -2px 0 6px; }
.meter-bar { display: flex; gap: 4px; margin-bottom: 2px; }
.meter-bar span { flex: 1; height: 4px; border-radius: 2px; background: var(--line); }
.meter[data-level="0"] .meter-bar span:nth-child(-n+1),
.meter[data-level="1"] .meter-bar span:nth-child(-n+1) { background: var(--danger); }
.meter[data-level="2"] .meter-bar span:nth-child(-n+2) { background: #d97706; }
.meter[data-level="3"] .meter-bar span:nth-child(-n+3) { background: #65a30d; }
.meter[data-level="4"] .meter-bar span { background: #16a34a; }

/* Two-step sign-in set-up: the QR code to scan (white behind it, so it scans in dark mode too) */
img.qr { display: block; margin: 8px auto; background: #fff; padding: 6px; border-radius: 8px; image-rendering: pixelated; max-width: 100%; }

/* Message to customers (control panel → everyone), above everything */
.notice-bar { display: flex; align-items: center; gap: 8px; padding: 10px 16px; font-size: 14px; border-bottom: 1px solid var(--line); }
.notice-bar[hidden] { display: none; }
.notice-bar > span { flex: 1; }
.notice-bar.info { background: #dbeafe; color: #1e3a8a; }
.notice-bar.maintenance { background: #fef3c7; color: #78350f; }
.notice-bar.problem { background: #fee2e2; color: #7f1d1d; }
.notice-bar.security { background: #fee2e2; color: #7f1d1d; }
.notice-bar a { color: inherit; font-weight: 600; }
.notice-bar button.icon { color: inherit; }

/* Status page and control panel */
.status-page, .admin { max-width: 860px; }
.status-summary { padding: 16px 18px; border-radius: 12px; font-weight: 600; margin: 12px 0 6px; }
.status-summary.ok { background: #dcfce7; color: #14532d; }
.status-summary.warn { background: #fef3c7; color: #78350f; }
.status-summary.bad { background: #fee2e2; color: #7f1d1d; }
.status-list { padding: 4px 16px; }
.status-row { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid var(--line); }
.status-row:last-child { border-bottom: 0; }
.status-row > div { flex: 1; }
.dot { width: 12px; height: 12px; border-radius: 50%; flex: none; }
.dot.ok { background: #16a34a; } .dot.warn { background: #d97706; } .dot.bad { background: var(--danger); }
.state { font-size: 14px; font-weight: 600; }
.state.ok { color: #16a34a; } .state.warn { color: #d97706; } .state.bad { color: var(--danger); }
.admin h2 { margin-top: 28px; }
.admin-table { overflow-x: auto; padding: 8px; }
.admin-table table { width: 100%; border-collapse: collapse; font-size: 14px; }
.admin-table th, .admin-table td { text-align: left; padding: 8px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.admin-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: 12px; }
.admin-stats div { display: flex; flex-direction: column; }
.admin-stats strong { font-size: 22px; }
.signup-chart { display: flex; flex-direction: column; gap: 8px; margin-top: 12px; }
.chart-area { position: relative; height: 140px; border-bottom: 1px solid var(--line); padding-top: 18px; }
.chart-max { position: absolute; top: 0; left: 0; }
.bars { display: flex; align-items: flex-end; gap: 2px; height: 100%; }
.bar-col { flex: 1; height: 100%; display: flex; align-items: flex-end; outline: none; cursor: default; }
.bar-col:hover, .bar-col:focus-visible { background: var(--hover); }
.chart-bar { width: 100%; background: var(--accent); border-radius: 4px 4px 0 0; }
.bar-tip { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: none; }
.chart-axis { display: flex; justify-content: space-between; }
.signup-chart table { margin-top: 6px; border-collapse: collapse; }
.signup-chart td, .signup-chart th { padding: 2px 16px 2px 0; text-align: left; }
.notice-form { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.notice-form .row { align-items: center; flex-wrap: wrap; gap: 16px; }
.notice-form select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; }
.notice-preview { padding: 12px 14px; border-radius: 10px; margin: 8px 0; }
.notice-preview.info { background: #dbeafe; color: #1e3a8a; }
.notice-preview.maintenance { background: #fef3c7; color: #78350f; }
.notice-preview.problem, .notice-preview.security { background: #fee2e2; color: #7f1d1d; }
/* Security activity (Settings) and alerts */
.sec-list { display: flex; flex-direction: column; gap: 8px; max-height: 50vh; overflow: auto; margin: 8px 0; }
.sec-row { display: flex; gap: 10px; align-items: flex-start; padding: 8px 10px; border-radius: 8px; background: var(--hover); }
.sec-row.alert { background: #fee2e2; color: #7f1d1d; }
.sec-row.alert .dim { color: #7f1d1d; opacity: .8; }
.sec-icon { font-size: 18px; line-height: 1.3; }
.sec-row .grow { flex: 1; min-width: 0; }
.sec-row .row { gap: 6px; flex-wrap: wrap; }
.banner.held { background: #fef3c7; color: #78350f; }
.banner.held button { margin-left: 8px; }
/* Protection (500 GB / 1 TB) in Settings, and per customer in the control panel */
.protect-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid var(--line); }
.protect-row:first-of-type { border-top: 0; }
.protect-row input[type=checkbox] { width: 20px; height: 20px; margin-top: 2px; flex: none; }
.protect-row label { flex: 1; }
.vpn-devices { list-style: none; padding: 0; margin: 8px 0; }
.vpn-device { display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 8px 0; border-top: 1px solid var(--line); }
.vpn-device:first-child { border-top: 0; }
.vpn-device > span { min-width: 0; overflow-wrap: anywhere; }
.dns-box { display: flex; flex-direction: column; gap: 8px; margin: 8px 0 0 32px; }
.dns-box ol { margin: 0; padding-left: 20px; }
.customers-tools { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; margin-bottom: 8px; }
.customers-tools input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; min-width: 220px; }
.customers td.toggle { text-align: center; }
.customers td.gifts { min-width: 220px; }
.customers .gift { display: inline-flex; align-items: center; gap: 4px; margin: 2px 10px 2px 0; white-space: nowrap; }
.customers input[type=checkbox] { width: 18px; height: 18px; }
.customers tr.off td { opacity: .65; }
.customers tr.off td.toggle, .customers tr.off td.name { opacity: 1; }
.tag { display: inline-block; font-size: 12px; padding: 1px 8px; border-radius: 999px; background: var(--hover); margin-left: 6px; }
.tag.bad { background: #fee2e2; color: #7f1d1d; }
/* Control panel dashboard: widgets, live view, graphs, diagnostics, staff */
.dashboard { display: flex; flex-direction: column; gap: 8px; }
.widget { border-top: 1px solid var(--line); padding-top: 4px; }
.widget:first-child { border-top: 0; }
.widget-head { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.widget-head h2 { flex: 1; }
.widget-tools { gap: 6px; }
.hidden-widget { opacity: .55; }
.live-tiles div span + span { font-size: 12px; }
.range-picker { display: flex; gap: 6px; flex-wrap: wrap; margin-bottom: 10px; }
.charts { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 12px; }
.chart-card { padding: 10px 12px; }
.chart-title { margin-bottom: 4px; }
.chart-wrap { position: relative; }
.chart { width: 100%; height: auto; display: block; touch-action: none; }
.chart .grid { stroke: var(--line); stroke-width: 1; }
.chart .axis { fill: var(--dim); font-size: 11px; }
.chart .line { fill: none; stroke: var(--accent); stroke-width: 2; stroke-linejoin: round; stroke-linecap: round; }
.chart .area { fill: var(--accent); opacity: .12; }
.chart .cross { stroke: var(--dim); stroke-width: 1; stroke-dasharray: 3 3; }
.chart .dot { fill: var(--accent); stroke: var(--card); stroke-width: 2; }
.chart-tip { position: absolute; top: 0; transform: translateX(-50%); white-space: nowrap; background: var(--card); border: 1px solid var(--line); border-radius: 6px; padding: 2px 8px; font-size: 13px; box-shadow: 0 2px 8px rgba(0,0,0,.15); pointer-events: none; }
.diag-buttons { flex-wrap: wrap; gap: 6px; }
.diag-row { display: flex; gap: 10px; align-items: flex-start; padding: 6px 0; border-top: 1px solid var(--line); }
.diag-row:first-child { border-top: 0; }
.diag-row .grow { flex: 1; min-width: 0; }
.diag-log { white-space: pre-wrap; overflow-wrap: anywhere; max-height: 40vh; overflow: auto; font-size: 12px; background: var(--hover); padding: 8px; border-radius: 6px; }
.staff-row { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.staff-row .row { align-items: center; gap: 8px; flex-wrap: wrap; }
.staff-row input[type=text] { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; max-width: 280px; }
.notice-switch { display: flex; align-items: center; gap: 8px; margin-bottom: 6px; }
.notice-switch input { width: 20px; height: 20px; }
.darkweb-box { display: flex; flex-direction: column; gap: 10px; margin-top: 8px; }
.darkweb-part { display: flex; flex-direction: column; gap: 6px; padding: 10px 12px; border-radius: 10px; background: var(--hover); }
.darkweb-part input[type=email] { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; flex: 1; min-width: 180px; }
.darkweb-part .row { gap: 8px; flex-wrap: wrap; align-items: center; }
.darkweb-emails { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 8px; }
.darkweb-breaches { margin: 4px 0 0; padding-left: 18px; }
.share-buttons { display: flex; flex-wrap: wrap; gap: 8px; }
.share-buttons a.button { text-decoration: none; }
.share-card { display: flex; flex-direction: column; gap: 8px; margin-top: 8px; }
.days-input { width: 90px; font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; }
.quick-days { gap: 6px; flex-wrap: wrap; align-items: center; }
.trial-make, .trial-made { display: flex; flex-direction: column; gap: 8px; }
.trial-make .row { gap: 12px; flex-wrap: wrap; align-items: center; }
.trial-make select, .trial-make input, .trial-redeem input { font: inherit; padding: 6px 10px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; }
.trial-redeem { display: flex; flex-direction: column; gap: 6px; margin: 8px 0; }
.trial-redeem .row { gap: 8px; flex-wrap: wrap; }
.trial-note { padding: 10px 12px; border-radius: 10px; background: var(--hover); }
.pause-all { grid-column: 1 / -1; padding-bottom: 4px; border-bottom: 1px solid var(--line); }
.perm-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 4px 16px; }
/* Browsing history (Settings → Protection) */
.history-list { max-height: 55vh; overflow: auto; margin: 8px 0; }
.history-list h3 { margin: 12px 0 4px; font-size: 14px; position: sticky; top: 0; background: var(--card); }
.history-table { width: 100%; border-collapse: collapse; font-size: 14px; }
.history-table td { padding: 3px 8px 3px 0; vertical-align: top; overflow-wrap: anywhere; }
.history-table td:first-child { white-space: nowrap; width: 1%; }
.customers-tools select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; }
.sec-advice ul { margin: 6px 0 0; padding-left: 20px; }
.defence-alert { background: #fee2e2; color: #7f1d1d; padding: 12px 14px; border-radius: 10px; margin: 8px 0; display: flex; flex-direction: column; gap: 8px; }
.switch-row { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; }
.update-banner { position: fixed; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 60; display: flex; align-items: center; gap: 10px;
  background: var(--card); border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px 10px 16px; box-shadow: 0 8px 24px rgba(0, 0, 0, .18); max-width: calc(100vw - 32px); }
.pc-folders { list-style: none; padding: 0; margin: 8px 0; display: flex; flex-direction: column; gap: 6px; }
.pc-folders li { display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; word-break: break-all; }
.link-details dt { font-weight: 600; margin-top: 8px; }
.link-details dd { margin: 2px 0 0; }
.link-details ul { margin: 4px 0 0; padding-left: 20px; max-height: 30vh; overflow: auto; }

/* Previous versions, links, and the pages people see when they open your links */
.versions-link { color: inherit; text-decoration: underline dotted; }
.link-box { font-family: ui-monospace, Consolas, monospace; font-size: 13px; }
.link-option { align-items: center; gap: 8px; margin: 8px 0; }
.link-option select, .share-page select { font: inherit; padding: 6px 8px; border-radius: 8px; border: 1px solid var(--line); background: var(--bg); color: inherit; }
.list.versions { max-height: 50vh; overflow-y: auto; margin: 8px 0; }
.share-page { max-width: 760px; }
.share-head h1 { margin: 6px 0; font-size: 26px; overflow-wrap: anywhere; }
.share-head button.big, .drop-zone button.big { margin: 12px 0; }
.drop-zone { text-align: center; padding: 64px 28px; min-height: 280px; border: 3px dashed var(--line); }
.drop-zone.drop { border-color: var(--accent); background: var(--hover); }
.drop-zone h1 { margin-top: 0; }

/* On/off switches (every input with role="switch"): a sliding toggle, not a tick box. */
input[type=checkbox][role=switch] { appearance: none; -webkit-appearance: none; flex: none; position: relative; width: 44px; height: 24px; margin: 0;
  border-radius: 999px; background: var(--dim); cursor: pointer; transition: background .15s; vertical-align: middle; }
input[type=checkbox][role=switch]::before { content: ""; position: absolute; top: 3px; left: 3px; width: 18px; height: 18px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
input[type=checkbox][role=switch]:checked { background: var(--accent); }
input[type=checkbox][role=switch]:checked::before { transform: translateX(20px); }
input[type=checkbox][role=switch]:disabled { opacity: .45; cursor: not-allowed; }
input[type=checkbox][role=switch]:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
.customers input[type=checkbox][role=switch] { width: 40px; height: 22px; }
.customers input[type=checkbox][role=switch]::before { width: 16px; height: 16px; }
.customers input[type=checkbox][role=switch]:checked::before { transform: translateX(18px); }
@media (prefers-reduced-motion: reduce) { input[type=checkbox][role=switch], input[type=checkbox][role=switch]::before { transition: none; } }