/* Panel za mladence: ista paleta i slova kao pozivnica, ali radni, pregledan raspored */
:root {
  --green: #2B3D31;
  --green-2: #3B5244;
  --green-deep: #121B16;
  --paper: #F4EFE6;
  --paper-2: #EEE7DA;
  --surface-2: #EEE7DA;
  --card: #FFFCF6;
  --ink: #24302A;
  --ink-soft: #687064;
  --line: #D6CBB8;
  --seat-empty: #E2D9C9;
  --floor: #EAE3D5;
  --danger: #A3332B;
  --frame: #A7B0A2;
  --bordo: #7A2232;
  --rust: #B0532E;
  --blush: #E4A98B;
  --cream: #F3EBDD;
  --ok: #3E6B4F;
  --warn: #B0532E;
  --font-serif: "Cormorant Garamond", Garamond, Georgia, serif;
  --font-sans: "Jost", "Segoe UI", system-ui, sans-serif;
  --font-script: "Pinyon Script", "Segoe Script", cursive;
  --r: 10px;
}

*, *::before, *::after { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body {
  margin: 0; min-height: 100vh;
  background: var(--paper); color: var(--ink);
  font-family: var(--font-sans); font-size: 15px; line-height: 1.45;
  -webkit-font-smoothing: antialiased;
}
button, input, select, textarea { font: inherit; color: inherit; }
a { color: var(--green); }
:focus-visible { outline: 2px solid var(--rust); outline-offset: 2px; }
[hidden] { display: none !important; }
.muted { color: var(--ink-soft); }
.small { font-size: 12.5px; }
.center { text-align: center; }
.boot { padding: 40vh 16px 0; text-align: center; color: var(--ink-soft); }
code { font-size: 12px; word-break: break-all; }

/* ---------- okvir ---------- */
.top {
  position: relative; z-index: 20;
  display: flex; align-items: center; justify-content: space-between; gap: 12px;
  padding: 10px max(16px, env(safe-area-inset-right)) 10px max(16px, env(safe-area-inset-left));
  padding-top: calc(10px + env(safe-area-inset-top));
  background: var(--green); color: var(--cream);
}
.top__brand { display: flex; align-items: baseline; gap: 10px; min-width: 0; }
.top__names { font-family: var(--font-script); font-size: 27px; line-height: 1; white-space: nowrap; }
.top__names i { font-style: normal; color: var(--blush); }
.top__sub { font-size: 10.5px; letter-spacing: .3em; text-transform: uppercase; opacity: .7; }
.top__right { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: flex-end; }
.top .link { color: var(--cream); }
.badge { padding: 3px 9px; border-radius: 999px; font-size: 11px; letter-spacing: .08em; }
.badge--demo { border: 1px dashed var(--blush); color: #F0C6AE; }

.tabs {
  position: sticky; top: 0; z-index: 19;
  display: flex; gap: 2px; overflow-x: auto; scrollbar-width: none;
  padding: 0 max(10px, env(safe-area-inset-left));
  background: var(--paper); border-bottom: 1px solid var(--line);
}
.tabs::-webkit-scrollbar { display: none; }
.tab {
  flex: 0 0 auto; display: inline-flex; align-items: center; gap: 6px;
  min-height: 46px; padding: 0 14px; border: 0; background: none; cursor: pointer;
  font-size: 14.5px; font-weight: 500; color: var(--ink-soft);
  border-bottom: 2px solid transparent;
}
.tab[aria-current="true"] { color: var(--green); border-bottom-color: var(--bordo); }
.tab__n { min-width: 20px; padding: 1px 6px; border-radius: 999px; background: var(--bordo); color: #fff; font-size: 11px; letter-spacing: 0; }

.view { max-width: 1180px; margin: 0 auto; padding: 18px max(16px, env(safe-area-inset-left)) calc(80px + env(safe-area-inset-bottom)); }
.stack { display: grid; gap: 16px; }
.stack--tight { gap: 10px; }
.card { padding: 16px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); display: grid; gap: 10px; }
.card h3, .pool h3 { margin: 0; font-family: var(--font-serif); font-size: 23px; font-weight: 600; line-height: 1.15; }
.center-box { display: grid; gap: 14px; justify-items: center; padding: 30vh 16px 0; text-align: center; }

/* ---------- dugmad i polja ---------- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 6px;
  min-height: 40px; padding: 0 14px; border-radius: 8px;
  border: 1px solid var(--line); background: var(--card); color: var(--ink);
  font-size: 14px; font-weight: 500; text-decoration: none; white-space: nowrap;
  cursor: pointer; transition: border-color .15s, background-color .15s, filter .15s;
}
.btn:hover { border-color: var(--ink-soft); }
.btn--solid { background: var(--green); border-color: var(--green); color: var(--cream); }
.btn--solid:hover { filter: brightness(1.1); border-color: var(--green); }
.btn--sm { min-height: 32px; padding: 0 10px; font-size: 13px; }
.btn--ghost { background: transparent; color: var(--ink-soft); }
.btn--danger { color: var(--danger); }
.btn--danger:hover { border-color: var(--danger); }
.btn--viber { border-color: #665CAC; color: #665CAC; }
.btn--viber:hover { border-color: #665CAC; }
.btn--wa { border-color: #1F8F55; color: #1F8F55; }
.btn--wa:hover { border-color: #1F8F55; }
.btn:disabled { opacity: .45; cursor: not-allowed; }
.btn-row { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.link { padding: 2px 0; border: 0; background: none; cursor: pointer; color: var(--green); text-decoration: underline; text-underline-offset: 3px; font-size: inherit; }
.icon-btn { width: 36px; height: 36px; flex: 0 0 auto; border: 1px solid var(--line); border-radius: 50%; background: var(--card); cursor: pointer; font-size: 20px; line-height: 1; color: var(--ink-soft); }
.icon-btn:disabled { opacity: .3; cursor: default; }
.spacer { flex: 1; }

.toolbar { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.toolbar--slim { gap: 12px; }
.search { flex: 1 1 240px; min-height: 40px; padding: 0 12px; border: 1px solid var(--line); border-radius: 8px; background: var(--card); font-size: 16px; }
input[type="text"], input[type="email"], input[type="tel"], input[type="url"], input[type="number"], input[type="date"], select, textarea {
  width: 100%; min-height: 42px; padding: 8px 12px;
  border: 1px solid var(--frame); border-radius: 6px; background: var(--card); font-size: 16px;
}
textarea { min-height: 70px; resize: vertical; line-height: 1.45; }
.toolbar input[type="date"] { width: auto; }
.inline { display: inline-flex; align-items: center; gap: 8px; font-size: 13px; color: var(--ink-soft); }
.inline select { width: auto; min-height: 38px; }
.form { display: grid; gap: 14px; }
.field { display: grid; gap: 4px; min-width: 0; }
.field > label { display: grid; gap: 5px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field__label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.field > label > input, .field > label > select, .field > label > textarea { letter-spacing: 0; text-transform: none; color: var(--ink); }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
fieldset { margin: 0; padding: 12px; border: 1px solid var(--line); border-radius: 8px; display: grid; gap: 10px; }
legend { padding: 0 6px; font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--ink-soft); }
.people-edit { display: grid; gap: 8px; justify-items: start; }
.row-person { display: grid; grid-template-columns: 1fr 1fr auto auto; gap: 8px; width: 100%; align-items: center; }
.check--sm { gap: 4px; font-size: 13px; color: var(--ink-soft); white-space: nowrap; }
.check--sm input { width: 18px; height: 18px; }
.check { display: inline-flex; align-items: center; gap: 8px; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--green); }
.err { margin: 0; color: var(--bordo); font-size: 13.5px; }
.err:empty { display: none; }
.file input { width: 100%; padding: 14px; border: 1px dashed var(--frame); border-radius: 8px; background: var(--card); }

.seg { display: inline-flex; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; background: var(--card); }
.seg button { min-height: 36px; padding: 0 13px; border: 0; background: transparent; cursor: pointer; font-size: 12.5px; }
.seg button + button { border-left: 1px solid var(--frame); }
.seg button[aria-pressed="true"] { background: var(--green); color: var(--cream); }

/* ---------- pregled ---------- */
.stats { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; }
.stat { display: grid; gap: 2px; padding: 14px 14px 12px; background: var(--card); border: 1px solid var(--line); border-radius: var(--r); }
.stat b { font-family: var(--font-serif); font-size: 38px; font-weight: 600; line-height: 1; font-variant-numeric: lining-nums; }
.stat span { font-size: 11px; letter-spacing: .18em; text-transform: uppercase; color: var(--ink-soft); }
.stat small { font-size: 12px; color: var(--ink-soft); }
.stat--hl { background: var(--green); border-color: var(--green); color: var(--cream); }
.stat--hl span, .stat--hl small { color: rgba(243, 235, 221, .8); }
.menu-bar { display: flex; height: 14px; overflow: hidden; border-radius: 999px; background: var(--paper-2); }
.menu-bar i { display: block; height: 100%; background: var(--green); }
.menu-bar i.is-posni { background: var(--bordo); }
.menu-legend { display: flex; flex-wrap: wrap; gap: 6px 18px; margin: 0; }
.menu-legend b { font-family: var(--font-serif); font-size: 22px; }
.table-wrap { overflow-x: auto; }
.table-wrap--tall { max-height: 46vh; overflow: auto; border: 1px solid var(--line); border-radius: 8px; }
.tbl { width: 100%; border-collapse: collapse; font-size: 14px; }
.tbl th { position: sticky; top: 0; background: var(--card); text-align: left; font-weight: 500; font-size: 11px; letter-spacing: .12em; text-transform: uppercase; color: var(--ink-soft); }
.tbl th, .tbl td { padding: 8px 10px; border-bottom: 1px solid var(--line); vertical-align: top; }
.tbl tr.is-off td { opacity: .4; }
.plain { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.plain li { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.plain li:last-child { border-bottom: 0; padding-bottom: 0; }

/* ---------- gosti ---------- */
.chips { display: flex; gap: 6px; overflow-x: auto; padding-bottom: 4px; scrollbar-width: thin; }
.fchip { flex: 0 0 auto; display: inline-flex; gap: 6px; align-items: center; min-height: 36px; padding: 0 12px; border: 1px solid var(--line); border-radius: 999px; background: var(--card); cursor: pointer; font-size: 13px; }
.fchip span { color: var(--ink-soft); font-size: 12px; }
.fchip[aria-pressed="true"] { background: var(--green); border-color: var(--green); color: var(--cream); }
.fchip[aria-pressed="true"] span { color: rgba(243, 235, 221, .75); }
.hh-list { display: grid; gap: 10px; }
.hh { display: grid; gap: 10px; padding: 14px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--r); }
.hh--poslato { border-left-color: var(--blush); }
.hh--otvorili { border-left-color: var(--rust); }
.hh--odgovorili { border-left-color: var(--ok); }
.hh.is-flash { animation: flash 1.6s ease-out; }
@keyframes flash { 0% { box-shadow: 0 0 0 4px rgba(176, 83, 46, .45); } 100% { box-shadow: 0 0 0 0 rgba(176, 83, 46, 0); } }
.hh__top { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 6px 12px; align-items: baseline; }
.hh__title { display: flex; flex-wrap: wrap; gap: 6px; align-items: baseline; }
.hh__title strong { font-family: var(--font-serif); font-size: 22px; font-weight: 600; line-height: 1.15; }
.tag { padding: 1px 8px; border-radius: 999px; background: var(--paper-2); font-size: 11.5px; color: var(--ink-soft); }
.tag--warn { background: rgba(176, 83, 46, .12); color: var(--rust); }
.tag--en { background: rgba(70, 105, 143, .14); color: #46698F; font-weight: 600; letter-spacing: .04em; }
.lang-row { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 12px; }
.status { font-size: 12px; letter-spacing: .04em; color: var(--ink-soft); }
.status--odgovorili { color: var(--ok); }
.status--otvorili { color: var(--rust); }
.hh__people { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.pill { display: inline-flex; align-items: baseline; gap: 2px; padding: 3px 10px; border-radius: 999px; border: 1px solid var(--line); background: #fff; font-size: 14px; }
.pill::before { content: ""; align-self: center; width: 8px; height: 8px; margin-right: 6px; border-radius: 50%; border: 1.5px solid var(--frame); }
.pill.is-yes::before { background: var(--ok); border-color: var(--ok); }
.pill.is-no { color: var(--ink-soft); text-decoration: line-through; text-decoration-color: rgba(122, 34, 50, .5); }
.pill.is-no::before { background: var(--bordo); border-color: var(--bordo); }
.pill abbr { text-decoration: none; color: var(--bordo); font-weight: 500; }
.pill small { color: var(--ink-soft); }
.hh__meta { display: flex; flex-wrap: wrap; gap: 4px 14px; font-size: 13px; color: var(--ink-soft); }
.hh__meta .note { color: var(--ink); }
.hh__meta .note--guest { color: var(--bordo); }
.hh__actions { display: flex; flex-wrap: wrap; gap: 6px; }

/* ---------- prozori ---------- */
.modal { width: min(560px, calc(100vw - 20px)); max-height: calc(100dvh - 20px); padding: 0; border: 0; border-radius: 14px; background: var(--paper); color: var(--ink); box-shadow: 0 30px 80px -20px rgba(0, 0, 0, .55); }
.modal--wide { width: min(760px, calc(100vw - 20px)); }
.modal::backdrop { background: rgba(18, 27, 22, .55); }
.modal__box { display: grid; grid-template-rows: auto 1fr auto; max-height: calc(100dvh - 20px); }
.modal__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 14px 16px 10px; border-bottom: 1px solid var(--line); }
.modal__head h2 { margin: 0; font-family: var(--font-serif); font-size: 24px; font-weight: 600; line-height: 1.15; }
.modal__body { overflow: auto; padding: 16px; }
.modal__foot { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; padding: 12px 16px calc(12px + env(safe-area-inset-bottom)); border-top: 1px solid var(--line); }
.msg { min-height: 180px; font-family: var(--font-sans); font-size: 15px; }
.preview { margin: 0; padding: 12px; white-space: pre-wrap; background: var(--paper); border: 1px dashed var(--frame); border-radius: 8px; font-family: var(--font-sans); font-size: 14px; }
.qr-img { width: min(360px, 100%); height: auto; justify-self: center; border: 1px solid var(--line); }
.ans { display: grid; gap: 8px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; }
.ans strong { font-family: var(--font-serif); font-size: 20px; }
.ans--plus { margin-left: 18px; border-style: dashed; }
.ans__choices { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.ans__choices select { width: auto; }
.log { list-style: none; margin: 0; padding: 0; display: grid; gap: 12px; }
.log > li { display: grid; gap: 6px; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 8px; justify-items: start; }
.log__head { display: flex; gap: 8px; align-items: baseline; }
.log ul { margin: 0; padding-left: 18px; font-size: 14px; }

.toast {
  position: fixed; left: 50%; bottom: calc(18px + env(safe-area-inset-bottom)); z-index: 100;
  transform: translateX(-50%); width: max-content; max-width: calc(100vw - 32px);
  padding: 12px 18px; border-radius: 10px; background: var(--green-deep); color: var(--cream);
  box-shadow: 0 16px 40px -14px rgba(0, 0, 0, .6); font-size: 14px;
}
.toast--warn { background: #5A3420; }
.toast--err { background: var(--bordo); }

/* ---------- prijava ---------- */
.login { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; background: var(--green-deep); }
.login__card { width: min(420px, 100%); display: grid; gap: 14px; padding: 34px 24px 28px; background: var(--paper); border-radius: 14px; text-align: center; }
.login__card .form { text-align: left; }
.login__names { margin: 0; font-family: var(--font-script); font-size: 44px; line-height: 1.1; color: var(--bordo); }
.login__names i { font-style: normal; color: var(--rust); }
.login__sub { margin: -6px 0 6px; font-size: 11px; letter-spacing: .3em; text-transform: uppercase; color: var(--ink-soft); }

/* ---------- raspored ---------- */
.seat-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px 18px; }
.seat-title { display: grid; gap: 2px; }
.seat-title h2 { margin: 0; font-family: var(--font-serif); font-size: 30px; font-weight: 600; line-height: 1; }
.pills { display: flex; flex-wrap: wrap; gap: 6px; font-variant-numeric: tabular-nums; }
.pill-stat { padding: 4px 11px; border-radius: 999px; background: var(--surface-2); font-size: 13px; white-space: nowrap; }
.pill-stat b { font-weight: 600; }
.pill-stat.is-warn b { color: var(--bordo); }
.seat-hits:empty { display: none; }
.seat-hits { padding: 12px 14px; background: var(--card); border: 1px solid var(--rust); border-radius: var(--r); }

.seat-layout { display: grid; gap: 16px; }
.pool, .hall-panel { min-width: 0; padding: 14px; background: var(--card); border: 1px solid var(--line); border-radius: 12px; }
.pool { display: grid; gap: 10px; align-content: start; border-radius: 12px; transition: background-color .15s, box-shadow .15s; }
.panel-head { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 6px 12px; margin-bottom: 10px; }
.panel-head--gap { margin-top: 20px; }
.panel-head h3, .pool h3 { margin: 0; font-family: var(--font-serif); font-size: 23px; font-weight: 600; }
.group { display: grid; gap: 6px; }
.group-head { display: flex; align-items: baseline; gap: 8px; }
.group-head .dot { width: 10px; height: 10px; flex: none; align-self: center; border-radius: 50%; }
.group-head strong { font-weight: 600; }
.group-head span { color: var(--ink-soft); font-size: 12.5px; font-variant-numeric: tabular-nums; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.empty-note { margin: 0; color: var(--ink-soft); font-size: 12.5px; font-style: italic; }

.plan-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; padding-bottom: 4px; }
.plan { position: relative; width: 100%; min-width: 640px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; }
.plan.is-edit { background-image: linear-gradient(var(--line) 1px, transparent 1px), linear-gradient(90deg, var(--line) 1px, transparent 1px); background-size: calc(100% / var(--pc, 12) / 2) calc(100% / var(--pr, 6.5) / 2); outline: 2px dashed var(--frame); outline-offset: 2px; }
.plan__floor { position: absolute; display: grid; place-items: center; background: var(--floor); border: 1px dashed var(--line); border-radius: 8px; pointer-events: none; }
.plan__floor span { writing-mode: vertical-rl; font-size: 11px; letter-spacing: .32em; text-transform: uppercase; color: var(--ink-soft); }
.ptable { position: absolute; cursor: pointer; border-radius: 14px; -webkit-tap-highlight-color: transparent; transition: background-color .15s, box-shadow .15s; }
.ptable svg { position: absolute; left: 3%; top: 3%; width: 94%; height: 94%; overflow: visible; }
.ptable .face { fill: var(--card); stroke: var(--line); stroke-width: 1.5; transition: stroke .15s, fill .15s; }
.ptable--rect .face { stroke-width: 2; }
.ptable .d { fill: var(--seat-empty); stroke: none; }
.ptable .d.is-res { fill: var(--card); stroke-width: 1.6; stroke-dasharray: 2.2 1.6; }
.ptable text { text-anchor: middle; font-family: var(--font-sans); fill: var(--ink); }
.ptable .no { font-family: var(--font-serif); font-size: 25px; font-weight: 600; }
.ptable .occ { font-size: 9.5px; fill: var(--ink-soft); font-variant-numeric: tabular-nums; }
.ptable--rect .name { font-family: var(--font-serif); font-size: 21px; font-weight: 600; }
.ptable--rect .occ { font-size: 13px; }
.ptable:hover .face { stroke: var(--green); fill: var(--surface-2); }
.ptable.is-full .face { stroke: var(--green); }
.ptable.is-over .face { stroke: var(--danger); fill: #F8E5E2; }
.ptable.is-over .occ { fill: var(--danger); font-weight: 600; }
.ptable.is-hit { background: rgba(176, 83, 46, .14); box-shadow: 0 0 0 2px var(--rust); }
.ptable.drop-ok .face { stroke: var(--green); fill: var(--surface-2); stroke-width: 2.4; }
.ptable.drop-bad .face { stroke: var(--danger); stroke-width: 2.4; }
.ptable.is-flash .face, .tcard.is-flash, .pool.is-flash { animation: seatflash 1.2s ease; }
@keyframes seatflash { 30% { fill: var(--surface-2); background-color: var(--surface-2); border-color: var(--green); stroke: var(--green); } }
.plan.is-edit .ptable { cursor: grab; touch-action: none; background: rgba(255, 255, 255, .55); box-shadow: 0 0 0 1px var(--frame); }
.plan.is-edit .ptable.is-moving { cursor: grabbing; z-index: 3; box-shadow: 0 10px 26px -10px rgba(0, 0, 0, .5); }

.legend { display: flex; flex-wrap: wrap; gap: 6px 14px; margin-top: 10px; font-size: 12.5px; color: var(--ink-soft); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { display: block; width: 10px; height: 10px; border-radius: 50%; }
.legend i.is-empty { background: var(--seat-empty); }
.legend i.is-res { border: 1.5px dashed var(--ink-soft); }

.chip {
  display: inline-flex; align-items: center; gap: 6px; max-width: 100%; min-height: 32px;
  padding: 4px 6px 4px 9px; border-radius: 999px; border: 1px solid var(--line); border-left: 4px solid var(--gc, var(--frame));
  background: var(--paper); cursor: grab; font-size: 13.5px; line-height: 1.2;
  -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; touch-action: manipulation;
}
.chip:hover { border-color: var(--ink-soft); border-left-color: var(--gc, var(--frame)); }
.chip .nm { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.chip .cnt { flex: none; display: grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 999px; background: var(--surface-2); font-size: 12px; font-weight: 600; font-variant-numeric: tabular-nums; }
.chip .flag { flex: none; font-size: 11px; font-weight: 600; color: var(--bordo); }
.chip .ok { flex: none; font-size: 12px; font-weight: 600; color: var(--ok); }
.chip .at { flex: none; font-size: 11.5px; color: var(--ink-soft); }
.chip .more { flex: none; display: grid; place-items: center; width: 22px; height: 22px; border: 0; border-radius: 50%; background: transparent; cursor: pointer; font-size: 15px; line-height: 1; color: inherit; opacity: .65; }
.chip .more:hover { opacity: 1; background: var(--surface-2); }
.chip.is-picked { background: var(--green); border-color: var(--green); border-left-color: var(--gc, var(--green)); color: var(--cream); }
.chip.is-picked .cnt { background: var(--cream); color: var(--green); }
.chip.is-picked .flag, .chip.is-picked .ok, .chip.is-picked .at { color: var(--cream); }
.chip.is-hit { background: #FCE9DD; box-shadow: 0 0 0 2px rgba(176, 83, 46, .4); }
.chip.is-dragging { opacity: .35; }
.ghost { position: fixed; left: 0; top: 0; z-index: 200; pointer-events: none; cursor: grabbing; opacity: .95; box-shadow: 0 10px 24px rgba(0, 0, 0, .25); }
body.is-dragging, body.is-dragging * { cursor: grabbing !important; }
.pool.drop-ok { background: var(--surface-2); box-shadow: 0 0 0 2px var(--green); }

.tcards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.tcard { display: grid; gap: 8px; align-content: start; min-width: 0; padding: 10px; background: var(--paper); border: 1px solid var(--line); border-radius: 10px; transition: border-color .15s, background-color .15s; }
.tcard header { display: flex; justify-content: space-between; align-items: baseline; gap: 8px; }
.tcard header strong { font-family: var(--font-serif); font-size: 20px; font-weight: 600; }
.tcard .occ { font-size: 12.5px; color: var(--ink-soft); font-variant-numeric: tabular-nums; white-space: nowrap; }
.tcard .occ.is-full { color: var(--green); font-weight: 600; }
.tcard .occ.is-over { color: var(--danger); font-weight: 600; }
.tcard.is-over { border-color: var(--danger); }
.tcard.is-hit { border-color: var(--rust); box-shadow: 0 0 0 2px rgba(176, 83, 46, .3); }
.tcard.drop-ok { border-color: var(--green); background: var(--surface-2); }
.tcard.drop-bad { border-color: var(--danger); }
.tcard .chips { min-height: 32px; }
.tcard .muted.small { margin: 0; }
.bar { display: flex; height: 5px; overflow: hidden; border-radius: 999px; background: var(--seat-empty); }
.bar i { display: block; height: 100%; }
.tcard__foot { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; justify-content: space-between; }
.tcard__foot select.swap { width: auto; flex: 1 1 140px; min-height: 32px; padding: 2px 8px; font-size: 13px; border-color: var(--line); }

.pickbar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 40;
  display: flex; flex-wrap: wrap; align-items: center; gap: 10px;
  padding: 10px max(16px, env(safe-area-inset-right)) calc(10px + env(safe-area-inset-bottom)) max(16px, env(safe-area-inset-left));
  background: var(--green); color: var(--cream);
}
.pickbar p { flex: 1 1 220px; margin: 0; }
.pickbar .btn { background: transparent; color: var(--cream); border-color: var(--cream); }
body:has(.pickbar) .toast { bottom: calc(84px + env(safe-area-inset-bottom)); }
.tip {
  position: fixed; z-index: 150; width: max-content; max-width: min(320px, calc(100vw - 16px));
  padding: 10px 12px; border-radius: 10px; background: var(--card); border: 1px solid var(--line);
  box-shadow: 0 14px 34px -12px rgba(0, 0, 0, .35); font-size: 13.5px; pointer-events: auto;
}
body.is-dragging .tip { pointer-events: none; }
.tip__head { display: flex; justify-content: space-between; gap: 14px; align-items: baseline; margin-bottom: 6px; }
.tip__head strong { font-family: var(--font-serif); font-size: 19px; font-weight: 600; }
.tip__head span { color: var(--ink-soft); font-variant-numeric: tabular-nums; }
.tip ul { list-style: none; margin: 0; padding: 0; display: grid; gap: 5px; }
.tip li { display: grid; grid-template-columns: 10px 1fr; gap: 8px; align-items: start; line-height: 1.3; }
.tip li i { width: 10px; height: 10px; margin-top: 4px; border-radius: 50%; }
.tip li small { display: block; color: var(--ink-soft); font-size: 11.5px; }
.tip p { margin: 0; }
.tip__res { margin-top: 6px !important; color: var(--bordo); font-size: 12.5px; }
.tip .link { margin-top: 8px; font-size: 13px; }
.split-row { display: grid; grid-template-columns: 1fr minmax(150px, 220px); gap: 10px; align-items: center; padding-bottom: 8px; border-bottom: 1px solid var(--line); }
.choice { display: grid; gap: 6px; justify-items: start; padding: 12px; background: var(--card); border: 1px solid var(--line); border-radius: 10px; }
.choice p { margin: 0; }

@media (min-width: 640px) {
  .stats { grid-template-columns: repeat(3, 1fr); }
}
@media (min-width: 1000px) {
  .stats { grid-template-columns: repeat(6, 1fr); }
  .seat-layout { grid-template-columns: 330px minmax(0, 1fr); align-items: start; }
  .pool { position: sticky; top: 58px; max-height: calc(100vh - 74px); overflow: auto; }
  .plan { min-width: 0; }
}
@media (max-width: 520px) {
  .split-row { grid-template-columns: 1fr; }
  .row2, .row-person { grid-template-columns: 1fr 1fr; }
  .row-person .check--sm { justify-self: start; }
  .row-person .icon-btn { justify-self: end; }
  .top__names { font-size: 23px; }
  .hh__actions .btn { flex: 1 1 auto; }
}

/* štampa: samo stolovi sa imenima, za hotel i ulaz u salu */
@media print {
  body { background: #fff; font-size: 12px; }
  .top, .tabs, .toolbar, .seat-head, .seat-hits, .pool, .card, .toast { display: none !important; }
  .seat-layout { display: block; }
  .view { padding: 0; max-width: none; }
  .plan-wrap { border: 0; padding: 0; break-after: page; }
  .plan { min-width: 0; }
  .tcards { grid-template-columns: repeat(3, 1fr); }
  .tcard { break-inside: avoid; border-color: #999; }
  .chip { border: 0; padding: 0 6px 0 0; min-height: 0; background: none !important; box-shadow: none !important; }
  .chip .more, .chip .ok, .tcard__foot, .empty-note, .legend, .panel-head, .pickbar { display: none !important; }
  .hall-panel { border: 0; padding: 0; }
}
