/* ============================================================
   KEATSHEPANO Membership Register — admin console styles
   Aesthetic: a warm paper ledger. Cream stock, ink, forest
   green ruling, amber seal. Serif headings, grotesque UI,
   mono for the numbers that matter.
   ============================================================ */

:root {
  --paper: #f3ede1;
  --paper-2: #ece4d4;
  --card: #faf6ec;
  --ink: #211d18;
  --ink-soft: #534b3f;
  --ink-faint: #8a7f6e;
  --rule: #d8cdb8;
  --rule-strong: #c4b699;

  --green: #2c5345;
  --green-deep: #1d3b30;
  --green-tint: #e3ece6;
  --amber: #b9722a;
  --amber-tint: #f3e3cd;
  --rust: #97402c;

  --ok: #2c5345;
  --warn: #9a6b16;
  --bad: #97402c;
  --grey: #6f6557;

  --shadow-sm: 0 1px 2px rgba(33, 29, 24, .06), 0 2px 8px rgba(33, 29, 24, .05);
  --shadow-md: 0 8px 24px rgba(33, 29, 24, .12), 0 2px 6px rgba(33, 29, 24, .08);
  --shadow-lg: 0 24px 60px rgba(29, 25, 20, .28);

  --r-sm: 6px;
  --r-md: 12px;
  --r-lg: 18px;

  --serif: "Fraunces", Georgia, serif;
  --sans: "Hanken Grotesk", system-ui, sans-serif;
  --mono: "JetBrains Mono", ui-monospace, monospace;
}

* { box-sizing: border-box; }

html, body { margin: 0; height: 100%; }

body {
  font-family: var(--sans);
  color: var(--ink);
  background:
    radial-gradient(120% 80% at 100% 0%, #f7f1e5 0%, var(--paper) 45%, var(--paper-2) 100%);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
  line-height: 1.5;
}

.grain {
  position: fixed;
  inset: 0;
  pointer-events: none;
  z-index: 9999;
  opacity: .04;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='160' height='160'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='.9' numOctaves='2'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
}

::selection { background: var(--amber-tint); }

button { font-family: inherit; cursor: pointer; }
a { color: inherit; text-decoration: none; }

/* ---------------- Layout shell ---------------- */
.app {
  display: grid;
  grid-template-columns: 250px 1fr;
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  align-self: start;
  height: 100vh;
  display: flex;
  flex-direction: column;
  padding: 28px 22px;
  background: var(--green-deep);
  color: #e9e2d4;
  border-right: 1px solid rgba(0,0,0,.2);
}

.brand { display: flex; align-items: center; gap: 12px; margin-bottom: 42px; }
.brand__mark { color: var(--amber); display: grid; place-items: center; }
.brand__text { display: flex; flex-direction: column; line-height: 1.1; }
.brand__name { font-family: var(--serif); font-weight: 600; letter-spacing: .04em; font-size: 1.02rem; }
.brand__sub { font-size: .68rem; letter-spacing: .22em; text-transform: uppercase; color: #9fb3a8; margin-top: 3px; }

.nav { display: flex; flex-direction: column; gap: 2px; }
.nav__item {
  display: flex; align-items: center; gap: 12px;
  padding: 11px 14px;
  border-radius: var(--r-sm);
  color: #c8d3cc;
  font-weight: 500;
  font-size: .92rem;
  transition: background .18s ease, color .18s ease;
}
.nav__dot {
  width: 6px; height: 6px; border-radius: 50%;
  background: #6e8377; transition: background .18s ease, transform .18s ease;
}
.nav__item:hover { background: rgba(255,255,255,.05); color: #f1ebdd; }
.nav__item.is-active { background: rgba(201, 134, 42, .16); color: #fff; }
.nav__item.is-active .nav__dot { background: var(--amber); transform: scale(1.4); }

.sidebar__foot { margin-top: auto; font-size: .74rem; color: #9fb3a8; }
.sidebar__foot .muted { color: #75897e; margin-top: 2px; }
.sidebar__foot p { margin: 0; }

.main { display: flex; flex-direction: column; min-width: 0; }

.topbar {
  display: flex; align-items: center; justify-content: space-between; gap: 24px;
  padding: 26px 38px 20px;
  border-bottom: 1px solid var(--rule);
}
.topbar__title { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0; letter-spacing: -.01em; }
.topbar__sub { margin: 2px 0 0; color: var(--ink-faint); font-size: .86rem; }

.quicksearch {
  display: flex; align-items: center; gap: 9px;
  background: var(--card); border: 1px solid var(--rule);
  border-radius: 999px; padding: 9px 16px; width: 340px; max-width: 42vw;
  color: var(--ink-faint);
  box-shadow: var(--shadow-sm);
  transition: border-color .18s ease, box-shadow .18s ease;
}
.quicksearch:focus-within { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.quicksearch input {
  border: 0; outline: 0; background: transparent; width: 100%;
  font-family: var(--sans); font-size: .9rem; color: var(--ink);
}

.view { padding: 30px 38px 60px; }

/* ---------------- Reusable ---------------- */
.section-label {
  font-size: .72rem; letter-spacing: .2em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; margin: 0 0 14px;
}

.btn {
  display: inline-flex; align-items: center; gap: 7px;
  border: 1px solid var(--rule-strong); background: var(--card); color: var(--ink);
  padding: 9px 15px; border-radius: var(--r-sm); font-weight: 600; font-size: .86rem;
  transition: transform .12s ease, box-shadow .18s ease, background .18s ease, border-color .18s ease;
}
.btn:hover { box-shadow: var(--shadow-sm); transform: translateY(-1px); }
.btn:active { transform: translateY(0); }
.btn--primary { background: var(--green); border-color: var(--green-deep); color: #f6f1e6; }
.btn--primary:hover { background: var(--green-deep); }
.btn--amber { background: var(--amber); border-color: var(--rust); color: #fbf3e6; }
.btn--amber:hover { background: var(--rust); }
.btn--ghost { background: transparent; border-color: transparent; color: var(--ink-soft); }
.btn--ghost:hover { background: rgba(0,0,0,.04); box-shadow: none; }
.btn--danger { color: var(--bad); border-color: #d8b6ac; background: #f6e9e4; }
.btn--sm { padding: 6px 11px; font-size: .8rem; }

.badge {
  display: inline-flex; align-items: center; gap: 6px;
  font-size: .72rem; font-weight: 600; letter-spacing: .03em;
  padding: 3px 10px; border-radius: 999px; text-transform: capitalize;
  border: 1px solid transparent;
}
.badge::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.badge--active { color: var(--ok); background: var(--green-tint); border-color: #bcd2c7; }
.badge--lapsed { color: var(--warn); background: #f6ecd2; border-color: #e2cf9e; }
.badge--cancelled { color: var(--bad); background: #f4e4de; border-color: #ddbcb0; }
.badge--deceased { color: #57514a; background: #e7e0d2; border-color: #cfc6b2; }

.muted { color: var(--ink-faint); }
.mono { font-family: var(--mono); font-feature-settings: "tnum"; }

/* ---------------- Cards / dashboard ---------------- */
.stat-grid {
  display: grid; gap: 16px;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  margin-bottom: 30px;
}
.stat {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 20px 20px 18px;
  box-shadow: var(--shadow-sm); position: relative; overflow: hidden;
}
.stat::after {
  content: ""; position: absolute; right: -20px; top: -20px;
  width: 70px; height: 70px; border-radius: 50%;
  background: var(--green-tint); opacity: .5;
}
.stat__label { font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); font-weight: 600; }
.stat__value { font-family: var(--serif); font-size: 2.05rem; font-weight: 600; margin: 8px 0 0; line-height: 1; letter-spacing: -.02em; position: relative; }
.stat__meta { font-size: .8rem; color: var(--ink-soft); margin-top: 8px; position: relative; }
.stat--feature { background: var(--green); color: #f3ecdd; border-color: var(--green-deep); }
.stat--feature::after { background: rgba(201,134,42,.4); opacity: .6; }
.stat--feature .stat__label, .stat--feature .stat__meta { color: #b7c8bf; }

.panel-grid {
  display: grid; gap: 20px;
  grid-template-columns: 1.3fr 1fr;
}
@media (max-width: 1080px) { .panel-grid { grid-template-columns: 1fr; } }

.panel {
  background: var(--card); border: 1px solid var(--rule);
  border-radius: var(--r-md); padding: 22px 24px; box-shadow: var(--shadow-sm);
}
.panel__head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 18px; }
.panel__title { font-family: var(--serif); font-size: 1.18rem; font-weight: 600; margin: 0; }

/* horizontal meter list (branches / plans) */
.meter { margin-bottom: 14px; }
.meter:last-child { margin-bottom: 0; }
.meter__row { display: flex; justify-content: space-between; font-size: .88rem; margin-bottom: 6px; }
.meter__name { font-weight: 500; }
.meter__val { font-family: var(--mono); color: var(--ink-soft); font-size: .82rem; }
.meter__track { height: 8px; background: var(--paper-2); border-radius: 999px; overflow: hidden; }
.meter__fill { height: 100%; border-radius: 999px; background: linear-gradient(90deg, var(--green) 0%, #3c6c5a 100%); transform-origin: left; animation: grow .7s cubic-bezier(.2,.8,.2,1) both; }
.meter__fill--amber { background: linear-gradient(90deg, var(--amber) 0%, #cf913f 100%); }
@keyframes grow { from { transform: scaleX(0); } }

.feed { display: flex; flex-direction: column; }
.feed__item { display: flex; justify-content: space-between; align-items: center; padding: 11px 0; border-bottom: 1px dashed var(--rule); gap: 12px; }
.feed__item:last-child { border-bottom: 0; }
.feed__who { font-weight: 500; font-size: .9rem; }
.feed__when { font-size: .76rem; color: var(--ink-faint); }
.feed__amt { font-family: var(--mono); font-weight: 600; color: var(--green); }

/* ---------------- Filter bar + table ---------------- */
.toolbar {
  display: flex; flex-wrap: wrap; align-items: center; gap: 12px;
  margin-bottom: 18px;
}
.toolbar .spacer { flex: 1; }
.field-inline {
  display: inline-flex; align-items: center; gap: 8px;
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-sm);
  padding: 7px 12px;
}
.field-inline label { font-size: .74rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); font-weight: 600; }
.field-inline select { border: 0; background: transparent; font-family: var(--sans); font-size: .86rem; color: var(--ink); outline: 0; }

.table-wrap { background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md); overflow: hidden; box-shadow: var(--shadow-sm); }
table.register { width: 100%; border-collapse: collapse; }
.register thead th {
  text-align: left; font-size: .72rem; letter-spacing: .12em; text-transform: uppercase;
  color: var(--ink-faint); font-weight: 600; padding: 14px 18px;
  background: var(--paper-2); border-bottom: 1px solid var(--rule-strong);
}
.register tbody td { padding: 13px 18px; border-bottom: 1px solid var(--rule); font-size: .9rem; vertical-align: middle; }
.register tbody tr { cursor: pointer; transition: background .14s ease; }
.register tbody tr:hover { background: var(--green-tint); }
.register tbody tr:last-child td { border-bottom: 0; }
.cell-name { font-weight: 600; }
.cell-sub { font-size: .76rem; color: var(--ink-faint); }
.num { font-family: var(--mono); font-size: .82rem; }

.pager { display: flex; align-items: center; justify-content: space-between; margin-top: 18px; gap: 16px; }
.pager__info { font-size: .84rem; color: var(--ink-faint); }
.pager__controls { display: flex; gap: 8px; align-items: center; }

/* ---------------- Branch / plan grids ---------------- */
.tile-grid { display: grid; gap: 16px; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); }
.tile {
  background: var(--card); border: 1px solid var(--rule); border-radius: var(--r-md);
  padding: 20px; box-shadow: var(--shadow-sm); position: relative;
  transition: transform .14s ease, box-shadow .18s ease;
}
.tile:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); }
.tile__code { font-family: var(--mono); font-size: .72rem; color: var(--amber); font-weight: 600; letter-spacing: .08em; }
.tile__name { font-family: var(--serif); font-size: 1.25rem; font-weight: 600; margin: 4px 0 14px; }
.tile__stats { display: flex; gap: 22px; }
.tile__stat .n { font-family: var(--serif); font-size: 1.45rem; font-weight: 600; display: block; line-height: 1; }
.tile__stat .l { font-size: .72rem; text-transform: uppercase; letter-spacing: .1em; color: var(--ink-faint); }
.tile__foot { margin-top: 14px; padding-top: 12px; border-top: 1px dashed var(--rule); font-size: .82rem; color: var(--ink-soft); }
.tile__coverage { font-family: var(--serif); font-size: 1.6rem; font-weight: 600; }
.tile__del {
  position: absolute; top: 10px; right: 10px;
  width: 26px; height: 26px; line-height: 1; padding: 0;
  display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: var(--ink-faint);
  font-size: 1.1rem; opacity: 0;
  transition: opacity .15s ease, background .15s ease, color .15s ease;
}
.tile:hover .tile__del { opacity: 1; }
.tile__del:hover { background: #f6e9e4; color: var(--bad); border-color: #d8b6ac; }

.bene__del {
  flex-shrink: 0;
  width: 26px; height: 26px; line-height: 1; padding: 0;
  display: grid; place-items: center;
  border: 1px solid transparent; border-radius: 50%;
  background: transparent; color: var(--ink-faint);
  font-size: 1.1rem; cursor: pointer;
  transition: background .15s ease, color .15s ease, border-color .15s ease;
}
.bene__del:hover { background: #f6e9e4; color: var(--bad); border-color: #d8b6ac; }

/* ---------------- Charts ---------------- */
.chart { width: 100%; height: auto; display: block; overflow: visible; }
.chart__base { stroke: var(--rule); stroke-width: 1; }
.chart__axis { fill: var(--ink-faint); font-family: var(--sans); font-size: 13px; }
.chart__val { fill: var(--ink-soft); font-family: var(--mono); font-size: 12px; font-weight: 600; }
.chart__bar rect { transition: opacity .15s ease; }
.chart__bar:hover rect { opacity: .82; }

/* ---------------- Drawer ---------------- */
.drawer, .modal { position: fixed; inset: 0; z-index: 120; display: none; }
.drawer.is-open, .modal.is-open { display: block; }
.drawer__scrim, .modal__scrim { position: absolute; inset: 0; background: rgba(29,25,20,.42); backdrop-filter: blur(2px); animation: fade .2s ease both; }
@keyframes fade { from { opacity: 0; } }

.drawer__panel {
  position: absolute; top: 0; right: 0; height: 100%; width: 560px; max-width: 94vw;
  background: var(--paper); border-left: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-lg); overflow-y: auto;
  animation: slideIn .28s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes slideIn { from { transform: translateX(30px); opacity: .4; } }

.drawer__hero { background: var(--green-deep); color: #ece5d6; padding: 28px 30px 24px; position: relative; }
.drawer__close { position: absolute; top: 18px; right: 20px; background: rgba(255,255,255,.1); border: 0; color: #ece5d6; width: 32px; height: 32px; border-radius: 50%; font-size: 1.1rem; display: grid; place-items: center; }
.drawer__close:hover { background: rgba(255,255,255,.2); }
.drawer__no { font-family: var(--mono); font-size: .78rem; color: var(--amber); letter-spacing: .06em; }
.drawer__name { font-family: var(--serif); font-size: 1.7rem; font-weight: 600; margin: 6px 0 12px; }
.drawer__hero .badge { background: rgba(255,255,255,.12); border-color: transparent; }

.drawer__body { padding: 24px 30px 48px; }
.drawer__actions { display: flex; gap: 10px; margin-bottom: 26px; flex-wrap: wrap; }

.dl { display: grid; grid-template-columns: 132px 1fr; gap: 10px 16px; margin: 0 0 22px; }
.dl dt { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 600; padding-top: 2px; }
.dl dd { margin: 0; font-size: .92rem; }

.sub-block { margin-top: 8px; }
.sub-block h4 { font-family: var(--serif); font-size: 1.05rem; margin: 0 0 12px; display: flex; align-items: baseline; gap: 8px; }
.sub-block h4 .count { font-family: var(--mono); font-size: .76rem; color: var(--ink-faint); }

.bene { display: flex; justify-content: space-between; padding: 10px 14px; border: 1px solid var(--rule); border-radius: var(--r-sm); margin-bottom: 8px; background: var(--card); }
.bene__name { font-weight: 600; font-size: .9rem; }
.bene__rel { font-size: .76rem; color: var(--ink-faint); text-transform: capitalize; }
.bene__id { font-family: var(--mono); font-size: .76rem; color: var(--ink-soft); }

.pay-row { display: flex; justify-content: space-between; align-items: center; padding: 10px 14px; border-bottom: 1px solid var(--rule); }
.pay-row:last-child { border-bottom: 0; }
.pay-amt { font-family: var(--mono); font-weight: 600; }

/* ---------------- Modal / forms ---------------- */
.modal__panel {
  position: absolute; top: 50%; left: 50%; transform: translate(-50%, -50%);
  width: 560px; max-width: 94vw; max-height: 90vh; overflow-y: auto;
  background: var(--paper); border-radius: var(--r-lg); border: 1px solid var(--rule-strong);
  box-shadow: var(--shadow-lg); animation: pop .24s cubic-bezier(.2,.8,.2,1) both;
}
@keyframes pop { from { transform: translate(-50%, -46%) scale(.97); opacity: 0; } }
.modal__head { display: flex; align-items: center; justify-content: space-between; padding: 22px 26px; border-bottom: 1px solid var(--rule); }
.modal__head h3 { font-family: var(--serif); font-size: 1.3rem; margin: 0; }
.modal__body { padding: 22px 26px 26px; }
.modal__foot { display: flex; justify-content: flex-end; gap: 10px; margin-top: 24px; }

.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px 16px; }
.form-grid .full { grid-column: 1 / -1; }
.field { display: flex; flex-direction: column; gap: 5px; }
.field label { font-size: .76rem; text-transform: uppercase; letter-spacing: .08em; color: var(--ink-faint); font-weight: 600; }
.field input, .field select, .field textarea {
  font-family: var(--sans); font-size: .9rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  padding: 9px 11px; outline: 0; transition: border-color .16s ease, box-shadow .16s ease;
}
.field input:focus, .field select:focus, .field textarea:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.field textarea { resize: vertical; min-height: 64px; }

/* Access-type picker on the Access screen */
.acc-select {
  font-family: var(--sans); font-size: .88rem; color: var(--ink);
  background: var(--card); border: 1px solid var(--rule-strong); border-radius: var(--r-sm);
  padding: 7px 10px; outline: 0; cursor: pointer; transition: border-color .16s ease, box-shadow .16s ease;
}
.acc-select:focus { border-color: var(--green); box-shadow: 0 0 0 3px var(--green-tint); }
.acc-select:disabled { opacity: .6; cursor: progress; }

/* ---------------- States ---------------- */
.skeleton { background: linear-gradient(90deg, var(--paper-2) 25%, #f0e9da 50%, var(--paper-2) 75%); background-size: 200% 100%; animation: shimmer 1.3s infinite; border-radius: var(--r-sm); }
@keyframes shimmer { from { background-position: 200% 0; } to { background-position: -200% 0; } }
.sk-row { height: 46px; margin-bottom: 1px; }
.sk-card { height: 120px; }

.empty { text-align: center; padding: 54px 20px; color: var(--ink-faint); }
.empty__mark { width: 52px; height: 52px; margin: 0 auto 14px; color: var(--rule-strong); }
.empty h3 { font-family: var(--serif); color: var(--ink-soft); margin: 0 0 6px; font-weight: 600; }

.error-banner { background: #f4e4de; border: 1px solid #ddbcb0; color: var(--bad); padding: 14px 18px; border-radius: var(--r-md); font-size: .9rem; }

/* ---------------- Toasts ---------------- */
.toasts { position: fixed; bottom: 24px; right: 24px; z-index: 200; display: flex; flex-direction: column; gap: 10px; }
.toast {
  background: var(--ink); color: #f3ecdd; padding: 12px 18px; border-radius: var(--r-sm);
  box-shadow: var(--shadow-md); font-size: .88rem; font-weight: 500;
  animation: toastIn .26s cubic-bezier(.2,.8,.2,1) both; max-width: 320px;
  border-left: 3px solid var(--amber);
}
.toast--ok { border-left-color: #6bbf9a; }
.toast--err { border-left-color: var(--rust); }
@keyframes toastIn { from { transform: translateY(12px); opacity: 0; } }

/* ---------------- Responsive ---------------- */
@media (max-width: 820px) {
  .app { grid-template-columns: 1fr; }
  .sidebar { position: static; height: auto; flex-direction: row; align-items: center; gap: 20px; padding: 16px 20px; }
  .brand { margin-bottom: 0; }
  .nav { flex-direction: row; }
  .nav__item { padding: 8px 12px; }
  .sidebar__foot { display: none; }
  .topbar { flex-direction: column; align-items: flex-start; gap: 14px; padding: 20px; }
  .quicksearch { max-width: none; width: 100%; }
  .view { padding: 20px; }
  .panel-grid { grid-template-columns: 1fr; }
}

/* ============================================================
   Sign-in screen
   ============================================================ */
.auth-body { min-height: 100vh; }

.auth {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 32px 20px;
  gap: 18px;
}

.auth-card {
  width: 100%;
  max-width: 408px;
  background: var(--card);
  border: 1px solid var(--rule);
  border-top: 3px solid var(--green);
  border-radius: var(--r-lg);
  box-shadow: var(--shadow-md);
  padding: 36px 34px 30px;
}

.auth-card__brand { display: flex; align-items: center; gap: 12px; margin-bottom: 28px; }
.auth-card__mark {
  display: grid; place-items: center;
  width: 46px; height: 46px; flex: none;
  border-radius: var(--r-md);
  background: var(--green-deep); color: var(--amber-tint);
}
.auth-card__name { margin: 0; font-family: var(--serif); font-weight: 600; letter-spacing: .04em; color: var(--green-deep); }
.auth-card__sub { margin: 2px 0 0; font-size: .76rem; color: var(--ink-faint); }

.auth-card__title { font-family: var(--serif); font-weight: 600; font-size: 1.7rem; margin: 0 0 4px; color: var(--ink); }
.auth-card__lede { margin: 0 0 22px; color: var(--ink-soft); font-size: .92rem; }

.auth-card__submit {
  width: 100%;
  justify-content: center;
  margin-top: 22px;
  padding: 12px 16px;
  font-size: .95rem;
}
.auth-card__submit:disabled { opacity: .65; cursor: default; transform: none; box-shadow: none; }

.auth-card__foot { margin: 22px 0 0; padding-top: 18px; border-top: 1px solid var(--rule); font-size: .8rem; color: var(--ink-faint); line-height: 1.5; }

.auth #auth-error { margin-bottom: 20px; }

.auth__legal { margin: 0; font-size: .74rem; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-faint); }

/* Sidebar account block + sign-out (app shell) */
.account { margin-top: 16px; padding-top: 16px; border-top: 1px solid rgba(255,255,255,.12); }
.account__who { font-size: .82rem; color: #e9e2d4; font-weight: 600; word-break: break-word; }
.account__role { font-size: .72rem; color: rgba(233,226,212,.6); margin-top: 2px; }
.account__signout {
  margin-top: 12px; width: 100%; justify-content: center;
  background: transparent; border: 1px solid rgba(255,255,255,.22); color: #e9e2d4;
}
.account__signout:hover { background: rgba(255,255,255,.08); box-shadow: none; }
