:root {
  --ink: #17211d;
  --muted: #718078;
  --paper: #f4f4ef;
  --panel: #fbfbf8;
  --line: #dde1da;
  --green: #0f694d;
  --green-2: #175f49;
  --green-soft: #e6f1ec;
  --felt: #176348;
  --felt-dark: #0d4735;
  --orange: #df7f37;
  --red: #d54a4a;
  --shadow: 0 18px 50px rgba(32, 49, 42, .12);
}

* { box-sizing: border-box; }
html, body { margin: 0; min-height: 100%; }
body {
  color: var(--ink);
  background: var(--paper);
  font-family: "DM Sans", "Noto Sans SC", system-ui, sans-serif;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; }
button { color: inherit; }

.topbar {
  height: 70px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  border-bottom: 1px solid #e0e2dc;
  background: rgba(250, 250, 247, .9);
  backdrop-filter: blur(18px);
  position: sticky;
  top: 0;
  z-index: 20;
}
.brand { display: flex; align-items: center; gap: 10px; color: var(--ink); text-decoration: none; font-size: 20px; font-weight: 700; letter-spacing: -.5px; }
.brand-mark { width: 32px; height: 32px; display: grid; place-items: center; border-radius: 9px; background: var(--ink); color: white; font-size: 17px; transform: rotate(-3deg); }
.brand-mark span { transform: rotate(3deg); }
.topbar-actions { display: flex; align-items: center; gap: 10px; }
.saved-state { font-size: 12px; font-weight: 600; color: var(--muted); display: flex; align-items: center; gap: 7px; margin-right: 9px; }
.saved-state i { width: 7px; height: 7px; border-radius: 50%; background: #42a87d; box-shadow: 0 0 0 4px #e3f1eb; }
.button { border: 0; border-radius: 9px; min-height: 38px; padding: 0 15px; cursor: pointer; font-size: 13px; font-weight: 600; transition: .18s ease; }
.button:hover { transform: translateY(-1px); }
.button:disabled { cursor: wait; opacity: .65; transform: none; }
.button-ghost { background: transparent; border: 1px solid var(--line); }
.button-primary { background: var(--ink); color: white; padding: 0 18px; box-shadow: 0 6px 18px rgba(23,33,29,.15); }
.download-icon { display: inline-grid; place-items: center; width: 17px; height: 17px; border: 1px solid rgba(255,255,255,.5); border-radius: 50%; margin-right: 5px; }

.workspace { display: grid; grid-template-columns: minmax(620px, 1fr) 430px; min-height: calc(100vh - 70px); }
.preview-column { padding: 32px 38px 38px; min-width: 0; overflow-x: auto; }
.section-heading, .editor-heading { display: flex; align-items: flex-end; justify-content: space-between; margin-bottom: 20px; }
.section-heading h1, .editor-heading h2 { margin: 3px 0 0; font-size: 24px; line-height: 1.1; letter-spacing: -.7px; }
.eyebrow { font-size: 9px; font-weight: 700; letter-spacing: 1.8px; color: #869089; }
.format-note { color: #929b94; font-size: 11px; }
.preview-shell { max-width: 1120px; margin: 0 auto; }
.render-card { width: 100%; aspect-ratio: 3 / 2; overflow: hidden; border-radius: 16px; background: #fafaf6; box-shadow: var(--shadow); border: 1px solid rgba(31,46,39,.08); }
.render-header { height: 52px; display: flex; align-items: center; justify-content: space-between; padding: 0 24px; border-bottom: 1px solid #e5e6e0; background: #fdfdfa; }
.render-brand { font-size: 12px; font-weight: 700; letter-spacing: 1.2px; display: flex; align-items: center; gap: 8px; }
.render-brand span { width: 24px; height: 24px; border-radius: 7px; display: grid; place-items: center; background: var(--ink); color: white; font-size: 13px; }
.hand-meta { display: flex; align-items: center; color: #778079; font-size: 10px; font-weight: 600; letter-spacing: .2px; }
.meta-dot { margin: 0 7px; }
.hand-number { border-left: 1px solid #dcded8; margin-left: 10px; padding-left: 10px; }
.render-body { height: calc(100% - 52px); display: grid; grid-template-columns: 64% 36%; }
.table-area { padding: 18px 19px 15px; min-width: 0; display: flex; flex-direction: column; background: #fafaf6; }
.street-bar { height: 40px; display: flex; justify-content: space-between; align-items: flex-start; }
.street-kicker { display: block; color: #88938c; font-size: 7px; font-weight: 700; letter-spacing: 1.4px; line-height: 1; }
.street-bar h2 { margin: 0; font-size: 21px; letter-spacing: -.5px; }
.pot-block { text-align: right; }
.pot-block span { color: #8a958e; display: block; font-size: 10px; font-weight: 600; }
.pot-block strong { font-size: 19px; line-height: 1.35; }

.poker-stage { height: 60%; min-height: 305px; position: relative; margin-top: 3px; }
.felt-table { position: absolute; width: 69%; height: 58%; left: 15.5%; top: 19%; border-radius: 50%; background: radial-gradient(ellipse at 50% 42%, #26785d, var(--felt)); border: 7px solid #d8d3c6; box-shadow: 0 0 0 2px #a9a496, inset 0 0 50px rgba(1,38,27,.16), 0 10px 25px rgba(23,44,35,.16); }
.felt-table::after { content: ""; position: absolute; inset: 6px; border-radius: 50%; border: 1px solid rgba(255,255,255,.14); }
.felt-line { position: absolute; inset: 18px 23px; border: 1px dashed rgba(255,255,255,.13); border-radius: 50%; }
.board-wrap { position: absolute; left: 50%; top: 42%; transform: translate(-50%,-50%); z-index: 2; text-align: center; }
.board { display: flex; gap: 4px; justify-content: center; }
.card { background: #fffefa; width: 36px; height: 49px; border-radius: 5px; box-shadow: 0 2px 7px rgba(0,0,0,.24); position: relative; border: 1px solid rgba(0,0,0,.06); flex: 0 0 auto; }
.card .rank { position: absolute; left: 4px; top: 2px; font: 700 13px/1 "DM Sans", sans-serif; letter-spacing: -.4px; }
.card .suit { position: absolute; left: 4px; top: 15px; font-size: 11px; line-height: 1; }
.card .big-suit { position: absolute; right: 4px; bottom: 2px; font-size: 19px; opacity: .88; }
.card.red { color: #d74242; }
.card.placeholder { background: rgba(255,255,255,.1); border: 1px dashed rgba(255,255,255,.35); box-shadow: none; }
.board-caption { color: rgba(255,255,255,.65); font-size: 5px; font-weight: 700; letter-spacing: 1px; margin-top: 6px; }
.pot-chip { position: absolute; left: 50%; bottom: 15%; transform: translateX(-50%); color: white; background: rgba(5,44,32,.72); border-radius: 20px; padding: 3px 10px 4px; display: flex; align-items: baseline; gap: 5px; box-shadow: inset 0 0 0 1px rgba(255,255,255,.12); z-index: 3; white-space: nowrap; }
.pot-chip span { font-size: 5px; letter-spacing: .7px; color: rgba(255,255,255,.63); }
.pot-chip b { font-size: 9px; }

.seat { position: absolute; transform: translate(-50%,-50%); width: 105px; z-index: 4; text-align: center; }
.seat-box { background: #fffefa; border-radius: 8px; min-height: 43px; padding: 7px 8px 6px; box-shadow: 0 3px 12px rgba(24,39,32,.17); border: 1px solid rgba(28,47,38,.07); position: relative; }
.seat.hero .seat-box { background: var(--ink); color: white; box-shadow: 0 5px 18px rgba(15,28,22,.3); }
.seat-name { display: flex; justify-content: space-between; align-items: center; gap: 4px; font-size: 10px; font-weight: 700; }
.seat-pos { color: #8b958f; font-size: 7px; border: 1px solid #e0e3de; border-radius: 3px; padding: 1px 3px; }
.hero .seat-pos { color: #cbd3ce; border-color: #4a5751; }
.seat-stack { text-align: left; font-size: 12px; font-weight: 700; margin-top: 3px; }
.seat-stack small { color: #8c9690; font-size: 8px; font-weight: 600; margin-left: 2px; }
.hero .seat-stack small { color: #b5beb9; }
.hero-label { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); padding: 2px 8px; border-radius: 8px; background: var(--orange); color: white; font-size: 7px; letter-spacing: .6px; z-index: 2; }
.hole-cards { position: absolute; display: flex; bottom: 45px; left: 50%; right: auto; transform: translateX(-50%) rotate(-2deg); filter: drop-shadow(0 5px 6px rgba(12,25,19,.24)); }
.hole-cards .card { width: 39px; height: 54px; margin-left: -5px; border-radius: 5px; color: var(--ink); }
.hole-cards .card.red { color: #d74242; }
.hole-cards .card:first-child { transform: rotate(-3deg); }
.hole-cards .card:last-child { transform: rotate(3deg); }
.hole-cards .card .rank { font-size: 14px; left: 4px; top: 3px; }
.hole-cards .card .suit { font-size: 11px; top: 17px; left: 4px; }
.hole-cards .card .big-suit { font-size: 21px; right: 4px; bottom: 2px; }
.dealer-button { position: absolute; width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; background: white; border: 1px solid #c9cdc7; font-size: 6px; font-weight: 800; color: #59635d; box-shadow: 0 2px 6px rgba(0,0,0,.15); z-index: 6; }
.bet-tag { position: absolute; padding: 4px 7px; border-radius: 6px; color: white; background: var(--orange); font-size: 9px; font-weight: 700; z-index: 7; white-space: nowrap; box-shadow: 0 2px 6px rgba(87,48,18,.18); }

.question-card { min-height: 52px; border-radius: 9px; background: #edf1ec; display: flex; align-items: center; padding: 8px 11px; gap: 10px; margin-top: auto; }
.question-icon { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; background: var(--ink); color: white; font: 700 15px serif; flex: 0 0 auto; }
.question-card span { display: none; }
.question-card p { margin: 0; font-size: 14px; line-height: 1.3; font-weight: 600; }
.answer-row { display: grid; grid-template-columns: repeat(3, 1fr); gap: 7px; margin-top: 7px; }
.answer-option { height: 36px; border: 1px solid #d9ddd7; border-radius: 7px; display: flex; align-items: center; justify-content: center; gap: 7px; background: #fff; color: #38423c; font-size: 11px; font-weight: 700; letter-spacing: .2px; }
.answer-option i { width: 14px; height: 14px; border: 1px solid #c8cdc8; border-radius: 50%; flex: 0 0 auto; }

.history-panel { background: #f0f0ea; border-left: 1px solid #dfe1db; padding: 20px 18px 14px; min-width: 0; display: flex; flex-direction: column; }
.history-title { display: flex; justify-content: space-between; align-items: flex-start; padding-bottom: 12px; border-bottom: 1px solid #d8dcd4; }
.history-title h3 { font-size: 18px; margin: 0; letter-spacing: -.3px; }
.players-pill { font-size: 9px; padding: 5px 8px; border-radius: 10px; background: #dde3dc; color: #657269; font-weight: 700; }
.timeline { position: relative; padding: 6px 0 0 14px; flex: 1; overflow: hidden; }
.timeline::before { content: ""; position: absolute; left: 3px; top: 16px; bottom: 8px; width: 1px; background: #ced4cc; }
.street-group { position: relative; padding: 7px 0 3px; }
.street-group::before { content: ""; position: absolute; left: -14px; top: 11px; width: 7px; height: 7px; border-radius: 50%; background: #f0f0ea; border: 2px solid #96a198; z-index: 1; }
.street-group.current::before { background: var(--orange); border-color: #f0f0ea; box-shadow: 0 0 0 1px var(--orange); }
.street-head { display: flex; align-items: baseline; justify-content: space-between; margin-bottom: 4px; }
.street-head b { font-size: 10px; letter-spacing: .8px; }
.street-head span { color: #6f7b73; font-size: 9px; }
.action-line { min-height: 21px; display: grid; grid-template-columns: 58px 1fr auto; align-items: center; gap: 5px; font-size: 10px; border-radius: 5px; padding: 3px 5px; }
.action-line.focus { background: #fff; box-shadow: 0 2px 7px rgba(30,44,37,.08); }
.action-player { font-weight: 700; color: #455149; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-text { color: #707b74; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.action-amount { color: #26332c; font-weight: 700; white-space: nowrap; }
.action-line.aggressive .action-text, .action-line.aggressive .action-amount { color: #bd662b; }
.action-line.fold { opacity: .52; }
.legend { display: none; }
.legend span { display: flex; align-items: center; gap: 3px; }
.legend-dot { width: 4px; height: 4px; border-radius: 50%; }
.legend-dot.fold { background: #aeb5af; }.legend-dot.passive { background: var(--green); }.legend-dot.aggressive { background: var(--orange); }
.preview-hint { text-align: center; color: #909a93; font-size: 10px; margin: 14px 0 0; }

.editor-panel { border-left: 1px solid #dfe2dc; background: var(--panel); min-height: calc(100vh - 70px); }
.editor-heading { height: 88px; align-items: center; padding: 0 26px; margin: 0; border-bottom: 1px solid #e2e4df; }
.editor-heading h2 { font-size: 24px; }
.editor-heading .eyebrow { font-size: 11px; }
.status-badge { color: #69756d; font-size: 12px; padding: 6px 10px; background: #eef0eb; border-radius: 11px; }
.editor-scroll { height: calc(100vh - 158px); overflow-y: auto; scrollbar-width: thin; scrollbar-color: #ccd2ca transparent; }
.control-section { border-bottom: 1px solid #e1e4de; }
.control-section-title { width: 100%; height: 60px; padding: 0 26px; display: flex; align-items: center; justify-content: space-between; border: 0; background: transparent; cursor: pointer; font-size: 15px; font-weight: 650; }
.control-section-title span { display: flex; align-items: center; gap: 10px; }
.control-section-title b { color: #939d96; font-size: 11px; letter-spacing: .8px; }
.control-section-title i { color: #89948c; font-size: 15px; font-style: normal; transition: .2s; }
.control-section.collapsed .control-section-title i { transform: rotate(180deg); }
.control-section.collapsed .control-content { display: none; }
.control-content { padding: 0 26px 24px; }
.field-label, .field > span, .mini-field > span { display: block; color: #657169; font-size: 12px; font-weight: 600; margin: 0 0 8px; }
.segmented { display: grid; grid-template-columns: 1fr 1fr; gap: 3px; padding: 3px; border-radius: 8px; background: #eceee9; margin-bottom: 14px; }
.segmented button { height: 38px; border: 0; background: transparent; border-radius: 6px; cursor: pointer; color: #768179; font-size: 13px; font-weight: 700; }
.segmented button.active { background: white; color: var(--ink); box-shadow: 0 2px 6px rgba(27,42,34,.1); }
.field-grid { display: grid; gap: 9px; }.field-grid.two { grid-template-columns: 1fr 1fr; }
.field { display: block; margin-top: 14px; }
.field input, .field select, .field textarea { width: 100%; border: 1px solid #daddd7; border-radius: 8px; background: white; color: var(--ink); padding: 0 12px; outline: none; font-size: 14px; transition: .15s; }
.field input, .field select { height: 43px; }
.field textarea { padding-top: 11px; resize: vertical; line-height: 1.55; }
.field input:focus, .field select:focus, .field textarea:focus, .mini-field input:focus { border-color: #6c9d89; box-shadow: 0 0 0 3px #e6f0eb; }
.card-input-wrap { position: relative; }
.card-input-wrap input { padding-right: 48px; }
.open-card-picker { position: absolute; right: 5px; top: 5px; height: 33px; padding: 0 10px; border: 0; border-radius: 6px; background: var(--green-soft); color: var(--green); font-size: 11px; font-weight: 700; cursor: pointer; }
.open-card-picker:hover { background: #d9e9e1; }
.field-help { margin: 9px 0 0; color: #89948d; font-size: 11px; line-height: 1.55; }
.pot-inputs { display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.stack-editor { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.stack-field { min-width: 0; height: 43px; display: flex; align-items: center; border: 1px solid #daddd7; border-radius: 8px; background: white; overflow: hidden; }
.stack-field.hero-stack { border-color: #8eaa9d; box-shadow: inset 3px 0 0 var(--green); }
.stack-position { min-width: 54px; padding-left: 10px; color: #59665e; font-size: 11px; font-weight: 700; }
.stack-field input { min-width: 0; width: 100%; height: 100%; border: 0; padding: 0 4px 0 7px; outline: 0; color: var(--ink); font-size: 14px; font-weight: 600; text-align: right; }
.stack-field small { padding: 0 9px 0 3px; color: #7b867e; font-size: 10px; font-weight: 700; }
.mini-field { min-width: 0; }
.mini-field div { display: flex; height: 42px; border: 1px solid #daddd7; background: white; border-radius: 8px; overflow: hidden; }
.mini-field input { min-width: 0; width: 100%; border: 0; padding: 0 10px; outline: 0; font-size: 14px; }
.mini-field b { color: #78837c; font-size: 11px; font-weight: 600; display: grid; place-items: center; padding-right: 10px; }
.action-editor-help { margin: 0 0 13px; color: #849087; font-size: 11px; line-height: 1.5; }
.action-editor { display: grid; gap: 14px; }
.street-action-editor { padding: 11px; border: 1px solid #dde1da; border-radius: 9px; background: #f6f7f3; }
.street-editor-head { display: flex; align-items: center; justify-content: space-between; margin-bottom: 9px; }
.street-editor-head b { font-size: 12px; letter-spacing: .7px; }
.street-editor-head span { color: #818c84; font-size: 10px; font-weight: 600; }
.street-action-rows { display: grid; gap: 6px; }
.empty-street-actions { min-height: 35px; display: grid; place-items: center; border: 1px dashed #d6dad4; border-radius: 6px; color: #9ca49e; font-size: 10px; }
.action-edit-row { display: grid; grid-template-columns: 88px 1fr 70px 26px; gap: 6px; }
.action-edit-row select, .action-edit-row input { min-width: 0; width: 100%; height: 38px; padding: 0 7px; border: 1px solid #daddd7; border-radius: 6px; background: white; font-size: 11px; outline: none; }
.remove-action { border: 0; background: transparent; color: #a6aea8; cursor: pointer; padding: 0; }
.add-action { width: 100%; margin-top: 8px; height: 34px; border: 1px dashed #c4cbc3; border-radius: 6px; color: #59675e; background: transparent; font-size: 11px; font-weight: 600; cursor: pointer; }
.add-action:hover { background: #f1f3ef; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 15px); background: var(--ink); color: white; border-radius: 9px; padding: 10px 16px; font-size: 11px; opacity: 0; pointer-events: none; transition: .2s; z-index: 50; box-shadow: 0 8px 24px rgba(22,31,27,.25); }
.toast.show { opacity: 1; transform: translate(-50%,0); }

.modal-backdrop { position: fixed; inset: 0; z-index: 100; display: grid; place-items: center; padding: 24px; background: rgba(15, 25, 21, .58); backdrop-filter: blur(7px); opacity: 0; visibility: hidden; transition: opacity .18s, visibility .18s; }
.modal-backdrop[hidden] { display: none; }
.modal-backdrop.open { opacity: 1; visibility: visible; }
.card-picker-dialog { width: min(850px, 96vw); border-radius: 17px; background: #fbfbf8; box-shadow: 0 28px 80px rgba(10, 20, 16, .3); overflow: hidden; transform: translateY(10px) scale(.985); transition: transform .18s; }
.modal-backdrop.open .card-picker-dialog { transform: translateY(0) scale(1); }
.picker-header { height: 76px; display: flex; align-items: center; justify-content: space-between; padding: 0 25px; border-bottom: 1px solid #e0e3dd; }
.picker-header h2 { margin: 3px 0 0; font-size: 20px; letter-spacing: -.5px; }
.picker-close { width: 34px; height: 34px; border: 1px solid #d9ddd7; border-radius: 50%; background: transparent; color: #78837c; font-size: 22px; line-height: 1; cursor: pointer; }
.picker-summary { min-height: 57px; padding: 10px 25px; display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.picker-summary > span { color: #758078; font-size: 11px; font-weight: 600; }
.picker-selection { display: flex; min-height: 34px; gap: 5px; align-items: center; }
.selected-card-chip { min-width: 42px; height: 32px; padding: 0 8px; display: grid; place-items: center; border-radius: 7px; background: white; border: 1px solid #d9ddd7; font-size: 14px; font-weight: 700; box-shadow: 0 2px 5px rgba(29,44,36,.06); }
.selected-card-chip.red { color: var(--red); }
.selection-placeholder { color: #a2aaa4; font-size: 10px; }
.card-matrix-wrap { padding: 0 25px; overflow-x: auto; }
.card-matrix { min-width: 754px; display: grid; grid-template-columns: 42px repeat(13, 1fr); gap: 5px; }
.matrix-corner, .matrix-rank, .matrix-suit { height: 30px; display: grid; place-items: center; color: #77827a; font-size: 10px; font-weight: 700; }
.matrix-suit { height: 47px; font-size: 19px; }
.matrix-suit.red { color: var(--red); }
.matrix-card { height: 47px; border: 1px solid #dcded9; border-radius: 7px; background: white; cursor: pointer; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1; transition: .12s ease; box-shadow: 0 1px 2px rgba(25,40,32,.04); }
.matrix-card b { font-size: 13px; }.matrix-card span { font-size: 12px; margin-top: 3px; }
.matrix-card.red { color: var(--red); }
.matrix-card:hover:not(:disabled) { border-color: #65927f; transform: translateY(-1px); box-shadow: 0 4px 10px rgba(25,55,42,.1); }
.matrix-card.selected { background: var(--ink); color: white; border-color: var(--ink); box-shadow: 0 4px 10px rgba(20,32,26,.2); }
.matrix-card:disabled { cursor: not-allowed; color: #b9beba; background: #eff0ed; border-color: #e7e8e4; opacity: .72; }
.picker-help { margin: 10px 25px 13px; color: #949d96; font-size: 9px; }
.picker-footer { min-height: 66px; display: flex; align-items: center; justify-content: space-between; padding: 12px 25px; border-top: 1px solid #e0e3dd; }
.picker-footer > div { display: flex; gap: 8px; }
.picker-footer .button { min-width: 76px; }
.gg-hand-dialog { width: min(780px, 96vw); max-height: min(790px, 90vh); display: flex; flex-direction: column; border-radius: 17px; background: #fbfbf8; box-shadow: 0 28px 80px rgba(10, 20, 16, .3); overflow: hidden; transform: translateY(10px) scale(.985); transition: transform .18s; }
.modal-backdrop.open .gg-hand-dialog { transform: translateY(0) scale(1); }
.gg-import-summary { min-height: 52px; padding: 0 25px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e1e4de; color: #78837b; font-size: 11px; }
.gg-import-summary b { color: var(--green); padding: 5px 9px; border-radius: 12px; background: var(--green-soft); font-size: 10px; }
.gg-hand-list { min-height: 180px; padding: 14px 18px; display: grid; gap: 9px; overflow-y: auto; }
.gg-hand-item { width: 100%; min-height: 94px; padding: 13px 15px; display: grid; grid-template-columns: 1fr auto; gap: 9px 18px; text-align: left; border: 1px solid #dce0da; border-radius: 10px; background: white; cursor: pointer; transition: .15s ease; }
.gg-hand-item:hover { border-color: #78a18f; transform: translateY(-1px); box-shadow: 0 5px 15px rgba(25,50,39,.09); }
.gg-hand-main { display: flex; align-items: center; gap: 10px; min-width: 0; }
.gg-hole-cards { min-width: 66px; color: var(--ink); font-size: 17px; font-weight: 700; letter-spacing: .2px; }
.gg-hole-cards .red { color: var(--red); }
.gg-hand-copy { min-width: 0; }
.gg-hand-copy b { display: block; margin-bottom: 3px; font-size: 13px; }
.gg-hand-copy span { display: block; color: #818b84; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gg-hand-badges { display: flex; align-items: center; justify-content: flex-end; gap: 5px; }
.gg-hand-badges span { padding: 4px 7px; border-radius: 9px; background: #eef1ec; color: #66736a; font-size: 9px; font-weight: 700; white-space: nowrap; }
.gg-hand-badges .street-badge { color: #b6632b; background: #f7eade; }
.gg-action-summary { grid-column: 1 / -1; padding-top: 8px; border-top: 1px solid #edf0eb; color: #68746c; font-size: 10px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.gg-footer > span { color: #8b958e; font-size: 10px; }
.gg-empty { min-height: 180px; display: grid; place-items: center; color: #8c968f; font-size: 12px; }

@media (max-width: 1100px) {
  .workspace { grid-template-columns: 1fr 390px; }
  .preview-column { padding: 28px 24px; }
  .preview-shell { min-width: 780px; }
  .seat { transform: translate(-50%,-50%) scale(.86); }
}
@media (max-width: 860px) {
  .topbar { padding: 0 18px; }
  .saved-state, .button-ghost { display: none; }
  .workspace { display: block; }
  .preview-column { padding: 24px 14px 30px; overflow-x: auto; }
  .preview-shell { min-width: 780px; }
  .editor-panel { border-left: 0; border-top: 1px solid var(--line); }
  .editor-scroll { height: auto; overflow: visible; }
  .modal-backdrop { padding: 10px; place-items: center; }
  .card-picker-dialog { width: 100%; }
  .gg-hand-dialog { width: 100%; }
  .picker-header, .picker-summary, .picker-footer { padding-left: 16px; padding-right: 16px; }
  .card-matrix-wrap { padding: 0 16px; }
}

@media print {
  body { background: white; }
  .topbar, .section-heading, .editor-panel, .preview-hint { display: none !important; }
  .workspace { display: block; }.preview-column { padding: 0; }.render-card { box-shadow: none; border-radius: 0; }
}
