/* Snow OS website — SPDX-License-Identifier: GPL-3.0-or-later */

@font-face { font-family: Lato; font-weight: 300; font-display: swap; src: url(../fonts/Lato-Light.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 400; font-display: swap; src: url(../fonts/Lato-Regular.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 600; font-display: swap; src: url(../fonts/Lato-Semibold.woff2) format("woff2"); }
@font-face { font-family: Lato; font-weight: 700; font-display: swap; src: url(../fonts/Lato-Bold.woff2) format("woff2"); }

:root {
  --bg: #f4f7fb; --bg2: #e6eef7; --surface: #ffffff; --surface2: #f0f4f9;
  --text: #1a2230; --muted: #5d6b80; --line: #d3dce8;
  --accent: #2468d8; --accent-2: #1d55b4; --accent-ink: #ffffff;
  --ok: #1f8a4c; --warn: #c27a0a; --danger: #c0281d; --danger-2: #8f1a12;
  --shadow: 0 1px 2px rgba(20, 40, 80, .06), 0 8px 28px rgba(20, 40, 80, .08);
  --radius: 14px;
  --mono: ui-monospace, "SF Mono", Menlo, Consolas, "DejaVu Sans Mono", monospace;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #0e141d; --bg2: #121b28; --surface: #172131; --surface2: #1d2a3d;
    --text: #e8eef7; --muted: #93a3ba; --line: #2a3a52;
    --accent: #4b8cff; --accent-2: #6aa0ff; --accent-ink: #08111f;
    --shadow: 0 1px 2px rgba(0, 0, 0, .3), 0 8px 28px rgba(0, 0, 0, .35);
  }
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; font: 400 17px/1.6 Lato, system-ui, -apple-system, "Segoe UI", sans-serif;
  color: var(--text); background: linear-gradient(180deg, var(--bg) 0%, var(--bg2) 100%) fixed;
  min-height: 100vh; display: flex; flex-direction: column;
}
main { flex: 1; }
h1, h2, h3 { line-height: 1.2; margin: 0 0 .5em; font-weight: 700; letter-spacing: -.01em; }
h1 { font-size: clamp(2rem, 4.5vw, 3.1rem); }
h2 { font-size: clamp(1.45rem, 3vw, 2rem); margin-top: 1.6em; }
h3 { font-size: 1.15rem; }
p { margin: 0 0 1em; }
a { color: var(--accent); }
a:hover { color: var(--accent-2); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; border-radius: 4px; }
.wrap { width: min(1120px, 100% - 40px); margin-inline: auto; }
.narrow { width: min(560px, 100% - 40px); }
.center { text-align: center; }
.muted { color: var(--muted); }
.small { font-size: .9rem; }
.mono, code, kbd { font-family: var(--mono); }
.lead { font-size: 1.15rem; color: var(--muted); max-width: 46em; }
.center.lead { margin-inline: auto; }
.skip { position: absolute; left: -999px; } .skip:focus { left: 12px; top: 12px; background: var(--surface); padding: 8px 12px; z-index: 99; }
.logo { display: block; }

/* Header / footer */
.top { position: sticky; top: 0; z-index: 20; backdrop-filter: blur(14px); background: color-mix(in srgb, var(--bg) 82%, transparent); border-bottom: 1px solid var(--line); }
.bar { display: flex; align-items: center; justify-content: space-between; height: 62px; }
.brand { display: flex; align-items: center; gap: 10px; font-weight: 700; font-size: 1.2rem; color: var(--text); text-decoration: none; }
.brand .logo { color: var(--accent); }
nav { display: flex; align-items: center; gap: 4px; }
nav a:not(.btn) { color: var(--text); text-decoration: none; padding: 8px 12px; border-radius: 8px; font-weight: 600; font-size: .98rem; }
nav a:not(.btn):hover, nav a[aria-current] { background: var(--surface2); }
.foot { border-top: 1px solid var(--line); margin-top: 72px; padding: 36px 0 44px; font-size: .95rem; }
.foot-brand { display: flex; align-items: center; gap: 8px; margin-bottom: 8px; color: var(--accent); }
.foot-brand strong { color: var(--text); }
.foot p { margin: 0 0 .4em; }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer;
  font: 600 1rem/1 Lato, sans-serif; padding: 13px 20px; border-radius: 10px; text-decoration: none;
  color: var(--text); background: var(--surface); border: 1px solid var(--line);
  box-shadow: 0 1px 2px rgba(20, 40, 80, .08); transition: transform .08s, background .15s;
}
.btn:hover { background: var(--surface2); color: var(--text); }
.btn:active { transform: translateY(1px); }
.btn-primary { background: linear-gradient(180deg, #3f86f0, var(--accent)); border-color: var(--accent-2); color: #fff; text-shadow: 0 1px 0 rgba(0, 0, 0, .18); }
.btn-primary:hover { background: linear-gradient(180deg, #4d90f5, #2a6fe0); color: #fff; }
.btn-danger { background: linear-gradient(180deg, #e0463a, var(--danger)); border-color: var(--danger-2); color: #fff; }
.btn-danger:hover { background: linear-gradient(180deg, #ea5347, #cc3024); color: #fff; }
.btn-small { padding: 9px 14px; font-size: .92rem; margin-left: 6px; }
.btn-lg { padding: 16px 26px; font-size: 1.08rem; }
.btn-block { width: 100%; }
.btn[disabled], .btn:disabled { opacity: .5; cursor: not-allowed; }

/* Cards / forms */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); margin: 0 0 22px; }
.card h2, .card h3 { margin-top: 0; }
.card-warn { border-color: color-mix(in srgb, var(--warn) 55%, var(--line)); background: color-mix(in srgb, var(--warn) 7%, var(--surface)); }
.form label:not(.check) { display: block; font-weight: 600; margin: 18px 0 6px; font-size: .95rem; }
.form label:first-child { margin-top: 0; }
input[type=text], input[type=password] {
  width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; color: var(--text);
  background: var(--bg); border: 1px solid var(--line); box-shadow: inset 0 1px 2px rgba(20, 40, 80, .06);
}
input.mono { letter-spacing: .04em; }
input:focus { outline: 3px solid color-mix(in srgb, var(--accent) 45%, transparent); border-color: var(--accent); }
.hint { font-size: .86rem; color: var(--muted); margin: 6px 0 0; }
.check { display: flex; gap: 12px; align-items: flex-start; margin: 20px 0; cursor: pointer; font-size: .96rem; }
.check input { margin-top: 5px; width: 18px; height: 18px; flex: none; accent-color: var(--accent); }
.form .btn-block { margin-top: 8px; }
.page-form h1 { margin-top: 48px; }
.notice { border-radius: 10px; padding: 12px 16px; margin: 20px 0; border: 1px solid; }
.notice ul { margin: 0; padding-left: 1.1em; }
.notice-error { background: color-mix(in srgb, var(--danger) 10%, var(--surface)); border-color: var(--danger); color: var(--text); }
.notice-ok { background: color-mix(in srgb, var(--ok) 12%, var(--surface)); border-color: var(--ok); }
details { margin-top: 14px; } summary { cursor: pointer; font-weight: 600; color: var(--accent); }
details form { margin-top: 14px; }

/* Captcha */
.captcha { border: 1px solid var(--line); border-radius: 12px; padding: 16px; margin: 22px 0 6px; background: var(--surface2); }
.captcha legend { padding: 0 8px; font-weight: 700; font-size: .9rem; color: var(--muted); }
.cap-row { display: flex; gap: 10px; align-items: stretch; }
.cap-img { width: 100%; max-width: 300px; height: auto; border-radius: 10px; border: 1px solid var(--line); background: #eef3f9; }
.cap-refresh { flex: none; width: 44px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); font-size: 1.3rem; cursor: pointer; }
.cap-refresh:hover { background: var(--bg); }
.captcha label { display: block; margin: 14px 0 6px; font-weight: 600; font-size: .95rem; }
.cap-text { text-transform: uppercase; letter-spacing: .25em; font-family: var(--mono); font-size: 1.15rem; }
.cap-status { margin: 12px 0 0; font-size: .9rem; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.cap-status::before { content: ""; width: 14px; height: 14px; border-radius: 50%; border: 2px solid var(--line); border-top-color: var(--accent); animation: spin .8s linear infinite; }
.cap-status[data-state=done] { color: var(--ok); }
.cap-status[data-state=done]::before { animation: none; border: 0; content: "\2713"; width: auto; height: auto; font-weight: 700; }
.cap-status[data-state=error] { color: var(--danger); }
.cap-status[data-state=error]::before { animation: none; border: 0; content: "!"; width: auto; height: auto; font-weight: 700; }
.hp { position: absolute; left: -9999px; width: 1px; height: 1px; overflow: hidden; }
@keyframes spin { to { transform: rotate(360deg); } }

/* Home */
.hero { position: relative; overflow: hidden; padding: 72px 0 84px; background: radial-gradient(1200px 500px at 70% -10%, color-mix(in srgb, var(--accent) 18%, transparent), transparent 70%); }
#snow { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; }
.hero-grid { position: relative; display: grid; grid-template-columns: 1.05fr 1fr; gap: 48px; align-items: center; }
.eyebrow { font-weight: 700; text-transform: uppercase; letter-spacing: .12em; font-size: .78rem; color: var(--accent); margin-bottom: 14px; }
.hero h1 { font-size: clamp(2.3rem, 5.4vw, 3.8rem); }
.cta { display: flex; flex-wrap: wrap; gap: 12px; margin: 28px 0 14px; }
.desk { aspect-ratio: 4 / 3; border-radius: 16px; overflow: hidden; position: relative; box-shadow: 0 30px 60px rgba(10, 30, 70, .35), 0 0 0 1px rgba(255, 255, 255, .15);
  background: linear-gradient(160deg, #7fb0f2 0%, #3e72c9 45%, #243f86 100%); }
.desk::after { content: ""; position: absolute; inset: 0; background: radial-gradient(120% 70% at 20% 0%, rgba(255, 255, 255, .35), transparent 60%); pointer-events: none; }
.desk-menubar { display: flex; gap: 14px; align-items: center; height: 24px; padding: 0 12px; font-size: .72rem; color: #222; background: linear-gradient(#f7f7f7, #d9d9d9); border-bottom: 1px solid #9c9c9c; }
.desk-menubar .logo { color: #333; } .desk-menubar em { margin-left: auto; font-style: normal; }
.desk-win { position: absolute; left: 14%; right: 14%; top: 17%; bottom: 24%; border-radius: 8px; overflow: hidden; background: #fff; box-shadow: 0 18px 40px rgba(0, 0, 0, .4), 0 0 0 1px rgba(0, 0, 0, .35); }
.desk-title { display: flex; align-items: center; gap: 7px; height: 26px; padding: 0 10px; background: linear-gradient(#ededed, #c4c4c4); border-bottom: 1px solid #8a8a8a; font-size: .72rem; color: #333; position: relative; }
.desk-title span { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; }
.desk-title i { width: 11px; height: 11px; border-radius: 50%; position: relative; z-index: 1; box-shadow: inset 0 -1px 2px rgba(0, 0, 0, .25), inset 0 1px 1px rgba(255, 255, 255, .6); }
.desk-title .r { background: #fa6a5f; } .desk-title .y { background: #fdc343; } .desk-title .g { background: #6fd144; }
.desk-content { height: calc(100% - 26px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 4px; color: #243f86; background: linear-gradient(#fff, #eef3fb); }
.desk-content strong { font-size: 1.5rem; color: #1a2230; } .desk-content small { color: #6a7790; }
.desk-dock { position: absolute; left: 50%; bottom: 10px; transform: translateX(-50%); display: flex; gap: 9px; padding: 8px 12px; border-radius: 14px; background: rgba(255, 255, 255, .28); border: 1px solid rgba(255, 255, 255, .55); backdrop-filter: blur(6px); }
.desk-dock i { width: 34px; height: 34px; border-radius: 9px; box-shadow: inset 0 1px 1px rgba(255, 255, 255, .6), 0 2px 5px rgba(0, 0, 0, .3); }
.c1 { background: linear-gradient(#8ec5ff, #2f7be6); } .c2 { background: linear-gradient(#ffd37a, #f0932b); } .c3 { background: linear-gradient(#a6f0b0, #2fb35a); }
.c4 { background: linear-gradient(#ff9f9f, #e0483f); } .c5 { background: linear-gradient(#d3b5ff, #7b50d6); } .c6 { background: linear-gradient(#e7eef7, #9fb1c9); }
.shot { margin: 0; }
.shot img { display: block; width: 100%; height: auto; border-radius: 14px;
  box-shadow: 0 30px 60px rgba(10, 30, 70, .35), 0 0 0 1px rgba(255, 255, 255, .15); }
.section { margin-top: 84px; }
.features { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; margin-top: 40px; }
.feature { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.feature svg { color: var(--accent); margin-bottom: 10px; } .feature p { color: var(--muted); margin: 0; }
.band { margin-top: 84px; padding: 64px 0; background: var(--surface); border-block: 1px solid var(--line); }
.band h2 { margin-top: 0; }
.band-grid { display: grid; grid-template-columns: 1.3fr 1fr; gap: 56px; align-items: center; }
.ticks { list-style: none; padding: 0; margin: 0 0 24px; }
.ticks li { position: relative; padding-left: 28px; margin-bottom: 8px; }
.ticks li::before { content: "\2713"; position: absolute; left: 0; color: var(--ok); font-weight: 700; }
.ticks.small li { font-size: .95rem; }
.stat-stack { display: grid; gap: 14px; }
.stat { background: var(--bg); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 22px; }
.stat b { display: block; font-size: 2.1rem; line-height: 1.1; color: var(--accent); } .stat span { color: var(--muted); }
.steps { list-style: none; padding: 0; margin: 36px 0 0; display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; counter-reset: s; }
.steps li { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; box-shadow: var(--shadow); }
.steps li > span { display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 700; margin-bottom: 12px; }
.steps p { color: var(--muted); margin: 0; }
.steps-left { grid-template-columns: 1fr; }
.steps-left li { display: flex; gap: 18px; align-items: flex-start; padding: 20px 24px; }
.steps-left li > span { flex: none; margin: 2px 0 0; } .steps-left h3 { margin-bottom: .2em; }
.cloud { display: flex; align-items: center; justify-content: space-between; gap: 32px; padding: 36px; }
.cloud h2 { margin-top: 0; } .cloud p { margin: 0; color: var(--muted); max-width: 40em; }

/* Download */
.page-download h1 { margin-top: 48px; }
.release { display: grid; grid-template-columns: 1.3fr 1fr; gap: 32px; align-items: center; margin-top: 28px; }
.release h2 { margin: 0 0 .2em; } .release small { font-weight: 400; color: var(--muted); font-size: 1rem; }
.release-action { display: grid; gap: 10px; justify-items: start; }
.badge { display: inline-block; padding: 5px 12px; border-radius: 99px; background: color-mix(in srgb, var(--warn) 16%, var(--surface)); color: var(--warn); font-weight: 700; font-size: .85rem; border: 1px solid var(--warn); }
.hash { display: block; word-break: break-all; font-size: .78rem; background: var(--bg); padding: 8px 10px; border-radius: 8px; border: 1px solid var(--line); }
.grid-2 { display: grid; grid-template-columns: 1fr 1fr; gap: 22px; align-items: start; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 20px; }
.grid-3 .card { margin: 0; } .grid-3 p { margin: 0; color: var(--muted); }
.code { font-family: var(--mono); background: var(--bg); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; margin-top: 8px; font-size: .9rem; overflow-x: auto; }
kbd { background: var(--surface2); border: 1px solid var(--line); border-bottom-width: 2px; border-radius: 6px; padding: 1px 7px; font-size: .9em; }
.table-wrap { overflow-x: auto; border: 1px solid var(--line); border-radius: var(--radius); background: var(--surface); box-shadow: var(--shadow); }
.compat { width: 100%; border-collapse: collapse; }
.compat th, .compat td { text-align: left; padding: 12px 18px; border-bottom: 1px solid var(--line); }
.compat tr:last-child td { border-bottom: 0; } .compat th { font-size: .82rem; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); background: var(--surface2); }
.gpu-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 18px; margin-top: 24px; }
.gpu { margin: 0; padding: 20px 22px; border-left: 4px solid var(--line); }
.gpu h3 { font-size: 1.05rem; margin: 8px 0 4px; } .gpu p { margin: 0; color: var(--muted); font-size: .95rem; }
.gpu-tag { display: inline-block; font-size: .75rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; }
.gpu-ok { border-left-color: var(--ok); } .gpu-ok .gpu-tag { color: var(--ok); }
.gpu-warn { border-left-color: var(--warn); } .gpu-warn .gpu-tag { color: var(--warn); }
.gpu-no { border-left-color: var(--danger); } .gpu-no .gpu-tag { color: var(--danger); }
.dot { display: inline-block; width: 10px; height: 10px; border-radius: 50%; margin-right: 10px; }
.dot-ok { background: var(--ok); } .dot-warn { background: var(--warn); }

/* Account */
.acct-head { display: flex; align-items: center; gap: 18px; margin: 44px 0 26px; }
.acct-head h1 { margin: 0; font-size: 2rem; } .acct-head p { margin: 0; }
.acct-out { margin-left: auto; }
.avatar { width: 62px; height: 62px; border-radius: 50%; display: grid; place-items: center; font-size: 1.7rem; font-weight: 700; color: #fff; background: linear-gradient(145deg, #5da0ff, #2a55b8); box-shadow: var(--shadow); }
.empty { text-align: center; padding: 18px 0 6px; color: var(--accent); } .empty p { margin: .3em 0; } .empty .muted { color: var(--muted); }

/* Recovery key: modal over the (dimmed) account page */
body.modal-open { overflow: hidden; }
.behind { filter: blur(3px); opacity: .55; pointer-events: none; user-select: none; }
.modal-backdrop { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; overflow-y: auto;
  background: rgba(8, 12, 22, .66); backdrop-filter: blur(5px); }
.modal { width: min(560px, 100%); max-height: 100%; overflow-y: auto; background: var(--surface); color: var(--text);
  border-radius: 18px; padding: 30px 30px 28px; border-top: 5px solid var(--danger);
  box-shadow: 0 30px 80px rgba(0, 0, 0, .55), 0 0 0 1px rgba(255, 255, 255, .06); animation: modal-in .22s ease-out; }
.modal:focus { outline: none; }
@keyframes modal-in { from { opacity: 0; transform: translateY(14px) scale(.98); } }
.m-icon { width: 46px; height: 46px; border-radius: 50%; display: grid; place-items: center; margin-bottom: 14px;
  background: color-mix(in srgb, var(--danger) 14%, var(--surface)); color: var(--danger); font-size: 1.7rem; font-weight: 900; }
.modal h1 { font-size: 1.55rem; margin: 0 0 .4em; }
.modal .m-h2 { font-size: 1.4rem; }
.modal p { color: var(--muted); }
.modal .m-lead { color: var(--danger); font-weight: 600; margin-bottom: 14px; }
.m-points { list-style: none; margin: 20px 0 24px; padding: 0; display: grid; gap: 12px; }
.m-points li { padding: 12px 14px 12px 16px; border-left: 3px solid var(--danger); background: var(--surface2); border-radius: 0 10px 10px 0; color: var(--muted); font-size: .96rem; line-height: 1.45; }
.m-points b { display: block; color: var(--text); font-size: 1rem; margin-bottom: 2px; }
.keybox { display: flex; flex-wrap: wrap; justify-content: center; gap: 6px 12px; padding: 20px 12px; margin: 6px 0 14px;
  background: var(--bg); border: 1px solid var(--line); border-radius: 12px; user-select: all; }
.kg { font-family: var(--mono); font-weight: 700; font-size: clamp(.9rem, 3.7vw, 1.2rem); letter-spacing: .06em; color: var(--text); }
.kg-prefix { color: var(--danger); }
.key-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.key-actions .btn { padding: 10px 16px; font-size: .94rem; }
.copied { color: var(--ok); font-weight: 700; font-size: .92rem; }
.key-tip { font-size: .88rem; margin: 10px 0 0; }
.modal-form { margin-top: 20px; padding-top: 18px; border-top: 1px solid var(--line); }
.modal-form label:not(.check) { display: block; margin: 0 0 8px; font-weight: 600; font-size: .95rem; }
.modal-form input[type=text] { text-transform: uppercase; }
.modal-form .check { margin: 16px 0 18px; font-size: .92rem; color: var(--muted); }
.modal .notice { margin: 14px 0 0; }
.print-sheet { display: none; }

@media print {
  body { background: #fff; color: #000; }
  .top, .behind, .modal-backdrop, .foot { display: none !important; }
  .print-sheet { display: block; font-family: Lato, sans-serif; padding: 30px; color: #000; }
  .print-key { font-family: var(--mono); font-size: 22pt; font-weight: 700; border: 3px solid #000; padding: 18px; text-align: center; margin: 24px 0; }
}

@media (max-width: 900px) {
  .hero-grid, .band-grid, .release, .grid-2 { grid-template-columns: 1fr; }
  .features, .steps, .grid-3, .gpu-grid { grid-template-columns: 1fr; }
  .hero { padding-top: 44px; } .hero-art { max-width: 520px; }
  .cloud { flex-direction: column; align-items: flex-start; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  nav a:not(.btn) { padding: 8px; }
  .modal { padding: 22px 18px 20px; }
  .acct-head { flex-wrap: wrap; } .acct-out { margin-left: 0; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* Installer */
select { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; color: var(--text); background: var(--bg); border: 1px solid var(--line); }
.form h2 { font-size: 1.15rem; margin: 26px 0 4px; }
.req { list-style: none; margin: 0; padding: 0; }
.req li { padding: 7px 0 7px 26px; position: relative; border-bottom: 1px solid var(--line); font-size: .95rem; }
.req li:last-child { border-bottom: 0; }
.req li::before { position: absolute; left: 0; top: 7px; font-weight: 700; }
.req-ok::before { content: "\2713"; color: var(--ok); } .req-no::before { content: "\2715"; color: var(--danger); } .req-warn::before { content: "!"; color: var(--warn); }
.cfgbox { width: 100%; resize: vertical; white-space: pre; }
code { background: var(--surface2); padding: 1px 6px; border-radius: 5px; font-size: .9em; }

/* Admin */
.admin-title { margin-top: 28px; }
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin: 22px 0; }
.admin-table td, .admin-table th { white-space: nowrap; }
.admin-table td:first-child { white-space: normal; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.row-actions form { margin: 0; } .row-actions .btn-small { margin-left: 0; padding: 7px 12px; }
.badge-ok { background: color-mix(in srgb, var(--ok) 14%, var(--surface)); color: var(--ok); border-color: var(--ok); }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
textarea { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; color: var(--text); background: var(--bg); border: 1px solid var(--line); resize: vertical; }
input[type=date] { width: 100%; font: inherit; padding: 12px 14px; border-radius: 10px; color: var(--text); background: var(--bg); border: 1px solid var(--line); }
.source { border: 1px solid var(--line); border-radius: 12px; padding: 6px 16px 16px; margin: 20px 0 0; }
.source legend { padding: 0 8px; font-weight: 700; font-size: .92rem; color: var(--muted); }
.source .check { margin: 12px 0 8px; } .source .src-file, .source .src-url { margin: 0 0 6px 30px; }
.source [hidden] { display: none; }
.hash-mini { font-size: .8rem; }
@media (max-width: 900px) { .stats { grid-template-columns: 1fr 1fr; } .two-col { grid-template-columns: 1fr; } .row-actions { flex-wrap: wrap; } }

/* Update panel */
.stats-3 { grid-template-columns: repeat(3, 1fr); margin: 14px 0; }
.filelist { margin: 8px 0 12px; padding-left: 1.2em; max-height: 260px; overflow: auto; font-size: .9rem; }
.filelist li { margin: 2px 0; }
.lead-line { font-size: 1.15rem; margin: 0 0 12px; }
.inline-form { display: inline-block; margin-top: 10px; }
.card .form { margin-top: 18px; }
.card .form + .inline-form { margin-left: 0; }
input[type=file] { width: 100%; font: inherit; padding: 10px; border-radius: 10px; border: 1px dashed var(--line); background: var(--bg); color: var(--text); }
details.rb summary { list-style: none; display: inline-flex; cursor: pointer; }
details.rb summary::-webkit-details-marker { display: none; }
details.rb[open] { position: absolute; right: 24px; z-index: 5; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; box-shadow: var(--shadow); min-width: 240px; }
details.rb .form { margin: 10px 0 0; } details.rb label { display: block; font-size: .85rem; margin-bottom: 4px; }

/* Delete-account modal: the wrapper carries the [hidden] attribute; JS removes it, and without JS the #delete-modal link shows it via :target */
#delete-modal:target { display: block; }
.del-final { color: var(--text) !important; margin: 4px 0 6px; }
.m-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 18px; }
.m-actions .btn { min-width: 120px; }
.btn.is-off, .btn.is-off:hover { opacity: .45; cursor: not-allowed; }
.modal-form input + label:not(.check) { margin-top: 16px; }

/* Admin: accounts */
.searchbar { display: flex; flex-wrap: wrap; gap: 10px; margin: 6px 0 18px; }
.searchbar input[type=text] { flex: 1 1 220px; }
.searchbar select { flex: 0 1 220px; width: auto; }
.pager { display: flex; align-items: center; justify-content: center; gap: 16px; margin: 16px 0 0; }
.badge-bad { background: color-mix(in srgb, var(--danger) 12%, var(--surface)); color: var(--danger); border-color: var(--danger); }
.facts { display: grid; grid-template-columns: max-content 1fr; gap: 8px 18px; margin: 0 0 12px; }
.facts dt { color: var(--muted); font-size: .92rem; } .facts dd { margin: 0; }
.inline-gap { margin-top: 12px; }
.wrap-cell { white-space: normal !important; max-width: 340px; }
@media (max-width: 560px) { .facts { grid-template-columns: 1fr; gap: 2px; } .facts dd { margin-bottom: 8px; } }

/* Channels */
.badge-exp { background: color-mix(in srgb, #8a4fd8 14%, var(--surface)); color: #8a4fd8; border-color: #8a4fd8; }
.release-exp { border-left: 4px solid #8a4fd8; }
.release + .release { margin-top: -6px; }

/* Snow Cloud: computers on /account */
.dev-list { list-style: none; margin: 0 0 12px; padding: 0; }
.dev-list li { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 10px 0; border-top: 1px solid color-mix(in srgb, currentColor 15%, transparent); }
.dev-list li:first-child { border-top: 0; }
