/* The admin console (admin.DOMAIN, dev phase 2 step 17h): app.css's look, plus the few things only the console has.
   Desktop first (tables, logs), and it still works on a phone for a quick look. */

.console .sidebar .brand-tag { color: var(--accent-ink); font-weight: 650; }
.console .nav-link .badge { margin-left: auto; }
.console-foot { display: flex; flex-direction: column; gap: 6px; padding: 10px; border-top: 1px solid var(--border); margin-top: 8px; }
.console-foot .who { font-size: 12px; color: var(--text-2); overflow-wrap: anywhere; }
.console-foot a.small { display: inline-flex; align-items: center; gap: 4px; padding: 0; }
.console-header { display: none; }
@media (max-width: 860px) {
  .console-header { display: flex; align-items: center; justify-content: space-between; gap: 10px; position: sticky; top: 0; z-index: 30;
    padding: calc(8px + var(--sat)) 14px 8px; background: var(--surface); border-bottom: 1px solid var(--border); }
  .console .main { padding-bottom: 60px; }
}

/* the login and setup screens */
.console-auth { min-height: 100dvh; display: grid; place-items: center; padding: 24px 16px; background: var(--page); }
.console-auth .card { width: min(440px, 100%); padding: 26px 24px; display: flex; flex-direction: column; gap: 16px; }
.console-auth h1 { font-size: 21px; margin: 0; }
.auth-steps { display: flex; gap: 6px; flex-wrap: wrap; }
.auth-steps span { display: inline-flex; align-items: center; gap: 6px; padding: 4px 10px; border-radius: 99px; font-size: 12px; font-weight: 650;
  background: var(--surface-2); color: var(--muted); }
.auth-steps span.on { background: var(--accent-soft); color: var(--accent-ink); }
.auth-steps span.done { color: var(--good-text); }
.setup-key { font-family: var(--mono, ui-monospace, monospace); font-size: 17px; letter-spacing: 0.06em; padding: 12px 14px; border-radius: var(--radius-sm);
  background: var(--surface-2); border: 1px dashed var(--border-strong); overflow-wrap: anywhere; user-select: all; }
.code-input { font-size: 24px !important; letter-spacing: 0.3em; text-align: center; font-variant-numeric: tabular-nums; }

/* alerts at the top of Overview */
.alerts { display: flex; flex-direction: column; gap: 8px; margin-bottom: 16px; }
.alert { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); border: 1px solid; font-size: 13.5px; }
.alert.bad { background: var(--critical-wash); border-color: color-mix(in srgb, var(--critical-text) 30%, transparent); color: var(--critical-text); }
.alert.warn { background: var(--warning-wash); border-color: color-mix(in srgb, var(--warning-text) 30%, transparent); color: var(--warning-text); }
.alert.info { background: var(--accent-wash); border-color: color-mix(in srgb, var(--accent) 30%, transparent); color: var(--text-2); }
.alert a { margin-left: auto; color: inherit; font-weight: 650; white-space: nowrap; }
.all-good { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: var(--radius-sm); margin-bottom: 16px;
  background: var(--good-wash); color: var(--good-text); font-weight: 600; font-size: 13.5px; }

/* figures */
.figures { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; margin-bottom: 16px; }
.figures .tile .value { font-size: 20px; }
.figures .tile .sub { font-size: 12px; color: var(--muted); margin-top: 2px; }
.page-stack { display: flex; flex-direction: column; gap: 16px; }

/* filters and tables */
.toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin-bottom: 12px; }
.toolbar .input { flex: 1 1 220px; max-width: 360px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.on { background: var(--accent-soft); border-color: var(--accent); color: var(--accent-ink); }
.table tr.clickable { cursor: pointer; }
.table td .small { display: block; }
/* break-word, not anywhere: "anywhere" lets a phone squeeze the column to one letter ("Monur us"); this way the table
   scrolls sideways in its card instead */
.table td.wrap { white-space: normal; overflow-wrap: break-word; min-width: 11rem; max-width: 420px; }
.mono { font-family: ui-monospace, "Cascadia Mono", Menlo, monospace; font-size: 12px; }
.dl { display: grid; grid-template-columns: minmax(150px, 1fr) minmax(0, 2fr); gap: 6px 16px; margin: 0; }
.dl dt { color: var(--text-2); font-size: 13px; }
.dl dd { margin: 0; font-weight: 600; font-size: 13px; overflow-wrap: anywhere; }
@media (max-width: 640px) { .dl { grid-template-columns: minmax(0, 1fr); } .dl dd { margin-bottom: 6px; } }

/* a person's page */
.person-head { display: flex; flex-wrap: wrap; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 14px; }
.person-head h1 { overflow-wrap: anywhere; }
.actions { display: flex; flex-wrap: wrap; gap: 6px; }
.note-item { padding: 10px 12px; border-radius: var(--radius-sm); background: var(--surface-2); white-space: pre-wrap; font-size: 13px; }

/* the funnel */
.funnel { display: flex; flex-direction: column; gap: 8px; }
.funnel-row { display: grid; grid-template-columns: minmax(130px, 220px) minmax(0, 1fr) 90px; align-items: center; gap: 10px; font-size: 13px; }
.funnel-row .bar-track { height: 12px; grid-column: auto; margin: 0; }  /* app.css spans it across a .bar-row */
.funnel-row .num { text-align: right; font-weight: 650; }

/* group emails and announcements */
.form-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
@media (max-width: 760px) { .form-grid { grid-template-columns: minmax(0, 1fr); } }
.preview-banner { margin-top: 4px; }
textarea.input { min-height: 120px; resize: vertical; font: inherit; line-height: 1.5; }

/* the goal */
.goal-bar { height: 14px; border-radius: 99px; background: var(--surface-2); overflow: hidden; }
.goal-bar > i { display: block; height: 100%; background: var(--brand); border-radius: 99px; }
/* the Offer page (23 Oct 2026): what the landing page says about the offer, as the visitor reads it */
.offer-preview { margin: 0; padding: 10px 14px; border-radius: 10px; border: 1px solid var(--border); background: var(--surface-2); font-size: 14px; }
