:root {
  --bg: #080b0c;
  --panel: rgba(18, 24, 25, 0.92);
  --panel-2: rgba(24, 32, 32, 0.92);
  --line: rgba(218, 188, 118, 0.16);
  --gold: #d8bb72;
  --gold-soft: rgba(216, 187, 114, 0.14);
  --green: #95d9bf;
  --blue: #87b7ff;
  --red: #ff8a8a;
  --text: #f4efe5;
  --muted: #a9b1ad;
  --shadow: 0 22px 60px rgba(0, 0, 0, 0.34);
}
* { box-sizing: border-box; }
body {
  margin: 0;
  min-height: 100vh;
  color: var(--text);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 20% 0%, rgba(216, 187, 114, 0.16), transparent 26rem),
    radial-gradient(circle at 88% 8%, rgba(85, 148, 134, 0.18), transparent 22rem),
    linear-gradient(135deg, #070909 0%, #101514 52%, #050606 100%);
}
a { color: inherit; text-decoration: none; }
button, input, select, textarea { font: inherit; }
.app-shell { display: flex; min-height: 100vh; }
.sidebar {
  width: 292px;
  padding: 24px;
  border-right: 1px solid var(--line);
  background: rgba(5, 8, 9, 0.74);
  backdrop-filter: blur(24px);
  position: sticky;
  top: 0;
  height: 100vh;
  overflow-y: auto;
}
.brand-mark { display: flex; gap: 14px; align-items: center; margin-bottom: 30px; }
.brand-sigil {
  width: 48px; height: 48px; border-radius: 16px;
  display: grid; place-items: center;
  color: #17150c; background: linear-gradient(135deg, #f6dc90, #92793f);
  box-shadow: 0 10px 26px rgba(216, 187, 114, 0.22);
  font-weight: 900;
}
.brand-mark strong { display: block; letter-spacing: .08em; text-transform: uppercase; }
.brand-mark span, .user-pill small, .panel small, td small { display: block; color: var(--muted); font-size: 12px; margin-top: 3px; }
.nav-group { margin: 24px 0; }
.nav-group p, .eyebrow {
  color: var(--gold);
  font-size: 11px;
  letter-spacing: .16em;
  text-transform: uppercase;
  margin: 0 0 10px;
}
.nav-link {
  display: flex; align-items: center; gap: 10px;
  padding: 11px 12px;
  border-radius: 14px;
  color: #d9ddd7;
  margin: 4px 0;
  border: 1px solid transparent;
}
.nav-link span { color: var(--gold); width: 18px; text-align: center; }
.nav-link.active, .nav-link:hover { background: var(--gold-soft); border-color: var(--line); }
.side-note {
  margin-top: 30px;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 18px;
  color: var(--muted);
  background: rgba(255,255,255,0.03);
  font-size: 13px;
}
.side-note strong { color: var(--text); display: block; margin-bottom: 6px; }
.main-panel { flex: 1; min-width: 0; padding: 30px; }
.topbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin-bottom: 24px; }
h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; }
h2 { margin: 0; font-size: 20px; }
p { color: var(--muted); line-height: 1.55; }
.user-pill {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 18px;
  padding: 12px 14px;
  min-width: 230px;
  text-align: right;
}
.grid { display: grid; gap: 16px; }
.metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin-bottom: 18px; }
.metric-card, .panel, .hero-card {
  border: 1px solid var(--line);
  background: var(--panel);
  border-radius: 24px;
  box-shadow: var(--shadow);
}
.metric-card { padding: 18px; }
.metric-card span { color: var(--muted); font-size: 13px; }
.metric-card strong { display: block; margin: 8px 0 4px; font-size: 32px; letter-spacing: -0.04em; }
.metric-card small { color: var(--gold); }
.two-column { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.panel { padding: 20px; margin-bottom: 18px; }
.panel-head { display: flex; justify-content: space-between; gap: 14px; align-items: center; margin-bottom: 16px; }
.panel-head > div { display: flex; gap: 8px; flex-wrap: wrap; }
.btn {
  cursor: default;
  border: 1px solid rgba(216, 187, 114, 0.45);
  background: linear-gradient(135deg, rgba(216, 187, 114, 0.95), rgba(152, 122, 58, 0.92));
  color: #10110d;
  padding: 10px 13px;
  border-radius: 13px;
  font-weight: 800;
}
.btn.ghost { background: rgba(255,255,255,0.04); color: var(--text); }
.btn.danger { background: rgba(255, 138, 138, 0.12); color: #ffd8d8; border-color: rgba(255, 138, 138, 0.35); }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 680px; }
th, td { padding: 12px 10px; border-bottom: 1px solid rgba(255,255,255,0.07); text-align: left; vertical-align: top; font-size: 14px; }
th { color: var(--gold); font-size: 12px; letter-spacing: .09em; text-transform: uppercase; }
td strong { display: block; }
.chip, .status {
  display: inline-flex;
  align-items: center;
  margin: 2px 3px 2px 0;
  padding: 5px 8px;
  border-radius: 999px;
  background: rgba(255,255,255,0.05);
  border: 1px solid rgba(255,255,255,0.09);
  color: #dfe5de;
  font-size: 12px;
}
.status-active, .status-approved, .status-preview-ready { color: var(--green); background: rgba(149, 217, 191, 0.08); border-color: rgba(149, 217, 191, 0.25); }
.status-pending, .status-needs-review, .status-earned, .status-custom-pending { color: var(--gold); background: var(--gold-soft); border-color: var(--line); }
.status-rejected, .status-removed { color: var(--red); background: rgba(255, 138, 138, 0.08); border-color: rgba(255, 138, 138, 0.25); }
.guardrail-panel { background: linear-gradient(135deg, rgba(216, 187, 114, 0.12), rgba(18,24,25,0.92)); }
.guardrail-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 14px; }
.guardrail-grid span, .state, .task-card, .resource-card, .upload-drop { border: 1px solid var(--line); background: rgba(255,255,255,0.04); border-radius: 16px; padding: 12px; }
.state-machine { display: flex; gap: 8px; flex-wrap: wrap; margin: 12px 0 18px; }
.state.complete { background: rgba(149, 217, 191, 0.08); border-color: rgba(149,217,191,0.25); color: var(--green); }
.muted-panel { background: var(--panel-2); }
.hero-card { display: flex; justify-content: space-between; align-items: center; padding: 28px; margin-bottom: 18px; background: linear-gradient(135deg, rgba(216,187,114,.15), rgba(49, 81, 75, .16)); }
.hero-card h2 { font-size: 34px; letter-spacing: -0.04em; }
.hero-points { text-align: right; }
.hero-points strong { display: block; font-size: 44px; }
.hero-points span { color: var(--gold); }
.task-grid, .resource-grid { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-top: 14px; }
.task-card strong, .resource-card strong { display: block; margin-bottom: 8px; }
.task-card span, .resource-card span { color: var(--gold); font-size: 12px; text-transform: uppercase; letter-spacing: .1em; }
.proof-form { display: grid; gap: 14px; max-width: 860px; }
.proof-form label { display: grid; gap: 6px; color: var(--gold); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 14px;
  color: var(--text);
  background: rgba(255,255,255,0.04);
  padding: 12px;
}
textarea { min-height: 120px; resize: vertical; }
.upload-drop { color: var(--muted); border-style: dashed; min-height: 90px; display: grid; place-items: center; text-align: center; }
@media (max-width: 1120px) {
  .metrics { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .two-column, .task-grid, .resource-grid { grid-template-columns: 1fr; }
}
@media (max-width: 820px) {
  .app-shell { display: block; }
  .sidebar { position: relative; width: auto; height: auto; }
  .main-panel { padding: 20px; }
  .topbar, .hero-card { align-items: flex-start; flex-direction: column; }
  .user-pill, .hero-points { text-align: left; width: 100%; }
  .metrics { grid-template-columns: 1fr; }
}

/* v1.5 live-data adapter polish */
.btn { cursor: pointer; transition: transform .16s ease, border-color .16s ease, background .16s ease; margin: 2px; }
.btn:hover { transform: translateY(-1px); border-color: rgba(246, 220, 144, 0.75); }
.toast {
  margin: 0 0 18px;
  padding: 13px 16px;
  border: 1px solid rgba(149, 217, 191, 0.28);
  border-radius: 16px;
  background: rgba(149, 217, 191, 0.10);
  color: #ddfff3;
  box-shadow: var(--shadow);
}
.loading-panel { color: var(--gold); }
.empty-state { color: var(--muted); padding: 16px 0; }
.muted-text { color: var(--muted); font-size: 12px; }
.adapter-note .btn { margin-top: 12px; width: 100%; }
.proof-form input[type="number"] { appearance: textfield; }
.proof-form button[type="submit"] { justify-self: start; }
.status-approved, .status-matched-manual, .status-fulfilled { color: var(--green); border-color: rgba(149, 217, 191, .26); background: rgba(149, 217, 191, .11); }
.status-rejected, .status-ignored { color: var(--red); border-color: rgba(255, 138, 138, .32); background: rgba(255, 138, 138, .10); }

/* v1.6 deeper UI build-out: modals, drawers, CSV preview, and detail surfaces */
.overlay,
.drawer-overlay {
  position: fixed;
  inset: 0;
  background: rgba(0, 0, 0, 0.58);
  backdrop-filter: blur(10px);
  z-index: 40;
}
.modal-card {
  position: fixed;
  z-index: 50;
  top: 50%;
  left: 50%;
  transform: translate(-50%, -50%);
  width: min(720px, calc(100vw - 32px));
  max-height: calc(100vh - 44px);
  overflow-y: auto;
  border: 1px solid rgba(216, 187, 114, 0.28);
  border-radius: 28px;
  background: linear-gradient(145deg, rgba(19, 26, 26, .98), rgba(10, 13, 13, .98));
  box-shadow: 0 32px 90px rgba(0, 0, 0, .56);
  padding: 22px;
}
.modal-head,
.drawer-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 18px;
}
.modal-form { display: grid; gap: 14px; }
.modal-form label,
.modal-form fieldset {
  display: grid;
  gap: 7px;
  color: var(--gold);
  font-size: 12px;
  letter-spacing: .08em;
  text-transform: uppercase;
}
.modal-form fieldset {
  border: 1px solid var(--line);
  border-radius: 18px;
  padding: 14px;
}
.modal-form legend { padding: 0 8px; }
.checkbox-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 8px; }
.checkbox-grid label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--text);
  letter-spacing: 0;
  text-transform: none;
}
.checkbox-grid input { width: auto; accent-color: var(--gold); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 8px; }
.import-preview-note {
  border: 1px dashed var(--line);
  border-radius: 16px;
  color: var(--muted);
  padding: 13px;
  background: rgba(255,255,255,0.03);
  line-height: 1.45;
}
.detail-drawer {
  position: fixed;
  z-index: 55;
  top: 0;
  right: 0;
  height: 100vh;
  width: min(460px, 92vw);
  overflow-y: auto;
  border-left: 1px solid rgba(216, 187, 114, 0.28);
  background: linear-gradient(160deg, rgba(19, 26, 26, .98), rgba(7, 9, 9, .99));
  box-shadow: -22px 0 80px rgba(0, 0, 0, .52);
  padding: 24px;
}
.drawer-body { display: grid; gap: 14px; }
.drawer-body h3 { margin: 14px 0 0; color: var(--gold); font-size: 13px; letter-spacing: .12em; text-transform: uppercase; }
.detail-row,
.drawer-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: rgba(255,255,255,0.04);
  padding: 12px;
}
.detail-row { display: flex; justify-content: space-between; gap: 12px; }
.detail-row span { color: var(--muted); }
.detail-row strong { text-align: right; }
.drawer-card strong { display: block; }
.drawer-card small { color: var(--muted); }
.compact-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); margin: 0 0 16px; }
.status-ready-to-insert { color: var(--green); background: rgba(149, 217, 191, .10); border-color: rgba(149, 217, 191, .28); }
.status-duplicate { color: var(--red); background: rgba(255, 138, 138, .10); border-color: rgba(255, 138, 138, .28); }
@media (max-width: 760px) {
  .checkbox-grid,
  .compact-metrics { grid-template-columns: 1fr; }
  .detail-drawer { width: 100vw; }
}
.readiness-list {
  display: grid;
  gap: 10px;
  margin-top: 16px;
}
.readiness-list span {
  border: 1px solid var(--line);
  background: rgba(255,255,255,0.04);
  border-radius: 14px;
  padding: 10px 12px;
  color: var(--muted);
}
.status-mock-active { color: var(--gold); background: rgba(216, 187, 114, .10); border-color: rgba(216, 187, 114, .28); }
.status-live-ready { color: var(--green); background: rgba(149, 217, 191, .10); border-color: rgba(149, 217, 191, .28); }


/* v1.9 UI polish + QA refinement */
.qa-hero {
  display: flex;
  justify-content: space-between;
  align-items: stretch;
  gap: 18px;
  background: linear-gradient(135deg, rgba(216,187,114,.16), rgba(149,217,191,.08));
}
.qa-hero h2 { font-size: 32px; letter-spacing: -0.035em; margin-bottom: 8px; }
.qa-scorecard { display: grid; gap: 10px; min-width: 260px; }
.qa-status-pill {
  border: 1px solid rgba(216,187,114,.22);
  border-radius: 18px;
  padding: 12px 14px;
  background: rgba(255,255,255,.045);
}
.qa-status-pill span { display: block; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .1em; }
.qa-status-pill strong { display: block; margin-top: 4px; color: var(--gold); }
.qa-status-pill small { display: block; color: var(--muted); margin-top: 3px; }
.flow-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; }
.flow-card {
  border: 1px solid rgba(216,187,114,.18);
  border-radius: 20px;
  padding: 16px;
  background: rgba(255,255,255,.035);
}
.flow-card h3 { margin-bottom: 10px; color: var(--gold); }
.flow-card ol { padding-left: 18px; color: var(--muted); }
.flow-card li { margin: 6px 0; }
.command-block {
  border: 1px solid rgba(149,217,191,.2);
  border-radius: 18px;
  padding: 16px;
  overflow-x: auto;
  background: rgba(0,0,0,.28);
  color: #ddfff3;
  line-height: 1.55;
}
.qa-note-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 8px; margin-top: 14px; }
.qa-note-grid span {
  border: 1px solid rgba(149,217,191,.16);
  border-radius: 999px;
  padding: 9px 12px;
  color: var(--muted);
  font-size: 12px;
  background: rgba(149,217,191,.06);
}
.status-needs-review { color: var(--gold); border-color: rgba(216,187,114,.3); background: rgba(216,187,114,.08); }
@media (max-width: 920px) {
  .qa-hero { flex-direction: column; }
  .qa-scorecard, .flow-grid, .qa-note-grid { grid-template-columns: 1fr; min-width: 0; }
}

/* v2.0 Wildoria Brand Theme Pass
   Visual anchor: posted Wildoria mark with owl, moon/portal, roots, bronze, gold, moss, and parchment tones.
   This is a theme layer only: it does not change data authority, permissions, attribution, or live wiring. */
:root {
  --bg: #241105;
  --panel: rgba(57, 30, 12, 0.90);
  --panel-2: rgba(77, 43, 18, 0.86);
  --line: rgba(214, 162, 56, 0.28);
  --gold: #d6a238;
  --gold-bright: #f0c96b;
  --gold-soft: rgba(214, 162, 56, 0.16);
  --bronze: #8f5522;
  --copper: #b66f2b;
  --sand: #c99561;
  --parchment: #e3bf91;
  --green: #a6b773;
  --moss: #5f6f36;
  --blue: #d2b46a;
  --red: #e58a65;
  --text: #f6e6c8;
  --muted: #d7b98c;
  --root-brown: #2b1609;
  --shadow: 0 26px 70px rgba(37, 17, 5, 0.46);
}
body {
  background:
    radial-gradient(circle at 52% -8%, rgba(214, 162, 56, .34), transparent 17rem),
    radial-gradient(circle at 8% 12%, rgba(201, 149, 97, .30), transparent 24rem),
    radial-gradient(circle at 92% 18%, rgba(95, 111, 54, .24), transparent 23rem),
    radial-gradient(circle at 70% 96%, rgba(143, 85, 34, .34), transparent 24rem),
    linear-gradient(135deg, #1c0e05 0%, #3a1f0d 48%, #140903 100%);
}
body::before {
  content: '';
  position: fixed;
  inset: 0;
  pointer-events: none;
  opacity: .22;
  background:
    repeating-radial-gradient(circle at 50% 18%, transparent 0 18px, rgba(246, 230, 200, .055) 19px 20px),
    linear-gradient(90deg, transparent, rgba(246, 230, 200, .035), transparent);
  mix-blend-mode: screen;
}
.sidebar {
  background:
    linear-gradient(180deg, rgba(43, 22, 9, .94), rgba(61, 32, 13, .86)),
    radial-gradient(circle at 50% 0%, rgba(214, 162, 56, .22), transparent 15rem);
  border-right-color: rgba(214, 162, 56, .35);
}
.sidebar::after {
  content: '';
  position: absolute;
  inset: 12px;
  border: 1px solid rgba(214, 162, 56, .10);
  border-radius: 30px;
  pointer-events: none;
}
.brand-mark {
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(214, 162, 56, .24);
  border-radius: 24px;
  background: linear-gradient(135deg, rgba(214, 162, 56, .13), rgba(95, 111, 54, .09));
}
.brand-sigil {
  width: 64px;
  height: 64px;
  border-radius: 22px;
  overflow: hidden;
  border: 1px solid rgba(246, 230, 200, .28);
  background: linear-gradient(145deg, #d9a368, #5b2d0e);
  box-shadow: 0 14px 34px rgba(214, 162, 56, .27), inset 0 0 0 1px rgba(246, 230, 200, .18);
}
.brand-sigil img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.15);
}
.brand-mark strong {
  color: var(--text);
  text-shadow: 0 0 22px rgba(214, 162, 56, .28);
}
.brand-mark span,
.user-pill small,
.panel small,
td small { color: rgba(246, 230, 200, .68); }
.nav-group p,
.eyebrow {
  color: var(--gold-bright);
  text-shadow: 0 0 16px rgba(214, 162, 56, .22);
}
.nav-link {
  color: rgba(246, 230, 200, .82);
  border-color: rgba(214, 162, 56, 0);
}
.nav-link span { color: var(--gold-bright); }
.nav-link.active,
.nav-link:hover {
  color: var(--text);
  background: linear-gradient(135deg, rgba(214, 162, 56, .18), rgba(95, 111, 54, .10));
  border-color: rgba(214, 162, 56, .30);
  box-shadow: inset 0 0 22px rgba(214, 162, 56, .055);
}
.side-note,
.user-pill,
.guardrail-grid span,
.state,
.task-card,
.resource-card,
.upload-drop,
.qa-status-pill,
.flow-card,
.drawer-card,
.detail-row,
.import-preview-note {
  background: rgba(246, 230, 200, .045);
  border-color: rgba(214, 162, 56, .22);
}
.metric-card,
.panel,
.hero-card {
  background:
    linear-gradient(145deg, rgba(65, 34, 13, .91), rgba(31, 15, 6, .90)),
    radial-gradient(circle at 50% 0%, rgba(214, 162, 56, .16), transparent 16rem);
  border-color: rgba(214, 162, 56, .30);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(246, 230, 200, .09);
}
.metric-card,
.panel,
.hero-card,
.modal-card,
.detail-drawer {
  position: relative;
}
.metric-card::before,
.panel::before,
.hero-card::before,
.modal-card::before,
.detail-drawer::before {
  content: '';
  position: absolute;
  inset: 9px;
  border: 1px solid rgba(214, 162, 56, .08);
  border-radius: inherit;
  pointer-events: none;
}
.panel-head h2,
h1,
h2,
.hero-card h2 {
  color: var(--text);
  text-shadow: 0 0 28px rgba(214, 162, 56, .18);
}
.metric-card span,
.metric-card small,
th,
.task-card span,
.resource-card span { color: var(--gold-bright); }
.metric-card strong,
.hero-points strong {
  color: #ffe2a0;
  text-shadow: 0 0 26px rgba(214, 162, 56, .24);
}
p { color: rgba(246, 230, 200, .73); }
.btn {
  background: linear-gradient(135deg, #f0c96b, #b97825 47%, #8f5522);
  color: #261304;
  border-color: rgba(246, 230, 200, .35);
  box-shadow: 0 12px 28px rgba(143, 85, 34, .20), inset 0 1px 0 rgba(255, 245, 210, .45);
}
.btn.ghost {
  color: var(--text);
  background: linear-gradient(135deg, rgba(246, 230, 200, .07), rgba(214, 162, 56, .08));
  border-color: rgba(214, 162, 56, .26);
}
.btn.danger {
  color: #ffe5da;
  background: linear-gradient(135deg, rgba(229, 138, 101, .19), rgba(89, 31, 17, .46));
  border-color: rgba(229, 138, 101, .38);
}
table { color: rgba(246, 230, 200, .86); }
th, td { border-bottom-color: rgba(214, 162, 56, .12); }
.chip,
.status {
  color: rgba(246, 230, 200, .88);
  background: rgba(246, 230, 200, .055);
  border-color: rgba(214, 162, 56, .18);
}
.status-active,
.status-approved,
.status-preview-ready,
.status-matched-manual,
.status-fulfilled,
.status-ready-to-insert {
  color: #d9ec9c;
  background: rgba(95, 111, 54, .22);
  border-color: rgba(166, 183, 115, .35);
}
.status-pending,
.status-needs-review,
.status-earned,
.status-custom-pending {
  color: #ffd983;
  background: rgba(214, 162, 56, .16);
  border-color: rgba(214, 162, 56, .38);
}
.status-rejected,
.status-removed,
.status-ignored,
.status-duplicate {
  color: #ffc3ae;
  background: rgba(229, 138, 101, .13);
  border-color: rgba(229, 138, 101, .36);
}
input,
select,
textarea {
  background: rgba(43, 22, 9, .66);
  color: var(--text);
  border-color: rgba(214, 162, 56, .28);
}
input::placeholder,
textarea::placeholder { color: rgba(246, 230, 200, .42); }
.modal-card,
.detail-drawer {
  background:
    linear-gradient(145deg, rgba(67, 35, 13, .98), rgba(27, 13, 5, .98)),
    radial-gradient(circle at 50% 0%, rgba(214, 162, 56, .18), transparent 18rem);
  border-color: rgba(214, 162, 56, .34);
}
.toast {
  color: #fff0cd;
  background: linear-gradient(135deg, rgba(214, 162, 56, .18), rgba(95, 111, 54, .14));
  border-color: rgba(214, 162, 56, .34);
}
.command-block,
code {
  color: #ffe8ad;
  background: rgba(43, 22, 9, .72);
  border-color: rgba(214, 162, 56, .24);
}
.brand-hero-panel {
  display: grid;
  grid-template-columns: 180px minmax(0, 1fr);
  gap: 24px;
  align-items: center;
  margin-bottom: 18px;
  padding: 26px;
  border: 1px solid rgba(214, 162, 56, .34);
  border-radius: 32px;
  background:
    radial-gradient(circle at 18% 32%, rgba(214, 162, 56, .24), transparent 16rem),
    linear-gradient(135deg, rgba(74, 38, 14, .92), rgba(30, 14, 5, .94));
  box-shadow: var(--shadow), inset 0 1px 0 rgba(246, 230, 200, .08);
  position: relative;
  overflow: hidden;
}
.brand-hero-panel::after {
  content: '';
  position: absolute;
  width: 340px;
  height: 340px;
  right: -120px;
  top: -150px;
  border: 1px solid rgba(214, 162, 56, .15);
  border-radius: 50%;
  box-shadow: 0 0 0 28px rgba(214, 162, 56, .035), 0 0 0 58px rgba(214, 162, 56, .025);
}
.brand-hero-orb {
  width: 160px;
  height: 160px;
  border-radius: 50%;
  overflow: hidden;
  border: 1px solid rgba(246, 230, 200, .26);
  box-shadow: 0 18px 48px rgba(214, 162, 56, .25), inset 0 0 0 2px rgba(246, 230, 200, .08);
  background: #c99561;
}
.brand-hero-orb img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  transform: scale(1.18);
}
.brand-hero-panel h2 {
  font-size: clamp(30px, 4vw, 54px);
  letter-spacing: -.055em;
  max-width: 850px;
}
.palette-grid,
.ritual-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.palette-card,
.ritual-card {
  padding: 15px;
  border: 1px solid rgba(214, 162, 56, .24);
  border-radius: 20px;
  background: rgba(246, 230, 200, .05);
}
.palette-card span {
  display: block;
  width: 100%;
  height: 42px;
  border-radius: 15px;
  margin-bottom: 12px;
  background: var(--swatch);
  border: 1px solid rgba(246, 230, 200, .24);
  box-shadow: inset 0 0 18px rgba(0, 0, 0, .16);
}
.palette-card strong,
.ritual-card strong {
  display: block;
  color: var(--text);
  margin-bottom: 4px;
}
.palette-card code {
  display: inline-block;
  margin: 2px 0 8px;
  padding: 4px 7px;
  border: 1px solid rgba(214, 162, 56, .20);
  border-radius: 999px;
  font-size: 12px;
}
.palette-card small,
.ritual-card p {
  color: rgba(246, 230, 200, .68);
}
@media (max-width: 1120px) {
  .palette-grid,
  .ritual-grid { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 820px) {
  .brand-hero-panel { grid-template-columns: 1fr; }
  .brand-hero-orb { width: 132px; height: 132px; }
  .palette-grid,
  .ritual-grid { grid-template-columns: 1fr; }
}

/* v2.2 CSV/QR UI Workflow Polish */
.qr-preview-strip {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(230px, 1fr));
  gap: 12px;
  margin: 12px 0 18px;
}
.qr-preview-card {
  display: grid;
  grid-template-columns: 86px minmax(0, 1fr);
  gap: 14px;
  align-items: center;
  padding: 12px;
  border: 1px solid rgba(214, 162, 56, .28);
  border-radius: 20px;
  background: linear-gradient(135deg, rgba(246, 230, 200, .065), rgba(95, 111, 54, .07));
}
.qr-preview-grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
  width: 82px;
  height: 82px;
  padding: 8px;
  border-radius: 14px;
  background: #f7e7c7;
  border: 1px solid rgba(214, 162, 56, .38);
  box-shadow: inset 0 0 0 2px rgba(43, 22, 9, .08);
}
.qr-preview-grid span {
  border-radius: 2px;
  background: rgba(43, 22, 9, .14);
}
.qr-preview-grid span.on { background: #2b1609; }
.qr-preview-card code {
  display: inline-block;
  margin-top: 6px;
  max-width: 100%;
  overflow-wrap: anywhere;
}
.qr-preview-card small {
  display: block;
  margin-top: 6px;
  color: rgba(246, 230, 200, .64);
}
.qr-workflow-note,
.import-preview-note {
  padding: 12px 14px;
  border: 1px solid rgba(214, 162, 56, .22);
  border-radius: 16px;
  background: rgba(246, 230, 200, .055);
  color: rgba(246, 230, 200, .76);
  line-height: 1.45;
}
input[type="file"] {
  padding: 12px;
  cursor: pointer;
}
textarea[name="csv_text"] { min-height: 116px; font-family: var(--mono); }
/* Ceremonial Gold remains the primary Wildoria action accent. */

/* v2.5 Supabase Read/Write Adapter Prep */
.status-mock-protected,
.status-mock-localstorage,
.status-live-config-ready,
.status-live-ready-pending-qa {
  color: var(--gold);
  background: rgba(216, 187, 114, .10);
  border-color: rgba(216, 187, 114, .30);
}
.status-live-supabase,
.status-live-enabled {
  color: var(--green);
  background: rgba(149, 217, 191, .10);
  border-color: rgba(149, 217, 191, .30);
}

/* v2.7 Local UI Completion */
.filter-bar {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin: 0 0 16px;
  padding: 12px;
  border: 1px solid rgba(214, 162, 56, .22);
  border-radius: 20px;
  background: rgba(246, 230, 200, .045);
}
.filter-bar label {
  display: grid;
  gap: 6px;
  color: var(--gold-bright);
  font-size: 11px;
  letter-spacing: .1em;
  text-transform: uppercase;
}
.workflow-summary {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(210px, 1fr));
  gap: 10px;
  margin: 12px 0 14px;
}
.workflow-summary span,
.local-completion-panel .drawer-card {
  border: 1px solid rgba(214, 162, 56, .22);
  border-radius: 16px;
  padding: 11px 12px;
  background: rgba(246, 230, 200, .045);
  color: rgba(246, 230, 200, .76);
}
.status-committed-local {
  color: #d9ec9c;
  background: rgba(95, 111, 54, .22);
  border-color: rgba(166, 183, 115, .35);
}

/* v2.8 Enchanted Forest UI Alignment
   User selected the third brainstorm image: deep forest / midnight teal base, antique gold accents,
   moss glow, celestial detail, and minimal bronze. This supersedes the heavier brown v2.0 palette
   while keeping the Wildoria mark and all local/mock workflows intact. */
:root {
  --bg: #061513;
  --panel: rgba(8, 34, 28, 0.92);
  --panel-2: rgba(12, 44, 35, 0.88);
  --line: rgba(212, 175, 55, 0.24);
  --gold: #d4af37;
  --gold-bright: #e6c46a;
  --gold-soft: rgba(212, 175, 55, 0.14);
  --bronze: #a36a3f;
  --copper: #a36a3f;
  --sand: #f2ead7;
  --parchment: #fbf7ef;
  --green: #a8e5b6;
  --moss: #1e4b3a;
  --blue: #132a3a;
  --red: #ff8d79;
  --text: #f2ead7;
  --muted: #aebfb1;
  --root-brown: #071512;
  --midnight-teal: #0b1f24;
  --deep-forest: #0e2b22;
  --pine: #12362b;
  --shadow: 0 28px 80px rgba(0, 0, 0, 0.46);
  --mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, "Liberation Mono", monospace;
}
body {
  background:
    radial-gradient(circle at 12% 8%, rgba(30, 75, 58, .36), transparent 24rem),
    radial-gradient(circle at 72% -6%, rgba(212, 175, 55, .20), transparent 18rem),
    radial-gradient(circle at 94% 18%, rgba(19, 42, 58, .44), transparent 24rem),
    radial-gradient(circle at 50% 110%, rgba(8, 56, 43, .38), transparent 28rem),
    linear-gradient(135deg, #06100f 0%, #08221c 44%, #071318 100%);
}
body::before {
  opacity: .20;
  background:
    radial-gradient(circle at 18% 16%, rgba(230, 196, 106, .10) 0 1px, transparent 1px 100%),
    repeating-radial-gradient(circle at 50% 20%, transparent 0 24px, rgba(230, 196, 106, .035) 25px 26px),
    linear-gradient(90deg, transparent, rgba(242, 234, 215, .028), transparent);
  background-size: 86px 86px, auto, auto;
}
.sidebar {
  background:
    radial-gradient(circle at 50% 8%, rgba(212, 175, 55, .16), transparent 13rem),
    linear-gradient(180deg, rgba(3, 16, 15, .94), rgba(9, 32, 27, .92));
  border-right-color: rgba(212, 175, 55, .30);
}
.sidebar::after { border-color: rgba(212, 175, 55, .12); }
.brand-mark {
  background: linear-gradient(135deg, rgba(212, 175, 55, .10), rgba(30, 75, 58, .16));
  border-color: rgba(212, 175, 55, .23);
}
.brand-sigil {
  background: linear-gradient(145deg, #0b1f24, #12362b 48%, #d4af37);
  box-shadow: 0 14px 34px rgba(212, 175, 55, .18), inset 0 0 0 1px rgba(242, 234, 215, .10);
}
.brand-mark strong { color: #f2ead7; text-shadow: 0 0 22px rgba(212, 175, 55, .18); }
.brand-mark span, .user-pill small, .panel small, td small { color: rgba(242, 234, 215, .60); }
.nav-group p, .eyebrow { color: var(--gold-bright); }
.nav-link { color: rgba(242, 234, 215, .78); }
.nav-link span { color: var(--gold-bright); }
.nav-link.active, .nav-link:hover {
  background: linear-gradient(135deg, rgba(212, 175, 55, .16), rgba(30, 75, 58, .20));
  border-color: rgba(212, 175, 55, .28);
  box-shadow: inset 0 0 22px rgba(212, 175, 55, .05), 0 10px 24px rgba(0,0,0,.18);
}
.metric-card, .panel, .hero-card {
  background:
    linear-gradient(145deg, rgba(9, 36, 30, .94), rgba(4, 19, 18, .93)),
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .10), transparent 17rem);
  border-color: rgba(212, 175, 55, .26);
  box-shadow: var(--shadow), inset 0 1px 0 rgba(242, 234, 215, .065);
}
.side-note, .user-pill, .guardrail-grid span, .state, .task-card, .resource-card, .upload-drop,
.qa-status-pill, .flow-card, .drawer-card, .detail-row, .import-preview-note, .workflow-summary span,
.local-completion-panel .drawer-card, .filter-bar, .qr-preview-card, .qr-workflow-note {
  background: rgba(242, 234, 215, .045);
  border-color: rgba(212, 175, 55, .20);
}
.panel-head h2, h1, h2, .hero-card h2 {
  color: #fbf7ef;
  text-shadow: 0 0 28px rgba(212, 175, 55, .14);
}
p { color: rgba(242, 234, 215, .66); }
.metric-card span, .metric-card small, th, .task-card span, .resource-card span, .filter-bar label { color: var(--gold-bright); }
.metric-card strong, .hero-points strong { color: #f7e6ad; text-shadow: 0 0 26px rgba(212, 175, 55, .18); }
.btn {
  background: linear-gradient(135deg, #e6c46a, #d4af37 48%, #8c6a22);
  color: #06100f;
  border-color: rgba(242, 234, 215, .34);
  box-shadow: 0 12px 28px rgba(0, 0, 0, .22), inset 0 1px 0 rgba(255, 245, 210, .42);
}
.btn.ghost {
  color: #f2ead7;
  background: linear-gradient(135deg, rgba(242, 234, 215, .055), rgba(30, 75, 58, .16));
  border-color: rgba(212, 175, 55, .22);
}
.btn.danger {
  color: #ffe5dc;
  background: linear-gradient(135deg, rgba(255, 141, 121, .18), rgba(70, 19, 20, .30));
  border-color: rgba(255, 141, 121, .34);
}
input, select, textarea, code, .command-block {
  background: rgba(2, 15, 14, .66);
  color: #f2ead7;
  border-color: rgba(212, 175, 55, .22);
}
input::placeholder, textarea::placeholder { color: rgba(242, 234, 215, .38); }
table { color: rgba(242, 234, 215, .84); }
th, td { border-bottom-color: rgba(212, 175, 55, .105); }
.chip, .status { color: rgba(242, 234, 215, .86); background: rgba(242, 234, 215, .048); border-color: rgba(212, 175, 55, .18); }
.status-active, .status-approved, .status-preview-ready, .status-matched-manual, .status-fulfilled, .status-ready-to-insert,
.status-committed-local, .status-live-supabase, .status-live-enabled {
  color: #a8e5b6;
  background: rgba(30, 75, 58, .24);
  border-color: rgba(168, 229, 182, .32);
}
.status-pending, .status-needs-review, .status-earned, .status-custom-pending,
.status-mock-active, .status-mock-protected, .status-mock-localstorage, .status-live-config-ready, .status-live-ready-pending-qa {
  color: #e6c46a;
  background: rgba(212, 175, 55, .13);
  border-color: rgba(212, 175, 55, .34);
}
.status-rejected, .status-removed, .status-ignored, .status-duplicate {
  color: #ffb4a4;
  background: rgba(255, 141, 121, .12);
  border-color: rgba(255, 141, 121, .32);
}
.modal-card, .detail-drawer {
  background:
    linear-gradient(145deg, rgba(9, 36, 30, .99), rgba(3, 15, 15, .99)),
    radial-gradient(circle at 50% 0%, rgba(212, 175, 55, .12), transparent 18rem);
  border-color: rgba(212, 175, 55, .30);
}
.toast {
  color: #f2ead7;
  background: linear-gradient(135deg, rgba(212, 175, 55, .15), rgba(30, 75, 58, .19));
  border-color: rgba(212, 175, 55, .30);
}
.qr-preview-grid {
  background: #f2ead7;
  border-color: rgba(212, 175, 55, .45);
}
.qr-preview-grid span.on { background: #061513; }
.brand-hero-panel {
  background:
    radial-gradient(circle at 18% 32%, rgba(212, 175, 55, .16), transparent 16rem),
    linear-gradient(135deg, rgba(12, 44, 35, .94), rgba(4, 19, 18, .94));
  border-color: rgba(212, 175, 55, .28);
}
.palette-card, .ritual-card {
  background: rgba(242, 234, 215, .045);
  border-color: rgba(212, 175, 55, .20);
}

/* v2.9 Final Local MVP Hardening: demo-ready polish, mobile refinement, honest blocked states */
.workflow-kicker {
  color: #e6c46a;
  letter-spacing: .14em;
  text-transform: uppercase;
  font-size: 11px;
  margin: 4px 0 12px;
  opacity: .92;
}
.demo-run-panel {
  background:
    radial-gradient(circle at 92% 16%, rgba(212, 175, 55, .15), transparent 13rem),
    linear-gradient(145deg, rgba(10, 43, 34, .76), rgba(3, 20, 19, .68));
}
.demo-script-card,
.blocked-state-card {
  border: 1px solid rgba(212, 175, 55, .20);
  border-radius: 18px;
  background: rgba(242, 234, 215, .048);
  padding: 14px;
  margin: 10px 0;
  box-shadow: inset 0 1px 0 rgba(251, 247, 239, .045);
}
.demo-script-card div {
  display: flex;
  gap: 10px;
  align-items: baseline;
  margin-bottom: 8px;
}
.demo-script-card span {
  color: #e6c46a;
  font-size: 11px;
  letter-spacing: .12em;
  text-transform: uppercase;
}
.demo-script-card h3,
.blocked-state-card h3 {
  margin: 0;
  color: #fbf7ef;
}
.demo-script-card ol {
  margin: 0;
  padding-left: 20px;
  color: rgba(242, 234, 215, .72);
}
.demo-script-card li { margin: 5px 0; }
.blocked-grid {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
}
.blocked-state-card p {
  min-height: 58px;
  margin: 10px 0;
}
.blocked-state-card small {
  color: #e6c46a;
  display: block;
  line-height: 1.45;
}
.table-wrap:empty::before,
.flow-grid:empty::before {
  content: 'No local records yet. Add or import records to populate this surface.';
  color: rgba(242, 234, 215, .58);
  display: block;
  padding: 18px;
}
.member-mobile-card {
  position: relative;
  overflow: hidden;
}
.member-mobile-card::after {
  content: '';
  position: absolute;
  inset: auto -20% -55% 30%;
  height: 190px;
  background: radial-gradient(circle, rgba(212, 175, 55, .11), transparent 64%);
  pointer-events: none;
}
@media (max-width: 1080px) {
  .blocked-grid { grid-template-columns: 1fr; }
  .demo-script-card div { align-items: flex-start; flex-direction: column; gap: 2px; }
}
@media (max-width: 720px) {
  body { background-attachment: scroll; }
  .main-panel { padding: 14px; }
  .sidebar { padding: 14px; }
  .brand-mark { margin-bottom: 16px; }
  .nav-link { min-height: 44px; }
  .panel, .metric-card, .hero-card, .modal-card, .detail-drawer {
    border-radius: 20px;
  }
  .panel { padding: 16px; }
  .panel-head { gap: 10px; }
  .panel-head > div { display: flex; flex-wrap: wrap; gap: 6px; }
  .btn { min-height: 42px; }
  .table-wrap {
    margin-left: -8px;
    margin-right: -8px;
    padding: 0 8px 8px;
    overflow-x: auto;
  }
  table { min-width: 720px; }
  .modal-card {
    width: calc(100vw - 18px);
    padding: 16px;
  }
  .detail-drawer {
    width: 100%;
    max-width: none;
    border-left: 0;
    border-radius: 24px 24px 0 0;
    top: auto;
    height: min(88vh, 780px);
  }
  .drawer-head { align-items: flex-start; }
  .qr-preview-card { grid-template-columns: 92px 1fr; }
  .qr-preview-grid { width: 92px; height: 92px; }
  .filter-bar { grid-template-columns: 1fr; }
  .state-machine { grid-template-columns: 1fr; }
  .qa-note-grid { grid-template-columns: 1fr; }
}

/* v3.4 Live Supabase Bootstrap + Deployment Runner */
.live-bootstrap-panel {
  border-color: rgba(212, 175, 55, 0.42);
  box-shadow: 0 24px 80px rgba(8, 27, 22, 0.36);
}
.live-bootstrap-panel code {
  color: var(--soft-gold);
  white-space: normal;
}

/* v4.1.1 modal stability patch: keep every button-launched form centered, usable, and independent of page layout. */
.modal-host {
  position: fixed;
  inset: 0;
  z-index: 1000;
  display: grid;
  place-items: center;
  padding: clamp(14px, 3vw, 32px);
  overflow-y: auto;
  overscroll-behavior: contain;
}
.modal-host .overlay {
  position: fixed;
  inset: 0;
  z-index: 0;
}
.modal-host .modal-card {
  position: relative;
  z-index: 1;
  top: auto;
  left: auto;
  right: auto;
  bottom: auto;
  transform: none;
  width: min(760px, 100%);
  max-height: min(92vh, 920px);
  margin: auto;
  overflow-y: auto;
  pointer-events: auto;
}
.modal-host .modal-form,
.modal-host .modal-head,
.modal-host .modal-actions {
  position: relative;
  z-index: 2;
}
@media (max-width: 720px) {
  .modal-host {
    align-items: start;
    padding: 10px;
  }
  .modal-host .modal-card {
    width: 100%;
    max-height: calc(100vh - 20px);
  }
}

.mobile-companion-hero {
  background:
    linear-gradient(135deg, rgba(216, 187, 114, 0.18), rgba(18,24,25,0.95)),
    radial-gradient(circle at 80% 0%, rgba(149, 217, 191, 0.16), transparent 18rem);
}
.compact-metrics { grid-template-columns: repeat(4, minmax(0, 1fr)); }

/* v4.9.9 Review Mode / Demo Input Polish */
.modal-card,
.modal-form,
.modal-form label,
.modal-form input,
.modal-form select,
.modal-form textarea,
.proof-form input,
.proof-form select,
.proof-form textarea {
  pointer-events: auto;
}
.modal-form input,
.modal-form select,
.modal-form textarea,
.proof-form input,
.proof-form select,
.proof-form textarea {
  position: relative;
  z-index: 2;
  user-select: text;
  caret-color: #ffe2a0;
}
.review-demo-note {
  padding: 12px 14px;
  border: 1px dashed rgba(214, 162, 56, .34);
  border-radius: 16px;
  background: rgba(246, 230, 200, .055);
  color: rgba(246, 230, 200, .78);
  line-height: 1.45;
  letter-spacing: normal;
  text-transform: none;
  font-size: 13px;
}
.review-demo-note strong { color: #ffe2a0; }
.review-demo-note.live {
  border-style: solid;
  background: rgba(149, 217, 191, .08);
}

/* v4.9.9 Transparent POMS Logo Header Hotfix
   Uses the supplied Wildoria POMS artwork with the outer white/square background removed.
   The logo image itself is transparent outside the oval mark; the app name remains available through alt/ARIA text. */
.brand-mark.brand-mark-poms {
  display: block;
  padding: 6px;
  margin-bottom: 22px;
  border-radius: 28px;
  background: radial-gradient(circle at 50% 42%, rgba(212, 175, 55, .10), rgba(4, 10, 9, .28) 68%);
  border: 1px solid rgba(212, 175, 55, .18);
  box-shadow: 0 16px 38px rgba(0, 0, 0, .24), inset 0 0 0 1px rgba(242, 234, 215, .045);
}
.brand-poms-logo {
  display: block;
  width: 100%;
  max-width: 236px;
  height: auto;
  margin: 0 auto;
  border-radius: 0;
  object-fit: contain;
  background: transparent;
  box-shadow: none;
}

/* Legacy v2.0 anchor token retained for brand continuity checks: wildoria-theme-anchor.png */

/* v4.9.9 Help Center / How-To panel */
.help-teaser {
  border: 1px solid rgba(149, 217, 191, 0.18);
  background: linear-gradient(135deg, rgba(149, 217, 191, 0.08), rgba(216, 187, 114, 0.05));
}
.help-guide {
  display: grid;
  gap: 1rem;
}
.help-section {
  border: 1px solid rgba(255, 255, 255, 0.08);
  border-radius: 18px;
  padding: 1rem;
  background: rgba(255, 255, 255, 0.035);
}
.help-section h3 {
  margin: 0 0 .55rem;
  color: var(--gold);
}
.help-section p,
.help-section li {
  color: var(--muted);
  line-height: 1.55;
}
.help-section ul {
  margin: .25rem 0 0 1.1rem;
  padding: 0;
}

/* v4.9.9 delete confirmation clarity */
.delete-warning {
  border: 1px solid rgba(255, 141, 121, .34);
  background: rgba(70, 19, 20, .20);
  border-radius: 18px;
  padding: 14px 16px;
  color: rgba(242, 234, 215, .88);
}
.delete-warning strong { color: #ffe5dc; }
.delete-warning p { margin: 8px 0 0; }

.qr-preview-real svg { width: 104px; height: 104px; border-radius: 12px; display: block; box-shadow: 0 0 0 1px rgba(216,187,114,.18); }

/* v4.9.18 authenticated live access */
.auth-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
  background:
    radial-gradient(circle at 20% 15%, rgba(216, 187, 114, .14), transparent 34%),
    radial-gradient(circle at 80% 85%, rgba(149, 217, 191, .11), transparent 30%),
    #050908;
}
.auth-card {
  width: min(520px, 100%);
  padding: 30px;
  border-radius: 28px;
  border: 1px solid rgba(216, 187, 114, .25);
  background: linear-gradient(145deg, rgba(13, 24, 21, .97), rgba(5, 10, 9, .98));
  box-shadow: 0 35px 90px rgba(0,0,0,.48);
}
.auth-card h1 { margin: .2rem 0 .7rem; }
.auth-card p, .auth-card small { color: var(--muted); line-height: 1.55; }
.auth-logo { width: 150px; max-width: 45%; display: block; margin: 0 auto 18px; }
.auth-form { margin: 22px 0 14px; }
.auth-form .btn { width: 100%; justify-content: center; }
.auth-error { position: static; margin: 14px 0; background: rgba(90, 25, 25, .92); }
.user-pill .btn { margin-top: 7px; padding: 6px 10px; font-size: 11px; }

.form-submit-error {
  border: 1px solid rgba(255, 119, 119, 0.65);
  background: rgba(110, 22, 22, 0.32);
  color: #ffd7d7;
  border-radius: 10px;
  padding: 0.8rem 0.9rem;
  margin: 0.25rem 0 0.8rem;
  line-height: 1.4;
}

/* v4.9.21 first-login welcome and guided setup */
.check-row {
  display: flex !important;
  align-items: center;
  gap: .65rem;
  color: var(--text);
}
.check-row input { width: auto !important; margin: 0; }
.getting-started-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  background:
    radial-gradient(circle at 88% 20%, rgba(233, 152, 47, .16), transparent 34%),
    linear-gradient(135deg, rgba(216,187,114,.10), rgba(11,25,20,.96));
}
.getting-started-card > div:last-child { text-align: right; min-width: 170px; }
.getting-started-card > div:last-child strong { display: block; font-size: 1.5rem; color: var(--gold); margin-bottom: .55rem; }
.onboarding-overlay {
  position: fixed;
  inset: 0;
  z-index: 5000;
  display: grid;
  place-items: center;
  overflow-y: auto;
  padding: clamp(18px, 4vw, 56px);
}
.onboarding-backdrop {
  position: fixed;
  inset: 0;
  background:
    radial-gradient(circle at 50% 10%, rgba(218, 103, 17, .18), transparent 34rem),
    radial-gradient(circle at 20% 70%, rgba(62, 126, 95, .16), transparent 28rem),
    rgba(1, 4, 4, .88);
  backdrop-filter: blur(18px) saturate(.72);
}
.onboarding-backdrop::before,
.onboarding-backdrop::after {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  background-image:
    radial-gradient(circle, rgba(238,177,76,.55) 0 1px, transparent 1.8px),
    radial-gradient(circle, rgba(255,226,151,.32) 0 1px, transparent 1.6px);
  background-size: 83px 83px, 137px 137px;
  background-position: 12px 31px, 51px 16px;
  opacity: .19;
  animation: welcomeDrift 18s linear infinite;
}
.onboarding-backdrop::after { transform: scale(1.18); opacity: .11; animation-duration: 28s; animation-direction: reverse; }
@keyframes welcomeDrift { from { translate: 0 0; } to { translate: 0 -83px; } }
.onboarding-stage {
  position: relative;
  z-index: 1;
  width: min(1040px, 100%);
  min-height: min(720px, calc(100vh - 56px));
  display: grid;
  grid-template-columns: minmax(250px, .78fr) minmax(420px, 1.35fr);
  align-items: center;
  border: 1px solid rgba(225, 172, 73, .34);
  border-radius: 34px;
  overflow: hidden;
  background:
    linear-gradient(125deg, rgba(4,10,8,.98), rgba(11,24,20,.96)),
    #07100d;
  box-shadow: 0 45px 120px rgba(0,0,0,.66), inset 0 0 80px rgba(216,187,114,.025);
}
.onboarding-logo-wrap {
  align-self: stretch;
  display: grid;
  place-items: center;
  padding: 34px 18px;
  background:
    radial-gradient(circle at 50% 38%, rgba(229, 107, 19, .18), transparent 42%),
    linear-gradient(180deg, rgba(255,255,255,.015), rgba(0,0,0,.19));
  border-right: 1px solid rgba(216,187,114,.15);
}
.onboarding-logo {
  width: min(320px, 92%);
  max-height: 620px;
  object-fit: contain;
  filter: drop-shadow(0 0 22px rgba(221, 126, 31, .22)) drop-shadow(0 22px 36px rgba(0,0,0,.5));
  animation: welcomeLogoReveal 1.05s cubic-bezier(.18,.78,.24,1) both;
}
@keyframes welcomeLogoReveal {
  from { opacity: 0; transform: translateY(16px) scale(.965); filter: blur(8px) drop-shadow(0 0 0 rgba(0,0,0,0)); }
  to { opacity: 1; transform: translateY(0) scale(1); }
}
.onboarding-panel {
  position: relative;
  padding: clamp(30px, 5vw, 66px);
  max-height: calc(100vh - 76px);
  overflow-y: auto;
  animation: welcomePanelReveal .7s .12s ease-out both;
}
@keyframes welcomePanelReveal { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.welcome-hero-copy h1 { font-size: clamp(2rem, 4vw, 3.3rem); line-height: 1.03; margin-bottom: 1.35rem; color: #fff8e9; }
.welcome-hero-copy p { font-size: 1.02rem; color: #c9cfca; max-width: 62ch; }
.onboarding-primary { min-width: 190px; margin-top: .8rem; }
.onboarding-progress { display: flex; gap: 8px; margin-bottom: 26px; }
.onboarding-progress span { height: 4px; flex: 1; border-radius: 999px; background: rgba(255,255,255,.1); transition: .25s ease; }
.onboarding-progress span.active { background: linear-gradient(90deg, #9a6327, #efb64b); box-shadow: 0 0 16px rgba(239,182,75,.22); }
.onboarding-step-copy h2, .onboarding-complete h2 { font-size: clamp(1.75rem, 3vw, 2.55rem); margin-bottom: .65rem; }
.onboarding-form { margin-top: 1.15rem; }
.onboarding-form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 13px; }
.onboarding-form label, .onboarding-issue label {
  display: grid;
  gap: .45rem;
  color: #e8e4da;
  font-size: .83rem;
  font-weight: 700;
}
.onboarding-form input, .onboarding-form select, .onboarding-issue textarea {
  width: 100%;
  padding: 12px 13px;
  border-radius: 13px;
  border: 1px solid rgba(216,187,114,.2);
  background: rgba(255,255,255,.045);
  color: var(--text);
  outline: none;
}
.onboarding-form input:focus, .onboarding-form select:focus, .onboarding-issue textarea:focus { border-color: rgba(239,182,75,.7); box-shadow: 0 0 0 3px rgba(239,182,75,.08); }
.onboarding-note { margin: 12px 0; padding: 11px 13px; border-radius: 13px; background: rgba(149,217,191,.08); border: 1px solid rgba(149,217,191,.18); color: #dcefe7; }
.onboarding-actions { display: flex; gap: 10px; justify-content: flex-end; margin-top: 22px; }
.onboarding-assignment-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.onboarding-assignment-grid > div, .onboarding-device-grid article {
  padding: 17px;
  border: 1px solid rgba(216,187,114,.15);
  background: rgba(255,255,255,.035);
  border-radius: 17px;
}
.onboarding-assignment-grid span, .onboarding-device-grid span { display: block; color: var(--gold); text-transform: uppercase; letter-spacing: .12em; font-size: .67rem; margin-bottom: 7px; }
.onboarding-assignment-grid strong, .onboarding-device-grid strong { font-size: 1rem; color: #fff5df; }
.onboarding-issue { margin-top: 18px; border-top: 1px solid rgba(255,255,255,.08); padding-top: 14px; color: var(--gold); }
.onboarding-issue summary { cursor: pointer; font-weight: 800; }
.onboarding-issue form { display: grid; gap: 12px; margin-top: 12px; }
.onboarding-issue textarea { min-height: 100px; resize: vertical; }
.onboarding-feature-grid { display: grid; grid-template-columns: repeat(3, minmax(0,1fr)); gap: 12px; margin-top: 22px; }
.onboarding-feature-grid article {
  padding: 20px 17px;
  border-radius: 18px;
  border: 1px solid rgba(216,187,114,.17);
  background: linear-gradient(150deg, rgba(216,187,114,.07), rgba(255,255,255,.025));
  animation: featureRise .5s calc(var(--delay) * .08s) both;
}
@keyframes featureRise { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: none; } }
.onboarding-feature-grid article > span { color: var(--gold); font-size: .75rem; letter-spacing: .15em; }
.onboarding-feature-grid h3 { margin: 14px 0 7px; color: #fff2d4; }
.onboarding-feature-grid p { font-size: .88rem; margin: 0; }
.onboarding-device-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 14px; margin-top: 22px; }
.onboarding-complete { text-align: center; max-width: 560px; margin: auto; }
.onboarding-ready-mark { width: 88px; height: 88px; display: grid; place-items: center; margin: 25px auto 12px; border-radius: 50%; color: #f5bd4d; font-size: 2.3rem; border: 1px solid rgba(245,189,77,.35); background: radial-gradient(circle, rgba(245,189,77,.17), rgba(245,189,77,.02)); box-shadow: 0 0 50px rgba(245,189,77,.13); }
@media (max-width: 840px) {
  .onboarding-overlay { padding: 0; }
  .onboarding-stage { width: 100%; min-height: 100vh; border-radius: 0; grid-template-columns: 1fr; align-content: start; }
  .onboarding-logo-wrap { align-self: auto; border-right: 0; border-bottom: 1px solid rgba(216,187,114,.13); padding: 18px 12px 8px; max-height: 240px; }
  .onboarding-logo { width: 150px; max-height: 215px; }
  .onboarding-panel { max-height: none; padding: 24px 20px 40px; }
  .onboarding-form-grid, .onboarding-assignment-grid, .onboarding-device-grid { grid-template-columns: 1fr; }
  .onboarding-feature-grid { grid-template-columns: 1fr; }
  .getting-started-card { align-items: flex-start; }
}
@media (prefers-reduced-motion: reduce) {
  .onboarding-backdrop::before, .onboarding-backdrop::after, .onboarding-logo, .onboarding-panel, .onboarding-feature-grid article { animation: none !important; }
}

/* v4.9.25 Recruiting Command, WILDORIA Pulse & Catalog Hierarchy */
.permission-fieldset {
  margin: 16px 0;
  padding: 16px;
  border: 1px solid rgba(216,187,114,.18);
  border-radius: 18px;
  background: rgba(255,255,255,.025);
}
.permission-fieldset legend { padding: 0 8px; color: var(--gold); font-weight: 800; }
.permission-fieldset .field-note { margin: 0 0 12px; color: var(--muted); font-size: .82rem; }
.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0,1fr)); gap: 9px; }
.permission-grid label { display: flex; align-items: center; gap: 9px; padding: 10px 11px; border-radius: 12px; border: 1px solid rgba(255,255,255,.07); background: rgba(255,255,255,.025); color: #e9e4d8; font-size: .82rem; }
.permission-grid input { width: auto !important; accent-color: var(--gold); }
.permission-grid input:disabled + span { opacity: .48; }

.wildoria-pulse {
  position: relative;
  overflow: hidden;
  border-color: rgba(230, 174, 67, .25);
  background:
    radial-gradient(circle at 10% 0%, rgba(63, 143, 104, .15), transparent 28rem),
    radial-gradient(circle at 94% 5%, rgba(232, 135, 26, .18), transparent 24rem),
    linear-gradient(145deg, rgba(7,18,14,.98), rgba(5,9,8,.98));
}
.wildoria-pulse::before {
  content: '';
  position: absolute;
  inset: 0;
  pointer-events: none;
  opacity: .12;
  background-image: radial-gradient(circle at 1px 1px, rgba(242,195,96,.9) 1px, transparent 0);
  background-size: 28px 28px;
  mask-image: linear-gradient(120deg, #000, transparent 72%);
}
.wildoria-pulse > * { position: relative; z-index: 1; }
.pulse-live-dot { display: inline-flex; align-items: center; gap: 7px; padding: 7px 10px; border-radius: 999px; border: 1px solid rgba(104,207,151,.25); color: #bff3d4; background: rgba(46,122,78,.17); font-size: .68rem; font-weight: 900; letter-spacing: .14em; }
.pulse-live-dot::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: #79d6a1; box-shadow: 0 0 16px rgba(121,214,161,.8); animation: pulseLive 1.8s ease-in-out infinite; }
@keyframes pulseLive { 50% { opacity: .45; transform: scale(.76); } }
.pulse-layout { display: grid; grid-template-columns: minmax(380px,1.05fr) minmax(360px,.95fr); gap: 22px; align-items: stretch; margin-top: 18px; }
.pulse-layout-metrics-only { grid-template-columns: 1fr; }
.pulse-layout-metrics-only .pulse-side { width: 100%; }
.pulse-map-wrap { position: relative; min-height: 390px; display: grid; align-content: center; padding: 18px; border-radius: 24px; border: 1px solid rgba(216,187,114,.13); background: radial-gradient(circle at 50% 45%, rgba(214,146,45,.12), transparent 55%), rgba(0,0,0,.18); }
.pulse-map-wrap > small { display: block; max-width: 56ch; margin: 8px auto 0; color: rgba(223,226,219,.56); text-align: center; }
.pulse-map { width: 100%; min-height: 300px; overflow: visible; }
.colorado-shape { fill: rgba(16,42,31,.62); stroke: rgba(230,184,90,.58); stroke-width: 1.05; filter: drop-shadow(0 18px 28px rgba(0,0,0,.28)); }
.colorado-grid { fill: none; stroke: rgba(234,207,151,.11); stroke-width: .45; stroke-dasharray: 1.5 2.1; }
.pulse-node { color: #4c8f70; }
.pulse-node.heat-1 { color: #5fa27d; }
.pulse-node.heat-2 { color: #b79743; }
.pulse-node.heat-3 { color: #d49b38; }
.pulse-node.heat-4 { color: #e87f26; }
.pulse-node.heat-5 { color: #ff5f1c; }
.pulse-node .pulse-core { fill: currentColor; stroke: rgba(255,247,220,.8); stroke-width: .45; filter: drop-shadow(0 0 5px currentColor); }
.pulse-node .pulse-ring { fill: url(#pulseGlow); opacity: .55; transform-origin: center; animation: pulseMapRing 2.4s ease-in-out infinite; }
.pulse-node text { fill: rgba(239,235,220,.72); font-size: 3px; font-weight: 750; paint-order: stroke; stroke: rgba(0,0,0,.7); stroke-width: .6px; }
@keyframes pulseMapRing { 50% { opacity: .16; transform: scale(1.35); } }
.pulse-empty-label { fill: rgba(237,232,216,.55); font-size: 4px; letter-spacing: .04em; }
.pulse-side { display: grid; align-content: start; gap: 15px; }
.pulse-metrics { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 12px; }
.pulse-metrics .metric-card { min-height: 112px; background: rgba(255,255,255,.035); border-color: rgba(255,255,255,.08); }
.pulse-milestones { display: grid; gap: 10px; }
.pulse-milestone { padding: 12px 14px; border-radius: 15px; border: 1px solid rgba(255,255,255,.075); background: rgba(255,255,255,.025); }
.pulse-milestone > div:first-child { display: flex; justify-content: space-between; gap: 12px; align-items: baseline; }
.pulse-milestone strong { color: #eee9dd; font-size: .82rem; }
.pulse-milestone span { color: var(--muted); font-size: .72rem; }
.pulse-milestone.complete { border-color: rgba(103,199,149,.23); background: rgba(48,116,80,.1); }
.pulse-progress { height: 6px; overflow: hidden; margin-top: 9px; border-radius: 999px; background: rgba(255,255,255,.07); }
.pulse-progress i { display: block; height: 100%; min-width: 2px; border-radius: inherit; background: linear-gradient(90deg, #4b9e74, #d4a13c, #ed7923); box-shadow: 0 0 16px rgba(224,151,51,.25); }
.wildoria-pulse.compact .pulse-layout { grid-template-columns: 1fr; }
.wildoria-pulse.compact .pulse-map-wrap { min-height: 260px; }

.catalog-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px,1fr)); gap: 16px; }
.catalog-card { overflow: hidden; display: flex; flex-direction: column; min-height: 100%; border-radius: 22px; border: 1px solid rgba(216,187,114,.17); background: linear-gradient(150deg, rgba(18,29,24,.98), rgba(7,11,10,.98)); box-shadow: 0 18px 40px rgba(0,0,0,.22); }
.catalog-image { position: relative; aspect-ratio: 4 / 3; overflow: hidden; display: grid; place-items: center; background: #070908; border-bottom: 1px solid rgba(216,187,114,.11); }
.catalog-image img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .28s ease; }
.catalog-card:hover .catalog-image img { transform: scale(1.025); }
.catalog-placeholder { width: 100%; height: 100%; display: grid; place-items: center; text-align: center; padding: 20px; color: rgba(241,211,150,.7); text-transform: uppercase; letter-spacing: .16em; font-size: .72rem; background: radial-gradient(circle at 50% 36%, rgba(225,145,47,.2), transparent 55%), repeating-linear-gradient(135deg, rgba(255,255,255,.024) 0 1px, transparent 1px 13px); }
.catalog-body { display: flex; flex: 1; flex-direction: column; padding: 17px; }
.catalog-body h3 { margin: 2px 0 8px; font-size: 1.1rem; color: #fff4dc; }
.catalog-body p { color: var(--muted); font-size: .84rem; }
.catalog-tags { display: flex; flex-wrap: wrap; gap: 6px; margin: 11px 0; }
.catalog-tags span, .catalog-scope { display: inline-flex; width: fit-content; padding: 5px 8px; border-radius: 999px; border: 1px solid rgba(255,255,255,.08); background: rgba(255,255,255,.04); color: #d8d4ca; font-size: .67rem; }
.catalog-scope { margin: 0 0 11px; color: #c7ecd7; border-color: rgba(104,190,146,.2); background: rgba(45,111,75,.12); }
.catalog-actions { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; padding-top: 11px; }

@media (max-width: 980px) {
  .pulse-layout { grid-template-columns: 1fr; }
  .pulse-map-wrap { min-height: 310px; }
}
@media (max-width: 700px) {
  .permission-grid, .pulse-metrics { grid-template-columns: 1fr; }
  .pulse-map-wrap { min-height: 250px; padding: 10px; }
  .pulse-map { min-height: 220px; }
  .catalog-grid { grid-template-columns: 1fr; }
}
@media (prefers-reduced-motion: reduce) {
  .pulse-live-dot::before, .pulse-node .pulse-ring, .catalog-image img { animation: none !important; transition: none !important; }
}

/* WILDORIA Community Chat & Announcement Boards */
.community-hero {
  display: flex;
  justify-content: space-between;
  gap: 24px;
  align-items: center;
  background:
    radial-gradient(circle at 12% 18%, rgba(216,187,114,.14), transparent 26rem),
    radial-gradient(circle at 88% 72%, rgba(75,142,112,.12), transparent 24rem),
    linear-gradient(145deg, rgba(18,24,22,.98), rgba(8,12,12,.98));
}
.community-hero h2 { margin: 0 0 8px; font-size: clamp(28px, 3vw, 44px); }
.community-hero p { max-width: 760px; }
.community-live-state { display: grid; grid-template-columns: auto 1fr; gap: 2px 9px; min-width: 180px; padding: 13px 16px; border: 1px solid rgba(216,187,114,.18); border-radius: 18px; background: rgba(0,0,0,.18); }
.community-live-state i { grid-row: 1 / 3; align-self: center; width: 10px; height: 10px; border-radius: 50%; background: #8ad8b6; box-shadow: 0 0 18px rgba(138,216,182,.7); }
.community-live-state strong { font-size: 13px; }
.community-live-state span { color: var(--muted); font-size: 11px; }
.community-shell { padding: 0; overflow: hidden; }
.community-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 16px 18px; border-bottom: 1px solid rgba(255,255,255,.07); background: rgba(0,0,0,.12); }
.community-tabs { display: flex; gap: 8px; flex-wrap: wrap; }
.community-tab { position: relative; border: 1px solid rgba(216,187,114,.16); border-radius: 999px; padding: 9px 13px; color: var(--muted); background: rgba(255,255,255,.03); font-weight: 800; cursor: pointer; }
.community-tab.active { color: #111710; background: linear-gradient(135deg, #e4ca82, #aa8540); border-color: transparent; }
.community-tab span { display: inline-grid; place-items: center; min-width: 20px; height: 20px; margin-left: 7px; padding: 0 5px; border-radius: 999px; background: rgba(0,0,0,.22); color: inherit; font-size: 10px; }
.community-region-select { display: grid; gap: 4px; min-width: 190px; color: var(--muted); font-size: 11px; text-transform: uppercase; letter-spacing: .11em; }
.community-region-select select { border: 1px solid rgba(216,187,114,.2); border-radius: 12px; padding: 9px 11px; color: var(--text); background: #101615; }
.community-channel-head { display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 20px 22px 10px; }
.community-channel-head h2 { margin: 0; }
.community-refreshing { color: var(--muted); font-size: 12px; }
.community-compose { margin: 12px 22px 20px; padding: 17px; border: 1px solid rgba(216,187,114,.18); border-radius: 20px; background: linear-gradient(145deg, rgba(216,187,114,.07), rgba(255,255,255,.025)); }
.community-compose-identity { display: flex; gap: 11px; align-items: center; margin-bottom: 12px; }
.community-compose-identity > span { width: 38px; height: 38px; display: grid; place-items: center; border-radius: 50%; color: #101512; background: linear-gradient(135deg, #e7cf8d, #9d7a38); font-weight: 900; }
.community-compose-identity strong, .community-compose-identity small { display: block; }
.community-compose-identity small { color: var(--muted); margin-top: 2px; }
.community-compose-form label { display: grid; gap: 6px; color: var(--muted); font-size: 12px; font-weight: 700; }
.community-compose-form input, .community-compose-form textarea { width: 100%; border: 1px solid rgba(216,187,114,.18); border-radius: 14px; padding: 12px 13px; color: var(--text); background: rgba(0,0,0,.22); font: inherit; }
.community-compose-form textarea { min-height: 90px; resize: vertical; }
.community-compose-actions { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 10px; }
.community-compose-actions > span { color: var(--muted); font-size: 11px; }
.community-compose-actions .btn { width: auto; margin: 0; }
.community-pin { display: flex !important; grid-template-columns: auto 1fr; align-items: center; gap: 8px !important; }
.community-pin input { width: auto; accent-color: #d8bb72; }
.community-readonly { margin: 12px 22px 20px; display: grid; gap: 4px; padding: 14px 16px; border: 1px dashed rgba(216,187,114,.2); border-radius: 16px; color: var(--muted); }
.community-readonly strong { color: var(--text); }
.community-feed { padding: 0 22px 24px; display: grid; gap: 11px; }
.community-loading { padding: 28px; text-align: center; color: var(--muted); }
.community-post { display: grid; grid-template-columns: 44px minmax(0,1fr); gap: 12px; padding: 16px; border: 1px solid rgba(255,255,255,.07); border-radius: 18px; background: rgba(255,255,255,.025); }
.community-post.announcement { border-color: rgba(216,187,114,.22); background: linear-gradient(145deg, rgba(216,187,114,.08), rgba(255,255,255,.025)); }
.community-post.pinned { box-shadow: inset 3px 0 0 #d8bb72; }
.community-post.community-editing { grid-template-columns: 1fr; }
.community-avatar { width: 44px; height: 44px; display: grid; place-items: center; border-radius: 50%; color: #e8d39a; background: rgba(216,187,114,.11); border: 1px solid rgba(216,187,114,.18); font-weight: 900; }
.community-post-head { display: flex; justify-content: space-between; gap: 12px; align-items: flex-start; }
.community-post-head strong, .community-post-head small { display: block; }
.community-post-head small, .community-post-head time { color: var(--muted); font-size: 11px; }
.community-post-main > p { margin: 10px 0 13px; color: #e8e6df; line-height: 1.55; overflow-wrap: anywhere; }
.community-announcement-title { display: flex; gap: 9px; align-items: center; margin-top: 11px; }
.community-announcement-title span { padding: 4px 7px; border-radius: 999px; background: #d8bb72; color: #111611; font-size: 9px; font-weight: 900; letter-spacing: .08em; }
.community-announcement-title h3 { margin: 0; font-size: 19px; }
.community-post-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.community-reactions { display: flex; gap: 5px; flex-wrap: wrap; }
.community-reaction { border: 1px solid rgba(255,255,255,.08); border-radius: 999px; padding: 5px 8px; color: var(--muted); background: rgba(255,255,255,.025); cursor: pointer; }
.community-reaction.active { border-color: rgba(216,187,114,.38); background: rgba(216,187,114,.12); color: var(--text); }
.community-reaction span { margin-left: 4px; font-size: 10px; }
.community-post-actions { display: flex; gap: 8px; }
.community-post-actions button { border: 0; background: none; color: var(--muted); cursor: pointer; font-size: 11px; }
.community-post-actions button:hover { color: var(--gold); }
@media (max-width: 760px) {
  .community-hero, .community-toolbar, .community-post-footer { align-items: stretch; flex-direction: column; }
  .community-live-state { min-width: 0; }
  .community-region-select { min-width: 0; width: 100%; }
  .community-post { grid-template-columns: 36px minmax(0,1fr); padding: 13px; }
  .community-avatar { width: 36px; height: 36px; }
  .community-post-head { flex-direction: column; gap: 3px; }
}


/* WILDORIA member profile photos */
.profile-avatar { --avatar-size:44px; width:var(--avatar-size); height:var(--avatar-size); flex:0 0 var(--avatar-size); border-radius:50%; display:grid; place-items:center; overflow:hidden; background:rgba(216,187,114,.13); border:1px solid rgba(216,187,114,.28); color:#ead79d; font-weight:900; letter-spacing:.02em; }
.profile-avatar img { width:100%; height:100%; object-fit:cover; display:block; }
.profile-avatar-header { --avatar-size:38px; }
.profile-avatar-table { --avatar-size:38px; }
.profile-avatar-compose { --avatar-size:40px; }
.profile-avatar-editor { --avatar-size:88px; border-width:2px; }
.user-pill-identity { display:flex; align-items:center; gap:10px; }
.user-pill-identity > div { display:grid; gap:2px; }
.member-name-cell { display:flex; align-items:center; gap:10px; min-width:180px; }
.member-name-cell > div { display:grid; }
.profile-photo-editor { display:flex; align-items:center; gap:18px; padding:16px; border:1px solid var(--line); border-radius:18px; background:rgba(255,255,255,.025); }
.profile-photo-copy { display:grid; gap:8px; flex:1; }
.profile-photo-copy small { color:var(--muted); }
.profile-photo-copy input[type=file] { width:100%; }
.profile-photo-actions { display:flex; flex-wrap:wrap; gap:8px; }
.community-avatar { overflow:hidden; }
.community-avatar img { width:100%; height:100%; object-fit:cover; }
@media (max-width:720px) { .profile-photo-editor { align-items:flex-start; flex-direction:column; } }
