/* JLL resident services — shared styles for index.html (tenant) and admin.html (staff) */
:root {
  --red: #e30613;          /* JLL red */
  --red-ink: #b8050f;
  --red-soft: #fff1f1;
  --ink: #0e0e10;
  --ink-2: #2b2b30;
  --muted: #62626b;
  --line: #e7e4e0;
  --line-2: #d9d5d0;
  --bg: #f6f5f2;
  --card: #ffffff;
  --field: #fbfaf8;
  --ok: #16784a;
  --ok-soft: #e8f5ee;
  --warn: #9a6400;
  --warn-soft: #fff4e0;
  --radius: 18px;
  --radius-sm: 12px;
  --shadow: 0 1px 2px rgba(16, 16, 20, .04), 0 8px 28px rgba(16, 16, 20, .06);
  --shadow-lg: 0 2px 4px rgba(16, 16, 20, .04), 0 24px 60px rgba(16, 16, 20, .10);
  --ring: 0 0 0 4px rgba(227, 6, 19, .12);
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; background: var(--bg); color: var(--ink);
  font: 16px/1.55 "Inter", system-ui, -apple-system, "Segoe UI", Roboto, Arial, sans-serif;
  -webkit-font-smoothing: antialiased;
}
a { color: var(--red-ink); }
.hidden { display: none !important; }
.hp { position: absolute; left: -9999px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ---------- Header ---------- */
header.top {
  position: sticky; top: 0; z-index: 20;
  display: flex; align-items: center; gap: 14px;
  padding: 12px max(16px, calc((100vw - 1120px) / 2));
  background: rgba(255, 255, 255, .86);
  backdrop-filter: saturate(1.4) blur(12px); -webkit-backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid rgba(0, 0, 0, .06);
}
.brand-logo { height: 30px; width: auto; display: block; flex: none; }
.brand-sub { color: var(--muted); font-size: 14px; }
.top-pill {
  margin-left: auto; font-size: 13px; font-weight: 600; color: var(--ink-2);
  padding: 6px 12px; border-radius: 999px; background: #f1efeb; white-space: nowrap;
}

/* ---------- Hero ---------- */
.hero {
  position: relative; overflow: hidden;
  padding: 56px 16px 120px;
  background:
    radial-gradient(900px 420px at 85% -10%, rgba(227, 6, 19, .14), transparent 60%),
    radial-gradient(700px 380px at 0% 0%, rgba(227, 6, 19, .06), transparent 60%),
    linear-gradient(180deg, #ffffff 0%, var(--bg) 100%);
}
.hero::before { /* faint ring motif echoing the JLL mark */
  content: ""; position: absolute; right: -140px; top: -160px; width: 520px; height: 520px; border-radius: 50%;
  border: 46px solid rgba(227, 6, 19, .06); box-shadow: 0 0 0 46px rgba(227, 6, 19, .035);
  pointer-events: none;
}
.hero-inner { position: relative; max-width: 760px; margin: 0 auto; }
.eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  font-size: 13px; font-weight: 600; color: var(--red-ink);
  background: #fff; border: 1px solid #f3d3d5; padding: 6px 12px 6px 8px; border-radius: 999px;
  box-shadow: 0 1px 2px rgba(0, 0, 0, .04);
}
.eyebrow .dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); box-shadow: 0 0 0 4px rgba(227, 6, 19, .15); }
.hero h1 {
  font-size: clamp(30px, 5.2vw, 46px); line-height: 1.08; letter-spacing: -.025em;
  margin: 18px 0 14px; font-weight: 700;
}
.hero h1 em { font-style: normal; color: var(--red); }
.hero p.lead { font-size: 18px; color: var(--muted); max-width: 600px; margin: 0; }
.trust { display: flex; flex-wrap: wrap; gap: 10px 22px; margin: 24px 0 0; padding: 0; list-style: none; }
.trust li { display: flex; align-items: center; gap: 8px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.trust svg { width: 18px; height: 18px; color: var(--red); flex: none; }

/* ---------- Main column ---------- */
main { max-width: 760px; margin: -84px auto 0; padding: 0 16px 56px; position: relative; }
main.wide { max-width: 1180px; margin-top: 28px; }

/* Stepper */
.steps {
  display: grid; grid-template-columns: repeat(3, 1fr); gap: 0; list-style: none; margin: 0 0 16px; padding: 14px 18px;
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow);
}
.steps li { position: relative; display: flex; align-items: center; gap: 10px; font-size: 14px; font-weight: 600; color: var(--muted); min-width: 0; }
.steps .num {
  flex: none; width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: #f1efeb; color: var(--muted); transition: all .25s ease;
}
.steps .label { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.steps li.on { color: var(--ink); }
.steps li.on .num { background: var(--red); color: #fff; box-shadow: 0 0 0 5px rgba(227, 6, 19, .14); }
.steps li.done { color: var(--ok); }
.steps li.done .num { background: var(--ok); color: #fff; font-size: 0; }
.steps li.done .num::after { content: "✓"; font-size: 14px; }
@media (max-width: 520px) {
  .steps { padding: 12px; }
  .steps li { flex-direction: column; gap: 6px; font-size: 12px; text-align: center; }
  .steps .label { white-space: normal; }
}

/* Cards & sections */
.card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius);
  padding: 28px; margin-bottom: 16px; box-shadow: var(--shadow);
}
@media (max-width: 520px) { .card { padding: 20px 18px; } }
.section + .section { margin-top: 28px; padding-top: 28px; border-top: 1px solid var(--line); }
.section-head { display: flex; align-items: flex-start; gap: 14px; margin-bottom: 18px; }
.section-icon {
  flex: none; width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.section-icon svg { width: 20px; height: 20px; }
h1 { font-size: 26px; line-height: 1.2; margin: 0 0 8px; letter-spacing: -.01em; }
h2 { font-size: 19px; line-height: 1.3; margin: 0; letter-spacing: -.01em; font-weight: 700; }
.section-head p { margin: 2px 0 0; color: var(--muted); font-size: 14px; }
p.lead { color: var(--muted); margin: 0 0 20px; }

/* Fields */
.grid { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 16px; }
.grid .full { grid-column: 1 / -1; }
@media (max-width: 560px) { .grid { grid-template-columns: 1fr; } }
label { display: block; font-size: 14px; font-weight: 600; margin-bottom: 6px; color: var(--ink-2); }
label .opt { font-weight: 400; color: var(--muted); }
input[type=text], input[type=email], input[type=password], input[type=tel], input[type=date], select, textarea {
  width: 100%; height: 50px; padding: 0 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm);
  font: inherit; font-size: 16px; background: var(--field); color: var(--ink);
  transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
  appearance: none; -webkit-appearance: none;
}
select {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath d='M1 1l5 5 5-5' fill='none' stroke='%2362626b' stroke-width='1.8' stroke-linecap='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat; background-position: right 14px center; padding-right: 38px;
}
input::placeholder { color: #a3a09b; }
input:hover, select:hover { border-color: #c5c0ba; }
input:focus, select:focus { outline: none; border-color: var(--red); background: #fff; box-shadow: var(--ring); }
input[aria-invalid=true] { border-color: var(--red); background: #fff8f8; }

/* Development picker (searchable dropdown) */
.combo { position: relative; }
.combo-btn {
  width: 100%; min-height: 64px; display: flex; align-items: center; gap: 12px; text-align: left; cursor: pointer;
  padding: 10px 14px; border: 1px solid var(--line-2); border-radius: var(--radius-sm); background: var(--field);
  font: inherit; color: var(--ink); transition: border-color .15s ease, box-shadow .15s ease, background .15s ease;
}
.combo-btn:hover { border-color: #c5c0ba; }
.combo-btn:focus-visible, .combo.open .combo-btn { outline: none; border-color: var(--red); background: #fff; box-shadow: var(--ring); }
.combo-btn[aria-invalid=true] { border-color: var(--red); background: #fff8f8; }
.combo-icon {
  flex: none; width: 40px; height: 40px; border-radius: 10px; display: grid; place-items: center;
  background: var(--red-soft); color: var(--red);
}
.combo-icon svg { width: 20px; height: 20px; }
.combo-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.combo-text b { font-weight: 600; font-size: 16px; }
.combo-text small { color: var(--muted); font-size: 13px; margin-top: 2px; }
.combo-placeholder { color: #8d8983; }
.combo-chev { flex: none; width: 20px; height: 20px; color: var(--muted); transition: transform .2s ease; }
.combo.open .combo-chev { transform: rotate(180deg); }
.combo-panel {
  position: absolute; z-index: 30; left: 0; right: 0; top: calc(100% + 8px);
  background: #fff; border: 1px solid var(--line); border-radius: 16px; box-shadow: var(--shadow-lg);
  overflow: hidden; animation: fade .18s ease both;
}
.combo-search { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-bottom: 1px solid var(--line); }
.combo-search svg { flex: none; width: 18px; height: 18px; color: var(--muted); }
.combo-search input { height: 40px; border: 0; background: transparent; padding: 0; box-shadow: none !important; }
.combo-search input:focus { background: transparent; }
.combo-list { list-style: none; margin: 0; padding: 6px; max-height: min(360px, 55vh); overflow-y: auto; overscroll-behavior: contain; }
.combo-list li[data-i] {
  display: flex; align-items: center; gap: 12px; padding: 10px 10px; border-radius: 10px; cursor: pointer;
}
.combo-list li.active { background: #f6f4f1; }
.combo-list li[aria-selected=true] { background: var(--red-soft); }
.opt-icon { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: #f1efeb; color: var(--ink-2); }
.opt-icon svg { width: 17px; height: 17px; }
.combo-list li[aria-selected=true] .opt-icon { background: #fff; color: var(--red); }
.opt-text { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.3; }
.opt-text b { font-weight: 600; font-size: 15px; }
.opt-text small { color: var(--muted); font-size: 13px; }
.opt-check { flex: none; width: 18px; height: 18px; color: var(--red); }
.combo-list li.other { margin-top: 6px; border-top: 1px solid var(--line); border-radius: 0 0 10px 10px; padding-top: 14px; }
.combo-list li.other .opt-icon { background: transparent; border: 1px dashed var(--line-2); }
.combo-list li.empty { padding: 14px 10px 6px; color: var(--muted); font-size: 14px; }

/* Switch (checkbox styled as a toggle) */
.switch { display: flex; align-items: center; gap: 12px; font-weight: 500; cursor: pointer; margin: 0; user-select: none; }
.switch input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 0;
  width: 44px; height: 26px; border-radius: 999px; background: #d7d3ce; position: relative; cursor: pointer;
  transition: background .2s ease;
}
.switch input::after {
  content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%;
  background: #fff; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); transition: transform .2s ease;
}
.switch input:checked { background: var(--red); }
.switch input:checked::after { transform: translateX(18px); }
.switch input:focus-visible { box-shadow: var(--ring); outline: none; }
.reveal { margin-top: 16px; padding: 16px; border-radius: var(--radius-sm); background: #faf9f7; border: 1px dashed var(--line-2); }

/* Consent */
.consent {
  display: flex; gap: 14px; align-items: flex-start; margin-top: 28px; padding: 18px;
  border-radius: 14px; background: linear-gradient(180deg, #fffafa, #fff5f5); border: 1px solid #f4d6d8; cursor: pointer;
  font-weight: 400; font-size: 14px; color: var(--ink-2); line-height: 1.55;
}
.consent input {
  appearance: none; -webkit-appearance: none; flex: none; margin: 1px 0 0;
  width: 22px; height: 22px; border-radius: 7px; border: 1.5px solid #cfc9c3; background: #fff; cursor: pointer;
  display: grid; place-items: center; transition: all .15s ease;
}
.consent input:checked { background: var(--red); border-color: var(--red); }
.consent input:checked::after { content: ""; width: 6px; height: 11px; border: solid #fff; border-width: 0 2.5px 2.5px 0; transform: translateY(-1px) rotate(45deg); }
.consent input:focus-visible { box-shadow: var(--ring); outline: none; }
/* Plain checkbox row (used on the dashboard and elsewhere) */
.check { display: flex; gap: 10px; align-items: flex-start; font-weight: 400; }
.check input { margin-top: 4px; width: 18px; height: 18px; flex: none; accent-color: var(--red); }

/* Buttons */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 10px;
  border: 0; border-radius: var(--radius-sm); padding: 0 22px; height: 52px; font: inherit; font-size: 16px;
  font-weight: 600; cursor: pointer; text-decoration: none; text-align: center; white-space: nowrap;
  background: var(--red); color: #fff; box-shadow: 0 6px 18px rgba(227, 6, 19, .25);
  transition: background .15s ease, transform .05s ease, box-shadow .15s ease;
}
.btn:hover { background: var(--red-ink); box-shadow: 0 8px 22px rgba(227, 6, 19, .32); }
.btn:active { transform: translateY(1px); }
.btn:focus-visible { outline: none; box-shadow: var(--ring); }
.btn svg { width: 18px; height: 18px; }
.btn.secondary { background: #fff; color: var(--ink); border: 1px solid var(--line-2); box-shadow: none; }
.btn.secondary:hover { background: #f7f6f3; border-color: #c5c0ba; }
.btn.ghost { background: transparent; color: var(--ink-2); box-shadow: none; padding: 0 12px; }
.btn.ghost:hover { background: #f1efeb; }
.btn.small { height: 36px; padding: 0 12px; font-size: 13px; border-radius: 10px; }
.btn:disabled { opacity: .6; cursor: progress; }
.btn.block { width: 100%; }
.actions { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 22px; align-items: center; }
.err { color: var(--red-ink); font-size: 14px; font-weight: 500; margin-top: 12px; min-height: 0; }
.err:not(:empty) { padding: 10px 14px; background: #fff3f3; border: 1px solid #f6d0d2; border-radius: 10px; }
.note { font-size: 14px; color: var(--muted); }
.fine { font-size: 13px; color: var(--muted); text-align: center; margin: 14px 0 0; }
.fine svg { width: 14px; height: 14px; vertical-align: -2px; margin-right: 4px; }

/* Step 2: Servus form */
.servus-head { display: flex; gap: 16px; align-items: flex-start; }
.badge {
  display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 700; letter-spacing: .02em;
  color: var(--ok); background: var(--ok-soft); padding: 5px 10px; border-radius: 999px; text-transform: uppercase;
}
.badge svg { width: 13px; height: 13px; }
.howto { list-style: none; counter-reset: s; padding: 0; margin: 18px 0 0; display: grid; gap: 10px; }
.howto li { counter-increment: s; display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.howto li::before {
  content: counter(s); flex: none; width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center;
  font-size: 13px; font-weight: 700; background: var(--ink); color: #fff; margin-top: -1px;
}
.callout {
  display: flex; gap: 12px; margin-top: 18px; padding: 14px 16px; border-radius: 12px;
  background: #f6f5f2; font-size: 14px; color: var(--ink-2);
}
.callout svg { flex: none; width: 18px; height: 18px; color: var(--muted); margin-top: 2px; }
.frame-wrap {
  background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden;
  box-shadow: var(--shadow-lg); margin-bottom: 16px;
}
.frame-bar {
  display: flex; align-items: center; gap: 10px; padding: 12px 16px; border-bottom: 1px solid var(--line);
  font-size: 13px; color: var(--muted); background: #fbfaf8;
}
.frame-bar svg { width: 15px; height: 15px; color: var(--ok); }
.frame-bar b { color: var(--ink-2); font-weight: 600; }
.frame-wrap iframe { width: 100%; height: 1600px; border: 0; display: block; background: #fff; }
.fallback { display: flex; flex-wrap: wrap; gap: 10px 16px; align-items: center; justify-content: space-between; }
.fallback p { margin: 0; }

/* Done */
.done-card { text-align: center; padding: 44px 28px; }
.tick {
  width: 84px; height: 84px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center;
  background: var(--ok-soft); color: var(--ok); animation: pop .5s cubic-bezier(.2, 1.4, .4, 1) both;
}
/* The path is inline (not <use>) so iOS Safari draws it; the dash animation sits on the path itself. */
.tick svg { width: 42px; height: 42px; }
/* Drawn by default; the animation only plays on top, so it can never be left blank. */
.tick path { stroke-dasharray: 24; stroke-dashoffset: 0; animation: draw .45s .25s ease both; }
@keyframes pop { from { transform: scale(.6); opacity: 0; } to { transform: none; opacity: 1; } }
@keyframes draw { from { stroke-dashoffset: 24; } to { stroke-dashoffset: 0; } }
.done-card h2 { font-size: 26px; }
.done-card p { color: var(--muted); max-width: 460px; margin: 10px auto 0; }
.next-list { text-align: left; max-width: 420px; margin: 24px auto 0; padding: 0; list-style: none; display: grid; gap: 12px; }
.next-list li { display: flex; gap: 12px; align-items: flex-start; font-size: 15px; }
.next-list svg { flex: none; width: 20px; height: 20px; color: var(--ok); margin-top: 1px; }

/* Footer */
footer {
  max-width: 760px; margin: 0 auto; padding: 8px 16px 40px; color: var(--muted); font-size: 13px;
  display: flex; gap: 14px; align-items: center; justify-content: center; flex-wrap: wrap; text-align: center;
}
footer img { height: 18px; opacity: .9; }

/* Motion */
.fade-in { animation: fade .35s ease both; }
@keyframes fade { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
  .tick path { stroke-dashoffset: 0; } /* show the tick fully drawn when animations are off */
}

/* ---------- Dashboard ---------- */
table { width: 100%; border-collapse: collapse; font-size: 14px; }
th, td { text-align: left; padding: 14px 12px; border-bottom: 1px solid var(--line); vertical-align: top; }
tbody tr:hover { background: #fbfaf8; }
tbody tr:last-child td { border-bottom: 0; }
th { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 600; background: #fbfaf8; }
.chip { display: inline-flex; align-items: center; gap: 6px; font-size: 12px; font-weight: 600; padding: 4px 10px; border-radius: 999px; white-space: nowrap; }
.chip::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.chip.started { background: var(--warn-soft); color: var(--warn); }
.chip.servus_submitted { background: var(--warn-soft); color: var(--warn); }
.chip.warranty_sent { background: var(--ok-soft); color: var(--ok); }
.toolbar { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; margin-bottom: 14px; }
.toolbar input, .toolbar select { width: auto; min-width: 200px; height: 42px; }
.tablewrap { overflow-x: auto; padding: 0; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; margin-bottom: 18px; }
.stat { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 18px 20px; box-shadow: var(--shadow); }
.stat b { display: block; font-size: 32px; line-height: 1.1; letter-spacing: -.02em; }
.stat span { font-size: 13px; color: var(--muted); }
.stat.accent { border-color: #f3c9cc; background: linear-gradient(180deg, #fff, #fff6f6); }
.stat.accent b { color: var(--red); }
.page-title { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; margin-bottom: 18px; }
.page-title h1 { margin: 0; font-size: 28px; letter-spacing: -.02em; }
.page-title p { margin: 4px 0 0; color: var(--muted); }
.login-wrap { max-width: 420px; margin: 72px auto; }

/* ---------- Dashboard: supplier menu ---------- */
.app { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.side { position: sticky; top: 78px; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 16px 12px; box-shadow: var(--shadow); }
.side-h { font-size: 11px; font-weight: 600; letter-spacing: .07em; text-transform: uppercase; color: var(--muted); padding: 0 8px 10px; }
.side-item { display: flex; align-items: center; gap: 10px; padding: 10px; border-radius: var(--radius-sm); background: var(--red-soft); }
.side-logo { flex: none; width: 34px; height: 34px; border-radius: 9px; display: grid; place-items: center; background: var(--red); color: #fff; font-weight: 700; }
.side-name { flex: 1; min-width: 0; display: flex; flex-direction: column; line-height: 1.25; }
.side-name b { font-size: 15px; }
.side-name small { font-size: 12px; color: var(--muted); }
.side-count { min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--red); color: #fff; font-size: 12px; font-weight: 700; display: grid; place-items: center; }
.side-sub { display: flex; flex-direction: column; gap: 2px; margin: 6px 0 0 22px; padding-left: 14px; border-left: 2px solid var(--line); }
.side-sub button { all: unset; cursor: pointer; padding: 8px 10px; border-radius: 9px; font-size: 14px; font-weight: 500; color: var(--ink-2); }
.side-sub button:hover { background: #f6f5f2; }
.side-sub button.on { color: var(--red-ink); font-weight: 600; background: #f6f5f2; }
.side-sub button:focus-visible { box-shadow: var(--ring); }
.side-note { font-size: 12px; color: var(--muted); margin: 14px 8px 0; padding-top: 12px; border-top: 1px dashed var(--line-2); }
.content { min-width: 0; }
.card-h { margin: 0 0 16px; font-size: 18px; letter-spacing: -.01em; }
.dev-preview { display: flex; align-items: center; gap: 12px; margin-top: 16px; padding: 12px 14px; border: 1px dashed var(--line-2); border-radius: var(--radius-sm); background: var(--field); }
.dev-preview .opt-text small:first-child { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; }
#devForm { margin-bottom: 18px; }
tr.off td { opacity: .55; }
tr.off td:last-child { opacity: 1; }
@media (max-width: 860px) {
  .app { grid-template-columns: 1fr; gap: 18px; }
  .side { position: static; }
  .side-sub { flex-direction: row; margin: 8px 0 0; padding: 0; border: 0; }
  .side-sub button { flex: 1; text-align: center; }
}
@media (max-width: 560px) {
  header.top #who { display: none; }
  header.top .top-pill { white-space: normal; line-height: 1.25; }
}

/* ---------- Dashboard: use the full screen width ---------- */
header.top.full { padding-left: 24px; padding-right: 24px; }
main.wide { max-width: none; margin: 24px 0 0; padding: 0 24px 56px; }
@media (max-width: 560px) {
  header.top.full { padding-left: 16px; padding-right: 16px; }
  main.wide { padding: 0 16px 56px; }
}
.chip.invited { background: var(--warn-soft); color: var(--warn); }
.stat.amber { background: #fff8ea; border-color: #f4e0b5; }
.stat.amber b { color: var(--warn); }
.stat.green { background: #eef8f2; border-color: #c6e6d4; }
.stat.green b { color: var(--ok); }
#inviteForm { margin-bottom: 18px; }
/* Page title runs from the left edge, above the menu (250px menu + 28px gap) */
@media (min-width: 861px) { .content .page-title { margin-left: -278px; } }
button.stat { display: block; width: 100%; font: inherit; color: inherit; text-align: left; cursor: pointer; transition: box-shadow .15s, transform .15s; }
button.stat:hover { box-shadow: var(--shadow-lg); transform: translateY(-1px); }
button.stat:focus-visible { outline: none; box-shadow: var(--ring); }
button.stat[aria-pressed="true"].amber { border-color: var(--warn); box-shadow: 0 0 0 1px var(--warn), var(--shadow); }
button.stat[aria-pressed="true"].green { border-color: var(--ok); box-shadow: 0 0 0 1px var(--ok), var(--shadow); }
.side-h2 { margin-top: 18px; padding-top: 14px; }
.side-settings { margin-left: 8px; padding-left: 0; border-left: 0; }
.linkish { all: unset; color: var(--red-ink); text-decoration: underline; cursor: pointer; }
.linkish:focus-visible { box-shadow: var(--ring); border-radius: 4px; }

/* Dashboard: buttons beside the page title, and the import preview */
.title-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.imp-bad { color: var(--red-ink); font-weight: 500; }
#impFile { font: inherit; font-size: 14px; max-width: 100%; }
