/* kittabot website.
   Identity: the Nepal flag (crimson + flag blue) and dhaka cloth (the woven band on a topi),
   with marigold (sayapatri) marking good news. The dhaka band is the one decorative motif. */
:root {
  --flag: #0b2a6f;
  --flag-deep: #071d4f;
  --crimson: #c8102e;
  --crimson-hover: #a50d26;
  --marigold: #f4a51c;
  --leaf: #1e7a4c;

  --bg: #f4f6fb;
  --surface: #ffffff;
  --surface-2: #eef2fa;
  --text: #101a33;
  --muted: #56617a;
  --line: #dbe1ee;
  --heading: var(--flag);
  --link: var(--flag);
  --field: #f7f9fd;
  --focus: #c8102e;
  --ok-bg: #e4f3ea;
  --ok: #17663f;
  --err-bg: #fdecee;
  --err: #a50d26;

  --radius-xl: 22px;
  --radius-lg: 16px;
  --radius-sm: 10px;
  --display: "Bricolage Grotesque", "Mukta", system-ui, sans-serif;
  --body: "Mukta", system-ui, -apple-system, "Segoe UI", sans-serif;
  --mono: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;

  /* Dhaka band tile: zig-zag triangles with small diamonds. */
  --dhaka: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='64' height='14' viewBox='0 0 64 14'%3E%3Crect width='64' height='14' fill='%23071d4f'/%3E%3Cpath d='M0 14 8 0 16 14z' fill='%23c8102e'/%3E%3Cpath d='M16 0 24 14 32 0z' fill='%23f4a51c'/%3E%3Cpath d='M32 14 40 0 48 14z' fill='%231e7a4c'/%3E%3Cpath d='M48 0 56 14 64 0z' fill='%23ffffff'/%3E%3Cpath d='M8 9l2 2-2 2-2-2z' fill='%23f4a51c'/%3E%3Cpath d='M24 1l2 2-2 2-2-2z' fill='%23c8102e'/%3E%3Cpath d='M40 9l2 2-2 2-2-2z' fill='%23ffffff'/%3E%3Cpath d='M56 1l2 2-2 2-2-2z' fill='%231e7a4c'/%3E%3C/svg%3E");
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root {
    --bg: #081129;
    --surface: #0f1b3b;
    --surface-2: #13224a;
    --text: #e8ecf7;
    --muted: #9ba7c4;
    --line: #22325c;
    --heading: #f3f5fb;
    --link: #a9bdff;
    --field: #0b1633;
    --focus: #ff6b7e;
    --ok-bg: #10372a;
    --ok: #6fdba5;
    --err-bg: #3a1220;
    --err: #ff8c9b;
    color-scheme: dark;
  }
}

* {
  box-sizing: border-box;
}
html {
  -webkit-text-size-adjust: 100%;
  scroll-behavior: smooth;
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font: 400 18px / 1.6 var(--body);
}
a {
  color: var(--link);
  text-underline-offset: 3px;
}
a:hover {
  text-decoration-thickness: 2px;
}
:focus-visible {
  outline: 3px solid var(--focus);
  outline-offset: 2px;
  border-radius: 6px;
}
img,
svg {
  display: block;
  max-width: 100%;
}
code,
pre,
kbd {
  font-family: var(--mono);
  font-size: 0.86em;
}
.wrap {
  width: min(1160px, 100% - 40px);
  margin-inline: auto;
}
.skip {
  position: absolute;
  left: -999px;
}
.skip:focus {
  left: 16px;
  top: 12px;
  background: var(--surface);
  padding: 8px 12px;
  z-index: 10;
}

.dhaka {
  height: 10px;
  background: var(--dhaka) repeat-x left center / auto 10px;
}
.dhaka.thick {
  height: 14px;
  background-size: auto 14px;
}

/* ---------- top bar ---------- */
.top {
  position: relative;
  background: var(--surface);
}
.top .bar {
  display: flex;
  align-items: center;
  gap: 24px;
  padding: 16px 0;
}
.brand {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  text-decoration: none;
  color: var(--heading);
}
.brand .mark {
  width: 34px;
  height: 34px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  background: var(--crimson);
  color: #fff;
  font: 800 19px / 1 var(--display);
}
.brand .word {
  font: 800 22px / 1 var(--display);
  letter-spacing: -0.03em;
}
.brand small {
  font: 500 15px / 1 var(--body);
  color: var(--muted);
  margin-left: 4px;
}
.top nav {
  margin-left: auto;
  display: flex;
  align-items: center;
  gap: 22px;
  font-size: 16px;
}
.top nav a:not(.btn) {
  text-decoration: none;
  color: var(--text);
  font-weight: 500;
}
.top nav a:not(.btn):hover {
  color: var(--link);
  text-decoration: underline;
}
.top nav form {
  margin: 0;
}
@media (max-width: 680px) {
  .brand small {
    display: none;
  }
  .top nav {
    gap: 14px;
  }
}

/* ---------- buttons ---------- */
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 8px;
  font: 650 16px / 1 var(--body);
  padding: 14px 22px;
  border-radius: 999px;
  border: 1.5px solid var(--crimson);
  background: var(--crimson);
  color: #fff;
  text-decoration: none;
  cursor: pointer;
  transition:
    background-color 0.15s,
    transform 0.15s;
}
.btn:hover {
  background: var(--crimson-hover);
  border-color: var(--crimson-hover);
  text-decoration: none;
}
.btn:active {
  transform: translateY(1px);
}
.btn.quiet {
  background: transparent;
  color: var(--heading);
  border-color: var(--line);
}
.btn.quiet:hover {
  border-color: var(--heading);
  background: transparent;
}
.btn.small {
  padding: 9px 16px;
  font-size: 15px;
}
.btn.danger {
  background: transparent;
  color: var(--err);
  border-color: var(--err);
}
.btn.danger:hover {
  background: var(--err-bg);
}
.top .btn {
  padding: 10px 18px;
  font-size: 15px;
}

/* ---------- hero ---------- */
.hero {
  padding: 64px 0 96px;
  position: relative;
  overflow: hidden;
}
.hero .wrap {
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  gap: 64px;
  align-items: center;
}
.hero .dev {
  font: 700 clamp(22px, 2.6vw, 30px) / 1.2 var(--body);
  color: var(--crimson);
  margin: 0 0 14px;
}
.hero h1 {
  font: 800 clamp(44px, 6.4vw, 82px) / 0.96 var(--display);
  letter-spacing: -0.04em;
  color: var(--heading);
  margin: 0 0 24px;
  text-wrap: balance;
}
.hero p.lede {
  font-size: 21px;
  max-width: 36ch;
  margin: 0 0 32px;
  color: var(--muted);
}
.hero p.lede strong {
  color: var(--text);
  font-weight: 600;
}
.hero .ctas {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
}
.hero .fine {
  margin-top: 20px;
  font-size: 15px;
  color: var(--muted);
  max-width: 46ch;
}
@media (max-width: 920px) {
  .hero .wrap {
    grid-template-columns: 1fr;
    gap: 44px;
  }
  .hero {
    padding-top: 36px;
  }
}

/* The conversation: a Claude chat with kittabot's inline apply card. */
.chat {
  position: relative;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 24px;
  overflow: hidden;
  box-shadow:
    0 1px 0 var(--line),
    0 40px 80px -50px color-mix(in srgb, var(--flag) 70%, transparent);
}
.chat::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--dhaka) repeat-x 0 0 / auto 8px;
}
.chat-head {
  display: flex;
  align-items: center;
  gap: 8px;
  margin: 6px 0 16px;
  font-size: 14px;
  color: var(--muted);
}
.chat-head .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--leaf);
}
.bubble {
  max-width: 85%;
  padding: 11px 15px;
  border-radius: 18px;
  font-size: 16.5px;
  line-height: 1.45;
}
.bubble.you {
  margin-left: auto;
  background: var(--surface-2);
  border-bottom-right-radius: 6px;
}
.bubble.claude {
  margin-top: 14px;
  padding-left: 0;
}
.card {
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 18px;
  background: var(--field);
}
.card h3 {
  font: 750 18px / 1.2 var(--display);
  margin: 0 0 4px;
  color: var(--heading);
  letter-spacing: -0.01em;
}
.card .meta {
  font-size: 14px;
  color: var(--muted);
  margin: 0 0 14px;
}
.rows {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  gap: 9px;
}
.rows li {
  display: flex;
  align-items: center;
  gap: 12px;
  font-size: 16px;
}
.avatar {
  width: 30px;
  height: 30px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  flex: none;
  font: 700 13px / 1 var(--display);
  color: #fff;
  background: var(--flag);
}
.rows li:nth-child(2) .avatar {
  background: var(--crimson);
}
.rows li:nth-child(3) .avatar {
  background: var(--leaf);
}
.rows li:nth-child(4) .avatar {
  background: #8a5a00;
}
.rows .who {
  flex: 1;
  font-weight: 500;
}
.rows .kitta {
  color: var(--muted);
  font-size: 14.5px;
}
.state {
  font-size: 13.5px;
  font-weight: 650;
  padding: 4px 11px;
  border-radius: 999px;
  background: color-mix(in srgb, var(--muted) 14%, transparent);
  color: var(--muted);
  min-width: 84px;
  text-align: center;
}
.state.done {
  background: var(--ok-bg);
  color: var(--ok);
}
.state.lucky {
  background: var(--marigold);
  color: #3a2400;
}
.allot {
  margin-top: 14px;
  padding: 10px 12px;
  border-radius: var(--radius-sm);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 15.5px;
  background: color-mix(in srgb, var(--marigold) 16%, transparent);
}

/* One orchestrated moment: family members are applied in turn, then one is allotted. */
@media (prefers-reduced-motion: no-preference) {
  .rows li:nth-child(1) .state.done {
    animation: flip 0.45s 0.9s both;
  }
  .rows li:nth-child(2) .state.done {
    animation: flip 0.45s 1.5s both;
  }
  .rows li:nth-child(3) .state.done {
    animation: flip 0.45s 2.1s both;
  }
  .rows li:nth-child(4) .state.done {
    animation: flip 0.45s 2.7s both;
  }
  .allot {
    animation: rise 0.6s 3.6s both;
  }
}
@keyframes flip {
  0% {
    background: color-mix(in srgb, var(--muted) 14%, transparent);
    color: transparent;
  }
  60% {
    transform: scale(1.07);
  }
  100% {
    background: var(--ok-bg);
    color: var(--ok);
    transform: none;
  }
}
@keyframes rise {
  from {
    opacity: 0;
    transform: translateY(8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}

/* ---------- sections ---------- */
section.band {
  padding: 88px 0;
}
section.band + section.band {
  border-top: 1px solid var(--line);
}
section.band h2 {
  font: 800 clamp(32px, 3.8vw, 48px) / 1.04 var(--display);
  letter-spacing: -0.035em;
  color: var(--heading);
  margin: 0 0 14px;
  max-width: 22ch;
  text-wrap: balance;
}
section.band .intro {
  font-size: 19px;
  color: var(--muted);
  max-width: 58ch;
  margin: 0 0 44px;
}

.steps {
  list-style: none;
  margin: 0;
  padding: 0;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 20px;
  counter-reset: step;
}
.steps li {
  counter-increment: step;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 26px 24px 24px;
  position: relative;
}
.steps li::before {
  content: counter(step);
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 12px;
  font: 800 22px / 1 var(--display);
  color: #fff;
  background: var(--flag);
  margin-bottom: 18px;
}
.steps li:nth-child(2)::before {
  background: var(--crimson);
}
.steps li:nth-child(3)::before {
  background: var(--leaf);
}
.steps h3 {
  font: 750 21px / 1.2 var(--display);
  margin: 0 0 8px;
  color: var(--heading);
}
.steps p {
  margin: 0;
  color: var(--muted);
  font-size: 17px;
}
@media (max-width: 860px) {
  .steps {
    grid-template-columns: 1fr;
  }
}

.copy-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 24px;
}
@media (max-width: 860px) {
  .copy-grid {
    grid-template-columns: 1fr;
  }
}
.copy-block {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 24px;
}
.copy-block h3 {
  font: 750 19px / 1.2 var(--display);
  margin: 0 0 6px;
  color: var(--heading);
}
.copy-block p {
  margin: 0 0 14px;
  color: var(--muted);
  font-size: 16.5px;
}
.copy {
  position: relative;
  background: var(--field);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  padding-right: 92px;
  font-family: var(--mono);
  font-size: 14.5px;
  line-height: 1.55;
  white-space: pre-wrap;
  word-break: break-word;
  color: var(--text);
}
.copy.prose {
  font-family: var(--body);
  font-size: 16.5px;
}
.copy button {
  position: absolute;
  top: 9px;
  right: 9px;
  font: 650 14px / 1 var(--body);
  padding: 8px 13px;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--heading);
  cursor: pointer;
}
.copy button:hover {
  border-color: var(--crimson);
  color: var(--crimson);
}
/* Inside light boxes on the account page, keep the copy fields readable. */
.box .copy-block {
  padding: 0;
  border: 0;
  background: none;
}

/* Inverse band: the security promises sit on flag blue. */
section.band.inverse {
  background: var(--flag-deep);
  color: #e8ecf7;
  border-top: 0;
  position: relative;
}
section.band.inverse::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 12px;
  background: var(--dhaka) repeat-x 0 0 / auto 12px;
}
section.band.inverse h2 {
  color: #fff;
}
section.band.inverse .intro {
  color: #b7c3e2;
}
.promises {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 20px;
  list-style: none;
  padding: 0;
  margin: 0;
}
.promises li {
  background: color-mix(in srgb, #fff 6%, transparent);
  border: 1px solid color-mix(in srgb, #fff 12%, transparent);
  border-radius: var(--radius-lg);
  padding: 22px 24px;
}
.promises strong {
  display: block;
  font: 750 20px / 1.3 var(--display);
  color: #fff;
  margin-bottom: 6px;
}
.promises span {
  color: #b7c3e2;
  font-size: 17px;
}
.promises li::before {
  content: "";
  display: block;
  width: 28px;
  height: 4px;
  border-radius: 2px;
  background: var(--marigold);
  margin-bottom: 14px;
}
@media (max-width: 860px) {
  .promises {
    grid-template-columns: 1fr;
  }
}

.faq details {
  border-bottom: 1px solid var(--line);
  padding: 18px 0;
  max-width: 780px;
}
.faq summary {
  cursor: pointer;
  font: 700 19px / 1.35 var(--display);
  color: var(--heading);
  list-style: none;
  display: flex;
  justify-content: space-between;
  gap: 16px;
}
.faq summary::-webkit-details-marker {
  display: none;
}
.faq summary::after {
  content: "+";
  color: var(--crimson);
  font-weight: 600;
  font-size: 24px;
  line-height: 1;
}
.faq details[open] summary::after {
  content: "–";
}
.faq details p {
  margin: 10px 0 0;
  color: var(--muted);
  max-width: 64ch;
}

.cta-band {
  padding: 72px 0;
  text-align: center;
}
.cta-band h2 {
  font: 800 clamp(30px, 3.6vw, 44px) / 1.05 var(--display);
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 0 0 12px;
}
.cta-band p {
  color: var(--muted);
  margin: 0 auto 26px;
  max-width: 48ch;
}

footer.foot {
  background: var(--surface);
  font-size: 15px;
  color: var(--muted);
}
footer.foot .wrap {
  display: flex;
  flex-wrap: wrap;
  gap: 12px 28px;
  align-items: center;
  padding: 28px 0 40px;
}
footer.foot nav {
  margin-left: auto;
  display: flex;
  gap: 20px;
}

/* ---------- docs ---------- */
.docs {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  gap: 56px;
  padding: 40px 0 96px;
}
.docs aside nav {
  position: sticky;
  top: 24px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 14px;
}
.docs aside a {
  color: var(--muted);
  text-decoration: none;
  padding: 6px 10px;
  border-radius: 8px;
}
.docs aside a:hover {
  color: var(--heading);
  background: var(--surface-2);
}
.docs article {
  max-width: 74ch;
}
.docs h1 {
  font: 800 52px / 1.02 var(--display);
  letter-spacing: -0.035em;
  color: var(--heading);
  margin: 0 0 14px;
}
.docs h2 {
  font: 800 30px / 1.15 var(--display);
  letter-spacing: -0.025em;
  color: var(--heading);
  margin: 60px 0 12px;
  scroll-margin-top: 24px;
}
.docs h3 {
  font: 700 20px / 1.3 var(--display);
  margin: 28px 0 8px;
  color: var(--heading);
}
.docs p,
.docs li {
  font-size: 17.5px;
}
.docs li {
  margin-bottom: 4px;
}
.docs pre {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  padding: 14px 16px;
  overflow-x: auto;
}
.docs :not(pre) > code {
  background: var(--surface-2);
  padding: 1px 6px;
  border-radius: 5px;
}
.docs table {
  border-collapse: collapse;
  width: 100%;
  font-size: 16px;
  margin: 12px 0;
  background: var(--surface);
  border-radius: var(--radius-sm);
  overflow: hidden;
}
.docs th,
.docs td {
  text-align: left;
  padding: 10px 12px;
  border-bottom: 1px solid var(--line);
  vertical-align: top;
}
.docs th {
  font-weight: 700;
  color: var(--heading);
  background: var(--surface-2);
}
@media (max-width: 880px) {
  .docs {
    grid-template-columns: 1fr;
    gap: 20px;
  }
  .docs aside nav {
    position: static;
    flex-direction: row;
    flex-wrap: wrap;
  }
}

/* ---------- auth (split) ---------- */
.auth-split {
  min-height: calc(100vh - 77px);
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
}
.auth-art {
  position: relative;
  background: var(--flag-deep);
  color: #dfe6f7;
  padding: 64px clamp(28px, 6vw, 88px);
  display: flex;
  flex-direction: column;
  justify-content: center;
  overflow: hidden;
}
.auth-art::after {
  content: "";
  position: absolute;
  inset: auto 0 0 0;
  height: 14px;
  background: var(--dhaka) repeat-x 0 0 / auto 14px;
  transform: scaleY(-1);
}
.auth-art .dev {
  font: 700 22px / 1.3 var(--body);
  color: var(--marigold);
  margin: 0 0 10px;
}
.auth-art h2 {
  font: 800 clamp(34px, 3.6vw, 50px) / 1.02 var(--display);
  letter-spacing: -0.035em;
  color: #fff;
  margin: 0 0 18px;
  max-width: 14ch;
}
.auth-art p {
  color: #b7c3e2;
  margin: 0 0 28px;
  max-width: 40ch;
}
.auth-art ul {
  list-style: none;
  padding: 0;
  margin: 0 0 32px;
  display: grid;
  gap: 12px;
}
.auth-art li {
  display: flex;
  gap: 12px;
  align-items: flex-start;
}
.auth-art li::before {
  content: "";
  flex: none;
  width: 10px;
  height: 10px;
  margin-top: 0.55em;
  transform: rotate(45deg);
  background: var(--marigold);
}
.mini {
  background: color-mix(in srgb, #fff 7%, transparent);
  border: 1px solid color-mix(in srgb, #fff 14%, transparent);
  border-radius: var(--radius-lg);
  padding: 16px;
  max-width: 380px;
}
.mini .row {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 6px 0;
  font-size: 15.5px;
  color: #fff;
}
.mini .row span:nth-child(2) {
  flex: 1;
}
.mini .avatar {
  width: 26px;
  height: 26px;
  font-size: 12px;
}
.mini .state.done {
  background: color-mix(in srgb, var(--leaf) 45%, transparent);
  color: #d9f7e6;
}
.mini .state.lucky {
  background: var(--marigold);
  color: #3a2400;
}
.auth-main {
  display: grid;
  place-items: center;
  padding: 48px 24px 64px;
}
.auth-main .form-wrap {
  width: min(420px, 100%);
}
.auth-main h1 {
  font: 800 38px / 1.05 var(--display);
  letter-spacing: -0.035em;
  color: var(--heading);
  margin: 0 0 10px;
}
.auth-main .sub {
  margin: 0 0 28px;
  color: var(--muted);
  font-size: 17px;
}
@media (max-width: 900px) {
  .auth-split {
    grid-template-columns: 1fr;
  }
  .auth-art {
    padding: 40px 24px 36px;
  }
  .auth-art .mini,
  .auth-art ul {
    display: none;
  }
  .auth-art p {
    margin-bottom: 0;
  }
}

.field {
  display: flex;
  flex-direction: column;
  gap: 7px;
  margin-bottom: 18px;
}
.field label {
  font-size: 15px;
  font-weight: 650;
  color: var(--text);
}
.field input {
  font: inherit;
  font-size: 17px;
  padding: 13px 14px;
  border-radius: var(--radius-sm);
  border: 1.5px solid var(--line);
  background: var(--field);
  color: var(--text);
  width: 100%;
  transition:
    border-color 0.15s,
    box-shadow 0.15s;
}
.field input:hover {
  border-color: color-mix(in srgb, var(--heading) 35%, var(--line));
}
.field input:focus {
  border-color: var(--focus);
  outline: none;
  box-shadow: 0 0 0 4px color-mix(in srgb, var(--focus) 22%, transparent);
}
.field .hint {
  font-size: 14px;
  color: var(--muted);
}
.pw {
  position: relative;
}
.pw input {
  padding-right: 76px;
}
.pw button {
  position: absolute;
  right: 8px;
  top: 50%;
  transform: translateY(-50%);
  font: 650 14px / 1 var(--body);
  padding: 8px 10px;
  border-radius: 8px;
  border: 0;
  background: transparent;
  color: var(--link);
  cursor: pointer;
}
.pw button:hover {
  background: var(--surface-2);
}
.form-wrap .btn,
.panel .btn {
  width: 100%;
  margin-top: 8px;
  padding: 15px 22px;
}
.alt {
  margin: 22px 0 0;
  text-align: center;
  font-size: 15.5px;
  color: var(--muted);
}
.alert {
  padding: 12px 14px;
  border-radius: var(--radius-sm);
  margin-bottom: 18px;
  font-size: 15.5px;
}
.alert.error {
  background: var(--err-bg);
  color: var(--err);
}
.alert.ok {
  background: var(--ok-bg);
  color: var(--ok);
}
.consent-who {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: var(--radius-sm);
  background: var(--field);
  margin: 0 0 22px;
}
.consent-who .avatar {
  width: 38px;
  height: 38px;
  font-size: 15px;
}
.consent-who small {
  display: block;
  color: var(--muted);
  font-size: 14px;
}
.consent-list {
  margin: 0 0 22px;
  padding-left: 20px;
  color: var(--muted);
}

/* Simple centred panel (errors, not found). */
.auth {
  min-height: calc(100vh - 160px);
  display: grid;
  place-items: center;
  padding: 32px 0 72px;
}
.panel {
  width: min(440px, 100%);
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 32px;
  position: relative;
  overflow: hidden;
}
.panel::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--dhaka) repeat-x 0 0 / auto 8px;
}
.panel h1 {
  font: 800 32px / 1.1 var(--display);
  letter-spacing: -0.03em;
  color: var(--heading);
  margin: 8px 0 8px;
}
.panel > p {
  margin: 0 0 22px;
  color: var(--muted);
  font-size: 16.5px;
}

/* ---------- account ---------- */
.account {
  padding: 40px 0 96px;
  display: grid;
  gap: 22px;
  max-width: 900px;
}
.account-head {
  display: flex;
  align-items: center;
  gap: 18px;
}
.account-head .avatar {
  width: 58px;
  height: 58px;
  font-size: 24px;
  background: var(--crimson);
}
.account h1 {
  font: 800 42px / 1.04 var(--display);
  letter-spacing: -0.035em;
  color: var(--heading);
  margin: 0;
}
.account-head p {
  margin: 2px 0 0;
  color: var(--muted);
}
.box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  padding: 28px;
}
.box h2 {
  font: 800 23px / 1.2 var(--display);
  color: var(--heading);
  margin: 0 0 6px;
  letter-spacing: -0.02em;
}
.box > p {
  margin: 0 0 18px;
  color: var(--muted);
  font-size: 16.5px;
}
.box.highlight {
  position: relative;
  overflow: hidden;
}
.box.highlight::before {
  content: "";
  position: absolute;
  inset: 0 0 auto 0;
  height: 8px;
  background: var(--dhaka) repeat-x 0 0 / auto 8px;
}
.box.danger {
  border-color: color-mix(in srgb, var(--err) 35%, var(--line));
}
.box.danger h2 {
  color: var(--err);
}
.list {
  list-style: none;
  margin: 0;
  padding: 0;
}
.list li {
  display: flex;
  align-items: center;
  gap: 14px;
  padding: 12px 0;
  border-top: 1px solid var(--line);
}
.list li:first-child {
  border-top: 0;
}
.list .grow {
  flex: 1;
}
.list .sub {
  color: var(--muted);
  font-size: 15px;
}
.list .avatar {
  width: 34px;
  height: 34px;
  font-size: 14px;
}
.empty {
  padding: 18px;
  border: 1.5px dashed var(--line);
  border-radius: var(--radius-sm);
  color: var(--muted);
}
.inline-form {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
}
.inline-form .field {
  margin: 0;
  flex: 1 1 220px;
}
.inline-form .btn {
  width: auto;
  margin: 0;
}
