:root {
  color-scheme: dark;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: #151616;
  color: #f1f2f2;
}
* { box-sizing: border-box; }
html, body { min-height: 100%; }
body {
  margin: 0;
  min-height: 100vh;
  background:
    radial-gradient(circle at 20% 0%, rgba(255,255,255,.035), transparent 34rem),
    #151616;
}
button, input { font: inherit; }
button { cursor: pointer; }
.shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 32px 20px;
}
.card {
  width: min(100%, 760px);
  background: #1d1f1f;
  border: 1px solid #303333;
  border-radius: 16px;
  box-shadow: 0 24px 80px rgba(0,0,0,.34);
  padding: 28px;
}
.brand-row { display: flex; align-items: center; gap: 14px; margin-bottom: 30px; }
.brand-mark {
  width: 42px; height: 42px; border-radius: 11px;
  display: grid; place-items: center;
  background: #ededed; color: #171818;
  font-weight: 800; font-size: 21px; letter-spacing: -.04em;
}
.brand { font-size: 22px; font-weight: 720; letter-spacing: -.03em; }
.subtitle { margin-top: 2px; color: #919696; font-size: 13px; }
form { display: grid; gap: 9px; max-width: 520px; }
label { color: #c3c7c7; font-size: 13px; margin-top: 6px; }
input {
  width: 100%; border: 1px solid #393d3d; background: #171919; color: #f5f6f6;
  border-radius: 10px; padding: 11px 12px; outline: none;
  transition: border-color .14s ease, box-shadow .14s ease;
}
input:focus { border-color: #6f7575; box-shadow: 0 0 0 3px rgba(255,255,255,.055); }
button {
  border: 0; border-radius: 10px; padding: 11px 14px;
  background: #ededed; color: #171818; font-weight: 690;
  transition: opacity .14s ease, transform .14s ease;
}
button:hover { opacity: .92; }
button:active { transform: translateY(1px); }
button:disabled { opacity: .45; cursor: default; transform: none; }
#loginButton { margin-top: 13px; }
button.secondary {
  width: auto; background: #2a2d2d; color: #d9dcdc; border: 1px solid #3a3e3e;
  padding: 8px 11px; font-size: 13px;
}
button.secondary.compact { padding: 7px 10px; font-size: 11px; }
.message { min-height: 18px; margin: 4px 0 0; color: #d48585; font-size: 12px; }
.footnote { margin: 18px 0 0; color: #777d7d; font-size: 12px; }
.account-line { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 18px; }
.eyebrow { color: #7d8383; font-size: 11px; font-weight: 700; letter-spacing: .08em; text-transform: uppercase; }
.account-name { margin-top: 4px; font-size: 20px; font-weight: 700; }
.status-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin: 18px 0 28px; }
.status-card { background: #181a1a; border: 1px solid #2c2f2f; border-radius: 12px; padding: 14px; }
.status-value { margin-top: 7px; font-size: 14px; font-weight: 650; display: flex; align-items: center; gap: 7px; }
.muted { margin-top: 5px; color: #777d7d; font-size: 12px; }
.dot { width: 8px; height: 8px; border-radius: 50%; display: inline-block; }
.dot.ok { background: #66b887; box-shadow: 0 0 0 3px rgba(102,184,135,.09); }
.section-head { display: flex; align-items: end; justify-content: space-between; gap: 16px; margin-bottom: 10px; }
.section-title { margin-top: 4px; font-size: 15px; font-weight: 680; }
.content-section { margin-bottom: 20px; }
.content-head { align-items: center; }
.content-list { display: grid; gap: 10px; }
.content-empty {
  border: 1px dashed #343838; border-radius: 11px; padding: 18px;
  color: #858b8b; font-size: 13px; text-align: center;
}
.list-card {
  --list-accent: #777d7d;
  background: #181a1a; border: 1px solid #2c2f2f; border-radius: 12px; overflow: hidden;
}
.list-head {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 11px 13px; border-bottom: 1px solid #282b2b;
}
.list-title-wrap { display: flex; align-items: center; gap: 9px; min-width: 0; }
.list-color { width: 8px; height: 8px; border-radius: 50%; background: var(--list-accent); flex: 0 0 auto; }
.list-title { font-size: 14px; font-weight: 680; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.list-meta { color: #777d7d; font-size: 11px; flex: 0 0 auto; }
.task-list { padding: 5px 0; }
.task-row { display: flex; gap: 9px; align-items: flex-start; padding: 6px 13px; min-height: 30px; }
.task-row.checked .task-text { color: #777d7d; text-decoration: line-through; }
.task-text { color: #d9dcdc; font-size: 12.5px; line-height: 1.42; overflow-wrap: anywhere; }
.check-marker {
  width: 15px; height: 15px; margin-top: 1px; border: 1px solid #676d6d; border-radius: 4px;
  display: grid; place-items: center; color: #a9d8ba; font-size: 10px; flex: 0 0 auto;
}
.paragraph-marker { width: 15px; color: #626868; font-size: 13px; line-height: 15px; text-align: center; flex: 0 0 auto; }
.task-empty { padding: 9px 13px 11px; color: #676d6d; font-size: 11px; font-style: italic; }
.content-updated { text-align: right; margin-top: 7px; }
.deleted-section {
  margin: 4px 0 28px; border: 1px solid #303333; border-radius: 12px; background: #191b1b; overflow: hidden;
}
.deleted-toggle {
  width: 100%; display: flex; justify-content: space-between; gap: 16px; align-items: center;
  background: transparent; color: inherit; text-align: left; border-radius: 0; padding: 12px 13px;
}
.deleted-toggle:hover { background: rgba(255,255,255,.025); opacity: 1; }
.deleted-title { display: block; }
.deleted-summary {
  color: #a0a5a5; background: #242727; border: 1px solid #343838; border-radius: 999px;
  padding: 3px 8px; font-size: 10px; flex: 0 0 auto;
}
.deleted-panel { padding: 0 13px 13px; border-top: 1px solid #2b2e2e; }
.deleted-help { line-height: 1.45; margin: 10px 0; }
.deleted-list { display: grid; gap: 6px; }
.deleted-counts { color: #a5aaaa; font-size: 11px; margin-bottom: 8px; }
.deleted-row { background: #151717; border: 1px solid #292c2c; border-radius: 8px; padding: 8px 10px; }
.deleted-name { color: #c7caca; font-size: 12px; overflow-wrap: anywhere; }
.deleted-meta { margin-top: 3px; color: #666c6c; font: 10px/1.35 ui-monospace, SFMono-Regular, Consolas, monospace; overflow-wrap: anywhere; }
.devices-head { margin-top: 0; }
.device-list { display: grid; gap: 8px; }
.device {
  display: flex; justify-content: space-between; gap: 14px; align-items: center;
  padding: 11px 12px; background: #181a1a; border: 1px solid #2c2f2f; border-radius: 10px;
}
.device-main { min-width: 0; }
.device-name { font-size: 13px; font-weight: 640; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.device-meta { margin-top: 3px; color: #747a7a; font-size: 11px; }
.badge { flex: 0 0 auto; color: #8e9494; border: 1px solid #343838; border-radius: 999px; padding: 3px 7px; font-size: 10px; }
.badge.current { color: #a8d9bb; border-color: #355342; background: rgba(102,184,135,.05); }
[hidden] { display: none !important; }
@media (max-width: 640px) {
  .shell { padding: 18px 12px; place-items: start center; }
  .card { border-radius: 13px; padding: 22px 18px; }
  .status-grid { grid-template-columns: 1fr; }
  .list-head { align-items: flex-start; flex-direction: column; gap: 5px; }
  .list-meta { padding-left: 17px; }
}
