/* main-4-openings-collections-2.css -- split from main-4-openings-collections.css (File Split Plan #6, CSS pass).
   Pure move: byte-identical rules, only the file boundary is new. Loaded via
   its own <link> tag in index.html immediately after main-4-openings-collections.css's, preserving
   the exact cascade order the single file had. */

/* ── Mobile: greeting text smaller + readable on circuit board ── */
@media (max-width: 767px) {
  #discovery-greeting-strip .dgs-text {
    font-size: 13px !important;
    line-height: 1.7 !important;
    letter-spacing: 0.04em !important;
    padding: 12px 16px !important;
    background: rgba(4,6,14,0.55) !important;
    -webkit-background-clip: unset !important;
    background-clip: unset !important;
    -webkit-text-fill-color: rgba(220,185,100,0.95) !important;
    border-radius: 8px !important;
    text-shadow: 0 1px 4px rgba(0,0,0,0.8) !important;
  }
}

/* ── Chat panel layout adjustment when floating bar ───── */
.panel[data-panel="chat"] {
  display: flex;
  flex-direction: column;
}
.chat-messages {
  flex: 1;
  overflow-y: auto;
  overflow-x: hidden;
  padding: 24px 20px 24px;
  display: flex;
  flex-direction: column;
  gap: 16px;
  -webkit-overflow-scrolling: touch;
  scrollbar-width: thin;
  scrollbar-color: var(--ink5) transparent;
  position: relative;
  z-index: 1;
  transition: padding-bottom 0.4s ease;
  max-height: 100%;
}
.chat-messages.has-messages {
  padding-bottom: 16px;
}

/* ── Files Panel ───────────────────────────────────────── */
.files-outer { display: flex; height: 100%; overflow: hidden; }

/* Collection sidebar — RAISED (highest z-plane) */
.col-sidebar {
  width: 220px; flex-shrink: 0;
  border-right: 1px solid rgba(160,120,32,0.22);
  display: flex; flex-direction: column;
  background: linear-gradient(175deg,
    rgba(22,28,46,1) 0%,
    rgba(16,21,36,1) 40%,
    rgba(12,16,28,1) 75%,
    rgba(9,12,22,1) 100%);
  box-shadow:
    4px 0 20px rgba(0,0,0,0.65),
    2px 0 8px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(210,175,90,0.18),
    inset 1px 0 0 rgba(210,175,90,0.06),
    inset -1px 0 0 rgba(0,0,0,0.30);
  position: relative;
  z-index: 2;
}
/* Raised surface: subtle bevel highlight along top edge */
.col-sidebar::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 2px;
  background: linear-gradient(90deg,
    rgba(160,120,32,0.22) 0%,
    rgba(210,175,90,0.55) 35%,
    rgba(210,175,90,0.45) 65%,
    rgba(160,120,32,0.12) 100%);
  pointer-events: none;
  z-index: 3;
}
.col-sidebar-head {
  padding: 14px 16px;
  border-bottom: 1px solid rgba(160,120,32,0.16);
  flex-shrink: 0;
  position: relative;
  background: linear-gradient(180deg,
    rgba(26,32,52,1) 0%,
    rgba(20,26,42,1) 55%,
    rgba(16,20,34,1) 100%);
  box-shadow:
    0 3px 10px rgba(0,0,0,0.50),
    0 1px 3px rgba(0,0,0,0.35),
    inset 0 1px 0 rgba(210,175,90,0.14),
    inset 0 -1px 0 rgba(0,0,0,0.40);
}
.col-sidebar-head::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(160,120,32,0.15) 0%,
    rgba(210,175,90,0.55) 35%,
    rgba(210,175,90,0.40) 70%,
    transparent 100%);
}
.col-sidebar-title {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.18em;
  color: var(--smoke3);
  text-transform: uppercase;
}
.col-sidebar-dept {
  font-family: var(--f-ui);
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  display: inline-block;
  margin-top: 6px;
  padding: 5px 12px;
  position: relative;
  border-radius: 3px;
  background: linear-gradient(180deg, rgba(16,21,36,0.95) 0%, rgba(10,13,24,0.98) 100%);
  border: 1px solid rgba(160,120,32,0.22);
  border-top-color: rgba(210,175,90,0.08);
  border-bottom-color: rgba(0,0,0,0.55);
  box-shadow: inset 0 1px 0 rgba(210,175,90,0.06), 0 1px 3px rgba(0,0,0,0.50);
}
.col-sidebar-dept .dept-label {
  color: rgba(160,120,32,0.80);
  display: block;
}
.col-sidebar-dept::before {
  content: '';
  position: absolute; top: 0; left: 12%; right: 12%; height: 1px;
  background: linear-gradient(90deg, transparent, rgba(210,175,90,0.30) 50%, transparent);
}
.col-sidebar-dept::after { display: none; }
.col-list { flex: 1; overflow-y: auto; padding: 8px; scrollbar-width: none; }
.col-list::-webkit-scrollbar { display: none; }
.col-all {
  display: flex; align-items: center; gap: 9px;
  padding: 9px 12px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  margin-bottom: 4px;
  transition: background 0.12s, border-color 0.12s;
}
.col-all:hover { background: var(--gold-dim); }
.col-all.active { background: rgba(160,120,32,0.08); border-color: rgba(160,120,32,0.20); }
.col-all-icon { font-size: 12px; color: var(--smoke3); }
.col-all-name {
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 300;
  color: var(--smoke2);
}
.col-all.active .col-all-name { color: var(--gold-lt); }
.col-divider { height: 1px; background: var(--line); margin: 6px 4px; }
.col-section-label {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.20em;
  color: var(--smoke4);
  text-transform: uppercase;
  padding: 8px 12px 4px;
}
.col-section-label.primary {
  font-size: 9px;
  letter-spacing: 0.22em;
  color: var(--gold-metal-2);
  text-shadow: 0 0 10px rgba(160,120,32,0.2);
  padding: 12px 12px 6px;
  border-top: 1px solid rgba(160,120,32,0.16);
  margin-top: 2px;
  position: relative;
}
.col-section-label.primary::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, rgba(160,120,32,0.35) 0%, rgba(210,175,90,0.5) 30%, transparent 70%);
}
.col-item {
  display: flex; align-items: center; gap: 8px;
  padding: 9px 12px;
  border-radius: var(--r);
  border: 1px solid transparent;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 0.12s, border-color 0.12s;
  position: relative;
}
.col-item::before {
  content: '';
  position: absolute; left: 0; top: 15%; bottom: 15%;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-metal-1), var(--gold-metal-3));
  opacity: 0;
  transition: opacity 0.18s;
}
.col-item:hover { background: var(--gold-dim); }
.col-item.active { border-color: rgba(160,120,32,0.28); border-top-color: rgba(210,175,90,0.12); border-bottom-color: rgba(0,0,0,0.60); background: linear-gradient(180deg, rgba(18,24,40,0.96) 0%, rgba(10,13,24,0.98) 100%); box-shadow: inset 0 1px 0 rgba(210,175,90,0.08), inset 0 -1px 0 rgba(0,0,0,0.45), 0 2px 6px rgba(0,0,0,0.60); }
.col-item.active::before { opacity: 0.7; }
.col-icon { font-size: 11px; color: var(--smoke4); flex-shrink: 0; }
.col-info { flex: 1; min-width: 0; }
.col-name {
  font-size: 12px;
  font-weight: 300;
  color: var(--smoke2);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
}
.col-item.active .col-name { color: var(--gold-lt); }
.col-count {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 300;
  color: var(--smoke4);
  margin-top: 1px;
  letter-spacing: 0.06em;
}
.col-del {
  background: none; border: none;
  color: transparent;
  font-size: 11px;
  cursor: pointer;
  padding: 3px;
  border-radius: 3px;
  flex-shrink: 0;
  transition: color 0.15s;
}
.col-item:hover .col-del { color: var(--smoke4); }
.col-del:hover { color: var(--red-lt) !important; }

/* Files main area */
.files-main { flex: 1; min-height: 0; display: flex; flex-direction: column; overflow: hidden; }
.files-top {
  padding: 16px 20px 14px;
  border-bottom: 1px solid rgba(160,120,32,0.14);
  flex-shrink: 0;
  background: linear-gradient(180deg,
    rgba(12,16,28,1) 0%,
    rgba(9,12,22,1) 50%,
    rgba(7,10,18,1) 100%);
  position: relative;
  box-shadow:
    0 4px 16px rgba(0,0,0,0.55),
    0 2px 6px rgba(0,0,0,0.40),
    inset 0 1px 0 rgba(210,175,90,0.08),
    inset 0 2px 6px rgba(0,0,0,0.35),
    inset 0 -1px 0 rgba(0,0,0,0.45);
  z-index: 1;
}
/* Faint gold accent line at top of files-top */
.files-top::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(160,120,32,0.04),
    rgba(160,120,32,0.14) 25%,
    rgba(210,175,90,0.22) 50%,
    rgba(160,120,32,0.14) 75%,
    rgba(160,120,32,0.04));
  pointer-events: none;
}
/* Etched shadow line at the bottom of files-top */
.files-top::after {
  content: '';
  position: absolute; bottom: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg,
    rgba(160,120,32,0.04),
    rgba(160,120,32,0.16) 30%,
    rgba(160,120,32,0.16) 70%,
    rgba(160,120,32,0.04));
}
.upload-area { display: flex; gap: 10px; align-items: flex-end; }
.col-input-group { flex: 1; }
.col-input-label {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.18em;
  color: var(--smoke4);
  text-transform: uppercase;
  margin-bottom: 6px;
}
.col-input {
  width: 100%;
  padding: 9px 13px;
  background: var(--ink3);
  border: 1px solid var(--line2);
  border-radius: var(--r);
  color: var(--smoke);
  font-family: var(--f-body);
  font-size: 12px;
  font-weight: 300;
  outline: none;
  transition: border-color 0.2s, box-shadow 0.2s;
  -webkit-appearance: none;
  letter-spacing: 0.02em;
}
.col-input::placeholder { color: var(--smoke4); }
.col-input:focus { border-color: var(--gold); box-shadow: 0 0 0 3px var(--gold-dim); }
.upload-btn {
  padding: 7px 16px;
  background: linear-gradient(180deg, rgba(16,21,36,0.95) 0%, rgba(10,13,24,0.98) 100%);
  border: 1px solid rgba(160,120,32,0.22);
  border-top-color: rgba(210,175,90,0.08);
  border-bottom-color: rgba(0,0,0,0.55);
  border-radius: var(--r);
  color: rgba(160,120,32,0.70);
  font-family: var(--f-ui);
  font-size: 10px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  cursor: pointer;
  white-space: nowrap;
  flex-shrink: 0;
  align-self: center;
  transition: all 0.15s;
  box-shadow: inset 0 1px 0 rgba(210,175,90,0.06), 0 1px 3px rgba(0,0,0,0.50);
  -webkit-appearance: none;
}
.upload-btn:hover { border-color: rgba(160,120,32,0.38); color: rgba(160,120,32,0.95); background: linear-gradient(180deg, rgba(20,26,44,0.97) 0%, rgba(12,16,28,1) 100%); }
.upload-btn:active { opacity: 0.7; }
.uprog { display: none; margin-top: 10px; }
.uprog.on { display: block; }
.plabel {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--smoke3);
  margin-bottom: 5px;
  text-transform: uppercase;
}
.ptrack { height: 1px; background: rgba(160,120,32,0.14); }
.pfill { height: 100%; background: linear-gradient(90deg, var(--gold-metal-3), var(--gold-metal-2)); transition: width 0.3s; }
.plog {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.06em;
  color: var(--smoke4);
  margin-top: 6px;
  max-height: 60px;
  overflow-y: auto;
  line-height: 1.9;
  scrollbar-width: none;
}
.plog::-webkit-scrollbar { display: none; }

.files-body {
  flex: 1; overflow-y: auto; padding: 16px 20px;
  scrollbar-width: thin; scrollbar-color: var(--ink5) transparent;
  background: linear-gradient(180deg,
    rgba(2,3,7,1) 0%,
    rgba(3,4,9,1) 30%,
    rgba(4,6,12,1) 70%,
    rgba(5,7,14,1) 100%);
  box-shadow:
    inset 0 6px 18px rgba(0,0,0,0.75),
    inset 0 3px 8px rgba(0,0,0,0.60),
    inset 0 1px 3px rgba(0,0,0,0.80),
    inset 4px 0 12px rgba(0,0,0,0.35),
    inset -4px 0 12px rgba(0,0,0,0.35);
    inset 0 2px 4px rgba(0,0,0,0.40);
}
.files-body::-webkit-scrollbar { width: 3px; }
.files-body::-webkit-scrollbar-thumb { background: var(--ink5); }
.fhead {
  display: flex; align-items: baseline; justify-content: space-between;
  margin-bottom: 12px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(160,120,32,0.12);
}
.ftitle {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 300;
  letter-spacing: 0.06em;
  color: var(--smoke);
}
.fbadge {
  font-family: var(--f-ui);
  font-size: 9px;
  font-weight: 300;
  letter-spacing: 0.12em;
  color: var(--smoke4);
  text-transform: uppercase;
}
.fcard {
  display: flex; align-items: center; gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(170deg, rgba(11,14,24,1) 0%, rgba(8,11,20,1) 50%, rgba(6,8,16,1) 100%);
  border: 1px solid rgba(160,120,32,0.12);
  border-top-color: rgba(210,175,90,0.06);
  border-bottom-color: rgba(0,0,0,0.65);
  border-radius: var(--r);
  margin-bottom: 6px;
  transition: border-color 0.18s, background 0.18s, box-shadow 0.18s;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.55),
    0 1px 3px rgba(0,0,0,0.45),
    inset 0 1px 0 rgba(210,175,90,0.05),
    inset 0 -1px 0 rgba(0,0,0,0.45),
    inset 0 1px 4px rgba(0,0,0,0.30);
}
.fcard::before {
  content: '';
  position: absolute; left: 0; top: 0; bottom: 0;
  width: 2px;
  background: linear-gradient(180deg, var(--gold-metal-1), var(--gold-metal-3));
  opacity: 0;
  transition: opacity 0.18s;
}
.fcard:hover { border-color: rgba(160,120,32,0.20); background: rgba(160,120,32,0.03); }
.fcard.focused { border-color: rgba(160,120,32,0.32); background: rgba(160,120,32,0.05); }
.fcard.focused::before { opacity: 0.7; }

/* ── AI Classification styles ───────────────────────── */
.fcard.ai-pending { border-color: rgba(160,120,32,0.26); }
.fcard.ai-pending::after {
  content: '';
  position: absolute; top: 8px; right: 8px;
  width: 7px; height: 7px; border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 6px rgba(160,120,32,0.75);
  animation: aiPulse 1.4s ease-in-out infinite;
}
.fcard.ai-reviewed { border-color: rgba(42,122,75,0.3); }
.fcard.ai-reviewed::after {
  content: '\2713';
  position: absolute; top: 6px; right: 8px;
  font-size: 9px; color: var(--green-lt);
  font-family: var(--f-mono);
}
@keyframes aiPulse {
  0%, 100% { opacity: 0.5; transform: scale(1); }
  50%       { opacity: 1;   transform: scale(1.3); }
}

/* AI Review Panel */
#ai-review-panel {
  display: none;
  background: var(--ink2);
  border: 1px solid rgba(160,120,32,0.24);
  border-radius: var(--r2);
  margin: 0 0 14px 0;
  overflow: hidden;
}
#ai-review-panel.open { display: block; }
.aip-header {
  display: flex; align-items: center; gap: 10px;
  padding: 10px 16px;
  background: rgba(160,120,32,0.08);
  border-bottom: 1px solid rgba(160,120,32,0.14);
}
.aip-title {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.14em; text-transform: uppercase;
  color: var(--gold-lt); flex: 1;
}
.aip-apply-all {
  padding: 4px 12px; border-radius: 3px;
  border: 1px solid var(--line3); background: var(--gold-dim);
  color: var(--gold-lt); font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.1em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.aip-apply-all:hover { background: rgba(160,120,32,0.18); border-color: var(--gold); }
.aip-dismiss {
  background: none; border: none; color: var(--smoke4);
  font-size: 16px; cursor: pointer; padding: 0 4px;
  transition: color 0.15s;
}
.aip-dismiss:hover { color: var(--smoke); }
.aip-rows { max-height: 280px; overflow-y: auto; scrollbar-width: none; }
.aip-rows::-webkit-scrollbar { display: none; }
.aip-row {
  display: grid;
  grid-template-columns: 1fr 90px 100px 110px auto;
  gap: 6px; align-items: center;
  padding: 8px 16px;
  border-bottom: 1px solid rgba(160,120,32,0.08);
  font-family: var(--f-mono); font-size: 9px;
}
.aip-row:last-child { border-bottom: none; }
.aip-row.applied { opacity: 0.4; }
.aip-file { color: var(--smoke2); letter-spacing: 0.02em; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.aip-field {
  padding: 3px 6px; border-radius: 3px;
  border: 1px solid var(--line); background: var(--ink3);
  color: var(--smoke); font-family: var(--f-mono);
  font-size: 9px; width: 100%; outline: none;
  transition: border-color 0.15s;
}
.aip-field:focus { border-color: var(--gold); }
.aip-apply-btn {
  padding: 3px 10px; border-radius: 3px;
  border: 1px solid var(--line2); background: none;
  color: var(--smoke3); font-family: var(--f-mono);
  font-size: 9px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; white-space: nowrap; transition: all 0.15s;
  flex-shrink: 0;
}
.aip-apply-btn:hover { border-color: var(--gold); color: var(--gold-lt); background: var(--gold-dim); }
.aip-apply-btn.done { border-color: var(--green-lt); color: var(--green-lt); cursor: default; }
.aip-ctx-suggest {
  grid-column: 1 / -1;
  display: flex; align-items: center; gap: 8px;
  padding: 4px 0 2px;
  font-size: 9px; color: var(--gold-lt);
  letter-spacing: 0.06em;
}
.aip-ctx-btn {
  padding: 2px 8px; border-radius: 3px;
  border: 1px solid rgba(160,120,32,0.35); background: var(--gold-dim);
  color: var(--gold-lt); font-family: var(--f-mono);
  font-size: 8px; letter-spacing: 0.08em; text-transform: uppercase;
  cursor: pointer; transition: all 0.15s;
}
.aip-ctx-btn:hover { background: rgba(160,120,32,0.18); }

/* AI classify toggle in admin */
.ai-classify-row {
  display: flex; align-items: center; gap: 12px;
  margin-top: 14px; padding-top: 14px;
  border-top: 1px solid var(--line);
}
.ai-classify-label {
  font-family: var(--f-mono); font-size: 10px;
  letter-spacing: 0.06em; color: var(--smoke3); flex: 1;
}
.ai-classify-cost {
  font-family: var(--f-mono); font-size: 9px;
  color: var(--smoke4); letter-spacing: 0.04em;
}
.ficon {
  font-family: var(--f-mono);
  font-size: 10px;
  letter-spacing: 0.06em;
  color: var(--smoke4);
  width: 30px;
  text-align: center;
  flex-shrink: 0;
  text-transform: uppercase;
  background: var(--ink4);
  padding: 4px 3px;
  border-radius: 3px;
  border: 1px solid var(--line);
}
.finfo { flex: 1; min-width: 0; }
.fname {
  font-size: 12px;
  font-weight: 400;
  color: var(--smoke);
  white-space: nowrap; overflow: hidden; text-overflow: ellipsis;
  letter-spacing: 0.01em;
}
.fmeta {
  font-family: var(--f-mono);
  font-size: 9px;
  color: var(--smoke4);
  margin-top: 3px;
  letter-spacing: 0.06em;
}
.factions { display: flex; gap: 4px; flex-shrink: 0; }
.fact-btn {
  background: none;
  border: 1px solid transparent;
  border-radius: 3px;
  color: var(--smoke4);
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  cursor: pointer;
  padding: 4px 8px;
  transition: all 0.15s;
  white-space: nowrap;
}
.fact-btn:hover { border-color: var(--line2); color: var(--smoke2); }
.fact-btn.focus-active { color: var(--gold-lt); border-color: var(--line3); background: var(--gold-dim); }
.fact-btn.del:hover { border-color: var(--red); color: var(--red-lt); }
.fempty {
  text-align: center;
  padding: 48px 24px;
  color: var(--smoke4);
  font-size: 12px;
  font-weight: 300;
  line-height: 1.9;
  font-family: var(--f-mono);
  letter-spacing: 0.06em;
}
.fempty-title {
  font-family: var(--f-display);
  font-size: 20px;
  font-weight: 300;
  color: var(--smoke3);
  letter-spacing: 0.08em;
  margin-bottom: 8px;
}


/* ── Admin ─────────────────────────────────────────────── */
.admin-wrap {
  overflow-y: auto;
  padding: 24px;
  height: 100%;
  scrollbar-width: thin;
  scrollbar-color: var(--ink5) transparent;
  /* Cap at 1200 on wide screens to keep cards from stretching into giant rectangles
     on 27"+ monitors, but let it fill more of the viewport than the old 700 cap.
     On narrow screens the panel naturally fills available width. */
  max-width: 1200px;
  position: relative;
}
.admin-wrap::-webkit-scrollbar { width: 3px; }
.admin-wrap::-webkit-scrollbar-thumb { background: var(--ink5); }
.asec { margin-bottom: 32px; }
.asec-head {
  display: flex; align-items: center; gap: 12px;
  margin-bottom: 14px;
  padding-bottom: 10px;
  border-bottom: 1px solid rgba(0,0,0,0.55);
  box-shadow: 0 1px 0 rgba(160,120,32,0.08);
}
.asec-line { flex: 1; height: 1px; background: linear-gradient(90deg, rgba(160,120,32,0.2), transparent); }
.asec-title {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.22em;
  color: var(--smoke4);
  text-transform: uppercase;
  white-space: nowrap;
}
.sgrid { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.scard {
  background: linear-gradient(160deg, rgba(10,15,26,0.99) 0%, rgba(6,9,18,1) 100%);
  border: 1px solid rgba(160,120,32,0.16);
  border-top-color: rgba(210,175,90,0.20);
  border-bottom-color: rgba(0,0,0,0.60);
  border-radius: var(--r);
  padding: 14px 16px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 2px 8px rgba(0,0,0,0.55),
    0 1px 2px rgba(0,0,0,0.70),
    inset 0 1px 0 rgba(210,175,90,0.08),
    inset 0 -1px 0 rgba(0,0,0,0.40);
}
.scard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent, rgba(160,120,32,0.5), transparent);
  opacity: 0;
  transition: opacity 0.2s;
}
.scard.ok::before { opacity: 1; }
.scard-label {
  font-family: var(--f-mono);
  font-size: 8px;
  letter-spacing: 0.16em;
  color: var(--smoke4);
  text-transform: uppercase;
  margin-bottom: 5px;
}
.scard-val {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 300;
  color: var(--smoke2);
  letter-spacing: 0.04em;
  margin-bottom: 8px;
}
.srow { display: flex; align-items: center; gap: 6px; }
.spip { width: 5px; height: 5px; border-radius: 50%; background: var(--green-lt); box-shadow: 0 0 5px var(--green-lt); flex-shrink: 0; }
.spip.warn { background: var(--amber-lt); box-shadow: 0 0 5px var(--amber-lt); }
.spip.off { background: var(--smoke4); box-shadow: none; }
.srow-text { font-family: var(--f-mono); font-size: 9px; letter-spacing: 0.08em; color: var(--smoke3); }
.acard {
  background: linear-gradient(170deg, rgba(20,28,48,1) 0%, rgba(11,15,28,1) 40%, rgba(7,10,18,1) 100%);
  border: 1px solid rgba(160,120,32,0.35);
  border-top-color: rgba(210,175,90,0.50);
  border-bottom-color: rgba(0,0,0,0.80);
  border-left-color: rgba(160,120,32,0.20);
  border-right-color: rgba(160,120,32,0.20);
  border-radius: var(--r);
  padding: 20px;
  margin-bottom: 10px;
  position: relative;
  overflow: hidden;
  box-shadow:
    0 6px 24px rgba(0,0,0,0.80),
    0 2px 6px rgba(0,0,0,0.90),
    inset 0 1px 0 rgba(210,175,90,0.18),
    inset 0 -2px 0 rgba(0,0,0,0.70),
    inset 0 3px 16px rgba(0,0,0,0.40),
    inset 2px 0 6px rgba(0,0,0,0.20),
    inset -2px 0 6px rgba(0,0,0,0.20);
}
/* Gold top shimmer — bright, visible */
.acard::before {
  content: '';
  position: absolute; top: 0; left: 0; right: 0;
  height: 1px;
  background: linear-gradient(90deg, transparent 5%, rgba(160,120,32,0.55) 25%, rgba(210,175,90,0.90) 50%, rgba(160,120,32,0.55) 75%, transparent 95%);
}
/* Face highlight — top-left light source */
.acard::after {
  content: '';
  position: absolute; inset: 0; pointer-events: none;
  background: linear-gradient(145deg, rgba(210,175,90,0.06) 0%, rgba(210,175,90,0.02) 30%, transparent 60%);
}
.acard-title {
  font-family: var(--f-display);
  font-size: 18px;
  font-weight: 300;
  color: var(--smoke);
  letter-spacing: 0.05em;
  margin-bottom: 4px;
}
.acard-sub {
  font-family: var(--f-mono);
  font-size: 9px;
  letter-spacing: 0.1em;
  color: var(--smoke4);
  text-transform: uppercase;
  margin-bottom: 16px;
}
.arow { display: flex; gap: 8px; }
