/* Zerre notices dashboard. Graphite glass, one gold lead, dots. Dark by default, light by the system setting.
   Never blue, purple or pink (docs/BRAND.md). No inline styles anywhere: everything is in this file. */

:root {
  color-scheme: dark light;
  --void: #0b0b0c;
  --ink: #151516;
  --deep: #1f1f21;
  --raised: #2d2d30;
  --bg: var(--ink);
  --bg-deep: var(--void);
  --card: var(--deep);
  --card-2: var(--raised);
  --text: #f2f2f4;
  --text-2: #b9bac0;
  --text-3: #8d8e95;
  --hero: #eeeef1;
  --hero-ink: #101012;
  --line: rgba(255, 255, 255, 0.10);
  --line-2: rgba(255, 255, 255, 0.18);
  --gold: #ffb92e;
  --gold-mark: #ffb92e;
  --dot: rgba(255, 255, 255, 0.075);
  --green: #3fcf6a;
  --amber: #ffb92e;
  --orange: #ff7a2e;
  --red: #ff6a5f;
  --silver: #cbccd2;
  --green-bg: rgba(63, 207, 106, 0.12);
  --amber-bg: rgba(255, 185, 46, 0.12);
  --red-bg: rgba(255, 106, 95, 0.13);
  --silver-bg: rgba(203, 204, 210, 0.10);
  --shadow: 0 18px 44px rgba(0, 0, 0, 0.45);
  --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.055), rgba(255, 255, 255, 0) 38%);
  --radius: 16px;
  --radius-s: 10px;
  --font: -apple-system, BlinkMacSystemFont, 'SF Pro Text', 'Helvetica Neue', Helvetica, Arial, sans-serif;
  --font-round: ui-rounded, 'SF Pro Rounded', var(--font);
  --mono: ui-monospace, 'SF Mono', Menlo, Consolas, monospace;
}
@media (prefers-color-scheme: light) {
  :root {
    --bg: #f5f5f7;
    --bg-deep: #ececef;
    --card: #ffffff;
    --card-2: #f0f0f3;
    --text: #1d1d20;
    --text-2: #5e5e66;
    --text-3: #6b6c73;
    --hero: #2a2a2e;
    --hero-ink: #ffffff;
    --line: rgba(0, 0, 0, 0.10);
    --line-2: rgba(0, 0, 0, 0.20);
    --gold-mark: #ae6c00;
    --dot: rgba(0, 0, 0, 0.07);
    --green: #1b7a3a;
    --amber: #8a5600;
    --orange: #d04a0c;
    --red: #c42b24;
    --silver: #5a5c64;
    --green-bg: rgba(27, 122, 58, 0.10);
    --amber-bg: rgba(174, 108, 0, 0.12);
    --red-bg: rgba(196, 43, 36, 0.09);
    --silver-bg: rgba(90, 92, 100, 0.09);
    --shadow: 0 14px 34px rgba(20, 20, 30, 0.14);
    --sheen: linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%);
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  margin: 0;
  min-height: 100vh;
  background: var(--bg);
  color: var(--text);
  font: 15px/1.55 var(--font);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  z-index: -1;
  pointer-events: none;
  background:
    radial-gradient(
      900px 420px at 50% -10%,
      color-mix(in srgb, var(--text) 7%, transparent),
      transparent 70%
    ),
    radial-gradient(circle at 1px 1px, var(--dot) 1.1px, transparent 1.4px) 0 0 / 16px 16px;
}
h1, h2, h3 {
  font-family: var(--font-round);
  letter-spacing: -0.01em;
  line-height: 1.2;
  margin: 0;
}
h1 {
  font-size: clamp(1.5rem, 3vw, 2rem);
  font-weight: 700;
}
h2 {
  font-size: 1.1rem;
  font-weight: 650;
}
h3 {
  font-size: 0.95rem;
  font-weight: 650;
  margin: 1.1rem 0 0.5rem;
}
p {
  margin: 0 0 0.75em;
}
a {
  color: var(--text);
  text-decoration-color: color-mix(in srgb, var(--gold-mark) 70%, transparent);
  text-underline-offset: 3px;
}
code, kbd, pre, .mono {
  font-family: var(--mono);
  font-size: 0.88em;
}
code {
  background: var(--card-2);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.05em 0.4em;
}
.muted {
  color: var(--text-2);
}
.small {
  font-size: 0.85rem;
}
.fine {
  color: var(--text-3);
  font-size: 0.85rem;
  text-align: center;
  margin-top: 1.2rem;
}
.break {
  overflow-wrap: anywhere;
  word-break: break-all;
}
.sr {
  position: absolute !important;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0 0 0 0);
  white-space: nowrap;
}
.boot {
  text-align: center;
  color: var(--text-2);
  padding: 4rem 1rem;
}
:focus-visible {
  outline: 3px solid var(--gold-mark);
  outline-offset: 2px;
  border-radius: 6px;
}
button, input, select, textarea {
  font: inherit;
  color: inherit;
}
[hidden] {
  display: none !important;
}

/* dots */
svg.dots circle {
  fill: currentColor;
}
svg.dots circle.lead, svg.zmark circle.lead {
  fill: var(--gold);
}
svg.zmark circle {
  fill: var(--hero);
}
svg.loader circle {
  fill: var(--text-3);
  opacity: 0.35;
  animation: dotfill 1.1s ease-in-out infinite;
}
svg.loader circle.d1 {
  animation-delay: 0.12s;
}
svg.loader circle.d2 {
  animation-delay: 0.24s;
}
svg.loader circle.d3 {
  animation-delay: 0.36s;
}
svg.loader circle.d4 {
  animation-delay: 0.48s;
}
@keyframes dotfill {
  0%, 100% {
    opacity: 0.25;
  }
  40% {
    opacity: 1;
    fill: var(--gold);
  }
}

/* shell */
.skip {
  position: absolute;
  left: 12px;
  top: -60px;
  z-index: 50;
  background: var(--hero);
  color: var(--hero-ink);
  border: 0;
  padding: 10px 14px;
  border-radius: 10px;
  cursor: pointer;
}
.skip:focus {
  top: 10px;
}
.top {
  position: sticky;
  top: 0;
  z-index: 20;
  display: flex;
  align-items: center;
  gap: 14px;
  min-height: 58px;
  padding: 8px clamp(14px, 3vw, 28px);
  background: color-mix(in srgb, var(--bg) 94%, transparent);
  border-bottom: 1px solid var(--line);
}
.brand {
  display: flex;
  align-items: center;
  gap: 10px;
  font-family: var(--font-round);
  font-size: 1.05rem;
}
.env-flag {
  background: var(--red-bg);
  color: var(--red);
  border: 1px solid var(--red);
  border-radius: 999px;
  padding: 1px 10px;
  font-size: 0.75rem;
  font-weight: 700;
  letter-spacing: 0.06em;
}
.who {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 12px;
}
.shell {
  display: grid;
  grid-template-columns: 220px minmax(0, 1fr);
  gap: clamp(14px, 2.4vw, 32px);
  max-width: 1320px;
  margin: 0 auto;
  padding: clamp(14px, 2.4vw, 28px);
}
.nav {
  display: flex;
  flex-direction: column;
  gap: 2px;
  position: sticky;
  top: 76px;
  align-self: start;
}
.nav a {
  position: relative;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 9px 12px 9px 22px;
  border-radius: 10px;
  color: var(--text-2);
  text-decoration: none;
}
.nav a:hover {
  background: var(--card-2);
  color: var(--text);
}
.nav a[aria-current='page'] {
  background: var(--card);
  color: var(--text);
  box-shadow: inset 0 0 0 1px var(--line);
}
.nav .lead-dot {
  position: absolute;
  left: 9px;
  top: 50%;
  width: 6px;
  height: 6px;
  margin-top: -3px;
  border-radius: 50%;
  background: transparent;
  transition: background 0.2s;
}
.nav a[aria-current='page'] .lead-dot {
  background: var(--gold);
  box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold) 22%, transparent);
}
.main {
  min-width: 0;
  outline: none;
  display: flex;
  flex-direction: column;
  gap: 16px;
}
@media (max-width: 560px) {
  .brand .muted, .who > span.small {
    display: none;
  }
  .who .btn span {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    white-space: nowrap;
  }
  .who .btn {
    padding: 5px 9px;
  }
  .page-head {
    align-items: flex-start;
  }
  .card {
    padding: 16px;
  }
}
@media (max-width: 860px) {
  .shell {
    grid-template-columns: minmax(0, 1fr);
  }
  .nav {
    position: static;
    flex-direction: row;
    overflow-x: auto;
    padding-bottom: 4px;
    gap: 4px;
  }
  .nav a {
    flex: none;
    padding: 8px 12px 8px 20px;
  }
}

/* page and cards */
.page-head {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}
.page-head h1:focus {
  outline: none;
}
.subtitle {
  color: var(--text-2);
  margin: 0.3rem 0 0;
  max-width: 62ch;
}
.actions {
  display: flex;
  gap: 8px;
  align-items: center;
  flex-wrap: wrap;
}
.card {
  scroll-margin-top: 84px;
  background:
    var(--sheen),
    var(--card);
  border: 1px solid var(--line);
  border-radius: var(--radius);
  padding: 20px;
  box-shadow: 0 1px 0 rgba(255, 255, 255, 0.04) inset, var(--shadow);
}
.card-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 12px;
}
.card-head h2 {
  display: flex;
  align-items: center;
  gap: 10px;
}
.card-head h2::before {
  content: '';
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--gold);
  flex: none;
}
.card-head svg.dots {
  color: var(--text-2);
}
.cards-2 {
  display: grid;
  gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 340px), 1fr));
}
.stack {
  display: flex;
  flex-direction: column;
  gap: 14px;
}
.row {
  display: flex;
  gap: 8px;
  align-items: center;
}
.row.wrap {
  flex-wrap: wrap;
}
.row-label {
  color: var(--text-3);
  font-size: 0.85rem;
  margin-left: 6px;
}
.links {
  display: flex;
  gap: 8px;
  flex-wrap: wrap;
}
.grid-2, .grid-3, .grid-4 {
  display: grid;
  gap: 14px;
}
.grid-2 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 260px), 1fr));
}
.grid-3 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr));
}
.grid-4 {
  grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr));
}
.empty {
  display: grid;
  place-items: center;
  gap: 6px;
  padding: 28px 12px;
  color: var(--text-2);
  text-align: center;
}
.empty svg.dots {
  color: var(--text-3);
}
.kvs {
  display: grid;
  gap: 6px;
  margin: 0 0 12px;
}
.kv {
  display: grid;
  grid-template-columns: 11rem minmax(0, 1fr);
  gap: 10px;
}
.kv dt {
  color: var(--text-2);
}
.kv dd {
  margin: 0;
  overflow-wrap: anywhere;
}
.facts {
  display: grid;
  gap: 12px;
  grid-template-columns: repeat(auto-fit, minmax(190px, 1fr));
  margin: 8px 0 14px;
}
.facts > div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--card-2);
}
.facts strong {
  font-size: 1.15rem;
  font-family: var(--font-round);
}

/* banners */
.banner {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 12px 14px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--silver-bg);
}
.banner > i {
  flex: none;
  width: 9px;
  height: 9px;
  margin-top: 0.45em;
  border-radius: 50%;
  background: var(--silver);
}
.banner.ok {
  background: var(--green-bg);
  border-color: var(--green);
}
.banner.ok > i {
  background: var(--green);
}
.banner.error {
  background: var(--red-bg);
  border-color: var(--red);
}
.banner.error > i {
  background: var(--red);
}
.banner > div > p:last-child {
  margin-bottom: 0;
}

/* buttons */
.btn {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  padding: 9px 16px;
  border-radius: 12px;
  border: 1px solid var(--line-2);
  background: var(--card);
  color: var(--text);
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
  min-height: 38px;
}
.btn:hover:not(:disabled) {
  background: var(--card-2);
}
.btn:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}
.btn.primary {
  background: var(--hero);
  color: var(--hero-ink);
  border-color: transparent;
}
.btn.primary:hover:not(:disabled) {
  background: var(--hero);
  filter: brightness(1.07);
}
.btn.danger {
  color: var(--red);
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
  background: transparent;
}
.btn.danger:hover:not(:disabled) {
  background: var(--red-bg);
}
.btn.small {
  padding: 5px 11px;
  min-height: 30px;
  font-size: 0.88rem;
  border-radius: 9px;
}
.btn svg.dots {
  flex: none;
}

/* badges */
.badge {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 2px 10px 2px 8px;
  border-radius: 999px;
  font-size: 0.8rem;
  font-weight: 600;
  border: 1px solid var(--line-2);
  background: var(--silver-bg);
  white-space: nowrap;
}
.badge i {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--silver);
}
.badge.green {
  background: var(--green-bg);
  border-color: color-mix(in srgb, var(--green) 50%, transparent);
}
.badge.green i {
  background: var(--green);
}
.badge.amber {
  background: var(--amber-bg);
  border-color: color-mix(in srgb, var(--amber) 55%, transparent);
}
.badge.amber i {
  background: var(--amber);
}
.badge.red {
  background: var(--red-bg);
  border-color: color-mix(in srgb, var(--red) 55%, transparent);
}
.badge.red i {
  background: var(--red);
}

/* forms */
.field {
  display: flex;
  flex-direction: column;
  gap: 5px;
  min-width: 0;
}
.field.inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}
.field label {
  font-weight: 600;
  font-size: 0.9rem;
}
.optional {
  color: var(--text-3);
  font-weight: 400;
}
.input {
  width: 100%;
  padding: 9px 12px;
  border-radius: 10px;
  border: 1px solid var(--line-2);
  background: var(--bg-deep);
  color: var(--text);
  min-height: 38px;
}
.input:focus {
  outline: 3px solid var(--gold-mark);
  outline-offset: 1px;
}
.input[aria-invalid='true'] {
  border-color: var(--red);
}
textarea.input {
  resize: vertical;
  min-height: 5.5em;
}
select.input {
  appearance: auto;
}
.mono-field .input {
  font-family: var(--mono);
  font-size: 0.86rem;
}
.hint {
  color: var(--text-3);
  font-size: 0.84rem;
  margin: 0;
}
.hint.good {
  color: var(--green);
}
.hint.bad {
  color: var(--red);
}
.field-error {
  color: var(--red);
  font-size: 0.86rem;
  margin: 0;
}
.counter {
  align-self: flex-end;
  color: var(--text-3);
  font-size: 0.8rem;
  font-variant-numeric: tabular-nums;
}
.counter.near {
  color: var(--amber);
}
.counter.over {
  color: var(--red);
  font-weight: 700;
}
.group {
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  padding: 14px;
  margin: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
}
.group legend {
  padding: 0 8px;
  color: var(--text-2);
  font-weight: 650;
  font-size: 0.88rem;
}
.check, .switch-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
}
.check input {
  width: 18px;
  height: 18px;
  accent-color: var(--gold-mark);
}
.switch {
  position: absolute;
  opacity: 0;
  width: 1px;
  height: 1px;
}
.track {
  position: relative;
  width: 40px;
  height: 22px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line-2);
  flex: none;
}
.track::after {
  content: '';
  position: absolute;
  left: 2px;
  top: 2px;
  width: 16px;
  height: 16px;
  border-radius: 50%;
  background: var(--text-2);
  transition: transform 0.18s, background 0.18s;
}
.switch:checked + .track {
  background: var(--green-bg);
  border-color: var(--green);
}
.switch:checked + .track::after {
  transform: translateX(18px);
  background: var(--green);
}
.switch:focus-visible + .track {
  outline: 3px solid var(--gold-mark);
  outline-offset: 2px;
}

/* segmented control */
.seg-row, .filters {
  display: flex;
}
.seg {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  padding: 3px;
  border: 1px solid var(--line-2);
  border-radius: 12px;
  background: var(--bg-deep);
}
.seg-item {
  position: relative;
}
.seg-item input {
  position: absolute;
  inset: 0;
  opacity: 0;
  margin: 0;
  cursor: pointer;
}
.seg-item label {
  display: block;
  padding: 6px 14px;
  border-radius: 9px;
  color: var(--text-2);
  font-weight: 600;
  font-size: 0.9rem;
  pointer-events: none;
}
.seg-item input:checked + label {
  background: var(--hero);
  color: var(--hero-ink);
}
.seg-item input:focus-visible + label {
  outline: 3px solid var(--gold-mark);
  outline-offset: 1px;
}

/* tables */
.table-wrap {
  overflow-x: auto;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background:
    var(--sheen),
    var(--card);
}
.table {
  width: 100%;
  border-collapse: collapse;
  min-width: 640px;
}
.table th, .table td {
  padding: 10px 12px;
  text-align: left;
  vertical-align: top;
  border-bottom: 1px solid var(--line);
}
.table th {
  color: var(--text-2);
  font-size: 0.78rem;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  font-weight: 650;
  white-space: nowrap;
}
.table tbody tr:last-child td {
  border-bottom: 0;
}
.table tbody tr:hover {
  background: color-mix(in srgb, var(--text) 3%, transparent);
}

/* inline confirm */
.confirm {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1px solid var(--line-2);
  border-radius: var(--radius-s);
  background: var(--card-2);
}
.confirm > span {
  flex: 1 1 260px;
}
.progress {
  height: 8px;
  border-radius: 999px;
  background: var(--card-2);
  border: 1px solid var(--line);
  overflow: hidden;
  margin-top: 6px;
}
.progress i {
  display: block;
  height: 100%;
  width: var(--w, 0%);
  background: var(--green);
  border-radius: 999px;
}
.progress.amber i {
  background: var(--amber);
}
.progress.red i {
  background: var(--red);
}

/* composer */
.composer {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 330px;
  gap: 22px;
  align-items: start;
}
.composer-side {
  position: sticky;
  top: 76px;
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview {
  display: flex;
  flex-direction: column;
  gap: 10px;
}
.preview-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}
@media (max-width: 1060px) {
  .composer {
    grid-template-columns: minmax(0, 1fr);
  }
  .composer-side {
    position: static;
  }
}

/* the app's small box, as a preview (graphite, drawn glass, a dot for the lead) */
.app-box {
  display: flex;
  gap: 12px;
  padding: 14px;
  border-radius: 14px;
  border: 1px solid var(--line-2);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.06), rgba(255, 255, 255, 0) 40%),
    #1f1f21;
  color: #f2f2f4;
  box-shadow: 0 12px 30px rgba(0, 0, 0, 0.35);
}
@media (prefers-color-scheme: light) {
  .app-box {
    background:
      linear-gradient(180deg, rgba(255, 255, 255, 0.9), rgba(255, 255, 255, 0) 45%),
      #ffffff;
    color: #1d1d20;
    box-shadow: 0 10px 24px rgba(20, 20, 30, 0.16);
  }
}
.app-box-icon {
  color: var(--silver);
  flex: none;
  padding-top: 2px;
}
.app-box.important .app-box-icon {
  color: var(--amber);
}
.app-box.critical .app-box-icon {
  color: var(--red);
}
.app-box-text {
  min-width: 0;
}
.app-box-kind {
  margin: 0;
  font-size: 0.74rem;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  opacity: 0.7;
}
.app-box-title {
  margin: 2px 0 4px;
  font-weight: 700;
  overflow-wrap: anywhere;
}
.app-box-body {
  margin: 0 0 8px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  font-size: 0.92rem;
}
/* a quotation: the quote first and larger, set in a serif; its byline on a line of its own below (no dash glyph) */
.app-box-quote {
  margin: 4px 0 6px;
  font-family: ui-serif, 'New York', Georgia, 'Times New Roman', serif;
  font-size: 1.12rem;
  line-height: 1.45;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.app-box-motive {
  margin: 2px 0 6px;
  font-size: 1rem;
  font-weight: 560;
  line-height: 1.4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.app-box-byline {
  margin: 0 0 8px;
  font-size: 0.84rem;
  opacity: 0.72;
  overflow-wrap: anywhere;
}
.app-box-detail {
  margin: 0 0 8px;
  font-size: 0.86rem;
  line-height: 1.45;
  opacity: 0.82;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.app-more {
  appearance: none;
  border: 0;
  background: none;
  padding: 0;
  color: inherit;
  font: inherit;
  font-size: 0.85rem;
  font-weight: 650;
  cursor: pointer;
  text-decoration: underline;
  text-underline-offset: 3px;
}
.app-more:focus-visible {
  outline: 2px solid var(--gold);
  outline-offset: 3px;
  border-radius: 4px;
}
.app-box-actions {
  display: flex;
  gap: 14px;
  align-items: center;
  flex-wrap: wrap;
}
.app-link {
  display: inline-flex;
  gap: 6px;
  align-items: center;
  font-weight: 650;
  text-decoration: underline;
  text-decoration-color: var(--gold-mark);
  text-underline-offset: 3px;
}
.app-dismiss {
  opacity: 0.65;
  font-size: 0.85rem;
}
.app-box-warn {
  margin: 8px 0 0;
  color: var(--amber);
  font-size: 0.82rem;
}

/* feed screens */
.issues {
  margin: 0 0 12px;
  padding-left: 1.2em;
}
.issues.errors li {
  color: var(--red);
}
.issues.warnings li {
  color: var(--amber);
}
.diff {
  list-style: none;
  padding: 0;
  margin: 0 0 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}
.diff li {
  padding: 6px 10px;
  border-radius: 8px;
  border: 1px solid var(--line);
}
.diff li b {
  display: inline-block;
  width: 1.2em;
  font-family: var(--mono);
}
.diff .add {
  background: var(--green-bg);
}
.diff .del {
  background: var(--red-bg);
}
.diff .chg {
  background: var(--amber-bg);
}
.code {
  margin: 8px 0 0;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: var(--radius-s);
  background: var(--bg-deep);
  overflow: auto;
  max-height: 420px;
  white-space: pre;
}
details > summary {
  cursor: pointer;
  padding: 6px 0;
  font-weight: 600;
}
.secret {
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 12px;
  border: 1px dashed var(--gold-mark);
  border-radius: var(--radius-s);
}
.codes {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(14rem, 1fr));
  gap: 6px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.own-tools {
  margin-top: 12px;
  padding-top: 12px;
  border-top: 1px solid var(--line);
}

/* sign in */
.signin {
  max-width: 520px;
  margin: 0 auto;
  padding: clamp(24px, 8vh, 80px) 16px 40px;
  outline: none;
}
.signin-card {
  display: flex;
  flex-direction: column;
  gap: 16px;
}
.brand-row {
  display: flex;
  align-items: center;
  gap: 14px;
}
.eyebrow {
  margin: 0;
  color: var(--text-2);
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}
.signin h1:focus {
  outline: none;
}

/* modal */
dialog.modal {
  max-width: 460px;
  width: calc(100% - 32px);
  border: 1px solid var(--line-2);
  border-radius: var(--radius);
  background: var(--card);
  color: var(--text);
  padding: 22px;
  box-shadow: var(--shadow);
}
dialog.modal::backdrop {
  background: rgba(0, 0, 0, 0.55);
}
dialog.modal h2 {
  margin-bottom: 8px;
}

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after {
    animation: none !important;
    transition: none !important;
    scroll-behavior: auto !important;
  }
  svg.loader circle {
    opacity: 0.8;
  }
}
@media print {
  .nav, .top, .btn {
    display: none !important;
  }
}
