:root {
  /* Shared palette and typography from the KĀDI account UI. */
  color-scheme: light;
  --ink: #15243b;
  --muted: #516079;
  --blue: #1755c2;
  --navy: #11233f;
  --line: #d6deea;
  --outline: #7183a0;
  --paper: #fff;
  --wash: #f3f6fb;
  --danger: #a6273c;
  --accent: var(--blue);
  font: 15px/1.6 ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: var(--ink);
  background: var(--wash);
}
* {
  box-sizing: border-box;
}
body {
  margin: 0;
  min-width: 280px;
}
[hidden] {
  display: none !important;
}
header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 22px max(24px, calc((100vw - 1120px) / 2));
  gap: 28px;
  background: var(--navy);
  color: white;
}
a {
  color: var(--accent);
  text-decoration-thickness: 1px;
  text-underline-offset: 3px;
}
.brand {
  display: flex;
  align-items: center;
  gap: 24px;
  color: white;
  text-decoration: none;
  white-space: nowrap;
}
.brand img {
  display: block;
  object-fit: contain;
  width: 106px;
  height: auto;
  flex: none;
}
.brand span {
  font-size: 15px;
  border-left: 1px solid var(--outline);
  padding-left: 24px;
}
header nav a {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #d3dff0;
  font-weight: 600;
  text-decoration: none;
}
header nav a:hover {
  color: white;
  text-decoration: underline;
}
a:hover {
  text-decoration-thickness: 2px;
}
nav {
  display: flex;
  gap: 24px;
}
main {
  max-width: 1120px;
  margin: 0 auto;
  padding: 44px 24px;
  min-height: 70vh;
}
h1, h2, h3 {
  font-weight: 650;
  overflow-wrap: anywhere;
}
h1 {
  font-size: clamp(28px, 3vw, 40px);
  line-height: 1.15;
  letter-spacing: -0.03em;
  margin: 0 0 16px;
}
h2 {
  line-height: 1.3;
}
p {
  max-width: 75ch;
}
.mode {
  background: #fff0c6;
  border-bottom: 1px solid #dab765;
  color: #65410c;
  text-align: center;
  padding: 8px;
  font-size: 0.875rem;
}
.eyebrow {
  text-transform: uppercase;
  font-size: 0.8rem;
  letter-spacing: 0.12em;
  color: var(--blue);
  font-weight: 750;
}
.lead {
  font-size: 1.2rem;
  color: var(--muted);
}
.filters {
  display: grid;
  grid-template-columns: minmax(0, 2fr) repeat(3, minmax(0, 1fr)) auto;
  gap: 12px;
  align-items: end;
  margin: 30px 0;
}
label {
  display: block;
  font-size: 0.9rem;
  font-weight: 600;
}
input,
select,
textarea,
button,
.button {
  font: inherit;
  border-radius: 6px;
  border: 1px solid var(--outline);
  padding: 9px 12px;
  max-width: 100%;
  min-width: 0;
  min-height: 44px;
}
input,
select,
textarea {
  width: 100%;
  background: var(--paper);
  color: var(--ink);
}
button,
.button {
  background: var(--accent);
  color: white;
  border-color: var(--accent);
  cursor: pointer;
  display: inline-block;
  text-decoration: none;
}
button,
.button {
  font-weight: 600;
  overflow-wrap: anywhere;
}
button:hover,
.button:hover {
  background: #12479f;
}
button.secondary:hover {
  background: #eaf0fb;
}
button:disabled {
  opacity: 0.65;
  cursor: wait;
}
button.secondary {
  background: var(--paper);
  color: var(--accent);
}
.cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(min(260px, 100%), 1fr));
  gap: 16px;
}
.card,
.panel {
  background: var(--paper);
  padding: 24px;
  border: 1px solid var(--line);
  border-radius: 12px;
  min-width: 0;
  overflow-wrap: anywhere;
  box-shadow: 0 10px 30px #11233f08;
}
.card h2 {
  font-size: 1.15rem;
  margin: 8px 0;
}
.card p {
  font-size: 0.92rem;
  color: var(--muted);
}
.meta,
.badge {
  font-size: 0.8rem;
  color: var(--muted);
}
.badge {
  background: #eaf0fb;
  border-radius: 4px;
  padding: 3px 7px;
  display: inline-block;
}
.warning {
  background: #fff0c6;
  color: #65410c;
}
.error {
  padding: 18px;
  border-left: 4px solid var(--danger);
  background: #fff0f2;
  color: #8a2133;
}
.empty {
  padding: 48px;
  text-align: center;
  background: var(--paper);
  border: 1px dashed var(--outline);
}
.toolbar {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin: 24px 0;
}
.columns {
  display: grid;
  grid-template-columns: minmax(0, 2fr) minmax(0, 1fr);
  gap: 24px;
}
dl {
  display: grid;
  grid-template-columns: 140px minmax(0, 1fr);
  gap: 10px;
}
dt {
  font-weight: 600;
}
dd {
  margin: 0;
  overflow-wrap: anywhere;
}
code,
pre {
  font-family: ui-monospace, monospace;
  font-size: 0.9rem;
  overflow-wrap: anywhere;
  white-space: pre-wrap;
}
pre {
  background: var(--wash);
  padding: 16px;
  border-radius: 6px;
}
.form {
  max-width: 660px;
  display: grid;
  gap: 18px;
}
.form label {
  display: grid;
  gap: 6px;
}
footer {
  max-width: 1120px;
  margin: auto;
  padding: 28px 24px;
  color: var(--muted);
  font-size: 0.85rem;
  border-top: 1px solid var(--line);
}
:focus-visible {
  outline: 3px solid #3270df;
  outline-offset: 3px;
}
.skip {
  position: absolute;
  left: 12px;
  top: -100px;
  background: var(--paper);
  padding: 8px;
  z-index: 10;
}
.skip:focus {
  top: 12px;
}
@media (max-width: 700px) {
  header {
    padding: 16px;
    flex-wrap: wrap;
    gap: 12px;
  }
  nav {
    gap: 18px;
  }
  main {
    padding: 28px 16px;
  }
  h1 {
    font-size: 2rem;
  }
  .filters {
    grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  }
  .filters label:first-child {
    grid-column: 1/-1;
  }
  .columns {
    grid-template-columns: 1fr;
  }
  dl {
    grid-template-columns: 1fr;
    gap: 2px;
  }
  dd {
    margin-bottom: 12px;
  }
}
label:has(> input[type="checkbox"]) { display:flex; align-items:flex-start; gap:.6rem; }
input[type="checkbox"] { width:18px; height:18px; min-height:0; flex:0 0 auto; margin:.25rem 0 0; accent-color:var(--blue); }
#recovery-content { margin-top:1.25rem; }

main:focus {
  outline: none;
}
textarea {
  resize: vertical;
}
input::placeholder {
  color: var(--muted);
}
@media (forced-colors: active) {
  .brand img {
    filter: invert(1);
    background: white;
  }
  button, .button {
    border: 2px solid ButtonText;
  }
  :focus-visible {
    outline-color: Highlight;
  }
}
