/* Spam Email Detection System — interface styles.
 *
 * A thin design layer over Bootstrap 5 (Table 3.3 of the report specifies
 * HTML5, CSS3 and Bootstrap 5, and that has not changed). Bootstrap supplies
 * the grid, the form controls and the JavaScript components; everything below
 * sets the type, colour and spacing on top of it.
 *
 * Two colour families are kept deliberately separate:
 *
 *   - the BRAND family, used for navigation, buttons and the sign-in panels;
 *   - the MODEL family — Random Forest, SVM and BERT — which matches the
 *     figures in Chapter Four so that the application and the written report
 *     read as one piece of work. These three values must not be changed.
 *
 * The verdict colours are not decoration either. FR14 requires spam and
 * legitimate mail to be visually distinguishable and model disagreement to be
 * highlighted, so green, red and amber each carry meaning.
 */

:root {
  /* ------------------------------------------------------------- brand */
  --brand-700: #2b43b8;
  --brand-600: #3a58dd;
  --brand-500: #5b7fe0;
  --brand-300: #a9bef2;
  --brand-100: #e2eafc;
  --brand-050: #f2f5fe;

  /* ---------------------------------------------------------- neutrals */
  --ink: #141a22;
  --ink-2: #39424f;
  --muted: #6b7684;
  --faint: #98a1ad;
  --line: #e6e9ee;
  --line-soft: #f0f2f6;
  --surface: #ffffff;
  --canvas: #f5f6f9;

  /* ----------------------------------- model colours — see Chapter Four */
  --rf: #2f5c99;      /* Random Forest */
  --svm: #c2410c;     /* Support Vector Machine */
  --bert: #0e8c7a;    /* BERT */

  /* ------------------------------------------------ verdict semantics */
  --spam: #b42318;
  --spam-bg: #fef3f2;
  --spam-line: #fecdca;
  --legit: #067647;
  --legit-bg: #ecfdf3;
  --legit-line: #abefc6;
  --warn: #b54708;
  --warn-bg: #fffaeb;
  --warn-line: #fedf89;
  --info: #175cd3;
  --info-bg: #eff8ff;
  --info-line: #b2ddff;

  /* -------------------------------------------------------- geometry */
  --r-sm: 8px;
  --r: 12px;
  --r-lg: 16px;
  --r-xl: 22px;
  --sh-1: 0 1px 2px rgba(16, 24, 40, .05);
  --sh-2: 0 4px 16px rgba(16, 24, 40, .06);
  --sh-3: 0 16px 40px rgba(16, 24, 40, .12);
  --sidebar-w: 258px;

  --bs-body-font-family: "Inter", -apple-system, BlinkMacSystemFont, "Segoe UI",
                         Roboto, Helvetica, Arial, sans-serif;
}

* { -webkit-font-smoothing: antialiased; }

body {
  background: var(--canvas);
  color: var(--ink);
  font-family: var(--bs-body-font-family);
  font-size: .94rem;
  line-height: 1.55;
}

a { color: var(--brand-600); text-decoration: none; }
a:hover { color: var(--brand-700); text-decoration: underline; }

h1, h2, h3, h4, h5 { letter-spacing: -.015em; color: var(--ink); }
.mono { font-variant-numeric: tabular-nums; }
.section-sub { color: var(--muted); font-size: .875rem; }
.tt { font-size: .78rem; color: var(--muted); }
code {
  background: var(--line-soft); color: var(--ink-2);
  padding: .08em .34em; border-radius: 5px; font-size: .86em;
}

/* =====================================================================
   Application shell — sidebar, top bar, page
   ===================================================================== */

.app { display: flex; min-height: 100vh; }

.sidebar {
  width: var(--sidebar-w);
  flex: 0 0 var(--sidebar-w);
  background: var(--surface);
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}

.side-brand {
  display: flex; align-items: center; gap: .65rem;
  padding: 1.25rem 1.25rem 1.1rem;
  text-decoration: none;
}
.side-brand:hover { text-decoration: none; }
.brand-mark {
  display: inline-grid; place-items: center;
  width: 38px; height: 38px; flex: 0 0 38px;
  border-radius: 11px;
  background: linear-gradient(140deg, var(--brand-500), var(--brand-700));
  color: #fff; font-size: .82rem; font-weight: 700; letter-spacing: .04em;
  box-shadow: 0 4px 10px rgba(58, 88, 221, .28);
}
.brand-text { line-height: 1.15; }
.brand-text strong { display: block; font-size: .98rem; color: var(--ink); font-weight: 700; }
.brand-text span { font-size: .74rem; color: var(--muted); }

.side-nav { padding: .35rem .75rem; display: flex; flex-direction: column; gap: 2px; }
.side-heading {
  font-size: .7rem; text-transform: uppercase; letter-spacing: .09em;
  color: var(--faint); font-weight: 600; padding: 1rem .5rem .35rem;
}
.side-link {
  display: flex; align-items: center; gap: .7rem;
  padding: .58rem .75rem;
  border-radius: 9px;
  color: var(--ink-2); font-size: .9rem; font-weight: 500;
  text-decoration: none;
  transition: background .12s ease, color .12s ease;
}
.side-link:hover { background: var(--line-soft); color: var(--ink); text-decoration: none; }
.side-link svg { width: 18px; height: 18px; flex: 0 0 18px; stroke-width: 1.7; }
.side-link.is-active {
  background: var(--brand-050);
  color: var(--brand-700);
  font-weight: 600;
}
.side-link.is-active svg { color: var(--brand-600); }

.side-spacer { flex: 1 1 auto; }

.side-card {
  margin: .75rem;
  padding: .9rem 1rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--brand-050);
}
.side-card h6 {
  font-size: .8rem; font-weight: 700; margin: 0 0 .55rem; color: var(--ink);
}
.side-model { font-size: .76rem; color: var(--muted); margin-bottom: .5rem; }
.side-model:last-child { margin-bottom: 0; }
.side-model .name { display: flex; justify-content: space-between; margin-bottom: .2rem; }
.side-model .name b { color: var(--ink-2); font-weight: 600; }

.side-foot {
  border-top: 1px solid var(--line);
  padding: .85rem 1rem;
  display: flex; align-items: center; gap: .65rem;
}
.avatar {
  display: inline-grid; place-items: center;
  width: 34px; height: 34px; flex: 0 0 34px; border-radius: 50%;
  background: var(--brand-600); color: #fff;
  font-size: .78rem; font-weight: 700; letter-spacing: .02em;
}
.side-foot .who { min-width: 0; line-height: 1.2; }
.side-foot .who b { display: block; font-size: .85rem; font-weight: 600; }
.side-foot .who span {
  display: block; font-size: .74rem; color: var(--muted);
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.icon-btn {
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 9px; width: 34px; height: 34px;
  display: inline-grid; place-items: center; color: var(--muted);
  padding: 0;
}
.icon-btn:hover { background: var(--line-soft); color: var(--ink); }
.icon-btn svg { width: 17px; height: 17px; }

.shell { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }

.topbar {
  background: var(--surface);
  border-bottom: 1px solid var(--line);
  padding: .95rem 1.75rem;
  display: flex; align-items: center; gap: 1rem;
  position: sticky; top: 0; z-index: 20;
}
.topbar h1 { font-size: 1.14rem; font-weight: 700; margin: 0; }
.topbar .lede { font-size: .82rem; color: var(--muted); margin: 0; }
.topbar-title { flex: 1 1 14rem; min-width: 0; }
.topbar-actions {
  margin-left: auto;
  display: flex; align-items: center; flex-wrap: wrap; gap: .55rem;
}

.page { padding: 1.75rem; flex: 1 0 auto; max-width: 1360px; width: 100%; }

.app-footer {
  border-top: 1px solid var(--line);
  background: var(--surface);
  padding: 1.15rem 1.75rem;
  color: var(--muted);
  font-size: .82rem;
}
.app-footer strong { color: var(--ink-2); font-weight: 600; }

/* Below lg the sidebar becomes a Bootstrap offcanvas. */
.side-toggle { display: none; }
@media (max-width: 991.98px) {
  .sidebar {
    position: fixed; left: 0; top: 0; z-index: 1045;
    transform: translateX(-100%);
    transition: transform .22s ease;
    box-shadow: var(--sh-3);
  }
  body.nav-open .sidebar { transform: none; }
  body.nav-open .nav-scrim {
    position: fixed; inset: 0; z-index: 1040; background: rgba(16, 24, 40, .45);
  }
  .side-toggle { display: inline-grid; }
  .page, .topbar, .app-footer { padding-left: 1rem; padding-right: 1rem; }

  /* The page actions drop to their own row rather than being squeezed in
     beside the title, which is what pushed the layout wider than the screen. */
  .topbar { flex-wrap: wrap; align-items: center; }
  .topbar-title { flex: 1 1 auto; }
  .topbar h1 { font-size: 1.05rem; }
  .topbar .lede { display: none; }
  .topbar-actions { margin-left: 0; flex: 1 1 100%; }
}

/* =====================================================================
   Surfaces
   ===================================================================== */

.card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
}
.card-header {
  background: transparent;
  border-bottom: 1px solid var(--line-soft);
  font-weight: 650;
  font-size: .95rem;
  padding: 1rem 1.25rem;
  border-radius: var(--r-lg) var(--r-lg) 0 0;
}
.card-body { padding: 1.25rem; }
.card-title-sub { font-weight: 400; color: var(--muted); font-size: .82rem; }

.panel-note {
  background: var(--brand-050);
  border: 1px solid var(--brand-100);
  border-radius: var(--r);
  padding: .9rem 1rem;
  font-size: .86rem;
  color: var(--ink-2);
}

/* ------------------------------------------------------------ stat cards */
.stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-1);
  padding: 1.15rem 1.25rem;
  height: 100%;
}
.stat-medallion {
  width: 42px; height: 42px; border-radius: 12px;
  display: inline-grid; place-items: center;
  margin-bottom: .95rem;
  color: #fff;
}
.stat-medallion svg { width: 20px; height: 20px; stroke-width: 1.9; }
.medallion-brand { background: var(--brand-600); box-shadow: 0 5px 12px rgba(58, 88, 221, .26); }
.medallion-spam  { background: var(--spam);     box-shadow: 0 5px 12px rgba(180, 35, 24, .22); }
.medallion-warn  { background: var(--warn);     box-shadow: 0 5px 12px rgba(181, 71, 8, .22); }
.medallion-legit { background: var(--legit);    box-shadow: 0 5px 12px rgba(6, 118, 71, .22); }

.stat-label { font-size: .82rem; color: var(--muted); margin-bottom: .15rem; }
.stat-value { font-size: 1.95rem; font-weight: 700; line-height: 1.1; letter-spacing: -.02em; }
.stat-note { font-size: .8rem; color: var(--faint); margin-top: .3rem; }
.stat-chip {
  display: inline-block; font-size: .72rem; font-weight: 600;
  padding: .16rem .5rem; border-radius: 999px;
  background: var(--line-soft); color: var(--muted);
}

/* =====================================================================
   Verdicts — FR13 and FR14 live here
   ===================================================================== */

.verdict {
  display: inline-flex; align-items: center; gap: .4rem;
  padding: .26rem .62rem; border-radius: 999px;
  font-size: .8rem; font-weight: 600; white-space: nowrap;
  border: 1px solid transparent;
}
.verdict-spam { background: var(--spam-bg); color: var(--spam); border-color: var(--spam-line); }
.verdict-legit { background: var(--legit-bg); color: var(--legit); border-color: var(--legit-line); }
.verdict .dot { width: 6px; height: 6px; border-radius: 50%; background: currentColor; }

.badge-split {
  display: inline-flex; align-items: center; gap: .3rem;
  background: var(--warn-bg); color: var(--warn); border: 1px solid var(--warn-line);
  border-radius: 999px; padding: .1rem .45rem;
  font-size: .68rem; font-weight: 700; letter-spacing: .02em;
}
.badge-tick {
  display: inline-grid; place-items: center; width: 17px; height: 17px;
  border-radius: 50%; font-size: .66rem; font-weight: 700;
}
.badge-tick.ok { background: var(--legit-bg); color: var(--legit); }
.badge-tick.no { background: var(--spam-bg); color: var(--spam); }

.verdict-hero {
  border-radius: var(--r-lg);
  padding: 1.5rem 1.6rem;
  border: 1px solid transparent;
}
.verdict-hero.spam { background: var(--spam-bg); border-color: var(--spam-line); }
.verdict-hero.legit { background: var(--legit-bg); border-color: var(--legit-line); }
.verdict-hero h2 { font-size: 1.85rem; font-weight: 700; margin: 0; letter-spacing: -.025em; }
.verdict-hero.spam h2 { color: var(--spam); }
.verdict-hero.legit h2 { color: var(--legit); }
.verdict-hero .stat-label { color: inherit; opacity: .75; font-weight: 600;
  text-transform: uppercase; letter-spacing: .06em; font-size: .72rem; }

/* --------------------------------------------------------- model panels */
.model-card {
  border: 1px solid var(--line);
  border-radius: var(--r-lg);
  background: var(--surface);
  box-shadow: var(--sh-1);
  padding: 1.2rem 1.25rem;
  height: 100%;
  position: relative;
  overflow: hidden;
}
.model-card::before {
  content: ""; position: absolute; inset: 0 0 auto 0; height: 4px;
  background: var(--line);
}
.model-card.rf::before { background: var(--rf); }
.model-card.svm::before { background: var(--svm); }
.model-card.bert::before { background: var(--bert); }
.model-name { font-weight: 650; font-size: .98rem; margin-bottom: .1rem; }
.model-kind { font-size: .78rem; color: var(--muted); margin-bottom: .85rem; }

.meter {
  display: block;
  height: 8px; border-radius: 999px;
  background: var(--line-soft); overflow: hidden; margin-top: .75rem;
}
.meter > span { display: block; height: 100%; border-radius: 999px; }
.meter.rf > span { background: var(--rf); }
.meter.svm > span { background: var(--svm); }
.meter.bert > span { background: var(--bert); }
.meter-label { font-size: .78rem; color: var(--muted); margin-top: .4rem; }

.chip-rf { color: var(--rf); }
.chip-svm { color: var(--svm); }
.chip-bert { color: var(--bert); }

/* A small square that names which model a column belongs to. */
.model-tag {
  display: inline-flex; align-items: center; gap: .35rem;
  font-size: .74rem; font-weight: 600; color: var(--muted);
}
.model-tag i { width: 8px; height: 8px; border-radius: 2px; display: inline-block; }
.model-tag.rf i { background: var(--rf); }
.model-tag.svm i { background: var(--svm); }
.model-tag.bert i { background: var(--bert); }

/* =====================================================================
   Notices
   ===================================================================== */

.notice {
  border-radius: var(--r);
  padding: .85rem 1rem;
  font-size: .875rem;
  border: 1px solid transparent;
}
.notice-warn { background: var(--warn-bg); border-color: var(--warn-line); color: var(--warn); }
.notice-info { background: var(--info-bg); border-color: var(--info-line); color: var(--info); }
.notice code { background: rgba(255, 255, 255, .6); color: inherit; }

.alert { border-radius: var(--r); border-width: 1px; font-size: .88rem; }

/* =====================================================================
   Tables
   ===================================================================== */

.table { --bs-table-bg: transparent; margin-bottom: 0; }
.table thead th {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .06em;
  color: var(--faint); font-weight: 600;
  border-bottom: 1px solid var(--line);
  padding-top: .8rem; padding-bottom: .8rem;
  background: var(--surface);
}
.table td { vertical-align: middle; font-size: .9rem; border-color: var(--line-soft); padding: .8rem .6rem; }
.table > :not(caption) > * > *:first-child { padding-left: 1.25rem; }
.table > :not(caption) > * > *:last-child { padding-right: 1.25rem; }
.table-hover { --bs-table-hover-bg: var(--brand-050); --bs-table-hover-color: var(--ink); }
.table tbody tr:last-child td { border-bottom: 0; }

.subject-cell { font-weight: 600; color: var(--ink); }
.preview-cell { color: var(--muted); font-size: .82rem; }

/* Airbnb-style hairline rows, for anything that is a list of facts. */
.rowlist { display: flex; flex-direction: column; }
.rowlist .row-item {
  display: flex; align-items: flex-start; gap: 1rem;
  padding: .95rem 0;
  border-bottom: 1px solid var(--line-soft);
}
.rowlist .row-item:last-child { border-bottom: 0; }
.rowlist .row-item .k { font-weight: 600; font-size: .88rem; min-width: 7.5rem; }
.rowlist .row-item .v { color: var(--muted); font-size: .88rem; min-width: 0; flex: 1 1 auto; }

/* =====================================================================
   Charts drawn in plain CSS — no charting library is added
   ===================================================================== */

.barchart { display: flex; flex-direction: column; gap: .95rem; }
.barchart .bar-row { display: grid; grid-template-columns: 8.5rem 1fr 4rem; align-items: center; gap: .75rem; }
.barchart .bar-name { font-size: .84rem; font-weight: 600; color: var(--ink-2); }
.barchart .bar-track { background: var(--line-soft); border-radius: 999px; height: 12px; overflow: hidden; }
.barchart .bar-fill { height: 100%; border-radius: 999px; display: block; }
.barchart .bar-fill.rf { background: var(--rf); }
.barchart .bar-fill.svm { background: var(--svm); }
.barchart .bar-fill.bert { background: var(--bert); }
.barchart .bar-value { font-size: .84rem; font-weight: 650; text-align: right; font-variant-numeric: tabular-nums; }

/* Confusion matrix: a 2x2 of counts with the axes named. */
.cm { display: grid; grid-template-columns: auto 1fr 1fr; gap: 4px; font-size: .8rem; }
.cm .cm-corner { }
.cm .cm-head, .cm .cm-side {
  color: var(--faint); font-size: .68rem; font-weight: 600;
  text-transform: uppercase; letter-spacing: .05em;
  display: grid; place-items: center; text-align: center;
}
.cm .cm-side { place-items: center end; text-align: right; padding-right: .35rem; }
.cm .cm-cell {
  border-radius: 9px; padding: .55rem .4rem; text-align: center;
  font-variant-numeric: tabular-nums;
}
.cm .cm-cell b { display: block; font-size: 1.02rem; font-weight: 700; line-height: 1.2; }
.cm .cm-cell span { font-size: .66rem; color: var(--muted); }
.cm .cm-hit { background: var(--legit-bg); color: var(--legit); }
.cm .cm-hit span { color: var(--legit); opacity: .8; }
.cm .cm-miss { background: var(--spam-bg); color: var(--spam); }
.cm .cm-miss span { color: var(--spam); opacity: .8; }

/* =====================================================================
   Forms and buttons
   ===================================================================== */

.form-label { font-size: .85rem; font-weight: 600; color: var(--ink-2); margin-bottom: .35rem; }
.form-control, .form-select {
  border-radius: 10px;
  border-color: var(--line);
  padding: .55rem .8rem;
  font-size: .9rem;
  color: var(--ink);
}
.form-control::placeholder { color: var(--faint); }
.form-control:focus, .form-select:focus {
  border-color: var(--brand-500);
  box-shadow: 0 0 0 3px rgba(91, 127, 224, .18);
}
.form-text { font-size: .79rem; color: var(--muted); }
/* Django's password validators arrive as a <ul>; keep it from dominating the
   registration form. */
.form-text ul { padding-left: 1.05rem; margin: .25rem 0 0; }
.form-text li { margin-bottom: .12rem; }
.form-check-input:checked { background-color: var(--brand-600); border-color: var(--brand-600); }
.form-check-input:focus { border-color: var(--brand-500); box-shadow: 0 0 0 3px rgba(91, 127, 224, .18); }

.btn { border-radius: 10px; font-size: .88rem; font-weight: 600; padding: .5rem 1rem; }
.btn-sm { border-radius: 8px; font-size: .82rem; padding: .35rem .7rem; }
.btn-lg { border-radius: 12px; font-size: .95rem; padding: .7rem 1.2rem; }
.btn-primary { background: var(--brand-600); border-color: var(--brand-600); }
.btn-primary:hover, .btn-primary:focus, .btn-primary:active {
  background: var(--brand-700); border-color: var(--brand-700);
}
.btn-outline-primary { color: var(--brand-600); border-color: var(--brand-300); }
.btn-outline-primary:hover { background: var(--brand-600); border-color: var(--brand-600); }
.btn-outline-secondary { color: var(--ink-2); border-color: var(--line); background: var(--surface); }
.btn-outline-secondary:hover { background: var(--line-soft); color: var(--ink); border-color: var(--line); }
.btn-link { color: var(--brand-600); font-weight: 600; }

.pagination { --bs-pagination-color: var(--ink-2); --bs-pagination-border-color: var(--line);
  --bs-pagination-active-bg: var(--brand-600); --bs-pagination-active-border-color: var(--brand-600);
  --bs-pagination-hover-bg: var(--line-soft); --bs-pagination-border-radius: 9px; }

/* =====================================================================
   Sign-in and registration — the split-screen layout
   ===================================================================== */

.auth {
  min-height: 100vh;
  display: grid;
  grid-template-columns: 1.05fr 1fr;
  background: var(--brand-500);
}
.auth-panel {
  background: linear-gradient(155deg, var(--brand-500) 0%, var(--brand-700) 100%);
  color: #fff;
  padding: 3rem 3.25rem;
  display: flex; flex-direction: column;
  /* A safety net for short viewports: the panel scrolls rather than clipping
     the credit line at the bottom. */
  overflow-y: auto;
}
.auth-copy {
  flex: 1;
  display: flex; flex-direction: column;
  justify-content: center;
}
.auth-panel .eyebrow {
  font-size: .72rem; text-transform: uppercase; letter-spacing: .11em;
  font-weight: 600; opacity: .7; margin-bottom: 1.4rem;
}
.auth-panel h1 {
  color: #fff; font-size: 2.1rem; font-weight: 700;
  line-height: 1.18; letter-spacing: -.03em; margin: 0 0 1rem;
  max-width: 19ch;
}
.auth-panel h1 em { font-style: normal; color: #dbe4ff; }
.auth-panel .blurb {
  font-size: .96rem; line-height: 1.65; opacity: .88;
  max-width: 46ch; margin: 0;
}
.auth-panel .blurb strong { color: #fff; font-weight: 700; opacity: 1; }

.auth-models { display: flex; flex-direction: column; gap: .55rem; margin-top: 2rem; max-width: 23rem; }
.auth-model {
  display: flex; align-items: center; gap: .75rem;
  background: rgba(255, 255, 255, .12);
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: var(--r);
  padding: .7rem .9rem;
  backdrop-filter: blur(2px);
}
/* Tinted so that the colour standing for each model is learned before sign-in
   and means the same thing on every page afterwards. */
.auth-model i {
  width: 10px; height: 10px; border-radius: 3px; flex: 0 0 10px;
  background: #fff;
}
.auth-model.rf i { background: #a8c6ee; }
.auth-model.svm i { background: #f6b48c; }
.auth-model.bert i { background: #7ad9c8; }
.auth-model .nm { font-size: .88rem; font-weight: 600; }
.auth-model .sc { margin-left: auto; font-size: .88rem; font-weight: 700; font-variant-numeric: tabular-nums; }
.auth-model .kd { font-size: .74rem; opacity: .75; }

.auth-panel footer { margin-top: auto; padding-top: 2rem; font-size: .76rem; opacity: .68; }

.auth-form-side {
  background: var(--surface);
  border-radius: var(--r-xl) 0 0 var(--r-xl);
  display: flex; align-items: center; justify-content: center;
  padding: 3rem 2rem;
}
.auth-form { width: 100%; max-width: 24rem; }
.auth-form h2 { font-size: 1.6rem; font-weight: 700; letter-spacing: -.025em; margin: 0 0 .35rem; }
.auth-form .sub { color: var(--muted); font-size: .88rem; margin-bottom: 2rem; }

/* Underline inputs, following the reference design. */
.auth-form .form-control {
  border: 0; border-bottom: 1px solid var(--line);
  border-radius: 0; padding: .55rem .1rem;
  background: transparent;
}
.auth-form .form-control:focus {
  box-shadow: none; border-bottom-color: var(--brand-600);
  background: transparent;
}
.auth-form .form-label { font-size: .78rem; color: var(--muted); font-weight: 500; margin-bottom: .1rem; }
.auth-form .btn-primary { padding: .72rem 1rem; border-radius: 10px; font-size: .92rem; }
.auth-form .alt { text-align: center; margin-top: 1.5rem; font-size: .86rem; color: var(--muted); }
.auth-form .alt a { font-weight: 700; }

@media (max-width: 991.98px) {
  .auth { grid-template-columns: 1fr; }
  .auth-panel { padding: 2.5rem 1.75rem; }
  .auth-panel h1 { font-size: 1.9rem; }
  .auth-models { display: none; }
  .auth-form-side { border-radius: var(--r-xl) var(--r-xl) 0 0; padding: 2.5rem 1.5rem; }
}

/* =====================================================================
   Odds and ends
   ===================================================================== */

.email-body {
  white-space: pre-wrap; word-break: break-word;
  background: var(--canvas);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1.1rem;
  font-size: .88rem;
  line-height: 1.6;
  max-height: 460px;
  overflow-y: auto;
}
.example-btn {
  font-size: .82rem; text-align: left;
  border: 1px solid var(--line); background: var(--surface);
  border-radius: 10px; padding: .6rem .75rem; color: var(--ink-2);
}
.example-btn:hover { background: var(--brand-050); border-color: var(--brand-300); color: var(--ink); }

.feature-chip {
  display: inline-block;
  background: var(--line-soft); border: 1px solid var(--line);
  color: var(--ink-2); border-radius: 999px;
  padding: .22rem .65rem; font-size: .78rem; font-weight: 500;
}

.empty-state { padding: 3.25rem 1.5rem; text-align: center; }
.empty-state .glyph {
  width: 52px; height: 52px; border-radius: 14px; margin: 0 auto 1rem;
  display: grid; place-items: center;
  background: var(--brand-050); color: var(--brand-600);
}
.empty-state .glyph svg { width: 24px; height: 24px; stroke-width: 1.6; }
.empty-state h3 { font-size: 1rem; font-weight: 650; margin-bottom: .3rem; }

.steps { counter-reset: step; list-style: none; padding: 0; margin: 0; }
.steps li {
  position: relative; padding-left: 2.1rem; margin-bottom: .85rem;
  font-size: .86rem; color: var(--ink-2); line-height: 1.55;
}
.steps li:last-child { margin-bottom: 0; }
.steps li::before {
  counter-increment: step; content: counter(step);
  position: absolute; left: 0; top: .05rem;
  width: 1.45rem; height: 1.45rem; border-radius: 50%;
  background: var(--brand-050); color: var(--brand-700);
  display: grid; place-items: center;
  font-size: .72rem; font-weight: 700;
}
