:root {
  --bg: #102636;
  --bg2: #163246;
  --panel: #1a3a4f;
  --panel2: #21475e;
  --line: #3a5d74;
  --text: #f4f8fc;
  --muted: #c9d7e3;
  --navy: #12344d;
  --navy2: #0b2538;
  --heading: #f7fbff;
  --accent: #7eb6e4;
  --secure: #6ed0be;
  --secure-bg: rgba(15, 107, 92, .28);
  --ok: #7ddea8;
  --bad: #ffb4ab;
  --bad-bg: rgba(180, 35, 24, .28);
  --warn: #f0c56e;
  --warn-bg: rgba(154, 103, 0, .28);
  --link: #9fd0f5;
  --add: #123526;
  --del: #3a1a18;
  --shadow: 0 1px 2px rgba(0, 0, 0, .25), 0 12px 32px rgba(0, 0, 0, .18);
  --mono: "Cascadia Mono", "SFMono-Regular", ui-monospace, Consolas, monospace;
  --sans: "Segoe UI", system-ui, -apple-system, Roboto, Helvetica, Arial, sans-serif;
}
* { box-sizing: border-box; }
html, body {
  margin: 0; min-height: 100%;
  color: var(--text);
  color-scheme: dark;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.55;
  font-weight: 400;
  background:
    radial-gradient(1100px 480px at 8% -8%, rgba(80, 150, 190, .22), transparent 52%),
    radial-gradient(800px 380px at 100% 0%, rgba(15, 107, 92, .16), transparent 46%),
    var(--bg);
}
a { color: var(--link); text-decoration: none; }
a:hover { text-decoration: underline; }
code, pre, .mono, textarea.editor, .diff { font-family: var(--mono); }
.trust {
  background: var(--navy2);
  color: #e4eef6;
  font-size: 13px;
  letter-spacing: .04em;
  padding: 6px 24px;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  align-items: center;
  gap: 12px;
}
.trust-spacer { min-width: 0; }
.trust-copy {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 18px;
  align-items: center;
  justify-content: center;
  text-align: center;
}
.trust .sysstats {
  justify-self: end;
  background: rgba(16, 38, 54, .45);
}
.trust strong { color: #fff; font-weight: 600; }
.trust .sep { opacity: .35; }
.trust.warnbar { background: #3b2a0a; color: #f6e7c1; }
.top {
  padding: 0;
  border-bottom: 1px solid var(--line);
  background: #122c3e;
  position: sticky; top: 0; z-index: 20;
  box-shadow: 0 1px 0 rgba(0,0,0,.2);
}
.top-inner {
  max-width: 1280px;
  margin: 0 auto;
  padding: 10px 24px;
  min-height: 72px;
  display: flex;
  flex-wrap: nowrap;
  align-items: center;
  gap: 16px;
  position: relative;
}
.top-left, .top-right, .top-mid {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}
.top-left {
  flex: 1 1 0;
  justify-content: flex-start;
}
.top-mid {
  flex: 1 1 280px;
  max-width: 440px;
  justify-content: stretch;
}
.top-right {
  flex: 1 1 0;
  justify-content: flex-end;
  margin-left: 0;
  gap: 8px;
}
.brand {
  display: flex; align-items: center; gap: 12px;
  color: var(--heading); font-weight: 700; font-size: 20px; letter-spacing: -.02em;
  text-decoration: none; line-height: 1.15;
}
.brand:hover { text-decoration: none; color: #fff; }
.brand .mark {
  width: 44px; height: 44px; border-radius: 11px;
  background: #2a6f9a; color: #fff; display: grid; place-items: center;
  font-size: 18px; font-weight: 700; flex: none;
}
.brand small { display: block; font-weight: 500; font-size: 12px; color: var(--muted); letter-spacing: .01em; }
.top nav { display: flex; gap: 2px; font-size: 14px; font-weight: 600; align-items: center; }
.top nav a { color: var(--muted); padding: 6px 10px; border-radius: 6px; text-decoration: none; }
.top nav a:hover { background: var(--bg2); color: var(--heading); }
.top .btn { padding: 6px 12px; font-size: 13px; line-height: 1.2; }
.top .dl-app { white-space: nowrap; }
.sp { flex: 1; min-width: 8px; }
.userchip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 3px 10px 3px 3px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--bg);
  color: var(--heading);
  font-weight: 600;
  font-size: 13px;
  text-decoration: none;
  white-space: nowrap;
  max-width: 180px;
}
.userchip:hover { border-color: #5d87a3; text-decoration: none; color: #fff; }
.userchip .avatar {
  width: 24px;
  height: 24px;
  border-radius: 50%;
  background: #2a6f9a;
  color: #fff;
  display: grid;
  place-items: center;
  font-size: 11px;
  font-weight: 700;
  flex: none;
}
.userchip .uname {
  overflow: hidden;
  text-overflow: ellipsis;
}
.userlink { color: var(--heading); font-weight: 600; text-decoration: none; white-space: nowrap; }
.userlink:hover { color: #fff; text-decoration: none; }
.search {
  background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 8px 12px; border-radius: 8px;
}
.search:focus { outline: 2px solid rgba(126, 182, 228, .35); border-color: var(--accent); }
.chip {
  display: inline-flex; align-items: center; gap: 6px;
  background: var(--secure-bg); color: var(--secure);
  border: 1px solid rgba(110, 208, 190, .35); border-radius: 999px;
  font-size: 11px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase;
  padding: 4px 10px; white-space: nowrap;
}
.sysstats {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 999px;
  padding: 5px 12px;
  color: var(--muted);
  font-size: 13px;
  font-weight: 600;
  white-space: nowrap;
}
.sysstats strong {
  color: var(--heading);
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.sysstats .dotsep { opacity: .45; font-weight: 700; }
.alerts {
  position: relative;
  flex: none;
  align-self: stretch;
  display: flex;
  align-items: center;
}
.alerts .bell {
  position: relative;
  background: none;
  border: 0;
  color: var(--muted);
  font: inherit;
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  padding: 6px 10px;
  border-radius: 6px;
}
.alerts:hover .bell { color: var(--heading); background: var(--bg2); }
.bell .dot {
  position: absolute; top: 4px; right: 4px; width: 8px; height: 8px;
  background: #e85d52; border-radius: 50%;
}
.alerts .drop {
  display: none;
  position: absolute;
  left: 50%;
  top: 100%;
  width: 320px;
  max-width: calc(100vw - 24px);
  padding-top: 8px;
  z-index: 40;
  transform: translateX(-50%);
}
.alerts .drop-inner {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 10px;
  max-height: min(70vh, 420px);
  overflow: auto;
  box-shadow: var(--shadow);
}
.alerts:hover .drop { display: block; }
.wrap { max-width: 1280px; margin: 0 auto; padding: 28px 24px 88px; }
.page-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 18px;
}
.page-head h2 { margin: 0; }
.home-lead { margin: -6px 0 18px; }
.empty-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: var(--panel);
  box-shadow: var(--shadow);
  padding: 56px 28px;
  text-align: center;
}
.empty-card p { margin: 0 0 18px; color: var(--muted); font-size: 16px; }
.auth {
  max-width: 1040px; margin: 36px auto; display: grid; grid-template-columns: 1.15fr .85fr; gap: 36px;
  padding: 0 20px 40px;
}
@media (max-width: 860px) { .auth { grid-template-columns: 1fr; } }
.hero h1 { font-weight: 650; font-size: 36px; letter-spacing: -.03em; color: var(--heading); margin: 0 0 12px; line-height: 1.2; }
.hero p { color: var(--muted); margin: 0 0 12px; }
.trust-list { list-style: none; padding: 0; margin: 22px 0 0; }
.trust-list li {
  display: flex; gap: 12px; align-items: flex-start;
  padding: 12px 0; border-top: 1px solid var(--line); color: var(--text); font-size: 15px;
}
.trust-list li:first-child { border-top: 0; }
.trust-list .ic {
  width: 28px; height: 28px; border-radius: 6px; background: var(--secure-bg); color: var(--secure);
  display: grid; place-items: center; font-size: 12px; font-weight: 800; flex: none;
}
.card {
  background: var(--panel); border: 1px solid var(--line); border-radius: 12px; padding: 24px;
  box-shadow: var(--shadow);
}
.form-card { max-width: 520px; margin: 0 auto; }
.form-card h2 { margin: 0 0 8px; }
.dl-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(280px, 1fr));
  gap: 16px;
  margin-top: 18px;
}
.dl-card .mono { margin: 10px 0; color: var(--muted); }
.dl-card .btn { margin-top: 8px; display: inline-block; }
.dl-card code {
  display: block;
  margin-top: 8px;
  padding: 10px 12px;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  font-size: 12px;
  color: var(--text);
  overflow-x: auto;
}
.sec-card { margin-top: 28px; }
.sec-card h3 { margin-top: 22px; }
.sec-card h3:first-child { margin-top: 0; }
.sec-card .trust-list { margin-top: 8px; }
.sec-card .trust-list code, .sec-card .note code {
  font-size: 0.92em;
  background: var(--bg);
  padding: 1px 6px;
  border-radius: 4px;
}
.auth .card {
  display: flex;
  flex-direction: column;
}
#form {
  display: flex;
  flex-direction: column;
}
#form input[type=text],
#form input[type=email],
#form input[type=password],
#form input:not([type]) {
  width: 100%;
  max-width: 100%;
}
#form #msg { margin: 0; }
#form #msg:empty { display: none; }
#form .btn.primary {
  display: block;
  width: 100%;
  margin: 16px 0 0;
  flex: none;
  position: static;
}
.tabs { display: flex; gap: 6px; margin-bottom: 16px; background: var(--bg); padding: 4px; border-radius: 10px; flex: none; }
.tabs button, .btn, button.btn {
  background: var(--panel2); color: var(--text); border: 1px solid var(--line);
  padding: 8px 14px; border-radius: 8px; cursor: pointer; font: inherit; font-weight: 600;
}
.tabs button { flex: 1; border: 0; background: transparent; color: var(--muted); }
.tabs button.on { background: var(--panel2); color: var(--heading); box-shadow: var(--shadow); }
.btn.primary { background: #2a6f9a; border-color: #2a6f9a; color: #fff; }
.btn.primary:hover { background: #3483b5; border-color: #3483b5; }
.btn.ghost { background: transparent; color: var(--text); }
.auth-split {
  display: flex; align-items: center; gap: 12px;
  margin: 22px 0 16px; color: var(--muted);
  font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase;
  flex: none;
}
.auth-split::before, .auth-split::after { content: ""; flex: 1; height: 1px; background: var(--line); }
a.btn.google, .btn.google {
  width: 100%; margin-top: 0;
  display: flex; align-items: center; justify-content: center; gap: 12px;
  height: 44px; padding: 0 16px;
  background: #fff; color: #1f1f1f;
  border: 1px solid #dadce0; border-radius: 8px;
  font-weight: 600; font-size: 15px; letter-spacing: 0;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .25);
  text-decoration: none;
  flex: none;
  position: relative;
}
a.btn.google:hover, .btn.google:hover {
  background: #f8f9fa; border-color: #c6c6c6;
  box-shadow: 0 1px 3px rgba(0, 0, 0, .3);
  text-decoration: none; color: #1f1f1f;
}
a.btn.google:focus-visible {
  outline: 2px solid #4285f4; outline-offset: 2px;
}
.btn.google .gicon { width: 18px; height: 18px; flex: none; display: block; }
.btn.danger { background: transparent; color: var(--bad); border-color: rgba(255, 180, 171, .4); }
.btn.ok { background: #0f6b5c; border-color: #0f6b5c; color: #fff; }
label { display: block; font-size: 13px; color: var(--muted); margin: 10px 0 4px; font-weight: 600; }
input[type=text], input[type=email], input[type=password], input[type=search], input:not([type]), select, textarea {
  width: 100%; background: var(--bg); border: 1px solid var(--line); color: var(--text);
  padding: 10px 12px; border-radius: 8px; font: inherit; box-sizing: border-box;
}
.top-inner input.search {
  width: 100%;
  min-width: 0;
  max-width: none;
  flex: 1;
  padding: 8px 14px;
}
input::placeholder, textarea::placeholder { color: #8ea3b5; }
input:focus, select:focus, textarea:focus { outline: 2px solid rgba(126, 182, 228, .35); border-color: var(--accent); }
textarea { min-height: 90px; }
.err { background: var(--bad-bg); color: #ffd6d1; padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: 15px; }
.perm-warn { border: 1px solid #ff8a7a; padding: 14px 16px; }
.perm-warn strong { display: block; font-size: 17px; font-weight: 800; margin-bottom: 6px; color: #ffe8e4; }
.flash {
  position: sticky;
  top: 0;
  z-index: 40;
  padding: 14px 20px;
  text-align: center;
  font-size: 16px;
  font-weight: 650;
  border-bottom: 1px solid var(--line);
}
.flash.err { background: var(--bad-bg); color: #ffd6d1; margin: 0; border-radius: 0; }
.flash.ok { background: var(--secure-bg); color: #c8f4ea; margin: 0; border-radius: 0; }
.okmsg { background: var(--secure-bg); color: #c8f4ea; padding: 10px 12px; border-radius: 8px; margin: 8px 0; font-size: 15px; }
.spam-notice {
  background: #4a3210;
  border: 2px solid var(--warn);
  color: #ffe7b3;
  padding: 16px 18px;
  border-radius: 10px;
  margin: 0 0 18px;
  font-size: 16px;
  font-weight: 600;
  line-height: 1.5;
}
.spam-notice strong {
  display: block;
  color: #fff6dc;
  font-size: 18px;
  font-weight: 800;
  margin-bottom: 6px;
  letter-spacing: .01em;
}
.spam-notice code { color: #fff; font-weight: 700; }
.spam-notice-fail {
  background: #4a2218;
  border-color: var(--bad);
  color: #ffd4ce;
}
.spam-notice-fail strong { color: #ffe8e4; }
.muted { color: var(--muted); }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 14px; }
.repo {
  display: block; padding: 18px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel);
  color: inherit; text-decoration: none; box-shadow: var(--shadow);
}
.repo:hover { border-color: #5d87a3; text-decoration: none; }
.repo h3 { margin: 0 0 6px; font-size: 16px; color: var(--heading); }
.repo-meta {
  margin-top: 12px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px 10px;
  align-items: center;
  font-size: 12px;
  color: var(--muted);
}
.repo-meta .hash { font-size: 12px; }
.version-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px 18px;
  margin: 0 0 16px;
  box-shadow: var(--shadow);
}
.version-card.repo-ver {
  position: sticky;
  top: 56px;
  z-index: 15;
}
.version-card.ver-bump {
  animation: verbump .9s ease;
}
@keyframes verbump {
  0% { box-shadow: 0 0 0 0 rgba(126, 182, 228, .55); border-color: var(--accent); }
  100% { box-shadow: var(--shadow); }
}
.ver-num {
  font-weight: 700;
  color: var(--heading);
}
.version-card .ver-num { font-size: 18px; letter-spacing: .02em; }
.repo-meta .ver-num { font-size: 12px; }
.version-row { margin-top: 6px; color: var(--muted); font-size: 14px; }
.version-row:first-child { margin-top: 0; color: var(--text); }
.version-row.owner-fork { color: var(--text); }
.version-row.owner-fork strong { color: var(--accent); }
.ahead { color: var(--ok); font-weight: 700; }
.behind { color: var(--warn); font-weight: 700; }
.ab { font-size: 15px; margin: 12px 0; }
.crumb { color: var(--muted); font-size: 14px; margin-bottom: 16px; }
.files { border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--panel); box-shadow: var(--shadow); }
.files a, .files .item {
  display: flex; gap: 10px; padding: 10px 14px; border-top: 1px solid var(--line); color: var(--text); align-items: center; text-decoration: none;
}
.files a:first-child, .files .item:first-child { border-top: 0; }
.files a:hover { background: var(--panel2); text-decoration: none; }
.ico { width: 18px; color: var(--accent); font-size: 12px; font-weight: 700; }
.readme { margin-top: 18px; padding: 20px; border: 1px solid var(--line); border-radius: 12px; background: var(--panel); line-height: 1.65; box-shadow: var(--shadow); }
.readme pre { background: var(--bg); padding: 12px; overflow: auto; border-radius: 8px; }
.toolbar { display: flex; gap: 8px; margin: 12px 0; flex-wrap: wrap; align-items: center; }
textarea.editor {
  width: 100%; min-height: 58vh; background: #0c1a26; color: #f1f6fa;
  border: 1px solid var(--line); border-radius: 10px; padding: 14px; font-size: 14px; line-height: 1.55;
}
.diff { border: 1px solid var(--line); border-radius: 10px; overflow: auto; font-size: 13px; background: #0c1a26; color: #e8f0f6; }
.diff .eq { padding: 1px 10px; white-space: pre-wrap; }
.diff .add { padding: 1px 10px; background: #123526; white-space: pre-wrap; }
.diff .del { padding: 1px 10px; background: #3a1a18; white-space: pre-wrap; }
.commit { padding: 12px 0; border-bottom: 1px solid var(--line); }
.staging-item { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; }
.staging-copy { min-width: 0; flex: 1; }
.staging-copy a { font-weight: 650; }
.commit-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; align-items: center; }
.commit-file {
  display: inline-flex; align-items: center; gap: 4px;
  max-width: 100%; font-family: var(--mono); font-size: 12px; line-height: 1.3;
  padding: 3px 8px; border-radius: 6px; border: 1px solid var(--line);
  background: var(--panel); color: var(--text); text-decoration: none;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.commit-file:hover { background: var(--panel2); text-decoration: none; }
.commit-file .file-st { font-weight: 700; }
.commit-file.added { color: var(--ok); border-color: rgba(125, 222, 168, .35); background: rgba(21, 115, 71, .18); }
.commit-file.modified { color: var(--accent); border-color: rgba(126, 182, 228, .35); background: rgba(29, 78, 137, .28); }
.commit-file.deleted { color: var(--bad); border-color: rgba(255, 180, 171, .35); background: var(--bad-bg); text-decoration: none; }
.commit-file.deleted .file-st { text-decoration: none; }
.commit-more { font-size: 12px; color: var(--muted); padding: 0 4px; }
.badge { font-size: 11px; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); font-weight: 700; text-transform: uppercase; letter-spacing: .04em; }
.badge.open { color: var(--ok); border-color: rgba(125, 222, 168, .4); background: rgba(21, 115, 71, .22); }
.badge.merged { color: var(--accent); border-color: rgba(126, 182, 228, .4); background: rgba(29, 78, 137, .35); }
@media (max-width: 1100px) {
  .brand small { display: none; }
}
@media (max-width: 960px) {
  .top-inner {
    flex-wrap: wrap;
  }
  .top-left, .top-right {
    flex: 1 1 auto;
  }
  .top-mid {
    flex: 1 1 100%;
    max-width: none;
    order: 3;
  }
  .top-inner input.search { width: 100%; max-width: none; }
  .userchip .uname { max-width: 96px; }
}
.drop .n { padding: 12px 14px; border-bottom: 1px solid var(--line); font-size: 14px; display: block; color: inherit; text-decoration: none; }
.drop .n:last-child { border-bottom: 0; }
.drop .n:hover { background: var(--panel2); text-decoration: none; color: inherit; }
.cols { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 800px) { .cols { grid-template-columns: 1fr; } }
.ver-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 12px; margin: 12px 0 18px; }
.ver-card { display: block; border: 1px solid var(--line); border-radius: 10px; background: var(--panel); padding: 10px 12px 12px; }
.ver-card textarea.editor { min-height: 28vh; margin-top: 8px; }
.ver-head { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.ver-head input { width: auto; margin: 0; }
.ver-head strong { color: var(--heading); }
h2 { font-weight: 650; color: var(--heading); letter-spacing: -.02em; }
h3 { font-size: 16px; color: var(--heading); }
.empty { color: var(--muted); padding: 36px; text-align: center; }
.rtf-view {
  white-space: pre-wrap;
  font-family: var(--sans);
  font-size: 16px;
  line-height: 1.6;
  background: var(--bg);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 16px 18px;
  margin-top: 8px;
  color: var(--text);
}
.chk { display: flex; gap: 8px; align-items: center; margin-top: 10px; color: var(--muted); }
.chk input { width: auto; }
.hash { font-family: var(--mono); font-size: 13px; color: var(--muted); }
.note { font-size: 14px; color: var(--muted); line-height: 1.55; }
.secret { font-family: var(--mono); background: var(--bg); padding: 12px; border-radius: 8px; word-break: break-all; border: 1px solid var(--line); margin-top: 8px; color: var(--text); }
.foot { color: var(--muted); font-size: 13px; text-align: center; padding: 8px 16px 28px; }
.who-badge { margin-left: auto; font-size: 11px; color: var(--secure); font-weight: 700; }
.presence { background: var(--bg2); border: 1px solid var(--line); border-radius: 10px; padding: 10px 14px; margin: 12px 0 0; }
.who { font-size: 14px; padding: 3px 0; }
.who-app { color: var(--accent); font-weight: 700; }
.live {
  width: 8px; height: 8px; background: #3dce7a; border-radius: 50%;
  display: inline-block; margin-right: 6px; box-shadow: 0 0 0 3px rgba(61, 206, 122, .22);
}
select {
  color-scheme: dark;
}
.notif-ask {
  max-width: 1280px;
  margin: 0 auto;
  padding: 14px 24px 0;
  display: flex;
  gap: 16px;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
}
.notif-ask > div:first-child { min-width: 0; flex: 1; }
.notif-ask strong { color: var(--heading); }
.notif-ask .muted { margin-top: 4px; }
.notif-ask-actions { display: flex; gap: 8px; flex: none; }
.account-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
  align-items: start;
}
@media (max-width: 900px) {
  .account-grid { grid-template-columns: 1fr; }
}
.pref-card h3 { margin: 0 0 8px; }
.danger-card { border-color: rgba(255, 180, 171, .4); }
.account-grid .danger-card { grid-column: 1 / -1; }
.danger-card h3 { color: var(--bad); }
#del-acc-confirm, #del-repo-confirm { margin-top: 12px; }
.pref-dl { margin: 0; }
.pref-dl > div { display: grid; grid-template-columns: 140px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px solid var(--line); }
.pref-dl dt { color: var(--muted); font-weight: 600; }
.pref-dl dd { margin: 0; color: var(--heading); word-break: break-word; }
.totp-setup { margin-top: 12px; }
.totp-qr {
  display: inline-flex;
  padding: 12px;
  background: #fff;
  border-radius: 10px;
  border: 1px solid var(--line);
  margin-bottom: 12px;
}
.totp-qr svg { display: block; width: 200px; height: 200px; }
.totp-secret { letter-spacing: .08em; font-size: 16px; font-weight: 700; }
.desk-card { grid-column: 1 / -1; }
.desk-pc {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 12px 14px;
  margin-top: 12px;
  background: var(--panel2);
}
.desk-pc h4 { margin: 0 4px 0 0; color: var(--heading); }
.desk-pc-head { margin-bottom: 8px; }
.desk-pc-head h4 { display: inline; }
.desk-bind {
  padding: 10px 0;
  border-top: 1px solid var(--line);
}
.desk-bind-top { margin-bottom: 4px; }
.desk-bind-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  margin: 8px 0;
}
.desk-check { display: flex; gap: 8px; align-items: flex-start; cursor: pointer; }
.desk-check input { margin-top: 4px; }
.desk-online { color: var(--ok); font-weight: 600; }
.desk-idle { color: var(--warn); font-weight: 600; }
.desk-offline { color: var(--muted); }
.desk-ign { margin-top: 6px; }
.desk-ign summary { cursor: pointer; color: var(--link); }
.desk-ign-text {
  width: 100%;
  margin-top: 8px;
  font-family: var(--mono);
  font-size: 13px;
}
.btn:disabled { opacity: .55; cursor: wait; }
.commit .ver-num { font-size: 13px; }
.legal-foot {
  margin: 28px 0 8px;
  text-align: center;
  font-size: 13px;
  color: var(--muted);
}
.auth .legal-foot { grid-column: 1 / -1; margin-top: 4px; }
.privacy-wrap { max-width: 820px; }
.privacy-switch { margin: 0 0 8px; color: var(--muted); font-size: 14px; }
.privacy-meta { color: var(--muted); font-size: 14px; margin-top: 0; }
.privacy-doc h1 { margin-top: 0; font-size: 28px; line-height: 1.25; color: var(--heading); }
.privacy-doc h2 { margin-top: 28px; font-size: 18px; }
.privacy-doc h3 { margin-top: 18px; font-size: 16px; }
.privacy-doc ul { padding-left: 1.2em; }
.privacy-doc li { margin: 6px 0; }
