@import url('https://fonts.googleapis.com/css2?family=Playfair+Display:wght@400;700&family=Space+Mono:wght@400;700&family=Inter:wght@300;400;500;600&display=swap');

/* ─── v2 Color Tokens ────────────────────────────────────────────────────── */
:root {
  --page-bg:       #120E08;
  --cork-bg:       #3A2C18;
  --cork-mid:      #2F2210;
  --cork-dark:     #251B0B;
  --panel-bg:      #1E170D;
  --panel-bg2:     #271E11;
  --card-bg:       #2B2113;
  --card-hov:      #332817;
  --nav-bg:        #0C0905;
  --input-bg:      #302517;
  --overlay-bg:    rgba(8,5,2,0.90);
  --border:        #614728;
  --border-lt:     #806036;
  --border-gold:   #A37F40;
  --gold:          #F2C144;
  --gold-dim:      #BB8D30;
  --gold-pale:     #F5D97A;
  --red:           #D1301E;
  --red-glow:      #E84030;
  --orange:        #EF8928;
  --green:         #41BA6E;
  --blue:          #4A9CF4;
  --purple:        #9858D8;
  --text-pri:      #F5EAD8;
  --text-sec:      #C3A779;
  --text-muted:    #8B6D49;
  --text-dim:      #6A5035;
  --paper-bg:      #E1D2B4;
  --paper-dark:    #CFC09D;
  --paper-note:    #F9F5D4;
  --text-paper:    #261A0E;
  --text-paper-md: #50381E;
  --white:         #FFFFFF;
  --pin-red:       #CC1E13;
  --stamp-red:     #A21313;
  --font-display:  'Playfair Display', Georgia, serif;
  --font-mono:     'Space Mono', 'Courier New', monospace;
  --font-body:     'Inter', system-ui, sans-serif;
  --panel-radius:  8px;
  --card-radius:   6px;
  --btn-radius:    8px;
  --shadow-panel:  0 4px 16px rgba(0,0,0,0.65), 0 1px 4px rgba(0,0,0,0.3);
  --shadow-card:   0 10px 40px rgba(0,0,0,0.90), 0 3px 12px rgba(0,0,0,0.5);
  --shadow-pin:    0 2px 4px rgba(0,0,0,0.7);
  --glow-gold:     0 0 16px 3px rgba(242,193,68,0.38);
  --glow-red:      0 0 14px 2px rgba(209,48,30,0.50);
  --glow-orange:   0 0 10px 2px rgba(239,137,40,0.40);
}

*, *::before, *::after { box-sizing: border-box; }
html, body { height: 100%; margin: 0; background: var(--page-bg); color: var(--text-pri); font-family: var(--font-body); font-size: 14px; line-height: 1.5; -webkit-font-smoothing: antialiased; }

/* ─── Cork Board ─────────────────────────────────────────────────────────── */
.cork-board { position: relative; background-color: var(--cork-bg); background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='200' height='200'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.65' numOctaves='3' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='200' height='200' filter='url(%23n)' opacity='0.09'/%3E%3C/svg%3E"); box-shadow: inset 0 4px 24px rgba(0,0,0,0.55), inset 0 -4px 24px rgba(0,0,0,0.45); }
.cork-board::before { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 40%, rgba(4,3,1,0.50) 100%); pointer-events: none; z-index: 0; }

/* ─── Nav ────────────────────────────────────────────────────────────────── */
.tc-nav { position: fixed; top: 0; left: 0; right: 0; height: 62px; background: var(--nav-bg); border-bottom: 1px solid rgba(163,127,64,0.55); box-shadow: 0 2px 10px rgba(0,0,0,0.85); z-index: 100; display: flex; align-items: center; }
.tc-nav__logo { display: flex; align-items: center; gap: 10px; padding: 0 20px; border-right: 1px solid rgba(163,127,64,0.45); height: 100%; }
.tc-nav__badge { width: 38px; height: 38px; background: var(--gold); border-radius: 5px; display: grid; place-items: center; font-size: 18px; color: var(--nav-bg); flex-shrink: 0; }
.tc-nav__name { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 2px; color: var(--gold-dim); text-transform: uppercase; }
.tc-nav__rank { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--text-muted); }
.tc-nav__case-title { flex: 1; text-align: center; padding: 0 20px; }
.tc-nav__case-num { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 3px; color: var(--red); text-transform: uppercase; }
.tc-nav__case-name { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-pri); }
.tc-nav__phase { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--gold-dim); text-transform: uppercase; }
.tc-nav__right { display: flex; align-items: center; gap: 16px; padding: 0 20px; }
.tc-nav__xp { font-family: var(--font-mono); font-size: 12px; color: var(--gold); }
.tc-nav__avatar { width: 36px; height: 36px; border-radius: 50%; background: rgba(242,193,68,0.15); border: 1.5px solid var(--gold); display: grid; place-items: center; font-weight: 700; font-size: 14px; color: var(--gold); cursor: pointer; position: relative; }
.tc-nav__avatar .notif { position: absolute; top: -2px; right: -2px; width: 9px; height: 9px; border-radius: 50%; background: var(--red); box-shadow: var(--glow-red); }
.tc-new-icon{
  display:inline-flex; align-items:center; justify-content:center;
  margin-left:8px;
  padding:2px 6px;
  border-radius:999px;
  background: var(--red);
  color: var(--white);
  font-size:10px;
  font-weight:900;
  letter-spacing:.06em;
  line-height:1;
  box-shadow: var(--glow-red);
  transform: translateY(-1px);
  animation: tcPulse 1.4s ease-in-out infinite;
}
.tc-new-icon--phase{ margin-left:10px; }
.tc-mobile-nav__badge--new{ min-width: 26px; padding: 0 6px; height: 16px; border-radius: 999px; font-size: 10px; font-weight: 900; }
@keyframes tcPulse{
  0%,100%{ filter: brightness(1); transform: translateY(-1px) scale(1); }
  50%{ filter: brightness(1.15); transform: translateY(-1px) scale(1.06); }
}

/* ─── Sidebar ────────────────────────────────────────────────────────────── */
.tc-sidebar { position: fixed; top: 62px; left: 0; width: 90px; height: calc(100vh - 62px - 62px); background: var(--nav-bg); border-right: 1px solid rgba(163,127,64,0.50); z-index: 50; display: flex; flex-direction: column; padding: 8px 0; }
.tc-sidebar__item { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 14px 0; gap: 6px; cursor: pointer; transition: background 0.15s; text-decoration: none; }
.tc-sidebar__item:hover { background: rgba(242,193,68,0.07); }
.tc-sidebar__item.active { background: rgba(242,193,68,0.12); }
.tc-sidebar__item.active::before { content: ''; position: absolute; left: 0; top: 0; bottom: 0; width: 3px; background: var(--gold); box-shadow: var(--glow-gold); border-radius: 0 2px 2px 0; }
.tc-sidebar__icon { font-size: 20px; color: var(--text-muted); line-height: 1; transition: color 0.15s; }
.tc-sidebar__item:hover .tc-sidebar__icon { color: var(--text-sec); }
.tc-sidebar__item.active .tc-sidebar__icon { color: var(--gold); }
.tc-sidebar__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 0.5px; color: var(--text-muted); text-align: center; transition: color 0.15s; }
.tc-sidebar__item:hover .tc-sidebar__label { color: var(--text-sec); }
.tc-sidebar__item.active .tc-sidebar__label { color: var(--gold); }
.tc-sidebar__badge { position: absolute; top: 4px; right: 12px; min-width: 18px; height: 15px; background: var(--red); border-radius: 7px; display: flex; align-items: center; justify-content: center; font-size: 9px; font-weight: 700; color: var(--white); box-shadow: var(--glow-red); }

/* ─── Board Wrap ─────────────────────────────────────────────────────────── */
.tc-board-wrap { margin-top: 62px; margin-left: 90px; padding-bottom: 62px; min-height: calc(100vh - 62px); }
.tc-board { position: relative; padding: 12px; min-height: calc(100vh - 124px); }

/* ─── Murder Board Responsive Grid ──────────────────────────────────────── */
.tc-murder-board-grid {
  display: grid;
  grid-template-columns: 1fr 258px;
  gap: 12px;
  position: relative;
  z-index: 1;
  padding: 12px;
}

/* Minimal board: right-side panels + bottom notes (equal height rows) */
.tc-murder-board-grid--minimal{
  grid-template-columns: 1fr 336px; /* 258px * 1.3 */
  grid-template-rows: 1fr;
  height: calc(100vh - 124px - 24px); /* board min-height minus grid padding */
  min-height: 520px;
  align-items: stretch;
}
.tc-board-spacer{
  min-width: 0;
  min-height: 0;
}
.tc-board-right-full{
  grid-column: 2;
  grid-row: 1 / -1;
  min-width: 0;
  min-height: 0;
  height: 100%;
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tc-board-right-full__item{
  flex: 1 1 0;
  min-width: 0;
  min-height: 0;
}
.tc-board-right-full__item[data-testid="suspects-panel"]{
  flex: 0 0 auto;
}
.tc-board-right-full__item[data-testid="suspects-panel"] > .tc-panel .tc-panel__body{
  overflow: visible;
}
.tc-board-right-full__item[data-testid="evidence-board"]{
  flex: 1 1 0;
  min-height: 0;
}
.tc-board-right-full__item > .tc-panel{
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tc-board-right-full__item > .tc-panel .tc-panel__body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.tc-board-panel-cell{
  min-width: 0;
  min-height: 0;
  height: 100%;
}
.tc-board-panel-cell > .tc-case-preview-root--embedded{
  min-height: 0;
  max-height: 100%;
  height: 100%;
  overflow-y: auto;
  overflow-x: hidden;
  display: flex;
  flex-direction: column;
}

/* ─── Case details / preview (readable briefing) ─────────────────────────── */
.tc-case-details{
  max-width: 720px;
  margin: 0 auto;
  padding: 24px 20px 56px;
}
.tc-case-details--embedded{
  max-width: none;
  margin: 0;
  padding: 6px 8px 8px;
  flex: 1 1 auto;
  min-height: 0;
}
.tc-case-details--embedded .tc-case-details__header{
  flex-shrink: 0;
}
.tc-case-details--embedded .tc-case-details__stack{
  flex: 1 1 auto;
  min-height: 0;
}
.tc-case-details--embedded .tc-case-details__what-card{
  flex: 1 1 auto;
  min-height: 0;
  display: flex;
  flex-direction: column;
}
.tc-case-details--embedded .tc-case-details__what-card > .tc-panel__header{
  flex-shrink: 0;
}
.tc-case-details--embedded .tc-case-details__what-body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}
.tc-case-details--embedded .tc-case-details__split{
  display: flex;
  flex-direction: column;
  flex: 1 1 auto;
  min-height: 0;
}
.tc-case-details--embedded .tc-case-details__split--text-only{
  flex: 0 1 auto;
}
.tc-case-details__actions{
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  margin-bottom: 18px;
}
.tc-case-details__action{
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 11px 14px;
  border-radius: 10px;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.5px;
  text-decoration: none;
  border: 1px solid rgba(144,112,46,0.35);
  background: rgba(76,55,31,0.18);
  color: var(--text-pri);
  transition: background 0.15s, border-color 0.15s;
}
.tc-case-details__action:hover{
  background: rgba(242,193,68,0.12);
  border-color: rgba(242,193,68,0.45);
  color: var(--gold);
}
.tc-case-details__action--primary{
  background: var(--gold);
  color: var(--nav-bg);
  border-color: transparent;
}
.tc-case-details__action--primary:hover{
  filter: brightness(1.05);
  color: var(--nav-bg);
}
.tc-case-details__action--unlock{
  background: rgba(242,193,68,0.10);
  border-color: rgba(242,193,68,0.35);
  color: var(--gold);
}
.tc-case-details__action--muted{
  cursor: default;
  color: var(--text-muted);
}
.tc-case-details__header{
  margin-bottom: 14px;
}
.tc-case-details__kicker{
  font-family: var(--font-mono);
  font-size: 11px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 0 0 6px;
}
.tc-case-details__title{
  font-family: var(--font-display);
  font-size: clamp(1.35rem, 3vw, 2rem);
  font-weight: 700;
  color: var(--text-pri);
  line-height: 1.15;
  margin: 0 0 10px;
}
.tc-case-details--embedded .tc-case-details__title{
  font-size: 1.05rem;
  margin-bottom: 8px;
}
.tc-case-details--embedded .tc-case-details__kicker{
  font-size: 9px;
  letter-spacing: 1.2px;
}
.tc-case-details__chips{
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}
.tc-case-details__chip{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 0.3px;
  color: var(--text-sec);
  background: rgba(97,71,40,0.22);
  border: 1px solid rgba(128,96,54,0.45);
  border-radius: 6px;
  padding: 5px 9px;
}
.tc-case-details--embedded .tc-case-details__chip{
  font-size: 9px;
  padding: 4px 7px;
}

/* “What happened”: image + summary share one panel; image scales with viewport */
.tc-case-details__what-body{
  padding: 0 !important;
  min-height: 0;
}
.tc-case-details__split{
  display: grid;
  grid-template-columns: 1fr;
  gap: 0;
  align-items: stretch;
  min-height: 0;
}
.tc-case-details__split--text-only .tc-case-details__copy{
  padding: 12px 14px 14px;
}
.tc-case-details:not(.tc-case-details--embedded) .tc-case-details__split:not(.tc-case-details__split--text-only){
  grid-template-columns: minmax(140px, 42%) minmax(0, 1fr);
}
@media (max-width: 639px){
  .tc-case-details:not(.tc-case-details--embedded) .tc-case-details__split:not(.tc-case-details__split--text-only){
    grid-template-columns: 1fr;
  }
}
.tc-case-details__media{
  display: flex;
  align-items: center;
  justify-content: center;
  background: rgba(43,33,19,0.42);
  border-bottom: 1px solid rgba(97,71,40,0.45);
  padding: 12px;
  box-sizing: border-box;
  min-height: min(28vh, 200px);
  max-height: min(58vh, 520px);
}
.tc-case-details:not(.tc-case-details--embedded) .tc-case-details__split:not(.tc-case-details__split--text-only) .tc-case-details__media{
  border-bottom: none;
  border-right: 1px solid rgba(97,71,40,0.45);
  min-height: min(42vh, 320px);
  max-height: min(72vh, 640px);
}
@media (max-width: 639px){
  .tc-case-details:not(.tc-case-details--embedded) .tc-case-details__split:not(.tc-case-details__split--text-only) .tc-case-details__media{
    border-right: none;
    border-bottom: 1px solid rgba(97,71,40,0.45);
    min-height: min(32vh, 240px);
    max-height: min(48vh, 420px);
  }
}
.tc-case-details__media-img{
  display: block;
  max-width: 100%;
  max-height: min(54vh, 500px);
  width: auto;
  height: auto;
  object-fit: contain;
  object-position: center;
}
.tc-cover-story-btn { position: relative; padding: 0; background: none; border: none; cursor: pointer; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; }
.tc-cover-story-btn img { display: block; transition: opacity 0.2s; }
.tc-cover-story-btn:hover img { opacity: 0.75; }
.tc-cover-story-hint { position: absolute; bottom: 0; left: 0; right: 0; padding: 10px 12px 12px; background: linear-gradient(transparent, rgba(10,8,5,0.8)); font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.15em; text-transform: uppercase; color: rgba(255,255,255,0.9); text-align: center; opacity: 0; transition: opacity 0.2s; pointer-events: none; }
.tc-cover-story-btn:hover .tc-cover-story-hint { opacity: 1; }
.tc-case-details:not(.tc-case-details--embedded) .tc-case-details__split:not(.tc-case-details__split--text-only) .tc-case-details__media-img{
  max-height: min(68vh, 620px);
}
.tc-case-details__copy{
  padding: 14px 16px 16px;
  min-width: 0;
}
.tc-case-details--embedded .tc-case-details__media{
  flex: 1 1 auto;
  min-height: min(36vh, 220px);
  max-height: min(62vh, 580px);
  padding: 10px;
}
.tc-case-details--embedded .tc-case-details__media-img{
  max-height: min(58vh, 560px);
}
.tc-case-details--embedded .tc-case-details__copy{
  padding: 10px 12px 12px;
  flex-shrink: 0;
}

.tc-case-details__stack{
  display: flex;
  flex-direction: column;
  gap: 12px;
}
.tc-case-details--embedded .tc-case-details__stack{
  gap: 6px;
}
.tc-case-details__section .tc-panel__header{
  padding: 10px 14px 8px;
}
.tc-case-details--embedded .tc-case-details__section .tc-panel__header{
  padding: 8px 10px 6px;
}
.tc-case-details--embedded .tc-case-details__section .tc-panel__title{
  font-size: 13px;
}
.tc-case-details--embedded .tc-case-details__section .tc-panel__subtitle{
  font-size: 9px;
}
.tc-case-details__prose{
  font-size: 14px;
  line-height: 1.65;
  color: var(--text-sec);
}
.tc-case-details--embedded .tc-case-details__section .tc-panel__body.tc-case-details__prose,
.tc-case-details--embedded .tc-case-details__section .tc-panel__body{
  padding: 10px 12px;
  font-size: 12px;
  line-height: 1.55;
}
.tc-case-details__lede{
  margin: 0;
  font-size: 15px;
  color: var(--text-pri);
}
.tc-case-details--embedded .tc-case-details__lede{
  font-size: 13px;
  line-height: 1.55;
}
.tc-case-details__brief-kicker{
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 1.2px;
  text-transform: uppercase;
  color: var(--gold-dim);
  margin: 14px 0 8px;
}
.tc-case-details--embedded .tc-case-details__brief-kicker{
  margin: 10px 0 6px;
  font-size: 9px;
}
.tc-case-details__brief-body{
  margin: 0;
}
.tc-case-details__brief-p{
  margin: 0 0 10px;
  color: var(--text-sec);
  line-height: 1.6;
}
.tc-case-details__brief-p:last-child{
  margin-bottom: 0;
}
.tc-case-details__brief-list{
  margin: 0 0 12px;
  padding-left: 1.15rem;
  color: var(--text-sec);
  line-height: 1.55;
}
.tc-case-details__brief-list li{
  margin-bottom: 6px;
}
.tc-case-details__brief-list:last-child{
  margin-bottom: 0;
}
.tc-case-details--embedded .tc-case-details__brief-list{
  font-size: 12px;
  padding-left: 1rem;
}
.tc-case-details--embedded .tc-case-details__brief-p{
  font-size: 12px;
  margin-bottom: 8px;
}
.tc-case-details__prose p{
  margin: 0 0 12px;
}
.tc-case-details__prose p:last-child{
  margin-bottom: 0;
}
.tc-case-details__muted{
  color: var(--text-muted);
}
.tc-case-details__prose-tight{
  margin-top: 10px !important;
  font-size: 13px;
  line-height: 1.55;
}
.tc-case-details--embedded .tc-case-details__prose-tight{
  font-size: 11px;
  margin-top: 8px !important;
}
.tc-case-details__list{
  margin: 0;
  padding-left: 1.15rem;
  color: var(--text-sec);
  line-height: 1.55;
  font-size: 14px;
}
.tc-case-details__list li{
  margin-bottom: 8px;
}
.tc-case-details__list li:last-child{
  margin-bottom: 0;
}
.tc-case-details--embedded .tc-case-details__list{
  font-size: 12px;
  padding-left: 1rem;
}
.tc-case-details--embedded .tc-case-details__list li{
  margin-bottom: 6px;
}
.tc-case-details__poi-grid{
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}
.tc-case-details__poi{
  padding: 10px;
  border-radius: 10px;
  background: rgba(43,33,19,0.65);
  border: 1px solid rgba(97,71,40,0.35);
  min-width: 0;
}
.tc-case-details__poi-name{
  font-family: var(--font-display);
  font-size: 12px;
  font-weight: 700;
  color: var(--text-pri);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-case-details__poi-role{
  margin-top: 4px;
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 0.5px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}
.tc-board-panel-cell > .tc-panel{
  height: 100%;
  display: flex;
  flex-direction: column;
}
.tc-board-panel-cell > .tc-panel .tc-panel__body{
  flex: 1 1 auto;
  min-height: 0;
  overflow: auto;
}

/* ─── Panels ─────────────────────────────────────────────────────────────── */
.tc-panel { background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); box-shadow: var(--shadow-panel); position: relative; overflow: hidden; }
.tc-panel__header { background: var(--nav-bg); border-bottom: 1px solid rgba(163,127,64,0.50); padding: 10px 14px 8px; display: flex; justify-content: space-between; align-items: flex-end; }
.tc-panel__title { font-family: var(--font-display); font-size: 15px; font-weight: 700; color: var(--text-pri); line-height: 1.2; }
.tc-panel__subtitle { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.8px; color: var(--gold-dim); text-transform: uppercase; margin-top: 2px; }
.tc-panel__body { padding: 12px 14px; }
.tc-panel__footer { padding: 8px 14px; border-top: 1px solid rgba(97,71,40,0.50); }
.tc-view-all { display: flex; align-items: center; justify-content: space-between; background: rgba(163,127,64,0.12); border: 1px solid rgba(128,96,54,0.50); border-radius: 4px; padding: 5px 12px; font-family: var(--font-mono); font-size: 10px; color: var(--text-sec); cursor: pointer; text-decoration: none; transition: background 0.15s, color 0.15s; }
.tc-view-all:hover { background: rgba(242,193,68,0.14); color: var(--gold); }

/* ─── Scrollbars (match board palette) ───────────────────────────────────── */
*{
  scrollbar-width: thin;
  scrollbar-color: rgba(128,96,54,0.65) rgba(97,71,40,0.22);
}
*::-webkit-scrollbar{ width: 10px; height: 10px; }
*::-webkit-scrollbar-track{
  background: rgba(97,71,40,0.22);
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb{
  background: rgba(128,96,54,0.65);
  border: 2px solid rgba(97,71,40,0.22);
  border-radius: 10px;
}
*::-webkit-scrollbar-thumb:hover{
  background: rgba(242,193,68,0.55);
}

/* ─── Case Card (cork board paper) ──────────────────────────────────────── */
.tc-case-card { background: var(--paper-bg); border-radius: 2px; box-shadow: var(--shadow-card); position: relative; overflow: hidden; color: var(--text-paper); }
.tc-case-card::after { content: ''; position: absolute; inset: 0; background: radial-gradient(ellipse at center, transparent 50%, rgba(163,149,98,0.3) 100%); pointer-events: none; }
.tc-case-card__file-tag { background: var(--red); border-radius: 3px; padding: 4px 8px 4px 10px; display: inline-flex; flex-direction: column; box-shadow: 0 1px 4px rgba(0,0,0,0.35); }
.tc-case-card__file-tag span:first-child { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: rgba(255,255,255,0.9); letter-spacing: 0.5px; }
.tc-case-card__file-tag span:last-child { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--white); line-height: 1; }
.tc-case-card__sticky { background: var(--paper-note); border-radius: 2px; padding: 10px 12px; box-shadow: 0 2px 5px rgba(0,0,0,0.25); font-size: 11px; line-height: 1.6; color: var(--text-paper); }
.tc-case-card__photo { background: #33261A; border-radius: 2px; box-shadow: 0 2px 6px rgba(0,0,0,0.45); overflow: hidden; position: relative; }
.tc-case-card__photo-label { position: absolute; bottom: 8px; left: 0; right: 0; text-align: center; font-family: var(--font-mono); font-size: 10px; color: rgba(122,100,70,0.9); text-transform: uppercase; letter-spacing: 0.5px; }
.tc-case-card__subject-name { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-paper); line-height: 1.1; }
.tc-case-card__meta { font-family: var(--font-mono); font-size: 11px; color: var(--text-paper-md); letter-spacing: 0.5px; }
.tc-case-card__divider { height: 1px; background: rgba(102,80,46,0.5); margin: 8px 0; }
.tc-case-card__detail { font-size: 12px; color: var(--text-paper); line-height: 1.7; }
.tc-case-card__detail.critical { color: var(--red); font-weight: 600; }
.tc-stamp { border: 3px solid rgba(162,19,19,0.85); border-radius: 2px; padding: 8px 14px; display: inline-block; transform: rotate(-7deg); transform-origin: center; }
.tc-stamp__text { font-family: var(--font-mono); font-size: 14px; font-weight: 700; color: var(--stamp-red); letter-spacing: 2px; text-transform: uppercase; }
.tc-phase-strip { display: flex; gap: 3px; }
.tc-phase-strip__item { flex: 1; padding: 4px 4px; border-radius: 2px; background: rgba(97,71,40,0.18); font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); text-align: center; border: 1px solid transparent; }
.tc-phase-strip__item.active { background: rgba(242,193,68,0.22); border-color: rgba(242,193,68,0.55); color: var(--gold); }
.tc-phase-strip__item--past { opacity: 0.55; }

/* ─── Board Case File card: wider + much shorter ─────────────────────────── */
.tc-case-card--board{
  max-width: 620px;
  padding: 10px 12px;
  height: 410px;
  display: flex;
  flex-direction: column;
}
.tc-case-card--board .tc-case-card__top{
  margin-bottom: 4px;
}
.tc-case-card--board .tc-case-card__sticky--board{
  padding: 5px 7px;              /* smaller brief */
  max-width: 170px;
  font-size: 8px;
  line-height: 1.15;
}
.tc-case-card--board .tc-case-card__media--board{
  margin-bottom: 4px;
  display: grid;
  /* Wider subject + smaller evidence CCTV thumb; 10px gutter */
  grid-template-columns: 1fr 238px 10px 238px 1fr;
  align-items: center;
  column-gap: 0;
}
.tc-case-card--board .tc-case-card__photo--subject{
  grid-column: 2;
  justify-self: end;
  width: 238px !important;
  height: 156px !important;
}
.tc-case-card--board .tc-case-card__photo--evidence{
  grid-column: 4;
  justify-self: start;
  align-self: center;
  width: 238px !important;
  min-height: 156px !important;
  height: 156px !important;

  /* remove default <button> rendering differences */
  display: block;
  box-sizing: border-box;
  padding: 0 !important;
  border: 0 !important;
  line-height: 0;
  background: transparent;
  appearance: none;
  -webkit-appearance: none;
}
/* Brief image (field note): shown, but smaller on the board */
.tc-case-card--board .tc-case-card__field-note{
  display: block;
  width: fit-content;
  max-width: min(500px, 100%);
  margin-left: auto;
  margin-top: 4px !important;
  padding: 8px 11px !important;
  font-size: 8.25px !important;
  line-height: 1.4 !important;
  opacity: 0.95;
}
.tc-case-card--board .tc-case-card__field-note:hover{
  opacity: 1;
  box-shadow: 0 0 0 1px rgba(163,127,64,0.35), 0 2px 6px rgba(0,0,0,0.22);
}
.tc-case-card--board .tc-case-card__details{
  margin-top: 0;
  min-height: 0;
}
.tc-case-card--board .tc-case-card__subject-name--board{
  font-size: 17px;
  line-height: 1.05;
}
.tc-case-card--board .tc-case-card__meta--board{
  font-size: 10px;
  margin-bottom: 4px !important;
}
.tc-case-card--board .tc-case-card__divider{
  margin: 4px 0;
}
.tc-case-card--board .tc-case-card__detail--board{
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 1px 12px;
  font-size: 10.5px;
  line-height: 1.3;
}
.tc-case-card__detail--board .tc-case-card__detail-wide{
  grid-column: 1 / -1;
}
/* Phase strip + stamp add height without adding info on the board */
.tc-case-card--board .tc-case-card__phase-strip,
.tc-case-card--board .tc-case-card__stamp-wrap{
  display: none;
}

/* ─── Pins & Threads ─────────────────────────────────────────────────────── */
.tc-pin { width: 14px; height: 14px; position: absolute; pointer-events: none; z-index: 20; }
.tc-pin::before { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 35% 30%, #e84030, #991510); border-radius: 50%; box-shadow: var(--shadow-pin), var(--glow-red); }
.tc-pin::after { content: ''; position: absolute; top: 3px; left: 3px; width: 5px; height: 5px; background: rgba(255,180,160,0.7); border-radius: 50%; }
.tc-thread { position: absolute; height: 1.5px; background: none; border-top: 1.5px dashed rgba(209,48,30,0.55); transform-origin: left center; pointer-events: none; z-index: 10; filter: drop-shadow(0 0 4px rgba(209,48,30,0.25)); }

/* ─── Evidence Rows (board panels) ──────────────────────────────────────── */
.tc-evidence-row { display: flex; align-items: center; gap: 8px; padding: 7px 10px; background: var(--card-bg); border: 1px solid rgba(97,71,40,0.55); border-radius: 4px; cursor: pointer; transition: background 0.15s, border-color 0.15s; text-decoration: none; }
.tc-evidence-row:hover { background: var(--card-hov); }
.tc-evidence-row.new { border-color: rgba(242,193,68,0.55); box-shadow: 0 0 7px rgba(242,193,68,0.12); }
.tc-evidence-row.critical { border-color: rgba(209,48,30,0.60); box-shadow: 0 0 7px rgba(209,48,30,0.15); }
.tc-evidence-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tc-evidence-code { font-family: var(--font-mono); font-size: 10px; color: var(--gold-dim); flex-shrink: 0; width: 38px; }
.tc-evidence-title { font-size: 12px; font-weight: 500; color: var(--text-sec); flex: 1; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.tc-evidence-new { background: rgba(242,193,68,0.18); border: 1px solid rgba(242,193,68,0.50); border-radius: 3px; padding: 2px 6px; font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--gold); flex-shrink: 0; }

/* ─── Suspect Slots (board) ──────────────────────────────────────────────── */
.tc-suspect-grid { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.tc-suspect-slot { aspect-ratio: 1; background: var(--card-bg); border-radius: 4px; display: flex; flex-direction: column; align-items: center; justify-content: center; cursor: pointer; position: relative; border: 1px solid rgba(97,71,40,0.55); transition: border-color 0.15s; overflow: hidden; font-family: var(--font-body); font-size: 20px; font-weight: 700; color: var(--text-muted); gap: 4px; }
.tc-suspect-slot:hover { border-color: rgba(128,96,54,0.70); }
.tc-suspect-slot.high { border-color: rgba(209,48,30,0.65); }
.tc-suspect-slot.medium { border-color: rgba(239,137,40,0.60); }
.tc-suspect-slot__threat { position: absolute; top: 3px; right: 3px; width: 10px; height: 10px; border-radius: 50%; z-index: 3; }
.tc-suspect-slot__name { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); text-align: center; padding: 0 4px; line-height: 1.3; transition: opacity 0.12s ease; }
/* Hover/focus name chip: pointer-events none so the tile remains fully clickable/focusable */
.tc-suspect-slot__overlay {
  pointer-events: none;
  position: absolute;
  left: 0;
  right: 0;
  bottom: 0;
  padding: 5px 6px 4px;
  font-family: var(--font-mono);
  font-size: 9px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 234, 216, 0.96);
  background: rgba(12, 9, 5, 0.78);
  border-radius: 0 0 3px 3px;
  text-align: center;
  line-height: 1.25;
  opacity: 0;
  transition: opacity 0.15s ease;
  z-index: 2;
}
.tc-suspect-slot:hover:not(:disabled) .tc-suspect-slot__overlay,
.tc-suspect-slot:focus-visible:not(:disabled) .tc-suspect-slot__overlay,
a.tc-suspect-slot:hover .tc-suspect-slot__overlay,
a.tc-suspect-slot:focus-visible .tc-suspect-slot__overlay {
  opacity: 1;
}
.tc-suspect-slot:hover:not(:disabled) .tc-suspect-slot__name,
.tc-suspect-slot:focus-visible:not(:disabled) .tc-suspect-slot__name,
a.tc-suspect-slot:hover .tc-suspect-slot__name,
a.tc-suspect-slot:focus-visible .tc-suspect-slot__name {
  opacity: 0;
}

/* ─── Timeline (board panel) ─────────────────────────────────────────────── */
.tc-timeline { position: relative; padding: 0 8px; }
.tc-timeline__line { position: absolute; top: 48px; left: 24px; right: 24px; height: 2px; background: var(--border); border-radius: 1px; }
.tc-timeline__events { display: flex; justify-content: space-between; }
.tc-timeline__event { display: flex; flex-direction: column; align-items: center; position: relative; flex: 1; cursor: pointer; }
.tc-timeline__time { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); text-align: center; margin-bottom: 6px; line-height: 1.3; }
.tc-timeline__event.critical .tc-timeline__time { color: var(--red); font-weight: 700; }
.tc-timeline__dot { width: 14px; height: 14px; border-radius: 50%; background: var(--border); position: relative; z-index: 2; flex-shrink: 0; transition: box-shadow 0.2s; }
.tc-timeline__event.critical .tc-timeline__dot { background: var(--red); box-shadow: var(--glow-red); }
.tc-timeline__event:hover .tc-timeline__dot { box-shadow: 0 0 9px rgba(242,193,68,0.50); }
.tc-timeline__label { font-size: 10px; color: var(--text-muted); text-align: center; margin-top: 6px; line-height: 1.4; }
.tc-timeline__key { position: absolute; top: -4px; right: -8px; background: rgba(209,48,30,0.28); border: 1px solid rgba(209,48,30,0.55); border-radius: 3px; padding: 2px 4px; font-family: var(--font-mono); font-size: 9px; color: var(--red); font-weight: 700; }

/* Timeline page uses the same "card" design, but allows many events without collapsing. */
.tc-timeline-wrap.tc-timeline-page .tc-panel { width: max-content; min-width: 760px; }
.tc-timeline-wrap.tc-timeline-page .tc-timeline { width: max-content; min-width: 760px; }
.tc-timeline-wrap.tc-timeline-page .tc-timeline__events { justify-content: flex-start; gap: 18px; }
.tc-timeline-wrap.tc-timeline-page .tc-timeline__event { flex: 0 0 150px; }

/* ─── Event Rows ─────────────────────────────────────────────────────────── */
.tc-event-row { display: flex; align-items: center; gap: 10px; padding: 7px 10px; background: var(--card-bg); border-radius: 4px; border: 1px solid rgba(97,71,40,0.50); margin-bottom: 5px; cursor: pointer; transition: background 0.15s; }
.tc-event-row:hover { background: var(--card-hov); }
.tc-event-row.critical { border-color: rgba(209,48,30,0.65); box-shadow: 0 0 7px rgba(209,48,30,0.15); }
.tc-event-time { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); flex-shrink: 0; width: 72px; }
.tc-event-row.critical .tc-event-time { color: var(--red); font-weight: 700; }
.tc-event-divider { width: 1px; height: 18px; background: rgba(97,71,40,0.55); flex-shrink: 0; }
.tc-event-desc { font-size: 12px; color: var(--text-sec); flex: 1; }
.tc-event-row.critical .tc-event-desc { color: var(--text-pri); font-weight: 600; }

/* ─── Command Bar ────────────────────────────────────────────────────────── */
.tc-command-bar { position: fixed; bottom: 0; left: 90px; right: 0; height: 62px; background: var(--nav-bg); border-top: 1px solid rgba(163,127,64,0.55); box-shadow: 0 -2px 12px rgba(0,0,0,0.80); z-index: 100; display: flex; align-items: center; gap: 10px; padding: 0 14px; }
.tc-command-input-wrap { flex: 1; display: flex; align-items: center; background: var(--input-bg); border: 1px solid rgba(128,96,54,0.70); border-radius: 7px; padding: 0 14px; height: 40px; gap: 10px; }
.tc-command-prefix { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--gold-dim); letter-spacing: 0.5px; flex-shrink: 0; }
.tc-command-input { flex: 1; background: none; border: none; outline: none; font-family: var(--font-mono); font-size: 13px; color: var(--text-pri); caret-color: var(--gold); }
.tc-command-input::placeholder { color: var(--text-muted); }
.tc-quick-btn { height: 40px; padding: 0 14px; border-radius: 6px; border: 1px solid; background: transparent; font-family: var(--font-body); font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap; transition: background 0.15s; }
.tc-quick-btn--gold { border-color: rgba(242,193,68,0.55); color: var(--gold); }
.tc-quick-btn--gold:hover { background: rgba(242,193,68,0.14); }
.tc-quick-btn--blue { border-color: rgba(74,156,244,0.55); color: var(--blue); }
.tc-quick-btn--blue:hover { background: rgba(74,156,244,0.12); }
.tc-quick-btn--orange { border-color: rgba(239,137,40,0.55); color: var(--orange); }
.tc-quick-btn--orange:hover { background: rgba(239,137,40,0.12); }
.tc-accuse-btn { height: 44px; padding: 0 18px; border-radius: 7px; border: 1.5px solid rgba(209,48,30,0.65); background: rgba(209,48,30,0.14); font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--red); cursor: pointer; white-space: nowrap; transition: background 0.15s, box-shadow 0.15s; letter-spacing: 0.5px; }
.tc-accuse-btn:hover { background: rgba(209,48,30,0.24); box-shadow: var(--glow-red); }
.tc-accuse-btn--ready { border-color: rgba(56,164,97,0.70); background: rgba(56,164,97,0.16); color: var(--green); }
.tc-accuse-btn--ready:hover { background: rgba(56,164,97,0.24); box-shadow: 0 0 12px rgba(56,164,97,0.35); }
.tc-accuse-btn:disabled { opacity: 0.55; cursor: not-allowed; box-shadow: none; }
.tc-accuse-btn:disabled:hover { box-shadow: none; }
.tc-accuse-btn--ready:disabled { opacity: 0.65; }

/* ─── Accusation Bar ─────────────────────────────────────────────────────── */
.tc-accusation-bar { background: rgba(209,48,30,0.09); border: 1px solid rgba(209,48,30,0.50); border-radius: 5px; padding: 12px 14px; }
.tc-accusation-bar__label { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; margin-bottom: 6px; }
.tc-accusation-bar__status { font-family: var(--font-display); font-size: 14px; font-weight: 700; margin-bottom: 4px; }
.tc-accusation-bar__status.not-ready { color: var(--red); }
.tc-accusation-bar__status.partial { color: var(--orange); }
.tc-accusation-bar__status.ready { color: var(--green); }
.tc-accusation-bar__hint { font-size: 11px; color: var(--text-sec); }
.tc-accusation-bar__cta { font-family: var(--font-mono); font-size: 11px; color: var(--red); cursor: pointer; text-decoration: none; margin-top: 4px; display: inline-block; }
.tc-accusation-bar__cta:hover { text-decoration: underline; }

/* ─── Open Questions ─────────────────────────────────────────────────────── */
.tc-open-questions-body{
  display: flex;
  flex-direction: column;
  gap: 4px;
  max-height: 170px; /* smaller card with internal scroll */
  overflow-y: auto;
  padding-right: 4px; /* room for scrollbar */
}
.tc-notes-panel-body{
  display: flex;
  flex-direction: column;
  gap: 10px;
  max-height: 240px; /* larger card with internal scroll */
  overflow-y: auto;
  padding-right: 4px;
}
.tc-open-questions-body::-webkit-scrollbar { width: 8px; }
.tc-notes-panel-body::-webkit-scrollbar { width: 8px; }
.tc-open-questions-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.15); border-radius: 8px; }
.tc-notes-panel-body::-webkit-scrollbar-track { background: rgba(0,0,0,0.15); border-radius: 8px; }
.tc-open-questions-body::-webkit-scrollbar-thumb { background: rgba(163,127,64,0.55); border-radius: 8px; }
.tc-notes-panel-body::-webkit-scrollbar-thumb { background: rgba(163,127,64,0.55); border-radius: 8px; }
.tc-open-questions-body::-webkit-scrollbar-thumb:hover { background: rgba(242,193,68,0.55); }
.tc-notes-panel-body::-webkit-scrollbar-thumb:hover { background: rgba(242,193,68,0.55); }
.tc-question { display: flex; align-items: flex-start; gap: 8px; padding: 7px 10px; background: rgba(239,137,40,0.09); border: 1px solid rgba(239,137,40,0.45); border-radius: 4px; margin-bottom: 5px; }
.tc-question__dot { width: 9px; height: 9px; border-radius: 50%; background: var(--orange); flex-shrink: 0; margin-top: 3px; }
.tc-question__text { font-size: 12px; color: var(--text-sec); line-height: 1.5; }

/* ─── Location Rows (board) ──────────────────────────────────────────────── */
.tc-location-row { display: flex; align-items: center; gap: 10px; padding: 8px 10px; background: var(--card-bg); border-radius: 4px; border: 1px solid rgba(97,71,40,0.55); margin-bottom: 4px; cursor: pointer; }
.tc-location-row.critical { border-color: rgba(209,48,30,0.65); }
.tc-location-dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tc-location-dot--critical { background: var(--red); }
.tc-location-dot--secondary { background: var(--orange); }
.tc-location-dot--default { background: var(--border); }
.tc-location-name { font-size: 13px; font-weight: 600; color: var(--text-pri); flex: 1; }
.tc-location-note { font-size: 11px; color: var(--text-muted); }

/* ─── Locations panel (murder board) ─────────────────────────────────────── */
.tc-board-locations-body {
  display: grid;
  grid-template-columns: 1.35fr 1fr;
  gap: 10px;
  align-items: stretch;
  min-height: 210px; /* gives the map real height */
}
.tc-board-locations-map-wrap {
  background: var(--nav-bg);
  border-radius: 6px;
  border: 1px solid rgba(97,71,40,0.60);
  overflow: hidden;
  position: relative;
  min-height: 200px;
}
.tc-board-locations-map {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
}
.tc-board-locations-map-wrap .leaflet-container {
  width: 100%;
  height: 100%;
}
.tc-board-locations-map-status {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  font-family: var(--font-mono);
  font-size: 9px;
  color: var(--text-muted);
  background: rgba(12,9,5,0.85);
  border: 1px solid rgba(97,71,40,0.65);
  border-radius: 6px;
  padding: 6px 8px;
}
.tc-board-locations-list {
  display: flex;
  flex-direction: column;
  gap: 4px;
  justify-content: center;
  min-width: 0;
}

@media (max-width: 1280px) {
  .tc-board-locations-body { grid-template-columns: 1.2fr 1fr; }
}

@media (max-width: 768px) {
  .tc-board-locations-body { grid-template-columns: 1fr; }
  .tc-board-locations-list { justify-content: flex-start; }
}

/* ─── Modal ──────────────────────────────────────────────────────────────── */
.tc-modal-overlay { position: fixed; inset: 0; background: var(--overlay-bg); z-index: 500; display: flex; align-items: center; justify-content: center; backdrop-filter: blur(3px); }
.tc-modal { background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.65); border-radius: 10px; box-shadow: 0 8px 44px rgba(0,0,0,0.88); position: relative; overflow: hidden; width: 100%; }
.tc-modal__accent-line { height: 3px; width: 100%; }
.tc-modal__body { padding: 28px; }
.tc-modal__title { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--text-pri); margin-bottom: 4px; }
.tc-modal__subtitle { font-family: var(--font-mono); font-size: 10px; letter-spacing: 1.5px; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 16px; }
.tc-modal__close { position: absolute; top: 14px; right: 14px; width: 30px; height: 30px; background: rgba(97,71,40,0.40); border: 1px solid rgba(128,96,54,0.55); border-radius: 5px; color: var(--text-sec); cursor: pointer; font-size: 15px; display: grid; place-items: center; }
.tc-modal__close:hover { background: rgba(97,71,40,0.65); color: var(--text-pri); }

/* ─── Buttons ────────────────────────────────────────────────────────────── */
.tc-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; padding: 0 22px; border-radius: var(--btn-radius); font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 0.5px; cursor: pointer; border: none; transition: all 0.15s; text-decoration: none; white-space: nowrap; }
.tc-btn--primary { background: var(--gold); color: var(--nav-bg); box-shadow: 0 4px 12px rgba(0,0,0,0.5), var(--glow-gold); }
.tc-btn--primary:hover { background: var(--gold-pale); }
.tc-btn--danger { background: var(--red); color: var(--white); box-shadow: 0 4px 12px rgba(0,0,0,0.5), var(--glow-red); }
.tc-btn--danger:hover { background: var(--red-glow); }
.tc-btn--ghost { background: rgba(97,71,40,0.25); border: 1px solid rgba(128,96,54,0.55); color: var(--text-sec); }
.tc-btn--ghost:hover { background: rgba(97,71,40,0.45); color: var(--text-pri); }

/* ─── Thinking Dots ──────────────────────────────────────────────────────── */
.tc-thinking { display: flex; align-items: center; gap: 8px; padding: 10px 14px; background: rgba(97,71,40,0.20); border-radius: 15px; color: var(--text-muted); font-size: 10px; width: fit-content; }
.tc-thinking__dot { width: 7px; height: 7px; border-radius: 50%; background: var(--gold-dim); animation: tcPulse 1.2s ease-in-out infinite; }
.tc-thinking__dot:nth-child(2) { animation-delay: 0.2s; }
.tc-thinking__dot:nth-child(3) { animation-delay: 0.4s; }
@keyframes tcPulse { 0%, 100% { opacity: 0.3; transform: scale(0.8); } 50% { opacity: 1; transform: scale(1.1); } }
@keyframes tcSlideIn { from { opacity: 0; transform: translateY(-8px); } to { opacity: 1; transform: translateY(0); } }
.tc-new-flash { animation: tcSlideIn 0.3s ease-out both; }

/* ════════════════════════════════════════════════════════════════════════════
   CONTENT PAGE SCREENS
   ════════════════════════════════════════════════════════════════════════════ */

/* ─── Content Page Shell ──────────────────────────────────────────────────── */
.tc-content-page { padding: 20px 36px 62px; min-height: calc(100vh - 62px); }
.tc-content-page--locations { display: flex; flex-direction: column; }
.tcp-header { margin-bottom: 16px; }
.tcp-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2px; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 6px; }
.tcp-title { font-family: var(--font-display); font-size: 24px; font-weight: 700; color: var(--text-pri); line-height: 1.1; margin: 0 0 6px; }
.tcp-subtitle { font-family: var(--font-body); font-size: 13px; color: var(--text-sec); margin: 0 0 14px; }
.tcp-divider { height: 1px; background: rgba(128,96,54,0.55); margin-bottom: 16px; }

/* ─── Filter Tabs ────────────────────────────────────────────────────────── */
.tc-filter-tabs { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 22px; }
.tc-filter-tab { height: 34px; padding: 0 16px; border-radius: 17px; border: 1px solid rgba(128,96,54,0.55); background: transparent; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-sec); cursor: pointer; transition: all 0.15s; letter-spacing: 0.3px; }
.tc-filter-tab:hover { border-color: rgba(242,193,68,0.55); color: var(--gold); }
.tc-filter-tab--active { background: rgba(242,193,68,0.16); border-color: rgba(242,193,68,0.65); color: var(--gold); }
.tc-filter-tab--danger { border-color: rgba(209,48,30,0.55); color: var(--red); }
.tc-filter-tab--danger.tc-filter-tab--active { background: rgba(209,48,30,0.14); }

/* ─── Empty State ────────────────────────────────────────────────────────── */
.tc-empty-state { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 64px 20px; text-align: center; }
.tc-empty-state__icon { width: 68px; height: 68px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; margin-bottom: 18px; background: rgba(97,71,40,0.25); color: var(--text-muted); }
.tc-empty-state__title { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-pri); margin-bottom: 10px; }
.tc-empty-state__body { font-size: 13px; color: var(--text-sec); max-width: 360px; line-height: 1.6; }

/* ─── Tasks ──────────────────────────────────────────────────────────────── */
.tc-task-group { margin-bottom: 10px; }
.tc-task-group__header { display: flex; align-items: center; justify-content: space-between; background: rgba(242,193,68,0.09); border-radius: var(--panel-radius) var(--panel-radius) 0 0; padding: 10px 18px; font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-dim); border: 1px solid rgba(128,96,54,0.50); border-bottom: none; }
.tc-task-group__header--locked { background: var(--panel-bg); color: var(--text-muted); border-color: rgba(97,71,40,0.50); }
.tc-task-group__lock-note { font-size: 11px; font-weight: 400; color: var(--text-muted); letter-spacing: 0; }
.tc-task-row { display: flex; align-items: center; gap: 14px; padding: 16px 18px; background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.55); border-top: none; transition: background 0.12s; }
.tc-task-row:last-child { border-radius: 0 0 var(--panel-radius) var(--panel-radius); }
.tc-task-row:hover:not(.tc-task-row--locked) { background: var(--panel-bg2); cursor: pointer; }
.tc-task-row--done { background: rgba(65,186,110,0.06); border-color: rgba(65,186,110,0.40); }
.tc-task-row--locked { opacity: 0.50; cursor: default; }
.tc-task-checkbox { width: 20px; height: 20px; border-radius: 4px; border: 1.5px solid rgba(128,96,54,0.65); background: var(--card-bg); display: grid; place-items: center; flex-shrink: 0; font-size: 12px; color: var(--green); transition: all 0.12s; }
.tc-task-checkbox--checked { border-color: var(--green); background: rgba(65,186,110,0.18); }
.tc-task-text { flex: 1; font-size: 14px; color: var(--text-pri); }
.tc-task-row--done .tc-task-text { color: var(--text-sec); text-decoration: line-through; }
.tc-task-meta { display: flex; align-items: center; gap: 10px; flex-shrink: 0; }
.tc-task-xp { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--gold); }
.tc-task-xp--done { color: var(--green); }
.tc-task-locked-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); background: rgba(97,71,40,0.35); border: 1px solid rgba(97,71,40,0.55); border-radius: 4px; padding: 3px 7px; }

/* ─── Notes ──────────────────────────────────────────────────────────────── */
.tc-note-add-wrap { margin-bottom: 20px; }
.tc-note-add-input { width: 100%; height: 46px; background: var(--input-bg); border: 1px solid rgba(128,96,54,0.70); border-radius: var(--panel-radius); padding: 0 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-pri); outline: none; transition: border-color 0.15s; }
.tc-note-add-input::placeholder { color: var(--text-muted); }
.tc-note-add-input:focus { border-color: rgba(242,193,68,0.65); }
.tc-notes-list { display: flex; flex-direction: column; gap: 10px; }
.tc-note-card { background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.55); border-radius: var(--panel-radius); padding: 16px 18px; transition: border-color 0.15s; }
.tc-note-card--pinned { border-color: rgba(239,137,40,0.65); background: rgba(239,137,40,0.05); }
.tc-note-card__top { display: flex; align-items: flex-start; justify-content: space-between; gap: 12px; margin-bottom: 6px; }
.tc-note-card__title { font-size: 15px; font-weight: 600; color: var(--text-pri); flex: 1; }
.tc-note-card__body { font-size: 13px; color: var(--text-sec); line-height: 1.6; margin: 0; }
.tc-note-card__actions { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.tc-note-pin-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--orange); background: rgba(239,137,40,0.14); border: 1px solid rgba(239,137,40,0.55); border-radius: 4px; padding: 2px 8px; letter-spacing: 0.5px; }
.tc-note-btn { width: 26px; height: 26px; border-radius: 5px; border: 1px solid rgba(128,96,54,0.55); background: transparent; color: var(--text-muted); font-size: 14px; cursor: pointer; display: grid; place-items: center; transition: all 0.12s; line-height: 1; }
.tc-note-btn:hover { border-color: rgba(242,193,68,0.55); color: var(--gold); }
.tc-note-btn--del:hover { border-color: rgba(209,48,30,0.60); color: var(--red); }

/* ─── Board: Notes card "see more" truncation ───────────────────────────── */
.tc-note-expand{
  display: flex;
  flex-direction: column;
  gap: 6px;
}
.tc-note-expand > summary{
  /* keep summary functional but visually placed after snippet */
  list-style: none;
}
.tc-note-expand > summary::-webkit-details-marker{ display:none; }
.tc-note-toggle{
  order: 3;
  align-self: flex-start;
  cursor: pointer;
  user-select: none;
  border: none;
  background: transparent;
  padding: 0;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
  color: var(--gold-dim);
  text-transform: uppercase;
}
.tc-note-toggle::after{
  content: "see more…";
}
.tc-note-expand[open] .tc-note-toggle::after{
  content: "see less…";
}
.tc-note-toggle:hover{ color: var(--gold); text-decoration: underline; }

/* Snippet: ~1.5 lines then fade */
.tc-note-snippet{
  order: 1;
  position: relative;
  overflow: hidden;
  line-height: 1.6;
  max-height: 2.4em; /* ~1.5 lines at 1.6 line-height */
}
.tc-note-snippet::after{
  content:'';
  position:absolute;
  left:0; right:0; bottom:0;
  height: 1.2em;
  background: linear-gradient(to bottom, rgba(0,0,0,0), var(--panel-bg));
  pointer-events:none;
}
.tc-note-full{ order: 1; display:none; }
.tc-note-expand[open] .tc-note-snippet{ display:none; }
.tc-note-expand[open] .tc-note-full{ display:block; }

/* ─── Evidence Grid ──────────────────────────────────────────────────────── */
.tc-evidence-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 16px; }
.tc-ev-card { display: flex; flex-direction: column; background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); overflow: hidden; text-decoration: none; transition: border-color 0.15s, transform 0.12s; }
.tc-ev-card:hover { border-color: rgba(128,96,54,0.80); transform: translateY(-2px); }
.tc-ev-card--new { border-color: rgba(242,193,68,0.65); box-shadow: 0 0 12px rgba(242,193,68,0.10); }
.tc-ev-card--critical { border-color: rgba(209,48,30,0.65); box-shadow: 0 0 12px rgba(209,48,30,0.12); }
.tc-ev-card__thumb { aspect-ratio: 16/9; background: var(--nav-bg); display: flex; align-items: center; justify-content: center; position: relative; overflow: hidden; }
.tc-ev-card__thumb img { width: 100%; height: 100%; object-fit: cover; }
.tc-ev-card__thumb-placeholder { font-family: var(--font-mono); font-size: 30px; font-weight: 700; color: rgba(128,96,54,0.45); }
.tc-ev-card__new-badge { position: absolute; top: 6px; right: 6px; background: var(--gold); color: var(--nav-bg); font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 2px 7px; border-radius: 3px; letter-spacing: 0.5px; }
.tc-ev-card__body { padding: 12px 14px; display: flex; flex-direction: column; gap: 6px; }
.tc-ev-card__meta { display: flex; align-items: center; gap: 7px; }
.tc-ev-card__code { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--gold-dim); }
.tc-ev-card__type { font-family: var(--font-mono); font-size: 9px; font-weight: 700; border: 1px solid; border-radius: 3px; padding: 1px 6px; letter-spacing: 0.3px; }
.tc-ev-card__title { font-size: 13px; font-weight: 600; color: var(--text-pri); line-height: 1.3; }
.tc-ev-card__cta { font-family: var(--font-mono); font-size: 11px; color: var(--gold-dim); margin-top: 2px; }
.tc-ev-card:hover .tc-ev-card__cta { color: var(--gold); }

/* ─── Evidence Viewer ────────────────────────────────────────────────────── */
/* Account for fixed top nav (62px) + fixed footer command bar (62px). */
.tc-ev-viewer { display: grid; grid-template-columns: 210px 1fr 190px; height: calc(100vh - 62px - 62px); }
.tc-ev-sidebar { background: var(--panel-bg2); border-right: 1px solid rgba(97,71,40,0.60); padding: 16px 0; overflow-y: auto; }
.tc-ev-sidebar__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold-dim); padding: 0 14px; margin-bottom: 4px; }
.tc-ev-sidebar__count { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); padding: 0 14px; margin-bottom: 14px; }
.tc-ev-sidebar__list { display: flex; flex-direction: column; }
.tc-ev-sidebar__item { display: flex; align-items: center; gap: 9px; padding: 10px 14px; font-family: var(--font-mono); font-size: 12px; color: var(--text-sec); text-decoration: none; transition: background 0.12s; }
.tc-ev-sidebar__item:hover { background: rgba(242,193,68,0.07); color: var(--text-pri); }
.tc-ev-sidebar__item--active { background: rgba(242,193,68,0.12); color: var(--gold); }
.tc-ev-sidebar__dot { width: 9px; height: 9px; border-radius: 50%; flex-shrink: 0; }
.tc-ev-dot--physical { background: #E17A21; }
.tc-ev-dot--digital { background: #3889E1; }
.tc-ev-dot--financial { background: #38A461; }
.tc-ev-dot--testimony { background: #8548C8; }
.tc-ev-dot--geographic { background: #E2B339; }
.tc-ev-dot--default { background: #6A553C; }
.tc-ev-main { padding: 22px 26px; overflow-y: auto; display: flex; flex-direction: column; gap: 18px; background: var(--page-bg); }
.tc-ev-main__breadcrumb { display: flex; align-items: center; gap: 10px; }
.tc-ev-main__code { font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--gold); }
.tc-ev-main__type { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); }
.tc-ev-main__frame { background: var(--nav-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); min-height: 300px; display: flex; align-items: center; justify-content: center; overflow: hidden; }
.tc-ev-main__media { max-width: 100%; max-height: 460px; object-fit: contain; }
.tc-ev-main__placeholder { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 1px; text-align: center; padding: 28px; }
.tc-ev-main__nav { display: flex; justify-content: space-between; }
.tc-ev-analysis { background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); padding: 16px 18px; }
.tc-ev-analysis__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold-dim); margin-bottom: 12px; }
.tc-ev-analysis__grid { display: grid; grid-template-columns: 160px 1fr; gap: 8px 14px; margin: 0; }
.tc-ev-analysis__grid dt { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); font-weight: 700; }
.tc-ev-analysis__grid dd { font-size: 12px; color: var(--text-sec); margin: 0; line-height: 1.5; }
.tc-ev-actions { background: var(--panel-bg2); border-left: 1px solid rgba(97,71,40,0.60); padding: 18px 14px; display: flex; flex-direction: column; gap: 10px; overflow-y: auto; }
.tc-ev-actions__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold-dim); margin-bottom: 4px; }
.tc-ev-action-btn { display: block; width: 100%; padding: 11px 14px; border-radius: 5px; border: 1px solid rgba(74,156,244,0.55); background: rgba(74,156,244,0.08); font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--blue); cursor: pointer; text-align: center; text-decoration: none; transition: background 0.12s; }
.tc-ev-action-btn:hover { background: rgba(74,156,244,0.16); }
.tc-ev-action-btn--pin { border-color: rgba(239,137,40,0.55); background: rgba(239,137,40,0.08); color: var(--orange); }
.tc-ev-action-btn--pin:hover { background: rgba(239,137,40,0.16); }
.tc-ev-action-btn--ghost { border-color: rgba(97,71,40,0.55); background: transparent; color: var(--text-sec); }
.tc-ev-action-btn--ghost:hover { background: rgba(97,71,40,0.25); color: var(--text-pri); }
.tc-ev-action-flash { font-family: var(--font-mono); font-size: 11px; color: var(--green); text-align: center; padding: 7px; background: rgba(65,186,110,0.12); border-radius: 5px; }

/* ─── Suspects List ──────────────────────────────────────────────────────── */
.tc-suspect-cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(300px, 1fr)); gap: 18px; }
.tc-sus-card { background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); padding: 18px; display: flex; flex-direction: column; gap: 12px; transition: border-color 0.15s; }
.tc-sus-card:hover:not(.tc-sus-card--locked) { border-color: rgba(128,96,54,0.80); }
.tc-sus-card--high { border-color: rgba(209,48,30,0.60); }
.tc-sus-card--med { border-color: rgba(239,137,40,0.55); }
.tc-sus-card--locked { opacity: 0.50; }
.tc-sus-card__top { display: flex; align-items: flex-start; gap: 14px; }
.tc-sus-card__avatar { width: 56px; height: 56px; border-radius: 50%; border: 2px solid; display: grid; place-items: center; font-family: var(--font-mono); font-size: 16px; font-weight: 700; flex-shrink: 0; overflow: hidden; }
.tc-sus-card__avatar img { width: 100%; height: 100%; object-fit: cover; }
.tc-sus-card__info { flex: 1; min-width: 0; }
.tc-sus-card__name { font-family: var(--font-display); font-size: 17px; font-weight: 700; color: var(--text-pri); }
.tc-sus-card__role { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); margin-top: 3px; }
.tc-sus-card__badge { display: inline-block; margin-top: 7px; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; border: 1px solid; border-radius: 4px; padding: 3px 8px; }
.tc-sus-card__badge--high { color: var(--red); border-color: rgba(209,48,30,0.65); background: rgba(209,48,30,0.12); }
.tc-sus-card__badge--med { color: var(--orange); border-color: rgba(239,137,40,0.65); background: rgba(239,137,40,0.12); }
.tc-sus-card__badge--low { color: var(--text-muted); border-color: rgba(97,71,40,0.55); }
.tc-sus-card__bio { font-size: 12px; color: var(--text-sec); line-height: 1.55; margin: 0; flex: 1; }
.tc-sus-card__interview-btn { display: block; width: 100%; padding: 12px; border-radius: 5px; border: 1.5px solid rgba(242,193,68,0.65); background: rgba(242,193,68,0.10); font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--gold); text-align: center; text-decoration: none; cursor: pointer; transition: background 0.15s; letter-spacing: 0.5px; }
.tc-sus-card__interview-btn:hover { background: rgba(242,193,68,0.20); }
.tc-sus-card__locked-btn { display: block; width: 100%; padding: 12px; border-radius: 5px; border: 1px solid rgba(97,71,40,0.50); background: transparent; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: not-allowed; letter-spacing: 0.5px; }

/* ─── Suspect Dossier ────────────────────────────────────────────────────── */
/* Account for fixed top nav (62px) + fixed footer command bar (62px). */
.tc-dossier { display: grid; grid-template-columns: 270px 1fr; height: calc(100vh - 62px - 62px); }
.tc-dossier__left { background: var(--panel-bg2); border-right: 1px solid rgba(97,71,40,0.60); padding: 22px 18px; display: flex; flex-direction: column; gap: 14px; overflow-y: auto; }
.tc-dossier__portrait { width: 100%; aspect-ratio: 3/4; max-height: 210px; background: var(--card-bg); border-radius: 5px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(97,71,40,0.60); }
.tc-dossier__portrait img { width: 100%; height: 100%; object-fit: cover; }
.tc-dossier__portrait-placeholder { font-family: var(--font-mono); font-size: 38px; font-weight: 700; }
.tc-dossier__name { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--text-pri); }
.tc-dossier__role { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); }
.tc-dossier__stats { display: flex; flex-direction: column; gap: 7px; margin-top: 10px; padding: 10px 0; border-top: 1px solid rgba(97,71,40,0.35); }
.tc-dossier__stat { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-dossier__stat-label { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.8px; flex-shrink: 0; }
.tc-dossier__bar-wrap { flex: 1; height: 7px; background: rgba(97,71,40,0.40); border-radius: 4px; overflow: hidden; }
.tc-dossier__bar { height: 100%; border-radius: 4px; transition: width 0.5s; }
.tc-dossier__bar--pressure { background: var(--orange); }
.tc-dossier__bar--trust { background: var(--blue); }
.tc-dossier__stat-val { font-family: var(--font-mono); font-size: 10px; color: var(--text-sec); text-align: right; }
/* Mood summary, badges, approach hint on dossier page */
.tc-dossier__mood-summary { font-family: var(--font-mono); font-size: 10px; color: var(--text-sec); font-style: italic; line-height: 1.55; margin-top: 8px; padding: 8px 0; border-top: 1px solid rgba(97,71,40,0.25); }
.tc-dossier__mood-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tc-dossier__mood-badge { font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 3px 8px; background: rgba(97,71,40,0.18); border: 1px solid rgba(97,71,40,0.45); border-radius: 3px; color: var(--text-sec); white-space: nowrap; }
.tc-dossier__approach-hint { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); font-style: italic; line-height: 1.5; margin-top: 8px; padding-top: 8px; border-top: 1px solid rgba(97,71,40,0.20); }
.tc-dossier__section-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-dim); text-transform: uppercase; }
.tc-dossier__evidence-chips { display: flex; flex-direction: column; gap: 5px; }
.tc-dossier__ev-chip { display: flex; align-items: center; gap: 7px; padding: 7px 10px; background: var(--card-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: 4px; text-decoration: none; transition: border-color 0.12s; }
.tc-dossier__ev-chip:hover { border-color: rgba(242,193,68,0.60); }
.tc-dossier__ev-chip-code { font-family: var(--font-mono); font-size: 10px; color: var(--gold-dim); flex-shrink: 0; }
.tc-dossier__ev-chip-title { font-size: 12px; color: var(--text-sec); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tc-dossier__questions { display: flex; flex-direction: column; gap: 5px; }
.tc-dossier__question { padding: 8px 12px; background: rgba(242,193,68,0.07); border: 1px solid rgba(242,193,68,0.35); border-radius: 4px; font-size: 12px; color: var(--text-sec); }
.tc-dossier__right { display: flex; flex-direction: column; overflow: hidden; }
.tc-dossier__tabs { display: flex; border-bottom: 1px solid rgba(97,71,40,0.60); padding: 0 22px; flex-shrink: 0; }
.tc-dossier__tab { height: 46px; padding: 0 18px; border: none; background: transparent; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--text-muted); cursor: pointer; position: relative; transition: color 0.12s; border-bottom: 2px solid transparent; }
.tc-dossier__tab:hover { color: var(--text-sec); }
.tc-dossier__tab--active { color: var(--gold); border-bottom-color: var(--gold); }
.tc-dossier__tab-body { flex: 1; overflow-y: auto; padding: 22px 26px; }
.tc-dossier__bio-text { font-size: 13px; color: var(--text-sec); line-height: 1.7; margin: 0; }

.tc-dossier__sheet-frame {
  width: 100%;
  max-width: 1140px; /* 150% of 760px */
  height: min(81vh, 630px); /* 150% of 54vh / 420px */
  border-radius: 6px;
  border: 1px solid rgba(97,71,40,0.60);
  background: rgba(0,0,0,0.18);
  padding: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
}
.tc-dossier__sheet-img {
  width: 100%;
  height: 100%;
  object-fit: contain; /* show full image inside smaller frame */
  border-radius: 4px;
}

/* Dossier biography should fit without page scrolling */
.tc-dossier__tab-body--biography { overflow-y: hidden; padding: 14px 18px; }
.tc-dossier__tab-body--biography .tc-dossier__section-label { font-size: 9px; letter-spacing: 1.3px; }
.tc-dossier__tab-body--biography .tc-dossier__bio-text { font-size: 12px; line-height: 1.55; }
.tc-dossier__bio-text--clamped {
  display: -webkit-box;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 8;
  overflow: hidden;
}
.tc-dossier__topics { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 12px; }
.tc-dossier__topic-chip { padding: 4px 10px; background: rgba(74,156,244,0.12); border: 1px solid rgba(74,156,244,0.45); border-radius: 4px; font-family: var(--font-mono); font-size: 10px; color: var(--blue); }
.tc-dossier__interview-transcript { display: flex; flex-direction: column; gap: 10px; }
.tc-ev-linked-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; margin-top: 12px; }
.tc-ev-linked-card { display: flex; flex-direction: column; gap: 4px; padding: 10px 12px; background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: 4px; text-decoration: none; transition: border-color 0.12s; }
.tc-ev-linked-card:hover { border-color: rgba(242,193,68,0.60); }
.tc-ev-linked-code { font-family: var(--font-mono); font-size: 10px; color: var(--gold-dim); }
.tc-ev-linked-title { font-size: 12px; color: var(--text-sec); }
.tc-dossier__contradiction { display: flex; align-items: flex-start; gap: 9px; padding: 8px 0; border-bottom: 1px solid rgba(97,71,40,0.40); font-size: 12px; color: var(--text-sec); }
.tc-dossier__contradiction-dot { width: 8px; height: 8px; border-radius: 50%; background: var(--red); flex-shrink: 0; margin-top: 3px; }

/* ─── Timeline View ──────────────────────────────────────────────────────── */
.tc-timeline-wrap { overflow-x: auto; padding-bottom: 8px; }
.tc-tl-row { display: flex; align-items: center; gap: 14px; margin-bottom: 26px; }
.tc-tl-row__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; color: var(--text-muted); width: 66px; flex-shrink: 0; text-align: right; }
.tc-tl-row__track { flex: 1; position: relative; height: 60px; min-width: 600px; }
.tc-tl-row__line { position: absolute; top: 50%; left: 0; right: 0; height: 2px; background: rgba(97,71,40,0.55); transform: translateY(-50%); }
.tc-tl-event { position: absolute; display: flex; flex-direction: column; align-items: center; transform: translateX(-50%); cursor: pointer; }
.tc-tl-event__time { font-family: var(--font-mono); font-size: 10px; color: var(--text-sec); margin-bottom: 5px; white-space: nowrap; }
.tc-tl-event__dot { width: 15px; height: 15px; border-radius: 50%; background: rgba(97,71,40,0.70); border: 2px solid rgba(128,96,54,0.65); position: relative; z-index: 2; transition: box-shadow 0.15s, background 0.15s; }
.tc-tl-event:hover .tc-tl-event__dot { box-shadow: 0 0 9px rgba(242,193,68,0.55); background: rgba(242,193,68,0.45); }
.tc-tl-event--critical .tc-tl-event__time { color: var(--red); font-weight: 700; }
.tc-tl-event--critical .tc-tl-event__dot { background: var(--red); border-color: var(--red); box-shadow: var(--glow-red); }
.tc-tl-event--selected .tc-tl-event__dot { background: var(--gold); border-color: var(--gold); box-shadow: var(--glow-gold); }
.tc-tl-event__label { font-size: 10px; color: var(--text-muted); margin-top: 5px; white-space: nowrap; text-align: center; max-width: 88px; overflow: hidden; text-overflow: ellipsis; }
.tc-tl-detail { margin-top: 18px; background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); padding: 18px 22px; }
.tc-tl-detail__time { font-family: var(--font-display); font-size: 20px; font-weight: 700; color: var(--text-pri); margin-bottom: 8px; }
.tc-tl-detail__badge { display: inline-block; font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; border: 1px solid; border-radius: 4px; padding: 3px 8px; margin-bottom: 12px; }
.tc-tl-detail__badge--critical { color: var(--red); border-color: rgba(209,48,30,0.65); background: rgba(209,48,30,0.12); }
.tc-tl-detail__body { font-size: 13px; color: var(--text-sec); line-height: 1.65; margin: 0 0 12px; }
.tc-tl-detail__provenance { font-size: 11px; color: var(--text-muted); display: flex; flex-wrap: wrap; gap: 7px; align-items: center; }
.tc-tl-detail__prov-chip { font-family: var(--font-mono); font-size: 10px; background: rgba(209,48,30,0.12); border: 1px solid rgba(209,48,30,0.50); color: var(--red); border-radius: 4px; padding: 3px 7px; }
.tc-tl-detail__close { margin-top: 12px; background: transparent; border: none; font-family: var(--font-mono); font-size: 11px; color: var(--gold-dim); cursor: pointer; padding: 0; }
.tc-tl-detail__close:hover { color: var(--gold); }

/* ─── Locations ──────────────────────────────────────────────────────────── */
.tc-locations-layout { display: grid; grid-template-columns: 1fr 400px; gap: 18px; flex: 1; min-height: 0; }
.tc-map-panel { background: var(--nav-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); display: flex; align-items: center; justify-content: center; min-height: 360px; overflow: hidden; position: relative; }
.tc-map-panel .tc-map-tiles { filter: brightness(0.55) sepia(0.3); }
.tc-map-panel__placeholder { font-family: var(--font-mono); font-size: 12px; color: var(--text-muted); letter-spacing: 2px; }
.tc-locations-list { background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); padding: 0; overflow-y: auto; }
.tc-locations-list__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 2px; color: var(--gold-dim); padding: 14px 18px 10px; border-bottom: 1px solid rgba(97,71,40,0.55); }
.tc-loc-row { display: flex; align-items: flex-start; gap: 12px; padding: 14px 18px; border-bottom: 1px solid rgba(97,71,40,0.40); cursor: pointer; transition: background 0.12s; }
.tc-loc-row:hover:not(.tc-loc-row--locked) { background: rgba(242,193,68,0.06); }
.tc-loc-row--critical { border-left: 3px solid var(--red); }
.tc-loc-row--selected { background: rgba(242,193,68,0.09); }
.tc-loc-row--locked { opacity: 0.40; cursor: default; }
.tc-loc-dot { width: 11px; height: 11px; border-radius: 50%; flex-shrink: 0; margin-top: 3px; }
.tc-loc-info { flex: 1; }
.tc-loc-name { font-size: 14px; font-weight: 600; color: var(--text-pri); }
.tc-loc-status { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); margin-top: 3px; }
.tc-loc-status--critical { color: var(--red); }
.tc-loc-detail { margin-top: 14px; background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); padding: 18px 22px; }
.tc-loc-detail__name { font-family: var(--font-display); font-size: 18px; font-weight: 700; color: var(--text-pri); margin-bottom: 10px; }
.tc-loc-detail__body { font-size: 13px; color: var(--text-sec); line-height: 1.65; margin: 0 0 10px; }
.tc-loc-detail__status { font-family: var(--font-mono); font-size: 11px; color: var(--gold-dim); }

/* ─── Files Table ────────────────────────────────────────────────────────── */
.tc-files-table { background: var(--panel-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: var(--panel-radius); overflow: hidden; }
.tc-files-table__head { display: grid; grid-template-columns: 1fr 80px 90px 120px 80px; padding: 12px 18px; border-bottom: 1px solid rgba(97,71,40,0.60); background: var(--nav-bg); }
.tc-files-table__head .tc-files-table__col { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--text-muted); text-transform: uppercase; }
.tc-files-table__row { display: grid; grid-template-columns: 1fr 80px 90px 120px 80px; padding: 14px 18px; border-bottom: 1px solid rgba(97,71,40,0.40); transition: background 0.12s; align-items: center; }
.tc-files-table__row:last-child { border-bottom: none; }
.tc-files-table__row:hover { background: var(--panel-bg2); }
.tc-files-table__col { font-size: 13px; color: var(--text-pri); }
.tc-files-table__col--name { display: flex; align-items: center; gap: 9px; }
.tc-files-table__col--dim { color: var(--text-sec); font-size: 12px; }
.tc-files-table__col--action { display: flex; justify-content: flex-end; }
.tc-files-table__icon { font-size: 16px; }
.tc-files-table__type-badge { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 0.5px; padding: 3px 7px; border-radius: 4px; background: rgba(97,71,40,0.40); color: var(--text-sec); border: 1px solid rgba(128,96,54,0.60); }
.tc-files-view-btn { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--gold); background: rgba(242,193,68,0.12); border: 1px solid rgba(242,193,68,0.55); border-radius: 5px; padding: 6px 12px; text-decoration: none; transition: background 0.12s; }
.tc-files-view-btn:hover { background: rgba(242,193,68,0.22); }
.tc-files-view-btn--disabled { color: var(--text-muted); background: transparent; border-color: rgba(97,71,40,0.50); }

/* ─── Interview Room ─────────────────────────────────────────────────────── */
.tc-interview-statusbar { position: sticky; top: 62px; z-index: 40; display: flex; align-items: center; justify-content: space-between; padding: 0 22px; height: 48px; background: var(--nav-bg); border-bottom: 1px solid rgba(97,71,40,0.65); }
.tc-interview-statusbar__left { display: flex; align-items: center; gap: 12px; }
.tc-interview-statusbar__dot { width: 11px; height: 11px; border-radius: 50%; background: var(--text-muted); flex-shrink: 0; }
.tc-interview-statusbar__dot--active { background: var(--green); box-shadow: 0 0 6px var(--green); animation: tcPulse 1s infinite; }
.tc-interview-statusbar__label { font-family: var(--font-mono); font-size: 12px; font-weight: 700; letter-spacing: 1px; color: var(--text-pri); }
.tc-interview-statusbar__sub { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); margin-top: 1px; }
.tc-interview-statusbar__right { display: flex; align-items: center; gap: 16px; }
.tc-interview-statusbar__phase { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); }
.tc-interview-statusbar__ready { font-family: var(--font-mono); font-size: 11px; font-weight: 700; }
.tc-interview-back-btn { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); text-decoration: none; padding: 6px 12px; border: 1px solid rgba(97,71,40,0.60); border-radius: 5px; transition: all 0.12s; }
.tc-interview-back-btn:hover { color: var(--gold); border-color: rgba(242,193,68,0.60); }

/* Account for fixed top nav (62px) + interview statusbar (48px) + footer command bar (62px). */
.tc-interview-layout { display: grid; grid-template-columns: 290px 1fr 260px; height: calc(100vh - 62px - 48px - 62px); overflow: hidden; }
.tc-interview-layout--embedded { height: auto; grid-template-columns: 300px 1fr 200px; flex: 1 1 auto; min-height: 0; }

.tc-board-embedded-interview{
  height: 100%;
  min-height: 0;
  background: var(--page-bg);
  border: 1px solid rgba(97,71,40,0.60);
  border-radius: var(--panel-radius);
  overflow: hidden;
  box-shadow: var(--shadow-panel);
  display: flex;
  flex-direction: column;
}
.tc-board-embedded-interview .tc-interview-statusbar{
  position: relative;
  top: auto;
  z-index: 1;
  flex: 0 0 auto;
  padding: 6px 10px;
  height: 42px;
  min-height: 0;
}
.tc-board-embedded-interview .tc-interview-statusbar__right{
  gap: 6px;
  flex-wrap: nowrap;
}
.tc-board-embedded-interview .tc-interview-statusbar__sub{
  display: none;
}
.tc-board-embedded-interview .tc-interview-layout{
  flex: 1 1 auto;
  min-height: 0;
}
.tc-board-embedded-interview .tc-interview-left{
  padding: 8px 10px;
  gap: 6px;
  overflow-x: hidden;
}
.tc-board-embedded-interview .tc-interview-ev-chips{
  flex-direction: column;
}
.tc-board-embedded-interview .tc-interview-ev-chip{
  min-width: 0;
  padding: 4px 6px;
}
.tc-board-embedded-interview .tc-interview-ev-chip--confront{
  padding: 4px 7px;
  font-size: 9px;
}
.tc-board-embedded-interview .tc-interview-approach-bar {
  gap: 3px;
  flex-wrap: wrap;
  margin-bottom: 4px;
  padding-bottom: 4px;
}
.tc-board-embedded-interview .tc-interview-approach-btn {
  font-size: 9px;
  padding: 2px 6px;
}
.tc-board-embedded-interview .tc-interview-approach-label {
  display: none;
}

.tc-board-embedded-interview .tc-interview-right{
  padding-bottom: 6px;
}
.tc-board-embedded-interview .tc-interview-portrait{
  max-height: 200px;
  aspect-ratio: 3/4;
}
.tc-board-embedded-interview .tc-interview-portrait img{
  object-position: center top;
}
.tc-board-embedded-interview .tc-interview-ident__name{
  font-size: 12px;
  letter-spacing: 1px;
}
.tc-board-embedded-interview .tc-interview-bars{
  gap: 3px;
  margin-top: 4px;
  padding: 4px 0;
}
.tc-board-embedded-interview .tc-interview-section-label{
  font-size: 9px;
}
.tc-board-embedded-interview .tc-interview-suggestion{
  padding: 6px 8px;
  font-size: 11px;
}
.tc-board-embedded-interview .tc-interview-messages{
  padding: 12px 12px;
}
.tc-board-embedded-interview .tc-interview-input-bar{
  padding: 8px 10px;
}
.tc-board-interview-select{
  height: 32px;
  background: var(--input-bg);
  border: 1px solid rgba(128,96,54,0.70);
  border-radius: 7px;
  padding: 0 10px;
  font-family: var(--font-mono);
  font-size: 11px;
  color: var(--text-pri);
  outline: none;
}

.tc-interview-left { background: var(--panel-bg2); border-right: 1px solid rgba(97,71,40,0.60); padding: 16px 14px; overflow-y: auto; display: flex; flex-direction: column; gap: 12px; }
.tc-interview-portrait { width: 100%; aspect-ratio: 4/3; max-height: 250px; background: var(--card-bg); border-radius: 5px; overflow: hidden; display: flex; align-items: center; justify-content: center; border: 1px solid rgba(97,71,40,0.60); flex-shrink: 0; }
.tc-interview-portrait img { width: 100%; height: 100%; object-fit: cover; }
.tc-interview-portrait__placeholder { font-family: var(--font-mono); font-size: 32px; font-weight: 700; }
.tc-interview-ident__name { font-family: var(--font-mono); font-size: 14px; font-weight: 700; letter-spacing: 2px; color: var(--text-pri); }
.tc-interview-ident__role { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); margin-top: 2px; }

.tc-interview-bars { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; padding: 10px 0; border-top: 1px solid rgba(97,71,40,0.35); }
.tc-interview-bar-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
.tc-interview-bar-label { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.8px; flex-shrink: 0; }
.tc-interview-bar-val { font-family: var(--font-mono); font-size: 10px; color: var(--text-sec); text-align: right; flex-shrink: 0; }
/* Mood summary line under the label rows */
.tc-interview-mood-summary { font-family: var(--font-mono); font-size: 10px; color: var(--text-sec); font-style: italic; line-height: 1.55; margin-top: 8px; padding: 8px 0; border-top: 1px solid rgba(97,71,40,0.25); }
/* Mood badge chips */
.tc-interview-mood-badges { display: flex; flex-wrap: wrap; gap: 4px; margin-top: 6px; }
.tc-interview-mood-badge { font-family: var(--font-mono); font-size: 9px; font-weight: 700; padding: 3px 7px; background: rgba(97,71,40,0.2); border: 1px solid rgba(97,71,40,0.5); border-radius: 3px; color: var(--text-sec); white-space: nowrap; }

.tc-interview-section-label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-dim); text-transform: uppercase; }
/* Evidence chip groups (present + confront pair) */
.tc-interview-ev-chips { display: flex; flex-direction: column; gap: 5px; }
.tc-interview-ev-chip-group { display: flex; gap: 4px; }
.tc-interview-ev-chip { display: flex; flex: 1; flex-direction: column; gap: 3px; padding: 7px 8px; background: var(--card-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: 4px; cursor: pointer; transition: border-color 0.12s; text-align: left; }
a.tc-interview-ev-chip { text-decoration: none; color: inherit; }
.tc-interview-ev-chip:hover { border-color: rgba(242,193,68,0.60); }
.tc-interview-ev-chip__code { font-family: var(--font-mono); font-size: 10px; color: var(--gold-dim); font-weight: 700; }
.tc-interview-ev-chip__title { font-size: 11px; color: var(--text-sec); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
/* Confront chip variant */
.tc-interview-ev-chip--confront { flex: 0 0 auto; font-family: var(--font-mono); font-size: 10px; font-weight: 700; color: var(--orange, #ef8928); border-color: rgba(239,137,40,0.45); padding: 7px 10px; justify-content: center; align-items: center; }
.tc-interview-ev-chip--confront:hover { border-color: rgba(239,137,40,0.85); background: rgba(239,137,40,0.08); }
/* Approach bar */
.tc-interview-approach-bar { display: flex; align-items: center; gap: 5px; flex-wrap: wrap; margin-bottom: 8px; padding-bottom: 8px; border-bottom: 1px solid rgba(97,71,40,0.30); }
.tc-interview-approach-label { font-family: var(--font-mono); font-size: 9px; font-weight: 700; color: var(--text-muted); letter-spacing: 0.8px; margin-right: 4px; white-space: nowrap; }
.tc-interview-approach-btn { font-family: var(--font-mono); font-size: 10px; font-weight: 700; padding: 4px 9px; border-radius: 4px; border: 1px solid rgba(97,71,40,0.45); background: var(--card-bg); color: var(--text-muted); cursor: pointer; transition: all 0.12s; white-space: nowrap; }
.tc-interview-approach-btn:hover { border-color: rgba(242,193,68,0.55); color: var(--text-sec); }
.tc-interview-approach-btn--active { border-color: rgba(242,193,68,0.75); color: var(--gold); background: rgba(242,193,68,0.08); }
.tc-interview-approach-btn:disabled { opacity: 0.45; cursor: not-allowed; }
/* Approach hint (hints-enabled only) */
.tc-interview-approach-hint { font-family: var(--font-mono); font-size: 10px; color: var(--text-muted); font-style: italic; line-height: 1.5; margin-top: 6px; padding: 6px 8px; border-left: 2px solid rgba(242,193,68,0.4); background: rgba(242,193,68,0.04); border-radius: 0 3px 3px 0; }
.tc-interview-suggestions { display: flex; flex-direction: column; gap: 5px; }
.tc-interview-suggestion { width: 100%; padding: 9px 12px; background: var(--card-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: 4px; font-family: var(--font-mono); font-size: 12px; color: var(--text-sec); text-align: left; cursor: pointer; transition: all 0.12s; }
.tc-interview-suggestion:hover { border-color: rgba(242,193,68,0.60); color: var(--gold); background: rgba(242,193,68,0.06); }

.tc-interview-chat { display: flex; flex-direction: column; background: var(--page-bg); min-height: 0; }
.tc-interview-messages { flex: 1; min-height: 0; overflow-y: auto; padding: 22px 26px; display: flex; flex-direction: column; gap: 14px; scroll-behavior: smooth; }
.tc-interview-empty { color: var(--text-muted); font-family: var(--font-mono); font-size: 13px; text-align: center; padding: 48px 20px; }
.tc-interview-msg { display: flex; flex-direction: column; gap: 5px; max-width: 88%; }
.tc-interview-msg--detective { align-self: flex-start; }
.tc-interview-msg--suspect { align-self: flex-end; }
.tc-interview-msg__label { font-family: var(--font-mono); font-size: 10px; font-weight: 700; letter-spacing: 1px; }
.tc-interview-msg--detective .tc-interview-msg__label { color: var(--gold-dim); }
.tc-interview-msg--suspect .tc-interview-msg__label { color: var(--red); text-align: right; }
.tc-interview-msg__text { font-size: 14px; line-height: 1.7; padding: 12px 16px; margin: 0; max-width: 72ch; word-break: break-word; }
.tc-interview-msg__text .tc-msg-para { margin: 0 0 10px; }
.tc-interview-msg__text .tc-msg-para:last-child { margin-bottom: 0; }
.tc-interview-msg__text .tc-msg-list { margin: 6px 0 10px 0; padding-left: 20px; list-style: disc; }
.tc-interview-msg__text .tc-msg-list:last-child { margin-bottom: 0; }
.tc-interview-msg__text .tc-msg-list li { margin-bottom: 5px; line-height: 1.6; }
.tc-interview-msg__text strong { font-weight: 700; }
.tc-interview-msg--detective .tc-interview-msg__text { background: var(--card-hov); border: 1px solid rgba(97,71,40,0.60); color: var(--text-pri); border-radius: 2px 12px 12px 12px; }
.tc-interview-msg--suspect .tc-interview-msg__text { background: rgba(209,48,30,0.20); border: 1px solid rgba(209,48,30,0.55); color: var(--text-pri); border-radius: 12px 2px 12px 12px; }

.tc-interview-input-bar { border-top: 1px solid rgba(97,71,40,0.65); padding: 14px 18px; background: var(--nav-bg); flex-shrink: 0; position: sticky; bottom: 0; }
.tc-interview-input-form { display: flex; gap: 10px; }
.tc-interview-input { flex: 1; height: 44px; background: var(--input-bg); border: 1px solid rgba(128,96,54,0.70); border-radius: 7px; padding: 0 16px; font-family: var(--font-mono); font-size: 13px; color: var(--text-pri); outline: none; transition: border-color 0.15s; }
.tc-interview-input::placeholder { color: var(--text-muted); }
.tc-interview-input:focus { border-color: rgba(242,193,68,0.70); }
.tc-interview-input:disabled { opacity: 0.5; }
.tc-interview-send-btn { height: 44px; padding: 0 22px; background: var(--gold); border: none; border-radius: 7px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; color: var(--nav-bg); cursor: pointer; transition: background 0.12s; letter-spacing: 0.5px; white-space: nowrap; }
.tc-interview-send-btn:hover { background: var(--gold-pale); }
.tc-interview-send-btn:disabled { opacity: 0.5; cursor: not-allowed; }

.tc-interview-right { background: var(--panel-bg2); border-left: 1px solid rgba(97,71,40,0.60); overflow-y: auto; display: flex; flex-direction: column; }
.tc-interview-update { padding: 12px 16px; border-bottom: 1px solid rgba(97,71,40,0.45); }
.tc-interview-update--red { border-left: 3px solid rgba(209,48,30,0.75); background: rgba(209,48,30,0.08); }
.tc-interview-update--gold { border-left: 3px solid rgba(242,193,68,0.65); background: rgba(242,193,68,0.05); }
.tc-interview-update--orange { border-left: 3px solid rgba(239,137,40,0.65); background: rgba(239,137,40,0.06); }
.tc-interview-update__title { font-family: var(--font-mono); font-size: 11px; font-weight: 700; color: var(--text-pri); margin-bottom: 3px; }
.tc-interview-update__body { font-size: 12px; color: var(--text-sec); }
.tc-interview-readiness-block { padding: 16px; border-top: 1px solid rgba(97,71,40,0.55); margin-top: auto; }
.tc-interview-readiness-box { background: var(--card-bg); border: 1px solid rgba(97,71,40,0.60); border-radius: 5px; padding: 14px; }
.tc-interview-readiness-status { font-family: var(--font-display); font-size: 18px; font-weight: 700; }
.tc-interview-readiness-hint { font-size: 12px; color: var(--text-sec); margin-top: 5px; line-height: 1.5; }
.tc-interview-back-suspects { display: block; padding: 12px 16px; font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); text-decoration: none; border-top: 1px solid rgba(97,71,40,0.50); transition: color 0.12s; }
.tc-interview-back-suspects:hover { color: var(--gold); }

/* ─── Case Lobby responsive layout classes ──────────────────────────────── */
.tc-lobby-wrap {
  min-height: calc(100vh - 62px);
  padding: 28px 56px 40px;
  background: var(--page-bg);
}
.tc-lobby-header {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 20px;
  flex-wrap: wrap;
  gap: 16px;
}
.tc-lobby-main {
  display: grid;
  grid-template-columns: 1fr 360px;
  gap: 20px;
  align-items: start;
}
.tc-lobby-cases {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 18px;
}
.tc-lobby-eyebrow { font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 2.5px; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 6px; }
.tc-lobby-title { font-family: var(--font-display); font-size: 32px; font-weight: 700; color: var(--text-pri); margin: 0 0 8px; }
.tc-lobby-subtitle { font-family: var(--font-body); font-size: 13px; color: var(--text-sec); margin: 0; max-width: 600px; }
.tc-lobby-xp-rank { font-family: var(--font-mono); font-size: 11px; letter-spacing: 1.5px; color: var(--gold-dim); text-transform: uppercase; margin-bottom: 4px; }
.tc-lobby-xp-value { font-family: var(--font-display); font-size: 22px; font-weight: 700; color: var(--gold); margin-bottom: 6px; }
.tc-lobby-xp-label { font-family: var(--font-mono); font-size: 11px; color: var(--text-muted); }
.tc-lobby-case-card { background: var(--card-bg); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 14px rgba(0,0,0,0.5); transition: transform 0.15s, box-shadow 0.15s; }
.tc-lobby-case-card:hover { transform: translateY(-3px); box-shadow: 0 10px 28px rgba(0,0,0,0.65); }
.tc-lobby-case-cover { height: 155px; background: #1E1710; position: relative; overflow: hidden; }
.tc-lobby-case-cover img { width: 100%; height: 100%; object-fit: cover; display: block; }
.tc-lobby-case-cover-placeholder { width: 100%; height: 100%; display: grid; place-items: center; font-family: var(--font-mono); font-size: 12px; color: rgba(144,112,46,0.3); }
.tc-lobby-case-tag { position: absolute; top: 10px; left: 10px; border-radius: 4px; padding: 3px 8px; }
.tc-lobby-case-status { position: absolute; top: 10px; right: 10px; border-radius: 4px; padding: 3px 8px; }
.tc-lobby-case-xp { position: absolute; bottom: 8px; left: 10px; font-family: var(--font-mono); font-size: 11px; color: var(--gold); }
.tc-lobby-case-body { padding: 12px 14px 14px; }
.tc-lobby-case-title { font-family: var(--font-display); font-size: 15px; font-weight: 700; margin-bottom: 3px; line-height: 1.3; }
.tc-lobby-case-tagline { font-family: var(--font-mono); font-size: 11px; color: var(--text-dim); margin-bottom: 10px; }
.tc-lobby-case-summary { font-size: 12px; color: var(--text-sec); line-height: 1.55; margin: 0 0 10px; }
.tc-lobby-case-stats { display: flex; justify-content: space-between; align-items: center; margin-bottom: 10px; }
.tc-lobby-case-stat { font-family: var(--font-mono); font-size: 11px; color: var(--text-sec); }
.tc-lobby-case-btn { display: block; width: 100%; text-align: center; background: var(--gold); color: var(--nav-bg); border-radius: 7px; padding: 9px; font-family: var(--font-mono); font-size: 12px; font-weight: 700; text-decoration: none; letter-spacing: 0.5px; box-shadow: 0 2px 8px rgba(0,0,0,0.4), 0 0 12px rgba(226,179,57,0.2); transition: background 0.15s; }
.tc-lobby-case-btn:hover { background: #EED88C; }
.tc-lobby-case-btn--unlock { background: rgba(56,137,225,0.1); border: 1px solid rgba(56,137,225,0.3); color: var(--blue); }
.tc-lobby-case-btn--locked { background: rgba(76,55,31,0.2); border: 1px solid rgba(76,55,31,0.3); color: var(--text-dim); }
.tc-lobby-sidebar { background: rgba(14,10,6,0.65); border: 1px solid rgba(144,112,46,0.3); border-radius: 10px; overflow: hidden; box-shadow: 0 4px 12px rgba(0,0,0,0.4); }
.tc-lobby-sidebar__header { background: rgba(226,179,57,0.07); padding: 10px 18px; border-bottom: 1px solid rgba(144,112,46,0.2); font-family: var(--font-mono); font-size: 11px; font-weight: 700; letter-spacing: 1.5px; color: var(--gold-dim); }
.tc-lobby-sidebar__link { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 5px; text-decoration: none; margin-bottom: 5px; transition: background 0.15s; }
.tc-lobby-sidebar__link-label { font-family: var(--font-body); font-size: 13px; font-weight: 600; }
.tc-lobby-sidebar__link-sub { font-size: 11px; color: var(--text-dim); }

/* ─── Files view: mobile cards / desktop table toggle ───────────────────── */
.tc-files-card-list { display: none; }
@media (max-width: 640px) {
    .tc-files-table--desktop { display: none; }
    .tc-files-card-list { display: block; }
}

/* ─── Timeline: larger touch targets on dots ─────────────────────────────── */
.tc-tl-event { min-width: 44px; padding: 4px; }
.tc-tl-event__dot { width: 20px; height: 20px; }

/* ─── Interview Room mobile info button ──────────────────────────────────── */
.tc-interview-mobile-info-btn {
    display: none;
    padding: 8px 14px;
    border-bottom: 1px solid rgba(97,71,40,0.45);
    background: var(--panel-bg2);
    flex-shrink: 0;
}
@media (max-width: 768px) {
    .tc-interview-mobile-info-btn { display: block; }
}
@media (min-width: 1025px) {
    .tc-interview-mobile-info-btn { display: none; }
}

/* ─── Murder Board mobile panel tabs ────────────────────────────────────── */
.tc-board-mobile-tabs {
    display: none;
    overflow-x: auto;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding: 10px 12px 0;
    gap: 6px;
    border-bottom: 1px solid rgba(97,71,40,0.5);
    background: var(--cork-dark);
    flex-shrink: 0;
}
.tc-board-mobile-tabs::-webkit-scrollbar { display: none; }
.tc-board-mobile-tab {
    flex-shrink: 0;
    padding: 8px 16px;
    border-radius: 8px 8px 0 0;
    border: 1px solid rgba(97,71,40,0.5);
    border-bottom: none;
    background: rgba(97,71,40,0.15);
    font-family: var(--font-mono);
    font-size: 11px;
    font-weight: 700;
    color: var(--text-muted);
    cursor: pointer;
    white-space: nowrap;
    transition: background 0.12s, color 0.12s;
}
.tc-board-mobile-tab:hover { color: var(--text-sec); background: rgba(97,71,40,0.25); }
.tc-board-mobile-tab--active {
    background: var(--cork-bg);
    color: var(--gold);
    border-color: rgba(163,127,64,0.6);
    border-bottom: 1px solid var(--cork-bg);
    margin-bottom: -1px;
}
@media (max-width: 768px) {
    .tc-board-mobile-tabs { display: flex; }
    .tc-murder-board-grid { grid-template-columns: 1fr !important; }
}

/* ─── Suspect Dossier mobile header ─────────────────────────────────────── */
.tc-dossier-mobile-header {
    display: none;
    align-items: center;
    gap: 14px;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(97,71,40,0.5);
    background: var(--panel-bg2);
    flex-shrink: 0;
}
.tc-dossier-mobile-avatar {
    width: 56px; height: 56px; border-radius: 50%;
    border: 2px solid rgba(97,71,40,0.6);
    background: var(--card-bg);
    display: grid; place-items: center;
    flex-shrink: 0; overflow: hidden;
}
@media (max-width: 1024px) {
    .tc-dossier-mobile-header { display: flex; }
    .tc-dossier__left { display: none; }
    .tc-dossier { grid-template-columns: 1fr; height: calc(100vh - 62px - 62px); }
}

/* ──────────────────────────────────────────────────────────────────────────
 * Auth pages (login / register)
 * ────────────────────────────────────────────────────────────────────────── */
.auth-root{
  min-height: 100vh;
  display: grid;
  grid-template-columns: 60% 1fr;
}
.auth-hero{
  background: #0D0A04;
  position: relative;
  padding: 56px 56px 48px;
  overflow: hidden;
  border-right: 1px solid rgba(163,127,64,0.25);
}
.auth-hero::before{
  content:'';
  position:absolute; inset:0;
  background:
    radial-gradient(1200px 700px at 20% 30%, rgba(242,193,68,0.08), transparent 60%),
    radial-gradient(900px 600px at 70% 60%, rgba(209,48,30,0.06), transparent 60%),
    radial-gradient(700px 500px at 60% 10%, rgba(74,156,244,0.05), transparent 60%);
  pointer-events:none;
}
.auth-hero__logo{ position: relative; display:flex; gap:12px; align-items:center; margin-bottom: 34px; }
.auth-hero__badge{ width:44px; height:44px; border-radius:8px; display:grid; place-items:center; background: var(--gold); color: var(--nav-bg); font-size:18px; font-weight:900; box-shadow: var(--glow-gold); }
.auth-hero__name{ font-family: var(--font-mono); font-size: 12px; font-weight: 800; letter-spacing: 2px; color: var(--gold-dim); text-transform: uppercase; }
.auth-hero__sub{ font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); letter-spacing: 1px; }
.auth-hero__headline{ position: relative; font-family: var(--font-display); font-size: 44px; line-height: 1.02; margin: 0 0 14px; color: var(--text-pri); }
.auth-hero__tagline{ position: relative; font-size: 14px; color: var(--text-sec); max-width: 560px; }
.auth-hero__features{ position: relative; margin-top: 22px; display: grid; gap: 10px; max-width: 620px; }
.auth-hero__feature{
  display:flex; gap:10px; align-items:flex-start;
  color: var(--text-sec); font-size: 13px;
}
.auth-hero__feature::before{
  content:'•';
  color: var(--gold);
  margin-top: -1px;
}
.auth-hero__case-card{
  position: relative;
  margin-top: 30px;
  max-width: 520px;
  border-radius: 14px;
  background: rgba(30,23,13,0.85);
  border: 1px solid rgba(97,71,40,0.55);
  box-shadow: 0 18px 60px rgba(0,0,0,0.75);
  padding: 18px 18px 16px;
}
.auth-hero__case-meta{ display:flex; justify-content:space-between; align-items:center; gap:10px; margin-bottom: 10px; }
.auth-hero__case-num{ font-family: var(--font-mono); font-size: 10px; letter-spacing: 2px; color: var(--gold); }
.auth-hero__case-open{ font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; color: var(--green); }
.auth-hero__case-label{ font-family: var(--font-mono); font-size: 9px; letter-spacing: 2px; color: var(--text-dim); text-transform: uppercase; }
.auth-hero__case-title{ font-family: var(--font-display); font-size: 18px; font-weight: 800; color: var(--text-pri); margin-top: 6px; }
.auth-hero__case-info{ font-family: var(--font-mono); font-size: 10px; color: var(--text-dim); margin-top: 6px; }
.auth-hero__case-progress-bg{ height: 8px; border-radius: 999px; background: rgba(76,55,31,0.45); border: 1px solid rgba(144,112,46,0.25); overflow:hidden; margin-top: 12px; }
.auth-hero__case-progress-fill{ height: 100%; background: linear-gradient(90deg,var(--gold),var(--gold-pale)); box-shadow: 0 0 12px rgba(242,193,68,0.35); }

.auth-form-panel{
  background: var(--panel-bg);
  display:flex;
  align-items: stretch;
  justify-content:center;
}
.auth-form-inner{
  width: 100%;
  max-width: 520px;
  padding: 54px 42px;
}
.auth-eyebrow{
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--gold-dim);
}
.auth-heading{
  margin: 10px 0 8px;
  font-family: var(--font-display);
  font-size: 34px;
  line-height: 1.05;
  color: var(--text-pri);
}
.auth-heading em{ color: var(--text-sec); font-style: normal; }
.auth-subheading{ margin: 0 0 18px; color: var(--text-dim); font-size: 13px; }

.auth-field{ margin-top: 12px; }
.auth-field--row{ display:grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.auth-label{
  display:block;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  text-transform: uppercase;
  color: var(--text-dim);
  margin-bottom: 6px;
}
.auth-input{
  width: 100%;
  padding: 12px 12px;
  border-radius: 10px;
  background: rgba(48,37,23,0.65);
  border: 1px solid rgba(97,71,40,0.65);
  color: var(--text-pri);
  outline: none;
}
.auth-input:focus{
  border-color: rgba(242,193,68,0.55);
  box-shadow: 0 0 0 3px rgba(242,193,68,0.08);
}
.auth-input--error{ border-color: rgba(209,48,30,0.70); box-shadow: 0 0 0 3px rgba(209,48,30,0.08); }
.auth-input-wrap{ position: relative; }
.auth-input-toggle{
  position:absolute; right:10px; top:50%; transform: translateY(-50%);
  background: transparent; border: none; cursor: pointer;
  color: var(--text-dim); font-size: 14px;
}
.auth-field-error{ margin-top: 6px; color: var(--red); font-family: var(--font-mono); font-size: 10px; }
.auth-row{ display:flex; justify-content:space-between; align-items:center; gap:12px; margin-top: 12px; }
.auth-link{ color: var(--gold); text-decoration: none; font-family: var(--font-mono); font-size: 11px; }
.auth-link:hover{ color: var(--gold-pale); text-decoration: underline; }
.auth-checkbox-label{ display:flex; align-items:center; gap:10px; color: var(--text-sec); font-size: 12px; }
.auth-checkbox{ width: 16px; height: 16px; accent-color: var(--gold); }
.auth-btn{
  width: 100%;
  margin-top: 14px;
  padding: 12px 14px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: var(--nav-bg);
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
  cursor: pointer;
}
.auth-btn:hover{ filter: brightness(0.96); }
.auth-divider{
  margin: 18px 0 12px;
  display:flex; align-items:center; gap: 12px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
}
.auth-divider::before,.auth-divider::after{ content:''; height:1px; background: rgba(144,112,46,0.25); flex:1; }
.auth-divider span{ white-space: nowrap; }
.auth-social-row{ display:grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.auth-social-btn{
  display:flex; align-items:center; justify-content:center; gap: 8px;
  padding: 11px 12px;
  border-radius: 10px;
  background: rgba(76,55,31,0.18);
  border: 1px solid rgba(144,112,46,0.25);
  color: var(--text-pri);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 1px;
}
.auth-social-btn:hover{ border-color: rgba(242,193,68,0.45); }
.auth-error-box{
  margin: 14px 0 0;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(209,48,30,0.08);
  border: 1px solid rgba(209,48,30,0.30);
  color: var(--text-pri);
  font-size: 12px;
}

/* ─────────────────────────────────────────────────────────────
   Landing page (/)
   The welcome view uses tc-landing-* classes; keep these lightweight
   and consistent with the game/auth palette.
   ───────────────────────────────────────────────────────────── */
.tc-landing-nav{
  position: fixed;
  top: 0; left: 0; right: 0;
  height: 54px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0 18px;
  background: rgba(21,16,10,0.86);
  backdrop-filter: blur(10px);
  border-bottom: 1px solid rgba(144,112,46,0.16);
  z-index: 50;
}
.tc-landing-nav__links{ display:flex; align-items:center; gap:14px; }
.tc-landing-nav__link{
  color: var(--text-sec);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 1.2px;
  padding: 8px 10px;
  border-radius: 10px;
}
.tc-landing-nav__link:hover{
  color: var(--gold);
  background: rgba(76,55,31,0.22);
  border: 1px solid rgba(144,112,46,0.18);
}
.tc-landing-nav__actions{ display:flex; gap:10px; align-items:center; }
.tc-landing-btn-outline{
  padding: 10px 12px;
  border-radius: 10px;
  border: 1px solid rgba(144,112,46,0.30);
  background: rgba(76,55,31,0.10);
  color: var(--text-pri);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.tc-landing-btn-outline:hover{ border-color: rgba(242,193,68,0.55); }
.tc-landing-btn-fill{
  padding: 10px 12px;
  border-radius: 10px;
  border: none;
  background: var(--gold);
  color: var(--nav-bg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.tc-landing-btn-fill:hover{ filter: brightness(0.96); }

.tc-landing-hero{
  max-width: 1100px;
  margin: 0 auto;
  padding: 54px 18px 22px;
  display: grid;
  grid-template-columns: 1.15fr 0.85fr;
  gap: 18px;
  align-items: start;
}
.tc-landing-headline{
  margin: 0 0 10px;
  font-family: var(--font-display);
  font-size: 44px;
  line-height: 1.02;
  color: var(--text-pri);
  letter-spacing: 0.2px;
}
.tc-landing-tagline{
  margin: 0 0 10px;
  color: var(--gold);
  font-family: var(--font-mono);
  font-size: 12px;
  font-weight: 900;
  letter-spacing: 1.2px;
  text-transform: uppercase;
}
.tc-landing-desc{
  margin: 0 0 16px;
  color: var(--text-sec);
  font-size: 13px;
  line-height: 1.55;
  max-width: 60ch;
}
.tc-landing-ctas{ display:flex; gap:10px; flex-wrap:wrap; }
.tc-landing-cta-primary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  background: var(--gold);
  color: var(--nav-bg);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.4px;
}
.tc-landing-cta-secondary{
  display:inline-flex;
  align-items:center;
  justify-content:center;
  padding: 12px 14px;
  border-radius: 12px;
  background: rgba(76,55,31,0.12);
  border: 1px solid rgba(144,112,46,0.26);
  color: var(--text-pri);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 11px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.tc-landing-cta-secondary:hover{ border-color: rgba(242,193,68,0.55); }

.tc-landing-preview-card{
  border-radius: 18px;
  background: rgba(28,21,13,0.78);
  border: 1px solid rgba(144,112,46,0.20);
  box-shadow: 0 20px 60px rgba(0,0,0,0.35);
  overflow: hidden;
}
.tc-landing-preview-cover{
  height: 220px;
  background: radial-gradient(140% 100% at 20% 10%, rgba(226,179,57,0.10) 0%, rgba(21,16,10,0.92) 60%);
  border-bottom: 1px solid rgba(144,112,46,0.20);
  display:flex;
  align-items:center;
  justify-content:center;
  color: rgba(226,179,57,0.55);
  font-family: var(--font-mono);
  font-size: 10px;
  letter-spacing: 2px;
  position: relative;
}

.tc-landing-stats-strip{
  max-width: 1100px;
  margin: 10px auto 0;
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  border: 1px solid rgba(144,112,46,0.20);
  border-radius: 18px;
  background: rgba(28,21,13,0.55);
  overflow: hidden;
}
.tc-landing-stat-value{
  font-family: var(--font-display);
  font-size: 22px;
  font-weight: 700;
  color: var(--gold);
}
.tc-landing-stat-label{
  font-family: var(--font-mono);
  font-size: 10px;
  color: var(--text-dim);
  letter-spacing: 1.4px;
  margin-top: 6px;
}

.tc-landing-features{
  max-width: 1100px;
  margin: 0 auto;
  padding: 10px 18px 24px;
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 14px;
}
.tc-landing-feature-card{
  border-radius: 18px;
  background: rgba(28,21,13,0.55);
  border: 1px solid rgba(144,112,46,0.20);
  padding: 16px 16px;
}
.tc-landing-feature-icon{ font-size: 16px; opacity: 0.85; margin-bottom: 10px; }
.tc-landing-feature-title{
  font-family: var(--font-display);
  font-size: 16px;
  font-weight: 700;
  color: var(--text-pri);
  margin-bottom: 8px;
}
.tc-landing-feature-desc{
  color: var(--text-sec);
  font-size: 12px;
  line-height: 1.55;
  margin: 0 0 12px;
}
.tc-landing-feature-link{
  color: var(--gold);
  text-decoration: none;
  font-family: var(--font-mono);
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 1.2px;
}
.tc-landing-feature-link:hover{ color: var(--gold-pale); text-decoration: underline; }

@media (max-width: 900px){
  .tc-landing-hero{ grid-template-columns: 1fr; }
  .tc-landing-headline{ font-size: 38px; }
  .tc-landing-stats-strip{ grid-template-columns: repeat(2, 1fr); }
  .tc-landing-features{ grid-template-columns: 1fr; }
  .tc-landing-nav__links{ display:none; }
}
.auth-footer{
  margin-top: 16px;
  color: var(--text-dim);
  font-family: var(--font-mono);
  font-size: 11px;
}
.auth-footer a{ color: var(--gold); text-decoration:none; }
.auth-footer a:hover{ text-decoration: underline; }
.auth-strength{ margin-top: 10px; display:flex; align-items:center; justify-content:space-between; gap: 10px; }
.auth-strength-dots{ display:flex; gap: 6px; }
.auth-strength-dot{ width: 10px; height: 10px; border-radius: 999px; background: rgba(76,55,31,0.45); border: 1px solid rgba(144,112,46,0.25); }
.auth-strength-dot.weak{ background: rgba(209,48,30,0.25); border-color: rgba(209,48,30,0.5); }
.auth-strength-dot.fair{ background: rgba(239,137,40,0.25); border-color: rgba(239,137,40,0.5); }
.auth-strength-dot.good{ background: rgba(242,193,68,0.25); border-color: rgba(242,193,68,0.55); }
.auth-strength-dot.strong{ background: rgba(65,186,110,0.25); border-color: rgba(65,186,110,0.55); }
.auth-strength-label{ font-family: var(--font-mono); font-size: 10px; letter-spacing: 1px; }
.auth-teaser-bar{
  margin-top: 14px;
  padding: 12px 12px;
  border-radius: 12px;
  background: rgba(242,193,68,0.08);
  border: 1px solid rgba(242,193,68,0.20);
  color: var(--text-sec);
  font-size: 12px;
}
.auth-teaser-bar strong{ color: var(--gold); }
.auth-teaser-bar p{ margin: 6px 0 0; color: var(--text-dim); font-size: 11px; }

@keyframes auth-shake {
  0%, 100% { transform: translateX(0); }
  20% { transform: translateX(-8px); }
  40% { transform: translateX(8px); }
  60% { transform: translateX(-6px); }
  80% { transform: translateX(6px); }
}
.auth-shake{ animation: auth-shake 0.36s ease-in-out; }

@media (max-width: 1024px){
  .auth-root{ grid-template-columns: 1fr; }
  .auth-hero{ padding: 18px 18px; max-height: 220px; border-right: none; border-bottom: 1px solid rgba(163,127,64,0.25); }
  .auth-hero__features, .auth-hero__case-card{ display:none; }
  .auth-hero__headline{ font-size: 24px; }
  .auth-form-inner{ padding: 28px 18px; }
  .auth-field--row{ grid-template-columns: 1fr; }
  .auth-social-row{ grid-template-columns: 1fr; }
}

/* ─── Mobile Drawers & Sheets ────────────────────────────────────────────── */
.tc-mobile-drawer-overlay {
    position: fixed; inset: 0; z-index: 300;
    background: rgba(8,5,2,0.7); backdrop-filter: blur(3px);
}
.tc-mobile-drawer {
    position: fixed; top: 62px; bottom: 62px; width: min(300px, 85vw);
    background: var(--panel-bg2);
    border-right: 1px solid rgba(97,71,40,0.60);
    display: flex; flex-direction: column;
    overflow: hidden;
}
.tc-mobile-drawer--left { left: 0; }
.tc-mobile-drawer--right { right: 0; border-right: none; border-left: 1px solid rgba(97,71,40,0.60); }
.tc-mobile-sheet {
    position: fixed; left: 0; right: 0; bottom: 62px;
    max-height: 70vh;
    background: var(--panel-bg);
    border-top: 1px solid rgba(97,71,40,0.65);
    border-radius: 16px 16px 0 0;
    overflow-y: auto;
}
.tc-mobile-drawer__header {
    display: flex; align-items: center; justify-content: space-between;
    padding: 14px 16px;
    border-bottom: 1px solid rgba(97,71,40,0.5);
    background: var(--nav-bg);
    flex-shrink: 0;
}
.tc-mobile-drawer__close {
    width: 32px; height: 32px; border-radius: 6px;
    border: 1px solid rgba(97,71,40,0.55); background: transparent;
    color: var(--text-sec); font-size: 18px; cursor: pointer;
    display: grid; place-items: center; line-height: 1;
}
.tc-mobile-drawer__close:hover { color: var(--text-pri); border-color: rgba(128,96,54,0.7); }

/* Evidence viewer mobile toolbar (hidden on desktop) */
.tc-ev-mobile-toolbar {
    display: none;
    align-items: center;
    justify-content: space-between;
    padding: 10px 0 14px;
    border-bottom: 1px solid rgba(97,71,40,0.45);
    margin-bottom: 14px;
    gap: 8px;
}
.tc-ev-mobile-btn {
    display: inline-flex; align-items: center; gap: 4px;
    padding: 8px 14px; height: 36px;
    border-radius: 7px; border: 1px solid rgba(97,71,40,0.6);
    background: var(--card-bg);
    font-family: var(--font-mono); font-size: 11px; font-weight: 700;
    color: var(--text-sec); cursor: pointer; white-space: nowrap;
    transition: border-color 0.12s, color 0.12s;
}
.tc-ev-mobile-btn:hover { border-color: rgba(242,193,68,0.55); color: var(--gold); }

/* Mobile bottom nav ─────────────────────────────────────────────────────── */
/* ─── Mobile Bottom Nav ──────────────────────────────────────────────────── */
.tc-mobile-nav {
    display: none;
    position: fixed;
    bottom: 0;
    left: 0;
    right: 0;
    height: 62px;
    background: var(--nav-bg);
    border-top: 1px solid rgba(163,127,64,0.55);
    box-shadow: 0 -2px 12px rgba(0,0,0,0.85);
    z-index: 100;
    overflow-x: auto;
    overflow-y: hidden;
    -webkit-overflow-scrolling: touch;
    scrollbar-width: none;
    padding-bottom: env(safe-area-inset-bottom, 0px);
    padding-bottom: max(0px, env(safe-area-inset-bottom));
}
.tc-mobile-nav::-webkit-scrollbar { display: none; }
.tc-mobile-nav__item {
    display: flex;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    min-width: 68px;
    flex: 1;
    padding: 8px 4px 6px;
    text-decoration: none;
    position: relative;
    transition: background 0.12s;
    gap: 3px;
}
.tc-mobile-nav__item:hover { background: rgba(242,193,68,0.07); }
.tc-mobile-nav__item--active { background: rgba(242,193,68,0.10); }
.tc-mobile-nav__item--active::before {
    content: '';
    position: absolute;
    top: 0; left: 12px; right: 12px;
    height: 2px;
    background: var(--gold);
    border-radius: 0 0 3px 3px;
    box-shadow: var(--glow-gold);
}
.tc-mobile-nav__icon { font-size: 18px; line-height: 1; color: var(--text-muted); transition: color 0.12s; }
.tc-mobile-nav__item--active .tc-mobile-nav__icon { color: var(--gold); }
.tc-mobile-nav__item:hover .tc-mobile-nav__icon { color: var(--text-sec); }
.tc-mobile-nav__label { font-family: var(--font-mono); font-size: 9px; color: var(--text-muted); letter-spacing: 0.3px; white-space: nowrap; transition: color 0.12s; }
.tc-mobile-nav__item--active .tc-mobile-nav__label { color: var(--gold); }
.tc-mobile-nav__badge {
    position: absolute;
    top: 6px; right: 8px;
    min-width: 16px; height: 14px;
    background: var(--red);
    border-radius: 7px;
    display: flex; align-items: center; justify-content: center;
    font-size: 8px; font-weight: 700; color: var(--white);
    box-shadow: var(--glow-red);
}

/* ─── Interview mode toggle ──────────────────────────────────────────────── */
.tc-interview-mode-btn{
    padding: 8px 10px;
    border-radius: 7px;
    border: 1px solid rgba(97,71,40,0.6);
    background: var(--card-bg);
    font-family: var(--font-mono);
    font-size: 10px;
    font-weight: 800;
    letter-spacing: 1.2px;
    text-transform: uppercase;
    color: var(--text-sec);
    cursor: pointer;
    transition: background 0.12s, border-color 0.12s, color 0.12s, box-shadow 0.12s;
}
.tc-interview-mode-btn:hover{
    background: rgba(242,193,68,0.08);
    border-color: rgba(242,193,68,0.55);
    color: var(--gold-dim);
}
.tc-interview-mode-btn--active{
    background: rgba(242,193,68,0.12);
    border-color: rgba(242,193,68,0.70);
    color: var(--gold);
    box-shadow: var(--glow-gold);
}

/* ─── Responsive & Mobile ─────────────────────────────────────────────────── */
@media (max-width: 1280px) {
  .tc-murder-board-grid { grid-template-columns: 1fr 220px; }
  .tc-murder-board-grid--minimal { grid-template-columns: 1fr 286px; } /* 220px * 1.3 */
  .tc-lobby-main { grid-template-columns: 1fr 320px; }
  .tc-lobby-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}

@media (max-width: 1024px) {
  /* Show bottom nav, hide sidebar */
  .tc-mobile-nav { display: flex; }
  .tc-sidebar { display: none; }
  .tc-board-wrap { margin-left: 0; padding-bottom: 124px; } /* bottom-nav(62) + command-bar(62) */
  /* Command bar is the footer; put nav above it */
  .tc-command-bar { left: 0; bottom: 0; }
  .tc-mobile-nav { bottom: 62px; }

  /* Adjust fixed-height layouts to account for bottom nav */
  .tc-ev-viewer { height: calc(100vh - 62px - 62px); }
  .tc-dossier { height: calc(100vh - 62px - 62px); }
  .tc-interview-layout { height: calc(100vh - 62px - 48px - 62px); }

  /* Evidence viewer: hide desktop side panels, show mobile toolbar */
  .tc-ev-viewer { grid-template-columns: 1fr; }
  .tc-ev-sidebar, .tc-ev-actions { display: none; }
  .tc-ev-mobile-toolbar { display: flex; }

  /* Dossier: stack cleanly */
  .tc-dossier { grid-template-columns: 1fr; }
  .tc-dossier__left { max-height: none; flex-direction: row; flex-wrap: wrap; gap: 12px; padding: 14px 16px; }
  .tc-dossier__portrait { width: 120px; max-height: 120px; flex-shrink: 0; }

  /* Locations: stack */
  .tc-locations-layout { grid-template-columns: 1fr; }

  /* Interview: tablet keeps left panel, drops right */
  .tc-interview-layout { grid-template-columns: 240px 1fr; }
  .tc-interview-right { display: none; }

  /* Murder board: 2-col */
  .tc-murder-board-grid { grid-template-columns: 1fr 200px; padding: 10px; }
  .tc-murder-board-grid--minimal { grid-template-columns: 1fr 260px; }

  /* Lobby */
  .tc-lobby-wrap { padding: 22px 28px 36px; }
  .tc-lobby-title { font-size: 28px; }
}

@media (max-width: 768px) {
  :root { --panel-radius: 6px; }

  /* Nav: hide center case title */
  .tc-nav__case-title { display: none; }
  .tc-nav { padding: 0 4px; }

  /* Board */
  .tc-board-wrap { padding-bottom: 72px; }

  /* Command bar: tighter */
  .tc-command-bar { gap: 6px; padding: 0 10px; }
  .tc-quick-btn { display: none; }
  .tc-accuse-btn { font-size: 11px; padding: 0 14px; height: 40px; }

  /* Murder board: single col, scrollable */
  .tc-murder-board-grid {
    grid-template-columns: 1fr;
    overflow-x: auto;
  }

  /* Interview: chat only */
  .tc-interview-layout { grid-template-columns: 1fr; }
  .tc-interview-left { display: none; }
  .tc-interview-statusbar { padding: 0 14px; flex-wrap: wrap; height: auto; min-height: 48px; padding-block: 8px; gap: 4px; }
  .tc-interview-statusbar__right { flex-wrap: wrap; gap: 8px; }

  /* Content pages */
  .tc-content-page { padding: 16px 18px 64px; }
  .tc-suspect-cards { grid-template-columns: 1fr; }
  .tc-evidence-grid { grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }

  /* Lobby */
  .tc-lobby-wrap { padding: 16px 18px 36px; }
  .tc-lobby-header { flex-direction: column; gap: 12px; margin-bottom: 16px; }
  .tc-lobby-header > div:last-child { text-align: left !important; min-width: 0 !important; }
  .tc-lobby-main { grid-template-columns: 1fr; }
  .tc-lobby-cases { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
  .tc-lobby-title { font-size: 26px; }

  /* Dossier tabs scroll */
  .tc-dossier__tabs { overflow-x: auto; padding: 0 14px; }
  .tc-dossier__left { max-height: none; flex-direction: column; }
  .tc-dossier__portrait { width: 100%; max-height: 200px; }

  /* Files: fewer columns */
  .tc-files-table__head,
  .tc-files-table__row { grid-template-columns: 1fr 90px 80px; }
  .tc-files-table__head .tc-files-table__col:nth-child(n+4),
  .tc-files-table__row .tc-files-table__col:nth-child(n+4) { display: none; }

  /* Locations: single col */
  .tc-locations-layout { grid-template-columns: 1fr; }
}

@media (max-width: 480px) {
  .tc-nav__xp { display: none; }
  .tc-nav__rank { display: none; }
  .tc-lobby-cases { grid-template-columns: 1fr; }
  .tc-command-input { font-size: 12px; }
  .tc-interview-input { font-size: 12px; }
}
