/* App-specific additions to style.css */

/* V170: landscape warning overlay – shown by JS when phone is held sideways. */
#landscape-warning {
  display: none;
  position: fixed; inset: 0; z-index: 9999;
  background: var(--ink); color: var(--paper);
  flex-direction: column; align-items: center; justify-content: center;
  gap: 16px; text-align: center; padding: 24px;
  font: 500 1rem/1.5 var(--serif);
}
#landscape-warning .lw-icon { width: 48px; height: 48px; }
#landscape-warning p { margin: 0; }
.view[hidden] { display: none !important; }
.map-view { flex: 1; display: flex; min-height: 0; }
.map { --map-bg: #d9ccb0; }
.intro { font: 500 0.9375rem/1.5 var(--serif); margin: 4px 0 8px; }
.hint { font-size: 0.8125rem; color: var(--muted); }
.empty { color: var(--muted); font-style: italic; }
.row-buttons { display: flex; gap: 10px; margin-top: 14px; }
.row-buttons .btn { flex: 1; }
.where { position: absolute; left: 12px; top: 64px; z-index: 4; background: var(--card); border: 1px solid var(--rule); border-radius: 999px; padding: 6px 12px; font-size: 0.8125rem; box-shadow: var(--shadow); }
.map:has(.now:not([hidden])) .where { top: 12px; }
.sheet { max-height: calc(var(--app-h, 100dvh) * 0.88); overflow-y: auto; }
.sheet h2 { font: 700 1.25rem/1.2 var(--serif); margin: 0 0 10px; }
.sheet .field select, .sheet .field input { min-height: var(--tap); padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); width: 100%; }
.sheet .preview { background: var(--paper-2); border-radius: 8px; padding: 10px 12px; margin: 8px 0; font: 600 0.9375rem/1.4 var(--serif); }
.sheet .preview small { display: block; font: 500 0.75rem/1.4 var(--sans); color: var(--muted); margin-top: 4px; }
.sheet .actions-row { display: flex; gap: 10px; margin-top: 12px; }
.sheet .actions-row .btn { flex: 1; }
.sheet:has(> .known-places-sheet) { display: flex; overflow: hidden; }
.known-places-sheet { display: flex; flex-direction: column; min-width: 0; width: 100%; }
.known-places-sheet .suggestions { min-height: 0; overflow-y: auto; overscroll-behavior: contain; }
.known-places-sheet > .actions-row { flex-shrink: 0; }
#place-list .suggest > :first-child,
.known-places-sheet .suggest > :first-child { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.block .remove { border: 0; background: none; color: var(--muted); font-size: 1.125rem; min-width: 32px; min-height: 32px; }
.notes-day { margin-top: 14px; }
.note { display: grid; grid-template-columns: 22px 1fr; gap: 8px; padding: 8px 0; border-bottom: 1px dashed var(--rule); font-size: 0.875rem; }
.note .t { font: 600 0.6875rem/1.4 var(--mono); color: var(--muted); display: block; }
.ticker .card.public, .ticker .card.warning { border-color: var(--red); }
.speed button[data-speed="0"][aria-pressed="true"] { background: var(--red); }
.outcome { text-align: center; }
.outcome h2 { font-size: 1.625rem; }
.sheet .chips + .field { margin-top: 12px; }
.map canvas { cursor: grab; }
.problem { margin-top: 6px; color: var(--red); font-size: 0.8125rem; }
.note svg.i { width: 20px; height: 20px; color: var(--muted); margin-top: 2px; }
.note.public svg.i, .note.warning svg.i { color: var(--red); }
.clip { background: var(--card); border: 1px solid var(--rule); border-top: 3px double var(--ink); padding: 10px 12px; margin: 10px 0; box-shadow: var(--shadow); }
.clip .paper { font: 600 0.625rem/1 var(--mono); letter-spacing: .2em; text-transform: uppercase; color: var(--muted); }
.clip h3 { font: 800 1.1875rem/1.15 var(--serif); margin: 6px 0 4px; text-transform: uppercase; letter-spacing: .01em; }
.clip p { margin: 0; font: italic 500 0.9375rem/1.35 var(--serif); }
.clip h4 { font: 700 0.9375rem/1.2 var(--serif); margin: 10px 0 2px; padding-top: 8px; border-top: 1px solid var(--rule); text-transform: uppercase; }
.rumor-card { margin-bottom: 10px; }
.rumor-card.own { border-left-color: var(--teal); }
.rumor-card .status { background: var(--paper-2); color: var(--muted); }
.rumor-card.level-1 .status { background: var(--brass); color: #fff; }
.rumor-card.level-2 .status { background: var(--red); color: #fff; }
.rumor-card.level-3 .status { background: var(--ink); color: var(--paper); text-decoration: line-through; }
.kicker.small { margin-top: 10px; }
.order-figure { margin: 10px 0 14px; }
.order-figure h3 { font: 700 1rem/1.2 var(--serif); margin: 0 0 6px; }
.order-figure .chip { margin: 0 6px 6px 0; }
.order-whisper .row-fields { display: grid; gap: 6px; margin: 4px 0 8px; }
.order-whisper select { min-height: var(--tap); padding: 8px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }
.mapnav { position: absolute; right: 12px; top: 64px; z-index: 4; display: grid; gap: 6px; }
.mapnav button { width: var(--tap); height: var(--tap); border-radius: 50%; border: 1px solid var(--rule); background: var(--card); font: 700 1.125rem/1 var(--sans); box-shadow: var(--shadow); }
.info-card .tag { margin-left: 4px; }
#notes .segmented { margin-bottom: 12px; }
.sheet:has(> .notebook-sheet) { overflow: hidden; padding: 0; }
.notebook-sheet { display: flex; flex-direction: column; height: calc(var(--app-h, 100dvh) * 0.84); }
.notebook-sheet .notes-inner { flex: 1; min-height: 0; display: flex; flex-direction: column; padding-top: 12px; }
.notebook-sheet .note-tabs { flex-shrink: 0; }
.notebook-sheet .note-body { flex: 1; min-height: 0; overflow-y: auto; overscroll-behavior: contain; padding: 10px 16px; }
.notebook-sheet > .actions-row { margin: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); border-top: 1px solid var(--rule); }
.note-tabs { position: relative; padding-inline: 14px; }
.note-tabs::before, .note-tabs::after {
  position: absolute;
  top: 15px;
  width: 7px;
  height: 7px;
  border-top: 2px solid var(--muted);
  border-right: 2px solid var(--muted);
  pointer-events: none;
}
.note-tabs.more-left::before { content: ""; left: 3px; transform: rotate(-135deg); }
.note-tabs.more-right::after { content: ""; right: 3px; transform: rotate(45deg); }
.person-card h3, .secret-card blockquote { margin: 0 0 4px; }
.secret-card blockquote { font: 600 0.9375rem/1.35 var(--serif); }
.secret-card.confirmed { border-left: 4px solid var(--teal); }
.card-actions { margin-top: 8px; display: flex; gap: 8px; flex-wrap: wrap; }
.chip.secret { font-size: 0.8125rem; text-align: left; }
.chip.secret.confirmed { border-color: var(--teal); }
.goalbar { display: flex; flex-wrap: wrap; gap: 6px; padding: 6px 16px 8px; background: var(--paper); border-bottom: 1px solid var(--rule); }
.goalbar .goal { font: 700 0.75rem/1 var(--mono); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); }
.goalbar .goal.ok { border-color: var(--ok); color: var(--ok); }
.goalbar .goal.todo { border-color: var(--red); color: var(--red); }
.figure-stats { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; text-align: center; margin: 8px 0; }
.figure-stats div { background: var(--paper-2); border-radius: 8px; padding: 6px 2px; }
.figure-stats b { display: block; font: 700 1.125rem/1.1 var(--serif); }
.figure-stats span { font-size: 0.625rem; color: var(--muted); }
.figure-stats-full { display: flex; flex-direction: column; gap: 10px; margin: 8px 0; }
.stat-block { background: var(--paper-2); border-radius: 8px; padding: 8px 10px; }
.stat-row { display: flex; align-items: baseline; gap: 8px; }
.stat-row b { font: 700 1.25rem/1 var(--serif); }
.stat-row span { font-weight: 600; }
.stat-uses { margin: 2px 0 4px; }
.sheet:has(> .figure-sheet) { padding: 0; overflow: hidden; }
.figure-sheet { display: flex; flex-direction: column; max-height: calc(var(--app-h, 100dvh) * 0.88 - 3px); }
.figure-scroll { min-height: 0; overflow-y: auto; padding: 16px; overscroll-behavior: contain; }
.figure-sheet > .actions-row { flex-shrink: 0; margin: 0; padding: 8px 16px calc(8px + env(safe-area-inset-bottom)); background: var(--paper); border-top: 1px solid var(--rule); }
.stat-raise-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 6px; }
.stat-raise-grid > .chip { white-space: normal; text-align: left; overflow-wrap: anywhere; }
@media (min-width: 501px) { .screen { box-shadow: 0 0 0 1px var(--rule), 0 0 24px #231a1426; } }
.chip.stat-raise { border-radius: 10px; height: auto; display: flex; flex-direction: column; align-items: flex-start; gap: 2px; }
.chip.stat-raise small { font-size: 0.75rem; font-weight: normal; color: var(--muted); line-height: 1.3; }
.chip.stat-raise small.perk-next { color: var(--teal); }
.perk { margin: 2px 0; } .perk.on b { color: var(--teal); }
.stat-hint { margin: 4px 0; font-style: italic; }
.chip.ach { font-size: 0.8125rem; } .chip.ach.on { border-color: var(--brass); color: var(--sepia); font-weight: 700; }
.secret-own { font: italic 600 1rem/1.4 var(--serif); color: var(--red); margin: 4px 0; }
.morning { margin-bottom: 6px; }
.goalbar .goal.rival { color: var(--sepia); }
.plan-orders { margin: 12px 0; border: 1px solid var(--rule); border-radius: 10px; padding: 8px 12px; background: var(--card); }
.plan-orders summary { font-weight: 700; cursor: pointer; }
.note.order, .ticker .card.order { border-left: 3px solid var(--ok); padding-left: 6px; }
.more-people { margin-top: 10px; }
.more-people > summary { font-weight: 700; cursor: pointer; padding: 6px 0; }
.person-row > summary { padding: 6px 0; border-bottom: 1px dashed var(--rule); cursor: pointer; }
/* V32: credibility/risk dots block */
.cred-risk-block { margin: 6px 0; }
.cred-row, .risk-row { margin: 2px 0; }
.cred-row summary, .risk-row summary { display: flex; align-items: center; gap: 6px; cursor: pointer; list-style: none; padding: 2px 0; }
.cred-row summary::-webkit-details-marker, .risk-row summary::-webkit-details-marker { display: none; }
.cred-row summary::before, .risk-row summary::before { content: "▸"; font-size: 0.625rem; color: var(--muted); flex-shrink: 0; }
.cred-row[open] > summary::before, .risk-row[open] > summary::before { content: "▾"; }
.dots-label { font-size: 0.8125rem; color: var(--muted); min-width: 90px; }
.dots { font-size: 0.875rem; letter-spacing: 1px; color: var(--sepia); }
.dots-word { font-size: 0.8125rem; font-weight: 600; }
.risk-row .dots-word { color: var(--red); }
.cred-row .dots-word { color: var(--teal); }
.factor-list { margin: 2px 0 4px 12px; padding: 0; list-style: none; }
.factor-list li { font-size: 0.75rem; color: var(--muted); line-height: 1.6; }
.factor-pos { color: #2f5d5a; }
.factor-neg { color: #8c2f1f; }
.stat-pending .notice { background: var(--paper-2); border-left: 3px solid var(--brass); padding: 6px 10px; border-radius: 0 6px 6px 0; cursor: pointer; font-weight: 600; }
.notice { background: var(--paper-2); border-left: 3px solid var(--brass); padding: 6px 10px; border-radius: 0 6px 6px 0; margin: 6px 0; font-size: 0.875rem; }
.notice.warn { border-left-color: var(--red); color: #8c2f1f; }
.notice.ok { border-left-color: var(--ok); color: #2f5d5a; }

/* Portraits (web/portrait.js) */
.portrait { display: inline-block; flex: none; border-radius: 50%; overflow: hidden; border: 2px solid var(--ink); background: #e4d4b4; vertical-align: middle; }
.portrait svg { display: block; width: 100%; height: 100%; }
.portrait.big { border-width: 3px; box-shadow: 0 2px 0 rgba(35, 28, 20, .15); }
.portrait.inline { border-width: 1.5px; margin-right: 6px; }
.portrait.unknown svg { filter: grayscale(1) brightness(.35); }
.who-head { display: flex; gap: 12px; align-items: center; }
.who-head h2, .who-head h3 { margin: 0; }
.who-head p { margin: 2px 0 0; }
.who-line { display: flex; gap: 10px; align-items: center; margin-top: 6px; }
.look-preview { display: flex; gap: 16px; align-items: center; margin-bottom: 10px; }
.look-buttons { display: grid; gap: 8px; }
.segmented button[aria-checked="true"] { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.btn.small { min-height: 40px; padding: 8px 14px; font-size: 0.875rem; }
.person-row summary { display: flex; align-items: center; }

/* Planning from the map and the notebook */
.plan-sources { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin: 12px 0; }
.plan-sources span { font-size: 0.8125rem; color: var(--muted); width: 100%; }
.plan-from { margin-top: 10px; }
.plan-from .chips { gap: 6px; }
.card.editable { cursor: pointer; }
.card.editable:focus-visible { outline: 2px solid var(--ink); outline-offset: 2px; }
.queued-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; padding: 4px 0; }

/* Working day */
.work { margin: 6px 0 12px; }
.work .segmented { flex-wrap: wrap; }
.work-card { background: var(--paper-2); border-style: dashed; }

/* Lage am Morgen (v0.5 1.1) */
.lage { background: var(--card); border: 1px solid var(--rule); border-left: 4px solid var(--teal, #2f5d5a); border-radius: 10px; padding: 10px 14px 12px; margin-bottom: 12px; }
.lage .lead { padding: 8px 0; border-top: 1px dashed var(--rule); }
.lage .lead:first-of-type { border-top: 0; }
.lage .lead p { margin: 0 0 6px; }
.lage .lead.past p { color: var(--muted); font-style: italic; }
details.morning summary { cursor: pointer; font-size: 0.875rem; color: var(--muted); padding: 6px 0; }

/* Guided first day (v0.5 1.2) */
.guide { background: #fbf3df; border: 1px solid var(--brass, #b8893a); border-radius: 10px; padding: 10px 14px 12px; margin-bottom: 12px; }
.guide ol { margin: 6px 0 10px; padding-left: 20px; }
.guide li { margin: 4px 0; }

.goal-hint { margin: 2px 0 8px; font-size: 0.875rem; }

/* Compact planning (v0.5 2.1) and rumour cards (2.4) */
.chip.off { opacity: .45; border-style: dashed; }
.hint.why:empty { display: none; }
.confirm h2 { margin: 0; }
#c-when { margin: 10px 0; }
.cards-pick { display: grid; gap: 6px; }
.card-pick { text-align: left; border: 1px solid var(--rule); background: var(--card); border-radius: 8px; padding: 8px 10px; display: grid; gap: 2px; }
.card-pick[aria-pressed="true"] { border: 2px solid var(--ink); }
.card-pick small { color: var(--muted); }
ul.hints { margin: 6px 0 0; padding-left: 18px; font-size: 0.875rem; color: var(--muted); }
.rumor-draft blockquote { margin: 0 0 4px; }
.stegreif-row { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 4px; }

/* v0.5 3.2: planning on the map – nothing runs yet */



.chip-blocked { width: 100%; }
.chip-blocked > small { display: block; margin: 2px 0 4px; }

:root { --action-bottom: max(6px, calc(env(safe-area-inset-bottom) - 18px)); }
.bottom-actions { background: var(--paper); border-top: 1px solid var(--rule); padding: 6px 10px var(--action-bottom); display: flex; gap: 8px; flex-shrink: 0; }
.bottom-actions .ab-btn { flex: 1 1 0; min-width: 0; hyphens: auto; text-align: center; min-height: 48px; padding: 8px 4px; border: 1.5px solid var(--ink); border-radius: 8px; background: none; color: var(--ink); font: 600 0.875rem/1.2 var(--sans); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; cursor: pointer; }
.bottom-actions .ab-btn.primary { background: var(--ink); color: var(--paper); }
.bottom-actions .ab-btn:disabled { opacity: .5; cursor: default; }
.bottom-actions .ab-sub { font-size: 0.75rem; font-weight: 400; opacity: 0.75; }
#actionbar { position: absolute; bottom: 0; left: 0; right: 0; z-index: 15; }
/* V395: very narrow phones (320 px) – keep all three footer buttons inside the side margin. */
@media (max-width: 359px) {
  .bottom-actions { gap: 6px; padding-left: 8px; padding-right: 8px; }
  .bottom-actions .ab-btn { padding: 6px 2px; font-size: 0.75rem; }
  .bottom-actions .ab-sub { font-size: 0.6875rem; }
}
#actionbar .ab-confirm-label { flex: 1; font-size: 0.875rem; font-weight: 600; align-self: center; }

/* v0.8 1.2: «Was jetzt?» – the panel over the lower part of the map. */
.tabbar { grid-template-columns: repeat(4, 1fr); }
.now { position: absolute; left: 8px; right: 8px; bottom: calc(58px + var(--action-bottom)); z-index: 5; max-height: 56%; overflow-y: auto; background: var(--card); border: 1px solid var(--rule); border-top: 3px double var(--ink); border-radius: 12px; padding: 10px 12px 12px; box-shadow: var(--shadow); }
/* V144/V145: when at a place, fill the view with an Anker-style scene and hide the map. */
#v-map.place-mode canvas,
#v-map .hud { display: none; }
#v-map.running .hud { display: flex; }
#v-map.place-mode .mapnav,
#v-map.place-mode .where { display: none; }
#v-map.place-mode .now { inset: 0; max-height: none; border-radius: 0; background: #231a14; color: #f3e6cf; border: none; box-shadow: none; padding: 0; display: flex; flex-direction: column; overflow: hidden; }
/* V386: let the footer take its actual height, including wrapped labels on narrow phones. */
.screen:has(#v-map.place-mode:not([hidden]) #now:not([hidden])) > #actionbar { position: relative; }
#v-map.place-mode .map { touch-action: auto; }
#v-map.place-mode .ev-room { flex: 1; }
#v-map.place-mode .ev-room:has(.ev-faces) .ev-bubbles { bottom: 80px; }
#v-map.place-mode .ev-guest { border-radius: 8px; gap: 3px; }
.ev-guest-name { padding: 2px 6px; border-radius: 6px; background: #231a14; color: #f3e6cf; font: 600 0.8125rem/1.2 var(--sans); }
.ev-guest-fallback { display: grid; place-items: center; width: 44px; height: 44px; border-radius: 50%; background: #231a14; color: #f3e6cf; }
#v-map.place-mode .ev-bubbles .bubble { flex-shrink: 0; }
#v-map.place-mode .ev-choose { overflow-y: auto; padding-bottom: 14px; }
.place-scene-notes { max-height: 40%; flex-shrink: 0; overflow-y: auto; background: var(--paper); color: var(--ink); padding: 8px 14px; }
.place-scene-notes:empty { display: none; }
.now[hidden] { display: none; }
.now:not([hidden]) ~ .ticker, .map:has(.now:not([hidden])) .ticker { display: none; }
/* V185: now-head is a grip-bar row; h2 kept for potential title use. */
.now-head { display: flex; justify-content: center; align-items: center; padding: 6px 0 2px; }
.now-head h2 { margin: 0; font: 800 1.375rem/1.1 var(--serif); }
.now-clock { font: 600 0.8125rem/1 var(--mono); color: var(--muted); }
.now .recap { margin: 6px 0 0; font-size: 0.875rem; color: var(--muted); }
.now .recap.first { color: var(--ink); font-weight: 600; margin-top: 8px; }
.suggestions { display: grid; gap: 6px; margin: 10px 0 4px; }
.suggest { display: flex; gap: 10px; align-items: center; text-align: left; border: 1px solid var(--rule); background: var(--paper); border-radius: 10px; padding: 8px 10px; min-height: var(--tap); font: inherit; color: inherit; }
.suggest:hover, .suggest:focus-visible { border-color: var(--ink); }
.suggest[disabled] { opacity: 0.5; cursor: default; }
.suggest b { display: block; font: 700 0.9375rem/1.2 var(--serif); }
.suggest small { display: block; color: var(--muted); font-size: 0.8125rem; line-height: 1.3; }
.suggest small.why { color: var(--ink); font-style: italic; }
.suggest small.stat-diff { color: var(--ok); }
/* V186: selected face highlight and person-action header */
.ev-faces .portrait.selected { box-shadow: 0 0 0 3px var(--brass); }
.pg-header { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-bottom: 1px solid var(--rule); }
.pg-info { flex: 1; min-width: 0; }
.pg-info b { display: block; font: 700 0.9375rem/1.2 var(--serif); }
.pg-hint { display: block; color: var(--muted); font-size: 0.75rem; font-style: italic; }
/* V186: close button in person-group header */
.pg-close { background: none; border: none; font: 700 1.1rem/1 var(--sans); color: var(--muted); padding: 4px 6px; cursor: pointer; border-radius: 4px; }
.pg-close:hover { color: var(--ink); }
/* V186: first-player hint below faces */
.place-hint { font-size: 0.8rem; color: var(--muted); font-style: italic; padding: 4px 10px 2px; }
.suggest.compact { padding: 7px 10px; min-height: 0; }
.confirm .when { font: 600 0.9375rem/1.35 var(--sans); }

/* v0.8 3.1: the conversation scene (mockup A). */
.sheet.full { max-height: var(--app-h, 100dvh); height: var(--app-h, 100dvh); border-radius: 0; padding: 0 0 16px; }
.sheet:has(> .day-sheet) { display: flex; overflow: hidden; padding: 0; }
.day-sheet { display: flex; flex-direction: column; min-height: 0; width: 100%; }
.day-sheet-content { flex: 1; min-height: 0; overflow-y: auto; padding: 18px 16px 8px; }
.day-sheet-actions .btn { flex: 1; min-height: 48px; }
.scene-top { position: relative; height: 250px; overflow: hidden; }
.scene-bg, .scene-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.scene-where { position: absolute; left: 12px; top: 12px; background: var(--ink); color: var(--paper); font: 700 0.6875rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; padding: 6px 9px; border-radius: 4px; }
.scene-face { position: absolute; left: max(12px, calc(50% - 156px)); bottom: -10px; border: 3px solid var(--card); box-shadow: var(--shadow); }
.scene-today { position: absolute; right: 10px; top: 48px; max-width: min(46%, calc(100% - 180px)); background: var(--card); border: 1px solid var(--rule); border-radius: 8px; padding: 6px 9px; font-size: 0.8125rem; box-shadow: var(--shadow); }
.scene-today p { margin: 2px 0 0; }
.scene-talk { margin: 12px 14px 0; background: var(--card); border: 2px solid var(--ink); border-radius: 12px; padding: 10px 14px; }
.scene-title { font: 700 0.75rem/1.2 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--red); }
.scene-talk blockquote, .scene-reply { margin: 6px 0 0; font: 700 1.25rem/1.3 var(--serif); }
.scene-rumor { margin: 12px 14px 0; border: 1px dashed var(--red); border-radius: 10px; padding: 8px 12px; }
.scene-rumor p { margin: 2px 0 0; font: 700 1rem/1.3 var(--serif); }
.scene-choice { margin: 12px 14px 0; display: grid; gap: 8px; }
.tell { display: grid; gap: 2px; text-align: left; border: 1px solid var(--ink); background: var(--card); border-radius: 10px; padding: 9px 12px; font: inherit; color: inherit; }
.tell b { font: 700 1rem/1.2 var(--sans); }
.tell i { font-size: 0.875rem; }
.tell small { color: var(--ok); font-size: 0.8125rem; }
.tell.off { border-style: dashed; border-color: var(--rule); color: var(--muted); }
.tell:not(.off):hover { border-color: var(--red); }
/* V148: grouped bar options */
.ev-group { display: grid; gap: 6px; }
.ev-group h4 { margin: 0; font: 700 0.75rem/1 var(--sans); text-transform: uppercase; letter-spacing: 0.05em; color: var(--muted); padding-top: 4px; }
.ev-person { background: none; }
.ev-person > summary { display: flex; align-items: center; gap: 7px; padding: 5px 0; list-style: none; cursor: pointer; font-weight: 700; }
.ev-person > summary::-webkit-details-marker { display: none; }
.ev-person[open] > summary { color: var(--teal); }
.ev-person > .tell { margin-left: 8px; }

/* v0.8 3.2: the evening in the Anker (mockup B). */
.evening { display: flex; flex-direction: column; min-height: 100%; background: #231a14; color: #f3e6cf; }
/* V143: safe-area-inset-top so header isn't hidden under iOS status bar. */
.ev-head { display: flex; justify-content: space-between; gap: 10px; padding: calc(12px + env(safe-area-inset-top)) 16px 10px; }
/* V317: in the place scene the .now card sits below the map header, so no extra safe-area needed. */
#v-map.place-mode .ev-head { padding-top: 12px; }
/* V143: ?ios-sim testmode – simulates a 44px iPhone notch for headless testing. */
.ios-sim .ev-head { padding-top: 56px; }
.ios-sim #v-map.place-mode .ev-head { padding-top: 12px; }
.ev-head h2 { margin: 0; font: 800 1.75rem/1 var(--serif); color: #e2b04a; letter-spacing: .02em; }
.ev-head p { margin: 6px 0 0; font: 600 0.6875rem/1.3 var(--mono); letter-spacing: .1em; text-transform: uppercase; color: #cdbb9b; }
.ev-seats { text-align: right; }
.ev-seats b { font: 800 1.625rem/1 var(--serif); white-space: nowrap; }
#now .ev-seats { max-width: 48%; }
#now .ev-seats :is(b, small) { white-space: normal; }
.seats { display: grid; grid-template-columns: repeat(10, 7px); gap: 3px; margin-top: 6px; justify-content: end; }
.seats i { width: 7px; height: 5px; border-radius: 1px; background: #5a4a3a; }
.seats i.on { background: #e2b04a; }
.ev-room { position: relative; height: min(220px, 33vh); overflow: hidden; }
.ev-svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.bubble { position: absolute; max-width: 57%; background: #fbf6ec; color: var(--ink); border-radius: 10px; padding: 8px 10px; box-shadow: 0 4px 12px rgba(0,0,0,.35); z-index: 1; }
.bubble p { margin: 0; font-size: 0.8125rem; line-height: 1.28; }
.bubble small { display: block; margin-top: 4px; font-weight: 700; font-size: 0.75rem; color: var(--ok); }
.bubble.secret small { color: var(--red); }
.bubble.warning small { color: #9a6a1a; }
/* V147: speaker header inside bubble */
.bubble-who { display: flex; align-items: center; gap: 5px; margin-bottom: 4px; }
.bubble-name { font-size: 0.7rem; font-weight: 700; opacity: 0.8; }
.bubble-face { flex-shrink: 0; }
.no-face { width: 24px; height: 24px; border-radius: 50%; background: rgba(0,0,0,.18); display: inline-block; flex-shrink: 0; }
/* V144: silhouettes of known people in the place scene */
.ev-faces { position: absolute; bottom: 10px; left: 10px; right: 10px; display: flex; gap: 6px; align-items: flex-end; overflow-x: auto; scrollbar-width: none; }
.ev-faces::-webkit-scrollbar { display: none; }
.ev-guest { display: grid; flex: none; place-items: center; padding: 4px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; }
.ev-guest:focus-visible { outline: 2px solid var(--brass); outline-offset: -2px; }
.ev-faces .portrait { border-color: rgba(255,255,255,.5); }
/* V144: grey circle for each unknown resident; +N badge for extras beyond 5. */
.unknown-face { width: 44px; height: 44px; border-radius: 50%; background: rgba(180,160,130,.45); border: 2px solid rgba(255,255,255,.25); flex-shrink: 0; }
.extra-crowd { width: 44px; height: 44px; border-radius: 50%; background: rgba(0,0,0,.45); color: #f3e6cf; display: grid; place-items: center; font: 700 0.8125rem/1 var(--mono); flex-shrink: 0; }
.ev-summary { font-size: 0.8125rem; color: var(--ink); opacity: .8; margin: -4px 0 0; }
.ev-till { display: inline-block; background: rgba(0,0,0,.45); color: #f3e6cf; font-size: 0.8125rem; padding: 4px 8px; border-radius: 6px; margin: 0 0 8px; }
.ev-choose { flex: 1; background: var(--paper); color: var(--ink); border-radius: 16px 16px 0 0; padding: 14px 14px 0; display: grid; gap: 8px; align-content: start; }
/* V217: when earlyClose hint is present, stack label and hint vertically inside the button. */
.ev-close-bar .btn { flex-direction: column; gap: 4px; }
.ev-close-bar .btn small { font-weight: 400; opacity: .75; }
/* V194: two-step early-close confirmation. */
.ev-close-confirm { flex-direction: column; gap: 8px; }
.ev-close-q { margin: 0; font-size: 0.875rem; color: var(--ink); padding: 0 2px; }
.ev-q { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.ev-q h3 { margin: 0; font: 800 1.375rem/1.1 var(--serif); }
.ev-result { margin: 0; padding: 8px 10px; border-left: 3px solid var(--teal); background: var(--card); font-size: 0.875rem; }
/* V143: dark background on sheet and screen to eliminate light strip under evening scene. */
.sheet.full:has(.evening) { background: #231a14; padding-bottom: 0; }
.screen:has(.sheet.full .evening) { background: #231a14; }
/* V143: evening flex column so ev-choose scrolls and close button stays at bottom. */
.evening { display: flex; flex-direction: column; height: 100%; }
.evening .ev-choose { overflow-y: auto; }
.evening .ev-till { background: var(--paper-2); color: var(--ink); }
.evening .unknown-face { display: grid; place-items: center; color: #f3e6cf; font: 700 1rem/1 var(--sans); }

/* V147: speech bubble tail pointing toward figures in scene */
.ev-room .bubble::after { content: ''; position: absolute; bottom: -8px; left: 20px; width: 0; height: 0; border-left: 8px solid transparent; border-right: 4px solid transparent; border-top: 8px solid #fbf6ec; }
/* V143: collapsed bubble = small circle icon only; tap to expand */
.bubble-icon { display: none; font-size: 1rem; font-weight: 800; line-height: 1; }
.bubble.collapsed { width: 32px; height: 32px; min-width: unset; padding: 0; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.bubble.collapsed .bubble-icon { display: block; }
.bubble.collapsed .bubble-body { display: none; }
.bubble.collapsed::after { display: none; }
/* V143: mini face in collapsed bubble – pill shape when speaker has a portrait */
.bubble-mini-face { display: none; flex-shrink: 0; border-radius: 50%; overflow: hidden; }
.bubble.collapsed .bubble-mini-face { display: block; }
.bubble.collapsed:has(.bubble-mini-face) { width: auto; height: 36px; padding: 2px 8px 2px 2px; border-radius: 18px; gap: 4px; }
/* V143: ev-bubbles – scrollable list in scene, confined above figures bar. */
.ev-bubbles { position: absolute; top: 4px; left: 4px; right: 4px; bottom: 58px; overflow-y: auto; scrollbar-width: none; z-index: 2; display: flex; flex-direction: column; gap: 4px; pointer-events: none; }
.ev-bubbles::-webkit-scrollbar { display: none; }
.ev-bubbles .bubble { position: static; pointer-events: all; max-width: 85%; align-self: flex-start; }
.ev-bubbles .bubble::after { display: none; }
/* V143: CSS backup – force landscape warning on phones even if JS fires late. */
@media (orientation: landscape) and (max-height: 500px) { #landscape-warning { display: flex !important; } }

/* V23: place fragments (overheard snippets in place view) */
.place-frags { padding: 6px 0 0; display: flex; flex-direction: column; gap: 6px; }
.place-frags .bubble { position: static; max-width: 100%; }
/* V23: look-result mini-scene */
.look-result { padding: 20px 14px 18px; display: grid; gap: 12px; }
.look-top { display: flex; align-items: flex-start; gap: 14px; }
.look-info { flex: 1; padding-top: 6px; }
.look-info b { font: 700 1.125rem/1.2 var(--serif); display: block; }

/* v0.8 3.3: the rumour travels (mockup C). */
.journey { padding: calc(14px + env(safe-area-inset-top)) 14px 18px; display: grid; align-content: start; gap: 10px; }
.journey .headline h2 { font-size: 1.375rem; text-transform: none; }
.journey-map svg { display: block; width: 100%; height: auto; border-top: 2px solid var(--ink); border-bottom: 2px solid var(--ink); }
.variant { background: #4b3866; color: #fff; border-radius: 10px; padding: 8px 12px; }
.variant p { margin: 0; font-weight: 600; }
.variant small { color: #e6d8ff; font-weight: 700; }
.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 0.8125rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 11px; height: 11px; border-radius: 50%; margin-right: 5px; vertical-align: -1px; border: 2px solid var(--red); }
.lg.believes::before { background: var(--teal); border-color: var(--teal); }
.lg.doubts::before { border-style: dashed; }
.lg.lg-var::before { background: #4b3866; border-color: #4b3866; border-radius: 3px; }
.journey-words { font: 500 1.0625rem/1.45 var(--sans); margin: 0; }

/* v0.8 3.4: notebook as a dossier. */
.dossier .d-trait { margin: 8px 0 0; }
.dossier .d-wish { margin: 2px 0 0; color: var(--muted); font-size: 0.875rem; }
.dossier .d-quote { margin: 8px 0 0; padding-left: 10px; border-left: 3px solid var(--brass); font: italic 600 0.9375rem/1.35 var(--serif); }
.dossier .d-more { margin-top: 8px; font-size: 0.875rem; }
.dossier .d-more summary { color: var(--muted); cursor: pointer; }
.clip p.sub { font: 500 0.875rem/1.35 var(--sans); font-style: normal; color: var(--muted); margin-top: 4px; }

/* v0.8 4.1: small effects – fades, the morning paper, dusk, coins, stamp, guests. */
.scrim:not([hidden]) .sheet { animation: sheet-in .28s ease-out; }
.scrim:not([hidden]) .sheet.full { animation: fade-in .45s ease-out; }
@keyframes sheet-in { from { transform: translateY(24px); opacity: .4; } to { transform: none; opacity: 1; } }
@keyframes fade-in { from { opacity: 0; } to { opacity: 1; } }
.paper-drop { animation: paper-drop .7s cubic-bezier(.2, .9, .3, 1.2); transform-origin: 50% 0; }
@keyframes paper-drop { from { transform: translateY(-90px) rotate(-6deg); opacity: 0; } 60% { opacity: 1; } to { transform: none; } }
#v-map .map::after { content: ""; position: absolute; inset: 0; pointer-events: none; z-index: 3; background: #0d1420; opacity: var(--dusk, 0); transition: opacity .6s; }
.coin { position: absolute; z-index: 40; width: 14px; height: 14px; border-radius: 50%; background: radial-gradient(circle at 35% 35%, #ffe08a, #c99a2e 70%); box-shadow: 0 0 0 1px #8a6512; pointer-events: none; animation: coin-drop 1.1s ease-in forwards; }
@keyframes coin-drop { from { transform: translateY(-30px) scale(.6); opacity: 0; } 30% { opacity: 1; } to { transform: translateY(22px) scale(1); opacity: 0; } }
.clip { position: relative; }
.stamp { position: absolute; right: 10px; top: 8px; border: 2px solid var(--red); color: var(--red); font: 800 0.75rem/1 var(--mono); letter-spacing: .15em; text-transform: uppercase; padding: 4px 6px; transform: rotate(-8deg); opacity: .85; animation: stamp .45s ease-out .2s both; }
@keyframes stamp { from { transform: rotate(-8deg) scale(2.4); opacity: 0; } to { transform: rotate(-8deg) scale(1); opacity: .85; } }
.ev-svg .guest { animation: sit-down .5s ease-out both; }
@keyframes sit-down { from { transform: translateY(-14px); opacity: 0; } to { transform: none; opacity: 1; } }
@media (prefers-reduced-motion: reduce) {
  .scrim:not([hidden]) .sheet, .paper-drop, .stamp, .ev-svg .guest, .coin { animation: none !important; }
  #v-map .map::after { transition: none; }
}

/* v0.11 1.9: the save as text */
#save-text { width: 100%; box-sizing: border-box; font: 0.75rem/1.4 ui-monospace, monospace; padding: 8px; border: 1px solid var(--line, #c9b591); border-radius: 6px; background: var(--paper, #fbf6ea); color: inherit; }
.ev-seats small { display: block; font-size: 0.75rem; opacity: .75; margin: 2px 0 4px; white-space: nowrap; }
/* v0.11 3.5: the day in a few sentences */
.story { font: 1rem/1.5 var(--serif); margin: 4px 0 8px; }
/* v0.11 6.4: visible balance below the day summary */
.bilanz { font: 600 0.875rem/1.4 var(--mono); margin: 4px 0 10px; padding: 8px 10px; background: var(--card); border-left: 3px solid var(--teal); border-radius: 0 6px 6px 0; }
.day-notes summary { cursor: pointer; color: var(--muted); font-size: 0.875rem; padding: 6px 0; min-height: 32px; }
/* v0.11 3.6: the panel folds down to its head */
/* V185: fold button appears as a subtle grip bar (no border/background, arrow hidden). */
.now:has(.now-head) { padding-top: 0; }
.now-head .fold { margin: 0; min-width: 56px; min-height: 0; border: none; background: none; border-radius: 0; font-size: 0; color: transparent; padding: 10px 24px; display: flex; align-items: center; justify-content: center; }
.now-head .fold::after { content: ''; display: block; width: 36px; height: 4px; background: color-mix(in srgb, var(--ink) 20%, transparent); border-radius: 2px; }
#now.folded > :not(.now-head) { display: none; }
/* v0.11 3.1: the rumour's journey as a tree */
.journey-tree { display: grid; gap: 4px; margin: 8px 0; }
.jt-row { display: flex; gap: 10px; align-items: center; padding: 6px 8px; border-left: 3px solid var(--rule); background: var(--paper); border-radius: 0 8px 8px 0; }
.jt-row b { font: 700 0.9375rem/1.2 var(--serif); margin-right: 6px; }
.jt-row small { display: block; color: var(--muted); font-size: 0.75rem; line-height: 1.3; }
.jt-row .jt-variant { color: #5a3f78; font-style: italic; }
.jt-row .jt-told { color: var(--muted); font-style: italic; }
.jt-row.believes { border-left-color: #8c2f1f; }
.jt-row.doubts { border-left-style: dashed; }
.jt-row.you { border-left-color: var(--ink); }
.jt-row.group { background: transparent; border-left-style: dotted; }
.jt-count { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; background: var(--paper-2); border: 1px dashed var(--rule); font: 800 0.75rem/1 var(--mono); color: var(--muted); }
.jt-face { flex: none; }
/* v0.11 4.2: the place you are at */
.place-scene { position: relative; height: 92px; border-radius: 10px; overflow: hidden; margin: 8px 0 6px; }
.place-bg, .place-bg svg { position: absolute; inset: 0; width: 100%; height: 100%; }
.place-title { position: absolute; left: 10px; bottom: 8px; background: var(--paper); border-radius: 8px; padding: 4px 10px; box-shadow: 0 1px 3px #0003; }
.place-title b { font: 800 1.125rem/1.1 var(--serif); margin-right: 8px; }
.place-title small { color: var(--muted); font-size: 0.8125rem; }
.place-people { display: flex; flex-wrap: wrap; gap: 8px; align-items: flex-end; margin: 4px 0 6px; }
.place-people .person { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 0.75rem; }
.place-people .person.own small { color: #2f5d5a; font-weight: 700; }
.place-people .silhouette { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; background: #6e604f; color: #f1e6cf; font: 800 0.8125rem/1 var(--mono); }
.suggest .faces { display: flex; flex: none; }
.suggest .faces > * + * { margin-left: -10px; }
.recap.change { font-style: italic; }
/* v0.11 Block 6: prices, cellar and shop */
.good { border-top: 1px solid var(--rule); padding: 8px 0; }
.supplier { border-top: 1px solid var(--rule); padding: 8px 0; display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; align-items: center; }
.supplier > small { color: var(--muted); font-size: 0.8125rem; grid-column: 1; }
.supplier > .btn { grid-column: 2; grid-row: 1 / span 2; }
#stock { cursor: pointer; text-decoration: underline dotted; text-underline-offset: 3px; }
.good-head b { display: block; font: 700 1rem/1.2 var(--serif); }
.good-head small, .price-row small { color: var(--muted); font-size: 0.8125rem; }
.price-row { display: flex; align-items: center; gap: 8px; margin-top: 6px; }
.price-row .price { min-width: 64px; text-align: center; font: 700 1rem/1 var(--mono); }
.price-row small.dear { color: #8c2f1f; font-weight: 700; }
.price-row small.cheap { color: #2f5d5a; font-weight: 700; }
.tavern-toggle { position: relative; display: flex; align-items: center; gap: 10px; min-height: 44px; margin-top: 4px; font-size: 0.875rem; cursor: pointer; }
.tavern-toggle small { display: block; color: var(--muted); }
.tavern-toggle input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.switch-track { flex: none; width: 36px; height: 22px; padding: 2px; border: 1px solid var(--muted); border-radius: 999px; background: var(--paper-2); }
.switch-track::before { content: ""; display: block; width: 16px; height: 16px; border-radius: 50%; background: var(--muted); }
.tavern-toggle input:checked + .switch-track { background: var(--teal); border-color: var(--teal); }
.tavern-toggle input:checked + .switch-track::before { transform: translateX(14px); background: var(--paper); }
.tavern-toggle input:focus-visible + .switch-track { outline: 2px solid var(--ink); outline-offset: 3px; }
.price-row .btn { min-width: 44px; min-height: 44px; }
.builder .chip, .chip[data-order] { min-height: 44px; }
#goalbar button.goal { cursor: pointer; }
/* V146: faction figure strip */
.faction-strip { display: flex; align-items: center; gap: 10px; padding: 8px 16px; background: var(--paper); border-bottom: 1px solid var(--rule); overflow-x: auto; scrollbar-width: none; }
.faction-strip::-webkit-scrollbar { display: none; }
.faction-fig { position: relative; border: none; background: none; padding: 0; cursor: pointer; flex: none; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; min-height: 44px; }
.faction-sil { width: 36px; height: 36px; border-radius: 50%; background: var(--muted); display: flex; align-items: center; justify-content: center; font: 700 1rem/1 var(--serif); color: var(--paper); border: 2px solid var(--ink); }
.faction-add { border: none; background: none; color: var(--muted); font: 700 1.25rem/1 var(--serif); cursor: pointer; flex: none; }
.faction-add .faction-face { width: 40px; height: 40px; border-radius: 50%; border: 2px dashed var(--rule); display: grid; place-items: center; box-sizing: border-box; }
.faction-badge { position: absolute; top: -3px; right: -3px; min-width: 15px; height: 15px; border-radius: 999px; background: var(--red); color: #fff; font: 700 0.6rem/15px var(--mono); text-align: center; padding: 0 3px; }
.faction-badge.news { background: var(--teal); }
/* V175: pub square in faction strip */
.faction-pub { background: none; border: none; color: var(--ink); cursor: pointer; display: flex; flex-direction: column; align-items: center; gap: 2px; min-width: 44px; min-height: 44px; flex: none; position: relative; padding: 0; }
.faction-pub .faction-face { width: 40px; height: 40px; border-radius: 8px; background: #2f4a4e; display: grid; place-items: center; }
.faction-pub svg { width: 22px; height: 22px; fill: none; stroke: #fff; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; }
.faction-pub .faction-badge { background: var(--red); color: #fff; }
.faction-sep { width: 1px; height: 28px; background: var(--rule); flex: none; margin: 0 2px; }
/* V175: brass ring on own avatar circle */
.faction-fig.me-fig .faction-face { outline: 2px solid #b8982c; outline-offset: 1px; border-radius: 50%; width: 40px; height: 40px; }
/* V146: hide empty subtitle in topbar */
.topbar .sub:empty { display: none; }
/* V146: health/satiety pills in Figur tab */
.figure-status { display: flex; gap: 8px; flex-wrap: wrap; margin: 6px 0 10px; }
.status-pill { font: 700 0.75rem/1 var(--mono); padding: 5px 8px; border-radius: 999px; border: 1px solid var(--rule); background: var(--card); }
.status-pill.ok { border-color: var(--ok); color: var(--ok); }
.status-pill.todo { border-color: var(--red); color: var(--red); }

/* V387: Razzia-Entscheid hinter der Theke */
.raid-dialog { display: grid; gap: 10px; padding: 14px 14px 18px; align-content: start; background: var(--paper); color: var(--ink); min-height: 100%; }
.raid-dialog h2 { margin: 0; color: var(--ink); }
.raid-dialog .raid-lead { margin: 0; color: var(--ink); }
.raid-dialog .tell b { color: var(--ink); }
.raid-dialog .tell small { display: block; white-space: normal; margin-top: 4px; color: var(--ink); font-size: 0.9rem; }

/* V391: Ziele mit Fortschritt in der Morgenlage, Tutorial */
.goals { background: var(--card); border: 1px solid var(--rule); border-radius: 10px; padding: 10px 14px 12px; margin-bottom: 12px; display: grid; gap: 10px; }
.goal-row { display: grid; gap: 3px; }
.goal-line { display: flex; justify-content: space-between; gap: 8px; font-size: 0.9375rem; }
.goal-bar { height: 8px; border-radius: 4px; background: var(--rule); overflow: hidden; }
.goal-bar i { display: block; height: 100%; background: var(--muted); }
.goal-row.ok .goal-bar i { background: var(--teal, #2f5d5a); }
.goal-row.todo .goal-bar i { background: #a5612d; }
.goal-row small { color: var(--muted); font-size: 0.8125rem; }
.goals .linklike { justify-self: start; background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 600; text-decoration: underline; color: var(--ink); cursor: pointer; min-height: 40px; }
.gang-routes > summary { cursor: pointer; font-weight: 600; padding: 10px 0; }
.gang-routes > details { margin: 4px 0 0 12px; }
.gang-routes > details > summary { cursor: pointer; padding: 8px 0; }
.tutorial { display: grid; gap: 10px; }
.tutorial h2 { margin: 0; }
.tutorial p { margin: 0; font-size: 1.0625rem; }
.tutorial .actions-row { display: flex; gap: 8px; justify-content: space-between; }
.goal-line b { white-space: nowrap; }

/* V411: reason for the visit, labelled strangers chip. */
.ev-head .arrival-why { text-transform: none; letter-spacing: 0; font: 500 0.8125rem/1.3 var(--sans); color: #f3e6cf; margin-top: 6px; }
.stranger-chip { background: rgba(0,0,0,.5); width: auto; height: 44px; padding: 0 14px; border-radius: 22px; display: inline-flex; align-items: center; color: #f3e6cf; font: 600 0.8125rem/1 var(--sans); cursor: pointer; white-space: nowrap; }

/* V412: labels under the header symbols, bigger tap targets. */
.faction-face { position: relative; display: grid; place-items: center; min-width: 40px; min-height: 40px; }
.faction-lbl { font: 600 0.6875rem/1.1 var(--sans); color: var(--ink); max-width: 72px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.faction-strip { gap: 8px; padding: 6px 12px; }
.topbar-btn .nb-word { display: block; font: 700 0.6875rem/1.1 var(--mono); letter-spacing: .08em; text-transform: uppercase; color: var(--brass, #8a6a1f); margin-bottom: 1px; }

/* V413: compact person cards, folded extra actions. */
.chips-more > summary, .chips-hard > summary { cursor: pointer; font-size: 0.8125rem; font-weight: 600; color: var(--muted); padding: 8px 0; min-height: 24px; }
.chips-more .chips, .chips-hard .chips { margin-top: 4px; }
.person-card .plan-from { margin-top: 4px; }
.person-card.dossier { padding-top: 8px; padding-bottom: 8px; }
.person-card .d-quote { margin: 4px 0; }

/* V414: tap targets of at least 44 px under a person; impression line; locked options. */
.suggest.compact { min-height: 44px; }
.pg-close { min-width: 44px; min-height: 44px; display: grid; place-items: center; }
.scene-impression { margin: 8px 0 0; font: 600 0.9375rem/1.35 var(--sans); color: var(--muted); }
.tell .tell-locked { color: var(--muted); font-style: italic; }
.c-time { margin-bottom: 12px; }
.c-time > summary.c-later { min-height: 44px; padding-block: 12px; color: var(--muted); cursor: pointer; }
.c-time select { min-height: 44px; font: inherit; padding: 6px 10px; border: 1px solid var(--rule); border-radius: 8px; background: var(--card); }

/* V415: closing buttons stick to the bottom of long sheets; folded sections. */
.sticky-actions { position: sticky; bottom: 0; background: var(--paper); padding: 8px 0 calc(8px + env(safe-area-inset-bottom)); margin-top: 8px; z-index: 2; border-top: 1px solid var(--rule); }
.fold-sec > summary, .perk-fold > summary { cursor: pointer; min-height: 44px; display: flex; align-items: center; gap: 6px; font-weight: 600; }
.fold-sec > summary .kicker-inline { font: 700 0.75rem/1 var(--mono); letter-spacing: .12em; text-transform: uppercase; color: var(--brass, #8a6a1f); }
.fold-sec > summary small, .perk-fold > summary { color: var(--muted); font-size: 0.8125rem; }
.perk-fold > summary { min-height: 32px; }
.jump-row { display: flex; gap: 6px; flex-wrap: wrap; margin: 8px 0; }

/* V416: create screen – tap targets, blocked button look. */
#v-create .chip { min-height: 44px; }
#create.blocked { opacity: .6; }
.derived span { font-size: 0.6875rem; line-height: 1.2; }

/* V417: quiet-day paper small, end advice. */
.clip-small { font-size: 0.8125rem; opacity: .85; margin-top: 10px; }
.clip-small h3, .clip-small h4 { font-size: 0.9375rem; }
.end-advice { font: 600 0.9375rem/1.4 var(--serif); margin: 8px 0 12px; }
/* V413 (zurück 1): two person cards fit on 390×844 – actions as a 2×2 grid, tighter dossier. */
.person-card .plan-from > .chips { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.person-card .plan-from > .chips > .chip { min-height: 40px; padding: 4px 8px; line-height: 1.2; border-radius: 14px; text-align: center; }
.person-card .who-head .face, .person-card .who-head > :first-child { flex: none; }
.person-card.dossier .d-trait { margin-top: 6px; }
.person-card.dossier .d-more { margin-top: 2px; }
.person-card .chips-more > summary { padding: 6px 0 2px; }
.person-card .d-quote { -webkit-line-clamp: 2; line-clamp: 2; display: -webkit-box; -webkit-box-orient: vertical; overflow: hidden; }
/* V415 (zurück 1): compact goods and value blocks so the prices / five values fit above the sticky row. */
.good { padding: 6px 0; }
.good-head { display: flex; align-items: baseline; gap: 8px; flex-wrap: wrap; }
.good-head b { display: inline; }
.price-row { margin-top: 4px; }
.figure-stats-full { gap: 6px; }
.stat-block { padding: 4px 10px 6px; }
.stat-block .perk-fold > summary.stat-row { min-height: 36px; font-weight: normal; color: inherit; font-size: inherit; list-style: none; }
.stat-block .perk-fold > summary.stat-row::-webkit-details-marker { display: none; }
.stat-block > .stat-row { min-height: 36px; align-items: center; }
.stat-block .perk-count { margin-left: auto; color: var(--muted); font-size: 0.8125rem; font-weight: 600; white-space: nowrap; }
.stat-block .perk-count::after { content: " ▾"; }
.stat-block details[open] .perk-count::after { content: " ▴"; }
.stat-block .stat-uses { margin: 0; }
.extra-crowd { width: auto; min-width: 44px; height: 44px; padding: 0 12px; border-radius: 22px; white-space: nowrap; font-family: var(--sans); font-weight: 600; }
