/* Interrogation Room — diseño de pantalla única (sin scroll de página) en horizontal y vertical.
   Solo hacen scroll interno el chat, el cuaderno y el informe, que crecen durante la partida. */
:root {
  --bg: #0f1114; --panel: #171a1f; --panel2: #1f232a; --line: #2c313a;
  --text: #e8e3d8; --muted: #9a958a; --accent: #d9a441; --accent2: #b4442f; --ok: #5ca46b;
  --font: "Georgia", "Iowan Old Style", serif; --ui: system-ui, -apple-system, "Segoe UI", Roboto, sans-serif;
  --top-h: 46px; --gap: 10px; --radius: 10px;
  --fs: clamp(13px, 0.55vw + 10px, 15px);
}
* { box-sizing: border-box; }
html, body { height: 100%; margin: 0; overflow: hidden; overscroll-behavior: none; }
body { background: radial-gradient(ellipse at top, #1c1a17 0%, var(--bg) 60%); color: var(--text); font: var(--fs)/1.45 var(--ui); }
a { color: var(--accent); }
h1, h2, h3, h4 { font-family: var(--font); font-weight: normal; margin: 0 0 .4em; }
.muted { color: var(--muted); } .small { font-size: .85em; } .center { text-align: center; } .center-text { text-align: center; margin: 2em 1em; }
[hidden] { display: none !important; }
button, a, input, select { touch-action: manipulation; -webkit-tap-highlight-color: transparent; }

/* ---------- armazón ---------- */
.app { height: 100vh; height: 100dvh; height: var(--app-h, 100dvh); display: flex; flex-direction: column;
  position: fixed; left: 0; right: 0; top: var(--app-top, 0px);
  padding: env(safe-area-inset-top) env(safe-area-inset-right) env(safe-area-inset-bottom) env(safe-area-inset-left); }
.top { flex: none; height: var(--top-h); display: flex; align-items: center; gap: 8px; padding: 0 10px;
  border-bottom: 1px solid var(--line); background: rgba(15,17,20,.95); }
.brand { display: flex; align-items: center; gap: 6px; font-family: var(--font); font-size: 1.1em; white-space: nowrap; }
.logo { font-size: 1.3em; }
.tabs { display: flex; gap: 2px; flex: 1; min-width: 0; justify-content: center; }
.tab { color: var(--muted); text-decoration: none; padding: 6px 10px; border-radius: 8px; white-space: nowrap; font-size: .95em; }
.tab:hover { color: var(--text); background: var(--panel2); }
.tab.active { color: var(--text); background: var(--panel2); box-shadow: inset 0 -2px 0 var(--accent); }
.tab .s, .btn .s { display: none; }
.tools { display: flex; gap: 4px; }
.views { flex: 1; min-height: 0; position: relative; }
.view { position: absolute; inset: 0; display: none; }
.view.active { display: block; }

/* ---------- controles ---------- */
.btn { font: inherit; border: 1px solid var(--line); background: var(--panel2); color: var(--text); padding: 7px 12px;
  border-radius: 8px; cursor: pointer; text-decoration: none; display: inline-flex; align-items: center; justify-content: center; gap: 4px; white-space: nowrap; }
.btn:hover:not(:disabled) { border-color: var(--accent); }
.btn:disabled { opacity: .5; cursor: not-allowed; }
.btn.primary { background: var(--accent); color: #1a1408; border-color: var(--accent); font-weight: 600; }
.btn.danger { background: var(--accent2); border-color: var(--accent2); color: #fff; }
.btn.tiny { padding: 3px 8px; font-size: .8em; margin-top: 6px; }
.icon-btn { font: inherit; background: transparent; border: 1px solid transparent; color: var(--text); border-radius: 8px;
  min-width: 34px; height: 34px; padding: 0 6px; cursor: pointer; display: inline-flex; align-items: center; justify-content: center; white-space: nowrap; }
.icon-btn:hover { border-color: var(--line); background: var(--panel2); }
.icon-btn[aria-pressed="true"] { color: var(--accent); }
.icon-btn.sm { min-width: 28px; height: 28px; font-size: .9em; }
.btn.mic { padding: 7px 10px; }
.btn.mic.rec { background: var(--accent2); border-color: var(--accent2); animation: pulse 1s infinite; }
@keyframes pulse { 50% { opacity: .6; } }
input[type=text], input[type=url], input[type=password], select { font: inherit; background: #0c0d10; color: var(--text);
  border: 1px solid var(--line); border-radius: 8px; padding: 8px 10px; width: 100%; min-width: 0; }
input:focus, select:focus { outline: 2px solid var(--accent); outline-offset: -1px; }
.badge { background: var(--accent); color: #1a1408; border-radius: 99px; padding: 0 6px; font-size: .8em; }
.badge.bump { animation: bump .6s 2; }
@keyframes bump { 50% { transform: scale(1.35); } }

/* ---------- juego: escritorio / pantallas amplias (3 columnas) ---------- */
.game.active { display: grid; gap: var(--gap); padding: var(--gap);
  grid-template-columns: clamp(220px, 20vw, 290px) minmax(0, 1fr) clamp(250px, 23vw, 340px);
  grid-template-rows: minmax(0, 1fr); grid-template-areas: "left chat right"; }
.panel { min-width: 0; min-height: 0; background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius);
  display: flex; flex-direction: column; overflow: hidden; }
.p-left { grid-area: left; padding: 10px; gap: 8px; background: transparent; border: 0; padding: 0; }
.p-chat { grid-area: chat; }
.p-right { grid-area: right; }
.actionbar { display: none; grid-area: bar; }
.case-title { display: flex; flex-direction: column; line-height: 1.2; padding: 2px 2px 0; }
.case-title small { color: var(--muted); }
.case-title b { font-family: var(--font); font-weight: normal; font-size: 1.25em; }

.block { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); display: flex; flex-direction: column; min-height: 0; overflow: hidden; }
.p-left .block { flex: 0 1 auto; }
.block-head { display: flex; align-items: center; gap: 4px; padding: 6px 6px 6px 10px; border-bottom: 1px solid var(--line); background: var(--panel2); flex: none; }
.block-head h4 { flex: 1; margin: 0; font-size: 1em; }
.block-body { overflow-y: auto; padding: 8px 10px; min-height: 0; flex: 1; }
#briefing p { font-size: .9em; color: #cfc9bc; margin: 0 0 .6em; }
.close-btn { display: none; }
.suspects-title { margin: 2px 2px 0; font-size: 1em; }

.suspects { display: flex; flex-direction: column; gap: 6px; flex: none; }
.suspect { display: grid; grid-template-columns: 40px 1fr auto; align-items: center; gap: 8px; text-align: left; font: inherit;
  color: var(--text); background: var(--panel2); border: 1px solid var(--line); border-radius: 8px; padding: 6px 8px; cursor: pointer; min-width: 0; }
.suspect.active { border-color: var(--accent); box-shadow: inset 3px 0 0 var(--accent); }
.suspect small { color: var(--muted); }
.suspect .s-name { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.suspect .s-first { display: none; }
.portrait { font-size: 24px; width: 40px; height: 40px; display: grid; place-items: center; background: #0c0d10; border-radius: 50%; flex: none; }
.portrait.big { width: 40px; height: 40px; font-size: 26px; }
.qcount { font-size: .75em; color: var(--muted); }

.chat-head { display: flex; gap: 8px; align-items: center; padding: 6px 8px 6px 10px; border-bottom: 1px solid var(--line); background: var(--panel2); flex: none; }
.who-head { display: flex; gap: 10px; align-items: center; flex: 1; min-width: 0; }
.who-head > div { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.mode-badge { font-size: .75em; padding: 2px 8px; border-radius: 99px; border: 1px solid var(--line); color: var(--muted); white-space: nowrap; }
.mode-badge.local, .mode-badge.byok { color: var(--ok); border-color: var(--ok); }
.chat { flex: 1; min-height: 0; overflow-y: auto; padding: 12px; display: flex; flex-direction: column; gap: 8px; overscroll-behavior: contain; }
.msg { max-width: 85%; padding: 8px 12px; border-radius: 12px; white-space: pre-wrap; overflow-wrap: anywhere; }
.msg.you { align-self: flex-end; background: #2c2a24; border: 1px solid #3d3a31; }
.msg.them { align-self: flex-start; background: #1b2230; border: 1px solid #2a3446; font-family: var(--font); }
.msg.them .who { margin-right: 6px; }
.msg.clue { align-self: center; background: rgba(217,164,65,.1); border: 1px dashed var(--accent); color: var(--accent); font-size: .88em; }
.typing { opacity: .6; font-style: italic; }
.present-row { padding: 0 12px; font-size: .85em; color: var(--accent); flex: none; }
.present-row:not(:empty) { padding: 6px 12px 0; }
.ask { display: flex; gap: 6px; padding: 8px; border-top: 1px solid var(--line); flex: none; }
.ask input { flex: 1; }

.notebook { display: flex; flex-direction: column; gap: 8px; }
.clue-card { background: var(--panel2); border: 1px solid var(--line); border-left: 3px solid var(--accent); border-radius: 6px; padding: 8px 10px; }
.clue-card.sel { border-color: var(--accent); background: #2a2519; }
.clue-card p { margin: 4px 0 0; font-size: .85em; color: #c9c3b6; }
.nb-actions { flex: none; display: grid; grid-template-columns: 1fr 1fr; gap: 6px; padding: 8px; border-top: 1px solid var(--line); }
.nb-actions p { grid-column: 1 / -1; margin: 0; text-align: center; }

/* ---------- ampliar (cualquier tamaño) ---------- */
.is-max { grid-area: auto !important; position: absolute !important; inset: var(--gap) !important; z-index: 30 !important; max-height: none !important;
  width: auto !important; transform: none !important; box-shadow: 0 10px 40px rgba(0,0,0,.6); }
.is-max .close-btn { display: none !important; }
.backdrop { position: absolute; inset: 0; background: rgba(0,0,0,.55); z-index: 15; }

/* ---------- modo compacto: móviles, tablets en vertical y ventanas bajas ---------- */
@media (max-width: 899px), (max-height: 560px) {
  :root { --top-h: 42px; --gap: 6px; }
  .brand-name, .tab .l, .tool-label { display: none; }
  .tab .s { display: inline; }
  .tab { padding: 5px 7px; }
  .case-title, .suspects-title { display: none; }
  .mode-badge { display: none; }
  .btn .l { display: none; } .btn .s { display: inline; }

  /* paneles desplegables (hojas) */
  .sheet { grid-area: auto; position: absolute; z-index: 20; left: 0; right: 0; bottom: 0; max-height: 82%; border-radius: 14px 14px 0 0;
    transform: translateY(105%); transition: transform .22s ease; visibility: hidden; box-shadow: 0 -8px 30px rgba(0,0,0,.5); }
  .sheet.open { transform: none; visibility: visible; }
  .sheet .close-btn { display: inline-flex; }
  .p-left .block.sheet { flex: none; }

  .actionbar { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 6px; }
  .actionbar .btn { padding: 7px 4px; font-size: .92em; }
}

/* compacto en vertical: sospechosos arriba, chat, barra de acciones abajo */
@media (max-width: 899px) and (orientation: portrait) {
  .game.active { grid-template-columns: minmax(0, 1fr); grid-template-rows: auto minmax(0, 1fr) auto;
    grid-template-areas: "left" "chat" "bar"; }
  .p-left { display: block; }
  .suspects { flex-direction: row; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 6px; }
  .suspect { grid-template-columns: 30px minmax(0, 1fr) auto; gap: 5px; padding: 5px 6px; }
  .suspect .portrait { width: 30px; height: 30px; font-size: 18px; }
  .suspect small, .suspect .s-full { display: none; }
  .suspect .s-first { display: inline; }
  .chat-head { padding: 4px 6px 4px 8px; }
  .chat-head .portrait.big { width: 30px; height: 30px; font-size: 19px; }
}

/* compacto en horizontal (móvil tumbado): sospechosos + acciones a la izquierda, chat a la derecha */
@media (orientation: landscape) and (max-height: 560px), (orientation: landscape) and (max-width: 899px) {
  .game.active { grid-template-columns: clamp(150px, 24vw, 210px) minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto;
    grid-template-areas: "left chat" "bar chat"; }
  .p-left { justify-content: flex-start; overflow: hidden; }
  .suspects { gap: 4px; }
  .suspect { grid-template-columns: 28px minmax(0, 1fr) auto; gap: 6px; padding: 4px 6px; }
  .suspect .portrait { width: 28px; height: 28px; font-size: 17px; }
  .suspect small { display: none; }
  .actionbar { grid-template-columns: 1fr 1fr; align-self: end; }
  .sheet { left: auto; top: 0; bottom: 0; right: 0; width: min(440px, 62%); max-height: none; border-radius: 14px 0 0 14px;
    transform: translateX(105%); }
  .chat-head { padding: 3px 6px 3px 8px; }
  .chat-head .portrait.big { width: 28px; height: 28px; font-size: 18px; }
  .chat { padding: 8px; }
  .ask { padding: 6px; }
}
@media (max-height: 420px) {
  :root { --top-h: 38px; }
  .icon-btn { height: 30px; }
  .actionbar .btn { padding: 5px 4px; }
  .actionbar .btn span { display: none; }
  .actionbar .btn .badge { display: inline; }
}
@media (max-width: 380px) {
  .tabs { justify-content: flex-start; }
  .tab { padding: 5px 5px; font-size: .9em; }
  .actionbar .btn { font-size: .85em; }
  .icon-btn { min-width: 30px; }
}

/* ---------- páginas (ayuda, información, casos) ---------- */
.page.active { overflow-y: auto; }
.page-inner { max-width: 1100px; margin: 0 auto; padding: clamp(10px, 2.5vh, 28px) 14px; min-height: 100%;
  display: flex; flex-direction: column; justify-content: center; gap: clamp(8px, 2vh, 18px); }
.page h2 { text-align: center; margin: 0; font-size: clamp(1.3em, 3vh, 1.8em); }
.steps { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 250px), 1fr)); gap: 8px; align-items: start; }
.step, .faq details { background: var(--panel); border: 1px solid var(--line); border-radius: 8px; padding: 8px 12px; }
.step summary, .faq summary { cursor: pointer; font-weight: 600; }
.step summary b { display: inline-grid; place-items: center; min-width: 1.6em; height: 1.6em; border-radius: 50%; background: var(--accent); color: #1a1408; margin-right: 6px; font-size: .9em; }
.step p, .faq p { margin: 6px 0 2px; color: #c9c3b6; font-size: .92em; }
.info { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); align-items: center; gap: clamp(12px, 3vw, 40px); justify-content: initial; }
.hero h1 { font-size: clamp(1.5em, 4.2vh, 2.6em); line-height: 1.12; }
.hero h1 span { color: var(--accent); display: block; }
.lead { color: #cfc9bc; margin: 0 0 10px; }
.pills { list-style: none; padding: 0; display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
.pills li { border: 1px solid var(--line); border-radius: 99px; padding: 2px 10px; color: var(--muted); font-size: .85em; }
.faq { display: flex; flex-direction: column; gap: 6px; }
.plans { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.plan { background: var(--panel); border: 1px solid var(--line); border-radius: var(--radius); padding: clamp(10px, 2vh, 20px); display: flex; flex-direction: column; }
.plan h3 { font-size: 1.1em; }
.plan p { color: #c9c3b6; margin: 0; font-size: .92em; }
.plan .price { font-size: 1.5em; font-family: var(--font); color: var(--accent); margin: 2px 0 6px; }
.plan .btn { margin-top: auto; align-self: flex-start; }
.plan p + .btn, .plan p + a.btn { margin-top: 10px; }
@media (max-width: 899px) and (orientation: portrait) {
  .info { grid-template-columns: minmax(0, 1fr); }
  .plans { grid-template-columns: minmax(0, 1fr); gap: 8px; }
  .plan { display: grid; grid-template-columns: 1fr auto; column-gap: 10px; }
  .plan h3 { grid-column: 1; margin: 0; } .plan .price { grid-column: 2; grid-row: 1; margin: 0; font-size: 1.2em; }
  .plan p:not(.price) { grid-column: 1 / -1; margin-top: 4px; font-size: .88em; }
  .plan .btn { grid-column: 1 / -1; margin-top: 8px; }
  .steps { grid-template-columns: 1fr 1fr; }
  .step summary { font-size: .92em; }
}
@media (max-height: 560px) and (orientation: landscape) {
  .steps { grid-template-columns: repeat(4, minmax(0, 1fr)); }
  .hero h1 { font-size: 1.4em; } .lead { font-size: .9em; }
  .plan p:not(.price) { font-size: .85em; }
}

/* ---------- diálogos ---------- */
dialog { background: var(--panel); color: var(--text); border: 1px solid var(--line); border-radius: 12px; padding: 0;
  width: min(560px, calc(100vw - 24px)); max-width: calc(100vw - 24px); max-height: 92vh; max-height: 92dvh; overflow-y: auto; overflow-x: hidden; }
dialog::backdrop { background: rgba(0,0,0,.7); }
.dlg { padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.dlg > *, .dlg .sub > * { min-width: 0; max-width: 100%; }
.dlg label { display: flex; flex-direction: column; gap: 4px; font-size: .92em; }
.dlg label.opt { display: block; line-height: 1.45; }
.dlg label.opt input { margin: 0 6px 0 0; vertical-align: -2px; }
.dlg select { width: 100%; text-overflow: ellipsis; }
.dlg .sub { margin-left: 22px; display: flex; flex-direction: column; gap: 6px; }
.dlg-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 6px; position: sticky; bottom: -18px; background: var(--panel);
  padding: 10px 0; border-top: 1px solid var(--line); flex-wrap: wrap; }
.dlg-sep { margin-top: 8px; padding-top: 10px; border-top: 1px solid var(--line); }
.warn { color: #e88b6a; margin: 0; font-size: .88em; }
progress { width: 100%; accent-color: var(--accent); }
.score { font-size: 3em; font-family: var(--font); color: var(--accent); margin: 0; }
.score small { font-size: .4em; color: var(--muted); }
.checks { list-style: none; padding: 0; display: flex; gap: 14px; flex-wrap: wrap; }
@media (max-width: 640px) {
  input[type=text], input[type=url], input[type=password], select { font-size: 16px; } /* sin zoom en iOS */
  .dlg { padding: 14px; } .dlg .sub { margin-left: 0; }
}

#toast { position: fixed; bottom: 16px; left: 50%; transform: translateX(-50%) translateY(150%); background: #2a2519; border: 1px solid var(--accent);
  color: var(--text); padding: 10px 16px; border-radius: 8px; transition: transform .25s; max-width: 92vw; z-index: 50; }
#toast.show { transform: translateX(-50%) translateY(0); }

/* recorte: los paneles ocultos fuera de pantalla no deben crear zona desplazable */
.game.active { overflow: hidden; overflow: clip; }
/* páginas en pantallas bajas o estrechas: más compactas para que quepan sin scroll */
@media (max-height: 700px) and (max-width: 480px) {
  .pills { display: none; }
  .hero h1 { font-size: 1.35em; }
  .lead { font-size: .9em; margin-bottom: 8px; }
  .faq details, .step { padding: 5px 10px; }
  .faq { gap: 4px; }
}
@media (max-height: 420px) {
  .page h2, .page-inner > p.center { display: none; }
  .page-inner { padding: 6px 12px; gap: 6px; }
  .faq details, .step { padding: 4px 10px; }
  .faq { gap: 4px; }
  .pills { display: none; }
  .lead { margin-bottom: 6px; }
  .plan { padding: 8px 10px; } .plan h3 { margin: 0; } .plan .price { font-size: 1.2em; margin: 0 0 4px; }
  .plan p + .btn, .plan p + a.btn { margin-top: 6px; }
}

.tool-label { margin-left: 4px; }
@media (max-width: 420px) { .tab .ti { display: none; } .tabs { gap: 0; } .tab { padding: 5px 6px; } }
@media (orientation: landscape) and (max-height: 560px), (orientation: landscape) and (max-width: 899px) {
  .suspect .s-full { display: none; } .suspect .s-first { display: inline; }
}

.btn.mic.busy { opacity: .8; cursor: progress; }

.btn.clear { padding: 7px 10px; color: var(--muted); }
.btn.clear:hover { color: var(--text); }

/* ideas para investigar y botones «enseñar» */
.suggest-row { flex: none; display: flex; gap: 6px; align-items: center; overflow-x: auto; padding: 0 8px; scrollbar-width: none; }
.suggest-row::-webkit-scrollbar { display: none; }
.suggest-row:not(:empty) { padding: 6px 8px 0; }
.chip { font: inherit; font-size: .82em; white-space: nowrap; border: 1px solid var(--line); background: var(--panel2); color: var(--text);
  border-radius: 99px; padding: 4px 10px; cursor: pointer; max-width: 70vw; overflow: hidden; text-overflow: ellipsis; flex: none; }
.chip:hover { border-color: var(--accent); }
.chip.ask-chip { border-color: #3d3a31; background: #2c2a24; }
.show-row { display: flex; flex-wrap: wrap; gap: 4px; align-items: center; margin-top: 6px; font-size: .9em; }
.msg.clue .show-row { justify-content: center; color: var(--muted); }
.btn.show { margin-top: 0; }
.seen { font-size: .78em; color: var(--ok); padding: 2px 4px; }

/* dificultad */
.diff-badge { font: inherit; font-size: .78em; border: 1px solid var(--line); background: transparent; color: var(--muted);
  border-radius: 99px; padding: 2px 8px; cursor: pointer; white-space: nowrap; }
.diff-badge.experto { color: var(--accent); border-color: var(--accent); }
.diff-badge:hover { color: var(--text); }
.diff-opt { font: inherit; text-align: left; display: flex; gap: 12px; align-items: center; width: 100%; padding: 12px;
  background: var(--panel2); color: var(--text); border: 1px solid var(--line); border-radius: 10px; cursor: pointer; }
.diff-opt:hover, .diff-opt:focus-visible { border-color: var(--accent); }
.diff-opt.current { box-shadow: inset 3px 0 0 var(--accent); }
.diff-opt small { color: #c9c3b6; }
.diff-ico { font-size: 2em; }
@media (max-width: 899px), (max-height: 560px) { .diff-label { display: none; } }

.rec-tag { font-style: normal; font-size: .75em; background: var(--accent); color: #1a1408; border-radius: 99px; padding: 1px 8px; margin-left: 4px; vertical-align: 2px; }
.diff-opt.recommended { border-color: var(--accent); }

/* teclado del móvil abierto: solo chat y zona de escribir (más espacio, el campo nunca queda tapado) */
@media (max-width: 899px), (max-height: 560px) {
  body.kb-open .top, body.kb-open .actionbar, body.kb-open .suggest-row, body.kb-open .chat-head { display: none; }
  body.kb-open .game.active { grid-template-rows: auto minmax(0, 1fr); grid-template-columns: minmax(0, 1fr);
    grid-template-areas: "left" "chat"; padding-top: 4px; padding-bottom: 4px; }
  body.kb-open .p-left { display: block; }
  body.kb-open .suspects { flex-direction: row; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 4px; }
  body.kb-open .suspect { padding: 2px 6px; grid-template-columns: 24px minmax(0, 1fr) auto; }
  body.kb-open .suspect .portrait { width: 24px; height: 24px; font-size: 15px; }
  body.kb-open .suspect small, body.kb-open .suspect .s-full { display: none; }
  body.kb-open .suspect .s-first { display: inline; }
}
@media (max-height: 300px) { body.kb-open .p-left { display: none; } body.kb-open .game.active { grid-template-rows: minmax(0, 1fr); grid-template-areas: "chat"; } }
input, textarea { scroll-margin-bottom: 8px; }

/* cuenta */
.acct-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); }
.acct-tab { font: inherit; background: none; border: 0; color: var(--muted); padding: 8px 12px; cursor: pointer; border-bottom: 2px solid transparent; }
.acct-tab.active { color: var(--text); border-bottom-color: var(--accent); }
#acctForm { display: flex; flex-direction: column; gap: 10px; margin-top: 10px; }
.acct-cases { margin: 0; padding-left: 18px; }
.owned-mark { color: var(--ok); font-size: .9em; margin: 6px 0 0; }
#btnAccount.logged { color: var(--ok); }
.link-danger { font: inherit; background: none; border: 0; color: #e88b6a; text-decoration: underline; cursor: pointer; padding: 4px; }
.told-ref { display: block; margin-top: 4px; font-size: .78em; color: var(--accent); opacity: .85; }
