/* KwahuBusiness.com admin: builds on /assets/styles.css tokens and form styles. */

/* ---------- Login ---------- */
.login-body { min-height: 100vh; background:
  radial-gradient(60% 50% at 100% 0%, color-mix(in srgb, var(--green) 14%, transparent), transparent),
  radial-gradient(50% 40% at 0% 100%, color-mix(in srgb, var(--lime) 14%, transparent), transparent), var(--bg); }
.login-wrap { min-height: 100vh; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 40px 16px; gap: 22px; }
.login-logo img { height: 96px; width: auto; }
.login-card { width: min(420px, 100%); background: var(--surface); border: 1px solid var(--line); border-radius: 22px; padding: 32px 28px; box-shadow: var(--shadow-lg); }
.login-card h1 { font-size: 28px; font-weight: 800; }
.login-sub { color: var(--muted); font-size: 15px; margin: 6px 0 24px; }
.login-btn { width: 100%; margin-top: 6px; }
.login-back { color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; }
.login-back:hover { color: var(--ink); }
.pw-wrap { position: relative; }
.pw-wrap input { padding-right: 70px !important; }
.pw-toggle { position: absolute; right: 8px; top: 50%; transform: translateY(-50%); border: 0; background: none; font: 700 13px var(--font); color: var(--green-strong); cursor: pointer; padding: 6px 8px; }

/* ---------- Shell ---------- */
.admin-body { background: var(--bg); }
.adm { display: grid; grid-template-columns: 250px minmax(0, 1fr); min-height: 100vh; }
.adm-side {
  position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 6px; padding: 22px 16px;
  background: var(--surface); border-right: 1px solid var(--line);
}
.adm-logo { padding: 0 8px; }
.adm-logo .logo-text { font-size: 19px; }
.adm-tag { align-self: flex-start; margin: 6px 8px 18px; padding: 3px 10px; border-radius: 999px; background: var(--navy); color: #fff; font-size: 11px; font-weight: 800; letter-spacing: 0.1em; text-transform: uppercase; }
.adm-nav { display: grid; gap: 4px; }
.adm-nav a {
  display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none;
  font-weight: 600; font-size: 15px; color: var(--ink-2);
}
.adm-nav a svg { width: 18px; height: 18px; flex: none; }
.adm-nav a:hover { background: var(--bg); color: var(--ink); }
.adm-nav a.active { background: var(--brand-soft); color: var(--green-strong); }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: #d64545; color: #fff; font-size: 12px; display: grid; place-items: center; }
.adm-me { margin-top: auto; display: grid; grid-template-columns: auto 1fr; gap: 10px 12px; align-items: center; padding: 14px 8px 0; border-top: 1px solid var(--line); }
.adm-me-text { display: flex; flex-direction: column; min-width: 0; font-size: 14px; font-weight: 600; }
.adm-me-text small { font-size: 11px; color: var(--muted); text-transform: uppercase; letter-spacing: 0.08em; }
.adm-me-text span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.adm-logout { grid-column: 1 / -1; width: 100%; padding: 9px; font-size: 14px; }
.adm-main { padding: 32px clamp(16px, 3vw, 40px) 120px; outline: none; min-width: 0; }

@media (max-width: 860px) {
  .adm { grid-template-columns: 1fr; }
  .adm-side { position: sticky; z-index: 40; height: auto; flex-direction: row; flex-wrap: wrap; align-items: center; padding: 10px 12px; border-right: 0; border-bottom: 1px solid var(--line); }
  .adm-tag { display: none; }
  .adm-logo .logo-text { font-size: 17px; }
  .adm-nav { order: 3; width: 100%; grid-auto-flow: column; overflow-x: auto; gap: 2px; }
  .adm-nav a { padding: 8px 10px; font-size: 14px; white-space: nowrap; }
  .adm-nav a svg { display: none; }
  .adm-me { margin: 0 0 0 auto; padding: 0; border: 0; grid-template-columns: auto auto; }
  .adm-me-text { display: none; }
  .adm-logout { grid-column: auto; width: auto; padding: 8px 12px; }
  .adm-main { padding-top: 22px; }
}

/* ---------- Page header ---------- */
.pg-head { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 16px; margin-bottom: 24px; }
.pg-head h1 { font-size: clamp(28px, 3.5vw, 38px); font-weight: 800; }
.pg-head p { color: var(--muted); margin-top: 4px; }
.pg-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.crumb { display: inline-flex; align-items: center; gap: 6px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: 14px; margin-bottom: 10px; }
.crumb:hover { color: var(--ink); }
.crumb svg { width: 15px; height: 15px; }

/* ---------- Stats ---------- */
.stats { display: grid; grid-template-columns: repeat(4, 1fr); gap: 14px; margin-bottom: 24px; }
.stat { padding: 18px 20px; border-radius: var(--radius); background: var(--surface); border: 1px solid var(--line); text-decoration: none; }
.stat strong { display: block; font-size: 30px; font-weight: 800; letter-spacing: -0.02em; }
.stat span { font-size: 13.5px; color: var(--muted); font-weight: 600; }
a.stat:hover { border-color: var(--green); }
.stat.alert strong { color: #d64545; }
@media (max-width: 760px) { .stats { grid-template-columns: 1fr 1fr; } }

/* ---------- Toolbar ---------- */
.adm-toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-bottom: 16px; }
.adm-toolbar .search { flex: 1 1 260px; height: 44px; }
.seg { display: inline-flex; padding: 4px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); }
.seg button { border: 0; background: none; padding: 7px 14px; border-radius: 999px; font: 600 14px var(--font); color: var(--ink-2); cursor: pointer; }
.seg button[aria-pressed="true"] { background: var(--navy); color: #fff; }
.seg button small { opacity: 0.7; margin-left: 4px; }

/* ---------- Listings table ---------- */
.tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; padding: 12px 16px; font-size: 12px; text-transform: uppercase; letter-spacing: 0.08em; color: var(--muted); font-weight: 700; background: var(--bg); border-bottom: 1px solid var(--line); }
.tbl td { padding: 14px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr:hover { background: color-mix(in srgb, var(--bg) 60%, transparent); }
.biz { display: flex; gap: 12px; align-items: center; min-width: 220px; }
.biz .monogram { width: 42px; height: 42px; border-radius: 12px; font-size: 15px; }
.biz a { font-weight: 700; text-decoration: none; }
.biz a:hover { color: var(--green-strong); }
.biz small { display: block; color: var(--muted); font-size: 13px; max-width: 360px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.muted { color: var(--muted); }
.nowrap { white-space: nowrap; }
.row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.icon-btn {
  display: inline-grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; border: 1px solid var(--line);
  background: var(--surface); color: var(--ink-2); cursor: pointer; text-decoration: none;
}
.icon-btn svg { width: 16px; height: 16px; }
.icon-btn:hover { border-color: var(--ink-2); color: var(--ink); }
.icon-btn.danger:hover { border-color: #d64545; color: #d64545; }
.icon-btn[disabled] { opacity: 0.4; pointer-events: none; }

.pill { display: inline-flex; align-items: center; gap: 6px; padding: 5px 11px; border-radius: 999px; font-size: 12.5px; font-weight: 700; border: 0; cursor: default; white-space: nowrap; font-family: var(--font); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.pill.published, .pill.approved { background: #dcf3e6; color: #17693b; }
.pill.draft { background: #eef0f3; color: #58636f; }
.pill.pending { background: #fff1d6; color: #8a5a00; }
.pill.rejected { background: #fdecec; color: #a12a2a; }
button.pill { cursor: pointer; }
button.pill:hover { filter: brightness(0.96); box-shadow: 0 0 0 2px var(--line); }
:root[data-theme="dark"] .pill.published, :root[data-theme="dark"] .pill.approved { background: #123a26; color: #7fdca6; }
:root[data-theme="dark"] .pill.draft { background: #1f2d35; color: #a8b8c2; }
:root[data-theme="dark"] .pill.pending { background: #3a2e10; color: #f0c867; }
:root[data-theme="dark"] .pill.rejected { background: #3d1818; color: #f19b9b; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .pill.published, :root:not([data-theme="light"]) .pill.approved { background: #123a26; color: #7fdca6; }
  :root:not([data-theme="light"]) .pill.draft { background: #1f2d35; color: #a8b8c2; }
  :root:not([data-theme="light"]) .pill.pending { background: #3a2e10; color: #f0c867; }
  :root:not([data-theme="light"]) .pill.rejected { background: #3d1818; color: #f19b9b; }
}

.star { border: 0; background: none; font-size: 20px; line-height: 1; cursor: pointer; color: var(--line); padding: 4px; }
.star[aria-pressed="true"] { color: #e8a317; }
.star:hover { color: #e8a317; }

.adm-empty { padding: 48px 20px; text-align: center; color: var(--muted); }
.adm-empty strong { display: block; color: var(--ink); font-size: 18px; margin-bottom: 4px; }

@media (max-width: 900px) {
  .tbl thead { display: none; }
  .tbl, .tbl tbody, .tbl tr, .tbl td { display: block; width: 100%; }
  .tbl tr { padding: 14px 16px; border-bottom: 1px solid var(--line); display: grid; grid-template-columns: 1fr auto; gap: 10px 12px; }
  .tbl td { padding: 0; border: 0; }
  .tbl td.c-biz { grid-column: 1 / -1; }
  .tbl td.c-loc, .tbl td.c-updated { display: none; }
  .tbl td.c-actions { grid-column: 1 / -1; }
  .row-actions { justify-content: flex-start; }
  .biz { min-width: 0; }
}

/* ---------- Editor ---------- */
.ed { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
.ed-aside { position: sticky; top: 24px; display: grid; gap: 16px; }
@media (max-width: 1100px) { .ed { grid-template-columns: 1fr; } .ed-aside { position: static; order: -1; } }
.slug-field { display: flex; align-items: stretch; }
.slug-field span { display: flex; align-items: center; padding: 0 12px; border: 1px solid var(--line); border-right: 0; border-radius: 12px 0 0 12px; background: var(--surface); color: var(--muted); font-size: 14px; white-space: nowrap; }
.submit-page .slug-field input { border-radius: 0 12px 12px 0; }
.grid-3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 0 18px; }
@media (max-width: 760px) { .grid-3 { grid-template-columns: 1fr; } }
.color-field { display: flex; gap: 10px; align-items: center; }
.color-field input[type=color] { width: 48px; height: 46px; border: 1px solid var(--line); border-radius: 12px; padding: 4px; background: var(--bg); cursor: pointer; flex: none; }

.img-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 14px; }
@media (max-width: 760px) { .img-grid { grid-template-columns: 1fr; } }
.img-slot { border: 1px solid var(--line); border-radius: 14px; padding: 12px; background: var(--bg); display: grid; gap: 10px; }
.img-slot .label { margin: 0; }
.img-prev { aspect-ratio: 16 / 10; border-radius: 10px; background: var(--brand-soft) center / cover no-repeat; display: grid; place-items: center; color: var(--muted); font-size: 13px; font-weight: 600; }
.img-prev.square { aspect-ratio: 1; max-width: 140px; background-size: contain; background-color: var(--surface); }
.img-prev.round { aspect-ratio: 1; max-width: 120px; border-radius: 50%; }
.img-prev.removed { opacity: 0.35; filter: grayscale(1); }
.img-btns { display: flex; flex-wrap: wrap; gap: 8px; }
.img-btns .btn { padding: 8px 12px; font-size: 13px; }
.img-btns input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.img-note { font-size: 12px; color: var(--muted); }

.rows .row-fields.two { grid-template-columns: 110px 1fr; }
.rows .row-fields.two-wide { grid-template-columns: 1fr 1fr; }
@media (max-width: 520px) { .rows .row-fields.two, .rows .row-fields.two-wide { grid-template-columns: 1fr; } }

.meta-list { display: grid; gap: 10px; font-size: 14px; }
.meta-list div { display: flex; justify-content: space-between; gap: 12px; }
.meta-list dt { color: var(--muted); }
.meta-list dd { margin: 0; font-weight: 600; text-align: right; overflow-wrap: anywhere; }

.savebar {
  position: fixed; left: 250px; right: 0; bottom: 0; z-index: 30; display: flex; align-items: center; justify-content: flex-end; gap: 12px;
  padding: 14px clamp(16px, 3vw, 40px); background: color-mix(in srgb, var(--surface) 92%, transparent); backdrop-filter: blur(12px);
  border-top: 1px solid var(--line);
}
.savebar .dirty { margin-right: auto; font-size: 14px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 8px; }
.savebar .dirty.on { color: #b7791f; }
.savebar .dirty.on::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: currentColor; }
@media (max-width: 860px) { .savebar { left: 0; } }

.danger-zone { border-color: #f0c4c4; }
.btn-danger { background: transparent; color: #c53030; border-color: #f0c4c4; }
.btn-danger:hover { background: #fdecec; }

/* ---------- Submissions ---------- */
.sub-list { display: grid; gap: 12px; }
.sub-card {
  display: grid; grid-template-columns: auto 1fr auto; gap: 16px; align-items: center; padding: 16px 18px;
  background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none;
}
.sub-card:hover { border-color: var(--green); box-shadow: var(--shadow); }
.sub-card .monogram { width: 48px; height: 48px; }
.sub-card h3 { font-size: 17px; }
.sub-card p { color: var(--muted); font-size: 14px; }
.sub-meta { text-align: right; display: grid; gap: 6px; justify-items: end; font-size: 13px; color: var(--muted); }
@media (max-width: 640px) { .sub-card { grid-template-columns: auto 1fr; } .sub-meta { grid-column: 1 / -1; justify-items: start; text-align: left; } }

.detail { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 28px; align-items: start; }
@media (max-width: 1100px) { .detail { grid-template-columns: 1fr; } }
.detail .panel + .panel { margin-top: 16px; }
.dl { display: grid; grid-template-columns: 160px 1fr; gap: 10px 18px; margin: 0; font-size: 15px; }
.dl dt { color: var(--muted); font-weight: 600; }
.dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .dl { grid-template-columns: 1fr; gap: 2px; } .dl dd { margin-bottom: 10px; } }
.detail h2 { font-size: 20px; margin: 0 0 14px; }
.detail .panel > p { color: var(--ink-2); white-space: pre-line; }
.detail ul { margin: 0; padding-left: 18px; display: grid; gap: 6px; }
.thumbs { display: flex; flex-wrap: wrap; gap: 12px; }
.thumbs a { display: grid; gap: 6px; text-decoration: none; font-size: 12.5px; color: var(--muted); font-weight: 600; }
.thumbs img { width: 120px; height: 90px; object-fit: cover; border-radius: 10px; border: 1px solid var(--line); background: var(--bg); }

.acct { max-width: 560px; }
.loading { padding: 60px 0; text-align: center; color: var(--muted); }

/* ---------- Small helpers ---------- */
.radio-cards.two { grid-template-columns: 1fr 1fr; }
.ed-aside .card, #sub-preview .card { pointer-events: none; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.acct .fs { margin-bottom: 16px; }
.detail aside .panel + .panel { margin-top: 16px; }

/* Fixed column widths on wide screens; the business column takes the rest and truncates long taglines. */
.tbl-wrap { overflow-x: auto; }
@media (min-width: 901px) {
  .tbl { table-layout: fixed; min-width: 760px; }
  .tbl th:nth-child(2) { width: 128px; }
  .tbl th:nth-child(3) { width: 150px; }
  .tbl th:nth-child(4) { width: 106px; }
  .tbl th:nth-child(5) { width: 78px; }
  .tbl th:nth-child(6) { width: 108px; }
  .tbl th:nth-child(7) { width: 124px; }
  .tbl td { overflow: hidden; text-overflow: ellipsis; }
  .biz { min-width: 0; }
  .biz > div { min-width: 0; }
  .biz a { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
  .biz small { max-width: none; }
}

/* =====================================================================
   Admin design layer: matches the public site's editorial look
   ===================================================================== */
@keyframes adm-in { from { opacity: 0; transform: translateY(14px); } }
@keyframes adm-row { from { opacity: 0; transform: translateY(8px); } }
@keyframes adm-pulse { 0% { box-shadow: 0 0 0 0 rgba(122, 168, 58, 0.7); } 100% { box-shadow: 0 0 0 10px rgba(122, 168, 58, 0); } }

/* ---------- Dark sidebar ---------- */
.adm-side {
  isolation: isolate; overflow: hidden; color: #fff; border-right-color: transparent;
  background: var(--navy);
}
.adm-side::before {
  content: ""; position: absolute; inset: auto -40% -20% -40%; height: 60%; z-index: -1; pointer-events: none;
  background: radial-gradient(closest-side, rgba(15, 154, 146, 0.35), transparent), radial-gradient(40% 50% at 30% 80%, rgba(122, 168, 58, 0.25), transparent);
}
.adm-side .on-light { display: none !important; }
.adm-side .on-dark { display: block !important; }
.adm-side .logo-text { color: #fff; }
.adm-side .logo-text b { color: #2bb5ac; }
.adm-tag { background: rgba(255, 255, 255, 0.1); color: var(--lime); }
.adm-nav a { color: rgba(255, 255, 255, 0.72); transition: background 0.2s ease, color 0.2s ease, box-shadow 0.2s ease; }
.adm-nav a:hover { background: rgba(255, 255, 255, 0.07); color: #fff; }
.adm-nav a.active { background: rgba(122, 168, 58, 0.16); color: #fff; box-shadow: inset 3px 0 0 var(--lime); }
.adm-nav a.active svg { color: var(--lime); }
.adm-me { border-top-color: rgba(255, 255, 255, 0.12); }
.adm-me-text small { color: rgba(255, 255, 255, 0.55); }
.adm-me-text span { color: #fff; }
.adm-side .theme-toggle { background: rgba(255, 255, 255, 0.08); border-color: rgba(255, 255, 255, 0.16); color: #fff; }
.adm-logout { color: #fff; border-color: rgba(255, 255, 255, 0.2); }
.adm-logout:hover { background: rgba(255, 255, 255, 0.08); }
@media (max-width: 860px) {
  .adm-nav a.active { box-shadow: inset 0 -2px 0 var(--lime); }
}

/* ---------- Page headers ---------- */
.adm-main .pg-head, .adm-main .crumb, .adm-toolbar, .ed, .detail, .acct { animation: adm-in 0.6s var(--ease-out) both; }
.adm-toolbar { animation-delay: 0.08s; }
.ed, .detail, .acct { animation-delay: 0.1s; }
.pg-head .eyebrow { margin-bottom: 10px; }
.pg-head h1 { font-size: clamp(34px, 4.2vw, 54px); letter-spacing: -0.045em; line-height: 1; }
.pg-head h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; letter-spacing: -0.01em; color: var(--green-strong); padding-right: 0.04em; }
:root[data-theme="dark"] .pg-head h1 em { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .pg-head h1 em { color: var(--green); } }

/* ---------- Stats ---------- */
.stat {
  position: relative; overflow: hidden; isolation: isolate; padding: 20px 22px; border-radius: 22px;
  transition: transform 0.35s var(--ease-out), box-shadow 0.35s ease, border-color 0.25s ease, opacity 0.9s var(--ease-out);
}
.stat::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(15, 154, 146, 0.14), transparent 60%);
}
.stat:hover { transform: translateY(-3px); box-shadow: 0 22px 40px -30px rgba(8, 26, 33, 0.5); }
.stat:hover::after { opacity: 1; }
.stat-ico { width: 38px; height: 38px; border-radius: 12px; display: grid; place-items: center; margin-bottom: 16px; background: var(--brand-soft); color: var(--green-strong); }
.stat-ico svg { width: 18px; height: 18px; }
.stat strong { font-size: clamp(32px, 3.4vw, 46px); letter-spacing: -0.04em; line-height: 1; margin-bottom: 4px; font-variant-numeric: tabular-nums; }
.stat-hot { background: var(--navy); border-color: var(--navy); color: #fff; }
.stat-hot strong { color: var(--lime); }
.stat-hot span { color: rgba(255, 255, 255, 0.78); }
.stat-hot .stat-ico { background: rgba(255, 255, 255, 0.1); color: var(--lime); }
.stat-hot::before { content: ""; position: absolute; top: 20px; right: 20px; width: 10px; height: 10px; border-radius: 50%; background: var(--lime); animation: adm-pulse 1.6s ease-out infinite; }
.stat-hot::after { background: radial-gradient(300px circle at var(--mx, 50%) var(--my, 0%), rgba(122, 168, 58, 0.22), transparent 60%); }

/* ---------- Table, cards and panels ---------- */
.tbl-wrap { border-radius: 22px; }
.tbl tbody tr { animation: adm-row 0.5s var(--ease-out) both; animation-delay: calc(var(--r, 0) * 35ms); }
.biz .monogram { transition: transform 0.35s var(--ease-out); }
.tbl tbody tr:hover .biz .monogram { transform: rotate(-4deg) scale(1.05); }
.sub-card { position: relative; overflow: hidden; isolation: isolate; border-radius: 20px; animation: adm-row 0.5s var(--ease-out) both; animation-delay: calc(var(--r, 0) * 45ms); transition: transform 0.3s var(--ease-out), box-shadow 0.3s ease, border-color 0.25s ease; }
.sub-card::after {
  content: ""; position: absolute; inset: 0; z-index: -1; pointer-events: none; opacity: 0; transition: opacity 0.3s ease;
  background: radial-gradient(360px circle at var(--mx, 50%) var(--my, 0%), rgba(15, 154, 146, 0.12), transparent 60%);
}
.sub-card:hover { transform: translateY(-2px); }
.sub-card:hover::after { opacity: 1; }
.adm-main .panel { border-radius: 22px; }
.seg button { transition: background 0.2s ease, color 0.2s ease; }
.savebar { box-shadow: 0 -18px 40px -30px rgba(8, 26, 33, 0.45); }

/* ---------- Login: split screen ---------- */
.login-split { display: grid; grid-template-columns: 1.05fr 0.95fr; min-height: 100vh; }
.login-art {
  position: relative; overflow: hidden; isolation: isolate; display: flex; flex-direction: column; justify-content: space-between; gap: 32px;
  padding: clamp(28px, 4vw, 56px); color: #fff; background: #0a1a3a url("/assets/img/bg-skyline-dark.webp") 72% center / cover no-repeat;
}
.login-art::before { content: ""; position: absolute; inset: 0; z-index: -1; background: linear-gradient(100deg, rgba(8, 20, 45, 0.92) 0%, rgba(8, 20, 45, 0.55) 55%, rgba(8, 20, 45, 0.15) 100%); }
.login-art-logo img { height: 72px; width: auto; }
.login-art .eyebrow { color: rgba(255, 255, 255, 0.7); }
.login-art h2 { font-size: clamp(40px, 4.6vw, 70px); font-weight: 800; letter-spacing: -0.045em; line-height: 0.98; margin: 16px 0 18px; max-width: 12ch; }
.login-art h2 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); letter-spacing: -0.01em; }
.login-art p { color: rgba(255, 255, 255, 0.8); font-size: 18px; max-width: 440px; }
.login-chips { list-style: none; padding: 0; margin: 26px 0 0; display: flex; flex-wrap: wrap; gap: 10px; }
.login-chips li { padding: 8px 14px; border-radius: 999px; background: rgba(255, 255, 255, 0.08); border: 1px solid rgba(255, 255, 255, 0.16); font-weight: 600; font-size: 14px; backdrop-filter: blur(6px); }
.login-chips b { color: var(--lime); font-size: 11px; margin-right: 4px; }
.login-art-foot { font-size: clamp(22px, 2.4vw, 30px); font-weight: 800; letter-spacing: -0.03em; }
.login-art-foot em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--lime); }
.login-card { border-radius: 26px; }
.login-card .eyebrow { margin-bottom: 10px; }
.login-card h1 { font-size: clamp(34px, 3.4vw, 46px); letter-spacing: -0.045em; line-height: 1; }
.login-card h1 em { font-family: var(--serif); font-style: italic; font-weight: 400; color: var(--green-strong); letter-spacing: -0.01em; }
:root[data-theme="dark"] .login-card h1 em { color: var(--green); }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) .login-card h1 em { color: var(--green); } }
@media (min-width: 901px) { .login-logo { display: none; } }
@media (max-width: 900px) { .login-split { grid-template-columns: 1fr; } .login-art { display: none; } }

@media (prefers-reduced-motion: reduce) {
  .adm-main .pg-head, .adm-main .crumb, .adm-toolbar, .ed, .detail, .acct, .tbl tbody tr, .sub-card, .stat-hot::before { animation: none !important; }
}
.reduce-motion .adm-main .pg-head, .reduce-motion .adm-main .crumb, .reduce-motion .adm-toolbar, .reduce-motion .ed, .reduce-motion .detail, .reduce-motion .acct, .reduce-motion .tbl tbody tr, .reduce-motion .sub-card { animation: none !important; }
/* Search fields inside the admin toolbar: the pill is the field, not the input */
.submit-page .search input:not([type=checkbox]) { border: 0 !important; background: transparent !important; padding: 0 !important; box-shadow: none !important; border-radius: 0 !important; height: 100%; }
@media (max-width: 900px) {
  .tbl tr { grid-template-columns: minmax(0, 1fr) auto; }
  .tbl td, .biz, .biz > div { min-width: 0; }
  .biz small { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
}
.submit-page .search { min-width: 0; }
.fs legend em, .acct legend em { font-family: var(--serif); font-style: italic; font-weight: 400; }

/* Admin team list (Account page) */
.admin-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.admin-list li { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 14px; background: var(--bg); border: 1px solid var(--line); }
.admin-email { flex: 1; min-width: 0; font-weight: 600; overflow-wrap: anywhere; }
.admin-email .pill { margin-left: 6px; vertical-align: 1px; }
.avatar-sm { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; flex: none; background: linear-gradient(135deg, var(--navy), var(--green-strong)); color: #fff; font-weight: 800; font-size: 14px; }
