/* PlaygroundVIP admin — design system (Instrument Sans / Fira Code / gold accent) */
@import url("./admin-shared-tokens.css");
* { margin: 0; padding: 0; box-sizing: border-box; }
body.admin-app,
body.login-standalone {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 14px;
  line-height: 1.5;
}
body.admin-app {
  background: var(--pg-bg);
  color: var(--ink2);
}
a { color: var(--gold2); text-decoration: none; }
a:hover { text-decoration: underline; }
body.admin-app .mono,
.mono {
  font-family: "Fira Code", ui-monospace, monospace;
  font-size: 11px;
  color: var(--muted);
}
body.admin-app .wrap { display: flex; min-height: 100vh; }
.sb {
  width: var(--sb);
  background: var(--ink);
  border-right: 1px solid rgba(255, 255, 255, 0.08);
  position: fixed;
  inset: 0 auto 0 0;
  display: flex;
  flex-direction: column;
  overflow-y: auto;
  z-index: 30;
  color: rgba(255, 255, 255, 0.88);
}
.sb a { color: rgba(255, 255, 255, 0.78); }
.sb a:hover { color: #fff; }
.sb-brand { padding: 18px 16px 14px; border-bottom: 1px solid rgba(255, 255, 255, 0.08); }
.sb-brand-name { font-size: 15px; font-weight: 700; letter-spacing: -0.02em; color: var(--gold2); }
.sb-brand-sub { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--subtle); margin-top: 2px; letter-spacing: 0.04em; }
.sb-nav { padding: 10px 8px; flex: 1; }
.sb-label { font-size: 9px; font-family: "Fira Code", ui-monospace, monospace; color: var(--subtle); text-transform: uppercase; letter-spacing: 0.1em; padding: 8px 8px 4px; }
.sb-link { display: flex; align-items: center; gap: 8px; padding: 7px 8px; border-radius: var(--r2); color: rgba(255, 255, 255, 0.65); font-size: 13px; font-weight: 500; transition: background 0.12s, color 0.12s; margin-bottom: 1px; }
.sb-link:hover { background: rgba(255, 255, 255, 0.08); color: #fff; text-decoration: none; }
.sb-link.on { background: var(--gold-a); color: var(--gold2); }
.sb-link .ic { font-size: 13px; flex-shrink: 0; opacity: 0.75; }
.sb-link.on .ic { opacity: 1; }
.sb-badge { margin-left: auto; font-size: 9px; font-family: "Fira Code", ui-monospace, monospace; padding: 1px 5px; border-radius: 8px; }
.sb-badge.amber { background: var(--amber-a); color: var(--amber); }
.sb-group { border-radius: var(--r2); overflow: hidden; margin-bottom: 1px; }
.sb-group-header { display: flex; align-items: center; gap: 8px; padding: 7px 8px; color: rgba(255, 255, 255, 0.65); font-size: 13px; font-weight: 500; background: none; border: none; width: 100%; text-align: left; cursor: pointer; }
.sb-group-header:hover { background: rgba(255, 255, 255, 0.06); color: #fff; }
.sb-group-header.on { background: var(--gold-a); color: var(--gold2); }
.sb-group-arrow { margin-left: auto; font-size: 9px; color: var(--subtle); transition: transform 0.15s; }
.sb-group-header.on .sb-group-arrow { color: var(--gold2); transform: rotate(90deg); }
.sb-group-children { display: none; background: rgba(0, 0, 0, 0.22); padding: 4px 4px 4px 20px; }
.sb-group-children.open { display: block; }
.sb-child { display: flex; align-items: center; gap: 6px; padding: 6px 8px; border-radius: var(--r2); color: rgba(255, 255, 255, 0.55); font-size: 12px; font-weight: 400; }
.sb-child:hover { background: rgba(255, 255, 255, 0.06); color: rgba(255, 255, 255, 0.9); }
.sb-child.on { color: var(--gold2); }
.sb-child::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; flex-shrink: 0; }
.sb-foot { padding: 10px 8px; border-top: 1px solid rgba(255, 255, 255, 0.08); }
.sb-user { display: flex; align-items: center; gap: 8px; padding: 8px; border-radius: var(--r2); background: rgba(0, 0, 0, 0.25); }
a.sb-user.sb-user-profile-link {
  text-decoration: none;
  color: inherit;
  cursor: pointer;
  transition: background 0.12s ease;
}
a.sb-user.sb-user-profile-link:hover {
  background: rgba(0, 0, 0, 0.38);
}
a.sb-user.sb-user-profile-link:focus {
  outline: 2px solid var(--gold2);
  outline-offset: 1px;
}
a.sb-user.sb-user-profile-link.on-profile {
  box-shadow: inset 0 0 0 1px rgba(201, 162, 39, 0.45);
}
.sb-av { width: 26px; height: 26px; border-radius: 6px; background: linear-gradient(135deg, var(--gold2), #6a4a1a); display: flex; align-items: center; justify-content: center; font-size: 10px; font-weight: 700; color: #0e0c08; flex-shrink: 0; }
.sb-uname { font-size: 12px; font-weight: 600; color: #fff; }
.sb-urole { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--subtle); }
.sb-logout { display: flex; align-items: center; gap: 6px; padding: 7px 8px; border-radius: var(--r2); color: #f0a0a0; font-size: 12px; font-weight: 500; border: none; background: none; width: 100%; margin-top: 6px; cursor: pointer; }
.sb-logout:hover { background: var(--red-a); }
.main { margin-left: var(--sb); flex: 1; display: flex; flex-direction: column; min-width: 0; }
.topbar { background: var(--surface); border-bottom: 1px solid var(--line); min-height: 48px; display: flex; align-items: center; padding: 0 22px; gap: 12px; position: sticky; top: 0; z-index: 20; box-shadow: 0 1px 0 rgba(0, 0, 0, 0.04); }
.tb-title { font-size: 15px; font-weight: 600; flex: 1; color: var(--ink2); }
.tb-dot { width: 6px; height: 6px; border-radius: 50%; background: var(--green); animation: admb 2s infinite; }
@keyframes admb { 0%, 100% { opacity: 1; } 50% { opacity: 0.3; } }
.tb-status { font-size: 11px; font-family: "Fira Code", ui-monospace, monospace; color: var(--green); font-weight: 500; }
.tb-time { font-size: 11px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); }
.content { padding: 22px; flex: 1; }
.ph { display: flex; align-items: flex-start; justify-content: space-between; margin-bottom: 20px; gap: 12px; }
.ph-h { font-size: 20px; font-weight: 700; letter-spacing: -0.025em; color: var(--ink); }
.ph-s { font-size: 11px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); margin-top: 3px; }
.ph-r { display: flex; gap: 8px; flex-shrink: 0; flex-wrap: wrap; }
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 5px; padding: 7px 14px; border-radius: var(--r2); font-size: 12px; font-weight: 600; font-family: "Instrument Sans", system-ui, sans-serif; cursor: pointer; border: none; transition: opacity 0.12s; }
.btn:hover { opacity: 0.9; }
.btn-gold { background: var(--gold); color: #fff; }
.btn-primary { background: var(--gold); color: #fff; }
.btn-ghost { background: var(--surface2); color: var(--ink2); border: 1px solid var(--line); }
.btn-danger { background: var(--red-bg); color: var(--red); border: 1px solid rgba(138, 40, 32, 0.25); }
.btn-sm { padding: 5px 10px; font-size: 11px; }
.btn-xs { padding: 3px 8px; font-size: 10px; }
.stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 12px; margin-bottom: 18px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 15px 17px; box-shadow: var(--shadow); }
.stat-l { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; margin-bottom: 7px; }
.stat-v { font-size: 24px; font-weight: 700; letter-spacing: -0.03em; line-height: 1; margin-bottom: 4px; color: var(--ink); }
.stat-m { font-size: 11px; color: var(--muted); }
.stat-m.up { color: var(--green); }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; margin-bottom: 14px; box-shadow: var(--shadow); }
.ch { padding: 13px 17px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.ct { font-size: 13px; font-weight: 600; color: var(--ink2); }
.cs { font-size: 11px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); }
.cb { padding: 17px; }
.tbl, .data-table { width: 100%; border-collapse: collapse; }
.tbl thead th, .data-table thead th { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; text-align: left; padding: 9px 15px; background: var(--surface2); border-bottom: 1px solid var(--line); font-weight: 500; }
.tbl tbody td, .data-table tbody td { padding: 11px 15px; border-bottom: 1px solid var(--line); font-size: 13px; vertical-align: middle; color: var(--ink2); }
.tbl tbody tr:last-child td, .data-table tbody tr:last-child td { border-bottom: none; }
.tbl tbody tr:hover, .data-table tbody tr:hover { background: rgba(0, 0, 0, 0.03); }
.t { display: inline-flex; align-items: center; gap: 3px; padding: 2px 7px; border-radius: 4px; font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; font-weight: 500; }
.t::before { content: ""; width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.t-g { background: var(--green-bg); color: var(--green); }
.t-r { background: var(--red-bg); color: var(--red); }
.t-o { background: var(--gold-bg); color: var(--amber); }
.t-b { background: var(--blue-bg); color: var(--blue); }
.t-a { background: var(--amber-bg); color: var(--amber); }
.t-n { background: var(--surface2); color: var(--muted); }
.t-n::before { display: none; }
.inp { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r2); padding: 8px 11px; font-size: 13px; color: var(--ink2); outline: none; width: 100%; transition: border-color 0.12s, box-shadow 0.12s; }
.inp:focus { border-color: var(--gold2); box-shadow: 0 0 0 2px var(--gold-a); }
.inp::placeholder { color: var(--subtle); }
select.inp { cursor: pointer; }
.g2 { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; }
.g3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 14px; }
@media (max-width: 900px) { .g2, .g3 { grid-template-columns: 1fr; } }
.muted { color: var(--muted); font-size: 0.9rem; }
.hud-tabs { display: flex; gap: 4px; margin-bottom: 20px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 4px; width: fit-content; max-width: 100%; flex-wrap: wrap; box-shadow: var(--shadow); }
.hud-tab { display: inline-flex; align-items: center; justify-content: center; padding: 7px 18px; border-radius: 6px; font-size: 13px; font-weight: 500; color: var(--muted); border: none; background: none; cursor: pointer; }
.hud-tab:hover { color: var(--ink2); }
a.hud-tab { text-decoration: none; }
a.hud-tab.on, .hud-tab.on { background: var(--surface2); color: var(--ink2); border: 1px solid var(--line); }
.hud-panel { display: none; }
.hud-panel.on { display: block; animation: adup 0.18s ease; }
@keyframes adup { from { opacity: 0; transform: translateY(4px); } to { opacity: 1; transform: none; } }
.cat-manager { display: grid; grid-template-columns: minmax(220px, 300px) 1fr; gap: 16px; min-height: 400px; }
@media (max-width: 960px) { .cat-manager { grid-template-columns: 1fr; } }
.cat-list-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); display: flex; flex-direction: column; max-height: 70vh; box-shadow: var(--shadow); }
.cat-list-head { padding: 12px 15px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; }
.cat-list-scroll { overflow-y: auto; flex: 1; }
.cat-list-item { display: flex; align-items: center; gap: 10px; padding: 11px 14px; border-bottom: 1px solid var(--line); transition: background 0.1s; }
.cat-list-item:last-child { border-bottom: none; }
a.cat-list-item { color: inherit; text-decoration: none; }
.cat-list-item:hover { background: var(--surface2); }
.cat-list-item.on { background: var(--gold-bg); border-left: 2px solid var(--gold); }
.ci-name { font-size: 13px; font-weight: 500; flex: 1; }
.ci-count { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); }
.cat-add-row { padding: 10px 14px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; }
.edit-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: hidden; box-shadow: var(--shadow); }
.edit-card-head { padding: 12px 16px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px; }
.edit-card-title { font-size: 13px; font-weight: 600; }
.edit-card-id { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); }
.edit-card-body { padding: 16px; }
.field { margin-bottom: 13px; }
.fl { font-size: 11px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); margin-bottom: 5px; }
.field-row { display: grid; grid-template-columns: 1fr 100px; gap: 10px; }
.save-row { display: flex; gap: 8px; align-items: center; margin-top: 14px; flex-wrap: wrap; }
.sub-list { border-top: 1px solid var(--line); }
.sub-item { display: flex; align-items: center; gap: 10px; padding: 10px 16px; border-bottom: 1px solid var(--line); flex-wrap: wrap; }
.sub-item:last-child { border-bottom: none; }
.sub-name-inp { background: transparent; border: 1px solid transparent; font-size: 13px; color: var(--ink2); flex: 1; min-width: 120px; padding: 4px 8px; border-radius: 3px; }
.sub-name-inp:focus { background: var(--surface2); border-color: var(--line); outline: none; }
.sub-sort-inp { width: 64px; background: var(--surface2); border: 1px solid var(--line); border-radius: 4px; padding: 4px 8px; font-size: 12px; font-family: "Fira Code", ui-monospace, monospace; text-align: center; }
.sub-actions { display: flex; gap: 4px; margin-left: auto; }
.sub-add-row { padding: 10px 16px; border-top: 1px solid var(--line); display: flex; gap: 8px; flex-wrap: wrap; align-items: center; background: var(--surface2); }
.dest-layout { display: grid; grid-template-columns: minmax(200px, 260px) 1fr; gap: 16px; }
@media (max-width: 960px) { .dest-layout { grid-template-columns: 1fr; } }
.dest-filter-panel { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); height: fit-content; position: sticky; top: 58px; max-height: 75vh; overflow: auto; box-shadow: var(--shadow); }
.dest-filter-head { padding: 12px 15px; border-bottom: 1px solid var(--line); }
.dest-cat-tree { padding: 8px; }
.dct-cat { border-radius: var(--r2); margin-bottom: 2px; }
.dct-cat-row, a.dct-cat-row { display: flex; align-items: center; gap: 7px; padding: 7px 8px; border-radius: var(--r2); font-size: 12px; font-weight: 500; color: var(--muted); text-decoration: none; }
a.dct-cat-row { cursor: pointer; }
.dct-cat-row:hover, a.dct-cat-row:hover { background: var(--surface2); color: var(--ink2); text-decoration: none; }
.dct-cat-row.on, a.dct-cat-row.on { background: var(--gold-bg); color: var(--amber); }
.dct-arrow { font-size: 8px; color: var(--muted); transition: transform 0.13s; }
.dct-arrow.open { transform: rotate(90deg); }
.dct-subs { display: none; padding-left: 12px; }
.dct-subs.open { display: block; }
.dct-sub, a.dct-sub { display: flex; align-items: center; gap: 6px; padding: 5px 8px; border-radius: var(--r2); font-size: 12px; color: var(--muted); text-decoration: none; }
a.dct-sub:hover { background: var(--surface2); color: var(--ink2); }
.dct-sub.on, a.dct-sub.on { color: var(--gold); }
.dct-sub-dot { width: 4px; height: 4px; border-radius: 50%; background: currentColor; }
.dct-sub-name { flex: 1; }
.dct-sub-count { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; }
.dest-toolbar { display: flex; gap: 8px; margin-bottom: 14px; align-items: center; flex-wrap: wrap; }
.dest-bc { font-size: 12px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); margin-bottom: 0; }
.dest-bc span { color: var(--amber); }
.dest-tbl-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); overflow: auto; box-shadow: var(--shadow); }
.dest-tbl { width: 100%; border-collapse: collapse; }
.dest-tbl thead th { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); text-transform: uppercase; letter-spacing: 0.07em; text-align: left; padding: 9px 14px; background: var(--surface2); border-bottom: 1px solid var(--line); }
.dest-tbl tbody td { padding: 10px 14px; border-bottom: 1px solid var(--line); font-size: 12px; vertical-align: top; color: var(--ink2); }
.dest-tbl tbody tr:hover { background: rgba(0, 0, 0, 0.03); }
.dest-name { font-size: 13px; font-weight: 500; }
.dest-url { font-size: 10px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); max-width: 280px; word-break: break-all; }
.dest-row-actions { display: flex; gap: 4px; flex-wrap: wrap; }
.dest-tbl .row-edit td { background: var(--surface2); vertical-align: top; }
.dest-add-form { display: none; background: var(--surface2); border: 1px solid var(--line); border-radius: var(--r); padding: 14px; margin-bottom: 14px; }
.dest-add-form.open { display: block; }
.daf-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; margin-bottom: 12px; }
.daf-grid-3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 10px; margin-bottom: 12px; }
@media (max-width: 800px) { .daf-grid, .daf-grid-3 { grid-template-columns: 1fr; } }
.tele-row { display: flex; align-items: center; gap: 10px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.tele-row:last-child { border-bottom: none; }
.tele-name { font-size: 13px; flex: 1; min-width: 0; }
.tele-bar-wrap { width: 140px; max-width: 40%; height: 4px; background: var(--s3); border-radius: 2px; overflow: hidden; }
.tele-bar-fill { height: 100%; border-radius: 2px; background: var(--gold2); transition: width 0.4s; }
.tele-val { font-size: 12px; font-family: "Fira Code", ui-monospace, monospace; color: var(--muted); width: 56px; text-align: right; flex-shrink: 0; }
.empty { text-align: center; padding: 40px; color: var(--muted); }
.alert { padding: 10px 14px; border-radius: var(--r2); margin-bottom: 16px; font-size: 13px; }
.alert-error { background: var(--red-bg); border: 1px solid rgba(138, 40, 32, 0.25); color: var(--red); }
.alert-ok { background: var(--green-bg); border: 1px solid rgba(42, 122, 72, 0.3); color: #1d5a33; }
.chart-box { background: var(--surface); border: 1px solid var(--line); border-radius: var(--r); padding: 1rem; box-shadow: var(--shadow); }
.chart-box h2 { margin: 0 0 0.75rem; font-size: 0.95rem; color: var(--ink2); font-weight: 600; }
.charts-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1.5rem; }
.chart-wide { grid-column: span 2; }
@media (max-width: 900px) { .charts-grid { grid-template-columns: 1fr; } .chart-wide { grid-column: span 1; } }
.pager { margin-top: 1rem; display: flex; gap: 0.35rem; flex-wrap: wrap; align-items: center; }
.pager a { color: var(--gold2); }
::-webkit-scrollbar { width: 4px; height: 4px; }
::-webkit-scrollbar-thumb { background: var(--subtle); border-radius: 2px; }
/* login (standalone) */
body.login-standalone { min-height: 100vh; display: flex; align-items: center; justify-content: center; background: var(--pg-bg); padding: 1rem; color: var(--ink2); }
body.login-standalone .login-card { background: var(--surface); border: 1px solid var(--line); border-radius: 12px; padding: 2rem; width: 360px; max-width: 100%; box-shadow: var(--shadow2); }
body.login-standalone .login-card h1 { margin-top: 0; color: var(--gold); font-family: "Instrument Serif", Georgia, serif; }
body.login-standalone .stack label { display: flex; flex-direction: column; gap: 0.25rem; margin-bottom: 0.75rem; font-size: 0.9rem; }
body.login-standalone .stack input { background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); padding: 0.5rem 0.65rem; border-radius: var(--r2); }
body.login-standalone .btn { width: 100%; margin-top: 0.5rem; justify-content: center; }
body.login-standalone .btn.btn-primary, body.login-standalone .btn-primary { width: 100%; margin-top: 0.5rem; padding: 0.55rem 1rem; }

/* Staff program (moved from app.css, mock-aligned) */
body.admin-app .staff-page-head h1 { margin: 0; font-size: 1.35rem; font-weight: 700; color: var(--ink); letter-spacing: -0.02em; }
body.admin-app .staff-sub { color: var(--muted); }
body.admin-app .staff-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0;
  margin: 1.5rem 0 0;
  padding: 0;
  border-bottom: 1px solid var(--line);
  gap: 0.15rem 0.25rem;
}
body.admin-app .staff-tab {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  padding: 0.55rem 0.9rem 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  border: none;
  border-bottom: 2px solid transparent;
  background: none;
  margin-bottom: -1px;
  text-decoration: none;
  font-weight: 500;
  border-radius: var(--r2) var(--r2) 0 0;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
body.admin-app .staff-tab:hover { color: var(--ink2); background: var(--gold-bg); text-decoration: none; }
body.admin-app .staff-tab-active {
  color: var(--ink2);
  font-weight: 600;
  border-bottom-color: var(--gold);
  background: var(--surface);
  box-shadow: 0 -1px 0 var(--line);
}
body.admin-app .staff-tab-count {
  font-size: 0.7rem;
  font-family: "Fira Code", ui-monospace, monospace;
  min-width: 1.1rem;
  padding: 0.1rem 0.35rem;
  border-radius: 999px;
  background: var(--amber-bg);
  color: var(--amber);
  font-weight: 600;
  line-height: 1.2;
}
body.admin-app .staff-tab .staff-tab-count:empty { display: none; }
body.admin-app .staff-panel { margin-top: 1.35rem; }
body.admin-app .staff-panel-title { margin: 0 0 0.6rem; font-size: 1.05rem; font-weight: 600; color: var(--ink2); }
body.admin-app .staff-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(160px, 1fr));
  gap: 0.85rem;
  margin-bottom: 1.25rem;
}
body.admin-app .staff-stat {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.9rem 1rem;
  box-shadow: var(--shadow);
}
body.admin-app .staff-stat-label { font-size: 0.72rem; color: var(--muted); text-transform: uppercase; letter-spacing: 0.06em; font-weight: 600; }
body.admin-app .staff-stat-value { font-size: 1.35rem; font-weight: 700; margin-top: 0.3rem; line-height: 1.2; color: var(--ink); }
body.admin-app .staff-stat-denom { font-size: 0.95rem; font-weight: 500; color: var(--muted); }
body.admin-app .staff-stat-meta { font-size: 0.78rem; color: var(--muted); margin-top: 0.3rem; }
body.admin-app .staff-rules-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.25rem;
  margin-bottom: 1.5rem;
  box-shadow: var(--shadow);
}
body.admin-app .staff-rules-card h3 { margin: 0 0 0.65rem; font-size: 1rem; color: var(--ink2); }
body.admin-app .staff-rules-list { margin: 0; padding-left: 1.15rem; line-height: 1.7; }
body.admin-app .text-bright { color: var(--ink2); font-weight: 600; }
body.admin-app .staff-inline-btn { margin-top: 0.75rem; display: inline-block; }
body.admin-app .staff-split { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; }
@media (max-width: 900px) { body.admin-app .staff-split { grid-template-columns: 1fr; } }
body.admin-app .staff-mini {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.85rem;
  min-width: 0;
  box-shadow: var(--shadow);
}
body.admin-app .staff-mini-head { display: flex; align-items: baseline; justify-content: space-between; gap: 0.5rem; margin-bottom: 0.65rem; }
body.admin-app .staff-mini-head h3 { margin: 0; font-size: 0.95rem; color: var(--ink2); }
body.admin-app .staff-link-all { font-size: 0.85rem; color: var(--gold2); }
body.admin-app .data-table-compact th,
body.admin-app .data-table-compact td { padding: 0.4rem 0.45rem; font-size: 0.82rem; }
body.admin-app .staff-attendance-days { display: flex; flex-direction: column; gap: 1.25rem; }
body.admin-app .staff-attendance-day {
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface);
  overflow: hidden;
}
body.admin-app .staff-attendance-day-head {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  justify-content: space-between;
  gap: 0.5rem 1rem;
  padding: 0.65rem 0.85rem;
  border-bottom: 1px solid var(--line);
  background: var(--surface2, rgba(255,255,255,0.02));
}
body.admin-app .staff-attendance-day-title { margin: 0; font-size: 0.95rem; color: var(--ink2); }
body.admin-app .staff-attendance-day-summary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem 0.75rem;
  font-size: 0.78rem;
  align-items: center;
}
body.admin-app .att-st-pill {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  font-size: 0.72rem;
  font-weight: 600;
  letter-spacing: 0.01em;
  line-height: 1.35;
}
body.admin-app .att-st-complete { background: rgba(34, 197, 94, 0.18); color: #15803d; }
body.admin-app .att-st-partial { background: rgba(234, 179, 8, 0.2); color: #a16207; }
body.admin-app .att-st-missed { background: rgba(239, 68, 68, 0.18); color: #b91c1c; }
body.admin-app .att-st-pending { background: rgba(148, 163, 184, 0.22); color: #475569; }
body.admin-app .att-st-other { background: rgba(148, 163, 184, 0.15); color: var(--muted); }
body.admin-app .staff-attendance-table { margin: 0; }
body.admin-app .staff-attendance-filters { display: flex; flex-wrap: wrap; gap: 0.65rem 1rem; align-items: flex-end; }
body.admin-app .table-scroll { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -0.15rem; }
body.admin-app .cell-clip {
  max-width: 14rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
body.admin-app .mono.cell-clip { word-break: normal; }
body.admin-app .nowrap { white-space: nowrap; }
body.admin-app .staff-range { margin: 0 0 0.75rem; font-size: 0.9rem; }
body.admin-app .staff-two-col { display: grid; grid-template-columns: repeat(2, 1fr); gap: 1rem; margin-bottom: 1rem; }

body.admin-app .staff-slot-month-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  flex-wrap: wrap;
  margin-bottom: 0.75rem;
}
body.admin-app .staff-slot-month-head .staff-slot-month-head-text {
  flex: 1;
  min-width: min(100%, 14rem);
}
body.admin-app .staff-slot-month-head .staff-slot-month-head-text .staff-card-title {
  margin: 0 0 0.35rem;
}
body.admin-app .staff-slot-month-head .staff-slot-month-head-actions {
  flex-shrink: 0;
  align-self: flex-start;
}
@media (max-width: 960px) { body.admin-app .staff-two-col { grid-template-columns: 1fr; } }
body.admin-app .staff-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 1rem 1.15rem;
  min-width: 0;
  box-shadow: var(--shadow);
}
body.admin-app .staff-card-wide { margin-top: 0; }
body.admin-app .staff-card-title { margin: 0 0 0.35rem; font-size: 1rem; color: var(--ink2); }
body.admin-app .staff-card-desc { margin: 0 0 0.85rem; color: var(--muted); }
body.admin-app .staff-inline-form { display: flex; flex-wrap: wrap; align-items: center; gap: 0.35rem; }
body.admin-app .staff-input-tiny { width: 4.5rem; background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); border-radius: 6px; padding: 0.2rem 0.35rem; font-size: 0.85rem; }
body.admin-app .staff-input-note { width: 6.5rem; background: var(--surface2); border: 1px solid var(--line); color: var(--ink2); border-radius: 6px; padding: 0.2rem 0.35rem; font-size: 0.85rem; }
body.admin-app .staff-badge {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 6px;
  font-size: 0.75rem;
  font-weight: 500;
}
body.admin-app .staff-badge-ok { background: var(--green-bg); color: #1d5a33; }
body.admin-app .staff-badge-off { background: var(--red-bg); color: #8a2820; }
body.admin-app .staff-badge-muted { background: var(--surface2); color: var(--ink3); border: 1px solid var(--line); }
body.admin-app .staff-amt-pos { color: #1d5a33; font-weight: 500; }
body.admin-app .staff-amt-neg { color: var(--red); font-weight: 500; }
body.admin-app .staff-toolbar { margin-bottom: 0.85rem; }
body.admin-app .staff-reset-form {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.65rem;
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.75rem 1rem;
}
body.admin-app .staff-reset-label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.85rem; }
body.admin-app .staff-reset-label input {
  width: 5rem;
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink2);
  border-radius: 6px;
  padding: 0.35rem;
}
body.admin-app .staff-pager { margin-top: 0.85rem; }
body.admin-app .staff-payout-pending { background: var(--amber-bg); color: #6a3d08; }
body.admin-app .staff-payout-processing { background: var(--blue-bg); color: #204880; }
body.admin-app .staff-payout-completed { background: var(--green-bg); color: #1d5a33; }
body.admin-app .staff-payout-failed { background: var(--red-bg); color: #8a2820; }
body.admin-app .staff-payout-unknown { background: var(--surface2); color: var(--muted); }
body.admin-app .staff-stack label { display: flex; flex-direction: column; gap: 0.3rem; margin-bottom: 0.75rem; font-size: 0.9rem; color: var(--ink2); }
body.admin-app .staff-stack input,
body.admin-app .staff-stack textarea,
body.admin-app .staff-stack select { font: inherit; }
body.admin-app .staff-stack .inp,
body.admin-app .staff-stack input[type="text"],
body.admin-app .staff-stack input[type="number"],
body.admin-app .staff-stack input[type="password"],
body.admin-app .staff-stack textarea { background: var(--surface); border: 1px solid var(--line); color: var(--ink2); padding: 0.45rem 0.5rem; border-radius: var(--r2); }
body.admin-app .staff-filters { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: flex-end; margin-bottom: 1rem; }
body.admin-app .staff-filters label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.8rem; color: var(--muted); }
body.admin-app .staff-filters select,
body.admin-app .staff-filters input { min-width: 8rem; }
body.admin-app .staff-banner { padding: 0.75rem 1rem; border-radius: var(--r2); background: var(--amber-bg); border: 1px solid var(--amber-a); color: #6a3d08; margin-bottom: 1rem; font-size: 0.9rem; }
body.admin-app .staff-analytics-stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 0.75rem; margin-bottom: 1.15rem; }
body.admin-app .staff-analytics-stats .stat { margin-bottom: 0; }
/* Staff schedule calendar (UTC, V1) */
body.admin-app .sched-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  margin-bottom: 1rem;
}
body.admin-app .sched-nav { display: inline-flex; align-items: center; gap: 0.35rem; flex-wrap: wrap; }
body.admin-app .sched-title { font-size: 1.1rem; font-weight: 700; color: var(--ink); min-width: 0; }
body.admin-app .sched-sub { font-size: 0.8rem; color: var(--muted); margin: 0 0 0.75rem; }
body.admin-app .sched-view-toggle { display: inline-flex; border: 1px solid var(--line); border-radius: var(--r2); overflow: hidden; }
body.admin-app .sched-view-toggle a {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  text-decoration: none;
  color: var(--muted);
  background: var(--surface2);
}
body.admin-app .sched-view-toggle a.on { background: var(--gold-bg); color: var(--ink2); font-weight: 600; }
body.admin-app .sched-view-toggle.staff-sched-layout-toggle button {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface2);
  border: none;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
}
body.admin-app .sched-view-toggle.staff-sched-layout-toggle button.on {
  background: var(--gold-bg);
  color: var(--ink2);
  font-weight: 600;
}
body.admin-app .cal-wrap { border: 1px solid var(--line); border-radius: var(--r); overflow: auto; background: var(--surface); box-shadow: var(--shadow); }
body.admin-app .cal-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); min-width: 720px; }
body.admin-app .cal-dow {
  font-size: 0.7rem;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
  padding: 0.4rem 0.35rem;
  background: var(--surface2);
  border-bottom: 1px solid var(--line);
  text-align: center;
  font-weight: 600;
}
body.admin-app .cal-cell {
  min-height: 5.5rem;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 0.25rem 0.3rem 0.35rem;
  font-size: 0.75rem;
  vertical-align: top;
  background: var(--surface);
}
body.admin-app .cal-cell:nth-child(7n) { border-right: none; }
body.admin-app .cal-cell.muted { background: var(--surface2); color: var(--subtle); }
body.admin-app .cal-cell.is-today { box-shadow: inset 0 0 0 2px var(--gold2); }
body.admin-app .cal-dayn { font-weight: 600; color: var(--ink2); margin-bottom: 0.2rem; }
body.admin-app .cal-cell.muted .cal-dayn { color: var(--subtle); }
body.admin-app .cal-dayn-slot-trigger {
  cursor: pointer;
  border-radius: 4px;
  display: inline-block;
  padding: 0.05rem 0.28rem;
  margin: -0.05rem -0.28rem 0.15rem;
}
body.admin-app .cal-dayn-slot-trigger:hover {
  background: var(--surface2);
}
body.admin-app .cal-dayn-slot-trigger:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 1px;
}
body.admin-app .cal-slot-chip {
  cursor: pointer;
}
body.admin-app .cal-slot-chip:focus-visible {
  outline: 2px solid var(--gold2);
  outline-offset: 1px;
}
body.admin-app .staff-slot-bulk-bar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem 0.75rem;
  padding: 0.35rem 0 0.65rem;
}
body.admin-app .staff-slot-bulk-assign {
  display: flex;
  align-items: center;
  gap: 0.35rem;
}
/* Classic schedule — filter + bulk toolbar (Slots this month) */
body.admin-app .staff-slot-toolbar-row {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 1rem 1.5rem;
  padding: 0.5rem 0 0.65rem;
  margin-bottom: 0.15rem;
  border-bottom: 1px solid var(--line);
  align-items: stretch;
}
body.admin-app .staff-slot-filter-box,
body.admin-app .staff-slot-bulk-panel {
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 0.55rem;
  padding: 0.7rem 0.95rem;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--surface2);
}
body.admin-app .staff-slot-toolbar-title {
  margin: 0;
  padding-bottom: 0.4rem;
  border-bottom: 1px solid var(--line);
  font-size: 0.72rem;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  color: var(--muted);
}
body.admin-app .staff-slot-filter-form {
  display: grid;
  grid-template-columns: repeat(2, minmax(11rem, 1fr));
  gap: 0.75rem 1.25rem;
  align-items: end;
  margin: 0;
}
body.admin-app .staff-slot-filter-field {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin: 0;
  font-size: 0.8rem;
  color: var(--muted);
}
body.admin-app .staff-slot-filter-select {
  width: 100%;
  min-width: 0;
}
body.admin-app .staff-slot-filter-actions {
  grid-column: 1 / -1;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem 0.85rem;
  padding-top: 0.2rem;
}
body.admin-app .staff-slots-bulk-form.staff-slot-bulk-form-block {
  margin: 0;
  display: flex;
  flex-direction: column;
  flex: 1;
  min-height: 0;
}
body.admin-app .staff-slot-bulk-bar.staff-slot-bulk-bar-panel {
  padding: 0;
  flex: 1;
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.75rem 1.15rem;
  justify-content: flex-start;
}
body.admin-app .staff-slot-bulk-bar-panel .staff-slot-bulk-assign {
  flex: 1 1 14rem;
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.45rem 0.65rem;
  margin: 0;
}
body.admin-app .staff-slot-bulk-assign-lbl {
  flex: 0 0 auto;
  white-space: normal;
  max-width: 12rem;
  line-height: 1.3;
}
body.admin-app .staff-slot-bulk-assign-select {
  flex: 1 1 12rem;
  min-width: 11rem;
  max-width: 24rem;
}
body.admin-app .admin-avail-range-list {
  margin: 0;
  padding-left: 1.15rem;
  font-size: 0.9rem;
  line-height: 1.45;
  max-width: 24rem;
}
body.admin-app .admin-avail-range-list li {
  margin: 0.12rem 0;
}
@media (max-width: 960px) {
  body.admin-app .staff-slot-toolbar-row {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 520px) {
  body.admin-app .staff-slot-filter-form {
    grid-template-columns: 1fr;
  }
}
body.admin-app .slot-cal-dl {
  display: grid;
  grid-template-columns: 6rem 1fr;
  gap: 0.25rem 0.75rem;
  margin: 0;
  font-size: 0.88rem;
}
body.admin-app .slot-cal-dl dt {
  margin: 0;
}
body.admin-app .slot-cal-dl dd {
  margin: 0;
}
body.admin-app .staff-slot-cal-modal-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

/* Slot calendar modal (#modal-slot-cal) */
body.admin-app #modal-slot-cal .modal-box-slot-cal {
  max-width: 34rem;
  max-height: 92vh;
  overflow-y: auto;
}
body.admin-app #modal-slot-cal .slot-cal-dl dd {
  word-break: break-word;
}
body.admin-app #modal-slot-cal .slot-cal-actions {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
  margin-top: 1rem;
  padding-top: 1rem;
  border-top: 1px solid var(--line);
}
body.admin-app #modal-slot-cal .slot-cal-actions-primary {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.admin-app #modal-slot-cal .slot-cal-danger-zone {
  padding: 0.8rem 0.9rem;
  border-radius: 10px;
  border: 1px solid rgba(160, 55, 55, 0.22);
  background: linear-gradient(180deg, rgba(160, 55, 55, 0.05) 0%, rgba(160, 55, 55, 0.02) 100%);
}
body.admin-app #modal-slot-cal .slot-cal-danger-zone-compact {
  padding: 0.65rem 0.75rem;
}
body.admin-app #modal-slot-cal .slot-cal-danger-head {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin-bottom: 0.65rem;
}
body.admin-app #modal-slot-cal .slot-cal-danger-title {
  font-size: 0.82rem;
  font-weight: 650;
  color: #8b3030;
  letter-spacing: 0.01em;
}
body.admin-app #modal-slot-cal .slot-cal-danger-hint {
  font-size: 0.76rem;
  line-height: 1.35;
}
body.admin-app #modal-slot-cal .slot-cal-delete-btn {
  width: 100%;
  margin-top: 0.15rem;
}
body.admin-app #modal-slot-cal .slot-scope-panel {
  border: none;
  padding: 0;
  margin: 0 0 0.65rem;
  min-width: 0;
}
body.admin-app #modal-slot-cal .slot-scope-panel-edit {
  margin: 0 0 0.85rem;
  padding: 0.75rem 0.85rem;
  border-radius: 10px;
  border: 1px solid var(--line);
  background: var(--gold-bg);
}
body.admin-app #modal-slot-cal .slot-scope-legend {
  display: block;
  width: 100%;
  margin: 0 0 0.55rem;
  padding: 0;
  font-size: 0.78rem;
  font-weight: 650;
  color: var(--muted);
  letter-spacing: 0.02em;
  text-transform: uppercase;
}
body.admin-app #modal-slot-cal .slot-scope-seg {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 0.5rem;
}
@media (max-width: 420px) {
  body.admin-app #modal-slot-cal .slot-scope-seg {
    grid-template-columns: 1fr;
  }
}
body.admin-app #modal-slot-cal .slot-scope-opt {
  position: relative;
  display: block;
  margin: 0;
  cursor: pointer;
  font-weight: normal;
}
body.admin-app #modal-slot-cal .slot-scope-opt input[type="radio"] {
  position: absolute;
  opacity: 0;
  width: 0;
  height: 0;
  margin: 0;
  pointer-events: none;
}
body.admin-app #modal-slot-cal .slot-scope-opt-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  height: 100%;
  min-height: 3.35rem;
  padding: 0.6rem 0.7rem;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--surface);
  box-shadow: var(--shadow);
  transition: border-color 0.12s ease, background 0.12s ease, box-shadow 0.12s ease;
}
body.admin-app #modal-slot-cal .slot-scope-opt:hover .slot-scope-opt-body {
  border-color: rgba(160, 120, 40, 0.45);
}
body.admin-app #modal-slot-cal .slot-scope-opt input:checked + .slot-scope-opt-body {
  border-color: var(--gold);
  background: #fff;
  box-shadow: 0 0 0 1px var(--gold), 0 2px 8px rgba(0, 0, 0, 0.06);
}
body.admin-app #modal-slot-cal .slot-scope-opt-title {
  font-size: 0.84rem;
  font-weight: 650;
  color: var(--ink2);
  line-height: 1.25;
}
body.admin-app #modal-slot-cal .slot-scope-opt-desc {
  font-size: 0.72rem;
  color: var(--muted);
  line-height: 1.35;
}
body.admin-app #modal-slot-cal .slot-cal-secondary-zone {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px dashed var(--line);
}
body.admin-app #modal-slot-cal .slot-cal-force-open-btn {
  width: 100%;
}
body.admin-app #modal-slot-cal .slot-cal-force-open-hint {
  margin: 0.4rem 0 0;
  font-size: 0.74rem;
  line-height: 1.35;
}
body.admin-app #modal-slot-cal .slot-cal-edit-footer {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  margin-top: 0.65rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}
body.admin-app #modal-slot-cal .slot-cal-edit-footer-main {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  align-items: center;
}
body.admin-app #modal-slot-cal .slot-cal-fieldset .slot-cal-rec-seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.85rem;
}
body.admin-app #modal-slot-cal label.slot-rec-opt {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: normal;
  font-size: 0.88rem;
  white-space: nowrap;
}
body.admin-app #modal-slot-cal .slot-scope-opt input:focus-visible + .slot-scope-opt-body {
  outline: 2px solid var(--gold);
  outline-offset: 2px;
}
body.admin-app #modal-slot-cal .staff-slot-assign-wrap,
body.admin-app #modal-slot-cal .staff-slot-cal-settlement {
  margin-top: 0.85rem;
  padding-top: 0.85rem;
  border-top: 1px solid var(--line);
}

body.admin-app .shift-chip {
  display: block;
  width: 100%;
  text-align: left;
  border: none;
  border-radius: 4px;
  padding: 0.15rem 0.3rem;
  margin-bottom: 0.15rem;
  font-size: 0.68rem;
  line-height: 1.25;
  cursor: default;
  color: #fff;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-family: "Instrument Sans", system-ui, sans-serif;
}
body.admin-app .shift-host { background: #6a4a8a; }
body.admin-app .shift-dj { background: #204880; }
body.admin-app .shift-live_performer { background: #6b3880; }
body.admin-app .shift-dancer { background: #2a5a3a; }
body.admin-app .shift-manager { background: #6a3d08; }
body.admin-app .shift-sirens { background: #6a2a3a; }
body.admin-app .shift-staff { background: #48483e; }
body.admin-app .shift-fallback { background: #a07828; }
body.admin-app .shift-slot-open {
  border: 2px dashed rgba(98, 124, 214, 0.55);
  color: #111 !important;
}
body.admin-app .shift-slot-filled-series,
body.admin-app .shift-slot-claimed {
  border: none !important;
  color: #fff !important;
}
body.admin-app .shift-slot-filled-series.cal-slot-chip,
body.admin-app .shift-slot-claimed.cal-slot-chip {
  cursor: pointer;
}
body.admin-app .shift-slot-override {
  box-shadow: inset 0 0 0 2px rgba(255, 193, 7, 0.85) !important;
}
body.admin-app .shift-slot-override.cal-slot-chip {
  cursor: pointer;
}
body.admin-app .shift-slot-pending-conf.cal-slot-chip {
  box-shadow: inset 0 0 0 2px rgba(255, 120, 80, 0.55);
}
body.admin-app .shift-slot-confirmed-ok.cal-slot-chip {
  opacity: 0.92;
}
body.admin-app .shift-chip-slot-fill {
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.35);
}
body.admin-app .cal-more { font-size: 0.65rem; color: var(--muted); margin-top: 0.1rem; }
body.admin-app .cal-more-slots {
  cursor: pointer;
  text-decoration: underline;
  text-decoration-style: dotted;
  text-underline-offset: 2px;
  position: relative;
  z-index: 3;
  padding: 0.12rem 0;
}
body.admin-app .cal-more-slots:hover,
body.admin-app .cal-more-slots:focus-visible {
  color: var(--gold2);
  outline: none;
}
body.admin-app .cal-day-slots-modal-box {
  max-width: 42rem;
  max-height: 88vh;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
body.admin-app .cal-day-slots-modal-body {
  overflow-y: auto;
  flex: 1;
  min-height: 0;
}
body.admin-app .cal-day-slots-sub {
  margin: 0 0 0.75rem;
  font-size: 0.82rem;
}
body.admin-app .cal-day-slots-list {
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
}
body.admin-app .cal-day-slots-section-h {
  margin: 0.35rem 0 0.15rem;
  padding-top: 0.35rem;
  font-size: 0.7rem;
  font-weight: 700;
  letter-spacing: 0.07em;
  text-transform: uppercase;
  color: var(--muted);
  border-top: 1px solid var(--line);
}
body.admin-app .cal-day-slots-section-h:first-child {
  margin-top: 0;
  padding-top: 0;
  border-top: none;
}
body.admin-app .cal-day-slot-card {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  width: auto;
  text-align: left;
  cursor: default;
  border-radius: var(--r2);
  padding: 0.65rem 0.75rem;
  margin: 0;
  white-space: normal;
  font-size: 0.8rem;
  line-height: 1.35;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}
body.admin-app .cal-day-slot-card-head {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.5rem;
}
body.admin-app .cal-day-slot-status-badge {
  display: inline-block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  padding: 0.12rem 0.42rem;
  border-radius: 999px;
  line-height: 1.2;
}
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-status-badge,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-status-badge {
  background: rgba(255, 255, 255, 0.2);
  color: #fff;
}
body.admin-app .cal-day-slot-card.shift-slot-open .cal-day-slot-status-badge {
  background: rgba(0, 0, 0, 0.08);
  color: #111;
}
body.admin-app .cal-day-slot-role {
  font-weight: 700;
  font-size: 0.82rem;
}
body.admin-app .cal-day-slot-id {
  margin-left: auto;
  font-size: 0.72rem;
  opacity: 0.85;
  font-family: ui-monospace, monospace;
}
body.admin-app .cal-day-slot-time {
  font-size: 0.9rem;
  font-weight: 700;
  letter-spacing: 0.01em;
}
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-time,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-time {
  color: #fff;
}
body.admin-app .cal-day-slot-card.shift-slot-open .cal-day-slot-time {
  color: #111;
}
body.admin-app .cal-day-slot-body {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
}
body.admin-app .cal-day-slot-title {
  font-weight: 600;
  font-size: 0.82rem;
}
body.admin-app .cal-day-slot-staff {
  font-size: 0.8rem;
  font-weight: 600;
}
body.admin-app .cal-day-slot-meta {
  font-size: 0.74rem;
  display: flex;
  flex-wrap: wrap;
  gap: 0.15rem 0.55rem;
}
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-meta,
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-title,
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-staff,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-meta,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-title,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-staff {
  color: rgba(255, 255, 255, 0.9);
}
body.admin-app .cal-day-slot-card.shift-slot-open .cal-day-slot-meta,
body.admin-app .cal-day-slot-card.shift-slot-open .cal-day-slot-title,
body.admin-app .cal-day-slot-card.shift-slot-open .cal-day-slot-staff {
  color: rgba(0, 0, 0, 0.78);
}
body.admin-app .cal-day-slot-meta-sep {
  opacity: 0.55;
}
body.admin-app .cal-day-slot-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  padding-top: 0.15rem;
  border-top: 1px solid rgba(127, 127, 127, 0.25);
}
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-row-actions,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-row-actions {
  border-top-color: rgba(255, 255, 255, 0.22);
}
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-row-actions .btn-ghost,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-row-actions .btn-ghost {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.45);
}
body.admin-app .cal-day-slot-card.shift-slot-filled-series .cal-day-slot-row-actions .btn-ghost:hover,
body.admin-app .cal-day-slot-card.shift-slot-claimed .cal-day-slot-row-actions .btn-ghost:hover {
  background: rgba(255, 255, 255, 0.12);
}
body.admin-app .cal-day-slot-card.shift-slot-open .cal-day-slot-row-actions {
  border-top-color: rgba(0, 0, 0, 0.12);
}
/* Legacy row alias — keep border colors for any old refs */
body.admin-app .cal-day-slot-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem 0.55rem;
  padding: 0.45rem 0.55rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface2);
  border-left-width: 3px;
  border-left-style: solid;
}
body.admin-app .cal-day-slot-row.shift-host { border-left-color: #6a4a8a; }
body.admin-app .cal-day-slot-row.shift-dj { border-left-color: #204880; }
body.admin-app .cal-day-slot-row.shift-live_performer { border-left-color: #6b3880; }
body.admin-app .cal-day-slot-row.shift-dancer { border-left-color: #2a5a3a; }
body.admin-app .cal-day-slot-row.shift-manager { border-left-color: #6a3d08; }
body.admin-app .cal-day-slot-row.shift-sirens { border-left-color: #6a2a3a; }
body.admin-app .cal-day-slot-row.shift-staff { border-left-color: #48483e; }
body.admin-app .cal-day-slot-row.shift-fallback { border-left-color: #a07828; }
body.admin-app .cal-day-slot-row-main {
  flex: 1;
  min-width: 12rem;
}
body.admin-app .cal-day-slot-time {
  font-size: 0.78rem;
  font-weight: 600;
}
body.admin-app .cal-day-slot-detail {
  font-size: 0.74rem;
  color: var(--muted);
  margin-top: 0.12rem;
  word-break: break-word;
}
body.admin-app .cal-day-slot-row-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-host,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-host { background: #6a4a8a !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-dj,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-dj { background: #204880 !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-live_performer,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-live_performer { background: #6b3880 !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-dancer,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-dancer { background: #2a5a3a !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-manager,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-manager { background: #6a3d08 !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-sirens,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-sirens { background: #6a2a3a !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-staff,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-staff { background: #48483e !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-filled-series.shift-fallback,
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-claimed.shift-fallback { background: #a07828 !important; color: #fff !important; }
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-host {
  border-color: rgba(106, 74, 138, 0.75);
  background: rgba(106, 74, 138, 0.16) !important;
  color: #111 !important;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-dj {
  border-color: rgba(32, 72, 128, 0.75);
  background: rgba(32, 72, 128, 0.14) !important;
  color: #111 !important;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-live_performer {
  border-color: rgba(107, 56, 128, 0.75);
  background: rgba(107, 56, 128, 0.14) !important;
  color: #111 !important;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-dancer {
  border-color: rgba(42, 90, 58, 0.75);
  background: rgba(42, 90, 58, 0.14) !important;
  color: #111 !important;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-manager {
  border-color: rgba(106, 61, 8, 0.75);
  background: rgba(106, 61, 8, 0.14) !important;
  color: #111 !important;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-sirens {
  border-color: rgba(106, 42, 58, 0.75);
  background: rgba(106, 42, 58, 0.14) !important;
  color: #111 !important;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-staff {
  border-color: rgba(72, 72, 62, 0.75);
  background: rgba(72, 72, 62, 0.14) !important;
  color: #111 !important;
}
body.admin-app .cal-day-slot-card.shift-chip.shift-slot-open.shift-fallback {
  border-color: rgba(160, 120, 40, 0.75);
  background: rgba(160, 120, 40, 0.16) !important;
  color: #111 !important;
}
body.admin-app .cal-role-hidden { display: none !important; }
body.admin-app .sched-cal-role-filter {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.35rem;
  margin: 0 0 0.65rem;
}
body.admin-app .sched-cal-role-chip {
  font-family: "Instrument Sans", system-ui, sans-serif;
  font-size: 0.72rem;
  line-height: 1.2;
  padding: 0.22rem 0.55rem 0.22rem 0.45rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  background: var(--surface2);
  color: var(--text);
  cursor: pointer;
  border-left-width: 3px;
  border-left-style: solid;
  transition: opacity 0.12s ease, filter 0.12s ease;
}
body.admin-app .sched-cal-role-chip.is-on { opacity: 1; filter: none; }
body.admin-app .sched-cal-role-chip:not(.is-on) {
  opacity: 0.42;
  filter: grayscale(0.35);
}
body.admin-app .sched-cal-role-chip.shift-host { border-left-color: #6a4a8a; }
body.admin-app .sched-cal-role-chip.shift-dj { border-left-color: #204880; }
body.admin-app .sched-cal-role-chip.shift-live_performer { border-left-color: #6b3880; }
body.admin-app .sched-cal-role-chip.shift-dancer { border-left-color: #2a5a3a; }
body.admin-app .sched-cal-role-chip.shift-manager { border-left-color: #6a3d08; }
body.admin-app .sched-cal-role-chip.shift-sirens { border-left-color: #6a2a3a; }
body.admin-app .sched-cal-role-chip.shift-staff { border-left-color: #48483e; }
body.admin-app .sched-cal-role-chip.shift-fallback { border-left-color: #a07828; }
body.admin-app .shift-chip.shift-slot-open.shift-host {
  border-color: rgba(106, 74, 138, 0.75);
  background: rgba(106, 74, 138, 0.16) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-open.shift-dj {
  border-color: rgba(32, 72, 128, 0.75);
  background: rgba(32, 72, 128, 0.14) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-open.shift-live_performer {
  border-color: rgba(107, 56, 128, 0.75);
  background: rgba(107, 56, 128, 0.14) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-open.shift-dancer {
  border-color: rgba(42, 90, 58, 0.75);
  background: rgba(42, 90, 58, 0.14) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-open.shift-manager {
  border-color: rgba(106, 61, 8, 0.75);
  background: rgba(106, 61, 8, 0.14) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-open.shift-sirens {
  border-color: rgba(106, 42, 58, 0.75);
  background: rgba(106, 42, 58, 0.14) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-open.shift-staff {
  border-color: rgba(72, 72, 62, 0.75);
  background: rgba(72, 72, 62, 0.14) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-open.shift-fallback {
  border-color: rgba(160, 120, 40, 0.75);
  background: rgba(160, 120, 40, 0.16) !important;
  color: #111 !important;
}
body.admin-app .shift-chip.shift-slot-filled-series.shift-host,
body.admin-app .shift-chip.shift-slot-claimed.shift-host { background: #6a4a8a !important; color: #fff !important; }
body.admin-app .shift-chip.shift-slot-filled-series.shift-dj,
body.admin-app .shift-chip.shift-slot-claimed.shift-dj { background: #204880 !important; color: #fff !important; }
body.admin-app .shift-chip.shift-slot-filled-series.shift-live_performer,
body.admin-app .shift-chip.shift-slot-claimed.shift-live_performer { background: #6b3880 !important; color: #fff !important; }
body.admin-app .shift-chip.shift-slot-filled-series.shift-dancer,
body.admin-app .shift-chip.shift-slot-claimed.shift-dancer { background: #2a5a3a !important; color: #fff !important; }
body.admin-app .shift-chip.shift-slot-filled-series.shift-manager,
body.admin-app .shift-chip.shift-slot-claimed.shift-manager { background: #6a3d08 !important; color: #fff !important; }
body.admin-app .shift-chip.shift-slot-filled-series.shift-sirens,
body.admin-app .shift-chip.shift-slot-claimed.shift-sirens { background: #6a2a3a !important; color: #fff !important; }
body.admin-app .shift-chip.shift-slot-filled-series.shift-staff,
body.admin-app .shift-chip.shift-slot-claimed.shift-staff { background: #48483e !important; color: #fff !important; }
body.admin-app .shift-chip.shift-slot-filled-series.shift-fallback,
body.admin-app .shift-chip.shift-slot-claimed.shift-fallback { background: #a07828 !important; color: #fff !important; }
body.admin-app .modal-backdrop { position: fixed; inset: 0; background: rgba(0, 0, 0, 0.4); z-index: 100; display: none; align-items: center; justify-content: center; padding: 1rem; }
body.admin-app .modal-backdrop.on { display: flex; }
body.admin-app .modal-box {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  max-width: 26rem;
  width: 100%;
  max-height: 90vh;
  overflow: auto;
  box-shadow: var(--shadow2);
}
body.admin-app .modal-h {
  padding: 0.85rem 1rem;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-weight: 600;
  color: var(--ink2);
}
body.admin-app .modal-b { padding: 1rem; }
body.admin-app .staff-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
body.admin-app .modal-cl {
  background: none;
  border: none;
  font-size: 1.25rem;
  line-height: 1;
  cursor: pointer;
  color: var(--muted);
  padding: 0 0.15rem;
}
body.admin-app .sched-list-dur { color: var(--muted); font-size: 0.8rem; }
body.admin-app .stack { display: flex; flex-direction: column; gap: 0.75rem; }
body.admin-app .stack label { display: flex; flex-direction: column; gap: 0.25rem; font-size: 0.9rem; }
body.admin-app .stack input[type="text"],
body.admin-app .stack input[type="number"],
body.admin-app .stack input[type="password"],
body.admin-app .stack textarea,
body.admin-app .stack select {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink2);
  padding: 0.45rem 0.5rem;
  border-radius: var(--r2);
  font: inherit;
}
body.admin-app .stack .btn, body.admin-app .stack .btn-primary { width: auto; align-self: flex-start; }
/* Staff schedule — create open slot: tighter recurrence + datetime row */
body.admin-app #form-create-open-slot .open-slot-datetimes {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.65rem;
}
@media (max-width: 520px) {
  body.admin-app #form-create-open-slot .open-slot-datetimes {
    grid-template-columns: 1fr;
  }
}
body.admin-app #form-create-open-slot .open-slot-recurrence {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.45rem 0.85rem;
  padding: 0.15rem 0;
}
body.admin-app #form-create-open-slot .open-slot-rec-h {
  margin: 0;
  padding-top: 0.15rem;
  font-size: 0.82rem;
  color: var(--muted);
  white-space: nowrap;
}
body.admin-app #form-create-open-slot .open-slot-recurrence-seg {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.25rem 0.85rem;
}
body.admin-app #form-create-open-slot label.slot-rec-opt {
  display: inline-flex;
  flex-direction: row;
  align-items: center;
  gap: 0.35rem;
  margin: 0;
  font-weight: normal;
  font-size: 0.88rem;
  white-space: nowrap;
}
body.admin-app #form-create-open-slot label.slot-rec-until {
  display: flex;
  flex-direction: column;
  gap: 0.2rem;
  margin: 0;
  min-width: 10.5rem;
  flex: 1 1 auto;
}
body.admin-app #form-create-open-slot label.slot-rec-until span.slot-rec-until-lbl {
  font-size: 0.82rem;
  color: var(--muted);
}
body.admin-app #form-create-open-slot .slot-rec-hint {
  flex: 1 1 100%;
  margin: 0;
  font-size: 0.76rem;
  color: var(--muted);
  line-height: 1.35;
}
body.admin-app #form-create-open-slot .open-slot-recurrence.open-slot-rec-is-once label.slot-rec-until {
  opacity: 0.55;
}
body.admin-app .filters { display: flex; flex-wrap: wrap; gap: 0.5rem; margin-bottom: 1rem; align-items: flex-end; }
body.admin-app .filters label { display: flex; flex-direction: column; gap: 0.2rem; font-size: 0.85rem; color: var(--muted); }
body.admin-app .filters select, body.admin-app .filters input { background: var(--surface); border: 1px solid var(--line); color: var(--ink2); padding: 0.35rem 0.5rem; border-radius: 6px; font: inherit; }
/* Config page (tabbed) */
body.admin-app .config-page-head { margin-bottom: 0.5rem; }
body.admin-app .config-tabs {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 0.2rem 0.35rem;
  border-bottom: 1px solid var(--line);
  margin-bottom: 1.25rem;
  padding: 0;
}
body.admin-app .config-tab {
  display: inline-flex;
  padding: 0.5rem 0.9rem 0.65rem;
  font-size: 0.9rem;
  color: var(--muted);
  text-decoration: none;
  font-weight: 500;
  border: none;
  border-bottom: 2px solid transparent;
  margin-bottom: -1px;
  border-radius: var(--r2) var(--r2) 0 0;
  background: none;
  transition: color 0.12s, background 0.12s, border-color 0.12s;
}
body.admin-app .config-tab:hover { color: var(--ink2); background: var(--gold-bg); }
body.admin-app .config-tab.on { color: var(--ink2); font-weight: 600; border-bottom-color: var(--gold); background: var(--surface); }
body.admin-app .config-panel { margin-bottom: 1.5rem; }
body.admin-app .config-panel.card { box-shadow: var(--shadow); }

/* Imagine by PG — /manage/imagine */
body.admin-app .vis-imagine { max-width: 64rem; }
body.admin-app .vis-imagine__tabs { margin-bottom: 1rem; }
body.admin-app .vis-pane--hidden { display: none !important; }
body.admin-app .vis-card { margin-bottom: 1rem; }
body.admin-app .vis-card__body { padding: 1rem 1.1rem 1.15rem; }
body.admin-app .vis-form { display: flex; flex-direction: column; gap: 0.85rem; max-width: 36rem; }
body.admin-app .vis-form--wide { max-width: none; }
body.admin-app .vis-field-label { font-size: 0.9rem; color: var(--ink2); font-weight: 500; }
body.admin-app .vis-result { margin-top: 1.25rem; padding-top: 1.25rem; border-top: 1px solid var(--line); }
body.admin-app .vis-result__frame {
  background: var(--surface2);
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.65rem;
  margin-bottom: 0.75rem;
}
body.admin-app .vis-result__img {
  display: block;
  width: 100%;
  height: auto;
  max-height: min(68vh, 720px);
  object-fit: contain;
  border-radius: calc(var(--r) - 2px);
}
body.admin-app .vis-result__download { margin-top: 0.25rem; }

body.admin-app .vis-improve { display: grid; grid-template-columns: minmax(190px, 260px) minmax(0, 1fr); gap: 1.15rem; align-items: start; }
@media (max-width: 720px) {
  body.admin-app .vis-improve { grid-template-columns: 1fr; }
}
body.admin-app .vis-drop {
  position: relative;
  border: 2px dashed var(--line);
  border-radius: var(--r);
  background: var(--surface2);
  min-height: 220px;
  overflow: hidden;
  transition: border-color 0.15s, background 0.15s;
}
body.admin-app .vis-drop:hover,
body.admin-app .vis-drop.vis-drop--active {
  border-color: var(--gold);
  background: var(--gold-bg);
}
body.admin-app .vis-drop__input {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  opacity: 0;
  cursor: pointer;
  z-index: 2;
}
body.admin-app .vis-drop__inner {
  position: relative;
  z-index: 1;
  min-height: 220px;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  padding: 0.75rem;
  pointer-events: none;
}
body.admin-app .vis-drop__hint {
  color: var(--muted);
  font-size: 0.88rem;
  text-align: center;
  line-height: 1.35;
}
body.admin-app .vis-drop__hint[hidden] { display: none !important; }
body.admin-app .vis-drop__thumb {
  max-width: 100%;
  max-height: 220px;
  width: auto;
  height: auto;
  object-fit: contain;
  border-radius: 8px;
  display: block;
}
body.admin-app .vis-drop__thumb[hidden] { display: none !important; }
body.admin-app .vis-improve__form { display: flex; flex-direction: column; gap: 0.85rem; min-width: 0; }
body.admin-app .vis-hist-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
body.admin-app .vis-hist-summary { margin: 0; }
body.admin-app .vis-hist-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(168px, 1fr));
  gap: 1rem;
}
body.admin-app .vis-hist-card {
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0.55rem;
  background: var(--surface2);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-width: 0;
}
body.admin-app .vis-hist-thumb-wrap {
  display: block;
  border-radius: calc(var(--r) - 2px);
  overflow: hidden;
  background: var(--surface);
  aspect-ratio: 1;
}
body.admin-app .vis-hist-thumb {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}
body.admin-app .vis-hist-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 0.65rem;
  font-size: 0.75rem;
  color: var(--muted);
}
body.admin-app .vis-hist-kind {
  font-weight: 600;
  color: var(--ink2);
  text-transform: capitalize;
}
body.admin-app .vis-hist-prev {
  font-size: 0.78rem;
  margin: 0;
  color: var(--ink2);
  line-height: 1.35;
  max-height: 4em;
  overflow: hidden;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
}
body.admin-app .vis-hist-dl {
  font-size: 0.8rem;
  padding: 0.35rem 0.65rem;
  text-align: center;
  text-decoration: none;
  margin-top: auto;
}
body.admin-app .vis-hist-prev-wrap {
  min-width: 0;
}
body.admin-app .vis-prompt-cell-wrap {
  min-width: 0;
}
body.admin-app .vis-prompt-snippet {
  font-size: 0.78rem;
  color: var(--ink2);
  line-height: 1.35;
  white-space: pre-wrap;
  word-break: break-word;
  margin-bottom: 0.35rem;
}
body.admin-app .vis-prompt-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
body.admin-app .vis-prompt-actions .btn {
  font-size: 0.72rem;
  padding: 0.2rem 0.45rem;
}
body.admin-app .vis-prompt-modal__dialog {
  width: min(720px, 92vw);
  max-height: 90vh;
  display: flex;
  flex-direction: column;
}
body.admin-app .vis-prompt-modal__text {
  width: 100%;
  min-height: 220px;
  max-height: 55vh;
  resize: vertical;
  font-family: 'Geist Mono', ui-monospace, monospace;
  font-size: 0.82rem;
  line-height: 1.45;
}
body.admin-app .vis-every-table tbody tr:hover { background: var(--gold-bg); }
body.admin-app .vis-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 0.65rem; margin-top: 0.15rem; }
body.admin-app .config-fold { border: 1px solid var(--line); border-radius: var(--r); margin-bottom: 0.75rem; background: var(--surface2); overflow: hidden; }
body.admin-app .config-fold-add { background: var(--gold-bg); border-color: var(--gold-border); }
body.admin-app .config-fold-sum {
  list-style: none;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.65rem 0.9rem;
  cursor: pointer;
  font-weight: 600;
  color: var(--ink2);
  user-select: none;
}
body.admin-app .config-fold-sum::-webkit-details-marker { display: none; }
body.admin-app .config-fold > summary { position: relative; padding-left: 1.5rem; }
body.admin-app .config-fold > summary::before { content: "▸"; position: absolute; left: 0.5rem; top: 50%; transform: translateY(-50%); font-size: 0.7rem; color: var(--muted); transition: transform 0.15s; }
body.admin-app .config-fold[open] > summary::before { transform: translateY(-50%) rotate(90deg); }
body.admin-app .config-fold-title { display: inline-block; }
body.admin-app .config-fold-meta { font-size: 0.75rem; font-weight: 500; color: var(--muted); font-family: "Fira Code", ui-monospace, monospace; }
body.admin-app .config-fold-body { padding: 0.75rem 0.9rem 1rem; border-top: 1px solid var(--line); background: var(--surface); }
body.admin-app .config-item { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 0.5rem 0.75rem; padding: 0.75rem 0; border-bottom: 1px solid var(--line); }
body.admin-app .config-item:last-of-type { border-bottom: none; }
body.admin-app .config-item .config-inline-form { flex: 1; min-width: 0; }
body.admin-app .config-item-row { display: flex; flex-wrap: wrap; align-items: center; gap: 0.5rem 0.75rem; }
body.admin-app .config-item-row .inp { max-width: 12rem; }
body.admin-app .config-compl-row { display: grid; grid-template-columns: 1fr 1fr; gap: 0.5rem 0.75rem; align-items: end; }
@media (max-width: 720px) { body.admin-app .config-compl-row { grid-template-columns: 1fr; } }
body.admin-app .config-item-actions { margin-top: 0.5rem; }
body.admin-app label.chk { flex-direction: row !important; align-items: center; gap: 0.35rem; }
/* Staff team: action bar + modals */
body.admin-app .staff-team-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-start;
  justify-content: space-between;
  gap: 1rem;
  margin-bottom: 1.25rem;
  padding: 1rem 1.15rem;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--r);
  box-shadow: var(--shadow);
}
body.admin-app .staff-team-btns { display: flex; flex-wrap: wrap; gap: 0.5rem; align-items: center; }

/* —— Venue manage (playground /manage/venues/:id) —— */
body.admin-app .venue-manage {
  max-width: 1100px;
  margin: 0 auto;
  padding: 0 4px 32px;
}
body.admin-app .venue-manage .card .card-head {
  padding: 12px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}
body.admin-app .venue-manage .card .card-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink2);
  margin: 0;
}
body.admin-app .venue-manage .card .card-body {
  padding: 18px 20px;
}
body.admin-app .venue-manage .card .card-body.card-body--flush {
  padding: 0;
}
body.admin-app .venue-manage .venue-card-head-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
body.admin-app .venue-manage .venue-gig-table {
  font-size: 13px;
}
body.admin-app .venue-manage .table-scroll {
  overflow-x: auto;
  margin: 0 -4px;
  padding: 0 4px;
}
body.admin-app .venue-manage .venue-pairing-add {
  margin-top: 0;
  padding-top: 0;
}
.venue-gig-dialog {
  max-width: min(520px, 96vw);
  width: 100%;
  border: 1px solid var(--line);
  border-radius: var(--r);
  padding: 0;
  box-shadow: 0 16px 48px rgba(0, 0, 0, 0.25);
  background: var(--surface);
  color: var(--ink2);
}
.venue-gig-dialog::backdrop {
  background: rgba(10, 12, 18, 0.55);
  backdrop-filter: blur(2px);
}
.venue-gig-dialog-inner {
  padding: 0;
}
.venue-gig-dialog-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 14px 18px;
  border-bottom: 1px solid var(--line);
  background: var(--surface2);
}
.venue-gig-form {
  padding: 16px 18px 20px;
}
.venue-gig-form .save-row {
  margin-top: 4px;
}

body.admin-app .stack label.row-inline {
  flex-direction: row;
  align-items: center;
  gap: 10px;
}

/* Connection members admin */
.pg-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 16px;
  flex-wrap: wrap;
}
.pg-tab {
  padding: 8px 16px;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--surface);
  font-size: 13px;
  font-weight: 600;
  color: var(--muted);
  cursor: pointer;
}
.pg-tab:hover {
  color: var(--ink2);
  border-color: var(--gold2);
}
.pg-tab.on {
  background: var(--gold-a);
  border-color: rgba(201, 162, 39, 0.45);
  color: var(--ink);
}
.pg-tab-panel[hidden] {
  display: none !important;
}
.member-tex-wrap {
  display: inline-block;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid var(--line);
  box-shadow: var(--shadow);
}
.member-tex-img {
  display: block;
  width: min(280px, 100%);
  height: auto;
  aspect-ratio: 1;
  object-fit: cover;
  background: var(--surface2);
}
.tbl-tight td,
.tbl-tight th {
  padding: 8px 12px;
  font-size: 12px;
}

/* Staff → Tip jar sub-panels */
body.admin-app #staff-tip-jar .tip-jar-sub-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.65rem;
  margin: 0 0 1rem;
}
body.admin-app #staff-tip-jar .tip-jar-sub-toolbar .sched-view-toggle a,
body.admin-app #staff-tip-jar .tip-jar-sub-toolbar .sched-view-toggle button {
  padding: 0.35rem 0.75rem;
  font-size: 0.85rem;
  color: var(--muted);
  background: var(--surface2);
  border: none;
  margin: 0;
  cursor: pointer;
  font-family: inherit;
  text-decoration: none;
  display: inline-block;
}
body.admin-app #staff-tip-jar .tip-jar-sub-toolbar .sched-view-toggle a.on,
body.admin-app #staff-tip-jar .tip-jar-sub-toolbar .sched-view-toggle button.on {
  background: var(--gold-bg);
  color: var(--ink2);
  font-weight: 600;
}
body.admin-app #staff-tip-jar .tip-jar-panel[hidden] {
  display: none !important;
}
body.admin-app #staff-tip-jar .tip-jar-exec-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem 1rem;
  align-items: baseline;
  padding: 0.55rem 0.75rem;
  margin: 0 0 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r);
  background: var(--surface2);
  font-size: 0.78rem;
  line-height: 1.45;
}
body.admin-app #staff-tip-jar .tip-jar-exec-strip strong {
  font-weight: 600;
}
body.admin-app #staff-tip-jar .tip-jar-analytics-block {
  margin-top: 1rem;
}
body.admin-app #staff-tip-jar .tip-jar-analytics-block:first-child {
  margin-top: 0;
}
body.admin-app #staff-tip-jar .tip-jar-section-h {
  margin: 0 0 0.5rem;
  font-size: 0.95rem;
  font-weight: 600;
  color: var(--ink2);
}
body.admin-app #staff-tip-jar .tip-jar-settings-stack {
  display: flex;
  flex-direction: column;
  gap: 1.25rem;
}
body.admin-app #staff-tip-jar .tip-jar-settings-form {
  max-width: 52rem;
  font-size: 13px;
}
body.admin-app #staff-tip-jar .tip-jar-settings-stack .tip-jar-fieldset,
body.admin-app #staff-tip-jar .tip-jar-settings-form .tip-jar-fieldset {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.85rem 1rem 1rem;
  margin: 0;
}
body.admin-app #staff-tip-jar .tip-jar-settings-stack .tip-jar-fieldset legend,
body.admin-app #staff-tip-jar .tip-jar-settings-form .tip-jar-fieldset legend {
  padding: 0 0.35rem;
  font-weight: 600;
  font-size: 0.92rem;
  color: var(--ink2);
}
body.admin-app #staff-tip-jar .tip-jar-settings-stack .tip-jar-fieldset + .tip-jar-fieldset,
body.admin-app #staff-tip-jar .tip-jar-settings-form .tip-jar-fieldset + .tip-jar-fieldset {
  margin-top: 0.75rem;
}
body.admin-app #staff-tip-jar .tip-jar-recipient-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.65rem;
  align-items: flex-end;
  padding: 0.65rem 0.75rem;
  margin-bottom: 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--surface2);
}
body.admin-app #staff-tip-jar .tip-jar-recipient-row:last-child {
  margin-bottom: 0;
}
body.admin-app #staff-tip-jar .tip-jar-recipient-staff {
  flex: 1 1 12rem;
  min-width: 10rem;
}
body.admin-app #staff-tip-jar .tip-jar-recipient-pct {
  width: 6rem;
  flex: 0 0 auto;
}
body.admin-app #staff-tip-jar .tip-jar-recipient-active {
  display: flex;
  align-items: center;
  gap: 0.35rem;
  padding-bottom: 0.35rem;
  font-size: 12px;
  margin-bottom: 0;
}
body.admin-app #staff-tip-jar .tip-jar-recipient-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem;
  align-items: center;
  margin-top: 0.65rem;
}
body.admin-app #staff-tip-jar .tip-jar-fieldset-actions {
  margin-top: 0.85rem;
  padding-top: 0.15rem;
}
body.admin-app #staff-tip-jar .tip-jar-settings-save-row {
  margin-top: 0.25rem;
  padding-top: 0.5rem;
  border-top: 1px solid var(--line);
}
body.admin-app #staff-tip-jar .tip-jar-hrs-enable {
  margin-bottom: 0.75rem;
}
body.admin-app #staff-tip-jar .tip-jar-tier-add-row {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.5rem;
  max-width: 42rem;
  font-size: 13px;
  margin-top: 0.75rem;
}
body.admin-app #staff-tip-jar .tip-jar-preset-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(7rem, 1fr));
  gap: 0.5rem;
  max-width: 36rem;
}
body.admin-app #staff-tip-jar .tip-jar-inline-fields {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(10rem, 1fr));
  gap: 0.65rem;
  margin-top: 0.5rem;
}
body.admin-app #staff-tip-jar .tip-jar-settings-form label.staff-cb {
  display: flex;
  gap: 0.5rem;
  align-items: flex-start;
  margin-bottom: 0.35rem;
}
body.admin-app #staff-tip-jar .tip-jar-live-meta {
  font-size: 0.78rem;
  color: var(--muted);
  margin: 0 0 0.35rem;
  line-height: 1.45;
}
body.admin-app #staff-tip-jar .tip-jar-live-summary {
  font-weight: 600;
}
body.admin-app #staff-tip-jar tr.tip-jar-row-live td {
  background: rgba(52, 168, 83, 0.08);
}
body.admin-app #staff-tip-jar .tip-jar-tips-pager {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 0.5rem;
  margin: 0 0 0.65rem;
  font-size: 0.82rem;
}
body.admin-app .modal-backdrop .tip-jar-setup-list {
  margin: 0;
  padding-left: 1.25rem;
  font-size: 13px;
  line-height: 1.55;
  color: var(--muted);
}
body.admin-app .modal-backdrop .tip-jar-setup-list li + li {
  margin-top: 0.35rem;
}

/* Admin accounts page */
body.admin-app .admin-accounts .ph-sub {
  margin: 0.35rem 0 0;
  font-size: 13px;
  max-width: 42rem;
}
body.admin-app .admin-accounts .aa-stat-pill {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  padding: 0.35rem 0.65rem;
  border-radius: var(--r2);
  border: 1px solid var(--line);
  background: var(--surface2);
  font-size: 11px;
  font-family: "Fira Code", ui-monospace, monospace;
  color: var(--muted);
}
body.admin-app .admin-accounts .aa-stat-pill strong {
  color: var(--ink);
  font-weight: 600;
}
body.admin-app .admin-accounts .aa-layout {
  display: grid;
  grid-template-columns: minmax(0, 1fr) 320px;
  gap: 16px;
  align-items: start;
}
@media (max-width: 980px) {
  body.admin-app .admin-accounts .aa-layout {
    grid-template-columns: 1fr;
  }
}
body.admin-app .admin-accounts .aa-table-wrap {
  padding: 0;
}
body.admin-app .admin-accounts .aa-empty {
  padding: 1.25rem 17px;
  margin: 0;
}
body.admin-app .admin-accounts .aa-users-table tbody td {
  vertical-align: top;
}
body.admin-app .admin-accounts .aa-row-self {
  background: var(--gold-bg);
}
body.admin-app .admin-accounts .aa-row-self:hover {
  background: var(--gold-bg) !important;
}
body.admin-app .admin-accounts .aa-user-cell {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
}
body.admin-app .admin-accounts .aa-user-name {
  font-size: 14px;
  font-weight: 600;
  color: var(--ink);
  letter-spacing: -0.01em;
}
body.admin-app .admin-accounts .aa-user-meta {
  font-size: 10px;
  font-family: "Fira Code", ui-monospace, monospace;
  color: var(--muted);
}
body.admin-app .admin-accounts .aa-chip-row {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  margin-bottom: 0.45rem;
}
body.admin-app .admin-accounts .aa-chip {
  display: inline-flex;
  align-items: center;
  padding: 0.18rem 0.55rem;
  border-radius: 999px;
  font-size: 10px;
  font-family: "Fira Code", ui-monospace, monospace;
  font-weight: 500;
  border: 1px solid transparent;
  white-space: nowrap;
}
body.admin-app .admin-accounts .aa-chip-admin {
  background: var(--gold-bg);
  color: var(--gold);
  border-color: var(--gold-border);
}
body.admin-app .admin-accounts .aa-chip-manager {
  background: var(--blue-bg);
  color: var(--blue);
  border-color: rgba(32, 72, 128, 0.2);
}
body.admin-app .admin-accounts .aa-chip-finance {
  background: var(--green-bg);
  color: var(--green);
  border-color: var(--green-border);
}
body.admin-app .admin-accounts .aa-chip-schedule {
  background: var(--purple-bg);
  color: var(--purple);
  border-color: rgba(80, 40, 120, 0.18);
}
body.admin-app .admin-accounts .aa-chip-social {
  background: var(--amber-bg);
  color: var(--amber);
  border-color: rgba(138, 80, 16, 0.18);
}
body.admin-app .admin-accounts .aa-chip-default {
  background: var(--surface2);
  color: var(--ink3);
  border-color: var(--line);
}
body.admin-app .admin-accounts .aa-roles-edit {
  margin-top: 0.15rem;
}
body.admin-app .admin-accounts .aa-roles-edit > summary {
  cursor: pointer;
  list-style: none;
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  font-size: 11px;
  font-weight: 600;
  color: var(--gold);
  user-select: none;
}
body.admin-app .admin-accounts .aa-roles-edit > summary::-webkit-details-marker {
  display: none;
}
body.admin-app .admin-accounts .aa-roles-edit > summary::before {
  content: "▸";
  font-size: 10px;
  transition: transform 0.12s ease;
}
body.admin-app .admin-accounts .aa-roles-edit[open] > summary::before {
  transform: rotate(90deg);
}
body.admin-app .admin-accounts .aa-roles-form {
  margin-top: 0.55rem;
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--surface2);
}
body.admin-app .admin-accounts .aa-login-cell {
  font-size: 12px;
  color: var(--ink3);
  white-space: nowrap;
}
body.admin-app .admin-accounts .aa-col-actions {
  width: 1%;
  white-space: nowrap;
}
body.admin-app .admin-accounts .aa-actions {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 0.35rem;
}
body.admin-app .admin-accounts .aa-actions form {
  margin: 0;
}
body.admin-app .admin-accounts .aa-self-note {
  font-size: 11px;
  font-style: italic;
}
body.admin-app .admin-accounts .aa-create-form {
  display: flex;
  flex-direction: column;
  gap: 0.85rem;
}
body.admin-app .admin-accounts .aa-field {
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}
body.admin-app .admin-accounts .aa-field-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--ink2);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}
body.admin-app .admin-accounts .aa-field-hint {
  font-size: 11px;
  margin: 0;
  line-height: 1.4;
}
body.admin-app .admin-accounts .aa-role-picks {
  display: flex;
  flex-direction: column;
  gap: 0.4rem;
}
body.admin-app .admin-accounts .aa-role-picks--compact {
  margin-bottom: 0.55rem;
}
body.admin-app .admin-accounts .aa-role-pick {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  padding: 0.55rem 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.12s, background 0.12s, box-shadow 0.12s;
}
body.admin-app .admin-accounts .aa-role-pick:hover {
  border-color: var(--gold-border);
}
body.admin-app .admin-accounts .aa-role-pick.is-on {
  border-color: var(--gold-border);
  background: var(--gold-bg);
  box-shadow: inset 0 0 0 1px rgba(200, 160, 64, 0.15);
}
body.admin-app .admin-accounts .aa-role-pick input {
  margin-top: 0.15rem;
  accent-color: var(--gold);
}
body.admin-app .admin-accounts .aa-role-pick-main {
  display: flex;
  flex-direction: column;
  gap: 0.12rem;
  min-width: 0;
}
body.admin-app .admin-accounts .aa-role-pick-label {
  font-size: 13px;
  font-weight: 600;
  color: var(--ink);
}
body.admin-app .admin-accounts .aa-role-pick-desc {
  font-size: 11px;
  color: var(--muted);
  line-height: 1.35;
}
body.admin-app .admin-accounts .aa-create-btn {
  width: 100%;
  margin-top: 0.25rem;
}
body.admin-app .admin-accounts .aa-legend-card .cb {
  padding-top: 12px;
}
body.admin-app .admin-accounts .aa-legend-list {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
}
body.admin-app .admin-accounts .aa-legend-item p {
  margin: 0.35rem 0 0;
  font-size: 11px;
  line-height: 1.4;
}

/* Date auctions dashboard */
body.admin-app .da-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}
body.admin-app .da-filter-pills {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
body.admin-app .da-filter-pills a {
  display: inline-block;
  padding: 0.35rem 0.75rem;
  border-radius: 999px;
  border: 1px solid var(--line);
  color: var(--muted);
  text-decoration: none;
  font-size: 0.85rem;
}
body.admin-app .da-filter-pills a.on {
  background: var(--ink2);
  border-color: var(--ink2);
  color: #fff;
}
body.admin-app .da-modal-box {
  max-width: 36rem;
  width: 100%;
}
body.admin-app .da-modal-box.da-modal-wide {
  max-width: 42rem;
}
body.admin-app .da-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 0.75rem;
}
@media (max-width: 560px) {
  body.admin-app .da-form-grid { grid-template-columns: 1fr; }
}
body.admin-app .da-form-grid .da-span-2 { grid-column: 1 / -1; }
body.admin-app .da-field label {
  display: flex;
  flex-direction: column;
  gap: 0.3rem;
  font-size: 0.88rem;
  color: var(--ink2);
}
body.admin-app .da-field input,
body.admin-app .da-field select,
body.admin-app .da-field textarea {
  background: var(--surface);
  border: 1px solid var(--line);
  color: var(--ink2);
  padding: 0.45rem 0.55rem;
  border-radius: var(--r2);
  font: inherit;
}
body.admin-app .da-field textarea { min-height: 4.5rem; resize: vertical; }
body.admin-app .da-q-checks {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  max-height: 12rem;
  overflow: auto;
  padding: 0.65rem;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--bg);
}
body.admin-app .da-q-checks label {
  display: flex;
  align-items: flex-start;
  gap: 0.45rem;
  font-size: 0.88rem;
  cursor: pointer;
}
body.admin-app .da-options-list {
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
}
body.admin-app .da-option-row {
  display: flex;
  gap: 0.45rem;
  align-items: center;
}
body.admin-app .da-option-row input { flex: 1; }
body.admin-app .da-option-row .btn { flex-shrink: 0; }
body.admin-app .da-table-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
  align-items: center;
}
body.admin-app .da-status {
  display: inline-block;
  padding: 0.15rem 0.5rem;
  border-radius: 999px;
  font-size: 0.75rem;
  font-weight: 600;
  text-transform: capitalize;
}
body.admin-app .da-status-active { background: #e8f5e9; color: #2e7d32; }
body.admin-app .da-status-draft { background: #f5f5f5; color: #616161; }
body.admin-app .da-status-ended { background: #fff3e0; color: #e65100; }
body.admin-app .da-status-cancelled { background: #ffebee; color: #c62828; }
body.admin-app .da-entry-row { cursor: pointer; }
body.admin-app .da-entry-row:hover { background: var(--bg); }
body.admin-app .da-thumb {
  width: 40px;
  height: 40px;
  border-radius: 8px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
}
body.admin-app .da-entry-detail {
  display: grid;
  grid-template-columns: 140px 1fr;
  gap: 1rem;
}
@media (max-width: 560px) {
  body.admin-app .da-entry-detail { grid-template-columns: 1fr; }
}
body.admin-app .da-entry-photo {
  width: 140px;
  height: 140px;
  border-radius: 12px;
  object-fit: cover;
  border: 1px solid var(--line);
  background: var(--bg);
}
body.admin-app .da-entry-meta {
  display: grid;
  gap: 0.35rem;
  font-size: 0.9rem;
}
body.admin-app .da-entry-meta dt {
  font-size: 0.75rem;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  margin: 0;
}
body.admin-app .da-entry-meta dd { margin: 0 0 0.5rem; }
body.admin-app .da-qa-list {
  display: flex;
  flex-direction: column;
  gap: 0.65rem;
  margin-top: 0.75rem;
}
body.admin-app .da-qa-item {
  padding: 0.65rem 0.75rem;
  border: 1px solid var(--line);
  border-radius: var(--r2);
  background: var(--bg);
}
body.admin-app .da-qa-q {
  font-size: 0.78rem;
  font-weight: 600;
  color: var(--muted);
  margin-bottom: 0.25rem;
}
body.admin-app .da-qa-a { font-size: 0.92rem; color: var(--ink2); }
body.admin-app .da-options-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 0.25rem;
}
body.admin-app .da-options-tags span {
  display: inline-block;
  padding: 0.12rem 0.45rem;
  border-radius: 999px;
  background: var(--bg);
  border: 1px solid var(--line);
  font-size: 0.78rem;
}
body.admin-app .da-modal-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.5rem;
  margin-top: 1rem;
  padding-top: 0.75rem;
  border-top: 1px solid var(--line);
}

body.admin-app .vis-model-fallback-badge {
  display: inline-block;
  font-size: 0.68rem;
  color: var(--muted);
  background: rgba(0, 0, 0, 0.05);
  border-radius: 4px;
  padding: 0.1rem 0.35rem;
  margin-top: 0.15rem;
}

body.admin-app .vis-source-badge {
  display: inline-block;
  font-size: 0.72rem;
  font-weight: 600;
  padding: 0.15rem 0.45rem;
  border-radius: 4px;
  white-space: nowrap;
}
body.admin-app .vis-source-badge--create {
  color: #1a5a8a;
  background: rgba(52, 152, 219, 0.15);
}
body.admin-app .vis-source-badge--studio {
  color: #6b3fa0;
  background: rgba(155, 89, 182, 0.15);
}
body.admin-app .vis-source-badge--moap {
  color: #5a5a5a;
  background: rgba(0, 0, 0, 0.06);
}

body.admin-app .vis-pt-heading {
  margin: 0 0 0.75rem;
  font-size: 1rem;
}
body.admin-app .vis-pt-section {
  margin-bottom: 1.25rem;
}
body.admin-app .vis-pt-dropzone {
  border: 2px dashed var(--line);
  border-radius: 8px;
  padding: 1.25rem;
  text-align: center;
  cursor: pointer;
  background: rgba(0, 0, 0, 0.02);
  transition: border-color 0.15s, background 0.15s;
}
body.admin-app .vis-pt-dropzone--over {
  border-color: var(--gold, #c9a227);
  background: rgba(201, 162, 39, 0.06);
}
body.admin-app .vis-pt-image-list {
  list-style: none;
  padding: 0;
  margin: 0.5rem 0 0;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}
body.admin-app .vis-pt-image-item {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.85rem;
  padding: 0.35rem 0.5rem;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: var(--card, #fff);
}
body.admin-app .vis-pt-thumb {
  width: 40px;
  height: 40px;
  object-fit: cover;
  border-radius: 4px;
}
body.admin-app .vis-pt-prompt-list {
  max-height: 280px;
  overflow-y: auto;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 0.35rem 0.5rem;
  background: var(--card, #fff);
}
body.admin-app .vis-pt-prompt-row {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  padding: 0.35rem 0.15rem;
  font-size: 0.88rem;
  cursor: pointer;
  border-bottom: 1px solid var(--line);
}
body.admin-app .vis-pt-prompt-row:last-child {
  border-bottom: none;
}
body.admin-app .vis-pt-sample-thumb {
  width: 36px;
  height: 48px;
  object-fit: cover;
  border-radius: 4px;
  border: 1px solid var(--line);
  flex-shrink: 0;
  background: rgba(0, 0, 0, 0.03);
}
body.admin-app .vis-pt-sample-thumb--empty {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  color: var(--muted);
  font-size: 0.75rem;
}
body.admin-app .vis-pt-prompt-title {
  flex: 1;
  min-width: 0;
}
body.admin-app .vis-pt-tier {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.12rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
  flex-shrink: 0;
}
body.admin-app .vis-pt-tier--pg {
  color: #1a5a7a;
  background: rgba(52, 152, 219, 0.12);
}
body.admin-app .vis-pt-tier--adult {
  color: #8a3040;
  background: rgba(184, 48, 48, 0.12);
}
body.admin-app .vis-pt-summary {
  font-weight: 600;
  font-size: 0.95rem;
  margin-bottom: 0.35rem;
}
body.admin-app .vis-pt-results-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(240px, 1fr));
  gap: 0.75rem;
  margin-top: 0.5rem;
}
body.admin-app .vis-pt-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0.65rem;
  background: var(--card, #fff);
  font-size: 0.85rem;
}
body.admin-app .vis-pt-card-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.5rem;
  margin-bottom: 0.35rem;
}
body.admin-app .vis-pt-badge {
  font-size: 0.65rem;
  font-weight: 700;
  padding: 0.15rem 0.4rem;
  border-radius: 4px;
  white-space: nowrap;
}
body.admin-app .vis-pt-badge--pass {
  color: #1a7a4a;
  background: rgba(46, 204, 113, 0.15);
}
body.admin-app .vis-pt-badge--fail {
  color: #b83030;
  background: rgba(184, 48, 48, 0.12);
}
body.admin-app .vis-pt-result-thumb {
  width: 72px;
  height: 72px;
  object-fit: cover;
  border-radius: 6px;
  border: 1px solid var(--line);
}
body.admin-app .vis-pt-error {
  color: #b83030;
  font-size: 0.8rem;
  margin: 0.35rem 0 0;
}
body.admin-app .vis-pt-card-edit {
  margin-top: 0.5rem;
}
body.admin-app .vis-pt-prompt-edit {
  width: 100%;
  min-height: 80px;
  font-size: 0.8rem;
  margin-bottom: 0.35rem;
}
body.admin-app .vis-pt-card-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}
body.admin-app .vis-pt-compare-row {
  display: flex;
  gap: 0.5rem;
  margin-top: 0.35rem;
}
body.admin-app .vis-pt-compare {
  display: flex;
  flex-direction: column;
  gap: 0.15rem;
  font-size: 0.72rem;
}
body.admin-app .vis-pt-prompt-readonly {
  font-size: 0.75rem;
  white-space: pre-wrap;
  word-break: break-word;
  margin: 0.35rem 0 0;
  max-height: 120px;
  overflow-y: auto;
  background: rgba(0, 0, 0, 0.03);
  padding: 0.35rem;
  border-radius: 4px;
}
body.admin-app .vis-pt-history {
  margin-top: 1.5rem;
  border-top: 1px solid var(--line);
  padding-top: 0.75rem;
}
body.admin-app .vis-pt-history-run {
  margin-bottom: 0.5rem;
}
body.admin-app .vis-pt-history-run summary {
  cursor: pointer;
  font-size: 0.88rem;
  padding: 0.35rem 0;
}
body.admin-app .da-overrides-table { margin-top: 0.75rem; font-size: 0.88rem; }
