:root {
  --vault-bg: #10141a;
  --vault-panel: #171d24;
  --vault-line: #303b45;
  --vault-text: #f5f4ec;
  --vault-muted: #b0bdc9;
  --vault-accent: #dcfa77;
}

.screen.title {
  display: block;
  background: var(--vault-bg);
  color: var(--vault-text);
  padding: 0 clamp(16px, 5vw, 76px) 26px;
  font-family: 'Segoe UI', system-ui, sans-serif;
}

.vault-shell { width: min(1160px, 100%); margin: auto; }
.vault-header {
  min-height: 74px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid var(--vault-line);
  font-family: ui-monospace, monospace;
  font-size: .875rem;
}
.vault-brand { color: var(--vault-accent); font-weight: 800; letter-spacing: .15em; }
.vault-progress { color: var(--vault-muted); }

.vault-hero {
  display: grid;
  grid-template-columns: 1fr 1fr;
  align-items: center;
  min-height: clamp(410px, 61vh, 580px);
  gap: clamp(16px, 4vw, 64px);
  padding: 30px 0;
}

.vault-copy h1 {
  font-family: 'Arial Black', 'Segoe UI', sans-serif;
  font-size: clamp(3.3rem, 7.2vw, 6.7rem);
  line-height: .94;
  font-weight: 900;
  letter-spacing: -.085em;
  overflow-wrap: normal;
}
.vault-password { display: block; color: var(--vault-accent); }
.vault-description {
  max-width: 36ch;
  margin: 24px 0;
  color: var(--vault-muted);
  font-size: clamp(1rem, 1.6vw, 1.2rem);
  line-height: 1.55;
}
.vault-actions { display: flex; flex-wrap: wrap; gap: 10px; }
.vault-cta, .vault-quiet {
  min-height: 52px;
  padding: 0 19px;
  border: 1px solid var(--vault-line);
  border-radius: 8px;
  font-size: .9375rem;
  font-weight: 750;
}
.vault-cta { background: var(--vault-accent); color: #171d0a; border-color: transparent; box-shadow: 0 4px #829443; }
.vault-cta:hover { background: #eeffa8; }
.vault-cta:active { transform: translateY(3px); box-shadow: 0 1px #829443; }
.vault-quiet { background: var(--vault-panel); color: var(--vault-text); }
.vault-quiet:hover, .vault-mode:hover { border-color: var(--vault-accent); }
:where(.title, .play) :focus-visible { outline: 3px solid #eeffa8; outline-offset: 3px; }

.vault-visual {
  position: relative;
  isolation: isolate;
  display: grid;
  place-items: center;
  aspect-ratio: 1.14;
  border: 1px solid var(--vault-line);
  border-radius: 14px;
  overflow: hidden;
  background:
    radial-gradient(ellipse at 50% 48%, #34402b 0%, transparent 65%),
    repeating-linear-gradient(90deg, #b4d4e012 0 1px, transparent 1px 28px),
    repeating-linear-gradient(0deg, #b4d4e012 0 1px, transparent 1px 28px),
    #171e24;
}
.vault-crosshair {
  position: absolute;
  inset: 15px;
  border: 1px solid #b4d4e02e;
  border-radius: 8px;
  background: linear-gradient(90deg, transparent 49.8%, #b4d4e02e 50%, transparent 50.2%),
    linear-gradient(0deg, transparent 49.8%, #b4d4e02e 50%, transparent 50.2%);
}
.vault-dial {
  position: relative;
  width: 65%;
  aspect-ratio: 1;
  border: 1px solid #9da99d;
  border-radius: 50%;
  background:
    radial-gradient(circle, #151b20 52%, transparent 53%),
    conic-gradient(from 55deg, #242c33, #4a554a, #a6b092, #252d31, #859080, #242c33);
  box-shadow: 0 18px 30px #080a0bbb, inset 0 0 0 8px #171e24, inset 0 0 0 9px #82917e;
}
.vault-ticks, .vault-disc, .vault-keyhole { position: absolute; display: block; border-radius: 50%; }
.vault-ticks {
  inset: 8%;
  background: repeating-conic-gradient(from -1deg, #dce5c9 0 1deg, transparent 1deg 10deg);
  mask-image: radial-gradient(transparent 60%, #000 61% 69%, transparent 70%);
}
.vault-disc {
  inset: 22%;
  border: 1px solid #a3b587;
  background: repeating-radial-gradient(circle at center, #ffffff08 0 1px, transparent 1px 4px),
    linear-gradient(140deg, #4e5d43, #151a1b 73%);
  box-shadow: 0 0 0 6px #0f1417, 0 0 0 7px #69775c, inset 0 0 15px #060900;
}
.vault-keyhole {
  inset: 34%;
  background: #111719;
  box-shadow: inset 0 0 0 1px #69775c, 0 0 22px #badd661f;
}
.vault-keyhole::before {
  content: '';
  position: absolute;
  inset: 25% 31%;
  background: var(--vault-accent);
  clip-path: polygon(25% 0, 75% 0, 100% 19%, 100% 37%, 66% 55%, 88% 100%, 12% 100%, 34% 55%, 0 37%, 0 19%);
}
.vault-evidence {
  z-index: 1;
  position: absolute;
  bottom: 5%;
  right: 4%;
  display: grid;
  grid-template-columns: auto 1fr;
  align-items: center;
  gap: 0 10px;
  padding: 8px 13px 8px 8px;
  max-width: 84%;
  border: 1px solid #4c5b66;
  border-radius: 8px;
  background: #10171f;
  box-shadow: 0 8px 15px #090b1080;
}
.vault-avatar { width: 44px; height: 44px; object-fit: cover; border-radius: 5px; grid-row: span 2; }
.vault-evidence span { font-size: .875rem; color: var(--vault-muted); }
.vault-evidence strong { font-size: 1rem; }

.vault-modes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.vault-mode {
  display: flex;
  align-items: center;
  min-height: 78px;
  gap: 12px;
  text-align: left;
  color: var(--vault-text);
  background: var(--vault-panel);
  border: 1px solid var(--vault-line);
  border-radius: 10px;
  padding: 12px;
}
.vault-mode-icon {
  display: grid;
  place-items: center;
  flex: 0 0 38px;
  height: 38px;
  border-radius: 7px;
  color: var(--vault-accent);
  background: #303a2a;
  font-size: 1.35rem;
}
.vault-mode-copy { display: grid; gap: 4px; }
.vault-mode-copy span { color: var(--vault-muted); font-size: .875rem; }
.vault-shell .util-bar { margin: 22px 0 13px; }
.vault-shell .mini { min-height: 42px; background: #1e252d; }
.vault-shell .title-foot { font-size: .875rem; }
.vault-shell .pending-lock { margin-top: 16px; }
.vault-score { font-weight: 700; color: #dcfa77; }

.play .hack-btn {
  color: #171d0a;
  background: var(--vault-accent);
  border-color: #829443;
  box-shadow: 0 4px 14px #dcfa7733;
}
.play .hack-btn:hover { box-shadow: 0 4px 20px #dcfa7755; }
.case-jump { display: none; }

@media (max-width: 700px) {
  .vault-header { min-height: 54px; }
  .vault-hero { grid-template-columns: 1fr; gap: 24px; padding: 24px 0; }
  .vault-copy h1 { font-size: clamp(3rem, 11vw, 5.75rem); }
  .vault-description { margin: 16px 0; }
  .vault-visual { aspect-ratio: 1.7; }
  .vault-dial { width: 44%; }
  .vault-modes { grid-template-columns: 1fr; gap: 8px; }
  .vault-mode { min-height: 64px; }
}
@media (max-width: 999px) {
  .play { height: 100dvh; min-height: 0; overflow-y: auto; }
  .play-grid { flex: none; }
  .case-jump { display: inline-block; margin: 0 0 8px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; transition-duration: .01ms !important; scroll-behavior: auto !important; }
}

.vault-attempts {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 6px;
  margin: 0;
  padding: 0;
  list-style: none;
}
.vault-attempts li {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  border-radius: 6px;
  font: 700 1rem ui-monospace, monospace;
  color: #f5f4ec;
  background: #48515b;
}
.vault-attempts .hit { color: #171d0a; background: #dcfa77; }
.vault-attempts .near { color: #211800; background: #ffd166; }

/* Case file and lock terminal */
.play {
  --desk-line: #34434a;
  --desk-ink: #f0f2e9;
  --desk-muted: #b4c3c6;
  font-family: 'Segoe UI', system-ui, sans-serif;
  background:
    radial-gradient(ellipse at 15% 12%, #253a32, transparent 55%),
    repeating-linear-gradient(90deg, #e3f7e607 0 1px, transparent 1px 40px),
    repeating-linear-gradient(0deg, #e3f7e607 0 1px, transparent 1px 40px),
    #101719;
}

.play h1, .play h2 { font-family: inherit; }
.play-topbar { background: #11191c; height: 56px; }
.play .top-back, .play .icon-btn { background: #202c30; }
.play .top-left .icon-btn { width: auto; padding-inline: 10px; }
.play .case-pill { background: #202c30; color: var(--desk-ink); }
.play-grid { gap: 18px; padding: 20px; }

.play .app-window, .play .dock {
  border-color: var(--desk-line);
  background: #151e21;
  box-shadow: 0 15px 42px #050a0a66;
}
.dossier-heading, .terminal-heading {
  display: flex;
  flex: none;
  align-items: center;
  gap: 12px;
  color: var(--desk-ink);
}
.dossier-heading {
  justify-content: space-between;
  padding: 13px 20px;
  background: #202b2b;
  border-bottom: 1px solid #384744;
}
.dossier-heading h1, .terminal-heading h2 { font-size: 1.125rem; letter-spacing: -.025em; }
.dossier-heading span {
  color: var(--desk-muted);
  font: 700 .8125rem ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .1em;
}
.play .profile-col { padding: clamp(12px, 1.7vw, 24px); gap: 14px; }

.play .profile-hero {
  position: relative;
  isolation: isolate;
  overflow: hidden;
  align-items: center;
  grid-template-columns: clamp(118px, 13vw, 184px) minmax(0, 1fr);
  gap: clamp(14px, 2vw, 26px);
  padding: clamp(12px, 2vw, 24px);
  border-color: #697763;
  background:
    radial-gradient(ellipse at 3% 0%, color-mix(in srgb, var(--accent) 34%, transparent), transparent 62%),
    repeating-linear-gradient(135deg, #ffffff08 0 1px, transparent 1px 8px),
    linear-gradient(120deg, #424e38, #242f29 66%);
  box-shadow: 0 8px 24px #0b110e55;
}
.play .hero-art { width: 100%; }
.play .hero-portrait {
  width: 100%;
  height: auto;
  aspect-ratio: 1;
  border: 1px solid #dde4bc;
  border-radius: 8px;
  box-shadow: 0 0 0 5px #151e2099, 0 10px 28px #111d1680;
}
.play .who-name { font-size: clamp(1.6rem, 3.2vw, 3.4rem); line-height: 1; color: #f3f4e9; }
.play .handle { color: #d3dfb3; }
.play .bio-text { color: #ecf0e0; font-size: .95rem; line-height: 1.5; }
.play .profile-meta { gap: 8px; }
.play .facts-inline { margin-top: 2px; }
.play .fact-chip { background: #141e1bcc; border-color: #c0d0ab30; color: #e7eddd; }

.play .case-guidance {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 12px;
  margin: 0;
  padding: 10px 14px;
  background: #263426;
  border: 1px solid #59704a;
  border-left: 4px solid var(--vault-accent);
  color: #e4ebdd;
}
.case-guidance strong { color: var(--vault-accent); }
.play .case-jump { align-self: flex-start; margin: 0; }

.play .tabs { background: #10181a; border-color: var(--desk-line); }
.play .tabs button { min-width: 0; color: #becbc9; }
.play .tabs button.on { color: #e8f8b2; background: #333e2b; border-color: #69794c; }
.play .tab-grid > .card {
  background: linear-gradient(155deg, #253134, #1d2729);
  border-color: var(--desk-line);
  padding: 14px;
}
.play .post-body, .play .diary-body, .play .photo-cap, .play .msg-body { font-size: .9375rem; }

.play .clue { color: #c7e0dc; border-color: #6b9b92; background: #25413d; }
.play .clue.on { color: #edffb2; border-color: #9eae62; background: #3a492e; }
.play[data-guide] .clue:where(:not(.on):not(:hover)) { color: #c1cccc; border-color: #6d7e79; background: #222d2d; }
.play[data-guide=cat] .clue[data-id=cat],
.play[data-guide=age] .clue[data-id=age] {
  color: #1c270b;
  background: var(--vault-accent);
  border-color: var(--vault-accent);
  box-shadow: 0 0 0 3px #dcfa7730, 0 0 15px #dcfa7750;
}
.play[data-guide=ready] .hack-btn { outline: 2px solid #dcfa7777; outline-offset: 3px; }

.play .dock { padding: 16px; gap: 12px; overflow-y: auto; }
.terminal-heading { padding-bottom: 11px; border-bottom: 1px solid var(--desk-line); }
.terminal-lock {
  display: grid;
  place-items: center;
  width: 33px;
  height: 33px;
  border: 1px solid #66734a;
  border-radius: 50%;
  background: #303c29;
}
.terminal-lock::before {
  content: '';
  width: 12px;
  height: 15px;
  background: var(--vault-accent);
  clip-path: polygon(25% 0, 75% 0, 100% 20%, 100% 42%, 65% 60%, 86% 100%, 14% 100%, 35% 60%, 0 42%, 0 20%);
}
.play .byte-frame { width: 60px; height: 60px; }
.play .quip { font-size: .9375rem; line-height: 1.4; background: #233235; }
.play .console-input-zone {
  background:
    repeating-linear-gradient(0deg, #d3efda07 0 1px, transparent 1px 6px),
    #10191b;
  border-color: #465c52;
}
.play .slot { background: #1d292a; }
.play .slot.D { background: #352f24; }
.play .slot.filled { background: #344636; }
.play .fusion-tray, .play .attempts-log { background: #11191b; border-color: var(--desk-line); }
.play .console-label { color: #bfcdca; letter-spacing: .075em; }
.play .log-empty, .play .log-count, .play .tray-empty { color: var(--desk-muted); }
.play .attempts-log { flex: 0 1 auto; max-height: 190px; }

@media (max-width: 999px) {
  .play-grid { padding: 10px; gap: 12px; }
  .play .dock { overflow: visible; }
}
@media (max-width: 540px) {
  .play .profile-hero { grid-template-columns: 82px minmax(0, 1fr); align-items: start; }
  .play .profile-meta { grid-column: 2; }
  .play .who-name { font-size: 1.5rem; }
  .play .hero-portrait { box-shadow: 0 0 0 3px #151e2099; }
  .play .tabs button { font-size: .75rem; padding-inline: 2px; }
  .play .play-topbar { gap: 5px; }
}

@media (max-width: 440px) {
  .play .play-topbar {
    display: grid;
    grid-template-columns: 1fr auto;
    height: auto;
    padding: 8px 10px;
    row-gap: 7px;
  }
  .play .case-pill { grid-area: 2 / 1 / 3 / -1; justify-self: start; }
  .play .top-right { grid-area: 1 / 2; }
}
/* Device desk */
.device-workspace {
  --window-w: 43%;
  --window-h: 82%;
  --device-accent: #dafa79;
  display: flex;
  flex-direction: column;
  min-height: 0;
  min-width: 0;
  gap: 11px;
  padding: 14px;
  border: 1px solid #3a4a4d;
  border-radius: 16px;
  background: #131d20;
}
.device-toolbar, .workspace-heading, .workspace-tools, .device-launchers {
  display: flex;
  align-items: center;
  gap: 9px;
}
.device-toolbar { flex: none; justify-content: space-between; gap: 8px; }
.workspace-heading { flex-wrap: wrap; gap: 5px 9px; }
.workspace-heading h1 { font-size: clamp(1rem, 1.7vw, 1.45rem); line-height: 1.1; }
.workspace-type {
  padding: 4px 7px;
  border-radius: 5px;
  background: color-mix(in srgb, var(--device-accent) 17%, #182328);
  color: var(--device-accent);
  font: 700 .75rem ui-monospace, monospace;
  text-transform: uppercase;
  letter-spacing: .035em;
}
.workspace-tools { flex-shrink: 0; }
.device-launchers {
  flex-wrap: wrap;
  flex: none;
  padding: 0 0 2px;
}
.device-launcher {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 7px 9px;
  min-height: 36px;
  border: 1px solid #44545a;
  border-radius: 7px;
  background: #222f35;
  color: #ebf2e9;
  font-size: .875rem;
}
.device-launcher::before, .device-window-title::after {
  content: '';
  width: .55em;
  height: .55em;
  flex: none;
  border-radius: 50%;
  background: var(--window-accent);
}
.device-launcher[aria-pressed="true"] { border-color: var(--device-accent); }
.device-launcher:hover { background: #304249; }

.device-stage {
  position: relative;
  isolation: isolate;
  flex: 1;
  min-height: 270px;
  border: 1px solid #324345;
  border-radius: 10px;
  overflow: clip;
  background:
    radial-gradient(ellipse at 46% 40%, color-mix(in srgb, var(--device-accent) 13%, transparent), transparent 66%),
    radial-gradient(circle, #c5e2d029 1px, transparent 1.5px) 0 0 / 23px 23px,
    #10191c;
}
.device-window {
  position: absolute;
  left: calc((100% - var(--window-w)) * var(--window-x));
  top: calc((100% - var(--window-h)) * var(--window-y));
  width: var(--window-w);
  height: var(--window-h);
  display: flex;
  flex-direction: column;
  min-width: 0;
  border: 1px solid color-mix(in srgb, var(--window-accent) 56%, #38454b);
  border-radius: 11px;
  background: #172226;
  box-shadow: 0 12px 29px #04090cb3;
}
.device-window.is-front { border-color: var(--device-accent); box-shadow: 0 0 0 1px var(--device-accent), 0 18px 32px #04090ced; }
.window-profile { --window-accent: #75e2cf; }
.window-photos { --window-accent: #ffc48b; }
.window-messages { --window-accent: #eeaedb; }
.window-trash { --window-accent: #a6ceff; }
.device-window.window-trash { --window-w: 76%; --window-h: 68%; }
.device-laptop .device-window.window-trash { border-bottom: 5px solid #819196; }
.device-phone .device-window { border-radius: 16px; }
.device-tablet .device-window.window-profile { --window-w: 56%; }
.device-tablet .device-window.window-trash { --window-h: 73%; }
.device-desktop { --device-accent: #ffca7e; }
.device-desktop .device-window.window-profile { --window-w: 55%; }
.device-database { --device-accent: #7ce8d1; }
.device-server { --device-accent: #a6deff; }
.device-satellite { --device-accent: #f4baf4; }
.device-satellite .device-stage {
  background:
    repeating-radial-gradient(ellipse at 72% 20%, transparent 0 42px, #e69fef28 43px 44px, transparent 45px 62px),
    radial-gradient(ellipse at 70% 20%, #33244b, #141a24 72%);
}
.device-database .device-window.window-trash,
.device-server .device-window.window-trash,
.device-satellite .device-window.window-trash { --window-w: 79%; --window-h: 80%; }

.device-window-title {
  display: flex;
  align-items: center;
  flex: none;
  min-height: 35px;
  gap: 8px;
  padding: 5px 9px;
  border-radius: 9px 9px 0 0;
  background: linear-gradient(105deg, color-mix(in srgb, var(--window-accent) 36%, #152126), #182328);
  color: #f4f8ed;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.device-window-title:active { cursor: grabbing; }
.device-window-title::after { margin-left: auto; }
.device-window-title h2 { font-size: .9rem; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.device-grip { color: var(--window-accent); font-size: 1.24rem; line-height: 1; }
.device-window-body {
  min-height: 0;
  flex: 1;
  overflow: auto;
  overscroll-behavior: contain;
  scrollbar-width: thin;
  padding: 9px;
  display: flex;
  flex-direction: column;
  gap: 9px;
}
.device-window-body > * { flex-shrink: 0; }
.play .device-window-body .profile-hero {
  grid-template-columns: minmax(0, 1fr);
  gap: 7px;
  padding: 10px;
}
.play .device-window-body .hero-art { width: 62px; }
.play .device-window-body .who-name { font-size: clamp(1.1rem, 2vw, 1.55rem); }
.play .device-window-body .profile-meta { grid-column: auto; }
.play .device-window-body .facts-inline,
.device-window-body .tab-grid { grid-template-columns: minmax(0, 1fr); }
.play .device-window-body .tab-grid > .card {
  margin: 0;
  padding: 10px;
  border-radius: 8px;
  box-shadow: none;
}
.device-window-body .photo-shot { max-height: 185px; object-fit: cover; }
.device-window-body .msg-card:nth-child(even) { margin-left: 10px; background: #302634; }

.record-check, .record-memo {
  display: grid;
  gap: 8px;
  padding: 10px;
  background: #0e1a20;
  border: 1px solid #445f6c;
  border-radius: 8px;
  font-size: .875rem;
}
.record-check h3 { font-size: 1rem; margin: 0; }
.record-list { display: grid; gap: 4px; }
.record-row {
  display: flex;
  align-items: baseline;
  flex-wrap: wrap;
  gap: 4px 8px;
  padding: 7px 9px;
  width: 100%;
  border: 1px solid #3d555f;
  border-radius: 5px;
  color: #f3f4e5;
  background: #203037;
  text-align: left;
}
.record-row:hover { border-color: var(--device-accent); }
.record-row span, .record-status { color: #c0d4da; font-size: .85rem; }
.device-satellite .record-row { border-left: 4px solid #a669b8; }
.device-server .record-row strong { font-family: ui-monospace, monospace; }
.terminal-gate {
  display: flex;
  align-items: center;
  flex: none;
  justify-content: space-between;
  gap: 6px;
  padding: 6px 8px;
  border: 1px solid #705b37;
  border-radius: 7px;
  color: #ffdf9a;
  background: #302825;
  font-size: .875rem;
}
.terminal-gate.verified { color: #e1fa9c; border-color: #596c48; background: #273427; }

@media (min-width: 1000px) {
  .play:has(.device-workspace) .play-grid { grid-template-columns: minmax(0, 1fr) clamp(330px, 29vw, 450px); }
}
@media (min-width: 761px) and (max-width: 999px) {
  .device-stage { flex: none; height: min(72vh, 560px); }
}
@media (max-width: 760px) {
  .device-workspace { padding: 10px; }
  .device-toolbar { flex-wrap: wrap; }
  .device-stage { min-height: 0; overflow: visible; }
  .device-window {
    position: static;
    width: 100%;
    height: auto;
    display: none;
  }
  .device-window.is-front { display: flex; }
  .device-window-title { cursor: default; touch-action: auto; }
  .device-grip, .workspace-reset { display: none; }
  .device-window-body { overflow: visible; }
  .play .device-window-body .profile-hero {
    grid-template-columns: 62px minmax(0, 1fr);
    align-items: start;
    gap: 10px;
  }
  .device-launcher { flex-grow: 1; justify-content: center; }
}

.record-scope { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; }
.record-scope span { margin-right: 4px; color: #c0d4da; }
.record-scope button[aria-pressed="true"] { color: var(--device-accent); border-color: var(--device-accent); }
.device-stage {
  --window-w: 40%;
  --window-h: 78%;
}
.device-window.window-photos { --window-h: 75%; }
.device-window.window-messages { --window-w: 37%; --window-h: 64%; }

.play-wordmark {
  display: none;
  color: #eaf5d8;
  margin-left: 5px;
  font-size: .92rem;
  font-weight: 800;
  letter-spacing: .015em;
}
@media (min-width: 1120px) { .play-wordmark { display: inline; } }

.device-entry, .device-file, .explorer-path {
  border: 1px solid #445359;
  border-radius: 7px;
  background: #222d31;
  color: #ecf3eb;
  padding: 9px;
  font-size: .875rem;
  line-height: 1.45;
}
.device-entry h3, .photo-title { margin: 0; font-size: 1rem; }
.device-entry p { margin-top: 5px; }
.feed-byline { display: flex; align-items: center; gap: 7px; margin-bottom: 6px; }
.device-thread, .device-files { display: grid; gap: 6px; }
.conversation-entry { max-width: 92%; background: #293d45; }
.conversation-entry:nth-child(even) { justify-self: end; background: #3b2d3e; }
.exhibit-collection, .photo-marker {
  color: #e7be92;
  font: 700 .75rem ui-monospace, monospace;
  letter-spacing: .055em;
  text-transform: uppercase;
}
.explorer-path {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 9px;
  color: #c5deef;
  background: #233747;
}
.explorer-path span::before { content: '/'; padding-right: 8px; }
.device-file { padding: 0; }
.device-file summary { cursor: pointer; padding: 7px 9px; }
.device-file summary span { color: #afc5d3; margin-left: 7px; }
.device-file[open] summary { border-bottom: 1px solid #50606a; }
.device-file p { padding: 8px 9px; }

.device-social .device-window { background: #edeae3; }
.device-social .device-window-title { background: linear-gradient(110deg, #087890, #124355); }
.device-social .window-photos .device-window-title { background: linear-gradient(110deg, #944d32, #5a2823); }
.device-social .window-messages .device-window-title { background: linear-gradient(110deg, #853655, #551e39); }
.device-social .window-trash .device-window-title { background: linear-gradient(110deg, #2a6787, #23435c); }
.device-social .device-window-body { color: #202b34; }
.play .device-social .tab-grid > .card,
.device-social .device-entry,
.device-social .device-file,
.device-social .explorer-path {
  background: #faf8f3;
  color: #263039;
  border-color: #cfcac2;
}
.play .device-social .post-body, .play .device-social .photo-cap, .play .device-social .msg-body { color: #263039; }
.device-social .device-window-body .muted, .device-social .device-file summary span { color: #51626c; }
.device-social .photo-marker, .device-social .exhibit-collection { color: #794528; }
.device-social .device-thread .conversation-entry { background: #e4ebf0; }
.device-social .device-thread .conversation-entry:nth-child(even),
.play .device-social .device-window-body .msg-card:nth-child(even) { background: #f0dbe6; }
.play .device-social .device-window-body .msg-from { color: #762b53; }
.play .device-social .profile-hero {
  border-color: #b8c2ac;
  background: radial-gradient(ellipse at 4% 4%, #cadacd, transparent 66%), #f3eee3;
  box-shadow: none;
}
.play .device-social .profile-hero .who-name { color: #182833; }
.play .device-social .profile-hero .handle { color: #315562; }
.play .device-social .profile-hero .bio-text { color: #273640; }
.play .device-social .fact-chip { background: #e4e8da; color: #25362d; border-color: #bdc4b3; }
.play .device-social .fact-chip strong { color: #25362d; }
.play .device-social .clue:where(:not(.on)) { color: #1e515c; border-color: #70909a; background: #eaf5f3; }
.play[data-guide] .device-social .clue:where(:not(.on):not(:hover)) { color: #334c55; border-color: #879ba0; background: #ebeeeb; }
.play[data-guide=cat] .device-social .clue[data-id=cat],
.play[data-guide=age] .device-social .clue[data-id=age] { color: #1c270b; background: var(--vault-accent); border-color: #527137; }

.play .pattern:not(.dense) {
  display: grid;
  grid-template-columns: repeat(var(--slot-count), minmax(0, 1fr));
}
.play .pattern:not(.dense) .slot { width: 100%; max-width: 40px; height: 36px; border-radius: 6px; }
.play:has(.device-workspace) .guess-row { display: grid; gap: 7px; }
.play:has(.device-workspace) .guess-row .hack-btn { min-height: 48px; }

@media (max-width: 760px) {
  .play:has(.device-workspace) .guess-row { grid-template-columns: minmax(0, 1fr) auto; }
}

.clue-sources { display: flex; flex-wrap: wrap; align-items: center; gap: 5px; color: #b4c3c6; font-size: .8125rem; }
.clue-sources .mini { min-height: 30px; padding: 4px 7px; }

/* Inspectable visual evidence */
.visual-gallery { display: grid; gap: 8px; }
.visual-gallery h3 { margin: 0; font-size: 1rem; }
.visual-capture { min-width: 0; }
.capture-open {
  display: grid;
  width: 100%;
  padding: 0;
  border: 1px solid #51626a;
  border-radius: 9px;
  overflow: hidden;
  background: #182529;
  color: #edf2e8;
  text-align: left;
}
.capture-open:hover { border-color: var(--device-accent, #dcfa77); }
.evidence-art { display: block; width: 100%; height: auto; }
.capture-label {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: baseline;
  gap: 3px 8px;
  padding: 8px 9px;
  font-size: .875rem;
}
.capture-label span { color: #d0e0c0; font-size: .8125rem; }
.gallery-locked {
  padding: 10px;
  border-radius: 8px;
  background: #322b22;
  color: #fcdfad;
  font-size: .875rem;
}
.evidence-dialog {
  width: min(760px, calc(100% - 24px));
  max-height: 93dvh;
  border: 1px solid #7b8c69;
  border-radius: 14px;
  padding: clamp(10px, 2.2vw, 20px);
  background: #142023;
  color: #f0f3ef;
  box-shadow: 0 24px 70px #000a;
  overscroll-behavior: contain;
}
.evidence-dialog::backdrop { background: #061012d9; }
.inspector-head, .inspector-controls {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
}
.inspector-head { margin-bottom: 10px; }
.inspector-head h2 { font-size: clamp(1.1rem, 2.5vw, 1.4rem); }
.evidence-viewport {
  overflow: auto;
  max-height: 58dvh;
  border: 1px solid #495b5f;
  border-radius: 8px;
  background: #0a1418;
}
.evidence-viewport.zoomed .evidence-art { width: 160%; max-width: none; }
.inspector-controls { margin: 10px 0; }
.inspector-controls .btn.primary { background: #dcfa77; color: #1c270b; border-bottom-color: #879b4c; }
.inspector-description {
  border: 1px solid #45565a;
  border-radius: 7px;
  padding: 9px;
  color: #d8e5db;
  font-size: .9rem;
}
.inspector-description summary { cursor: pointer; }
.inspector-description p { margin-top: 8px; }
.evidence-dialog :focus-visible { outline: 2px solid #dcfa77; outline-offset: 2px; }

.inspector-pin-actions { display: flex; justify-content: flex-end; flex-wrap: wrap; gap: 7px; }
.inspector-pin-actions .btn { min-height: 40px; font-size: .875rem; }

.device-social .record-memo { background: #e3eeeb; color: #243e42; border-color: #9ab5b3; }
