:root {
  /* Field workspace uses the existing dark palette. */
  --bg: #17242c;
  --deep: #101b22;
  --panel: #1e2e37;
  --raised: #273944;
  --line: #ffffff13;
  --muted: #a0afb6;
  --text: #e9ede9;
  --paper: #f4f2eb;
  --ink: #27343b;
  --wine: #ad354c;
  --wine-hover: #c2465d;
  --gold: #c9aa74;
  --green: #8eb59f;
  --radius: 14px;
}
.field-proof{display:grid;gap:10px;margin-top:22px}
.field-proof label{display:flex;align-items:flex-start;gap:12px;padding:14px 16px;background:#192c38;border:1px solid #344b59;border-radius:8px;cursor:pointer;font-size:14px;line-height:1.6}
.field-proof label input{flex-shrink:0;margin-top:3px}
.field-lab .newspaper-controls .newspaper-zoom-range{width:100px;min-width:70px;height:24px;padding:0;border:0;accent-color:#c9b784;background:transparent}
.field-lab .newspaper-entry{width:100%;margin:18px 0;border-color:#6b624c;background:linear-gradient(115deg,#29291f,#1d262b)}
.case-newspaper{margin:24px 0;border:1px solid #5c665f;border-radius:12px;overflow:hidden;background:#111a1e;color:#dce6e9;isolation:isolate}
.case-newspaper.newspaper-expanded{position:fixed;inset:16px;z-index:8000;margin:0;overflow:auto;box-shadow:0 0 0 100vmax #000c}
.case-newspaper:focus{outline:none}.case-newspaper button:focus-visible,.case-newspaper input:focus-visible,.newspaper-viewport:focus-visible{outline:2px solid #e0ca8f;outline-offset:3px}
.newspaper-toolbar{padding:14px 18px;display:flex;align-items:center;justify-content:space-between;gap:14px;background:#203039;border-bottom:1px solid #40514d}
.newspaper-toolbar>span{display:flex;align-items:center;gap:12px;font-size:14px}.newspaper-toolbar>div{display:flex;gap:8px}.field-lab .newspaper-toolbar button{display:flex;padding:8px}
.newspaper-controls{display:flex;align-items:center;gap:9px;flex-wrap:wrap;padding:14px 18px}.field-lab .newspaper-controls button{font-size:12px;padding:8px 11px;min-height:36px;display:flex;align-items:center;justify-content:center}.newspaper-controls output{min-width:48px;text-align:center;font:13px ui-monospace,monospace;color:#ddceab}.newspaper-controls button[aria-pressed=true]{background:#4c4932;border-color:#b8a371}
.case-newspaper .newspaper-instructions{font-size:12px;line-height:1.65;color:#a2b5b8;margin:0;padding:0 18px 17px}
.newspaper-viewport{height:660px;max-height:72vh;overflow:auto;position:relative;background:#0a1014;border-top:1px solid #3d4540;border-bottom:1px solid #3d4540;cursor:grab;touch-action:pan-x pan-y;overscroll-behavior:contain;user-select:none}
.newspaper-expanded .newspaper-viewport{height:74vh;max-height:900px}.newspaper-viewport:active{cursor:grabbing}.newspaper-stage{position:relative;min-width:100%;margin:0 auto}
.case-newspaper .newspaper-sheet{position:absolute;top:0;left:0;transform-origin:top left;box-sizing:border-box;padding:32px 32px 24px;background:radial-gradient(ellipse at 25% 5%,#41402c55,transparent 58%),repeating-linear-gradient(0deg,#0000,#0000 3px,#00000008 4px),#292920;color:#d6ccb0;border:1px solid #736950;font-family:Georgia,'Times New Roman',serif}
.newspaper-topline{display:flex;justify-content:space-between;border-top:2px solid #9d9072;border-bottom:1px solid #81775f;padding:7px 0;font:9px/1.4 ui-monospace,monospace;letter-spacing:.07em}
.case-newspaper .newspaper-masthead{padding:20px 0 15px;text-align:center;border-bottom:4px double #9d9072}.case-newspaper .newspaper-masthead h2{font:700 46px/1.05 Georgia,'Times New Roman',serif;color:#e7d8b1;margin:0 0 10px;letter-spacing:-1.5px}.case-newspaper .newspaper-masthead p{font:10px/1.4 ui-monospace,monospace;text-transform:uppercase;letter-spacing:.24em;color:#bbaa85;margin:0}
.newspaper-edition{display:flex;justify-content:space-between;gap:12px;padding:10px 0;border-bottom:1px solid #8d8167;font:11px/1.4 Georgia,serif}.newspaper-article-grid{display:grid;grid-template-columns:minmax(0,1.55fr) minmax(0,1fr);gap:24px;padding-top:25px}.newspaper-kicker{display:block;font:9px/1.4 ui-monospace,monospace;letter-spacing:.1em;color:#b4a47f;margin-bottom:7px}
.case-newspaper .newspaper-lead h3{font:700 35px/.99 Georgia,serif;color:#e3d1a7;margin:7px 0 17px;letter-spacing:-1px}.newspaper-lead figure{margin:0 0 20px}.newspaper-lead img{display:block;width:100%;height:210px;object-fit:cover;filter:grayscale(1) sepia(.35) contrast(.85) brightness(.85);border:1px solid #766b51}.newspaper-lead figcaption{font:italic 10px/1.5 Georgia,serif;margin-top:7px;color:#b5a884}
.case-newspaper .newspaper-sheet p{font:13px/1.65 Georgia,'Times New Roman',serif;color:#d2c7aa;margin:0 0 12px;text-align:justify;hyphens:auto;overflow-wrap:break-word}.newspaper-lead-text>p:first-child:first-letter{float:left;font:700 48px/.85 Georgia,serif;padding:6px 5px 0 0;color:#ead7a9}.newspaper-sidebar{border-left:1px solid #796e55;padding-left:20px}.newspaper-sidebar>section{border-bottom:1px solid #817459;margin-bottom:18px;padding-bottom:8px}.newspaper-sidebar>section:last-child{border-bottom:0;margin-bottom:0}.case-newspaper .newspaper-sidebar h3{font:700 21px/1.06 Georgia,serif;letter-spacing:-.3px;color:#e1d0aa;margin:5px 0 13px}.case-newspaper .newspaper-sidebar p{font-size:11px;line-height:1.65}.newspaper-sidebar .newspaper-classified{border:1px solid #817459;padding:14px 12px 4px}.newspaper-imprint{display:flex;flex-direction:column;gap:7px;border-top:3px double #968463;padding-top:15px;margin-top:22px;color:#b5a582;font:9px/1.5 ui-monospace,monospace;letter-spacing:.02em}.newspaper-imprint b{font-weight:400}
.newspaper-reading{height:auto;max-height:72vh;cursor:auto;user-select:text}.newspaper-reading:active{cursor:auto}.newspaper-reading .newspaper-stage{width:100%;height:auto}.case-newspaper .newspaper-reading .newspaper-sheet{position:relative;width:auto;padding:28px;transform:none}.newspaper-reading .newspaper-article-grid{display:block}.newspaper-reading .newspaper-sidebar{border:0;padding:0;margin-top:28px}.case-newspaper .newspaper-reading .newspaper-sheet p{font-size:17px;line-height:1.9;text-align:left}.case-newspaper .newspaper-reading h3{font-size:27px;line-height:1.2}.case-newspaper .newspaper-reading .newspaper-masthead h2{font-size:clamp(27px,5vw,42px)}.newspaper-reading .newspaper-lead img{height:auto;max-height:360px;object-fit:cover}.newspaper-reading .newspaper-edition{flex-wrap:wrap}.newspaper-reading .newspaper-topline{flex-wrap:wrap;gap:8px}.newspaper-reading .newspaper-imprint{font-size:11px}
.newspaper-check{padding:26px 24px;background:#18252c;border-top:1px solid #3b4b4e}.field-lab .newspaper-check>h3{font:600 25px/1.25 Georgia,serif;margin:12px 0;color:#e0e9e9}.field-lab .newspaper-check>p{font-size:14px;line-height:1.7;color:#b6c6cb}.newspaper-check form{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:22px 0 12px}.newspaper-check form label{font-size:13px;color:#c5d2d4;line-height:1.5}.newspaper-check form input{margin-top:8px}.newspaper-check form>button{grid-column:1/-1;justify-self:start}.field-lab .newspaper-source-button{margin-top:15px;font-size:12px;background:transparent;border-color:#57655e}.newspaper-expanded .newspaper-check{padding-bottom:40px}
@media(max-width:600px){.case-newspaper.newspaper-expanded{inset:5px;border-radius:8px}.newspaper-toolbar{padding:12px;gap:8px}.newspaper-toolbar>span{font-size:12px;gap:7px}.newspaper-toolbar>span>svg{width:17px;flex-shrink:0}.newspaper-controls{padding:12px;gap:7px}.case-newspaper .newspaper-instructions{padding:0 12px 14px;font-size:11px}.newspaper-check{padding:21px 16px}.newspaper-check form{grid-template-columns:1fr}.newspaper-check form>button{width:100%}.case-newspaper .newspaper-reading .newspaper-sheet{padding:21px 17px}.case-newspaper .newspaper-reading .newspaper-sheet p{font-size:17px}.newspaper-reading .newspaper-topline{font-size:8px}.newspaper-reading .newspaper-edition{font-size:11px}}
.phone-clean .phone-north-icon svg{width:24px;height:24px;padding:0;background:transparent;border-radius:0}
.field-checklist{display:grid;gap:12px;margin:24px 0;padding:22px;border:1px solid #3c5461;background:#14222d;border-radius:12px;font-size:14px}.field-checklist>b{color:#e7eff2;margin-bottom:4px}.field-checklist>div{display:flex;align-items:center;gap:10px;color:#a5b6c1}.field-checklist>div.done{color:#a0d6bb}.field-check-empty{width:14px;height:14px;border:1px solid #6d8595;border-radius:50%;flex-shrink:0}.field-checklist>button{justify-self:start}
.phone-clean .phone-investigation{min-height:0;flex:1;overflow:auto;background:#10202c;color:#e1eaf1;font-size:13px;line-height:1.6;overscroll-behavior:contain}.phone-investigation h4{font-size:21px;line-height:1.3;color:#eef6ff;margin:14px 0}.phone-investigation button{background:#213c50;border:1px solid #38566b;color:#e4f2fc;border-radius:9px;padding:10px 12px;font:inherit;font-size:12px;cursor:pointer;display:inline-flex;align-items:center;justify-content:center;gap:7px}.phone-investigation button:hover{background:#2d5068}.phone-investigation button:disabled{opacity:.5;cursor:default}.phone-investigation button:focus-visible,.phone-investigation input:focus-visible{outline:2px solid #a0cced;outline-offset:2px}.phone-investigation input{box-sizing:border-box;width:100%;min-width:0;background:#0b1721;border:1px solid #466175;border-radius:9px;color:#f3f8ff;padding:11px;font:inherit;font-size:14px}.phone-investigation input::placeholder{color:#8fa7ba}.phone-investigation form{display:grid;gap:10px;margin:18px 0}.phone-investigation label{font-size:12px;color:#b1c7d7}.phone-investigation p{font-size:13px;line-height:1.7;margin:12px 0;color:#b2c6d6}.phone-investigation small{display:block;font-size:11px;line-height:1.6;color:#96aec1;overflow-wrap:anywhere}.pocket-login,.pocket-locked,.pocket-mail-restore,.pocket-letter,.pocket-inbox,.pocket-gallery,.pocket-photo,.pocket-profile{padding:21px 17px}.pocket-brand{width:56px;height:56px;display:grid;place-items:center;border-radius:18px;background:linear-gradient(135deg,#3b9ccc,#205779);color:#e8f8ff;margin:6px auto}.pocket-login>h4{text-align:center}.phone-investigation .pocket-text-button{background:transparent;border:0;padding:12px 0;color:#97c6e8}.pocket-address{overflow-wrap:anywhere;color:#d7eafb!important;font-family:monospace}.pocket-delivery{border-left:2px solid #4d88ab;padding-left:12px}.pocket-feedback{padding:12px;margin:10px!important;background:#273d4e;border:1px solid #466377;border-radius:8px;color:#e0ecf6!important}.pocket-chat-list>header,.pocket-chat>header{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:12px 16px;background:#192d3d;border-bottom:1px solid #314a5d}.pocket-chat-list>header h4{margin:0}.phone-investigation .pocket-chat-list>button{display:flex;justify-content:flex-start;text-align:left;background:transparent;border:0;border-radius:0;border-bottom:1px solid #253e50;gap:12px;width:100%;padding:16px 13px}.pocket-chat-list i{width:40px;height:40px;display:grid;place-items:center;font-style:normal;background:#3b637d;color:#e7f3fc;border-radius:50%;flex-shrink:0;font-size:12px}.pocket-chat-list button>span{flex:1;min-width:0}.pocket-chat-list b{font-size:14px}.pocket-chat-list button small{white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:11px;max-width:215px}.pocket-chat-list em{font-size:10px;font-style:normal;background:#4b97c0;color:#fff;width:18px;height:18px;display:grid;place-items:center;border-radius:50%}.pocket-chat>header{justify-content:flex-start;position:sticky;top:0;z-index:1}.pocket-chat>header>span{min-width:0}.pocket-chat>header b{font-size:14px}.pocket-chat>header small{font-size:9px}.pocket-history{padding:17px 10px;display:flex;flex-direction:column;gap:12px;min-height:200px}.pocket-history>article{background:#20384c;border-radius:13px 13px 13px 3px;padding:10px 12px;max-width:92%;align-self:flex-start;overflow-wrap:anywhere}.pocket-history>article.out{background:#2b506a;align-self:flex-end;border-radius:13px 13px 3px 13px}.pocket-history article p{margin:0;color:#e0eaf3;font-size:12px}.pocket-history time{display:flex;align-items:center;justify-content:flex-end;gap:5px;color:#a5c3d7;font-size:9px;margin-top:5px}.phone-investigation .pocket-system{font-size:10px;text-align:center;padding:8px 14px;color:#86a7bd}.phone-investigation .pocket-composer{display:flex;gap:8px;margin:0;padding:12px 9px;background:#193346;position:sticky;bottom:0;border-top:1px solid #36576c}.pocket-composer input{flex:1;font-size:12px}.pocket-profile>img{display:block;width:90px;height:90px;object-fit:cover;object-position:center;border-radius:50%;margin:22px auto}.pocket-profile>h4,.pocket-profile>span{display:block;text-align:center}.phone-investigation dl{font-size:11px;line-height:1.6;margin:20px 0}.phone-investigation dt{color:#7fa4bf;margin-top:14px}.phone-investigation dd{margin:3px 0 0;color:#d1e2ef;overflow-wrap:anywhere}.pocket-terminal{background:#070f16;border:1px solid #34525d;border-radius:8px;padding:14px 10px;margin:18px 0;min-height:240px;overflow:hidden}.pocket-terminal code{display:block;color:#8edbb2;font:10px/2 ui-monospace,Consolas,monospace;overflow-wrap:anywhere;animation:pocket-line-in .2s ease-out}.phone-investigation progress{width:100%;height:7px;accent-color:#69bcaa;margin-bottom:16px}.pocket-mail-restore>button,.pocket-login form button{width:100%}.pocket-mail-restore>small,.pocket-login>small{margin-top:18px}.pocket-letter .pocket-file-name{display:block;margin:20px 0 8px;color:#9db9cf;font:11px monospace}.pocket-code-value{display:block;text-align:center;letter-spacing:.2em;font:700 29px/1.5 ui-monospace,monospace;color:#d1efff;background:#203b50;border-radius:10px;padding:15px;margin:16px 0}.pocket-inbox>button{display:flex;align-items:flex-start;text-align:left;width:100%;gap:12px;padding:16px 12px}.pocket-inbox button>span{min-width:0}.pocket-inbox em{font:10px monospace;display:block;margin-top:10px;color:#94b5cc}.pocket-gallery>div{display:grid;grid-template-columns:1fr 1fr;gap:9px}.pocket-gallery>div>button{display:block;padding:0 0 10px;overflow:hidden;text-align:left;background:#1b3346;border:1px solid #35546b}.pocket-gallery img{width:100%;height:98px;object-fit:cover}.pocket-gallery button span{display:block;font-size:11px;padding:8px 8px 3px}.pocket-gallery time{display:block;font-size:9px;color:#96b2c7;padding:0 8px}.pocket-photo>img{width:100%;height:auto;max-height:420px;object-fit:contain;background:#09111a;border-radius:5px;margin-top:18px}.pocket-photo>time{display:block;color:#a0c0d4;font-size:11px}.phone-simple-grid .phone-north-icon{display:grid;place-items:center;background:#287ba6;width:40px;height:40px;border-radius:12px;color:#e7f8ff}.phone-clean .phone-simple-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.phone-investigation .sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0,0,0,0)}@keyframes pocket-line-in{from{opacity:0;transform:translateY(4px)}to{opacity:1;transform:none}}@media(prefers-reduced-motion:reduce){.pocket-terminal code{animation:none}}

* {
  box-sizing: border-box;
}
html {
  scroll-behavior: smooth;
}
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font:
    15px/1.6 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
}
button,
input,
textarea,
select {
  font: inherit;
}
button,
a,
input,
textarea,
select {
  -webkit-tap-highlight-color: transparent;
}
button {
  cursor: pointer;
}
button {
  color: inherit;
}
a {
  color: inherit;
  text-decoration: none;
}
button:disabled {
  cursor: default;
  opacity: 0.42;
}
button:focus-visible,
a:focus-visible,
input:focus-visible,
textarea:focus-visible,
select:focus-visible {
  outline: 3px solid var(--gold);
  outline-offset: 4px;
}
button,
input,
select,
textarea {
  border-radius: 9px;
}
h1,
h2,
h3,
h4,
p {
  margin: 0;
}
h1,
h2 {
  font-family: Georgia, "Times New Roman", serif;
  font-weight: 400;
  line-height: 1.12;
  letter-spacing: -1.1px;
}
h1 em,
h2 em {
  color: var(--gold);
  font-weight: 400;
}
h1 {
  font-size: clamp(38px, 4.2vw, 62px);
}
h2 {
  font-size: clamp(30px, 3vw, 44px);
}
h3 {
  font-size: 17px;
  line-height: 1.35;
  font-weight: 600;
}
h4 {
  font-size: 14px;
  font-weight: 600;
}
p {
  line-height: 1.7;
}
svg {
  flex-shrink: 0;
}
small {
  font-size: 11px;
}
.btn {
  border: 1px solid var(--line);
  background: var(--raised);
  color: var(--text);
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 10px;
  padding: 13px 20px;
  font-size: 13px;
  font-weight: 600;
  line-height: 1.5;
  transition:
    background 0.15s,
    transform 0.15s;
  text-decoration: none;
  min-height: 44px;
}
.btn:hover:not(:disabled) {
  background: #344a56;
  transform: translateY(-1px);
}
.btn.primary {
  background: var(--wine);
  border-color: var(--wine);
  color: white;
  box-shadow: 0 8px 25px #8a203729;
}
.btn.primary:hover:not(:disabled) {
  background: var(--wine-hover);
}
.btn.ghost {
  background: transparent;
  border-color: #ffffff23;
}
.btn.compact {
  font-size: 12px;
  padding: 9px 13px;
  min-height: 38px;
}
.btn.wide {
  width: 100%;
}
.btn.success {
  background: #355a49;
  color: #e1f6e9;
  border-color: #648c75;
}
.btn.danger {
  color: #e1a7ad;
  background: #743d4820;
  border-color: #be606638;
}
.btn.paper-btn {
  color: white;
  background: var(--ink);
}
.icon-button {
  border: 0;
  background: transparent;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 9px;
  color: inherit;
  min-width: 36px;
  min-height: 36px;
}
.icon-button:hover {
  background: #ffffff0b;
}
.text-button {
  border: 0;
  background: none;
  padding: 7px 0;
  display: inline-flex;
  gap: 7px;
  align-items: center;
  color: var(--gold);
  font-size: 12px;
  text-align: left;
}
.text-button:hover {
  text-decoration: underline;
}
.logo {
  display: flex;
  align-items: center;
  gap: 11px;
  flex-shrink: 0;
}
.logo-mark {
  width: 37px;
  height: 40px;
  display: grid;
  place-items: center;
  border: 1px solid #c9aa7466;
  color: var(--gold);
  font-family: Georgia, serif;
  font-size: 28px;
  line-height: 1;
}
.logo > span:last-child {
  font-size: 13px;
  font-weight: 650;
  letter-spacing: 2.1px;
  line-height: 1.4;
}
.logo small {
  display: block;
  color: var(--muted);
  font-size: 8px;
  letter-spacing: 4px;
  padding-top: 3px;
}
.eyebrow {
  font:
    10px/1.6 ui-monospace,
    SFMono-Regular,
    Consolas,
    monospace;
  font-weight: 500;
  letter-spacing: 2px;
  color: var(--gold);
  display: block;
}
.icon-label {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  font-size: 11px;
}
.gold {
  color: var(--gold);
}
.dim {
  color: var(--muted);
  font-size: 14px;
  margin-top: 15px;
}
.source-note {
  font-size: 11px;
  line-height: 1.7;
  color: var(--muted);
  margin-top: 25px;
}
.small-label {
  display: block;
  font-size: 9px;
  letter-spacing: 1.5px;
  color: var(--muted);
}
.badge {
  border: 1px solid var(--line);
  font-size: 10px;
  padding: 5px 10px;
  border-radius: 5px;
  color: var(--muted);
}
.error {
  padding: 13px 16px;
  background: #772f4033;
  border: 1px solid #bc606d55;
  color: #ffd5da;
  font-size: 13px;
  border-radius: 9px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 14px 0;
}
.spin {
  animation: spin 1.5s linear infinite;
}
@keyframes spin {
  to {
    transform: rotate(360deg);
  }
}
.loading-screen {
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  gap: 30px;
  align-items: center;
  justify-content: center;
}
.loading-screen p {
  color: var(--muted);
}
.sr-only {
  position: absolute;
  width: 1px;
  height: 1px;
  overflow: hidden;
  clip: rect(0, 0, 0, 0);
  white-space: nowrap;
}
/* Вход: атмосферная обложка и простая форма */
.entry {
  min-height: 100svh;
  display: grid;
  grid-template-columns: 1.12fr 1fr;
}
.entry-scene {
  position: relative;
  min-height: 760px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.entry-image {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 47% center;
}
.entry-shade {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    180deg,
    #0b1a2580 0%,
    #14222b15 24%,
    #15242c70 45%,
    #11202be8 100%
  );
}
.entry-brand {
  position: relative;
  padding: 40px 48px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}
.edition {
  font:
    10px ui-monospace,
    monospace;
  letter-spacing: 2px;
  color: #e2e8e2a6;
}
.entry-story {
  position: relative;
  margin-top: auto;
  padding: 100px 60px 52px;
}
.entry-story .eyebrow {
  display: flex;
  align-items: center;
  gap: 10px;
  letter-spacing: 2px;
}
.entry-story .eyebrow i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
  box-shadow: 0 0 12px #c9aa7490;
}
.entry-story h1 {
  font-size: clamp(64px, 6.7vw, 96px);
  line-height: 1.02;
  margin: 22px 0 27px;
  letter-spacing: -2.6px;
}
.entry-story h1 em {
  color: #e1c398;
}
.entry-story p {
  font-size: 17px;
  color: #e0e4e0c9;
  line-height: 1.65;
}
.entry-tags {
  display: flex;
  gap: 24px;
  margin-top: 33px;
  color: #e0e5e1aa;
}
.entry-tags .icon-label {
  font-size: 11px;
}
.entry-caption {
  position: relative;
  border-top: 1px solid #ffffff1a;
  margin: 0 48px;
  padding: 23px 0;
  display: flex;
  justify-content: space-between;
  gap: 15px;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.4px;
  color: #cdd5d2a8;
}
.entry-form {
  background: #1c2b34;
  display: flex;
  flex-direction: column;
  padding: 39px 10%;
  position: relative;
}
.entry-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.25px;
  color: var(--muted);
  gap: 20px;
}
.entry-top span:last-child {
  border: 1px solid #ffffff22;
  border-radius: 5px;
  padding: 3px 7px;
}
.entry-content {
  width: 100%;
  max-width: 440px;
  margin: auto;
  padding: 60px 0;
}
.step-label {
  font:
    10px ui-monospace,
    monospace;
  color: var(--gold);
  letter-spacing: 2px;
  display: block;
  margin-bottom: 22px;
}
.entry-content h2 {
  font-size: 45px;
  margin-bottom: 20px;
}
.entry-description {
  color: #adbac0;
  font-size: 14px;
  margin-bottom: 28px;
  max-width: 360px;
}
.entry-content label {
  display: block;
  font-size: 12px;
  color: #b9c4c8;
  margin-bottom: 17px;
}
.entry-content input,
.dialog input {
  display: block;
  width: 100%;
  margin-top: 8px;
  border: 1px solid #ffffff20;
  background: #14222b80;
  padding: 14px 16px;
  color: var(--text);
  font-size: 14px;
  min-height: 50px;
}
.entry-content input::placeholder {
  color: #8799a4;
}
.entry-content form > .btn {
  margin-top: 10px;
}
.quiet-note {
  font-size: 11px;
  color: #91a2aa;
  line-height: 1.65;
  text-align: center;
  margin-top: 17px;
}
.entry-footer {
  font-size: 10px;
  color: #8798a1;
  line-height: 1.7;
  border-top: 1px solid var(--line);
  padding-top: 22px;
}
.entry-footer span {
  display: block;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 2px;
  margin-top: 6px;
}
.mode-card {
  display: flex;
  align-items: center;
  gap: 17px;
  text-align: left;
  background: #24374166;
  border: 1px solid #ffffff1a;
  width: 100%;
  padding: 22px 20px;
  margin: 12px 0;
  transition: 0.15s;
}
.mode-card > svg:first-child {
  color: var(--gold);
  width: 23px;
}
.mode-card > svg:last-child {
  margin-left: auto;
  color: #98aeb7;
}
.mode-card span {
  display: block;
}
.mode-card b {
  font-size: 15px;
  font-weight: 550;
}
.mode-card small {
  display: block;
  margin-top: 5px;
  line-height: 1.5;
  color: #a4b4bd;
  font-size: 11px;
}
.mode-card:hover {
  background: #2b404b;
  border-color: #c9aa7470;
}
.entry-back {
  margin-top: 24px;
  color: #a3b6bf;
}
.soft-tip {
  display: flex;
  align-items: flex-start;
  gap: 13px;
  padding: 17px;
  background: #c9aa740d;
  border: 1px solid #c9aa7426;
  border-radius: 10px;
  margin: 18px 0 24px;
}
.soft-tip > svg {
  color: var(--gold);
  margin-top: 3px;
}
.soft-tip p {
  font-size: 12px;
  color: #abb9bf;
}
.room-code {
  background: #0d19206b;
  border: 1px solid #c9aa743b;
  border-radius: 10px;
  padding: 18px 20px;
  position: relative;
  margin: 24px 0;
}
.room-code > span {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.5px;
  color: var(--gold);
  display: block;
}
.room-code b {
  font:
    22px ui-monospace,
    monospace;
  letter-spacing: 3px;
  display: block;
  margin-top: 5px;
}
.room-code button {
  position: absolute;
  right: 13px;
  top: 25px;
  color: var(--gold);
}
.members-list {
  margin: 20px 0 30px;
}
.members-list > div {
  display: flex;
  align-items: center;
  gap: 9px;
  padding: 11px 0;
  font-size: 10px;
  color: var(--muted);
}
.members-list b {
  color: var(--text);
  font-size: 13px;
  font-weight: 500;
  margin-right: auto;
}
.member-initial {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #c9aa7426;
  color: var(--gold);
  font-size: 14px;
}
.online-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #87b194;
}
/* Вступление */
.intro-screen {
  min-height: 100svh;
  padding: 32px 6%;
  background: var(--deep);
}
.intro-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  max-width: 1400px;
  margin: 0 auto 35px;
}
.intro-player {
  position: relative;
  max-width: 1400px;
  margin: auto;
  display: grid;
  grid-template-columns: 1.25fr 1fr;
  background: #1c2b34;
  border: 1px solid var(--line);
  border-radius: 16px;
  overflow: hidden;
}
.intro-player video {
  width: 100%;
  height: 100%;
  min-height: 460px;
  object-fit: cover;
  background: #0e181f;
}
.intro-copy {
  padding: 55px 45px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  justify-content: center;
}
.intro-copy h1 {
  font-size: 42px;
  margin: 25px 0;
}
.intro-copy p {
  font-size: 15px;
  color: var(--muted);
  min-height: 85px;
}
.intro-copy .btn {
  margin-top: 25px;
}
.intro-guide {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 45px;
  max-width: 1300px;
  margin: 35px auto 0;
}
.intro-guide b {
  font-size: 13px;
  color: var(--gold);
}
.intro-guide p {
  font-size: 12px;
  color: var(--muted);
  margin-top: 7px;
}
.intro-transcript {
  margin-top: 30px;
}
.intro-text {
  font-size: 14px;
  max-width: 950px;
  color: var(--muted);
  margin-top: 10px;
}
/* Рабочий экран */
.game-header {
  height: 82px;
  background: #142129;
  border-bottom: 1px solid var(--line);
  display: flex;
  align-items: center;
  padding: 0 32px;
  gap: 48px;
}
.case-identity {
  display: flex;
  gap: 16px;
  align-items: center;
  padding-left: 30px;
  border-left: 1px solid var(--line);
}
.case-identity span {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: var(--gold);
}
.case-identity b {
  font-size: 13px;
  font-weight: 500;
}
.header-actions {
  margin-left: auto;
  display: flex;
  gap: 17px;
  align-items: center;
}
.save-status {
  font-size: 10px;
  color: #90a39b;
  display: flex;
  align-items: center;
  gap: 7px;
}
.save-status i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #8eb59f;
}
.save-status .warn {
  background: #dab068;
}
.profile-chip {
  border: 0;
  background: transparent;
  display: flex;
  align-items: center;
  gap: 8px;
}
.profile-chip > span {
  height: 31px;
  width: 31px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  border: 1px solid #c9aa7455;
  color: var(--gold);
  font-size: 11px;
}
.profile-chip b {
  font-size: 11px;
  font-weight: 500;
}
.game-layout {
  display: grid;
  grid-template-columns: 88px minmax(0, 1fr) 354px;
  max-width: 1800px;
  margin: auto;
  min-height: calc(100svh - 82px);
}
.rail {
  background: #14212955;
  border-right: 1px solid var(--line);
  display: flex;
  flex-direction: column;
  gap: 10px;
  padding: 25px 10px;
  position: sticky;
  top: 0;
  height: calc(100svh - 82px);
  min-height: 500px;
}
.rail button {
  border: 0;
  background: none;
  padding: 13px 4px;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 7px;
  color: #91a5af;
  font-size: 9px;
  letter-spacing: 0.1px;
  position: relative;
}
.rail button.active {
  color: var(--gold);
  background: #c9aa740e;
}
.rail button.active:before {
  content: "";
  position: absolute;
  left: -10px;
  top: 11px;
  bottom: 11px;
  width: 2px;
  background: var(--gold);
}
.rail button:hover {
  background: #ffffff06;
}
.rail small {
  position: absolute;
  top: 5px;
  right: 4px;
  font-size: 8px;
  border-radius: 50%;
  background: #324853;
  color: #bccad0;
  min-width: 14px;
  padding: 0 2px;
}
.rail .rail-help {
  margin-top: auto;
  color: var(--gold);
}
.investigation {
  padding: 27px 35px 0;
  min-width: 0;
  display: flex;
  flex-direction: column;
}
.chapter-bar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  font:
    9px ui-monospace,
    monospace;
  color: #8fa3ac;
  letter-spacing: 1px;
  margin-bottom: 23px;
}
.chapter-bar > span:first-child {
  display: flex;
  align-items: center;
  gap: 9px;
}
.chapter-bar i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--gold);
}
.chapter-bar b {
  font:
    12px -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #c1cbd0;
  letter-spacing: 0;
  padding-left: 5px;
  font-weight: 400;
}
.material-tabs {
  display: flex;
  gap: 2px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 27px;
  overflow-x: auto;
  scrollbar-width: thin;
  flex-shrink: 0;
}
.material-tabs button {
  border: 0;
  background: none;
  padding: 0 12px 14px;
  font-size: 11px;
  color: #9cafb9;
  border-radius: 0;
  white-space: nowrap;
  border-bottom: 2px solid transparent;
}
.material-tabs button:first-child {
  padding-left: 0;
}
.material-tabs button.active {
  color: #e5cb9d;
  border-bottom-color: #bb9760;
}
.material-tabs button span {
  font-size: 9px;
}
.case-cover {
  min-height: 327px;
  position: relative;
  border-radius: 13px;
  overflow: hidden;
  background: #273b47;
}
.case-cover > img {
  position: absolute;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center 62%;
}
.case-cover > div {
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #101f2af2 0%,
    #172933bc 40%,
    #182a3328 100%
  );
}
.case-cover > section {
  position: relative;
  padding: 35px 32px;
  max-width: 500px;
}
.case-cover h1 {
  font-size: clamp(32px, 3.2vw, 47px);
  margin: 18px 0 16px;
  line-height: 1.08;
}
.case-cover p {
  font-size: 12px;
  color: #c4ced1;
  line-height: 1.8;
  margin-bottom: 22px;
}
.case-cover .eyebrow {
  font-size: 9px;
}
.case-cover .btn {
  padding: 10px 17px;
  font-size: 12px;
}
.current-lead {
  display: flex;
  gap: 20px;
  align-items: center;
  border: 1px solid #c9aa742a;
  background: #c9aa7405;
  border-radius: 11px;
  padding: 22px;
  margin: 22px 0;
}
.lead-number {
  font:
    36px Georgia,
    serif;
  color: #c9aa7473;
  min-width: 43px;
}
.current-lead .eyebrow {
  font-size: 8px;
  letter-spacing: 1.4px;
}
.current-lead h3 {
  font-size: 16px;
  margin: 5px 0;
}
.current-lead p {
  font-size: 12px;
  color: #97acb6;
  line-height: 1.6;
}
.current-lead .icon-button {
  margin-left: auto;
  color: var(--gold);
}
.quick-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}
.quick-grid > button {
  display: flex;
  text-align: left;
  align-items: flex-start;
  gap: 15px;
  background: #22343e;
  border: 1px solid var(--line);
  padding: 20px 17px;
  border-radius: 10px;
}
.quick-grid > button > svg {
  color: var(--gold);
  width: 20px;
  margin-top: 4px;
}
.quick-grid > button > svg:last-child {
  margin-left: auto;
  width: 16px;
  color: #9db0b7;
}
.quick-grid h3 {
  font-size: 13px;
}
.quick-grid p {
  font-size: 11px;
  color: #96aab3;
  margin-top: 8px;
}
.quick-grid button:hover {
  border-color: #c9aa7450;
  background: #263b47;
}
.coordinator-note {
  display: flex;
  gap: 15px;
  padding: 27px 0;
  margin-top: 8px;
  border-bottom: 1px solid var(--line);
}
.coordinator-note h4 {
  font-size: 11px;
  line-height: 1.6;
}
.coordinator-note h4 span {
  font-size: 9px;
  color: #7d98a7;
  font-weight: 400;
  margin-left: 10px;
}
.coordinator-note p {
  font-size: 12px;
  color: #b0bdc2;
  font-style: italic;
  margin-top: 6px;
}
.avatar {
  border-radius: 50%;
  width: 38px;
  height: 38px;
  object-fit: cover;
  object-position: center 34%;
  flex-shrink: 0;
  border: 1px solid #d4bb8f35;
}
.avatar.initials {
  display: grid;
  place-items: center;
  background: #dce3e0;
  color: #53656d;
  font:
    11px Georgia,
    serif;
  letter-spacing: 0.8px;
}
.avatar.large {
  height: 110px;
  width: 110px;
}
.investigation-footer {
  display: flex;
  justify-content: space-between;
  align-items: center;
  padding: 30px 0 24px;
  gap: 15px;
  margin-top: auto;
}
.investigation-footer > span {
  font:
    8px ui-monospace,
    monospace;
  color: #78929f;
  letter-spacing: 1px;
}
.investigation-footer button {
  background: none;
  border: 0;
  display: flex;
  align-items: center;
  gap: 7px;
  font-size: 10px;
  color: var(--gold);
}
/* Телефон — всегда под рукой */
.phone-panel {
  margin: 27px 24px 27px 0;
  background: #edf0ed;
  border: 7px solid #35414a;
  box-shadow:
    0 14px 40px #060d1426,
    inset 0 0 0 1px #bdc4c188;
  border-radius: 35px;
  color: #26353c;
  min-width: 0;
  position: sticky;
  top: 24px;
  height: calc(100svh - 134px);
  min-height: 580px;
  max-height: 820px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
}
.phone-status {
  display: flex;
  justify-content: space-between;
  padding: 14px 22px 7px;
  align-items: center;
  font-size: 9px;
  font-weight: 650;
  line-height: 1;
}
.phone-pill {
  height: 13px;
  width: 67px;
  border-radius: 13px;
  background: #202e35;
}
.phone-title {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 17px 17px 12px;
}
.phone-title small {
  font-size: 7px;
  letter-spacing: 1.3px;
  color: #70818a;
}
.phone-title h3 {
  font:
    23px/1.4 Georgia,
    serif;
  margin-top: 5px;
}
.phone-tabs {
  display: flex;
  gap: 4px;
  padding: 0 14px 14px;
  border-bottom: 1px solid #ccd3cf;
}
.phone-tabs button {
  position: relative;
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  border: 0;
  background: none;
  padding: 8px 12px 7px;
  font-size: 9px;
  color: #77868e;
  flex: 1;
}
.phone-tabs button.active {
  background: #dfe6e2;
  color: #263e47;
}
.phone-tabs .avatar {
  width: 33px;
  height: 33px;
  font-size: 9px;
  border: 0;
}
.phone-tabs i {
  position: absolute;
  top: 7px;
  right: 19px;
  background: #ab354a;
  border: 2px solid #e8eeea;
  border-radius: 50%;
  width: 9px;
  height: 9px;
}
.messages {
  padding: 12px 13px 20px;
  overflow-y: auto;
  scrollbar-width: thin;
  flex: 1;
  background: linear-gradient(130deg, #e9eeea, #e3e9e5);
}
.chat-date {
  font:
    8px ui-monospace,
    monospace;
  color: #829189;
  text-align: center;
  padding: 8px 0 17px;
  letter-spacing: 0.8px;
}
.bubble {
  background: #fffdf7;
  padding: 13px 14px 8px;
  border-radius: 14px 14px 14px 3px;
  margin: 0 15px 12px 0;
  box-shadow: 0 2px 3px #293b4304;
  border: 1px solid #d9e1db77;
  font-size: 12px;
  line-height: 1.7;
}
.bubble p {
  font-size: 12px;
  line-height: 1.75;
  margin: 0 0 6px;
}
.bubble time {
  display: block;
  font-size: 8px;
  color: #9baba3;
  text-align: right;
}
.bubble.own {
  background: #d3e0d7;
  margin-left: 15px;
  margin-right: 0;
  border-radius: 14px 14px 3px 14px;
}
.sender {
  display: block;
  font-size: 9px;
  color: #62816f;
  margin-bottom: 5px;
}
.chat-attachment {
  display: flex;
  align-items: center;
  gap: 10px;
  color: #415e59;
  width: 100%;
  background: #e7ede6;
  border: 1px solid #d3ded4;
  padding: 11px 10px;
  margin: 10px 0 5px;
  text-align: left;
  border-radius: 8px;
}
.chat-attachment > span {
  font-size: 10px;
  font-weight: 650;
  min-width: 0;
}
.chat-attachment small {
  display: block;
  font-size: 8px;
  color: #7d9084;
  font-weight: 400;
  margin-top: 2px;
}
.chat-attachment > svg:last-child {
  margin-left: auto;
}
.bubble .text-button {
  font-size: 10px;
  color: #47715d;
}
.phone-bottom {
  padding: 10px 16px 7px;
  font-size: 7px;
  color: #8b9a93;
  display: flex;
  justify-content: center;
  align-items: center;
  gap: 5px;
  flex-wrap: wrap;
  border-top: 1px solid #d8dfd9;
}
.phone-bottom span {
  height: 3px;
  width: 80px;
  background: #71878077;
  border-radius: 5px;
  display: block;
  margin-top: 7px;
  margin-left: 85px;
  margin-right: 85px;
}
.phone-note {
  font-size: 9px;
  color: #73867c;
  text-align: center;
  margin: 18px 7px;
}
.inline-calendar {
  background: #f3f4e9;
  padding: 12px;
  border-radius: 7px;
  margin-top: 10px;
}
.inline-calendar p {
  font-size: 10px;
}
.inline-calendar small {
  font-size: 9px;
  line-height: 1.5;
  display: block;
}
.inline-calendar .found-tag {
  margin-top: 10px;
}
.reply-option {
  font-size: 11px;
  color: #456b5c;
  border: 1px solid #a8c0b0;
  background: #e3ece4;
  text-align: left;
  padding: 13px;
  margin: 8px 0 15px;
  line-height: 1.6;
}
.voicemail .small-label {
  font-size: 7px;
  color: #946b71;
}
.voicemail h4 {
  font-size: 12px;
  margin-top: 10px;
}
.voice-play {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 9px 0;
  background: none;
  border: 0;
  color: #4c7160;
  width: 100%;
}
.wave {
  font-size: 14px;
  letter-spacing: 1px;
}
.voice-play > span:last-child {
  font-size: 8px;
}
.bubble .btn {
  font-size: 10px;
  padding: 9px 10px;
}
.mobile-close,
.mobile-phone-button {
  display: none;
}
/* Документы и наблюдения */
.paper {
  background: var(--paper);
  color: var(--ink);
  padding: 33px 35px;
  border-radius: 4px 4px 11px 11px;
  box-shadow: 0 9px 25px #06111620;
  border-top: 3px solid #d5c399;
  position: relative;
  min-height: 540px;
}
.paper-heading {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  align-items: center;
  color: #829089;
  margin-bottom: 26px;
}
.paper-heading .icon-label {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.paper h2 {
  font-size: 38px;
  margin-bottom: 25px;
}
.paper h3 {
  font-size: 16px;
}
.found-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font:
    8px ui-monospace,
    monospace;
  background: #dfe9df;
  color: #4d785e;
  padding: 5px 8px;
  border-radius: 5px;
  white-space: nowrap;
}
.mail-address {
  display: flex;
  align-items: center;
  gap: 13px;
  border-top: 1px solid #dcded5;
  border-bottom: 1px solid #dcded5;
  padding: 17px 0;
}
.initial-badge {
  display: grid;
  place-items: center;
  width: 37px;
  height: 37px;
  border-radius: 50%;
  background: #e1e3d9;
  color: #5c7067;
  font: 13px Georgia;
}
.mail-address b {
  font-size: 12px;
  font-weight: 600;
}
.mail-address small {
  display: block;
  font-size: 10px;
  color: #8b9690;
  margin-top: 2px;
}
.mail-address time {
  margin-left: auto;
  text-align: right;
  font-size: 9px;
  color: #8b9790;
}
.mail-address time b {
  font:
    16px ui-monospace,
    monospace;
  color: #566b62;
}
.paper blockquote {
  font:
    italic 26px/1.55 Georgia,
    serif;
  margin: 37px 0 20px;
  color: #3c504a;
  letter-spacing: -0.3px;
}
.signature {
  font:
    italic 17px Georgia,
    serif;
  color: #7b877f;
  margin-bottom: 40px;
}
.mail-question {
  border-top: 1px solid #d8ddd3;
  padding-top: 23px;
}
.mail-question p {
  font-size: 12px;
  color: #77867d;
  line-height: 1.8;
  margin: 10px 0 17px;
}
.receipt {
  display: flex;
  flex-wrap: wrap;
  gap: 18px;
  align-items: center;
  margin-top: 25px;
  background: #e7ebe2;
  border-radius: 9px;
  padding: 20px;
}
.receipt > div {
  flex: 1;
}
.receipt small {
  display: block;
  font-size: 8px;
  letter-spacing: 0.6px;
  color: #819184;
}
.receipt strong {
  font:
    31px ui-monospace,
    monospace;
  display: block;
  margin: 10px 0;
  color: #4e6c5c;
}
.receipt span {
  font-size: 10px;
  color: #6d8276;
}
.receipt > svg {
  color: #9eafa3;
}
.receipt p {
  width: 100%;
  border-top: 1px dashed #c6d0c2;
  padding-top: 14px;
  font-size: 11px;
  color: #62776a;
}
.provenance {
  font-size: 9px;
  line-height: 1.8;
  color: #819084;
  margin-top: 28px;
  border-top: 1px solid #d7ddd3;
  padding-top: 15px;
}
.section-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin: 3px 0 24px;
}
.section-heading h2 {
  font-size: 36px;
  margin-top: 14px;
}
.section-heading > .found-tag {
  align-self: flex-start;
  margin-top: 10px;
}
.material-page > .eyebrow {
  margin-top: 8px;
}
.material-page > h2 {
  margin-top: 17px;
}
.cctv {
  position: relative;
  background: #0d1820;
  border-radius: 10px;
  overflow: hidden;
  border: 1px solid #475b63;
}
.cctv video {
  display: block;
  width: 100%;
  aspect-ratio: 16/9;
  object-fit: cover;
}
.cctv-time {
  position: absolute;
  top: 13px;
  left: 15px;
  right: 15px;
  display: flex;
  align-items: center;
  gap: 7px;
  font:
    10px ui-monospace,
    monospace;
  color: #e0e8df;
  text-shadow: 0 1px 4px #000;
  background: #10202960;
  border-radius: 3px;
  padding: 5px 8px;
  pointer-events: none;
}
.cctv-time i {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #b4454c;
}
.cctv-time span {
  margin-left: auto;
}
.camera-caption {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin: 12px 0 24px;
  color: #889fa8;
  font-size: 9px;
}
.camera-caption .icon-label {
  font-size: 10px;
  color: #b0c0c3;
}
.observation {
  background: #20323c;
  border: 1px solid var(--line);
  padding: 23px;
  border-radius: 12px;
}
.observation h3 {
  font-size: 16px;
}
.observation p {
  font-size: 13px;
  color: #a4b4be;
  margin: 10px 0 20px;
}
.observation-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
}
.next-prompt {
  display: flex;
  align-items: center;
  gap: 13px;
  background: #8eb59f0c;
  border: 1px solid #8eb59f2e;
  padding: 17px;
  border-radius: 11px;
  margin-top: 20px;
  color: #a6cfb6;
}
.next-prompt b {
  font-size: 12px;
}
.next-prompt p {
  font-size: 10px;
  color: #94b2a3;
  margin-top: 5px;
}
.next-prompt .btn {
  margin-left: auto;
}
.paper-intro {
  font-size: 13px;
  color: #6e8177;
  line-height: 1.9;
  margin: 5px 0 25px;
}
.log-table {
  background: #e7e9df;
  border: 1px solid #d8ddd0;
  border-radius: 7px;
  overflow: hidden;
  margin: 24px 0;
}
.log-table > div {
  display: grid;
  grid-template-columns: 1fr 1.35fr 0.7fr;
  gap: 9px;
  align-items: center;
  padding: 14px;
  border-bottom: 1px solid #d3dacd;
  font-size: 10px;
}
.log-table > div:first-child {
  background: #dee4d9;
  font-size: 8px;
  letter-spacing: 0.5px;
  color: #7c8c7e;
}
.log-table > div:last-child {
  border: 0;
}
.log-table b {
  font:
    9px ui-monospace,
    monospace;
  word-break: break-all;
}
.log-table strong {
  font:
    19px ui-monospace,
    monospace;
  text-align: right;
}
.log-table .time-old {
  color: #47705a;
}
.stamp {
  display: inline-flex;
  flex-direction: column;
  border: 1px solid #80948080;
  color: #617b63;
  font-size: 10px;
  padding: 9px 13px;
  transform: rotate(-2deg);
  border-radius: 3px;
  margin-bottom: 26px;
}
.stamp span {
  font-size: 7px;
  letter-spacing: 1px;
}
.compare-form {
  border-top: 1px solid #d5ddd1;
  padding-top: 24px;
}
.compare-form > div {
  display: flex;
  gap: 10px;
  margin: 18px 0;
  align-items: center;
}
.compare-form select {
  padding: 11px 12px;
  border: 1px solid #c9d1c2;
  background: #f8f8f2;
  color: #435e4f;
  max-width: 170px;
}
.audit-reveal {
  background: #dfe8dc;
  border-left: 3px solid #739679;
  padding: 20px;
  margin-top: 25px;
  border-radius: 0 7px 7px 0;
}
.audit-reveal .small-label {
  color: #6e8d73;
  font-size: 8px;
}
.audit-reveal h3 {
  margin: 10px 0;
}
.audit-reveal p {
  font-size: 12px;
  color: #55715d;
  margin: 10px 0;
}
.audit-reveal code {
  font-size: 10px;
  color: #4d6753;
}
.paper .soft-tip {
  background: #e5e9df;
}
.paper .soft-tip p {
  color: #617767;
}
.paper .soft-tip .btn {
  color: white;
}
.folder-tab {
  background: #ddbd65;
  display: inline-block;
  font:
    9px ui-monospace,
    monospace;
  color: #725e28;
  padding: 6px 14px;
  border-radius: 4px;
  letter-spacing: 1px;
  margin-bottom: 22px;
}
.file-timeline {
  border-left: 1px solid #cad3c4;
  margin: 25px 0 28px 7px;
  padding-left: 25px;
}
.file-timeline > div {
  position: relative;
  margin-bottom: 23px;
}
.file-timeline > div:before {
  content: "";
  position: absolute;
  left: -30px;
  top: 6px;
  width: 9px;
  height: 9px;
  border: 2px solid #f4f2eb;
  background: #7f9b84;
  border-radius: 50%;
}
.file-timeline span {
  font:
    8px ui-monospace,
    monospace;
  color: #859580;
  letter-spacing: 0.5px;
}
.file-timeline h3 {
  font-size: 14px;
  margin: 6px 0;
}
.file-timeline p {
  font-size: 11px;
  color: #81917d;
}
.file-note {
  background: #eee4c7;
  border: 1px solid #ded0a9;
  padding: 20px;
  border-radius: 3px;
  box-shadow: 2px 3px 0 #e0d8bc;
  transform: rotate(-0.5deg);
  margin: 28px 0;
}
.file-note p {
  font:
    italic 18px/1.6 Georgia,
    serif;
  color: #675c40;
  margin-bottom: 17px;
}
.file-note > span {
  font-size: 8px;
  letter-spacing: 1px;
  color: #9a8555;
}
.file-note strong {
  display: block;
  font:
    28px ui-monospace,
    monospace;
  color: #73613c;
  letter-spacing: 3px;
  margin-top: 7px;
}
.file-paper > p:not(.provenance) {
  font-size: 12px;
  color: #6f816f;
  margin-bottom: 20px;
}
.archive-search {
  display: flex;
  align-items: center;
  gap: 12px;
  background: #263a46;
  border: 1px solid #4b637155;
  padding: 10px 11px 10px 17px;
  border-radius: 12px;
  margin-top: 30px;
}
.archive-search > svg {
  color: #a1b6bd;
}
.archive-search input {
  min-width: 0;
  width: 100%;
  background: none;
  border: 0;
  outline: none;
  color: #d6e0e0;
  font:
    14px ui-monospace,
    monospace;
}
.archive-search input::placeholder {
  font:
    12px -apple-system,
    sans-serif;
  color: #9aaeb7;
}
.archive-search .btn {
  padding: 9px 17px;
}
.archive-empty {
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
  gap: 20px;
  padding: 65px 25px;
  color: #7b98a7;
  text-align: center;
  font-size: 13px;
}
.archive-empty > svg {
  opacity: 0.5;
  stroke-width: 1;
}
.meridian-card {
  border: 1px solid #c9aa7440;
  background: linear-gradient(140deg, #c9aa740a, #15222b);
  padding: 35px;
  border-radius: 12px;
  margin-top: 28px;
  position: relative;
  overflow: hidden;
}
.meridian-logo {
  position: absolute;
  right: 20px;
  top: 0;
  font:
    110px Georgia,
    serif;
  color: #c9aa7415;
}
.meridian-card h2 {
  font-size: 32px;
  margin: 16px 0 25px;
}
.meridian-card dl {
  font-size: 12px;
  margin: 0;
}
.meridian-card dl > div {
  display: flex;
  justify-content: space-between;
  gap: 15px;
  border-bottom: 1px solid var(--line);
  padding: 12px 0;
}
.meridian-card dt {
  color: var(--muted);
}
.meridian-card dd {
  margin: 0;
}
.meridian-card p {
  font-size: 13px;
  margin: 22px 0;
  color: #b7c4c9;
}
/* Доска и общая версия */
.board-page > h2,
.notes-page > h2,
.team-page > h2 {
  margin: 18px 0 0;
}
.evidence-grid {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 22px;
  margin: 34px 0;
}
.evidence-card {
  background: #e8e4d8;
  color: #37463c;
  border: none;
  position: relative;
  text-align: left;
  padding: 24px 22px 19px;
  border-radius: 3px;
  box-shadow: 2px 5px 0 #0c172455;
  transform: rotate(-1deg);
  transition: 0.15s;
  overflow: hidden;
}
.evidence-card:nth-child(even) {
  transform: rotate(1deg);
  background: #f0ecde;
}
.evidence-card:hover {
  transform: rotate(0) translateY(-3px);
}
.evidence-card .pin {
  position: absolute;
  top: 9px;
  left: 50%;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #993b46;
  box-shadow: 1px 2px 3px #80323755;
}
.evidence-kind {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #95967e;
  text-transform: uppercase;
}
.evidence-card h3 {
  font:
    21px/1.2 Georgia,
    serif;
  margin: 10px 0 12px;
}
.evidence-card p {
  font-size: 11px;
  color: #7f8a75;
  line-height: 1.75;
}
.evidence-card small {
  display: block;
  font:
    8px ui-monospace,
    monospace;
  color: #93997f;
  border-top: 1px solid #cbd0b9;
  padding-top: 10px;
  margin-top: 15px;
}
.evidence-card img {
  width: calc(100% + 44px);
  margin: -24px -22px 15px;
  height: 135px;
  object-fit: cover;
}
.board-timeline {
  margin: 30px 0;
}
.board-timeline h3 {
  display: flex;
  align-items: center;
  gap: 9px;
  margin-bottom: 23px;
  font-size: 14px;
  color: #c4cfcf;
}
.board-timeline > div {
  position: relative;
  margin-left: 6px;
  padding: 0 0 23px 25px;
  border-left: 1px solid #c9aa743a;
}
.board-timeline i {
  position: absolute;
  left: -4px;
  top: 4px;
  width: 7px;
  height: 7px;
  background: var(--gold);
  border-radius: 50%;
  border: 2px solid var(--bg);
}
.board-timeline span {
  font:
    9px ui-monospace,
    monospace;
  color: var(--gold);
}
.board-timeline p {
  font-size: 12px;
  color: #a7bcc5;
  margin-top: 4px;
}
.statement-list {
  display: grid;
  gap: 10px;
  margin: 30px 0;
}
.statement-list label {
  display: flex;
  gap: 13px;
  align-items: flex-start;
  background: #20323d;
  border: 1px solid var(--line);
  padding: 17px;
  border-radius: 9px;
  font-size: 13px;
  cursor: pointer;
  line-height: 1.75;
  color: #afbec5;
}
.statement-list label.chosen {
  border-color: #c9aa7470;
  background: #c9aa740b;
  color: #e7dcc7;
}
.statement-list input {
  width: 16px;
  height: 16px;
  accent-color: var(--gold);
  margin-top: 4px;
  flex-shrink: 0;
}
.statement-list span {
  flex: 1;
}
.statement-list svg {
  color: var(--gold);
  margin-top: 3px;
}
.ending-seal {
  display: grid;
  place-items: center;
  width: 68px;
  height: 68px;
  border-radius: 50%;
  border: 1px solid #c9aa7460;
  color: var(--gold);
  background: #c9aa740a;
  margin: 5px 0 30px;
}
.ending-title {
  font-size: 60px;
  margin: 20px 0;
}
.ending-lead {
  font-size: 16px;
  color: #b3c1c6;
  max-width: 600px;
}
.ending-truth {
  border: 1px solid var(--line);
  background: #22343f;
  padding: 25px;
  border-radius: 11px;
  margin: 28px 0;
}
.ending-truth h3 {
  font-size: 14px;
  color: #d8d7c9;
  margin: 14px 0 9px;
}
.ending-truth h3:first-child {
  margin-top: 0;
}
.ending-truth p {
  font-size: 12px;
  color: #a5b9c0;
}
.next-chapter {
  padding: 25px;
  border-left: 2px solid var(--gold);
  background: #c9aa7409;
}
.next-chapter > span {
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: var(--gold);
}
.next-chapter h2 {
  font-size: 29px;
  margin: 10px 0;
}
.next-chapter p {
  font-size: 12px;
  color: #91a9b6;
}
.discussion-card {
  display: flex;
  gap: 17px;
  align-items: flex-start;
  margin: 25px 0;
  padding: 22px;
  background: #233742;
  border: 1px solid var(--line);
  border-radius: 11px;
}
.discussion-card > svg {
  color: var(--gold);
  margin-top: 3px;
}
.discussion-card h3 {
  font-size: 15px;
}
.discussion-card p {
  font-size: 12px;
  color: #9ab2bc;
  margin-top: 9px;
}
.notes-page textarea {
  width: 100%;
  min-height: 390px;
  border: 1px solid #c9aa7430;
  border-top: 3px solid #c9aa7470;
  background: repeating-linear-gradient(
    #ecebdd 0px,
    #ecebdd 31px,
    #dce0d1 31px,
    #dce0d1 32px
  );
  line-height: 32px;
  padding: 24px;
  color: #465b4d;
  border-radius: 6px;
  resize: vertical;
  margin-top: 30px;
  font-size: 14px;
}
.notes-page textarea::placeholder {
  color: #93a18d;
}
.notes-footer {
  display: flex;
  justify-content: space-between;
  margin: 12px 0;
  color: #829fa8;
  font-size: 9px;
}
.notes-footer > span:first-child {
  display: flex;
  gap: 5px;
  align-items: center;
}
.team-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin: 20px 0;
}
.team-chips > span {
  display: flex;
  gap: 8px;
  align-items: center;
  border: 1px solid var(--line);
  background: #223640;
  border-radius: 25px;
  padding: 5px 12px 5px 5px;
  font-size: 11px;
}
.team-chips i {
  width: 25px;
  height: 25px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #c9aa7422;
  color: var(--gold);
  font-style: normal;
}
.team-chat {
  background: #1d2f3a;
  border: 1px solid var(--line);
  border-radius: 12px;
  overflow: hidden;
}
.team-chat-log {
  min-height: 140px;
  max-height: 350px;
  overflow-y: auto;
  padding: 20px;
}
.team-chat-log article {
  border-left: 2px solid #c9aa7466;
  padding: 0 0 0 12px;
  margin-bottom: 18px;
}
.team-chat-log article b {
  font-size: 10px;
  color: var(--gold);
}
.team-chat-log article p {
  font-size: 12px;
  color: #bfd0d4;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
}
.team-chat form {
  display: flex;
  gap: 12px;
  padding: 12px;
  background: #243a46;
  border-top: 1px solid var(--line);
}
.team-chat input {
  background: none;
  min-width: 0;
  flex: 1;
  border: 0;
  padding: 8px 10px;
  color: var(--text);
  font-size: 12px;
}
.send-btn {
  border: 0;
  background: var(--wine);
  color: white;
  display: grid;
  place-items: center;
  width: 40px;
  height: 40px;
}
.activity-heading {
  font-size: 13px;
  margin: 30px 0 13px;
}
.activity-log > div {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 12px 0;
  border-bottom: 1px solid var(--line);
  color: #89a998;
}
.activity-log p {
  font-size: 11px;
  color: #9cb2bd;
  flex: 1;
}
.activity-log time {
  font:
    9px ui-monospace,
    monospace;
  color: #6d8a99;
}
/* Звонки и мягкие подсказки */
.call-overlay,
.overlay {
  position: fixed;
  inset: 0;
  z-index: 60;
  background: #08131ac9;
  backdrop-filter: blur(8px);
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 25px;
}
.incoming-call {
  border: 1px solid #c9aa7444;
  background: linear-gradient(160deg, #2e4551, #142832);
  padding: 36px 45px;
  width: 370px;
  text-align: center;
  border-radius: 30px;
  box-shadow: 0 28px 80px #0007;
}
.incoming-call > .eyebrow {
  font-size: 9px;
  letter-spacing: 2px;
  color: #a7b9c4;
}
.ring-avatar {
  margin: 40px auto 24px;
  width: 110px;
  height: 110px;
  position: relative;
}
.ring-avatar:before,
.ring-avatar:after {
  content: "";
  position: absolute;
  inset: -12px;
  border: 1px solid #b8cab659;
  border-radius: 50%;
  animation: ringPulse 2.5s ease-out infinite;
}
.ring-avatar:after {
  animation-delay: 1.25s;
}
@keyframes ringPulse {
  0% {
    transform: scale(0.95);
    opacity: 0.8;
  }
  100% {
    transform: scale(1.45);
    opacity: 0;
  }
}
.incoming-call h2 {
  font-size: 31px;
  letter-spacing: -0.4px;
}
.incoming-call > p {
  font-size: 11px;
  color: #95afbb;
  margin-top: 9px;
}
.call-actions {
  display: flex;
  gap: 50px;
  justify-content: center;
  margin: 35px 0 30px;
}
.call-actions button {
  border: 0;
  background: none;
  display: flex;
  align-items: center;
  flex-direction: column;
  gap: 12px;
  font-size: 11px;
  color: #b5c9d3;
}
.call-actions button span {
  width: 62px;
  height: 62px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  color: white;
}
.call-actions .decline {
  background: #b44356;
  box-shadow: 0 5px 25px #992b4533;
}
.call-actions .accept {
  background: #639d7e;
  box-shadow: 0 5px 25px #3e835c44;
}
.incoming-call > small {
  font-size: 9px;
  color: #8fa9b5;
}
.active-call {
  max-width: 540px;
  width: 100%;
  background: #1d303b;
  border: 1px solid #ffffff25;
  border-radius: 19px;
  overflow: hidden;
  box-shadow: 0 28px 80px #0007;
}
.active-call-head {
  display: flex;
  gap: 13px;
  align-items: center;
  padding: 22px 25px;
  background: #263c46;
  border-bottom: 1px solid var(--line);
}
.active-call-head h3 {
  font-size: 15px;
}
.active-call-head span {
  font-size: 9px;
  color: #8caf9a;
  margin-top: 6px;
  display: flex;
  gap: 5px;
  align-items: center;
}
.active-call-head i {
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: #a2c3ac;
}
.active-call-head .icon-button {
  margin-left: auto;
  color: #e995a3;
  background: #ae415622;
}
.call-transcript {
  padding: 30px;
  min-height: 220px;
}
.call-transcript > .small-label {
  color: var(--gold);
  margin-bottom: 14px;
}
.call-transcript p {
  font:
    22px/1.7 Georgia,
    serif;
  color: #d5e0de;
  letter-spacing: -0.2px;
}
.call-transcript .text-button {
  margin-top: 16px;
  font-size: 10px;
}
.call-transcript > small {
  font-size: 10px;
  color: #90a9b6;
  display: block;
  margin-top: 10px;
}
.call-replies {
  padding: 0 30px 24px;
}
.call-replies .small-label {
  font-size: 8px;
  margin-bottom: 10px;
}
.call-replies .btn {
  width: 100%;
  text-align: left;
  justify-content: space-between;
  font-weight: 400;
  font-size: 12px;
  padding: 14px 17px;
}
.speech-credit {
  text-align: center;
  font-size: 8px;
  color: #718e9e;
  padding: 0 18px 18px;
}
.dialog {
  max-width: 550px;
  width: 100%;
  max-height: calc(100svh - 50px);
  overflow-y: auto;
  background: #20323d;
  border: 1px solid #ffffff24;
  box-shadow: 0 20px 80px #0006;
  border-radius: 16px;
  padding: 36px;
  position: relative;
}
.close {
  position: absolute;
  top: 12px;
  right: 12px;
  border: 0;
  background: none;
  color: #9db0ba;
  padding: 7px;
  display: grid;
  place-items: center;
}
.close svg {
  width: 18px;
}
.dialog h2 {
  margin: 15px 0 23px;
  font-size: 34px;
}
.dialog > p {
  color: #b0c3cb;
  font-size: 13px;
  margin: 15px 0;
}
.dialog .btn.wide {
  margin-top: 12px;
}
.dialog > .eyebrow {
  padding-right: 20px;
}
.hint-dialog > .gold {
  margin-bottom: 20px;
}
.hint-dialog > .eyebrow {
  font-size: 8px;
}
.hint-dialog > p {
  font-size: 12px;
}
.hint-step {
  display: flex;
  gap: 13px;
  margin: 18px 0;
  padding: 17px;
  background: #c9aa7409;
  border: 1px solid #c9aa7420;
  border-radius: 9px;
}
.hint-step > span {
  font:
    19px Georgia,
    serif;
  color: var(--gold);
}
.hint-step p {
  font-size: 12px;
  color: #c2c9c6;
  line-height: 1.7;
}
.clue-photo {
  width: 100%;
  border-radius: 8px;
  margin-bottom: 10px;
}
.toast {
  position: fixed;
  bottom: 25px;
  left: 50%;
  transform: translateX(-50%);
  background: #e6eadf;
  color: #304e3c;
  border: 1px solid #95af9944;
  padding: 14px 22px;
  border-radius: 11px;
  box-shadow: 0 9px 30px #00121940;
  z-index: 90;
  font-size: 12px;
  display: flex;
  gap: 10px;
  align-items: center;
  max-width: calc(100vw - 35px);
  width: max-content;
  animation: toastIn 0.2s ease-out;
}
@keyframes toastIn {
  from {
    opacity: 0;
    bottom: 15px;
  }
  to {
    opacity: 1;
    bottom: 25px;
  }
}
@media (min-width: 1600px) {
  .investigation {
    padding-left: 55px;
    padding-right: 55px;
  }
  .game-layout {
    grid-template-columns: 96px minmax(0, 1fr) 390px;
  }
  .phone-panel {
    margin-right: 32px;
  }
  .case-cover {
    min-height: 390px;
  }
  .case-cover > section {
    padding: 45px;
  }
  .case-cover h1 {
    font-size: 51px;
  }
  .entry-form {
    padding-left: 15%;
    padding-right: 15%;
  }
}
@media (max-width: 1180px) {
  .game-header {
    gap: 25px;
    padding: 0 22px;
  }
  .case-identity {
    gap: 12px;
    padding-left: 23px;
  }
  .case-identity b {
    display: none;
  }
  .game-layout {
    grid-template-columns: 72px minmax(0, 1fr) 310px;
  }
  .investigation {
    padding: 22px 23px 0;
  }
  .phone-panel {
    margin-right: 16px;
    border-width: 6px;
  }
  .phone-tabs button {
    padding: 8px;
  }
  .bubble {
    padding: 11px 12px 7px;
    margin-right: 6px;
  }
  .phone-title h3 {
    font-size: 21px;
  }
  .messages {
    padding: 11px;
  }
  .entry-form {
    padding: 30px 10%;
  }
  .entry-brand {
    padding: 30px 35px;
  }
  .entry-story {
    padding: 80px 40px 45px;
  }
  .entry-content h2 {
    font-size: 40px;
  }
  .entry-caption {
    margin: 0 35px;
    font-size: 8px;
  }
  .entry-tags {
    gap: 13px;
    flex-wrap: wrap;
  }
  .intro-copy {
    padding: 35px;
  }
  .intro-copy h1 {
    font-size: 36px;
  }
  .intro-player video {
    min-height: 420px;
  }
  .quick-grid {
    gap: 11px;
  }
  .quick-grid button {
    padding: 17px 14px;
    gap: 10px;
  }
  .quick-grid > button > svg:last-child {
    display: none;
  }
  .chapter-bar b {
    font-size: 11px;
  }
  .paper {
    padding: 25px;
  }
  .current-lead {
    padding: 19px 16px;
    gap: 12px;
  }
  .material-tabs button {
    padding-left: 9px;
    padding-right: 9px;
    font-size: 10px;
  }
}
@media (max-width: 950px) {
  .save-status {
    display: none;
  }
  .case-identity b {
    display: block;
  }
  .game-layout {
    grid-template-columns: 70px minmax(0, 1fr);
  }
  .phone-panel {
    display: none;
  }
  .mobile-phone-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d6b17b70;
    background: #253b48;
    color: #ead4b3;
    padding: 13px 18px;
    border-radius: 25px;
    font-size: 12px;
    box-shadow: 0 7px 25px #0004;
  }
  .mobile-phone-button > i {
    position: absolute;
    right: 15px;
    top: 8px;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background: #cf5470;
  }
  .phone-panel.phone-open {
    display: flex;
    position: fixed;
    right: 18px;
    bottom: 78px;
    top: auto;
    width: 345px;
    z-index: 40;
    height: min(680px, calc(100svh - 110px));
    max-height: none;
    min-height: 0;
    margin: 0;
    box-shadow:
      0 0 0 100vmax #07101980,
      0 15px 60px #0009;
  }
  .mobile-close {
    display: inline-flex;
  }
  .investigation {
    padding: 26px 35px 0;
    min-height: calc(100svh - 82px);
  }
  .investigation-footer {
    padding-bottom: 95px;
  }
  .case-cover {
    min-height: 370px;
  }
  .case-cover > section {
    padding: 38px;
  }
  .case-cover h1 {
    font-size: 48px;
  }
  .entry {
    grid-template-columns: 1fr 1fr;
  }
  .entry-content h2 {
    font-size: 34px;
  }
  .entry-top {
    font-size: 8px;
    letter-spacing: 0.5px;
  }
  .entry-story h1 {
    font-size: 62px;
  }
  .entry-story {
    padding: 80px 30px 40px;
  }
  .entry-caption {
    font-size: 7px;
    gap: 9px;
    margin: 0 25px;
  }
  .entry-brand {
    padding: 30px 25px;
  }
  .entry-tags .icon-label {
    font-size: 10px;
  }
  .entry-form {
    padding: 30px 9%;
  }
  .mode-card {
    padding: 18px 14px;
    gap: 12px;
  }
  .mode-card b {
    font-size: 13px;
  }
  .mode-card small {
    font-size: 10px;
  }
  .room-code b {
    font-size: 17px;
    letter-spacing: 1px;
  }
  .intro-player {
    grid-template-columns: 1fr;
  }
  .intro-player video {
    min-height: 0;
    aspect-ratio: 16/9;
    max-height: 470px;
  }
  .intro-copy {
    padding: 35px;
  }
  .intro-copy p {
    min-height: 0;
  }
  .intro-copy h1 {
    font-size: 41px;
    margin: 18px 0;
  }
  .intro-guide {
    gap: 25px;
  }
  .rail {
    height: calc(100svh - 82px);
  }
}
@media (max-width: 640px) {
  .entry {
    display: flex;
    flex-direction: column;
  }
  .entry-scene {
    min-height: 360px;
    max-height: 440px;
  }
  .entry-brand {
    padding: 22px 24px;
  }
  .entry-story {
    padding: 45px 27px 30px;
  }
  .entry-story h1 {
    font-size: 55px;
    margin: 13px 0 16px;
  }
  .entry-story > p {
    font-size: 13px;
  }
  .entry-story .eyebrow {
    font-size: 8px;
  }
  .entry-tags {
    margin-top: 18px;
    gap: 20px;
  }
  .entry-caption {
    display: none;
  }
  .entry-form {
    padding: 24px;
    min-height: 550px;
  }
  .entry-content {
    padding: 33px 0;
    max-width: none;
  }
  .entry-content h2 {
    font-size: 37px;
  }
  .entry-content label {
    font-size: 12px;
  }
  .entry-description {
    font-size: 13px;
  }
  .entry-top {
    font-size: 8px;
  }
  .entry-footer {
    font-size: 9px;
  }
  .step-label {
    margin-bottom: 16px;
    font-size: 9px;
  }
  .mode-card {
    padding: 20px;
  }
  .mode-card b {
    font-size: 15px;
  }
  .mode-card small {
    font-size: 11px;
  }
  .game-header {
    height: 66px;
    padding: 0 17px;
    gap: 12px;
  }
  .game-header .logo-mark {
    height: 31px;
    width: 28px;
    font-size: 21px;
  }
  .game-header .logo > span:last-child {
    font-size: 10px;
    letter-spacing: 1.5px;
  }
  .game-header .logo small {
    font-size: 6px;
    letter-spacing: 3px;
  }
  .case-identity {
    display: none;
  }
  .header-actions {
    gap: 8px;
  }
  .profile-chip b {
    display: none;
  }
  .profile-chip {
    padding: 0;
  }
  .game-layout {
    display: flex;
    flex-direction: column;
  }
  .rail {
    position: sticky;
    top: 0;
    height: auto;
    min-height: 0;
    width: 100%;
    flex-direction: row;
    border-right: 0;
    border-bottom: 1px solid var(--line);
    padding: 5px 10px;
    gap: 5px;
    z-index: 30;
    background: #14212af5;
    backdrop-filter: blur(8px);
  }
  .rail button {
    flex: 1;
    flex-direction: row;
    justify-content: center;
    gap: 6px;
    padding: 12px 6px;
    font-size: 10px;
    border-radius: 5px;
  }
  .rail svg {
    width: 16px;
    height: 16px;
  }
  .rail button.active:before {
    display: none;
  }
  .rail small {
    font-size: 7px;
    top: 0;
    right: 0;
    min-width: 12px;
  }
  .rail .rail-help {
    margin: 0;
    flex: 0;
    padding: 9px;
  }
  .rail-help span {
    display: none;
  }
  .investigation {
    padding: 20px 18px 0;
    min-height: calc(100svh - 112px);
  }
  .chapter-bar {
    font-size: 8px;
    letter-spacing: 0.2px;
    margin-bottom: 20px;
  }
  .chapter-bar b {
    font-size: 10px;
  }
  .chapter-bar > span:first-child {
    gap: 6px;
  }
  .material-tabs {
    margin-bottom: 20px;
  }
  .material-tabs button {
    font-size: 10px;
    padding-bottom: 12px;
    padding-left: 10px;
    padding-right: 10px;
  }
  .case-cover {
    min-height: 320px;
  }
  .case-cover > section {
    padding: 28px 23px;
  }
  .case-cover h1 {
    font-size: 36px;
    margin-top: 14px;
  }
  .case-cover p {
    font-size: 11px;
  }
  .case-cover > div {
    background: linear-gradient(90deg, #101f2aec, #14273555);
  }
  .case-cover .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .case-cover .btn {
    font-size: 11px;
  }
  .current-lead {
    padding: 18px 15px;
    margin: 18px 0;
    gap: 12px;
  }
  .lead-number {
    font-size: 30px;
    min-width: 33px;
  }
  .current-lead h3 {
    font-size: 14px;
  }
  .current-lead p {
    font-size: 11px;
  }
  .current-lead .icon-button {
    padding: 0;
    min-width: 25px;
  }
  .quick-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .quick-grid > button {
    padding: 18px;
    align-items: center;
  }
  .quick-grid > button > svg:last-child {
    display: block;
  }
  .quick-grid h3 {
    font-size: 14px;
  }
  .quick-grid p {
    font-size: 11px;
    margin-top: 5px;
  }
  .quick-grid br {
    display: none;
  }
  .coordinator-note {
    gap: 12px;
    padding: 22px 0;
  }
  .coordinator-note h4 span {
    display: block;
    margin: 3px 0 0;
    font-size: 9px;
  }
  .coordinator-note p {
    font-size: 11px;
  }
  .investigation-footer {
    font-size: 8px;
    align-items: flex-start;
  }
  .investigation-footer > span {
    font-size: 7px;
  }
  .investigation-footer button {
    font-size: 9px;
  }
  .paper {
    padding: 24px 19px;
    min-height: 0;
  }
  .paper h2 {
    font-size: 31px;
  }
  .paper-heading {
    gap: 10px;
    align-items: flex-start;
  }
  .paper-heading .icon-label {
    font-size: 7px;
    letter-spacing: 0.5px;
  }
  .paper-heading .icon-label svg {
    width: 12px;
  }
  .paper-heading .found-tag {
    font-size: 6px;
    gap: 3px;
    padding: 4px 6px;
  }
  .paper blockquote {
    font-size: 22px;
    margin-top: 30px;
  }
  .mail-address {
    gap: 10px;
  }
  .mail-address b {
    font-size: 11px;
  }
  .mail-address small {
    font-size: 9px;
  }
  .mail-question h3 {
    font-size: 15px;
  }
  .mail-question p {
    font-size: 11px;
  }
  .paper .btn {
    font-size: 11px;
    padding: 11px 14px;
  }
  .receipt {
    gap: 12px;
    padding: 16px;
  }
  .receipt small {
    font-size: 7px;
    letter-spacing: 0.1px;
  }
  .receipt strong {
    font-size: 24px;
  }
  .receipt span {
    font-size: 9px;
  }
  .receipt > svg {
    width: 15px;
  }
  .receipt p {
    font-size: 10px;
  }
  .section-heading h2 {
    font-size: 31px;
  }
  .section-heading .eyebrow {
    font-size: 8px;
    letter-spacing: 1px;
  }
  .section-heading {
    align-items: flex-start;
    gap: 8px;
  }
  .section-heading > .found-tag {
    font-size: 7px;
  }
  .cctv-time {
    top: 6px;
    left: 7px;
    right: 7px;
    font-size: 8px;
    padding: 4px;
  }
  .camera-caption {
    font-size: 8px;
    align-items: flex-start;
    gap: 10px;
  }
  .camera-caption .icon-label {
    font-size: 9px;
  }
  .observation {
    padding: 20px 17px;
  }
  .observation h3 {
    font-size: 15px;
  }
  .observation p {
    font-size: 12px;
  }
  .observation .btn {
    font-size: 11px;
    padding: 11px 15px;
  }
  .next-prompt {
    flex-wrap: wrap;
    padding: 17px;
    gap: 11px;
  }
  .next-prompt > .btn {
    margin-left: 34px;
  }
  .next-prompt b {
    font-size: 11px;
  }
  .source-note {
    font-size: 10px;
  }
  .log-table > div {
    grid-template-columns: 1fr 1.1fr 0.6fr;
    padding: 12px 9px;
    font-size: 9px;
    gap: 6px;
  }
  .log-table > div:first-child {
    font-size: 7px;
  }
  .log-table b {
    font-size: 8px;
  }
  .log-table strong {
    font-size: 16px;
  }
  .compare-form > div {
    gap: 7px;
  }
  .compare-form select {
    font-size: 12px;
    max-width: 160px;
  }
  .paper .soft-tip {
    flex-wrap: wrap;
  }
  .file-note p {
    font-size: 17px;
  }
  .file-note strong {
    font-size: 26px;
  }
  .archive-search {
    gap: 9px;
    padding-left: 12px;
  }
  .archive-search input {
    font-size: 12px;
  }
  .archive-search input::placeholder {
    font-size: 10px;
  }
  .archive-search > .btn {
    padding: 9px 13px;
    font-size: 12px;
  }
  .archive-search > svg {
    width: 16px;
  }
  .meridian-card {
    padding: 25px 20px;
  }
  .meridian-card h2 {
    font-size: 27px;
  }
  .meridian-card dl {
    font-size: 10px;
  }
  .meridian-card p {
    font-size: 12px;
  }
  .meridian-card .btn {
    font-size: 11px;
    padding: 12px;
  }
  .evidence-grid {
    gap: 15px;
    grid-template-columns: 1fr;
  }
  .evidence-card {
    padding: 24px;
  }
  .evidence-card:nth-child(even) {
    transform: rotate(0.5deg);
  }
  .evidence-card h3 {
    font-size: 24px;
  }
  .evidence-card p {
    font-size: 12px;
  }
  .evidence-card img {
    margin: -24px -24px 15px;
    width: calc(100% + 48px);
    height: 175px;
  }
  .board-page > h2,
  .notes-page > h2,
  .team-page > h2 {
    font-size: 32px;
  }
  .dim {
    font-size: 12px;
  }
  .statement-list label {
    font-size: 12px;
    padding: 15px;
    gap: 10px;
  }
  .ending-title {
    font-size: 48px;
  }
  .ending-lead {
    font-size: 14px;
  }
  .ending-truth {
    padding: 20px;
  }
  .ending-truth p {
    font-size: 11px;
  }
  .discussion-card {
    padding: 20px;
  }
  .discussion-card p {
    font-size: 11px;
  }
  .notes-page textarea {
    font-size: 13px;
    padding: 18px;
    min-height: 380px;
  }
  .room-code b {
    font-size: 21px;
    letter-spacing: 2px;
  }
  .phone-panel.phone-open {
    width: calc(100vw - 32px);
    max-width: 370px;
    right: 16px;
    bottom: 78px;
    max-height: calc(100svh - 100px);
  }
  .phone-title {
    padding: 12px 18px;
  }
  .phone-title h3 {
    font-size: 22px;
  }
  .phone-tabs button {
    padding: 6px 10px;
  }
  .phone-panel .bubble {
    font-size: 13px;
    margin-right: 10px;
  }
  .phone-panel .bubble p {
    font-size: 13px;
  }
  .phone-panel .messages {
    padding: 13px;
  }
  .mobile-phone-button {
    right: 18px;
    bottom: 18px;
  }
  .toast {
    bottom: 83px;
    font-size: 11px;
    padding: 12px 16px;
    animation: none;
  }
  .intro-screen {
    padding: 22px 18px;
  }
  .intro-nav {
    margin-bottom: 25px;
  }
  .intro-nav .btn {
    font-size: 10px;
    padding: 9px 11px;
  }
  .intro-nav .logo-mark {
    width: 30px;
    height: 33px;
    font-size: 23px;
  }
  .intro-nav .logo > span:last-child {
    font-size: 10px;
  }
  .intro-copy {
    padding: 25px;
  }
  .intro-copy h1 {
    font-size: 33px;
  }
  .intro-copy .eyebrow {
    font-size: 8px;
  }
  .intro-copy p {
    font-size: 13px;
  }
  .intro-guide {
    grid-template-columns: 1fr;
    gap: 20px;
    margin: 25px 7px 0;
  }
  .intro-guide b {
    font-size: 12px;
  }
  .intro-guide p {
    font-size: 11px;
    margin-top: 5px;
  }
  .intro-text {
    font-size: 12px;
  }
  .overlay,
  .call-overlay {
    padding: 18px;
  }
  .dialog {
    padding: 30px 24px;
  }
  .dialog h2 {
    font-size: 30px;
  }
  .dialog > p {
    font-size: 12px;
  }
  .incoming-call {
    width: 335px;
    padding: 30px 30px;
  }
  .active-call-head {
    padding: 19px;
  }
  .call-transcript {
    padding: 24px;
    min-height: 190px;
  }
  .call-transcript p {
    font-size: 20px;
  }
  .call-replies {
    padding: 0 24px 24px;
  }
  .call-replies .btn {
    font-size: 11px;
  }
  .call-transcript > small {
    font-size: 9px;
  }
  .hint-step {
    padding: 15px 12px;
  }
  .hint-step p {
    font-size: 11px;
  }
}
@media (prefers-reduced-motion: reduce) {
  * {
    scroll-behavior: auto !important;
    animation: none !important;
    transition: none !important;
  }
  .btn:hover {
    transform: none;
  }
}

/* Dark reading pass and investigation board */
:root {
  --bg: #070b0f;
  --deep: #030507;
  --panel: #0d141b;
  --raised: #151f29;
  --line: #ffffff1a;
  --muted: #aab7bd;
  --text: #f1f5f2;
  --paper: #0f151b;
  --ink: #eef4ef;
  --wine: #a93149;
  --wine-hover: #bd4058;
  --gold: #d4b16f;
  --green: #8fbea1;
}
body {
  background: radial-gradient(
    circle at 30% -10%,
    #1a2832 0,
    #070b0f 34%,
    #030507 100%
  );
  color: var(--text);
}
.entry-form,
.game-header,
.rail {
  background: #070b0fee;
}
.game-layout,
.intro-screen {
  background: #070b0f;
}
.material-tabs {
  border-bottom-color: #ffffff20;
}
.case-cover,
.quick-grid > button,
.coordinator-note,
.current-lead,
.observation,
.discussion-card,
.team-chat,
.ending-truth,
.dialog,
.active-call {
  background: #101923;
  border-color: #ffffff1f;
}
.btn.ghost {
  background: #0d141b;
  border-color: #ffffff26;
}
.intro-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
}
.voice-inline {
  display: block;
  color: #b7c5c9;
  margin-top: 12px;
}
.phone-panel {
  background: #05070a;
  border-color: #202833;
  color: #edf4f2;
  box-shadow:
    0 20px 70px #0008,
    inset 0 0 0 1px #ffffff16;
}
.phone-pill {
  background: #0c1116;
}
.phone-title small,
.phone-tabs button,
.phone-bottom,
.phone-note,
.chat-date {
  color: #a6b4b9;
}
.phone-tabs {
  border-bottom-color: #ffffff18;
}
.phone-tabs button.active {
  background: #151f28;
  color: #f2f7f5;
}
.messages {
  background: linear-gradient(140deg, #06090d, #0d141a);
}
.bubble {
  background: #121b23;
  color: #edf4f2;
  border-color: #ffffff18;
  box-shadow: 0 5px 18px #00000024;
}
.bubble p {
  color: #edf4f2;
}
.bubble.own {
  background: #182632;
}
.sender {
  color: #d7b879;
}
.bubble time,
.chat-attachment small {
  color: #99a8ae;
}
.chat-attachment,
.inline-calendar,
.reply-option {
  background: #0d151d;
  border-color: #ffffff1d;
  color: #edf4f2;
}
.inline-calendar p,
.inline-calendar small {
  color: #d9e4df;
}
.voice-play {
  color: #e4c17c;
}
.found-tag {
  background: #1d3429;
  color: #b9e5c8;
}
.paper {
  background: #0f151b;
  color: #eef4ef;
  border-top-color: #d4b16f;
  box-shadow: 0 18px 50px #0005;
}
.paper-heading,
.mail-address small,
.mail-address time,
.paper-intro,
.provenance,
.source-note,
.mail-question p,
.file-paper > p:not(.provenance) {
  color: #b7c5bf;
}
.mail-address {
  border-color: #ffffff1b;
}
.initial-badge {
  background: #1a252d;
  color: #d4b16f;
}
.mail-address time b,
.paper blockquote,
.signature,
.paper h2,
.paper h3 {
  color: #f2f5ef;
}
.receipt,
.log-table,
.audit-reveal,
.paper .soft-tip {
  background: #121d24;
  border-color: #ffffff1b;
}
.receipt strong,
.log-table strong,
.log-table .time-old {
  color: #aee3bc;
}
.receipt small,
.receipt span,
.receipt p,
.log-table > div:first-child,
.file-timeline span,
.file-timeline p,
.audit-reveal p {
  color: #b6c6be;
}
.stamp {
  border-color: #d4b16f66;
  color: #d9c38b;
}
.compare-form select {
  background: #0b1117;
  border-color: #ffffff28;
  color: #eef4ef;
}
.folder-tab {
  background: #d4b16f;
  color: #241b0b;
}
.file-timeline {
  border-left-color: #ffffff24;
}
.file-note {
  background: #151f22;
  border-color: #d4b16f55;
  box-shadow: 2px 3px 0 #0005;
}
.file-note p,
.file-note strong {
  color: #f1e4bd;
}
.archive-search {
  background: #0d151d;
  border-color: #ffffff24;
}
.archive-search input {
  color: #f2f7f5;
}
.meridian-card {
  background: linear-gradient(140deg, #151f29, #080d12);
  border-color: #d4b16f50;
}
.board-head {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 24px;
}
.board-toolbar {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  margin-top: 14px;
}
.story-variant {
  margin: 26px 0 16px;
  border: 1px solid #d4b16f33;
  background: #d4b16f0d;
  padding: 16px 18px;
  border-radius: 8px;
}
.story-variant span {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1.4px;
  color: var(--gold);
}
.story-variant p {
  font-size: 12px;
  color: #d8e1de;
  margin-top: 6px;
}
.case-board {
  position: relative;
  min-height: 650px;
  margin: 24px 0 34px;
  border: 10px solid #2a1d13;
  border-radius: 8px;
  overflow: hidden;
  background: radial-gradient(
    circle at 25% 18%,
    #9b7a50 0,
    #7d603e 22%,
    #5c412a 62%,
    #3d2a1c 100%
  );
  box-shadow:
    inset 0 0 0 1px #d8b78344,
    0 25px 80px #0006;
}
.case-board:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#1b120b66 1px, transparent 1px);
  background-size: 11px 11px;
  opacity: 0.28;
}
.board-strings {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  z-index: 1;
}
.board-strings line {
  stroke: #f6eee0;
  stroke-width: 0.18;
  opacity: 0.72;
}
.board-main-card,
.board-card {
  position: absolute;
  z-index: 2;
  border: 0;
  text-align: left;
  color: #252a2c;
  background: #f2ead8;
  box-shadow: 4px 8px 16px #140b064f;
  transform: translate(-50%, -50%) rotate(-1.5deg);
  border-radius: 2px;
}
.board-main-card {
  left: 16%;
  top: 58%;
  width: 190px;
  padding: 22px 20px;
}
.board-main-card span,
.board-card .evidence-kind {
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1px;
  color: #7d7362;
}
.board-main-card h3 {
  font:
    26px/1.1 Georgia,
    serif;
  color: #ba2d38;
  margin: 8px 0;
}
.board-main-card p {
  font-size: 12px;
  color: #3f4544;
}
.board-card {
  width: 190px;
  min-height: 125px;
  padding: 18px 16px 14px;
}
.board-card:nth-of-type(even) {
  transform: translate(-50%, -50%) rotate(1.4deg);
}
.board-card.wide {
  width: 250px;
}
.board-card.photo {
  padding-top: 12px;
}
.board-card img {
  width: calc(100% + 32px);
  height: 112px;
  object-fit: cover;
  margin: -12px -16px 12px;
  display: block;
}
.board-card h3 {
  font:
    18px/1.15 Georgia,
    serif;
  color: #2b3231;
  margin: 8px 0;
}
.board-card p {
  font-size: 10px;
  line-height: 1.45;
  color: #535b56;
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
}
.board-card small {
  display: block;
  font:
    8px ui-monospace,
    monospace;
  color: #746b5b;
  border-top: 1px solid #d6cab2;
  padding-top: 8px;
  margin-top: 10px;
}
.board-card .pin {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #ba3444;
  box-shadow: 1px 3px 6px #0005;
}
.hint-wait {
  padding: 14px 16px;
  border: 1px solid #d4b16f33;
  background: #d4b16f0b;
  border-radius: 8px;
  color: #d7e0dc;
  font-size: 12px;
}
.hint-wait b {
  color: var(--gold);
  font-family: ui-monospace, monospace;
}
.notes-page textarea {
  background: linear-gradient(#0d141b, #101921);
  color: #edf4ef;
  border-color: #d4b16f44;
}
.notes-page textarea::placeholder {
  color: #9bacb0;
}
.toast {
  background: #101922;
  color: #edf4ef;
  border-color: #d4b16f44;
}
@media (max-width: 950px) {
  .board-head {
    display: block;
  }
  .board-toolbar {
    justify-content: flex-start;
  }
  .case-board {
    min-height: 760px;
  }
  .board-card {
    width: 170px;
  }
  .board-card.wide {
    width: 220px;
  }
  .board-main-card {
    width: 170px;
  }
}
@media (max-width: 640px) {
  .intro-actions {
    display: grid;
    width: 100%;
  }
  .intro-actions .btn {
    width: 100%;
  }
  .case-board {
    min-height: 890px;
    border-width: 6px;
    margin-left: -8px;
    margin-right: -8px;
  }
  .board-card {
    width: 155px;
  }
  .board-card.wide {
    width: 190px;
  }
  .board-card h3 {
    font-size: 15px;
  }
  .board-card p {
    font-size: 9px;
  }
  .board-card img {
    height: 88px;
  }
  .board-main-card {
    left: 24%;
    top: 52%;
    width: 145px;
  }
  .board-main-card h3 {
    font-size: 22px;
  }
}

/* v5 polish: readable controls, larger phone text, draggable board */
.material-tabs {
  gap: 6px;
  padding-bottom: 2px;
}
.material-tabs button {
  font-size: 12px;
  font-weight: 750;
  letter-spacing: 0.15px;
  min-width: max-content;
  padding-left: 16px;
  padding-right: 16px;
  color: #c8d4d8;
}
.material-tabs button.active {
  color: #f2d59d;
}
.material-tabs button:disabled {
  color: #7d8e96;
  opacity: 0.75;
}
.phone-title h3 {
  font-size: 25px;
}
.phone-tabs button {
  font-size: 10px;
  font-weight: 700;
  color: #c4d1d5;
}
.phone-tabs button.active {
  color: #fff;
}
.bubble {
  font-size: 13.5px;
}
.bubble p {
  font-size: 13.5px;
  line-height: 1.78;
}
.chat-attachment > span {
  font-size: 11px;
}
.chat-attachment small {
  font-size: 9px;
}
.phone-note {
  font-size: 10px;
}
.btn,
.mode-card,
.quick-grid > button,
.reply-option,
.chat-attachment,
.voice-play,
.thread-button {
  color: inherit;
}
.btn.primary,
.observation-actions .btn.primary,
.archive-search .btn.primary,
.call-replies .btn.primary {
  color: #fff;
  background: var(--wine);
  border-color: var(--wine);
}
.btn.compact,
.btn.ghost,
.board-toolbar .btn,
.next-prompt .btn,
.archive-empty .btn,
.paper .soft-tip .btn {
  color: #f1e6cf;
  background: #101923;
  border-color: #d4b16f42;
}
.btn.compact:hover:not(:disabled),
.btn.ghost:hover:not(:disabled),
.board-toolbar .btn:hover:not(:disabled) {
  background: #1b2a34;
  color: #fff;
  border-color: #d4b16f77;
}
.btn.paper-btn {
  background: #d4b16f;
  color: #171008;
  border-color: #d4b16f;
  font-weight: 750;
}
.btn.paper-btn:hover:not(:disabled) {
  background: #e1c386;
  color: #120c05;
}
.observation-actions .btn.success {
  background: #315f49;
  color: #e9fff1;
  border-color: #77a889;
}
.voice-play.text-only {
  justify-content: flex-start;
  padding: 10px 0;
  color: #e6c681;
}
.voice-play.text-only span {
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.6px;
  text-transform: uppercase;
}
.speech-credit {
  color: #91a5ae;
}
.board-help {
  margin: 14px 0 6px;
  color: #d9e3df;
  background: #111b23;
  border: 1px dashed #d4b16f55;
  padding: 12px 14px;
  border-radius: 8px;
  font-size: 12px;
}
.board-card {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.board-card:active {
  cursor: grabbing;
}
.board-card.threading {
  outline: 3px solid #f1cf8b;
  outline-offset: 4px;
}
.thread-button {
  position: absolute;
  right: 10px;
  bottom: 9px;
  border: 1px solid #7b4f36;
  background: #6b3426;
  color: #fff1d7;
  border-radius: 999px;
  padding: 4px 8px;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: 0.4px;
  box-shadow: 0 3px 8px #0003;
}
.thread-button:hover {
  background: #8c4332;
}
.board-card small {
  padding-right: 58px;
}
.board-strings line {
  stroke: #fff2df;
  stroke-width: 0.24;
  opacity: 0.86;
  filter: drop-shadow(0 1px 1px #2c150b);
}
.statement-list label {
  color: #d6e1e1;
  font-weight: 650;
}
.statement-list label.chosen {
  color: #fff0cd;
}
.error {
  font-weight: 700;
}
.intro-player video,
.cctv video {
  background: #020509;
}
@media (max-width: 640px) {
  .material-tabs button {
    font-size: 11px;
    padding-left: 12px;
    padding-right: 12px;
  }
  .phone-panel .bubble,
  .phone-panel .bubble p {
    font-size: 14px;
  }
  .phone-tabs button {
    font-size: 10px;
  }
  .thread-button {
    font-size: 8px;
    right: 8px;
    bottom: 7px;
  }
  .board-card small {
    padding-right: 50px;
  }
}

/* v6 fixes: darker event blocks and clearer journal rows */
.log-table > div:first-child {
  background: #18242d;
  color: #d9c995;
}
.log-table > div {
  background: #101923;
  color: #edf4ef;
}
.log-table > div:nth-child(3) {
  background: #13231c;
}
.activity-log {
  display: grid;
  gap: 10px;
}
.activity-log > div {
  background: #101923;
  border: 1px solid #ffffff1a;
  border-radius: 9px;
  padding: 13px 14px;
  color: #d4b16f;
}
.activity-log p {
  color: #d9e4df;
  font-weight: 650;
}
.activity-log time {
  color: #d4b16f;
}
.team-page > .dim,
.team-page .discussion-card {
  background: #101923;
  border: 1px solid #ffffff1f;
  border-radius: 10px;
}
.team-page > .dim {
  padding: 16px 18px;
}

/* v6.1: no pale event panels */
.log-table {
  background: #080d12;
  border-color: #d4b16f35;
  box-shadow: inset 0 0 0 1px #0008;
}
.log-table > div {
  border-bottom-color: #ffffff12;
}
.log-table > div:first-child span {
  color: #d9c995;
  font-weight: 850;
}
.log-table b,
.log-table strong {
  color: #f2f7f5;
}
.log-table .time-old {
  color: #b7e3c1;
}
.activity-heading {
  color: #d9c995;
}
.activity-log:empty:before {
  content: "События появятся после первых найденных улик.";
  display: block;
  background: #101923;
  border: 1px solid #ffffff1a;
  border-radius: 9px;
  padding: 13px 14px;
  color: #aab7bd;
  font-size: 12px;
}

/* v7: active phone and useful notebook */
.phone-live {
  border-top: 1px solid #ffffff12;
  border-bottom: 1px solid #ffffff12;
  background: linear-gradient(135deg, #111b23, #080d12);
  padding: 11px 12px;
  display: grid;
  gap: 8px;
}
.phone-live-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 0.9px;
  color: #d4b16f;
  text-transform: uppercase;
}
.phone-live-head span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-live-head i {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #42d989;
  box-shadow: 0 0 12px #42d989aa;
}
.phone-live-head small {
  font-size: 8px;
  color: #8fa0a7;
}
.phone-live > p {
  font-size: 10px;
  color: #9eafb5;
  line-height: 1.55;
}
.phone-alert {
  position: relative;
  border: 1px solid #d4b16f2e;
  background: #0c141b;
  color: #edf4f2;
  border-radius: 12px;
  padding: 10px 52px 10px 11px;
  text-align: left;
  box-shadow: 0 8px 20px #0004;
  animation: phoneIn 0.28s ease-out;
}
.phone-alert b {
  display: block;
  font-size: 10px;
  color: #f1d49d;
}
.phone-alert p {
  font-size: 11px;
  line-height: 1.45;
  margin-top: 3px;
  color: #dce7e4;
}
.phone-alert time {
  position: absolute;
  right: 10px;
  top: 10px;
  font:
    8px ui-monospace,
    monospace;
  color: #91a1a8;
}
.phone-alert:hover {
  border-color: #d4b16f66;
  background: #101d26;
}
@keyframes phoneIn {
  from {
    opacity: 0;
    transform: translateY(-8px);
  }
  to {
    opacity: 1;
    transform: none;
  }
}
.notes-kit {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 26px 0;
}
.notes-kit article,
.notes-focus {
  background: #101923;
  border: 1px solid #ffffff1b;
  border-radius: 10px;
  padding: 18px;
}
.notes-kit article > span {
  font:
    10px ui-monospace,
    monospace;
  color: #d4b16f;
}
.notes-kit h3,
.notes-focus h3 {
  font-size: 14px;
  margin: 8px 0 6px;
}
.notes-kit p {
  font-size: 11px;
  color: #aab7bd;
  min-height: 48px;
}
.notes-kit .btn {
  margin-top: 13px;
}
.notes-focus {
  margin-bottom: 18px;
}
.notes-focus p {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  font-size: 12px;
  color: #d9e4df;
  border-top: 1px solid #ffffff10;
  padding-top: 10px;
  margin-top: 10px;
}
.notes-focus svg {
  color: #d4b16f;
  margin-top: 3px;
}
.notes-page textarea {
  margin-top: 0;
}
@media (max-width: 700px) {
  .notes-kit {
    grid-template-columns: 1fr;
  }
  .notes-kit p {
    min-height: 0;
  }
  .phone-live {
    padding: 10px;
  }
  .phone-alert {
    padding-right: 44px;
  }
}

/* v43 board chapter lanes */
.board-chapter-guides {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
}
.board-chapter-guides span {
  position: absolute;
  left: 1.5%;
  right: 1.5%;
  display: block;
  padding: 8px 11px;
  border-top: 1px solid #c7aa7350;
  color: #cdb17d;
  background: linear-gradient(90deg, #0c110dbf, transparent 34%);
  font: 700 11px/1 ui-monospace, SFMono-Regular, monospace;
  letter-spacing: 0.16em;
}
.case-board .board-card,
.case-board .board-main-card,
.case-board .board-strings {
  z-index: 2;
}
.board-canvas-scroll {
  height: min(72vh, 820px);
}

/* v43 — reliable onboarding, roomy evidence board and account saves */
.boot-wait {
  min-width: 255px;
  justify-content: center;
  font-variant-numeric: tabular-nums;
}
.auth-switch {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 4px;
  margin: 18px 0 14px;
  padding: 4px;
  border: 1px solid #b2946435;
  background: #080c0a;
}
.auth-switch button {
  min-height: 39px;
  border: 0;
  background: transparent;
  color: #9e9a90;
  cursor: pointer;
  font-weight: 750;
}
.auth-switch button.active {
  background: #263229;
  color: #f2e6cf;
}
.name-fields {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}
.consent-row {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px;
  margin: 12px 0 16px;
  color: #aca89e !important;
  font-size: 11px !important;
  line-height: 1.5;
}
.consent-row input {
  flex: 0 0 auto;
  width: 17px !important;
  min-height: 17px !important;
  margin-top: 1px;
}
.consent-row a,
.developer-credit a,
.legal-page a {
  color: #d7ba82;
}
.auth-password-warning {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  margin: 13px 0 4px;
  padding: 11px 12px;
  border: 1px solid #c7aa7340;
  background: #151912;
  color: #c9c2b5;
  font-size: 11px;
  line-height: 1.55;
}
.auth-password-warning svg {
  margin-top: 2px;
  color: #d7ba82;
}
.auth-password-warning b {
  display: block;
  color: #f0e3cd;
  font-size: 12px;
}
.local-play {
  width: 100%;
  margin-top: 12px;
  text-align: center;
}
.account-ready {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 12px;
  padding: 18px;
  margin: 20px 0;
  border: 1px solid #b2946448;
  background: #0d130f;
}
.account-ready > svg {
  color: #8fbd91;
}
.account-ready b,
.account-ready span,
.account-ready p {
  display: block;
}
.account-ready span,
.account-ready p {
  margin-top: 4px;
  color: #9e9a90;
  font-size: 11px;
}
.account-ready .btn {
  grid-column: 1 / -1;
  justify-content: center;
}
.case-board.evidence-only-board,
.board-page > .case-board {
  max-height: none !important;
}
.case-board .board-main-card {
  left: 50% !important;
  top: 3.4% !important;
}
.board-help {
  position: sticky;
  top: 0;
  z-index: 6;
}
.code-search-stream {
  margin-bottom: 18px;
  border: 1px solid #70b88445;
  background: #020604;
  box-shadow: inset 0 0 60px #1a643226;
}
.code-search-stream header {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  padding: 10px 13px;
  border-bottom: 1px solid #70b88435;
  color: #dce8de;
  font: 10px ui-monospace, SFMono-Regular, monospace;
}
.code-search-stream header i {
  color: #7dc891;
}
.code-search-window {
  position: relative;
  height: 260px;
  overflow: hidden;
  background:
    linear-gradient(#72b78a0b 1px, transparent 1px),
    #020503;
  background-size: 100% 20px;
}
.code-search-track {
  position: absolute;
  left: 0;
  right: 0;
  top: -330px;
  display: grid;
  gap: 8px;
  padding: 15px 18px;
  animation: code-hunt-feed 18s linear infinite;
}
.code-search-track code {
  color: #82bf92;
  font: 11px/1.35 ui-monospace, SFMono-Regular, monospace;
  white-space: nowrap;
}
.code-search-track code:nth-child(5n) {
  color: #c9ae75;
}
.code-search-track span {
  display: inline-block;
  width: 45px;
  color: #465d4d;
}
.code-search-stream > p {
  margin: 0;
  padding: 12px 14px;
  border-top: 1px solid #70b88435;
  color: #a6b2a8;
  font-size: 11px;
}
@keyframes code-hunt-feed {
  from { transform: translateY(0); }
  to { transform: translateY(440px); }
}
.developer-credit {
  margin-top: 26px;
  padding: 28px;
  border: 1px solid #b2946445;
  background: linear-gradient(145deg, #111712, #070a08);
  text-align: center;
}
.developer-credit > span {
  color: #8e8b82;
  font: 9px ui-monospace, monospace;
  letter-spacing: 0.16em;
}
.developer-credit .developer-sketch {
  width: 180px;
  height: 180px;
  margin: 0 auto 20px;
  overflow: hidden;
  border: 1px solid #b2946445;
  border-radius: 12px;
}
.developer-credit .developer-sketch img {
  display: block;
  width: 270px;
  height: 360px;
  max-width: none;
  transform: translate(-48px, -84px);
}
.developer-credit > b {
  display: block;
  margin-top: 8px;
  color: #e8d4aa;
  font: 600 27px/1.2 Georgia, serif;
}
.developer-credit p {
  color: #aaa69d;
}
.developer-credit div {
  display: flex;
  justify-content: center;
  gap: 18px;
  margin-top: 16px;
  font-size: 11px;
}
.legal-page {
  width: min(820px, calc(100% - 32px));
  margin: 0 auto;
  padding: 46px 0 80px;
  color: #e9e1d3;
}
.legal-page h1 {
  margin: 14px 0 20px;
  font: 600 clamp(38px, 7vw, 68px)/1 Georgia, serif;
}
.legal-page h2 {
  margin-bottom: 10px;
  color: #e8d4aa;
  font: 600 22px/1.25 Georgia, serif;
}
.legal-page p {
  color: #aaa69d;
  line-height: 1.8;
}
.legal-page section {
  padding: 22px 0;
  border-bottom: 1px solid #ffffff12;
}
.legal-lead {
  font-size: 17px;
}
.legal-back {
  display: inline-block;
  margin-bottom: 32px;
  position: relative;
  z-index: 2;
  padding: 8px 0;
  border: 0;
  background: transparent;
  color: #d7ba82;
  font: inherit;
  cursor: pointer;
}
.legal-back-form {
  margin: 0;
}
.ouroboros-transition {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(220px, 0.85fr);
  align-items: center;
  overflow: hidden;
  margin: 22px 0;
  border: 1px solid #c9aa7440;
  background: #050706;
}
.ouroboros-transition video {
  display: block;
  width: 100%;
  aspect-ratio: 16 / 9;
  object-fit: cover;
}
.ouroboros-transition > div {
  padding: clamp(20px, 4vw, 38px);
}
.ouroboros-transition span {
  color: var(--gold);
  font: 600 10px/1.5 ui-monospace, monospace;
  letter-spacing: 0.18em;
}
.ouroboros-transition h3 {
  margin: 8px 0 10px;
  color: #eee2cd;
  font: 600 clamp(26px, 4vw, 42px)/1.05 Georgia, serif;
}
.ouroboros-transition p {
  margin: 0;
  color: var(--muted);
  line-height: 1.7;
}
.legal-warning {
  margin-top: 26px;
  padding: 16px;
  border-left: 3px solid #8f2639;
  background: #8f263912;
}
@media (max-width: 640px) {
  .legal-page {
    width: min(100% - 28px, 820px);
    padding-top: 24px;
  }
  .legal-page h1 {
    font-size: clamp(34px, 12vw, 52px);
    overflow-wrap: anywhere;
  }
  .ouroboros-transition {
    grid-template-columns: 1fr;
  }
  .name-fields {
    grid-template-columns: 1fr;
  }
  .code-search-stream header {
    display: grid;
  }
  .developer-credit div {
    flex-direction: column;
    gap: 8px;
  }
}

/* v8: unlocked phone, people board and chapter spine */
.phone-lock {
  flex: 1;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
  padding: 22px 18px 28px;
  background: radial-gradient(circle at 50% 18%, #1a2a33, #06090d 62%);
  gap: 14px;
  text-align: center;
}
.lock-time {
  font:
    56px/1 ui-monospace,
    monospace;
  color: #f3f7f4;
  letter-spacing: -2px;
  text-shadow: 0 0 28px #d4b16f33;
}
.phone-lock > p {
  font-size: 12px;
  line-height: 1.7;
  color: #bfccd0;
  max-width: 250px;
  margin: 0 auto 10px;
}
.lock-alert {
  position: relative;
  text-align: left;
  border: 1px solid #ffffff24;
  background: #121e27d9;
  color: #edf4f2;
  border-radius: 18px;
  padding: 14px 52px 14px 15px;
  box-shadow: 0 16px 35px #0008;
}
.lock-alert b {
  display: block;
  font-size: 11px;
  color: #f0d39d;
}
.lock-alert span {
  display: block;
  font-size: 12px;
  line-height: 1.45;
  color: #d9e4df;
  margin-top: 4px;
}
.lock-alert time {
  position: absolute;
  right: 14px;
  top: 14px;
  font:
    9px ui-monospace,
    monospace;
  color: #95a5aa;
}
.lock-alert.muted {
  padding-right: 15px;
  opacity: 0.82;
}
.unlock-button {
  border: 0;
  background: #f3f7f4;
  color: #081017;
  border-radius: 999px;
  padding: 13px 16px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.3px;
  box-shadow: 0 10px 30px #0009;
}
.unlock-button:hover {
  background: #d4b16f;
  color: #130d05;
}
.phone-app-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 0 14px 13px;
}
.phone-app-grid button {
  border: 1px solid #ffffff14;
  background: #0e171f;
  color: #edf4f2;
  border-radius: 14px;
  padding: 11px 6px 9px;
  display: grid;
  place-items: center;
  gap: 7px;
  font-size: 8px;
  font-weight: 750;
  letter-spacing: 0.3px;
}
.phone-app-grid button svg {
  color: #d4b16f;
}
.phone-app-grid button:hover {
  border-color: #d4b16f55;
  background: #16232d;
}
.case-board {
  min-height: 860px;
}
.person-card {
  position: absolute;
  z-index: 3;
  width: 205px;
  min-height: 150px;
  padding: 16px 15px 46px;
  background: #111820;
  color: #edf4ef;
  border: 1px solid #d4b16f55;
  box-shadow: 5px 10px 22px #0007;
  transform: translate(-50%, -50%) rotate(0.8deg);
  border-radius: 6px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.person-card:nth-of-type(odd) {
  transform: translate(-50%, -50%) rotate(-0.9deg);
}
.person-card:active {
  cursor: grabbing;
}
.person-card .pin {
  position: absolute;
  top: 8px;
  left: 50%;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: #d4b16f;
  box-shadow: 0 0 14px #d4b16f77;
}
.person-head {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 10px;
}
.person-head > span {
  width: 36px;
  height: 36px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d4b16f;
  color: #1b1208;
  font-weight: 900;
  font-size: 12px;
  box-shadow: inset 0 -2px 0 #0003;
}
.person-head b {
  display: block;
  font-size: 13px;
  color: #fff;
}
.person-head small {
  display: block;
  font-size: 8px;
  color: #d4b16f;
  text-transform: uppercase;
  letter-spacing: 0.8px;
  margin-top: 2px;
}
.person-card p {
  font-size: 10px;
  line-height: 1.5;
  color: #c6d1d2;
}
.person-card label {
  display: grid;
  gap: 5px;
  font:
    8px ui-monospace,
    monospace;
  color: #aab7bd;
  letter-spacing: 0.8px;
  text-transform: uppercase;
  margin-top: 12px;
}
.person-card select {
  width: 100%;
  background: #071016;
  border: 1px solid #ffffff22;
  color: #edf4ef;
  border-radius: 7px;
  padding: 7px;
  font-size: 11px;
  text-transform: none;
  letter-spacing: 0;
}
.person-note {
  position: absolute;
  right: 10px;
  bottom: 10px;
  border: 1px solid #d4b16f44;
  background: #d4b16f12;
  color: #f0d39d;
  border-radius: 999px;
  padding: 5px 9px;
  font-size: 8px;
  font-weight: 850;
  text-transform: uppercase;
}
.person-note:hover {
  background: #d4b16f;
  color: #160f07;
}
.person-card.verdict-lie {
  border-color: #c76363;
  background: #211418;
}
.person-card.verdict-truth {
  border-color: #6fba83;
  background: #102018;
}
.person-card.verdict-unclear {
  border-color: #d4b16f;
  background: #221d13;
}
.chapter-roadmap {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 10px;
  margin-top: 18px;
}
.chapter-roadmap article {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  border: 1px solid #ffffff18;
  background: #101923;
  border-radius: 9px;
  padding: 13px;
}
.chapter-roadmap article b {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: #ffffff10;
  color: #d4b16f;
  font:
    13px ui-monospace,
    monospace;
  flex-shrink: 0;
}
.chapter-roadmap h3 {
  font-size: 13px;
  margin: 1px 0 4px;
  color: #edf4ef;
}
.chapter-roadmap p {
  font-size: 10px;
  color: #9cafb6;
}
.chapter-roadmap article.done {
  border-color: #6fba8350;
}
.chapter-roadmap article.next {
  border-color: #d4b16f66;
  background: #d4b16f0d;
}
@media (max-width: 950px) {
  .case-board {
    min-height: 980px;
  }
  .person-card {
    width: 180px;
  }
  .chapter-roadmap {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 640px) {
  .phone-app-grid {
    grid-template-columns: repeat(3, 1fr);
    gap: 6px;
    padding: 0 11px 11px;
  }
  .phone-app-grid button {
    border-radius: 12px;
    padding: 10px 4px;
  }
  .lock-time {
    font-size: 50px;
  }
  .phone-lock {
    padding: 18px 15px 24px;
  }
  .case-board {
    min-height: 1200px;
  }
  .person-card {
    width: 155px;
    padding: 14px 12px 43px;
  }
  .person-head {
    gap: 7px;
  }
  .person-head > span {
    width: 31px;
    height: 31px;
    font-size: 10px;
  }
  .person-head b {
    font-size: 11px;
  }
  .person-card p {
    font-size: 9px;
  }
  .person-card select {
    font-size: 10px;
    padding: 6px;
  }
}

/* v9: iPhone passcode, cleaner overview, manual notebook and larger board */
.phone-panel {
  border-radius: 42px;
  border-width: 8px;
  background: #000;
  box-shadow:
    0 25px 80px #000b,
    inset 0 0 0 1px #ffffff18;
}
.phone-status {
  font-size: 10px;
  padding-top: 13px;
}
.phone-pill {
  width: 82px;
  height: 18px;
  background: #050608;
}
.phone-lock {
  background:
    linear-gradient(180deg, #02050933, #020509 72%),
    url("/media/cover.jpg") center/cover;
  justify-content: flex-end;
}
.pin-dots {
  display: flex;
  gap: 10px;
  justify-content: center;
  margin: 4px 0;
}
.pin-dots i {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  border: 1px solid #ffffff8c;
  background: #ffffff18;
}
.pin-dots i.filled {
  background: #fff;
}
.pin-pad {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  max-width: 235px;
  margin: 0 auto;
  width: 100%;
}
.pin-pad button {
  border: 1px solid #ffffff22;
  background: #ffffff18;
  color: #fff;
  border-radius: 999px;
  height: 43px;
  font-weight: 800;
  backdrop-filter: blur(8px);
}
.pin-pad button:hover {
  background: #ffffff2a;
}
.iphone-nav {
  display: grid;
  grid-template-columns: 1fr auto 1fr;
  align-items: center;
  padding: 0 13px 10px;
  color: #eef4f2;
}
.iphone-nav button {
  border: 0;
  background: none;
  color: #d7e2e5;
  font-size: 11px;
  display: flex;
  align-items: center;
  gap: 4px;
}
.iphone-nav button:last-child {
  justify-self: end;
}
.iphone-nav b {
  font-size: 12px;
}
.phone-wallpaper {
  margin: 0 14px 12px;
  padding: 20px 16px;
  border-radius: 24px;
  background:
    linear-gradient(180deg, #0b111877, #020509ee),
    url("/media/cover.jpg") center/cover;
  border: 1px solid #ffffff1b;
  min-height: 145px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}
.phone-wallpaper span {
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
}
.phone-wallpaper h4 {
  font-size: 18px;
}
.phone-wallpaper p {
  font-size: 11px;
  color: #dbe5e2;
}
.file-app,
.calls-app {
  display: grid;
  gap: 9px;
  align-content: start;
}
.file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #ffffff18;
  background: #101923;
  color: #edf4f2;
  border-radius: 14px;
  padding: 13px;
  text-align: left;
}
.file-row:disabled {
  opacity: 0.45;
}
.file-row > span {
  flex: 1;
  font-size: 12px;
  font-weight: 800;
}
.file-row small {
  display: block;
  color: #94a8af;
  font-size: 9px;
  margin-top: 3px;
}
.calls-app article {
  border: 1px solid #ffffff18;
  background: #101923;
  border-radius: 14px;
  padding: 14px;
}
.calls-app b {
  color: #f0d39d;
  font-size: 12px;
}
.calls-app p {
  font-size: 12px;
}
.calls-app small {
  font-size: 10px;
  color: #9cafb6;
}
.overview-grid {
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
}
.overview-grid > button {
  min-height: 132px;
  position: relative;
  overflow: hidden;
  display: flex;
  flex-direction: column;
}
.overview-grid > button > svg:last-child {
  position: absolute;
  right: 15px;
  bottom: 15px;
}
.overview-grid span {
  font:
    8px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1px;
  text-transform: uppercase;
}
.overview-note {
  border: 1px solid #ffffff17;
  border-radius: 12px;
  padding: 18px;
  margin-top: 14px;
}
.phone-code-hint,
.ending-variant {
  border: 1px solid #d4b16f44;
  background: #d4b16f0d;
  border-radius: 10px;
  padding: 14px 16px;
  color: #dce5df;
  font-size: 12px;
  margin: 14px 0;
}
.phone-code-hint b,
.ending-variant span {
  color: #d4b16f;
}
.ending-variant span {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  letter-spacing: 1.2px;
  margin-bottom: 6px;
}
.missing-clue {
  margin: 18px 0 0;
  border: 1px solid #d4b16f4d;
  background: #101923;
  border-radius: 10px;
  padding: 16px;
  color: #dce5df;
}
.missing-clue b {
  display: block;
  color: #f0d39d;
  font-size: 13px;
}
.missing-clue p {
  font-size: 12px;
  color: #aebdc2;
  margin: 6px 0 12px;
}
.case-board {
  min-height: 1150px;
}
.board-card {
  width: 215px;
}
.board-card.wide {
  width: 280px;
}
.person-card {
  width: 225px;
}
@media (max-width: 1180px) {
  .overview-grid {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 950px) {
  .case-board {
    min-height: 1280px;
  }
  .person-card {
    width: 200px;
  }
  .board-card {
    width: 190px;
  }
  .board-card.wide {
    width: 240px;
  }
}
@media (max-width: 640px) {
  .overview-grid {
    grid-template-columns: 1fr;
  }
  .overview-grid > button {
    min-height: 118px;
  }
  .case-board {
    min-height: 1450px;
  }
  .person-card {
    width: 165px;
  }
  .board-card {
    width: 165px;
  }
  .board-card.wide {
    width: 205px;
  }
}

/* v12: quiet phone, no noisy popups, no fake "next step" button */
.case-cover .btn.primary {
  display: none;
}
.phone-clean .phone-status {
  position: relative;
  z-index: 2;
  color: #fff;
  text-shadow: 0 1px 12px #000;
}
.phone-clean .phone-title {
  padding-top: 10px;
}
.phone-clean .phone-lock {
  background:
    linear-gradient(180deg, #02050910 0%, #02050920 42%, #020509e8 100%),
    url("/media/cover.jpg") center/cover;
}
.lock-date {
  font-size: 12px;
  font-weight: 800;
  color: #fff;
  text-shadow: 0 2px 18px #000;
  letter-spacing: 0.2px;
}
.phone-clean .lock-time {
  font-size: 68px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -4px;
  text-shadow: 0 5px 30px #000;
}
.phone-clean .lock-alert {
  background: #1b242dbd;
  backdrop-filter: blur(14px);
  border-color: #ffffff42;
}
.phone-clean .pin-pad button {
  background: #ffffff24;
  border-color: #ffffff35;
}
.phone-home-wallpaper {
  min-height: 270px;
  margin-bottom: 18px;
  background:
    linear-gradient(180deg, #02050910, #020509cc),
    url("/media/cover.jpg") center/cover;
}
.phone-home-wallpaper h4 {
  font-size: 22px;
  text-shadow: 0 2px 14px #000;
}
.phone-home-wallpaper p {
  max-width: 250px;
  color: #f1f6f4;
  text-shadow: 0 2px 12px #000;
}
.phone-simple-grid {
  grid-template-columns: repeat(2, 92px);
  justify-content: flex-start;
  gap: 22px;
  padding: 0 24px 16px;
}
.phone-simple-grid button {
  position: relative;
  min-height: 92px;
  border-radius: 24px;
  background: #237f7e;
  border: 0;
  font-size: 11px;
  box-shadow: 0 12px 28px #0005;
}
.phone-simple-grid button:nth-child(2) {
  background: #3c8553;
}
.phone-simple-grid button svg {
  color: #fff;
  width: 28px;
  height: 28px;
}
.phone-simple-grid .app-dot {
  position: absolute;
  right: 14px;
  top: 13px;
  width: 9px;
  height: 9px;
  border-radius: 50%;
  background: #e94961;
  border: 2px solid #fff;
}
.phone-clean .phone-note {
  padding: 0 18px;
  color: #b6c4c8;
}
.phone-clean .phone-messages {
  padding-top: 14px;
}
.phone-clean .phone-bottom {
  background: #05080c;
  border-top-color: #ffffff14;
  color: #8fa0a7;
}

/* v13: board lives in the corner and contains only found evidence */
.person-card {
  display: none !important;
}
.floating-board-button {
  position: fixed;
  left: 22px;
  bottom: 22px;
  z-index: 36;
  width: 174px;
  border: 1px solid #d4b16f65;
  background: #101923;
  color: #edf4ef;
  border-radius: 18px;
  padding: 10px 11px 12px;
  text-align: left;
  box-shadow: 0 18px 50px #0008;
  display: grid;
  gap: 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.floating-board-button:active {
  cursor: grabbing;
}
.floating-board-button:hover {
  border-color: #e7c98c;
  background: #14212b;
  transform: translateY(-1px);
}
.floating-board-button b {
  font-size: 14px;
  color: #f4dfad;
}
.floating-board-button small {
  font-size: 10px;
  color: #9fb1b8;
}
.mini-board {
  position: relative;
  height: 78px;
  border: 5px solid #3a281b;
  border-radius: 10px;
  background: radial-gradient(circle at 30% 20%, #9b7a50, #60452e 68%, #3c2a1d);
  overflow: hidden;
  box-shadow: inset 0 0 0 1px #e4c0844f;
}
.mini-board:before {
  content: "";
  position: absolute;
  inset: 0;
  background-image: radial-gradient(#1a100966 1px, transparent 1px);
  background-size: 8px 8px;
  opacity: 0.28;
}
.mini-board span {
  position: absolute;
  z-index: 2;
  width: 24px;
  height: 22px;
  display: grid;
  place-items: center;
  border-radius: 2px;
  background: #f2ead8;
  color: #2b3231;
  font:
    10px Georgia,
    serif;
  font-weight: 800;
  box-shadow: 2px 3px 6px #140b0666;
  transform: rotate(-2deg);
}
.mini-board i {
  position: absolute;
  right: 10px;
  bottom: 9px;
  z-index: 2;
  border-radius: 999px;
  background: #121820;
  color: #fff;
  padding: 0;
}
.mini-board i:after {
  content: "Открыть доску";
  display: block;
  font-size: 10px;
  font-weight: 850;
  padding: 7px 10px;
}
.board-drawer-overlay {
  position: fixed;
  inset: 0;
  z-index: 80;
  background: #05090dcc;
  backdrop-filter: blur(8px);
  padding: 26px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.board-drawer-shell {
  width: min(1160px, 100%);
  max-height: calc(100svh - 52px);
  overflow: auto;
  border-radius: 18px;
  background: #081016;
  border: 1px solid #d4b16f35;
  box-shadow: 0 30px 90px #000b;
  padding: 24px;
}
.drawer-board .board-head {
  align-items: center;
}
.drawer-board .board-toolbar {
  align-items: center;
}
.board-close {
  color: #f0d39d;
  border: 1px solid #ffffff22;
  background: #111b23;
}
.evidence-only-board {
  min-height: 720px;
}
.drawer-board .case-board {
  margin-bottom: 22px;
}
.drawer-board .board-main-card {
  left: 18%;
  top: 62%;
}
.drawer-board .board-card {
  width: 205px;
}
.drawer-board .board-card.wide {
  width: 265px;
}
@media (max-width: 950px) {
  .floating-board-button {
    left: 18px;
    bottom: 82px;
    width: 152px;
  }
  .mini-board {
    height: 66px;
  }
  .board-drawer-overlay {
    padding: 14px;
  }
  .board-drawer-shell {
    max-height: calc(100svh - 28px);
    padding: 16px;
  }
  .evidence-only-board {
    min-height: 820px;
  }
  .drawer-board .board-card {
    width: 172px;
  }
  .drawer-board .board-card.wide {
    width: 220px;
  }
}
@media (max-width: 640px) {
  .floating-board-button {
    width: 128px;
    padding: 8px;
    bottom: 78px;
  }
  .floating-board-button b {
    font-size: 12px;
  }
  .floating-board-button small {
    font-size: 9px;
  }
  .mini-board {
    height: 56px;
    border-width: 4px;
  }
  .mini-board span {
    width: 18px;
    height: 18px;
    font-size: 8px;
  }
  .mini-board i:after {
    content: "Доска";
    font-size: 9px;
    padding: 5px 8px;
  }
  .drawer-board .board-head {
    display: block;
  }
  .drawer-board .board-toolbar {
    justify-content: flex-start;
  }
  .evidence-only-board {
    min-height: 940px;
  }
  .drawer-board .board-card {
    width: 158px;
  }
  .drawer-board .board-card.wide {
    width: 198px;
  }
}

/* v14: draggable notebook and more iPhone-like phone */
.phone-clean {
  border: 10px solid #080a0d;
  border-radius: 50px;
  background: #05070a;
  box-shadow:
    0 28px 90px #000d,
    inset 0 0 0 1px #ffffff18,
    0 0 0 1px #3a4149;
  isolation: isolate;
}
.phone-clean:before {
  content: "";
  position: absolute;
  inset: 7px;
  border-radius: 39px;
  pointer-events: none;
  z-index: 1;
  box-shadow:
    inset 0 0 0 1px #ffffff1a,
    inset 0 18px 45px #ffffff0b;
}
.phone-clean:after {
  content: "";
  position: absolute;
  left: 50%;
  bottom: 10px;
  z-index: 5;
  width: 118px;
  height: 4px;
  border-radius: 999px;
  background: #f5f5f4;
  transform: translateX(-50%);
  opacity: 0.9;
}
.phone-clean > * {
  position: relative;
  z-index: 2;
}
.phone-clean .phone-status {
  padding: 17px 27px 7px;
  font-size: 11px;
  font-weight: 800;
  color: #fff;
}
.phone-clean .phone-pill {
  position: absolute;
  left: 50%;
  top: 10px;
  z-index: 6;
  width: 96px;
  height: 28px;
  border-radius: 22px;
  background: #010204;
  transform: translateX(-50%);
  box-shadow:
    inset 0 0 0 1px #ffffff12,
    0 7px 18px #0008;
}
.phone-clean .phone-pill:after {
  content: "";
  position: absolute;
  right: 12px;
  top: 8px;
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: radial-gradient(circle, #344f67, #090b10 70%);
  box-shadow: 0 0 0 1px #ffffff10;
}
.phone-clean .phone-title {
  padding: 10px 18px 12px;
}
.phone-clean .phone-title h3,
.phone-clean .iphone-nav b {
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-weight: 850;
  letter-spacing: -0.2px;
}
.phone-clean .phone-title small {
  color: #8798a1;
}
.phone-clean .iphone-nav {
  padding: 2px 17px 12px;
}
.phone-clean .iphone-nav button {
  font-weight: 760;
  color: #dbe7e8;
}
.phone-clean .messages {
  border-radius: 24px 24px 32px 32px;
  margin: 0 9px 8px;
  background: linear-gradient(160deg, #070b10, #0d141c);
}
.phone-home-wallpaper {
  min-height: 286px;
  border-radius: 31px;
  margin: 0 13px 16px;
  border-color: #ffffff30;
  box-shadow: inset 0 -90px 80px #020509d9;
}
.phone-home-wallpaper span {
  color: #fff;
  text-shadow: 0 2px 14px #000;
}
.phone-home-wallpaper h4 {
  font-size: 24px;
  letter-spacing: -0.4px;
}
.phone-home-wallpaper p {
  font-size: 11.5px;
  line-height: 1.55;
}
.phone-simple-grid {
  grid-template-columns: repeat(2, 72px);
  gap: 19px 26px;
  justify-content: center;
  padding: 0 22px 18px;
}
.phone-simple-grid button {
  min-height: 92px;
  border: 0;
  background: transparent !important;
  box-shadow: none;
  border-radius: 18px;
  padding: 0;
  color: #fff;
  gap: 7px;
  overflow: visible;
}
.phone-simple-grid button:hover {
  background: transparent !important;
  transform: translateY(-1px);
}
.phone-simple-grid button svg {
  width: 58px;
  height: 58px;
  padding: 15px;
  border-radius: 17px;
  color: #fff;
  background: linear-gradient(160deg, #38c475, #13733b);
  box-shadow: 0 12px 25px #0007;
}
.phone-simple-grid button:nth-child(1) svg {
  background: linear-gradient(160deg, #55d887, #159b47);
}
.phone-simple-grid button:nth-child(2) svg {
  background: linear-gradient(160deg, #54d967, #1a8b36);
}
.phone-simple-grid button span {
  font-size: 10px;
  font-weight: 650;
  text-shadow: 0 2px 10px #000;
}
.phone-simple-grid .app-dot {
  right: 2px;
  top: 2px;
  width: 12px;
  height: 12px;
}
.phone-clean .phone-note {
  margin: 0 18px 18px;
  padding: 12px 14px;
  border: 1px solid #ffffff18;
  border-radius: 18px;
  background: #ffffff0b;
  backdrop-filter: blur(12px);
  font-size: 10.5px;
}
.phone-clean .phone-bottom {
  padding: 10px 16px 19px;
  background: #05070a;
  border-top-color: #ffffff10;
}
.phone-clean .phone-bottom span {
  display: none;
}
.phone-clean .lock-date {
  font-size: 13px;
}
.phone-clean .lock-time {
  font-size: 72px;
}
.phone-clean .pin-pad button {
  height: 48px;
}
.floating-notes-button {
  position: fixed;
  z-index: 37;
  width: 146px;
  border: 1px solid #d4b16f65;
  background: #101923;
  color: #edf4ef;
  border-radius: 18px;
  padding: 10px 11px 12px;
  text-align: left;
  box-shadow: 0 18px 50px #0008;
  display: grid;
  gap: 8px;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.floating-notes-button:active {
  cursor: grabbing;
}
.floating-notes-button:hover {
  border-color: #e7c98c;
  background: #14212b;
}
.floating-notes-button b {
  font-size: 14px;
  color: #f4dfad;
}
.floating-notes-button small {
  font-size: 10px;
  color: #9fb1b8;
}
.mini-notebook {
  position: relative;
  height: 76px;
  border-radius: 10px;
  background: repeating-linear-gradient(#f1ead6 0, #f1ead6 14px, #d7cfba 15px);
  color: #2d332b;
  border-left: 12px solid #b64256;
  box-shadow:
    inset 0 0 0 1px #5b463033,
    2px 5px 16px #0006;
  display: grid;
  place-items: center;
  overflow: hidden;
}
.mini-notebook:before {
  content: "";
  position: absolute;
  left: -8px;
  top: 9px;
  bottom: 9px;
  width: 6px;
  background: radial-gradient(circle, #f3d996 2px, transparent 3px) 0 0/6px 13px;
}
.mini-notebook svg {
  color: #7f3241;
}
.mini-notebook i {
  font-style: normal;
  font-size: 9px;
  font-weight: 850;
  text-transform: uppercase;
  color: #5d665b;
}
.floating-notes-panel {
  position: fixed;
  z-index: 79;
  width: min(430px, calc(100vw - 28px));
  height: min(560px, calc(100svh - 80px));
  display: flex;
  flex-direction: column;
  background: #101923;
  border: 1px solid #d4b16f42;
  border-radius: 18px;
  box-shadow: 0 30px 90px #000c;
  color: #edf4ef;
  overflow: hidden;
}
.floating-notes-head {
  display: flex;
  justify-content: space-between;
  gap: 14px;
  align-items: center;
  padding: 15px 16px;
  background: linear-gradient(135deg, #1b2b35, #101923);
  border-bottom: 1px solid #ffffff14;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.floating-notes-head:active {
  cursor: grabbing;
}
.floating-notes-head span {
  display: block;
  font:
    8px ui-monospace,
    monospace;
  letter-spacing: 1.5px;
  color: #d4b16f;
}
.floating-notes-head b {
  font-size: 15px;
}
.notes-collapse {
  border: 1px solid #ffffff22;
  background: #ffffff0a;
  color: #e8d2aa;
  border-radius: 999px;
  padding: 7px 10px;
  display: flex;
  align-items: center;
  gap: 5px;
  font-size: 10px;
  font-weight: 850;
}
.floating-notes-tools {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 8px;
  padding: 12px;
  background: #0b1117;
  border-bottom: 1px solid #ffffff10;
}
.floating-notes-tools button {
  border: 1px solid #d4b16f3f;
  background: #d4b16f10;
  color: #f1d49d;
  border-radius: 999px;
  padding: 8px 7px;
  font-size: 10px;
  font-weight: 850;
}
.floating-notes-tools button:hover {
  background: #d4b16f;
  color: #160f07;
}
.floating-notes-panel textarea {
  flex: 1;
  width: 100%;
  border: 0;
  border-radius: 0;
  resize: none;
  background: repeating-linear-gradient(
    #efe9d5 0,
    #efe9d5 31px,
    #d8d0bb 31px,
    #d8d0bb 32px
  );
  color: #354039;
  line-height: 32px;
  padding: 18px 20px;
  font-size: 14px;
  outline: 0;
}
.floating-notes-panel textarea::placeholder {
  color: #788476;
}
.floating-notes-foot {
  display: flex;
  justify-content: space-between;
  gap: 10px;
  padding: 10px 14px;
  background: #0b1117;
  border-top: 1px solid #ffffff12;
  font-size: 9px;
  color: #9fb1b8;
}
.floating-notes-foot span:first-child {
  display: flex;
  align-items: center;
  gap: 5px;
  color: #d8c190;
}
@media (max-width: 950px) {
  .phone-clean {
    border-width: 8px;
  }
  .floating-notes-panel {
    height: min(530px, calc(100svh - 92px));
  }
}
@media (max-width: 640px) {
  .phone-clean .phone-status {
    padding-left: 24px;
    padding-right: 24px;
  }
  .phone-clean .phone-pill {
    width: 88px;
    height: 26px;
  }
  .phone-clean .lock-time {
    font-size: 62px;
  }
  .phone-home-wallpaper {
    min-height: 245px;
  }
  .phone-simple-grid {
    grid-template-columns: repeat(2, 66px);
    gap: 16px 22px;
  }
  .phone-simple-grid button svg {
    width: 54px;
    height: 54px;
  }
  .floating-notes-button {
    width: 130px;
    padding: 8px;
  }
  .mini-notebook {
    height: 58px;
  }
  .floating-notes-panel {
    width: auto;
    height: min(520px, calc(100svh - 100px));
  }
  .floating-notes-tools {
    grid-template-columns: 1fr 1fr;
  }
  .floating-notes-tools button:last-child {
    grid-column: 1/-1;
  }
  .floating-notes-panel textarea {
    font-size: 13px;
    padding: 15px;
  }
  .floating-notes-foot {
    font-size: 8px;
    flex-direction: column;
  }
}

/* v15: shared room notebook/board and resizable investigation tools */
.phone-clean {
  width: 100%;
  min-width: 285px;
  resize: both;
  transform: scale(var(--phone-scale, 1));
  transform-origin: top right;
}
.phone-window-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.phone-window-actions > button:not(.icon-button) {
  width: 30px;
  height: 30px;
  border: 1px solid #ffffff24;
  background: #ffffff10;
  color: #edf4f2;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
}
.phone-window-actions > button:not(.icon-button):hover {
  background: #ffffff1d;
  border-color: #d4b16f55;
}
.floating-notes-panel {
  resize: both;
  min-width: 300px;
  min-height: 360px;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
}
.board-drawer-overlay {
  padding: 0;
  display: block;
}
.board-drawer-shell {
  position: fixed;
  max-width: calc(100vw - 24px);
  max-height: calc(100svh - 24px);
  min-width: 560px;
  min-height: 430px;
  display: flex;
  flex-direction: column;
  overflow: hidden;
  padding: 0;
}
.board-window-bar {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 14px;
  background: linear-gradient(135deg, #182832, #0b1218);
  border-bottom: 1px solid #ffffff16;
  color: #edf4ef;
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.board-window-bar:active {
  cursor: grabbing;
}
.board-window-bar span {
  font-size: 13px;
  font-weight: 850;
  color: #f0d39d;
}
.board-window-bar small {
  font-size: 10px;
  color: #9fb1b8;
  margin-right: auto;
}
.board-window-bar .icon-button {
  border: 1px solid #ffffff20;
  background: #ffffff08;
  color: #f0d39d;
}
.board-window-content {
  flex: 1;
  overflow: auto;
  padding: 20px;
}
.board-window-content .board-page {
  min-height: 0;
}
.board-window-content .drawer-board {
  padding-bottom: 10px;
}
.board-resize-handle {
  position: absolute;
  right: 6px;
  bottom: 6px;
  z-index: 4;
  width: 28px;
  height: 28px;
  border-right: 3px solid #d4b16f88;
  border-bottom: 3px solid #d4b16f88;
  border-radius: 0 0 10px 0;
  cursor: nwse-resize;
  touch-action: none;
}
.board-resize-handle:before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #ffffff55;
  border-bottom: 2px solid #ffffff55;
}
@media (max-width: 950px) {
  .phone-panel.phone-open {
    transform: scale(var(--phone-scale, 1));
    transform-origin: bottom right;
  }
  .board-drawer-shell {
    min-width: 0;
  }
  .board-window-content {
    padding: 14px;
  }
}
@media (max-width: 640px) {
  .board-drawer-shell {
    min-width: 0;
    min-height: 0;
    max-width: calc(100vw - 16px);
    max-height: calc(100svh - 16px);
  }
  .board-window-bar {
    padding: 10px 11px;
  }
  .board-window-bar small {
    display: none;
  }
  .floating-notes-panel {
    resize: none;
  }
  .phone-window-actions > button:not(.icon-button) {
    width: 28px;
    height: 28px;
  }
}

/* v16: explicit drag and resize controls */
.tool-window-actions {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-left: auto;
}
.tool-window-actions > button {
  min-width: 30px;
  height: 30px;
  border: 1px solid #ffffff22;
  background: #ffffff0b;
  color: #edf4ef;
  border-radius: 999px;
  font-weight: 900;
  line-height: 1;
  padding: 0 9px;
}
.tool-window-actions > button:hover {
  background: #d4b16f1f;
  border-color: #d4b16f66;
  color: #ffe2a8;
}
.phone-drag-zone {
  cursor: grab;
  touch-action: none;
  user-select: none;
}
.phone-drag-zone:active {
  cursor: grabbing;
}
.phone-floating {
  width: min(360px, calc(100vw - 20px)) !important;
  height: min(720px, calc(100svh - 20px)) !important;
  min-height: 520px;
  max-height: calc(100svh - 20px);
}
.note-resize-handle {
  position: absolute;
  right: 7px;
  bottom: 7px;
  width: 28px;
  height: 28px;
  border-right: 3px solid #d4b16f88;
  border-bottom: 3px solid #d4b16f88;
  border-radius: 0 0 10px 0;
  cursor: nwse-resize;
  touch-action: none;
}
.note-resize-handle:before {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-right: 2px solid #ffffff55;
  border-bottom: 2px solid #ffffff55;
}
.floating-notes-head .tool-window-actions {
  margin-left: 0;
}
.floating-notes-head .notes-collapse {
  height: 30px;
  padding: 0 10px;
}
@media (max-width: 640px) {
  .phone-floating {
    min-height: 0;
  }
  .tool-window-actions > button {
    min-width: 28px;
    height: 28px;
    padding: 0 8px;
  }
  .floating-notes-panel {
    min-width: 260px;
    min-height: 310px;
  }
  .note-resize-handle {
    display: block;
  }
}

/* v18: chapter 2 OSINT investigation */
.ending-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  align-items: center;
  margin-top: 18px;
}
.ending-actions-extra {
  margin: 18px 0 0;
  padding: 0 4px;
}
.osint-home .dim {
  max-width: 760px;
}
.osint-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 26px 0;
}
.osint-grid article,
.profile-card,
.archive-terminal,
.route-grid article,
.geo-notes,
.dm-window {
  border: 1px solid #ffffff18;
  background: linear-gradient(160deg, #101923, #0a1117);
  border-radius: 12px;
  box-shadow: 0 18px 48px #0004;
}
.osint-grid article {
  padding: 18px;
  min-height: 158px;
}
.osint-grid article > span,
.route-grid article > span,
.archive-terminal span {
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.osint-grid h3,
.profile-card h3,
.route-grid h3,
.geo-notes h3 {
  font-size: 15px;
  margin: 9px 0 7px;
  color: #f2efe7;
}
.osint-grid p,
.profile-card p,
.route-grid p,
.geo-notes p {
  font-size: 12px;
  line-height: 1.55;
  color: #aebdc2;
}
.dead-archive .next-prompt,
.route-page .next-prompt {
  margin-top: 18px;
}
.archive-terminal {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 1px;
  padding: 1px;
  margin: 24px 0;
  background: #d4b16f26;
}
.archive-terminal > div {
  background: #071016;
  padding: 17px 16px;
  border-radius: 10px;
}
.archive-terminal b {
  display: block;
  margin-top: 8px;
  color: #edf4ef;
  font:
    15px ui-monospace,
    monospace;
}
.profile-grid {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
  margin: 24px 0;
}
.profile-card {
  position: relative;
  padding: 18px;
  display: grid;
  gap: 10px;
}
.profile-card.correct {
  border-color: #d4b16f66;
  background: linear-gradient(160deg, #171b1a, #0c1514);
}
.profile-card.trap {
  opacity: 0.92;
}
.profile-card small {
  display: block;
  color: #7f9299;
  font-size: 10px;
  line-height: 1.45;
  min-height: 30px;
}
.avatar.initials {
  width: 48px;
  height: 48px;
  border-radius: 18px;
  background: #d4b16f;
  color: #161006;
  display: grid;
  place-items: center;
  font-weight: 900;
  box-shadow: 0 12px 28px #0005;
}
.dm-window {
  padding: 18px;
  margin: 22px 0;
  display: grid;
  gap: 13px;
}
.bubble {
  max-width: 78%;
  border: 1px solid #ffffff14;
  background: #131f28;
  border-radius: 18px 18px 18px 6px;
  padding: 13px 15px;
}
.bubble.own {
  justify-self: end;
  background: #17433f;
  border-color: #71d2bd33;
  border-radius: 18px 18px 6px 18px;
}
.bubble .sender {
  display: block;
  color: #f0d39d;
  font-size: 11px;
  margin-bottom: 5px;
}
.bubble p {
  font-size: 13px;
  line-height: 1.55;
  color: #edf4ef;
}
.bubble time {
  display: block;
  margin-top: 6px;
  color: #84969d;
  font-size: 9px;
}
.geo-layout {
  display: grid;
  grid-template-columns: minmax(260px, 1.1fr) minmax(220px, 0.9fr);
  gap: 16px;
  margin: 24px 0;
}
.geo-photo {
  position: relative;
  min-height: 300px;
  border-radius: 14px;
  overflow: hidden;
  border: 1px solid #ffffff1c;
  background: #05080c;
}
.geo-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.05);
}
.geo-photo:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 45%, #020509cc);
}
.geo-photo span {
  position: absolute;
  left: 16px;
  bottom: 14px;
  z-index: 2;
  font:
    10px ui-monospace,
    monospace;
  color: #f1d49d;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.geo-notes {
  padding: 20px;
}
.geo-notes p {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-top: 1px solid #ffffff10;
  padding-top: 11px;
  margin-top: 11px;
}
.geo-notes svg {
  color: #d4b16f;
  margin-top: 2px;
  flex-shrink: 0;
}
.osint-form {
  margin: 22px 0 0;
  border: 1px solid #d4b16f35;
  background: #d4b16f0b;
  border-radius: 12px;
  padding: 16px;
}
.osint-form h3 {
  font-size: 14px;
  margin-bottom: 12px;
  color: #f1d49d;
}
.osint-form > div {
  display: flex;
  gap: 10px;
}
.osint-form input {
  flex: 1;
  min-width: 0;
  background: #071016;
  border: 1px solid #ffffff25;
  color: #edf4ef;
  border-radius: 999px;
  padding: 12px 14px;
  font-size: 13px;
}
.osint-form input:focus {
  outline: 2px solid #d4b16f55;
  border-color: #d4b16f;
}
.route-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.route-grid article {
  padding: 17px;
  min-height: 148px;
}
.route-grid article:nth-child(4) {
  border-color: #d4b16f60;
  background: linear-gradient(160deg, #201a12, #0b1117);
}
.route-page .audit-reveal {
  margin-top: 20px;
}
.chapter-bar b {
  font-weight: 900;
}
.material-tabs button:disabled {
  opacity: 0.42;
}
.source-note code,
.audit-reveal code {
  background: #05090d;
  border: 1px solid #ffffff1c;
  border-radius: 5px;
  padding: 1px 5px;
  color: #f0d39d;
}
@media (max-width: 1050px) {
  .osint-grid,
  .route-grid {
    grid-template-columns: repeat(2, 1fr);
  }
  .profile-grid {
    grid-template-columns: 1fr;
  }
  .archive-terminal {
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 700px) {
  .osint-grid,
  .route-grid,
  .archive-terminal,
  .geo-layout {
    grid-template-columns: 1fr;
  }
  .osint-form > div {
    display: grid;
  }
  .bubble {
    max-width: 92%;
  }
  .geo-photo {
    min-height: 230px;
  }
  .ending-actions .btn {
    width: 100%;
    justify-content: center;
  }
}

.geo-context {
  border: 1px solid #d4b16f38;
  background: linear-gradient(135deg, #d4b16f12, #ffffff06);
  border-radius: 12px;
  padding: 15px 17px;
  margin: 0 0 18px;
}
.geo-context b {
  display: block;
  color: #f2d69c;
  font-size: 12px;
  margin-bottom: 5px;
}
.geo-context p {
  font-size: 12px;
  line-height: 1.65;
  color: #b9c7cb;
}
.chapter-intro-hero {
  position: relative;
  min-height: 430px;
  border-radius: 16px;
  overflow: hidden;
  border: 1px solid #ffffff18;
  background: #05080c;
  margin-bottom: 20px;
  display: flex;
  align-items: flex-end;
}
.chapter-intro-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.9) contrast(1.05);
}
.chapter-intro-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background:
    linear-gradient(90deg, #071016f2 0%, #071016c7 42%, #07101635 100%),
    linear-gradient(180deg, transparent 42%, #05080ccc 100%);
}
.chapter-intro-hero > div {
  position: relative;
  z-index: 1;
  max-width: 620px;
  padding: 42px;
}
.chapter-intro-hero h2 {
  font-size: clamp(38px, 4vw, 62px);
  margin: 18px 0;
}
.chapter-intro-hero p {
  color: #c5d0d3;
  font-size: 14px;
  line-height: 1.75;
  margin-bottom: 24px;
}
.chapter-brief {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 0 0 24px;
}
.chapter-brief article {
  border: 1px solid #d4b16f2e;
  background: #d4b16f0b;
  border-radius: 12px;
  padding: 17px;
}
.chapter-brief span {
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1.4px;
}
.chapter-brief h3 {
  font-size: 14px;
  margin: 8px 0;
  color: #f2efe7;
}
.chapter-brief p {
  font-size: 12px;
  color: #aebdc2;
  line-height: 1.6;
}
@media (max-width: 800px) {
  .chapter-intro-hero {
    min-height: 520px;
  }
  .chapter-intro-hero:after {
    background: linear-gradient(
      180deg,
      #071016ab 0%,
      #071016f2 62%,
      #05080c 100%
    );
  }
  .chapter-intro-hero > div {
    padding: 28px;
  }
  .chapter-brief {
    grid-template-columns: 1fr;
  }
}

/* v21: chapter 3 assets and darker chapter transitions */
.chapter-three .chapter-intro-hero img,
.osint-home .chapter-intro-hero img {
  filter: saturate(0.9) contrast(1.18) brightness(0.82);
}
.future-chapters {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.future-chapters article {
  position: relative;
  min-height: 170px;
  border: 1px solid #ffffff18;
  border-radius: 13px;
  overflow: hidden;
  background: #05080c;
}
.future-chapters img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: center;
  filter: saturate(0.85) contrast(1.1) brightness(0.72);
}
.future-chapters article:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, #02050918, #020509d9);
}
.future-chapters article > div {
  position: absolute;
  inset: auto 0 0;
  z-index: 1;
  padding: 14px;
}
.future-chapters span,
.visual-next span {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1.4px;
}
.future-chapters h3 {
  font-size: 14px;
  color: #fff;
  margin: 6px 0 3px;
}
.future-chapters p {
  font-size: 10px;
  color: #aebdc2;
}
.terminal-ledger {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.terminal-ledger > div,
.trace-table,
.identity-fields {
  border: 1px solid #ffffff18;
  background: linear-gradient(160deg, #101923, #071016);
  border-radius: 12px;
  padding: 17px;
}
.terminal-ledger span {
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1.3px;
}
.terminal-ledger b {
  display: block;
  margin: 9px 0 7px;
  color: #edf4ef;
  font:
    16px ui-monospace,
    monospace;
}
.terminal-ledger p {
  font-size: 12px;
  color: #aebdc2;
}
.terminal-ledger code {
  color: #f0d39d;
}
.dark-evidence,
.split-evidence,
.identity-layout,
.visual-next {
  display: grid;
  grid-template-columns: minmax(260px, 0.95fr) minmax(260px, 1.05fr);
  gap: 16px;
  align-items: stretch;
  margin: 24px 0;
}
.dark-evidence,
.visual-next {
  border: 1px solid #ffffff18;
  background: linear-gradient(160deg, #101923, #071016);
  border-radius: 14px;
  overflow: hidden;
}
.dark-evidence img,
.split-evidence img,
.identity-photo img,
.visual-next img {
  width: 100%;
  height: 100%;
  min-height: 260px;
  object-fit: cover;
  object-position: center;
  display: block;
  filter: saturate(0.86) contrast(1.12);
}
.dark-evidence > div,
.visual-next > div {
  padding: 22px;
  display: flex;
  flex-direction: column;
  justify-content: center;
}
.dark-evidence span {
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1.4px;
}
.dark-evidence h3,
.visual-next h2 {
  margin: 8px 0;
  color: #f2efe7;
}
.dark-evidence p,
.visual-next p {
  font-size: 13px;
  color: #b5c4c9;
}
.trace-table {
  display: grid;
  gap: 1px;
  background: #d4b16f26;
  padding: 1px;
}
.trace-table > div {
  display: grid;
  grid-template-columns: 1fr 0.8fr 0.9fr;
  gap: 10px;
  align-items: center;
  background: #071016;
  padding: 13px;
  border-radius: 10px;
}
.trace-table span {
  font-size: 11px;
  color: #aebdc2;
}
.trace-table b {
  font-size: 12px;
}
.trace-table strong {
  font:
    12px ui-monospace,
    monospace;
  color: #f0d39d;
}
.identity-photo {
  border: 1px solid #ffffff1a;
  border-radius: 14px;
  overflow: hidden;
  background: #05080c;
}
.identity-fields h3 {
  font-size: 16px;
  color: #f2efe7;
  margin-bottom: 14px;
}
.identity-fields p {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  border-top: 1px solid #ffffff10;
  padding-top: 11px;
  margin-top: 11px;
  font-size: 12px;
  color: #b5c4c9;
}
.identity-fields svg {
  color: #d4b16f;
  margin-top: 3px;
}
.identity-fields b {
  color: #f0d39d;
}
@media (max-width: 900px) {
  .future-chapters {
    grid-template-columns: repeat(2, 1fr);
  }
  .terminal-ledger,
  .dark-evidence,
  .split-evidence,
  .identity-layout,
  .visual-next {
    grid-template-columns: 1fr;
  }
}
@media (max-width: 620px) {
  .future-chapters {
    grid-template-columns: 1fr;
  }
  .trace-table > div {
    grid-template-columns: 1fr;
  }
  .dark-evidence img,
  .split-evidence img,
  .identity-photo img,
  .visual-next img {
    min-height: 210px;
  }
}

/* v23: entry briefing, darker OSINT visuals and quiet investigation nudges */
.entry-form {
  background-image:
    linear-gradient(90deg, #091119f4, #111c24ea 43%, #172833de),
    url("/media/entry-bg.png");
  background-size: cover;
  background-position: center;
  overflow: hidden;
}
.entry-form:before {
  content: "";
  position: absolute;
  inset: 0;
  background:
    radial-gradient(circle at 70% 20%, #c9aa7420, transparent 34%),
    linear-gradient(180deg, #05090f33, #05090faa);
  pointer-events: none;
}
.entry-form > * {
  position: relative;
  z-index: 1;
}
.agent-brief-card {
  border: 1px solid #c9aa7433;
  background: linear-gradient(135deg, #071016e8, #182a34d8);
  border-radius: 14px;
  overflow: hidden;
  margin: 0 0 18px;
  box-shadow: 0 14px 45px #0004;
}
.agent-brief-card img {
  width: 100%;
  height: 140px;
  object-fit: cover;
  display: block;
  filter: saturate(0.86) contrast(1.1) brightness(0.82);
}
.agent-brief-card > div {
  padding: 17px;
}
.agent-brief-card b {
  display: block;
  font-size: 14px;
  color: #f4dfad;
  margin-bottom: 8px;
}
.agent-brief-card p {
  font-size: 12px;
  color: #bfccd0;
  line-height: 1.65;
}
.agent-steps {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 7px;
  margin-top: 13px;
}
.agent-steps span {
  border: 1px solid #ffffff14;
  background: #ffffff08;
  border-radius: 8px;
  padding: 8px;
  font-size: 9px;
  color: #d7e0de;
  line-height: 1.35;
}
.mode-tip {
  margin-top: 16px;
  margin-bottom: 6px;
}
.intro-screen {
  background:
    linear-gradient(180deg, #05090edb, #071018f4),
    url("/media/intro-brief-bg.png") center/cover fixed;
}
.intro-player {
  box-shadow: 0 26px 90px #0008;
}
.intro-copy .intro-brief {
  min-height: 0;
  margin-top: 18px;
  padding: 16px 18px;
  border: 1px solid #c9aa7430;
  background: #c9aa740b;
  border-radius: 10px;
  color: #cbd5d2;
  font-size: 13px;
  line-height: 1.75;
}
.tool-nudge {
  animation: toolNudge 1.05s ease-in-out 0s 4;
  border-color: #f0cf92 !important;
  box-shadow:
    0 18px 50px #0008,
    0 0 0 1px #f0cf9255,
    0 0 28px #c9aa7445 !important;
}
.tool-nudge:after {
  content: "новое";
  position: absolute;
  right: 10px;
  top: 9px;
  background: #ad354c;
  color: #fff;
  font-size: 9px;
  font-weight: 850;
  border-radius: 999px;
  padding: 3px 7px;
  letter-spacing: 0.3px;
}
@keyframes toolNudge {
  0%,
  100% {
    transform: translateY(0) scale(1);
  }
  35% {
    transform: translateY(-7px) scale(1.025);
  }
  70% {
    transform: translateY(2px) scale(0.995);
  }
}
.notes-reminder {
  display: grid;
  gap: 3px;
  padding: 11px 14px;
  background: #d4b16f12;
  border-bottom: 1px solid #d4b16f26;
  color: #e9ddc5;
}
.notes-reminder b {
  font-size: 12px;
}
.notes-reminder span {
  font-size: 10px;
  color: #b7c1bd;
  line-height: 1.55;
}
.investigation-desk {
  display: grid;
  grid-template-columns: repeat(2, 1fr);
  gap: 12px;
  margin: 8px 0 24px;
}
.investigation-desk article,
.case-depth > div {
  border: 1px solid #d4b16f2f;
  background: linear-gradient(150deg, #101923, #071016);
  border-radius: 12px;
  padding: 16px;
  box-shadow: 0 16px 42px #0004;
}
.investigation-desk span,
.case-depth span {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.investigation-desk h3 {
  font-size: 15px;
  color: #f2efe7;
  margin: 8px 0 6px;
}
.investigation-desk p,
.case-depth p {
  font-size: 12px;
  line-height: 1.6;
  color: #aebdc2;
}
.case-depth {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 10px;
  margin: 18px 0;
}
.case-depth b {
  display: block;
  color: #edf4ef;
  font-size: 14px;
  margin: 7px 0 5px;
}
.paper-depth {
  grid-template-columns: repeat(3, 1fr);
  margin: 18px 0;
}
.paper-depth > div {
  background: #121d24;
  border-color: #ffffff1f;
  box-shadow: none;
}
.paper-depth span {
  color: #d4b16f;
}
.paper-depth b {
  color: #f2f5ef;
}
.paper-depth p {
  color: #b7c5bf;
}
@media (max-width: 640px) {
  .agent-brief-card img {
    height: 120px;
  }
  .agent-steps {
    grid-template-columns: 1fr;
  }
  .intro-screen {
    background-attachment: scroll;
  }
}
@media (max-width: 800px) {
  .investigation-desk,
  .case-depth,
  .paper-depth {
    grid-template-columns: 1fr;
  }
}

/* v25: quieter phone dock, memory gate and fixed terminal evidence */
@media (min-width: 951px) {
  .game-layout.phone-collapsed {
    grid-template-columns: 88px minmax(0, 1fr);
    max-width: 1500px;
  }
  .game-layout.phone-collapsed .phone-panel {
    display: none;
  }
  .phone-dock-button {
    position: fixed;
    right: 22px;
    bottom: 22px;
    z-index: 35;
    display: flex;
    align-items: center;
    gap: 9px;
    border: 1px solid #d6b17b70;
    background: #253b48;
    color: #ead4b3;
    padding: 13px 18px;
    border-radius: 25px;
    font-size: 12px;
    box-shadow: 0 7px 25px #0004;
  }
  .phone-dock-button.open {
    border-color: #f0cf92;
    background: #182a34;
  }
  .phone-dock-button > i {
    position: absolute;
    right: 15px;
    top: 8px;
    border-radius: 50%;
    width: 6px;
    height: 6px;
    background: #cf5470;
  }
}
@media (min-width: 1600px) {
  .game-layout.phone-collapsed {
    grid-template-columns: 96px minmax(0, 1fr);
  }
}
@media (max-width: 1180px) and (min-width: 951px) {
  .game-layout.phone-collapsed {
    grid-template-columns: 72px minmax(0, 1fr);
  }
}
.watcher-page .dark-evidence img {
  object-fit: cover;
  object-position: center;
  background: #020509;
}
.memory-lock {
  z-index: 65;
}
.memory-dialog {
  max-width: 640px;
  background: linear-gradient(160deg, #101923, #071016);
  border: 1px solid #d4b16f42;
  box-shadow: 0 28px 90px #000b;
}
.memory-dialog h2 {
  margin-top: 12px;
}
.memory-lock-form {
  display: grid;
  gap: 12px;
  margin: 18px 0;
  padding: 15px;
  border: 1px solid #d4b16f30;
  background: #d4b16f0c;
  border-radius: 12px;
}
.memory-lock-form label {
  font-size: 12px;
  color: #e4d5b7;
  line-height: 1.5;
}
.memory-lock-form input {
  background: #05090d;
  border: 1px solid #ffffff25;
  color: #edf4ef;
  border-radius: 10px;
  padding: 13px 14px;
  font:
    18px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.memory-lock-form input:focus {
  outline: 2px solid #d4b16f66;
  border-color: #d4b16f;
}
.memory-hint {
  border-left: 3px solid #d4b16f;
  padding: 10px 0 10px 13px;
  font-size: 12px;
  line-height: 1.65;
  color: #bdc8cb;
  margin: 4px 0 14px;
}
.memory-hint b,
.memory-hint span {
  color: #f0d39d;
}

/* v26: chapter 4 document investigation */
.chapter-four .chapter-intro-hero img {
  filter: saturate(0.82) contrast(1.12) brightness(0.78);
}
.chapter4-card .identity-photo img {
  object-fit: cover;
}
.registry-list {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 12px;
  margin: 24px 0;
}
.registry-list article,
.forum-archive article,
.rebuilt-card,
.identity-form {
  border: 1px solid #ffffff18;
  background: linear-gradient(160deg, #101923, #071016);
  border-radius: 12px;
  box-shadow: 0 18px 48px #0004;
}
.registry-list article {
  padding: 17px;
  min-height: 170px;
}
.registry-list article.correct {
  border-color: #d4b16f70;
  background: linear-gradient(160deg, #1b211a, #071016);
}
.registry-list span,
.forum-archive span,
.rebuilt-card span {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1.3px;
  text-transform: uppercase;
}
.registry-list h3 {
  font-size: 16px;
  color: #f2efe7;
  margin: 9px 0 7px;
}
.registry-list p,
.registry-list small {
  font-size: 12px;
  line-height: 1.55;
  color: #aebdc2;
}
.registry-list small {
  display: block;
  margin-top: 12px;
  color: #7f9299;
}
.registry-log {
  margin-top: 18px;
}
.forum-archive {
  display: grid;
  gap: 12px;
  margin: 24px 0;
}
.forum-archive article {
  padding: 18px;
}
.forum-archive p {
  font-size: 15px;
  line-height: 1.7;
  color: #e3e9e7;
  margin-top: 9px;
}
.identity-rebuild {
  display: grid;
  grid-template-columns: minmax(240px, 0.8fr) minmax(280px, 1.2fr);
  gap: 16px;
  align-items: start;
  margin: 24px 0;
}
.rebuilt-card {
  padding: 24px;
  min-height: 280px;
  position: relative;
  overflow: hidden;
}
.rebuilt-card:before {
  content: "";
  position: absolute;
  inset: -40% -20% auto auto;
  width: 220px;
  height: 220px;
  border-radius: 50%;
  background: #d4b16f14;
  filter: blur(4px);
}
.rebuilt-card h3 {
  font-size: 30px;
  color: #f2efe7;
  margin: 18px 0;
}
.rebuilt-card p {
  font:
    15px ui-monospace,
    monospace;
  color: #c5d0d3;
  margin: 10px 0;
}
.rebuilt-card small {
  display: block;
  margin-top: 34px;
  color: #8fa3ac;
  font-size: 11px;
}
.identity-form {
  padding: 18px;
  display: grid;
  gap: 12px;
}
.identity-form h3 {
  font-size: 17px;
  color: #f2efe7;
}
.identity-form label {
  display: grid;
  gap: 7px;
  font-size: 11px;
  color: #d4b16f;
  text-transform: uppercase;
  letter-spacing: 0.8px;
}
.identity-form input {
  background: #05090d;
  border: 1px solid #ffffff25;
  color: #edf4ef;
  border-radius: 10px;
  padding: 12px 14px;
  font-size: 14px;
  text-transform: none;
  letter-spacing: 0;
}
.identity-form input:focus {
  outline: 2px solid #d4b16f66;
  border-color: #d4b16f;
}
@media (max-width: 900px) {
  .registry-list,
  .identity-rebuild {
    grid-template-columns: 1fr;
  }
}

/* v27: long-form dossier materials */
.dossier-page .section-heading {
  align-items: flex-start;
}
.dossier-progress {
  min-width: 96px;
  border: 1px solid #d4b16f45;
  background: #d4b16f0d;
  border-radius: 12px;
  padding: 14px;
  text-align: center;
}
.dossier-progress b {
  display: block;
  font:
    24px ui-monospace,
    monospace;
  color: #f0d39d;
}
.dossier-progress span {
  font-size: 10px;
  color: #9cafb6;
  text-transform: uppercase;
  letter-spacing: 1px;
}
.dossier-time {
  display: flex;
  gap: 14px;
  align-items: flex-start;
  border: 1px solid #d4b16f38;
  background: linear-gradient(140deg, #17140c, #071016);
  border-radius: 12px;
  padding: 17px 18px;
  margin: 22px 0;
}
.dossier-time svg {
  color: #d4b16f;
  margin-top: 3px;
}
.dossier-time b {
  color: #f2efe7;
  font-size: 14px;
}
.dossier-time p {
  font-size: 12px;
  color: #aebdc2;
  margin-top: 5px;
}
.dossier-layout {
  display: grid;
  grid-template-columns: 290px minmax(0, 1fr);
  gap: 18px;
  margin-top: 22px;
}
.dossier-index {
  display: grid;
  gap: 8px;
  align-content: start;
  max-height: 760px;
  overflow: auto;
  padding-right: 4px;
}
.dossier-index button {
  border: 1px solid #ffffff16;
  background: #101923;
  color: #dce7e4;
  text-align: left;
  border-radius: 10px;
  padding: 13px 14px;
  display: grid;
  gap: 4px;
}
.dossier-index button:hover:not(:disabled),
.dossier-index button.active {
  border-color: #d4b16f72;
  background: #161f25;
}
.dossier-index button:disabled {
  opacity: 0.42;
}
.dossier-index span {
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1px;
}
.dossier-index b {
  font-size: 12px;
  line-height: 1.35;
}
.dossier-index small {
  font-size: 10px;
  color: #91a3aa;
}
.dossier-document {
  border: 1px solid #ffffff1b;
  background: linear-gradient(160deg, #101923, #071016);
  border-radius: 14px;
  padding: 24px;
  box-shadow: 0 20px 55px #0005;
}
.dossier-document h3 {
  font:
    34px Georgia,
    "Times New Roman",
    serif;
  font-weight: 400;
  line-height: 1.12;
  color: #f3efe7;
  margin: 12px 0 8px;
}
.dossier-subtitle {
  color: #d4b16f;
  font-size: 14px;
  margin-bottom: 22px;
}
.dossier-readable,
.dossier-records,
.dossier-questions {
  border-top: 1px solid #ffffff12;
  padding-top: 18px;
  margin-top: 18px;
}
.dossier-readable h4,
.dossier-records h4,
.dossier-questions h4 {
  font-size: 12px;
  color: #f0d39d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 12px;
}
.dossier-readable p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dce6e3;
  font-size: 13px;
  line-height: 1.65;
  border-bottom: 1px dashed #ffffff10;
  padding: 10px 0;
}
.dossier-readable p:last-child {
  border-bottom: 0;
}
.dossier-readable svg {
  color: #d4b16f;
  margin-top: 4px;
}
.dossier-records {
  display: grid;
  gap: 8px;
}
.dossier-records h4 {
  margin-bottom: 4px;
}
.dossier-records div {
  display: grid;
  grid-template-columns: 145px 150px minmax(0, 1fr);
  gap: 12px;
  align-items: center;
  background: #050a0f;
  border: 1px solid #ffffff10;
  border-radius: 8px;
  padding: 10px 12px;
}
.dossier-records code {
  color: #aee3bc;
  font-size: 11px;
}
.dossier-records b {
  font-size: 12px;
  color: #f2efe7;
}
.dossier-records span {
  font-size: 12px;
  color: #aebdc2;
}
.dossier-questions p {
  display: flex;
  gap: 10px;
  align-items: flex-start;
  color: #dce6e3;
  font-size: 13px;
  line-height: 1.55;
  margin: 10px 0;
}
.dossier-questions span {
  width: 23px;
  height: 23px;
  border-radius: 50%;
  display: grid;
  place-items: center;
  background: #d4b16f;
  color: #171008;
  font-size: 11px;
  font-weight: 900;
  flex-shrink: 0;
}
.dossier-actions {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  margin-top: 22px;
}
.dossier-actions .btn.ghost {
  color: #f1e6cf;
  background: #101923;
  border-color: #d4b16f42;
}
@media (max-width: 950px) {
  .dossier-layout {
    grid-template-columns: 1fr;
  }
  .dossier-index {
    max-height: none;
    grid-template-columns: repeat(2, 1fr);
  }
}
@media (max-width: 640px) {
  .dossier-progress {
    width: 100%;
    text-align: left;
  }
  .dossier-layout,
  .dossier-index {
    grid-template-columns: 1fr;
  }
  .dossier-document {
    padding: 18px;
  }
  .dossier-document h3 {
    font-size: 28px;
  }
  .dossier-records div {
    grid-template-columns: 1fr;
    gap: 4px;
  }
  .dossier-actions .btn {
    width: 100%;
  }
}

/* v28: unskippable launch video before registration */
.boot-screen {
  position: relative;
  min-height: 100svh;
  overflow: hidden;
  background: #03070b;
  color: #edf4ef;
  display: grid;
  place-items: center;
}
.boot-video {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  background: #03070b;
  filter: saturate(1.08) contrast(1.08) brightness(0.82);
}
.boot-vignette {
  position: absolute;
  inset: 0;
  background:
    radial-gradient(
      circle at 50% 38%,
      #07192312 0,
      #02050864 52%,
      #010304f1 100%
    ),
    linear-gradient(180deg, #01030470 0%, #01030410 38%, #010304d9 100%);
  pointer-events: none;
}
.boot-panel {
  position: relative;
  z-index: 2;
  align-self: end;
  width: min(1140px, calc(100% - 40px));
  margin: 0 auto 42px;
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 22px;
}
.boot-copy {
  max-width: 540px;
  text-shadow: 0 12px 35px #000;
}
.boot-copy h1 {
  font-size: clamp(42px, 5.2vw, 74px);
  margin: 13px 0 12px;
  color: #f6f0e3;
  letter-spacing: -1px;
}
.boot-copy p {
  max-width: 480px;
  color: #c5d2cf;
  font-size: 15px;
  line-height: 1.75;
}
.boot-actions {
  min-width: 245px;
  display: flex;
  justify-content: flex-end;
}
.boot-wait {
  display: inline-flex;
  align-items: center;
  gap: 10px;
  border: 1px solid #d4b16f42;
  background: #071016d9;
  color: #ead6ad;
  border-radius: 999px;
  padding: 13px 18px;
  font-size: 12px;
  box-shadow: 0 18px 55px #0008;
}
.boot-wait svg,
.boot-sound svg {
  color: #d4b16f;
}
.boot-sound {
  position: absolute;
  z-index: 3;
  right: 28px;
  top: 25px;
  display: inline-flex;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff20;
  background: #071016c9;
  color: #edf4ef;
  border-radius: 999px;
  padding: 10px 14px;
  font-size: 12px;
  box-shadow: 0 12px 35px #0007;
  backdrop-filter: blur(12px);
}
.boot-sound:hover {
  background: #101923;
}
@media (max-width: 720px) {
  .boot-panel {
    width: calc(100% - 28px);
    margin-bottom: 25px;
    align-items: flex-start;
    flex-direction: column;
  }
  .boot-actions,
  .boot-actions .btn {
    width: 100%;
  }
  .boot-copy h1 {
    font-size: 42px;
  }
  .boot-copy p {
    font-size: 13px;
  }
  .boot-sound {
    right: 14px;
    top: 14px;
  }
  .boot-sound span {
    display: none;
  }
  .boot-wait {
    width: 100%;
    justify-content: center;
    text-align: center;
  }
}

/* v31: richer investigation folders inside dossier */
.dossier-meta {
  display: grid;
  gap: 10px;
  margin: 18px 0 22px;
}
.dossier-meta p {
  margin: 0;
  border: 1px solid #ffffff14;
  background: #050a0f;
  border-radius: 10px;
  padding: 12px 14px;
}
.dossier-meta span {
  display: block;
  font:
    9px ui-monospace,
    monospace;
  color: #d4b16f;
  letter-spacing: 1px;
  text-transform: uppercase;
  margin-bottom: 7px;
}
.dossier-meta code {
  display: block;
  color: #aee3bc;
  font-size: 12px;
  white-space: normal;
  word-break: break-word;
}
.dossier-meta b {
  display: block;
  color: #dce6e3;
  font-size: 13px;
  line-height: 1.55;
}
.dossier-brief-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  border-top: 1px solid #ffffff12;
  padding-top: 18px;
  margin-top: 18px;
}
.dossier-brief-grid > div {
  border: 1px solid #d4b16f2f;
  background: linear-gradient(150deg, #111b22, #060b10);
  border-radius: 12px;
  padding: 15px;
}
.dossier-brief-grid h4 {
  font-size: 12px;
  color: #f0d39d;
  text-transform: uppercase;
  letter-spacing: 1px;
  margin-bottom: 10px;
}
.dossier-brief-grid p {
  position: relative;
  color: #dce6e3;
  font-size: 13px;
  line-height: 1.55;
  margin: 9px 0;
  padding-left: 16px;
}
.dossier-brief-grid p:before {
  content: "";
  position: absolute;
  left: 0;
  top: 0.65em;
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #d4b16f;
}
@media (max-width: 700px) {
  .dossier-brief-grid {
    grid-template-columns: 1fr;
  }
}
/* Working tools share viewport-safe frames on every screen. */
.board-drawer-overlay {
  position: static;
  inset: auto;
  display: contents;
  background: transparent;
  backdrop-filter: none;
  pointer-events: none;
  z-index: auto;
}
.board-drawer-shell.workspace-tool {
  pointer-events: auto;
}
.workspace-tool.phone-panel,
.workspace-tool.floating-notes-panel,
.workspace-tool.board-drawer-shell {
  position: fixed;
  right: auto;
  bottom: auto !important;
  margin: 0;
  transform: none !important;
  transform-origin: initial;
  resize: none;
  min-width: 0;
  min-height: 0;
  max-width: none;
  max-height: none;
  box-shadow: 0 16px 60px #0009;
  isolation: isolate;
}
.workspace-tool .phone-title,
.workspace-tool .floating-notes-head,
.workspace-tool .board-window-bar {
  flex-shrink: 0;
  min-height: 54px;
  gap: 8px;
}
.workspace-tool .phone-title {
  padding: 8px 10px;
}
.workspace-tool .phone-title small {
  font-size: 8px;
  letter-spacing: 0;
}
.workspace-tool .phone-title h3 {
  font-size: 21px;
  margin: 0;
}
.workspace-tool .phone-window-actions,
.workspace-tool .tool-window-actions {
  gap: 2px;
  flex-shrink: 0;
}
.workspace-tool .phone-window-actions > button,
.workspace-tool .tool-window-actions > button {
  min-width: 36px;
  height: 40px;
  padding: 0 7px;
  touch-action: manipulation;
}
.workspace-tool .phone-lock {
  min-height: 0;
  flex: 1;
  overflow: auto;
  padding-bottom: 10px;
}
.workspace-tool .messages,
.workspace-tool textarea,
.workspace-tool .board-window-content {
  min-height: 0;
  overscroll-behavior: contain;
}
.workspace-tool .phone-home-wallpaper {
  min-height: 100px;
  flex: 1;
  overflow: auto;
}
.workspace-tool .phone-bottom {
  flex-shrink: 0;
}
.workspace-tool .floating-notes-head {
  padding: 8px 12px;
}
.workspace-tool .floating-notes-head b {
  font-size: 13px;
}
.workspace-tool .floating-notes-head .notes-collapse {
  font-size: 0;
  min-width: 36px;
  padding: 0;
}
.workspace-tool .floating-notes-tools {
  display: flex;
  gap: 6px;
  padding: 8px;
  flex-shrink: 0;
}
.workspace-tool .floating-notes-tools button {
  flex: 1;
  min-height: 36px;
}
.workspace-tool .notes-reminder {
  display: none;
}
.workspace-tool textarea {
  font-size: 16px;
  padding: 12px 16px;
}
.workspace-tool .floating-notes-foot {
  flex-direction: column;
  gap: 2px;
  flex-shrink: 0;
  padding: 7px 16px 12px;
}
.workspace-tool .floating-notes-foot span {
  font-size: 10px;
}
.workspace-tool .board-window-bar {
  padding: 6px 10px;
  flex-wrap: wrap;
  gap: 4px;
}
.workspace-tool .board-window-bar span {
  margin-right: auto;
  font-size: 12px;
}
.workspace-tool .board-window-bar small {
  display: none;
}
.workspace-tool .board-head {
  flex-wrap: wrap;
}
.workspace-tool .board-head h2 {
  font-size: 30px;
}
.workspace-tool .board-window-content {
  padding: 14px;
  scrollbar-width: thin;
}
.workspace-sync-state {
  font-size: 11px;
  color: var(--gold);
  padding: 8px 0;
}
.window-resize {
  position: absolute;
  z-index: 10;
  display: block;
  touch-action: none;
  user-select: none;
}
.window-resize-n,
.window-resize-s {
  height: 10px;
  left: 20px;
  right: 20px;
  cursor: ns-resize;
}
.window-resize-n {
  top: 0;
}
.window-resize-s {
  bottom: 0;
}
.window-resize-w,
.window-resize-e {
  width: 10px;
  top: 20px;
  bottom: 20px;
  cursor: ew-resize;
}
.window-resize-w {
  left: 0;
}
.window-resize-e {
  right: 0;
}
.window-resize-ne,
.window-resize-nw,
.window-resize-se,
.window-resize-sw {
  width: 22px;
  height: 22px;
}
.window-resize-ne {
  top: 0;
  right: 0;
  cursor: nesw-resize;
}
.window-resize-nw {
  top: 0;
  left: 0;
  cursor: nwse-resize;
}
.window-resize-se {
  bottom: 0;
  right: 0;
  cursor: nwse-resize;
}
.window-resize-sw {
  bottom: 0;
  left: 0;
  cursor: nesw-resize;
}
.window-resize-se:after {
  content: "";
  position: absolute;
  right: 6px;
  bottom: 6px;
  width: 12px;
  height: 12px;
  border-right: 3px solid #ad8f59;
  border-bottom: 3px solid #ad8f59;
  border-radius: 0 0 3px;
}
@media (min-width: 951px) {
  .game-layout {
    grid-template-columns: 86px minmax(0, 1fr);
  }
  .investigation {
    padding-right: 410px;
  }
  .phone-panel.workspace-tool {
    display: flex;
  }
}
@media (max-width: 950px) {
  .phone-panel.workspace-tool {
    display: none;
  }
  .phone-panel.workspace-tool.phone-open {
    display: flex;
  }
  .workspace-tool input,
  .workspace-tool select {
    font-size: 16px;
  }
}
@media (max-width: 640px) {
  .workspace-tool .board-toolbar {
    flex-wrap: wrap;
  }
  .workspace-tool .board-head {
    display: block;
  }
  .workspace-tool .board-toolbar .btn {
    min-height: 40px;
  }
  .workspace-tool .board-window-content {
    padding: 12px;
  }
  .workspace-tool .phone-status {
    padding: 10px 18px;
  }
  .workspace-tool .phone-pill {
    height: 16px;
    width: 70px;
  }
  .workspace-tool .lock-time {
    font-size: 46px;
  }
  .workspace-tool .lock-date {
    font-size: 10px;
  }
  .workspace-tool .phone-lock > p {
    font-size: 10px;
  }
  .workspace-tool .pin-pad {
    gap: 6px;
    margin: 8px auto;
  }
  .workspace-tool .pin-pad button {
    height: 42px;
    width: 48px;
    font-size: 19px;
  }
  .workspace-tool .lock-alert {
    padding: 10px;
  }
  .workspace-tool .phone-home-wallpaper {
    min-height: 90px;
  }
}
.workspace-tool .phone-title {
  flex-wrap: wrap;
}
.workspace-tool .phone-window-actions {
  margin-left: auto;
}
.workspace-tool .phone-title > div:first-child {
  min-width: 0;
}
.workspace-tool .floating-notes-head {
  flex-wrap: wrap;
}
.workspace-tool .floating-notes-head .tool-window-actions {
  margin-left: auto;
}
@media (max-width: 640px) {
  .floating-board-button,
  .floating-notes-button {
    width: 106px;
    padding: 8px;
  }
  .mini-board,
  .mini-notebook {
    height: 44px;
  }
  .floating-notes-button {
    max-width: 106px;
  }
  .mobile-phone-button {
    right: 8px;
    bottom: 16px;
    padding: 12px;
  }
  .floating-board-button {
    left: 8px !important;
    bottom: 16px !important;
  }
  .floating-notes-button {
    left: 122px !important;
    bottom: 16px !important;
  }
}
.overlay,
.call-overlay,
.memory-lock {
  z-index: 100000;
}
@media (max-width: 640px) {
  .floating-board-button,
  .floating-notes-button,
  .mobile-phone-button {
    width: calc((100vw - 32px) / 3);
    max-width: none;
  }
  .floating-notes-button {
    left: calc(16px + (100vw - 32px) / 3) !important;
  }
  .mobile-phone-button {
    padding: 10px 6px;
    font-size: 11px;
    gap: 5px;
    justify-content: center;
  }
}

/* v34 — cinematic case-room redesign */
:root {
  --bg: #07090b;
  --deep: #080b0e;
  --panel: #0e1216;
  --raised: #151b20;
  --line: #ffffff14;
  --muted: #9b968e;
  --text: #f4eee5;
  --wine: #a9233b;
  --wine-hover: #c12c47;
  --gold: #c6a575;
}
body {
  background: #07090b;
  color: var(--text);
}
.game-shell {
  min-height: 100svh;
  background:
    linear-gradient(180deg, #07090be8, #07090bf7),
    url("/media/cover.jpg") center/cover fixed;
  position: relative;
  padding-bottom: 105px;
}
.game-shell:before {
  content: "";
  position: fixed;
  inset: 0;
  pointer-events: none;
  background:
    radial-gradient(circle at 73% 22%, #c6a57514, transparent 32%),
    linear-gradient(90deg, #050607aa, transparent 55%, #05060788);
}
.game-header {
  position: sticky;
  top: 0;
  z-index: 32;
  height: 76px;
  background: #07090bcf;
  border-bottom: 1px solid #ffffff12;
  backdrop-filter: blur(20px);
  padding: 0 clamp(18px, 3vw, 44px);
  gap: 28px;
}
.game-header .logo-mark {
  width: 34px;
  height: 37px;
  border-radius: 2px;
  border-color: #c6a57555;
  font-size: 25px;
}
.game-header .logo > span:last-child {
  font-size: 11px;
  letter-spacing: 2.4px;
}
.game-header .logo small {
  font-size: 6px;
  letter-spacing: 4.4px;
  color: #8d8982;
}
.case-identity {
  border-left-color: #ffffff18;
  padding-left: 26px;
  display: grid;
  gap: 3px;
}
.case-identity span {
  font-size: 8px;
  letter-spacing: 2px;
  color: #c6a575;
}
.case-identity b {
  font:
    400 15px Georgia,
    serif;
  color: #f3ede3;
}
.save-status {
  color: #8e8a83;
}
.profile-chip > span {
  border-color: #c6a57555;
  color: #d4b887;
}
.profile-chip b {
  color: #d8d1c7;
}
.game-layout {
  display: block;
  max-width: none;
  min-height: calc(100svh - 76px);
}
.investigation {
  position: relative;
  z-index: 2;
  width: min(1180px, calc(100% - 40px));
  margin: 0 auto;
  padding: 34px 0 0;
  min-height: calc(100svh - 76px);
}
.chapter-bar {
  height: 48px;
  margin: 0 0 14px;
  padding: 0 18px;
  border: 1px solid #ffffff13;
  border-radius: 14px;
  background: #0b0e11c7;
  backdrop-filter: blur(14px);
  color: #8f8a82;
}
.chapter-bar i {
  background: #b22841;
  box-shadow: 0 0 0 5px #b2284120;
}
.chapter-bar b {
  font:
    500 13px Georgia,
    serif;
  color: #e8e0d5;
}
.chapter-bar > span:last-child {
  color: #aaa39a;
}
.material-tabs {
  margin: 0 0 16px;
  padding: 7px;
  background: #0a0d10d9;
  border: 1px solid #ffffff13;
  border-radius: 16px;
  gap: 4px;
  box-shadow: 0 16px 45px #0005;
  scrollbar-width: none;
}
.material-tabs::-webkit-scrollbar {
  display: none;
}
.material-tabs button {
  min-height: 38px;
  padding: 9px 14px !important;
  border: 1px solid transparent !important;
  border-radius: 11px !important;
  color: #8f8b84 !important;
  font-size: 10px !important;
  font-weight: 650 !important;
}
.material-tabs button:hover:not(:disabled) {
  background: #ffffff08;
  color: #f1e9dd !important;
}
.material-tabs button.active {
  background: #ffffff0c !important;
  border-color: #c6a5753d !important;
  color: #e7c995 !important;
}
.material-tabs button:disabled {
  display: none;
}
.material-page,
.case-cover,
.board-page,
.notes-page,
.team-page {
  border: 1px solid #ffffff16;
  background: linear-gradient(145deg, #101419f2, #0a0d10f5);
  border-radius: 19px;
  box-shadow: 0 34px 100px #0008;
  overflow: hidden;
}
.material-page,
.board-page,
.notes-page,
.team-page {
  padding: clamp(22px, 3vw, 42px);
}
.case-cover {
  min-height: 520px;
}
.case-cover > img {
  filter: saturate(0.72) contrast(1.12) brightness(0.72);
}
.case-cover > div {
  background:
    linear-gradient(90deg, #090c0ff4 0%, #0b0f12d4 48%, #0b0f123b 100%),
    linear-gradient(180deg, transparent 52%, #080a0ded);
}
.case-cover > section {
  padding: clamp(32px, 5vw, 64px);
  max-width: 660px;
}
.case-cover h1 {
  font-size: clamp(45px, 6vw, 76px);
  letter-spacing: -2.5px;
  margin: 20px 0;
}
.case-cover p {
  max-width: 560px;
  font:
    400 15px/1.75 Georgia,
    serif;
  color: #d2cbc1;
}
.case-cover .btn {
  font-size: 13px;
  padding: 13px 21px;
}
.current-lead {
  background: #0a0d10;
  border-color: #c6a5752c;
  border-radius: 15px;
  padding: 22px;
}
.quick-grid > button,
.observation,
.discussion-card,
.team-chat,
.ending-truth,
.next-prompt,
.soft-tip {
  background: #0c1014;
  border-color: #ffffff15;
  border-radius: 14px;
}
.quick-grid > button:hover {
  background: #11171c;
  border-color: #c6a5754a;
}
.quick-grid h3 {
  font-family: Georgia, serif;
  font-size: 16px;
}
.quick-grid p {
  color: #9f9a92;
}
.paper {
  border-radius: 16px;
  background: #eee7da;
  color: #292824;
  box-shadow: 0 28px 80px #0007;
}
.paper h2,
.paper h3,
.paper h4 {
  color: #24231f;
}
.paper .dim,
.paper p {
  color: #58564f;
}
.paper .eyebrow {
  color: #7f2637;
}
.paper .btn.primary {
  background: #98223a;
  border-color: #98223a;
}
.section-heading h2,
.material-page > h2,
.board-page > h2,
.notes-page > h2,
.team-page > h2 {
  letter-spacing: -1.4px;
}
.eyebrow {
  color: #c6a575;
}
.btn {
  border-radius: 999px;
}
.btn.primary {
  background: #a9233b;
  border-color: #a9233b;
  box-shadow: 0 15px 34px #78162b45;
}
.btn.primary:hover:not(:disabled) {
  background: #c12c47;
}
.btn.ghost,
.btn.compact {
  background: #0d1115;
  border-color: #ffffff1d;
  color: #e9e1d6;
}
.rail {
  position: fixed;
  z-index: 45;
  left: 50%;
  bottom: 18px;
  top: auto;
  transform: translateX(-50%);
  height: auto;
  min-height: 0;
  width: auto;
  display: flex;
  flex-direction: row;
  gap: 3px;
  padding: 7px;
  border: 1px solid #ffffff1a;
  border-radius: 22px;
  background: #080b0eea;
  backdrop-filter: blur(22px);
  box-shadow: 0 24px 70px #000c;
}
.rail button {
  width: 86px;
  min-height: 54px;
  padding: 7px 9px;
  display: grid;
  grid-template-columns: 22px 1fr;
  grid-template-rows: auto auto;
  align-items: center;
  text-align: left;
  column-gap: 7px;
  color: #8e8a83;
  border-radius: 16px;
}
.rail button > svg {
  grid-row: 1/3;
  color: #bda579;
}
.rail button > span {
  font-size: 9px;
  color: #ddd5ca;
}
.rail button.active {
  background: #ffffff0b;
  color: #e9cc98;
}
.rail button.active:before {
  display: none;
}
.rail button:hover {
  background: #ffffff09;
}
.rail small {
  position: static;
  grid-column: 2;
  font-size: 7px;
  background: transparent;
  color: #827d75;
  padding: 0;
}
.rail .rail-help {
  margin: 0;
  width: 54px;
  display: grid;
  place-items: center;
}
.rail-help span {
  display: none;
}
.rail-help svg {
  grid-row: auto !important;
}
.investigation-footer {
  padding-bottom: 35px;
}
.investigation-footer > span {
  color: #77736c;
}
.investigation-footer button {
  color: #c6a575;
}
.phone-panel.workspace-tool {
  position: fixed !important;
  margin: 0 !important;
  z-index: 58 !important;
  display: none !important;
}
.phone-panel.workspace-tool.phone-open {
  display: flex !important;
}
.mobile-phone-button {
  display: flex !important;
  position: fixed;
  z-index: 46;
  right: 24px;
  bottom: 24px;
  align-items: center;
  gap: 8px;
  border: 1px solid #ffffff1a;
  background: #080b0eea;
  color: #e9ddcb;
  padding: 13px 17px;
  border-radius: 18px;
  box-shadow: 0 20px 60px #000b;
}
.mobile-phone-button > i {
  position: absolute;
  right: 11px;
  top: 8px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #ba2942;
}
.floating-board-button,
.floating-notes-button {
  bottom: 24px !important;
  background: #080b0eea;
  border-color: #ffffff1a;
  border-radius: 18px;
  box-shadow: 0 20px 60px #000b;
}
.floating-board-button {
  left: 24px !important;
}
.floating-notes-button {
  left: 212px !important;
}
.floating-board-button b,
.floating-notes-button b {
  color: #ead7b6;
}
.floating-board-button small,
.floating-notes-button small {
  color: #77736d;
}
.mini-board,
.mini-notebook {
  height: 52px;
}
.dialog,
.active-call,
.incoming-call {
  background: #0c1014;
  border-color: #ffffff1d;
  border-radius: 22px;
  box-shadow: 0 35px 120px #000e;
}
.overlay,
.call-overlay {
  background: #030405cc;
  backdrop-filter: blur(14px);
}
.toast {
  background: #eee8de;
  color: #352f29;
  border-color: #ffffff55;
  border-radius: 999px;
  bottom: 106px;
}
.entry {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1.22fr) minmax(410px, 0.78fr);
  background: #07090b;
}
.entry-scene {
  min-height: 100svh;
}
.entry-image {
  filter: saturate(0.78) contrast(1.08) brightness(0.74);
}
.entry-shade {
  background:
    linear-gradient(90deg, #080a0dea 0%, #080a0d72 58%, #080a0d22),
    linear-gradient(0deg, #080a0df4 0%, transparent 62%);
}
.entry-story {
  padding: 100px clamp(32px, 6vw, 84px) 70px;
}
.entry-story h1 {
  font-size: clamp(65px, 8vw, 112px);
  line-height: 0.88;
  letter-spacing: -5px;
}
.entry-story h1 em {
  color: #c7a677;
}
.entry-story > p {
  font:
    400 18px/1.7 Georgia,
    serif;
}
.entry-form {
  background:
    linear-gradient(150deg, #101419f5, #090c0ff9),
    url("/media/entry-bg.png") center/cover;
  padding: 32px clamp(28px, 5vw, 72px);
  border-left: 1px solid #ffffff12;
}
.entry-content {
  max-width: 480px;
}
.entry-content h2 {
  font-size: clamp(40px, 4vw, 56px);
  letter-spacing: -1.8px;
}
.entry-content input {
  border-radius: 13px;
  background: #07090caa;
  border-color: #ffffff1d;
}
.mode-card {
  border-radius: 15px;
  background: #0b0f13;
  border-color: #ffffff16;
}
.mode-card:hover {
  background: #10171c;
  border-color: #c6a57555;
}
.agent-brief-card {
  background: #0a0e11;
  border-color: #c6a57533;
  border-radius: 15px;
}
.intro-screen {
  background:
    linear-gradient(180deg, #07090be8, #07090bf6),
    url("/media/intro-brief-bg.png") center/cover fixed;
}
.intro-player {
  background: #0c1014;
  border-color: #ffffff18;
  border-radius: 20px;
  box-shadow: 0 35px 100px #000a;
}
.intro-copy h1 {
  letter-spacing: -2px;
}
@media (max-width: 950px) {
  .game-shell {
    padding-bottom: 95px;
  }
  .investigation {
    width: min(100% - 28px, 900px);
    padding-top: 20px;
  }
  .game-header {
    height: 68px;
  }
  .case-cover {
    min-height: 470px;
  }
  .rail {
    bottom: 12px;
  }
  .floating-board-button,
  .floating-notes-button {
    bottom: 82px !important;
  }
  .mobile-phone-button {
    bottom: 83px;
  }
  .entry {
    grid-template-columns: 1fr 1fr;
  }
  .entry-form {
    padding: 28px 7%;
  }
  .entry-story h1 {
    font-size: 64px;
    letter-spacing: -3px;
  }
}
@media (max-width: 640px) {
  .game-shell {
    padding-bottom: 150px;
  }
  .game-header {
    position: sticky;
    height: 64px;
    padding: 0 14px;
  }
  .investigation {
    width: calc(100% - 20px);
    padding-top: 10px;
  }
  .chapter-bar {
    height: 44px;
    margin-bottom: 8px;
    padding: 0 12px;
  }
  .chapter-bar > span:last-child {
    display: none;
  }
  .material-tabs {
    border-radius: 13px;
    margin-bottom: 10px;
  }
  .material-tabs button {
    min-height: 34px;
    padding: 7px 11px !important;
  }
  .material-page,
  .board-page,
  .notes-page,
  .team-page {
    padding: 22px 17px;
    border-radius: 15px;
  }
  .case-cover {
    min-height: 440px;
    border-radius: 15px;
  }
  .case-cover > section {
    padding: 28px 22px;
  }
  .case-cover h1 {
    font-size: 44px;
    letter-spacing: -1.8px;
  }
  .case-cover p {
    font-size: 13px;
  }
  .rail {
    left: 10px;
    right: 10px;
    bottom: 8px;
    transform: none;
    width: auto;
    justify-content: center;
    border-radius: 19px;
  }
  .rail button {
    width: auto;
    flex: 1;
    display: flex;
    flex-direction: column;
    justify-content: center;
    gap: 3px;
    min-height: 54px;
    padding: 6px;
  }
  .rail button > span {
    font-size: 8px;
  }
  .rail button > svg {
    width: 18px;
  }
  .rail small {
    display: none;
  }
  .rail .rail-help {
    flex: 0 0 42px;
  }
  .mobile-phone-button,
  .floating-board-button,
  .floating-notes-button {
    bottom: 72px !important;
    height: 48px !important;
    width: calc((100vw - 32px) / 3) !important;
    border-radius: 15px !important;
    padding: 7px !important;
    display: flex !important;
    align-items: center !important;
    justify-content: center !important;
  }
  .floating-board-button {
    left: 8px !important;
  }
  .floating-notes-button {
    left: calc(16px + (100vw - 32px) / 3) !important;
  }
  .mobile-phone-button {
    right: 8px !important;
  }
  .mini-board,
  .mini-notebook,
  .floating-board-button small,
  .floating-notes-button small,
  .floating-board-button > b,
  .floating-notes-button > b {
    display: none;
  }
  .entry {
    display: flex;
    flex-direction: column;
  }
  .entry-scene {
    min-height: 380px;
    max-height: 430px;
  }
  .entry-story {
    padding: 40px 24px 30px;
  }
  .entry-story h1 {
    font-size: 57px;
  }
  .entry-form {
    min-height: calc(100svh - 380px);
    border: 0;
    border-top: 1px solid #ffffff12;
    padding: 24px;
  }
  .entry-content {
    padding: 30px 0;
  }
  .entry-content h2 {
    font-size: 38px;
  }
  .toast {
    bottom: 134px;
  }
}

/* v36 — complete evidence-room visual system. Mechanics stay unchanged. */
:root {
  --case-ink: #e9e1d3;
  --case-muted: #9e9a90;
  --case-green: #657b70;
  --case-green-bright: #9db5a5;
  --case-red: #8f2639;
  --case-brass: #b29464;
  --case-black: #070908;
  --case-panel: #101411;
  --case-panel-2: #171b17;
  --case-line: #ffffff18;
}
body {
  background: #070908;
  color: var(--case-ink);
}
.game-shell {
  background:
    radial-gradient(circle at 14% 8%, #25322966, transparent 31%),
    radial-gradient(circle at 83% 22%, #5a392533, transparent 28%),
    linear-gradient(125deg, #080b09 0%, #10130f 48%, #070908 100%);
  font-family: Inter, system-ui, sans-serif;
}
.game-shell:before {
  background-image:
    linear-gradient(#ffffff02 1px, transparent 1px),
    linear-gradient(90deg, #ffffff02 1px, transparent 1px);
  background-size: 36px 36px;
  opacity: 0.7;
}
.game-header {
  background: #080b09ec;
  border-color: #b2946430;
  box-shadow: 0 15px 45px #0008;
}
.chapter-bar {
  border: 0;
  border-left: 3px solid var(--case-red);
  border-radius: 2px;
  background: #101410e8;
  box-shadow: 0 8px 24px #0006;
}
.chapter-bar b {
  font-family: Georgia, serif;
  letter-spacing: 0.3px;
}
.material-tabs {
  position: sticky;
  top: 83px;
  z-index: 24;
  border-radius: 3px;
  border-color: #b294642b;
  background: #0a0d0bec;
  padding: 6px;
  box-shadow: 0 18px 45px #0008;
}
.material-tabs button {
  border-radius: 2px !important;
  border-right: 1px solid #ffffff0b !important;
  letter-spacing: 0.5px;
}
.material-tabs button.active {
  background: #667c7040 !important;
  border-color: #9db5a55a !important;
  color: #edf1eb !important;
  box-shadow: inset 0 -2px #9db5a5;
}
.material-page,
.board-page,
.notes-page,
.team-page {
  position: relative;
  border-radius: 3px;
  border: 1px solid #b2946430;
  background: linear-gradient(145deg, #161a16f7, #0d100ef9);
  box-shadow:
    0 30px 90px #000b,
    0 0 0 1px #000 inset;
}
.material-page:before,
.board-page:before,
.notes-page:before,
.team-page:before {
  content: "";
  position: absolute;
  inset: 0;
  pointer-events: none;
  background:
    linear-gradient(115deg, #ffffff05, transparent 22%, transparent 78%, #0002),
    repeating-linear-gradient(0deg, #fff0 0 3px, #ffffff01 4px);
  mix-blend-mode: screen;
}
.material-page > * {
  position: relative;
}
.material-page > h2,
.section-heading h2,
.ending-title {
  font-family: Georgia, "Times New Roman", serif;
  color: #f1e8da;
  font-weight: 500;
  letter-spacing: -1.2px;
}
.dim,
.source-note {
  color: #aaa79d;
}
.eyebrow {
  color: var(--case-brass);
  letter-spacing: 2.2px;
}
.btn {
  border-radius: 3px;
  font-weight: 750;
  letter-spacing: 0.35px;
}
.btn.primary {
  background: var(--case-red);
  border-color: #b94358;
  box-shadow: 0 10px 25px #4d111d66;
}
.btn.primary:hover:not(:disabled) {
  background: #a92d43;
}
.btn.ghost,
.btn.compact {
  background: #131713;
  border-color: #b2946435;
  color: #e5dccd;
}
.btn.success {
  background: #445f50;
  border-color: #769583;
  color: #edf5ef;
}
.paper,
.letter-paper,
.file-paper {
  background: linear-gradient(145deg, #171c18, #0d110e) !important;
  color: var(--case-ink) !important;
  border: 1px solid #b2946438 !important;
  box-shadow: 0 24px 70px #000a !important;
}
.paper h1,
.paper h2,
.paper h3,
.paper h4,
.paper p,
.paper .dim,
.paper-intro,
.paper strong {
  color: var(--case-ink) !important;
}
.paper .receipt,
.paper .file-note,
.paper .file-timeline > div,
.paper .paper-depth > div {
  background: #0a0e0b !important;
  border-color: #ffffff16 !important;
  color: #d8d2c6 !important;
}
.folder-tab {
  background: #6e2635 !important;
  color: #f4e8dc !important;
}
.paper .provenance {
  color: #9d998f !important;
}
.paper .paper-btn {
  background: #24342b !important;
  border-color: #789181 !important;
  color: #f1eee6 !important;
}
.chapter-brief article,
.investigation-desk article,
.case-depth > div,
.quick-grid > button,
.profile-card,
.registry-list article,
.story-variant,
.next-prompt,
.soft-tip,
.geo-context,
.ending-truth,
.next-chapter,
.discussion-card {
  border-radius: 2px !important;
  background: linear-gradient(145deg, #171c18, #101310) !important;
  border-color: #b2946430 !important;
  color: var(--case-ink) !important;
}
.chapter-brief article:before,
.case-depth > div:before {
  background: var(--case-red) !important;
}
.chapter-brief p,
.investigation-desk p,
.case-depth p,
.quick-grid p,
.profile-card p,
.registry-list p,
.story-variant p,
.next-prompt p,
.soft-tip p,
.ending-truth p,
.next-chapter p {
  color: #aaa79d !important;
}
.chapter-intro-hero {
  min-height: 480px;
  border-radius: 2px;
  border: 1px solid #b2946430;
  background: #090b09;
  overflow: hidden;
}
.chapter-intro-hero:after {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(
    90deg,
    #090c0af5 0%,
    #0b0e0cd9 45%,
    #0b0e0c33 78%,
    #0004
  );
  pointer-events: none;
}
.chapter-intro-hero img {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  filter: saturate(0.7) contrast(1.1) brightness(0.63);
}
.chapter-intro-hero > div {
  position: relative;
  z-index: 2;
  width: min(620px, 64%);
  padding: clamp(28px, 5vw, 66px);
}
.chapter-intro-hero h2 {
  font:
    500 clamp(38px, 5vw, 68px)/0.98 Georgia,
    serif;
  color: #f1e8da;
  margin: 20px 0;
}
.chapter-intro-hero p {
  color: #cbc4b8;
  line-height: 1.75;
}
.future-chapters article,
.late-step-map article {
  border-radius: 2px;
  background: #0d110e;
  border-color: #b2946430;
}
.future-chapters img {
  filter: saturate(0.72) brightness(0.65);
}
.dossier-page {
  padding: 0 !important;
  overflow: hidden;
}
.dossier-page > .section-heading,
.dossier-page > .dim,
.dossier-time {
  margin-left: clamp(22px, 3vw, 42px);
  margin-right: clamp(22px, 3vw, 42px);
}
.dossier-page > .section-heading {
  padding-top: clamp(24px, 3vw, 42px);
}
.dossier-time {
  background: #111612;
  border: 1px solid #b2946430;
  border-radius: 2px;
}
.dossier-layout {
  border-top: 1px solid #b2946430;
  background: #090c0a;
}
.dossier-index {
  background: #0b0e0c;
  border-right-color: #b2946430;
  padding: 12px;
}
.dossier-index button {
  border-radius: 1px;
  background: #101410;
  border-color: #ffffff10;
}
.dossier-index button:hover:not(:disabled) {
  background: #192019;
}
.dossier-index button.active {
  background: #263229;
  border-color: #9db5a55c;
  box-shadow: inset 3px 0 var(--case-red);
}
.dossier-index button b {
  color: #e6ded1;
}
.dossier-document {
  border-radius: 0;
  background: linear-gradient(145deg, #171c18, #0d110e);
  border: 0;
  color: var(--case-ink);
}
.dossier-document h3 {
  font-family: Georgia, serif;
  color: #f1e8da;
}
.dossier-meta p,
.dossier-readable,
.dossier-records,
.dossier-brief-grid > div,
.dossier-questions {
  background: #0b0f0c !important;
  border-color: #ffffff16 !important;
  border-radius: 2px !important;
}
.dossier-readable p,
.dossier-records div,
.dossier-brief-grid p,
.dossier-questions p {
  color: #d3cdc2 !important;
}
.dossier-records div {
  grid-template-columns: minmax(105px, 0.7fr) minmax(120px, 0.9fr) 1.4fr;
}
.dossier-records code {
  color: #a6c3ae;
}
.dossier-brief-grid h4,
.dossier-questions h4,
.dossier-readable h4,
.dossier-records h4 {
  color: #d1b47f;
}
.dm-window,
.forum-archive,
.archive-terminal,
.terminal-ledger,
.trace-table,
.log-table,
.registry-log,
.late-records {
  border-radius: 2px !important;
  background: #080b09 !important;
  border: 1px solid #b2946430 !important;
}
.bubble,
.forum-archive article,
.archive-terminal > div,
.terminal-ledger > div,
.trace-table > div,
.log-table > div,
.late-records > div {
  background: #111512 !important;
  border-color: #ffffff12 !important;
  color: #ddd6ca !important;
}
.bubble.own {
  background: #263028 !important;
}
.bubble p,
.forum-archive p,
.terminal-ledger p {
  color: #c3bdb2 !important;
}
.identity-rebuild,
.identity-layout,
.geo-layout,
.split-evidence,
.dark-evidence {
  background: #0a0d0b !important;
  border: 1px solid #b2946430 !important;
  border-radius: 2px !important;
}
.rebuilt-card,
.identity-form,
.identity-fields,
.geo-notes {
  background: #111612 !important;
  border-color: #ffffff16 !important;
  color: #e8dfd2 !important;
}
.identity-form input,
.late-answer input,
.osint-form input {
  background: #080b09 !important;
  border: 1px solid #8b7a594f !important;
  color: #f0e8db !important;
  border-radius: 2px !important;
}
.identity-photo img,
.geo-photo img,
.dark-evidence img,
.split-evidence img {
  filter: saturate(0.72) contrast(1.08) brightness(0.75);
}
.statement-list label {
  border-radius: 2px !important;
  background: #101410 !important;
  border-color: #ffffff16 !important;
  color: #d8d1c5 !important;
}
.statement-list label:hover {
  background: #171d18 !important;
  border-color: #b2946450 !important;
}
.statement-list label.chosen {
  background: #25342a !important;
  border-color: #8eaa98 !important;
  color: #f2ede4 !important;
}
.late-step-map {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 10px;
  margin-top: 18px;
}
.late-step-map article {
  display: grid;
  grid-template-columns: auto 1fr auto;
  gap: 12px;
  align-items: center;
  padding: 15px;
}
.late-step-map article > span {
  font:
    700 11px ui-monospace,
    monospace;
  color: var(--case-brass);
}
.late-step-map h3 {
  font:
    500 17px Georgia,
    serif;
  margin: 0 0 4px;
}
.late-step-map p {
  margin: 0;
  color: #8e8c84;
  font-size: 11px;
}
.late-step-map article.done {
  border-color: #7f9b8955;
  background: #1b271f;
}
.late-records {
  margin: 22px 0;
  overflow: hidden;
}
.late-records > div {
  display: grid;
  grid-template-columns: minmax(110px, 0.8fr) minmax(160px, 1fr) 1.4fr;
  gap: 14px;
  padding: 14px 16px;
  border-bottom: 1px solid #ffffff10;
}
.late-records > div:last-child {
  border-bottom: 0;
}
.late-records code {
  color: #a8c4b0;
}
.late-records b {
  color: #efe6d8;
}
.late-records span {
  color: #aaa69d;
}
.late-answer {
  border: 1px solid #b2946430;
  background: #0b0f0c;
  padding: 20px;
}
.late-answer label {
  display: block;
  font:
    500 18px/1.4 Georgia,
    serif;
  color: #e9e1d3;
  margin-bottom: 13px;
}
.late-answer > div {
  display: flex;
  gap: 10px;
}
.late-answer input {
  flex: 1;
  min-height: 48px;
  padding: 0 14px;
}
.late-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  margin-top: 14px;
}
.board-drawer-shell.workspace-tool {
  background: #090c0a;
  border: 1px solid #b2946445;
  border-radius: 3px;
  min-width: 360px;
}
.board-window-bar {
  background: #111612 !important;
  border-bottom: 1px solid #b2946430 !important;
}
.board-window-content {
  background: #080b09;
}
.board-page.evidence-board {
  background: #0b0e0c;
  border-color: #b2946430;
}
.board-toolbar {
  align-items: center;
}
.board-zoom {
  display: inline-flex;
  align-items: center;
  border: 1px solid #b294643b;
  background: #090c0a;
  height: 40px;
}
.board-zoom button {
  height: 100%;
  min-width: 38px;
  padding: 0 10px;
  border: 0;
  border-right: 1px solid #ffffff12;
  background: transparent;
  color: #e6dece;
  cursor: pointer;
}
.board-zoom button:last-child {
  border-right: 0;
  border-left: 1px solid #ffffff12;
  font-size: 10px;
}
.board-zoom button:hover {
  background: #ffffff09;
}
.board-zoom span {
  min-width: 58px;
  text-align: center;
  font:
    700 10px ui-monospace,
    monospace;
  color: #cdb17d;
}
.board-canvas-scroll {
  width: 100%;
  height: min(66vh, 720px);
  overflow: auto;
  overscroll-behavior: contain;
  border: 1px solid #b2946435;
  background:
    radial-gradient(circle at 50% 40%, #26332955, transparent 52%), #090c0a;
  box-shadow: inset 0 0 80px #0009;
  scrollbar-color: #6b5b3e #080a08;
}
.board-zoom-stage {
  position: relative;
  min-width: 100%;
  min-height: 100%;
}
.case-board.evidence-only-board {
  position: absolute !important;
  left: 0;
  top: 0;
  transform-origin: 0 0 !important;
  min-height: 0 !important;
  max-height: none !important;
  background-color: #20281f !important;
  background-image:
    radial-gradient(#c6b68a20 1px, transparent 1px),
    linear-gradient(110deg, #0002, transparent 40%, #0002) !important;
  background-size:
    22px 22px,
    100% 100% !important;
  border: 8px solid #3a2d20 !important;
  border-radius: 2px !important;
  box-shadow:
    inset 0 0 120px #0009,
    0 20px 55px #0009 !important;
  overflow: hidden;
}
.board-card {
  width: 210px !important;
  min-height: 142px !important;
  border-radius: 1px !important;
  background: #d9d1bd !important;
  color: #22231f !important;
  border: 0 !important;
  box-shadow: 0 12px 22px #0008 !important;
  transform: translate(-50%, -50%) rotate(-0.6deg) !important;
}
.board-card:nth-of-type(3n) {
  transform: translate(-50%, -50%) rotate(0.7deg) !important;
}
.board-card h3,
.board-card p,
.board-card small {
  color: #262823 !important;
}
.board-card .evidence-kind {
  color: #712838 !important;
}
.board-card .thread-button {
  background: #242922 !important;
  color: #efe8dc !important;
}
.board-main-card {
  background: #222923 !important;
  color: #eee5d7 !important;
  border: 1px solid #b2946455 !important;
  border-radius: 1px !important;
}
.board-strings line {
  stroke: #8f2639 !important;
  stroke-width: 0.32 !important;
  filter: drop-shadow(0 1px 1px #000);
}
.phone-panel.workspace-tool,
.floating-notes-panel.workspace-tool {
  border-radius: 24px !important;
  border-color: #b2946435 !important;
  background: #080a09 !important;
}
.floating-notes-panel.workspace-tool {
  border-radius: 3px !important;
}
.phone-title,
.floating-notes-head {
  background: #101410 !important;
  border-color: #b2946430 !important;
}
.phone-lock,
.phone-home-wallpaper {
  background:
    linear-gradient(180deg, #17231caa, #050706e8),
    url("/media/north-exit.jpg") center/cover !important;
}
.phone-panel button,
.floating-notes-panel button {
  color: inherit;
}
.phone-messages,
.messages,
.phone-calls {
  background: #080b09 !important;
}
.phone-tabs {
  background: #0d110e !important;
}
.phone-tabs button.active {
  background: #26332a !important;
}
.phone-note {
  color: #9e9a90 !important;
}
.floating-notes-panel textarea {
  background: #111612 !important;
  color: #eee6da !important;
}
.rail {
  border-radius: 3px;
  background: #090c0aee;
  border-color: #b2946438;
}
.rail button {
  border-radius: 2px;
}
.rail button.active {
  background: #263229;
  color: #e9d6b2;
}
.mobile-phone-button,
.floating-board-button,
.floating-notes-button {
  border-radius: 3px !important;
  background: #0c100dee !important;
  border-color: #b294643d !important;
}
.toast {
  background: #182019;
  color: #ede4d6;
  border-radius: 2px;
}
@media (max-width: 950px) {
  .material-tabs {
    top: 72px;
  }
  .chapter-intro-hero > div {
    width: min(720px, 78%);
  }
  .late-step-map {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .board-canvas-scroll {
    height: 62vh;
  }
  .dossier-records div,
  .late-records > div {
    grid-template-columns: 1fr 1fr;
  }
  .dossier-records div span,
  .late-records > div span {
    grid-column: 1/-1;
  }
}
@media (max-width: 640px) {
  .material-tabs {
    top: 68px;
  }
  .chapter-intro-hero {
    min-height: 520px;
  }
  .chapter-intro-hero:after {
    background: linear-gradient(
      0deg,
      #080b09f8 0%,
      #080b09df 55%,
      #080b092e 100%
    );
  }
  .chapter-intro-hero > div {
    width: 100%;
    padding: 245px 20px 24px;
  }
  .chapter-intro-hero h2 {
    font-size: 38px;
  }
  .late-step-map {
    grid-template-columns: 1fr;
  }
  .late-answer > div {
    display: grid;
  }
  .late-records > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .board-toolbar {
    display: flex !important;
    gap: 8px;
  }
  .board-zoom {
    order: -1;
    width: 100%;
    justify-content: center;
  }
  .board-zoom button:last-child {
    flex: 1;
  }
  .board-canvas-scroll {
    height: 58vh;
  }
  .dossier-page > .section-heading,
  .dossier-page > .dim,
  .dossier-time {
    margin-left: 17px;
    margin-right: 17px;
  }
  .dossier-page > .section-heading {
    padding-top: 22px;
  }
}

/* v37 — late chapters require reading the files before answering. */
.late-source-package {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
  margin: 22px 0;
}
.late-source-package button {
  border: 1px solid #b2946430;
  background: linear-gradient(145deg, #171c18, #0b0f0c);
  padding: 20px;
  min-height: 142px;
  box-shadow: inset 3px 0 #8f2639;
  text-align: left;
  cursor: pointer;
  color: inherit;
}
.late-source-package button:hover {
  border-color: #d1b47f75;
  background: linear-gradient(145deg, #1d251f, #0e1410);
  transform: translateY(-2px);
}
.late-source-package span {
  font:
    700 9px ui-monospace,
    monospace;
  color: #b29464;
  letter-spacing: 1.5px;
}
.late-source-package h3 {
  margin: 12px 0 8px;
  color: #eee5d8;
  font:
    500 21px Georgia,
    serif;
}
.late-source-package p {
  color: #aaa69d;
  font-size: 12px;
  line-height: 1.65;
}
.late-source-package small {
  display: block;
  margin-top: 14px;
  color: #cdb17d;
  font:
    700 9px ui-monospace,
    monospace;
  letter-spacing: 0.7px;
  text-transform: uppercase;
}
@media (max-width: 640px) {
  .late-source-package {
    grid-template-columns: 1fr;
  }
}

/* v38 — reliable, movable iPhone window and clearer controls. */
.phone-panel.workspace-tool {
  position: fixed !important;
  right: auto !important;
  bottom: auto !important;
  margin: 0 !important;
  display: none !important;
  min-width: 280px !important;
  min-height: 390px !important;
  max-width: calc(100vw - 16px) !important;
  max-height: calc(100svh - 16px) !important;
  border: 9px solid #020302 !important;
  border-radius: 48px !important;
  background: #030504 !important;
  overflow: hidden !important;
  box-shadow:
    0 34px 110px #000e,
    0 0 0 1px #c6a57524 !important;
}
.phone-panel.workspace-tool.phone-open {
  display: flex !important;
}
.phone-panel.workspace-tool:before {
  inset: 5px;
  border-radius: 39px;
  box-shadow:
    inset 0 0 0 1px #ffffff20,
    inset 0 16px 45px #ffffff08;
}
.phone-panel.workspace-tool .phone-status {
  height: 43px;
  padding: 15px 25px 5px;
  background: #030504;
  color: #f5f4ee;
}
.phone-panel.workspace-tool .phone-pill {
  top: 8px;
  width: 94px;
  height: 27px;
  background: #000;
  border: 1px solid #ffffff0d;
}
.phone-panel.workspace-tool .phone-title {
  min-height: 58px;
  padding: 8px 13px 10px;
  background: linear-gradient(180deg, #101510, #090c09);
  border-top: 1px solid #ffffff08;
  border-bottom: 1px solid #b2946426;
  cursor: grab;
}
.phone-panel.workspace-tool .phone-title:active {
  cursor: grabbing;
}
.phone-panel.workspace-tool .phone-title small {
  font:
    700 7px ui-monospace,
    monospace;
  letter-spacing: 1.2px;
  color: #958c7d;
}
.phone-panel.workspace-tool .phone-title h3 {
  font:
    750 19px/1.2 -apple-system,
    BlinkMacSystemFont,
    "Segoe UI",
    sans-serif;
  color: #f3eee5;
}
.phone-panel.workspace-tool .phone-window-actions {
  display: flex;
  gap: 5px;
  margin-left: auto;
}
.phone-panel.workspace-tool .phone-window-actions > button {
  display: grid !important;
  place-items: center;
  min-width: 31px !important;
  width: 31px;
  height: 31px !important;
  padding: 0 !important;
  border: 1px solid #ffffff18 !important;
  border-radius: 50% !important;
  background: #171c17 !important;
  color: #d7c8ae !important;
  font-size: 16px !important;
}
.phone-panel.workspace-tool .phone-window-actions > button:hover {
  background: #263029 !important;
  border-color: #b2946455 !important;
  color: #fff !important;
}
.phone-panel.workspace-tool .phone-window-actions > .mobile-close {
  background: #5b1b27 !important;
  border-color: #b9435866 !important;
  color: #fff !important;
}
.phone-panel.workspace-tool .phone-window-actions > .mobile-close:hover {
  background: #8f2639 !important;
}
.phone-panel.workspace-tool .phone-lock {
  background:
    radial-gradient(circle at 72% 16%, #a98b5947, transparent 26%),
    linear-gradient(180deg, #14201940 0%, #06080655 45%, #020302f2 100%),
    url("/media/cover.jpg") center/cover !important;
}
.phone-panel.workspace-tool .lock-alert {
  border-radius: 18px;
  background: #151b17d9;
  border-color: #ffffff22;
  box-shadow: 0 12px 35px #0007;
}
.phone-panel.workspace-tool .pin-pad button {
  background: #ffffff15;
  border-color: #ffffff24;
  box-shadow: inset 0 1px #ffffff12;
}
.phone-panel.workspace-tool .pin-pad button:hover {
  background: #ffffff28;
}
.phone-panel.workspace-tool .phone-home-wallpaper {
  background:
    radial-gradient(circle at 70% 12%, #b2946438, transparent 25%),
    linear-gradient(180deg, #101a1450, #020302e8),
    url("/media/cover.jpg") center/cover !important;
  border-color: #b2946433;
}
.phone-panel.workspace-tool .iphone-nav {
  background: #090c09;
  border-bottom: 1px solid #ffffff0d;
  padding: 9px 16px;
}
.phone-panel.workspace-tool .iphone-nav button {
  color: #d1b47f;
}
.phone-panel.workspace-tool .messages {
  border-radius: 0;
  margin: 0;
  background: linear-gradient(180deg, #080b09, #0c110d) !important;
}
.phone-panel.workspace-tool .phone-bottom {
  min-height: 37px;
  background: #030504 !important;
  color: #8f8a80 !important;
}
.phone-dock-button.open {
  border-color: #b2946470 !important;
  background: #1b241e !important;
  color: #f1e8da !important;
}
@media (max-width: 640px) {
  .phone-panel.workspace-tool {
    min-width: 260px !important;
    border-width: 7px !important;
    border-radius: 40px !important;
  }
  .phone-panel.workspace-tool .phone-window-actions > button {
    min-width: 29px !important;
    width: 29px;
    height: 29px !important;
  }
  .phone-panel.workspace-tool .phone-title h3 {
    font-size: 17px;
  }
  .phone-panel.workspace-tool .phone-title small {
    font-size: 6px;
  }
}

/* v39 — in-site case file reader. */
.case-file-window.workspace-tool {
  position: fixed;
  display: flex;
  flex-direction: column;
  min-width: 320px;
  min-height: 360px;
  max-width: calc(100vw - 16px);
  max-height: calc(100svh - 16px);
  overflow: hidden;
  background: #090c0a;
  border: 1px solid #b2946455;
  border-radius: 5px;
  box-shadow:
    0 38px 110px #000e,
    0 0 0 1px #ffffff08;
  color: #e9e2d6;
}
.case-file-window-bar {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 58px;
  padding: 8px 10px;
  background: linear-gradient(180deg, #171c18, #101410);
  border-bottom: 1px solid #b2946435;
  cursor: grab;
  flex-shrink: 0;
}
.case-file-window-bar:active {
  cursor: grabbing;
}
.case-file-appmark {
  width: 36px;
  height: 36px;
  display: grid;
  place-items: center;
  background: #8f2639;
  color: #fff;
  border-radius: 3px;
  flex-shrink: 0;
}
.case-file-window-bar > div:nth-child(2) {
  min-width: 0;
  margin-right: auto;
}
.case-file-window-bar span {
  display: block;
  color: #9b9488;
  font:
    700 8px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.case-file-window-bar b {
  display: block;
  margin-top: 3px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  color: #f0e8dc;
  font-size: 13px;
}
.case-file-window-bar .tool-window-actions {
  display: flex;
  gap: 4px;
}
.case-file-window-bar .tool-window-actions button {
  display: grid;
  place-items: center;
  min-width: 34px;
  height: 34px;
  padding: 0;
  border: 1px solid #ffffff15;
  background: #1c221d;
  color: #ddd4c5;
  cursor: pointer;
}
.case-file-window-bar .tool-window-actions button:hover {
  background: #293229;
}
.case-file-window-bar .tool-window-actions .case-file-close {
  background: #5b1b27;
  color: #fff;
  border-color: #b9435866;
}
.case-file-loading {
  flex: 1;
  display: grid;
  place-content: center;
  justify-items: center;
  gap: 12px;
  padding: 30px;
  text-align: center;
  background: radial-gradient(circle at 50% 42%, #27332a, #080b09 58%);
}
.case-file-loading svg {
  color: #cdb17d;
  animation: spin 1s linear infinite;
}
.case-file-loading b {
  font:
    500 20px Georgia,
    serif;
}
.case-file-loading span {
  max-width: 560px;
  color: #928e85;
  font:
    10px ui-monospace,
    monospace;
  word-break: break-word;
}
.case-file-shell {
  display: grid;
  grid-template-columns: 245px minmax(0, 1fr);
  min-height: 0;
  flex: 1;
}
.case-file-sidebar {
  overflow: auto;
  padding: 12px;
  background: #0c100d;
  border-right: 1px solid #b2946428;
}
.case-file-sidebar > span {
  display: block;
  margin: 4px 7px 12px;
  color: #8f887c;
  font:
    700 8px ui-monospace,
    monospace;
  letter-spacing: 1.2px;
}
.case-file-sidebar button {
  width: 100%;
  display: flex;
  align-items: flex-start;
  gap: 9px;
  margin: 0 0 6px;
  padding: 10px;
  border: 1px solid transparent;
  background: transparent;
  color: #bcb5a9;
  text-align: left;
  cursor: pointer;
}
.case-file-sidebar button:hover {
  background: #141a15;
}
.case-file-sidebar button.active {
  background: #222b24;
  border-color: #b2946445;
  box-shadow: inset 3px 0 #8f2639;
  color: #f1e9dc;
}
.case-file-sidebar button > svg {
  margin-top: 2px;
  flex-shrink: 0;
}
.case-file-sidebar button > span {
  min-width: 0;
}
.case-file-sidebar b,
.case-file-sidebar small {
  display: block;
}
.case-file-sidebar b {
  font:
    700 10px ui-monospace,
    monospace;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-file-sidebar small {
  margin-top: 4px;
  color: #8e8a82;
  font-size: 9px;
  line-height: 1.35;
}
.case-file-reader {
  min-width: 0;
  min-height: 0;
  display: flex;
  flex-direction: column;
  background: #111512;
}
.case-file-path {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 15px;
  border-bottom: 1px solid #ffffff0d;
  background: #0a0d0b;
  color: #8d897f;
  font:
    9px ui-monospace,
    monospace;
}
.case-file-path span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.case-file-path i {
  color: #ad9568;
  font-style: normal;
  white-space: nowrap;
}
.case-file-pages {
  display: flex;
  gap: 1px;
  padding: 9px 12px 0;
  border-bottom: 1px solid #b294642d;
  background: #101410;
}
.case-file-pages button {
  padding: 9px 13px;
  border: 0;
  border-bottom: 2px solid transparent;
  background: transparent;
  color: #908b82;
  font:
    700 9px ui-monospace,
    monospace;
  cursor: pointer;
}
.case-file-pages button.active {
  color: #ebdfcb;
  border-bottom-color: #8f2639;
  background: #171c18;
}
.case-file-sheet {
  position: relative;
  flex: 1;
  overflow: auto;
  padding: clamp(22px, 4vw, 46px);
  background: linear-gradient(135deg, #181d19, #0e120f);
  scrollbar-color: #6b5b3e #0a0d0b;
}
.case-file-sheet h2 {
  max-width: 720px;
  margin: 12px 0 8px;
  color: #f1e9dc;
  font:
    400 clamp(28px, 4vw, 43px)/1.04 Georgia,
    serif;
}
.case-file-subtitle {
  max-width: 700px;
  color: #c3a874;
  font-size: 14px;
  line-height: 1.55;
}
.case-file-stamp {
  position: absolute;
  right: 28px;
  top: 27px;
  padding: 7px 9px;
  border: 2px solid #7b2737;
  color: #ad5262;
  font:
    800 10px ui-monospace,
    monospace;
  transform: rotate(4deg);
  opacity: 0.75;
}
.case-file-objective {
  max-width: 760px;
  margin: 28px 0 20px;
  padding: 15px 17px;
  border-left: 3px solid #8f2639;
  background: #090c0a;
}
.case-file-objective span {
  color: #a89064;
  font:
    700 8px ui-monospace,
    monospace;
  letter-spacing: 1px;
}
.case-file-objective p {
  margin-top: 7px;
  color: #d8d0c4;
  font-size: 13px;
  line-height: 1.6;
}
.case-file-visual {
  max-width: 820px;
  margin: 18px 0 26px;
  border: 1px solid #b2946445;
  background: #050806;
  box-shadow: 0 18px 42px #0008;
}
.case-file-visual button {
  position: relative;
  display: block;
  width: 100%;
  padding: 0;
  border: 0;
  background: #050806;
  cursor: zoom-in;
}
.case-file-visual img {
  display: block;
  width: 100%;
  max-height: 410px;
  object-fit: cover;
  filter: saturate(0.82) contrast(1.07) brightness(0.78);
}
.case-file-visual button span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  padding: 7px 10px;
  color: #f1e9dc;
  background: #070a08d9;
  border: 1px solid #ffffff24;
  font: 700 10px ui-monospace, monospace;
}
.case-file-visual figcaption {
  padding: 12px 14px;
  color: #c8bca9;
  font-size: 12px;
  line-height: 1.55;
}
.case-file-prose {
  max-width: 800px;
}
.case-file-prose > p {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 12px;
  margin: 0;
  padding: 13px 0;
  border-bottom: 1px dashed #ffffff12;
  color: #d7d0c5;
  font-size: 13px;
  line-height: 1.65;
}
.case-file-prose > p > span {
  color: #8f7960;
  font:
    10px ui-monospace,
    monospace;
  padding-top: 4px;
}
.case-file-raw {
  max-width: 900px;
  margin-top: 30px;
  border: 1px solid #ffffff14;
  background: #060907;
  font-family: ui-monospace, SFMono-Regular, Menlo, monospace;
}
.case-file-raw > div {
  display: grid;
  grid-template-columns: minmax(115px, 0.8fr) minmax(120px, 0.9fr) 1.8fr;
  gap: 12px;
  padding: 12px 14px;
  border-bottom: 1px solid #ffffff0e;
  align-items: start;
}
.case-file-raw > div:last-child {
  border-bottom: 0;
}
.case-file-raw-head {
  background: #202720;
  color: #9d968b;
  text-transform: uppercase;
  font-size: 8px;
  letter-spacing: 1px;
}
.case-file-raw code {
  color: #a6c3ae;
  font-size: 11px;
}
.case-file-raw b {
  color: #efe7da;
  font-size: 11px;
}
.case-file-raw span {
  color: #b0aaa0;
  font-size: 11px;
  line-height: 1.5;
}
.case-file-questions {
  max-width: 760px;
  margin-top: 28px;
}
.case-file-questions > p {
  margin-bottom: 20px;
  padding: 14px;
  border: 1px solid #b2946433;
  background: #b294640d;
  color: #c2b8a8;
  font-size: 12px;
  line-height: 1.6;
}
.case-file-questions > div {
  display: grid;
  grid-template-columns: 34px 1fr;
  gap: 13px;
  padding: 15px 0;
  border-bottom: 1px solid #ffffff12;
}
.case-file-questions > div > span {
  width: 27px;
  height: 27px;
  display: grid;
  place-items: center;
  background: #8f2639;
  color: white;
  font:
    800 10px ui-monospace,
    monospace;
}
.case-file-questions > div > p {
  color: #e1d9cd;
  font-size: 14px;
  line-height: 1.55;
}
.case-file-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 9px 13px;
  border-top: 1px solid #b2946428;
  background: #0b0e0c;
  flex-shrink: 0;
}
.case-file-footer button {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 11px;
  border: 1px solid #b2946435;
  background: #151a16;
  color: #ddd3c3;
  cursor: pointer;
}
.case-file-footer button:disabled {
  opacity: 0.3;
  cursor: default;
}
.case-file-footer span {
  color: #9b9489;
  font:
    10px ui-monospace,
    monospace;
}
@media (max-width: 700px) {
  .case-file-window.workspace-tool {
    min-width: 280px;
  }
  .case-file-shell {
    grid-template-columns: 1fr;
  }
  .case-file-sidebar {
    display: flex;
    gap: 6px;
    overflow: auto;
    border-right: 0;
    border-bottom: 1px solid #b2946428;
    padding: 8px;
  }
  .case-file-sidebar > span {
    display: none;
  }
  .case-file-sidebar button {
    min-width: 175px;
    margin: 0;
  }
  .case-file-path {
    display: none;
  }
  .case-file-pages {
    overflow: auto;
  }
  .case-file-pages button {
    white-space: nowrap;
  }
  .case-file-sheet {
    padding: 22px 18px;
  }
  .case-file-raw > div {
    grid-template-columns: 1fr;
    gap: 5px;
  }
  .case-file-stamp {
    right: 17px;
    top: 17px;
  }
  .case-file-window-bar span {
    display: none;
  }
}

/* v40 — expanded final debrief. */
.ending-congratulations {
  display: grid;
  grid-template-columns: auto 1fr;
  gap: 20px;
  margin: 22px 0;
  padding: clamp(20px, 3vw, 32px);
  border: 1px solid #b2946455;
  background:
    radial-gradient(circle at 8% 10%, #8f263925, transparent 32%),
    linear-gradient(145deg, #182019, #0b0f0c);
  box-shadow:
    inset 4px 0 #8f2639,
    0 22px 55px #0006;
}
.ending-congratulations > svg {
  color: #d1b47f;
  margin-top: 3px;
}
.ending-congratulations span {
  color: #a78f64;
  font:
    800 9px ui-monospace,
    monospace;
  letter-spacing: 1.4px;
}
.ending-congratulations h2 {
  margin: 8px 0 13px;
  color: #f1e9dc;
  font:
    400 clamp(28px, 4vw, 44px) / 1.05 Georgia,
    serif;
}
.ending-congratulations p {
  max-width: 790px;
  margin: 9px 0;
  color: #c7c0b4;
  font-size: 13px;
  line-height: 1.72;
}
.ending-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 18px 0 26px;
}
.ending-stats span {
  display: flex;
  align-items: baseline;
  gap: 9px;
  padding: 15px;
  border: 1px solid #ffffff14;
  background: #0d120e;
  color: #aaa49a;
  font-size: 11px;
}
.ending-stats b {
  color: #d2b57e;
  font:
    400 26px Georgia,
    serif;
}
@media (max-width: 640px) {
  .ending-congratulations {
    grid-template-columns: 1fr;
  }
  .ending-stats {
    grid-template-columns: 1fr;
  }
}

/* v41 — stable investigation tools, five-minute hints and anti-stuck memory gate. */
.attention-brief {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 14px;
  align-items: start;
  margin: 18px 0 22px;
  padding: 18px 19px;
  border: 1px solid #c6a66d52;
  border-left: 4px solid #9b2b40;
  background:
    radial-gradient(circle at 0 0, #9b2b4026, transparent 38%),
    linear-gradient(135deg, #171d18, #0b0f0c);
  box-shadow: 0 16px 42px #0005;
  color: #efe7d9;
}
.attention-brief > svg {
  color: #d0b379;
  margin-top: 2px;
}
.attention-brief b {
  display: block;
  font: 700 clamp(18px, 2vw, 25px) / 1.18 Georgia, serif;
  letter-spacing: -0.25px;
}
.attention-brief p {
  margin-top: 8px;
  color: #bdb7ac;
  font-size: 12px;
  line-height: 1.65;
}
.intro-attention {
  max-width: 680px;
  margin: 20px 0;
}
.case-attention {
  margin-top: 0;
}
.alias-source,
.memory-rescue {
  margin: 18px 0;
  padding: 16px 18px;
  border: 1px solid #b2946442;
  border-left: 4px solid #8f2639;
  background: linear-gradient(145deg, #171d18, #0a0e0b);
  color: #d7d0c4;
}
.alias-source > span,
.memory-rescue > b {
  display: block;
  color: #c9aa74;
  font: 800 9px ui-monospace, monospace;
  letter-spacing: 1.25px;
}
.alias-source > b {
  display: block;
  margin: 7px 0;
  color: #f0e8db;
  font-size: 14px;
}
.alias-source p,
.memory-rescue p {
  color: #bdb6aa;
  font-size: 12px;
  line-height: 1.65;
}
.alias-source code,
.memory-rescue strong {
  color: #f0d39d;
  font-family: ui-monospace, monospace;
}
.phone-dock-button,
.floating-board-button,
.floating-notes-button {
  touch-action: none !important;
  user-select: none;
  cursor: grab !important;
}
.phone-dock-button:active,
.floating-board-button:active,
.floating-notes-button:active {
  cursor: grabbing !important;
}
.phone-panel.workspace-tool {
  flex-direction: column;
  width: auto;
  height: auto;
  resize: none;
  border-width: 8px !important;
  border-radius: 43px !important;
}
.phone-panel.workspace-tool .phone-status,
.phone-panel.workspace-tool .phone-title,
.phone-panel.workspace-tool .iphone-nav,
.phone-panel.workspace-tool .phone-bottom {
  flex: 0 0 auto;
}
.phone-panel.workspace-tool .phone-title {
  min-width: 0;
}
.phone-panel.workspace-tool .phone-title > div:first-child {
  min-width: 0;
  overflow: hidden;
}
.phone-panel.workspace-tool .phone-title h3,
.phone-panel.workspace-tool .phone-title small {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.phone-panel.workspace-tool .phone-lock,
.phone-panel.workspace-tool .phone-messages,
.phone-panel.workspace-tool .phone-calls {
  min-height: 0;
  overflow-y: auto;
  overscroll-behavior: contain;
}
.phone-panel.workspace-tool .phone-lock {
  justify-content: flex-start;
  padding-top: 22px;
}
.phone-panel.workspace-tool .lock-time {
  font-size: clamp(52px, 7.5vh, 68px);
}
.phone-panel.workspace-tool .pin-pad {
  margin-top: auto;
}
@media (max-width: 640px) {
  .attention-brief {
    padding: 15px;
  }
  .attention-brief b {
    font-size: 19px;
  }
  .phone-panel.workspace-tool {
    border-width: 7px !important;
    border-radius: 38px !important;
  }
  .phone-panel.workspace-tool .phone-window-actions > button {
    min-width: 28px !important;
    width: 28px;
    height: 28px !important;
  }
}

/* v39: clearer navigation, movable dossier and visual investigation passes */
.material-tabs {
  gap: 9px;
  padding: 14px 18px 16px;
}
.material-tabs button {
  min-height: 48px;
  padding: 12px 17px;
  font-size: 12px;
  font-weight: 850;
  letter-spacing: 0.02em;
  border: 1px solid #b2946438;
  background: #0c110e;
}
.material-tabs button.active {
  background: #29372d;
  border-color: #d4b16f88;
  color: #f3dfb7;
}
.play-invitation {
  display: grid;
  gap: 9px;
  margin: 16px 0 18px;
}
.play-invitation > div {
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 13px 15px;
  border: 1px solid #b2946435;
  background: #101611;
  border-radius: 8px;
}
.play-invitation svg {
  flex: 0 0 auto;
  color: #d4b16f;
}
.play-invitation p {
  margin: 0;
  color: #bfc9c1;
  font-size: 12px;
  line-height: 1.55;
}
.play-invitation b {
  color: #f1e5d0;
}

.floating-dossier-button {
  position: fixed;
  z-index: 44;
  width: 164px;
  min-height: 112px;
  padding: 12px;
  display: grid;
  gap: 5px;
  justify-items: start;
  color: #eee6da;
  border: 1px solid #b294643d;
  border-radius: 3px;
  background: #0c100dee;
  box-shadow: 0 14px 34px #0009;
  cursor: grab;
  touch-action: none;
}
.floating-dossier-button:active {
  cursor: grabbing;
}
.floating-dossier-button:hover {
  border-color: #d4b16f8c;
  transform: translateY(-2px);
}
.floating-dossier-button b {
  font-size: 13px;
}
.floating-dossier-button small {
  color: #9eaa9f;
  font-size: 9px;
  text-align: left;
}
.mini-dossier {
  display: flex;
  align-items: center;
  gap: 9px;
  color: #d4b16f;
}
.mini-dossier i {
  min-width: 24px;
  height: 24px;
  padding: 0 6px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  color: #10120e;
  background: #d4b16f;
  font: 800 9px ui-monospace, monospace;
}
.floating-dossier-panel.workspace-tool {
  position: fixed;
  right: auto;
  bottom: auto !important;
  overflow: hidden;
  display: flex;
  flex-direction: column;
  border: 1px solid #b2946452;
  border-radius: 5px;
  background: #080b09;
  box-shadow: 0 24px 90px #000d;
  isolation: isolate;
}
.floating-dossier-head {
  min-height: 58px;
  padding: 10px 13px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-bottom: 1px solid #b2946430;
  background: #101410;
  cursor: move;
  touch-action: none;
}
.floating-dossier-head > div:first-child {
  min-width: 0;
  display: grid;
}
.floating-dossier-head span {
  color: #9a9f96;
  font: 8px ui-monospace, monospace;
  letter-spacing: 0.1em;
}
.floating-dossier-head b {
  color: #f0e3ce;
  font-size: 13px;
}
.dossier-window-content {
  min-height: 0;
  overflow: auto;
  overscroll-behavior: contain;
}
.dossier-window-content .dossier-page {
  min-height: 100%;
  padding: 24px;
}
.dossier-window-content .dossier-layout {
  grid-template-columns: minmax(210px, 0.34fr) minmax(0, 1fr);
}

.memory-notebook {
  display: grid;
  gap: 8px;
  margin-top: 14px;
  padding: 13px;
  border: 1px solid #d4b16f42;
  border-radius: 10px;
  background: #050906;
}
.memory-notebook label {
  display: flex;
  align-items: center;
  gap: 8px;
  color: #ead8b5;
  font-size: 12px;
  font-weight: 800;
}
.memory-notebook textarea {
  width: 100%;
  min-height: 108px;
  resize: vertical;
  padding: 11px;
  border: 1px solid #ffffff24;
  border-radius: 7px;
  background: #111712;
  color: #f1ece2;
  font: 12px/1.55 ui-monospace, monospace;
}
.memory-notebook small {
  color: #94a098;
  font-size: 9px;
}

.late-evidence-visual,
.chapter-three-visual {
  margin: 22px 0;
  border: 1px solid #b2946442;
  background: #090c0a;
}
.late-evidence-visual > button {
  position: relative;
  width: 100%;
  padding: 0;
  display: block;
  overflow: hidden;
  border: 0;
  background: #050706;
  cursor: zoom-in;
}
.late-evidence-visual img {
  width: 100%;
  max-height: 620px;
  display: block;
  object-fit: contain;
  transition: transform 0.35s ease, filter 0.35s ease;
}
.late-evidence-visual > button:hover img {
  transform: scale(1.018);
  filter: contrast(1.04);
}
.late-evidence-visual > button > span {
  position: absolute;
  right: 12px;
  bottom: 12px;
  display: flex;
  align-items: center;
  gap: 7px;
  padding: 9px 12px;
  color: #f3e6cf;
  border: 1px solid #d4b16f66;
  background: #070a08e8;
  font-size: 10px;
  font-weight: 800;
}
.late-evidence-visual figcaption {
  display: flex;
  gap: 9px;
  align-items: flex-start;
  padding: 13px 15px;
  color: #bac4bc;
  font-size: 11px;
  line-height: 1.55;
}
.late-evidence-visual figcaption svg {
  flex: 0 0 auto;
  color: #d4b16f;
}
.evidence-preview-overlay {
  padding: 22px;
  background: #020302f2;
}
.evidence-preview-dialog {
  position: relative;
  width: min(1500px, 96vw);
  max-height: 94vh;
  overflow: auto;
  padding: 14px;
  border: 1px solid #d4b16f55;
  background: #080a08;
  box-shadow: 0 30px 100px #000;
}
.evidence-preview-dialog > button {
  position: sticky;
  top: 4px;
  float: right;
  z-index: 2;
  color: #fff;
  background: #060806e8;
}
.evidence-preview-dialog img {
  width: 100%;
  height: auto;
  display: block;
}
.evidence-preview-dialog p {
  margin: 10px 0 0;
  color: #aeb8b0;
  font-size: 10px;
}

.cyber-sequence {
  margin: 20px 0 24px;
  border: 1px solid #86ae9238;
  background: #030705;
  overflow: hidden;
}
.cyber-sequence-screen {
  position: relative;
  height: 210px;
  overflow: hidden;
  background:
    linear-gradient(#72b78a0c 1px, transparent 1px),
    linear-gradient(90deg, #72b78a0c 1px, transparent 1px),
    radial-gradient(circle at 70% 40%, #1b57312b, transparent 43%),
    #020503;
  background-size: 22px 22px, 22px 22px, auto, auto;
}
.cyber-code-track {
  position: absolute;
  inset: -220px 0 auto;
  display: grid;
  gap: 8px;
  padding: 16px 24px;
  animation: code-feed 14s linear infinite;
}
.cyber-code-track code {
  color: #83c698;
  font: 11px/1.25 ui-monospace, SFMono-Regular, monospace;
  text-shadow: 0 0 10px #65cf873f;
}
.cyber-code-track code:nth-child(3n) {
  color: #d4b16f;
}
.cyber-code-track span {
  color: #566c5c;
  margin-right: 12px;
}
.cyber-scan {
  position: absolute;
  inset: 0;
  background: linear-gradient(180deg, transparent 48%, #8fe1a91f 50%, transparent 53%);
  background-size: 100% 18px;
  mix-blend-mode: screen;
  pointer-events: none;
}
.cyber-sequence-status {
  position: absolute;
  left: 14px;
  bottom: 12px;
  padding: 8px 10px;
  color: #dceade;
  background: #050906d9;
  border: 1px solid #7ab18a45;
  font: 9px ui-monospace, monospace;
  letter-spacing: 0.1em;
}
.cyber-sequence-status i {
  display: inline-block;
  width: 7px;
  height: 7px;
  margin-right: 7px;
  border-radius: 50%;
  background: #7ecb91;
  box-shadow: 0 0 12px #7ecb91;
}
.cyber-sequence > p {
  margin: 0;
  padding: 12px 15px;
  color: #98a69c;
  font-size: 10px;
}
@keyframes code-feed {
  from { transform: translateY(0); }
  to { transform: translateY(220px); }
}
.forensic-code-file {
  margin: 18px 0;
  border: 1px solid #6dae813d;
  background: #020604;
  box-shadow: inset 0 0 45px #1a643226;
}
.forensic-code-file header {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 13px;
  border-bottom: 1px solid #6dae812b;
  color: #dce8de;
  font: 10px ui-monospace, monospace;
}
.forensic-code-file header i {
  color: #77bd8c;
}
.forensic-code-file > div {
  max-height: 230px;
  overflow: hidden;
  display: grid;
  gap: 7px;
  padding: 15px;
}
.forensic-code-file code {
  color: #82bf92;
  font: 11px/1.3 ui-monospace, monospace;
  animation: code-blink 2.2s ease-in-out infinite alternate;
}
.forensic-code-file code:nth-child(2n) {
  color: #c9ae75;
  animation-delay: -0.8s;
}
.forensic-code-file code span {
  display: inline-block;
  width: 40px;
  color: #475d4e;
}
.forensic-code-file > p {
  margin: 0;
  padding: 11px 14px;
  border-top: 1px solid #6dae812b;
  color: #a6b2a8;
  font-size: 10px;
}
@keyframes code-blink {
  from { opacity: 0.64; transform: translateX(0); }
  to { opacity: 1; transform: translateX(7px); }
}

@media (max-width: 700px) {
  .material-tabs {
    gap: 7px;
    padding: 10px 12px;
  }
  .material-tabs button {
    min-height: 44px;
    padding: 10px 13px;
    font-size: 11px;
  }
  .floating-board-button,
  .floating-dossier-button,
  .floating-notes-button,
  .mobile-phone-button {
    width: calc((100vw - 40px) / 4) !important;
    min-height: 54px;
    padding: 8px 4px !important;
  }
  .floating-board-button {
    left: 8px !important;
    bottom: 12px !important;
  }
  .floating-dossier-button {
    left: calc(8px + (100vw - 40px) / 4) !important;
    bottom: 12px !important;
  }
  .floating-notes-button {
    left: calc(8px + ((100vw - 40px) / 4) * 2) !important;
    bottom: 12px !important;
  }
  .mobile-phone-button {
    right: 8px !important;
    bottom: 12px !important;
  }
  .floating-dossier-button small,
  .floating-dossier-button > b,
  .floating-board-button small,
  .floating-notes-button small {
    display: none;
  }
  .floating-dossier-panel.workspace-tool {
    border-radius: 0;
  }
  .dossier-window-content .dossier-page {
    padding: 15px;
  }
  .dossier-window-content .dossier-layout {
    grid-template-columns: 1fr;
  }
  .cyber-sequence-screen {
    height: 180px;
  }
  .cyber-code-track code,
  .forensic-code-file code {
    font-size: 9px;
  }
  .evidence-preview-overlay {
    padding: 8px;
  }
  .evidence-preview-dialog {
    width: 100%;
    max-height: 96vh;
    padding: 7px;
  }
}

/* Final board sizing overrides stay last so older responsive rules cannot shrink it. */
.board-canvas-scroll {
  height: min(78vh, 920px);
  overflow: auto !important;
  overscroll-behavior: contain;
  scrollbar-color: #746143 #080a08;
}
.case-board .board-main-card,
.drawer-board .board-main-card {
  left: 50% !important;
  top: 3.5% !important;
}
/* Supplemental investigation workspace: deliberately scoped to preserve the case UI. */
.field-entry{display:flex;gap:18px;align-items:center;margin:18px 0;padding:20px 24px;border:1px solid #2e4551;border-radius:12px;background:linear-gradient(110deg,#13212a,#10171d);color:#e7eef2}.field-entry>svg{flex-shrink:0;color:#82bdc9}.field-entry>div{flex:1}.field-entry p{margin:5px 0 0;color:#a9bbc4;font-size:14px}.field-entry button,.field-lab button{border:1px solid #3a505c;border-radius:8px;padding:11px 16px;background:#1a2a34;color:#e7f1f5;font:inherit;font-size:14px;cursor:pointer;line-height:1.45;transition:background .15s,border-color .15s}.field-entry button:hover,.field-lab button:hover{background:#28414f;border-color:#75a4b7}.field-lab button:disabled{opacity:.45;cursor:default}.field-lab button:focus-visible,.field-lab input:focus-visible,.field-lab [tabindex]:focus-visible{outline:2px solid #97d2e0;outline-offset:3px}.field-lab{color:#e5edf2;padding-top:14px;max-width:1250px;margin:auto}.field-heading{margin:10px 0 28px;max-width:820px}.field-heading h2{font-size:clamp(30px,4vw,46px);line-height:1.1;margin:12px 0 18px}.field-heading p{font-size:17px;line-height:1.7;color:#c0cdd5}.field-heading small{display:block;color:#8ca3af;line-height:1.65;font-size:13px}.field-lab h3{color:#eef4f6;font-size:23px;margin:12px 0}.field-lab p{line-height:1.7}.field-actions{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-top:20px}.field-profile-lock{display:grid;grid-template-columns:1.35fr 1fr;gap:35px;background:#111d25;border:1px solid #2e414b;border-radius:14px;padding:30px}.field-profile-lock p,.field-task>p,.field-lock p{color:#a9bbc7}.field-profile-lock svg,.field-lock>svg{color:#86b9ca}.field-lab form label{display:block;font-size:14px;margin:0 0 9px;color:#c4d6e0}.field-lab input:not([type=checkbox]){background:#0b131a;border:1px solid #3a4b58;color:#f1f5f7;border-radius:7px;padding:12px 14px;min-width:0;width:100%;font:inherit;font-size:15px;box-sizing:border-box}.field-lab input::placeholder{color:#7e95a5}.field-profile-lock form{display:flex;flex-direction:column;justify-content:center;gap:12px}.field-profile-lock form label{margin-bottom:0}.field-profile-lock form button,.field-lock form button{background:#2d5361;border-color:#5a8897}.field-file-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(230px,1fr));gap:12px;margin:22px 0}.field-lab .field-file{display:flex;align-items:center;gap:14px;text-align:left;min-height:76px;background:#15212a;padding:16px;overflow:hidden}.field-file>svg{color:#8cbccd;flex-shrink:0}.field-file span{min-width:0;flex:1}.field-file b{font-size:14px;overflow-wrap:anywhere;display:block}.field-file small{display:block;color:#94aab7;font-size:12px;margin-top:5px}.field-reader{margin:26px 0;border:1px solid #3a505e;background:#0c141b;border-radius:12px;overflow:hidden;box-shadow:0 18px 48px #0005}.field-reader>header{display:flex;align-items:center;justify-content:space-between;padding:12px 18px;gap:12px;background:#1b2b36;border-bottom:1px solid #33434e}.field-reader>header>span{display:flex;gap:10px;align-items:center;overflow-wrap:anywhere;min-width:0}.field-reader>header b{font-size:14px}.field-reader>header button{padding:7px;display:flex}.field-lock{padding:30px;max-width:700px;margin:auto}.field-lock form{margin-top:24px;display:grid;gap:10px}.field-lock>button{margin-top:20px}.field-archive{padding:22px;display:grid;gap:12px}.field-archive p{color:#b3c4ce}.field-find{display:flex;align-items:center;gap:12px;padding:10px 16px;border-bottom:1px solid #273b48}.field-lab .field-find input{max-width:380px;padding:9px 12px}.field-find>span{font-size:12px;color:#a8bcc8}.field-paper{max-height:580px;overflow:auto;padding:24px 12px 40px;line-height:1.9;font:14px/1.9 ui-monospace,SFMono-Regular,Consolas,monospace;tab-size:2}.field-paper>div{display:flex;gap:18px;min-height:1.9em;padding:0 12px}.field-paper>div>span:last-child{white-space:pre-wrap;overflow-wrap:anywhere;min-width:0}.field-line-number{user-select:none;flex-shrink:0;font-size:11px;color:#557080;min-width:24px;text-align:right}.field-paper-document{font:16px/1.9 Georgia,serif;background:#19232a;max-width:840px;margin:24px auto;padding:35px 20px 60px;border:1px solid #35454e;box-shadow:0 8px 30px #0004}.field-paper-document .field-line-number{display:none}.field-paper .field-match{background:#3b3a24;color:#ffe2a0}.field-lab .field-reader-back{margin:12px 24px 22px;display:flex;align-items:center;gap:8px}.field-messenger{display:grid;grid-template-columns:265px minmax(0,1fr);min-height:590px;border:1px solid #344754;border-radius:14px;overflow:hidden;background:#101c25}.field-messenger>aside{background:#162630;border-right:1px solid #344754;padding:10px}.field-messenger>aside button{display:flex;width:100%;text-align:left;align-items:center;gap:10px;border:0;background:transparent;padding:14px 10px;margin-bottom:5px}.field-messenger>aside button.active{background:#2a4759}.field-messenger i{font-size:12px;font-style:normal;display:grid;place-items:center;border-radius:50%;width:39px;height:39px;background:#395665;color:#e5f3f8;flex-shrink:0}.field-messenger aside span{min-width:0}.field-messenger aside b{display:block;font-size:14px}.field-messenger aside small{display:block;white-space:nowrap;text-overflow:ellipsis;overflow:hidden;max-width:160px;font-size:12px;color:#a8bdca;margin-top:5px}.field-conversation{min-width:0;display:flex;flex-direction:column}.field-conversation>header{display:flex;align-items:center;gap:12px;padding:18px 22px;border-bottom:1px solid #2c414d;background:#192a36}.field-conversation>header small{display:block;font-size:12px;color:#98b0bf;margin-top:4px}.field-bubbles{overflow:auto;padding:22px;display:flex;flex-direction:column;gap:12px;max-height:540px;min-height:140px}.field-conversation>.field-bubbles{flex:1}.field-bubbles article{max-width:84%;background:#223645;border-radius:12px 12px 12px 3px;padding:12px 15px;align-self:flex-start}.field-bubbles article.out{align-self:flex-end;background:#294d60;border-radius:12px 12px 3px 12px}.field-bubbles article p{margin:0;font-size:14px;white-space:pre-wrap;overflow-wrap:anywhere}.field-bubbles time{display:block;text-align:right;font-size:10px;color:#a7bdca;margin-top:7px}.field-conversation>footer{padding:14px 20px;border-top:1px solid #2d414e;font-size:12px;color:#88a1b2}.field-composer{display:flex;gap:10px;padding:14px;border-top:1px solid #2c414d;background:#162733}.field-composer button{display:flex;align-items:center;justify-content:center}.field-task{background:#121e27;border:1px solid #30444f;border-radius:12px;padding:26px;margin:24px 0}.field-table-scroll{overflow:auto;margin:24px -6px 0}.field-lab table{width:100%;border-collapse:collapse;font-size:13px;text-align:left;min-width:680px;background:transparent}.field-lab th{font-size:11px;letter-spacing:.05em;color:#93b2c5;background:#1a2e3b}.field-lab td,.field-lab th{padding:12px 10px;border-bottom:1px solid #2e414e;white-space:nowrap}.field-lab td{color:#c8d8e2;background:transparent}.field-lab tr:has(input:checked) td{background:#203c4b}.field-lab input[type=checkbox]{appearance:auto;accent-color:#7eb1c5;width:19px;height:19px;cursor:pointer}.field-route{display:flex;flex-wrap:wrap;gap:12px;margin-top:24px}.field-route-chain{min-height:60px;padding:20px;border:1px dashed #567384;margin-top:20px;border-radius:8px;color:#bed9e7;font-family:monospace;overflow-wrap:anywhere}.field-success{display:flex;align-items:center;gap:8px;color:#a1d8c3;font-size:14px}.field-notice{padding:16px 20px;border-left:3px solid #8db8c9;background:#20313b;color:#e0ebef;border-radius:0 8px 8px 0}.field-return{margin:28px 0}.field-return button{display:flex;align-items:center;gap:10px}
@media(max-width:760px){.field-entry{flex-wrap:wrap;padding:18px}.field-entry>div{flex-basis:calc(100% - 50px)}.field-entry button{margin-left:42px}.field-profile-lock{grid-template-columns:1fr;padding:22px;gap:24px}.field-messenger{grid-template-columns:1fr}.field-messenger>aside{display:flex;overflow:auto;border-right:0;border-bottom:1px solid #344754;padding:6px;gap:6px}.field-messenger>aside button{width:auto;flex-shrink:0;padding:10px}.field-messenger aside small{display:none}.field-messenger i{width:30px;height:30px}.field-messenger aside b{font-size:12px}.field-conversation>header{padding:16px}.field-bubbles{padding:16px;max-height:480px}.field-bubbles article{max-width:94%}.field-task{padding:20px 15px}.field-file-grid{grid-template-columns:1fr}.field-paper{font-size:12px;padding-left:0;padding-right:0}.field-paper-document{font-size:15px;margin:12px;padding:20px 8px}.field-lock{padding:22px}.field-heading p{font-size:15px}.field-route-chain{font-size:13px}.field-reader>header{padding:12px}.field-heading h2{font-size:32px}}
