:root { --bg: #f4f1ea; --ink: #1f2328; --soft: #6b6f76; --line: #d8d2c4; --card: #fffdf8; --on: #1f2328; --warm: #8a4b12; --bad: #9a2b2b; }
* { box-sizing: border-box; -webkit-tap-highlight-color: transparent; }
html, body { margin: 0; height: 100%; background: var(--bg); color: var(--ink); font: 16px/1.4 system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; }
#app { max-width: 560px; margin: 0 auto; height: 100dvh; display: flex; flex-direction: column; padding: 10px 12px calc(10px + env(safe-area-inset-bottom)); gap: 8px; }
h1 { font-size: 22px; margin: 18px 0 4px; }
p { margin: 8px 0; }
.soft { color: var(--soft); }
.small { font-size: 14px; }
.top { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; font-size: 14px; color: var(--soft); min-height: 20px; }
.clock { font-variant-numeric: tabular-nums; color: var(--ink); font-weight: 600; }
.dana { font-size: 14px; color: var(--soft); min-height: 20px; }
.counter { display: grid; gap: 5px; align-content: start; flex: 1 1 0; min-height: 0; overflow-y: auto; }
.cust { background: var(--card); border: 1px solid var(--line); border-radius: 10px; padding: 6px 8px 6px 10px; display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; align-items: center; }
.cust .who { font-size: 13px; color: var(--soft); line-height: 1.25; }
.cust .who b { color: var(--warm); font-weight: 600; }
.cust .said { font-size: 16px; min-height: 22px; grid-column: 1 / -1; }
.cust .said.gone { color: var(--line); letter-spacing: 3px; }
.cust .acts { display: flex; gap: 6px; }
.talk { grid-column: 1 / -1; display: flex; flex-wrap: wrap; gap: 6px; }
.empty { color: var(--soft); font-size: 14px; padding: 8px 2px; }
.room { display: flex; flex-direction: column; gap: 6px; }
.heard { font-size: 13px; line-height: 1.3; color: var(--soft); min-height: 36px; max-height: 54px; overflow: hidden; display: flex; flex-direction: column; justify-content: flex-end; gap: 2px; }
.heard div:last-child { color: var(--ink); }
.board { background: var(--card); border: 1px dashed var(--line); border-radius: 10px; padding: 8px 10px; min-height: 42px; font-size: 15px; }
.board.busy { border-style: solid; color: var(--warm); }
.pad { display: grid; gap: 5px; }
.scene { overflow-y: auto; }
.row { display: grid; gap: 6px; grid-auto-flow: column; grid-auto-columns: 1fr; }
button { font: inherit; border: 1px solid var(--line); background: var(--card); color: var(--ink); border-radius: 10px; padding: 9px 6px; min-height: 42px; touch-action: manipulation; }
button.on { background: var(--on); color: #fff; border-color: var(--on); }
button.go { background: var(--on); color: #fff; border-color: var(--on); padding: 6px 12px; min-height: 38px; }
button.quiet { padding: 6px 10px; min-height: 38px; color: var(--soft); }
button.thing { text-align: left; padding: 9px 10px; border-color: var(--warm); color: var(--warm); background: #fff8ee; }
button.chip { padding: 7px 10px; min-height: 36px; font-size: 14px; }
button:disabled { opacity: .38; }
button.big { background: var(--on); color: #fff; border-color: var(--on); padding: 14px; font-size: 17px; margin-top: 10px; }
.scene p { font-size: 17px; }
.scene .offer p { font-size: 18px; }
.moments { padding-left: 18px; }
.moments li { margin: 6px 0; }
.moments li.bad { color: var(--bad); }
textarea { width: 100%; min-height: 150px; font: 13px/1.4 ui-monospace, monospace; border: 1px solid var(--line); border-radius: 8px; padding: 8px; background: var(--card); color: var(--ink); }
button.wide { margin-top: 8px; width: 100%; }
