/* ===================================================================
   Tema v4 – tamna "poker" tema na svim ekranima + prikaz za TV
   =================================================================== */
:root {
  color-scheme: dark;
  --bg: #0d1027;
  --surface: #191e44;
  --surface-2: rgba(255, 255, 255, .05);
  --surface-3: rgba(255, 255, 255, .09);
  --border: rgba(255, 255, 255, .11);
  --border-strong: rgba(255, 255, 255, .22);
  --text: #eef1ff;
  --muted: #a3aad0;
  --accent: #a5b4fc;
  --accent-2: #818cf8;
  --accent-soft: rgba(129, 140, 248, .16);
  --grad: linear-gradient(135deg, #818cf8 0%, #6366f1 50%, #4f46e5 100%);
  --gold: #fde68a;
  --ok: #4ade80;
  --ok-soft: rgba(34, 197, 94, .14);
  --warn: #fbbf24;
  --warn-soft: rgba(245, 158, 11, .14);
  --danger: #f87171;
  --danger-soft: rgba(239, 68, 68, .15);
  --radius: 16px;
  --shadow: 0 1px 2px rgba(0, 0, 0, .2), 0 10px 30px rgba(0, 0, 0, .25);
  --shadow-lg: 0 20px 60px rgba(0, 0, 0, .5);
  font-family: 'Segoe UI Variable', 'Segoe UI', system-ui, -apple-system, Roboto, 'Helvetica Neue', sans-serif;
}

body {
  color: var(--text);
  background:
    radial-gradient(1100px 600px at 50% -15%, #2c3275 0%, transparent 60%),
    radial-gradient(700px 500px at 110% 110%, #3b1d5e 0%, transparent 60%),
    linear-gradient(180deg, #141834 0%, #0b0e22 100%);
  background-color: var(--bg);
  background-attachment: fixed;
  -webkit-font-smoothing: antialiased;
}
h1, h2, h3 { letter-spacing: -.01em; }
a { color: #c7d2fe; }
::selection { background: rgba(129, 140, 248, .45); }
option, optgroup { background: #191e44; color: var(--text); }

/* topbar */
.topbar { background: rgba(13, 16, 39, .72); backdrop-filter: saturate(1.4) blur(14px); -webkit-backdrop-filter: saturate(1.4) blur(14px); border-bottom: 1px solid var(--border); }
.brand { color: var(--text); }
.brand .logo { background: var(--grad); border-radius: 9px; box-shadow: 0 3px 14px rgba(99, 102, 241, .55); }
.topbar nav a { border-radius: 10px; color: var(--muted); }
.topbar nav a:hover { background: var(--surface-3); color: var(--text); }
.topbar nav a.active { background: var(--accent-soft); color: #fff; }

/* kartice */
.card { background: linear-gradient(180deg, rgba(31, 37, 84, .82), rgba(23, 28, 64, .82)); border: 1px solid var(--border); border-radius: var(--radius); box-shadow: var(--shadow); backdrop-filter: blur(6px); -webkit-backdrop-filter: blur(6px); }
.result-group { border-radius: 14px; background: var(--surface-2); border-color: var(--border); }
.muted { color: var(--muted); }
hr { border-color: var(--border); }

/* dugmad */
button, .btn { border-radius: 11px; background: var(--surface-3); border-color: var(--border); color: var(--text); transition: background .15s, border-color .15s, box-shadow .15s, transform .08s, filter .15s; }
button:hover:not(:disabled), .btn:hover { background: rgba(255, 255, 255, .15); border-color: var(--border-strong); }
button:active:not(:disabled), .btn:active { transform: translateY(1px); }
button:disabled { opacity: .45; }
button.primary, .btn.primary { background: var(--grad); border-color: transparent; color: #fff; box-shadow: 0 4px 18px rgba(99, 102, 241, .45); }
button.primary:hover:not(:disabled), .btn.primary:hover { background: var(--grad); filter: brightness(1.12); box-shadow: 0 6px 24px rgba(99, 102, 241, .6); }
button.success { background: linear-gradient(135deg, #34d399, #16a34a); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(22, 163, 74, .35); }
button.success:hover:not(:disabled) { background: linear-gradient(135deg, #34d399, #16a34a); filter: brightness(1.08); }
button.danger { color: #fca5a5; border-color: rgba(248, 113, 113, .35); background: rgba(239, 68, 68, .08); }
button.danger:hover:not(:disabled) { background: rgba(239, 68, 68, .18); border-color: rgba(248, 113, 113, .6); }
button.danger-solid { background: linear-gradient(135deg, #f87171, #dc2626); border-color: transparent; color: #fff; box-shadow: 0 4px 16px rgba(220, 38, 38, .35); }
button.danger-solid:hover:not(:disabled) { background: linear-gradient(135deg, #f87171, #dc2626); filter: brightness(1.08); }
button.ghost { background: transparent; border-color: transparent; color: var(--muted); }
button.ghost:hover:not(:disabled) { background: var(--surface-3); color: var(--text); border-color: transparent; }
button.xl { padding: 14px 28px; font-size: 18px; border-radius: 14px; }

/* polja */
input[type=text], input[type=number], input[type=password], input[type=url], input[type=email], input[type=date], select, textarea {
  border-radius: 11px; background: rgba(8, 10, 30, .55); border: 1px solid var(--border); color: var(--text);
}
input:focus, select:focus, textarea:focus { border-color: var(--accent-2) !important; box-shadow: 0 0 0 3px rgba(129, 140, 248, .25); outline: none; }
input::placeholder, textarea::placeholder { color: rgba(163, 170, 208, .6); }
input[type=checkbox], input[type=radio] { accent-color: #818cf8; }
input[type=date]::-webkit-calendar-picker-indicator { filter: invert(.85); }

/* tabele */
th { background: rgba(255, 255, 255, .04); color: var(--muted); }
th, td { border-color: var(--border) !important; }
tr:hover td { background: rgba(255, 255, 255, .025); }

/* bedževi, čipovi */
.badge { border-radius: 999px; padding: 3px 10px; background: var(--surface-3); color: #cfd5f5; border-color: transparent; }
.badge.voting { background: rgba(129, 140, 248, .28); color: #e0e7ff; border-color: transparent; }
.badge.revealed { background: rgba(245, 158, 11, .22); color: var(--gold); border-color: transparent; }
.badge.done, .badge.open { background: rgba(34, 197, 94, .22); color: #bbf7d0; border-color: transparent; }
.chip { background: var(--surface-2); border-color: var(--border); color: var(--text); }
.chip.voted { background: var(--ok-soft); border-color: rgba(74, 222, 128, .35); color: #bbf7d0; }
.dot { background: rgba(255, 255, 255, .25); }
.dot.on { background: #4ade80; box-shadow: 0 0 0 3px rgba(74, 222, 128, .2); }

/* upozorenja */
.alert.warn { background: var(--warn-soft); border-color: rgba(245, 158, 11, .4); color: var(--gold); }
.alert.ok { background: var(--ok-soft); border-color: rgba(34, 197, 94, .4); color: #bbf7d0; }
.alert.info { background: var(--accent-soft); border-color: rgba(129, 140, 248, .4); color: #c7d2fe; }
.alert.danger { background: var(--danger-soft); border-color: rgba(239, 68, 68, .45); color: #fecaca; }
.alert .muted { color: inherit; opacity: .75; }

/* napredak, liste */
.progress { background: rgba(255, 255, 255, .1); }
.progress > div { background: linear-gradient(90deg, #22c55e, #86efac); }
.dist .bar > div { background: var(--grad); }
.tasklist li { background: var(--surface-2); border-color: var(--border); }
.tasklist li.active { border-color: rgba(129, 140, 248, .6); background: var(--accent-soft); box-shadow: 0 0 0 1px rgba(129, 140, 248, .3) inset; }

/* tooltip objašnjenja (npr. medijana) */
.hint { cursor: help; text-decoration: underline dotted rgba(255, 255, 255, .4); text-underline-offset: 3px; }

/* modali */
.modal-back { background: rgba(4, 6, 20, .66); backdrop-filter: blur(5px); -webkit-backdrop-filter: blur(5px); animation: fadeIn .15s ease-out; }
.modal { background: linear-gradient(180deg, #232a5c, #1a1f47); border: 1px solid var(--border); border-radius: 20px; box-shadow: var(--shadow-lg); color: var(--text); animation: popIn .16s ease-out; }
.modal h2 { margin-bottom: 10px; }
.modal-text { color: var(--text); }
.modal-actions { display: flex; justify-content: flex-end; gap: 8px; margin-top: 18px; flex-wrap: wrap; }
.sheet .modal-actions { flex-direction: column-reverse; }
.sheet .modal-actions button { width: 100%; padding: 12px; font-size: 16px; }
.warn-list { margin: 6px 0 10px; padding-left: 20px; max-height: 40vh; overflow: auto; }
.warn-list li { padding: 3px 0; }
@keyframes fadeIn { from { opacity: 0; } to { opacity: 1; } }
@keyframes popIn { from { transform: scale(.96) translateY(6px); opacity: 0; } to { transform: none; opacity: 1; } }

/* toast */
.toast { background: #262d63; border: 1px solid var(--border-strong); color: #fff; box-shadow: var(--shadow-lg); }
.toast.error { background: #7f1d1d; border-color: rgba(248, 113, 113, .5); }
.toast.ok { background: #14532d; border-color: rgba(74, 222, 128, .5); }

/* ---------------- poker karte (bijele karte na tamnom stolu) ---------------- */
.pcard { position: relative; border-radius: 14px; border: none; color: #3730a3; background: linear-gradient(180deg, #ffffff, #e9ecff); box-shadow: 0 6px 18px rgba(0, 0, 0, .35); }
.pcard:hover:not(:disabled) { background: linear-gradient(180deg, #ffffff, #e9ecff); box-shadow: 0 12px 26px rgba(0, 0, 0, .45), 0 0 0 2px rgba(165, 180, 252, .7); }
.pcard.selected, .pcard.selected:hover:not(:disabled) { background: var(--grad); color: #fff; box-shadow: 0 0 0 3px #fde68a, 0 14px 32px rgba(99, 102, 241, .65); }
.pcard:disabled { opacity: .55; }
.vote .vcard { border: none; border-radius: 12px; background: linear-gradient(180deg, #fff, #e9ecff); color: #3730a3; box-shadow: 0 6px 16px rgba(0, 0, 0, .35); }
.vote.min .vcard { background: linear-gradient(180deg, #e0f2fe, #bae6fd); color: #075985; }
.vote.max .vcard { background: linear-gradient(180deg, #fef3c7, #fde68a); color: #92400e; }
.vote.novote .vcard { background: transparent; border: 2px dashed rgba(255, 255, 255, .22); color: rgba(255, 255, 255, .4); box-shadow: none; }
.vote .vname { color: #d4d9f5; }
.vote.mine .vcard { box-shadow: 0 0 0 3px #fde68a, 0 6px 16px rgba(0, 0, 0, .35); }
.vote.mine .vname b { color: var(--gold); }
/* boja člana: karta lagano obojena njegovom bojom + traka na vrhu */
.vote.tinted .vcard {
  background: linear-gradient(180deg, color-mix(in srgb, var(--mc) 16%, #fff), color-mix(in srgb, var(--mc) 36%, #fff));
  color: color-mix(in srgb, var(--mc) 60%, #111);
  box-shadow: inset 0 6px 0 var(--mc), 0 6px 16px rgba(0, 0, 0, .35);
}
.vote.tinted.mine .vcard { box-shadow: inset 0 6px 0 var(--mc), 0 0 0 3px #fde68a, 0 6px 16px rgba(0, 0, 0, .35); }
.vote.tinted .vname { border-bottom: 2px solid var(--mc); padding-bottom: 1px; }
/* kod velike razlike min/max se ne vide po boji karte nego po prstenu i oznaci */
.vote.tinted.min .vcard, .vote.tinted.max .vcard { position: relative; outline: 3px solid var(--ring); outline-offset: 3px; }
.vote.tinted.min { --ring: #38bdf8; }
.vote.tinted.max { --ring: #f59e0b; }
.vote.tinted.min .vcard::after, .vote.tinted.max .vcard::after {
  position: absolute; left: 50%; bottom: -11px; transform: translateX(-50%); padding: 1px 7px; border-radius: 999px;
  font-size: 10px; font-weight: 800; letter-spacing: .05em; background: var(--ring); color: #111; line-height: 16px;
}
.result-group .vote.tinted.min .vname, .result-group .vote.tinted.max .vname { margin-top: 16px; }
.vote.tinted.min .vcard::after { content: 'MIN'; }
.vote.tinted.max .vcard::after { content: 'MAX'; }
.avatar.tinted { background: linear-gradient(135deg, color-mix(in srgb, var(--mc) 70%, #fff), var(--mc)); }
.stats b { color: #fff; }

/* ---------------- PO ekrani ---------------- */
.page-head h1 { background: linear-gradient(90deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.greet { color: var(--muted); margin: -4px 0 18px; }
.greet b { color: var(--text); }
.session-cards .session-card { transition: box-shadow .15s, transform .15s, border-color .15s; }
.session-cards .session-card:hover { box-shadow: var(--shadow-lg); transform: translateY(-2px); border-color: rgba(129, 140, 248, .5); }
.session-card.open { border-left: 4px solid #4ade80; }
.pin-box { background: var(--accent-soft); border-color: rgba(129, 140, 248, .35); color: #fff; }
.pin-box b, .pin-box .pin { color: var(--gold); }
.team-select { background: var(--accent-soft); border-color: rgba(129, 140, 248, .35); color: #fff; }
.team-label { background: var(--accent-soft); color: #fff; }
.report td.vote-cell.changed { background: var(--warn-soft); }
.report tr.statrow td { background: rgba(255, 255, 255, .03); }
.auth-card { position: relative; overflow: hidden; }
.auth-logo { width: 64px; height: 64px; margin: 0 auto 10px; border-radius: 18px; background: var(--grad); display: grid; place-items: center; font-size: 30px; color: #fff; box-shadow: 0 10px 30px rgba(99, 102, 241, .55); transform: rotate(-6deg); }
.person { display: flex; align-items: center; gap: 10px; }

/* =================================================================
   UČESNICI (telefon)
   ================================================================= */
body.participant { background:
    radial-gradient(900px 500px at 50% -10%, #343b8a 0%, transparent 60%),
    radial-gradient(600px 400px at 0% 100%, #3b1d5e 0%, transparent 60%),
    linear-gradient(180deg, #141834 0%, #0b0e22 100%) fixed; }
.session-chip { background: var(--surface-2); border-color: var(--border); color: var(--muted); }

/* avatari – boja izvedena iz imena */
.avatar { --h: 240; background: linear-gradient(135deg, hsl(var(--h) 75% 62%), hsl(calc(var(--h) + 40) 70% 48%)); color: #fff; text-shadow: 0 1px 2px rgba(0, 0, 0, .25); box-shadow: 0 2px 8px rgba(0, 0, 0, .3), 0 0 0 2px rgba(255, 255, 255, .12); }
.avatar.lg { box-shadow: 0 10px 30px rgba(0, 0, 0, .4), 0 0 0 4px rgba(255, 255, 255, .12); }

/* PIN ekran */
.pin-screen { position: relative; }
.pin-screen h1 { font-size: 30px; margin: 4px 0 6px; background: linear-gradient(90deg, #fff, #c7d2fe); -webkit-background-clip: text; background-clip: text; color: transparent; }
.pin-screen form { position: relative; z-index: 1; margin-top: 22px; }
.logo-big { position: relative; z-index: 1; width: 84px; height: 84px; border-radius: 22px; background: var(--grad); font-size: 40px; box-shadow: 0 14px 40px rgba(99, 102, 241, .6); animation: bob 3.2s ease-in-out infinite; }
.logo-big span { display: block; transform: rotate(-8deg); }
@keyframes bob { 0%, 100% { transform: translateY(0) rotate(-4deg); } 50% { transform: translateY(-8px) rotate(4deg); } }
.float-cards { position: absolute; inset: -30px -40px auto; height: 260px; pointer-events: none; }
.fc { position: absolute; width: 46px; height: 64px; border-radius: 9px; background: linear-gradient(180deg, #fff, #e3e7ff); color: #3730a3; font-weight: 800; font-size: 15px; display: grid; place-items: center; box-shadow: 0 8px 20px rgba(0, 0, 0, .4); opacity: .85; animation: floaty 6s ease-in-out infinite; }
.fc1 { left: 2%; top: 30px; transform: rotate(-18deg); animation-delay: 0s; }
.fc2 { right: 4%; top: 10px; transform: rotate(14deg); animation-delay: -1.5s; }
.fc3 { left: 16%; top: 96px; transform: rotate(10deg); animation-delay: -3s; opacity: .5; }
.fc4 { right: 16%; top: 104px; transform: rotate(-12deg); animation-delay: -4.2s; opacity: .55; }
.pin-screen h1, .pin-screen > p { position: relative; z-index: 1; }
.fc5 { left: 46%; top: -26px; transform: rotate(4deg); animation-delay: -2.2s; opacity: .45; }
@keyframes floaty { 0%, 100% { translate: 0 0; } 50% { translate: 0 -14px; } }
.pin-entry { background: rgba(8, 10, 30, .6) !important; border: 2px solid var(--border-strong) !important; color: #fff; caret-color: var(--gold); }
.pin-entry:focus { border-color: #a5b4fc !important; box-shadow: 0 0 0 4px rgba(129, 140, 248, .3), 0 0 30px rgba(129, 140, 248, .25); }
.pin-entry::placeholder { color: rgba(163, 170, 208, .45); }
.shake { animation: shake .4s ease-in-out; }
@keyframes shake { 0%, 100% { transform: none; } 20% { transform: translateX(-10px); } 40% { transform: translateX(9px); } 60% { transform: translateX(-6px); } 80% { transform: translateX(4px); } }
.spinner { width: 34px; height: 34px; margin: 0 auto 12px; border-radius: 50%; border: 3px solid rgba(255, 255, 255, .15); border-top-color: #a5b4fc; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }

/* izbor imena */
.who-screen h1 { font-size: 30px; }
.who-screen .group-title { color: var(--accent); margin-top: 18px; }
.name-btn { position: relative; border-radius: 16px; background: linear-gradient(180deg, rgba(40, 47, 104, .85), rgba(29, 35, 80, .85)); border: 1px solid var(--border); color: var(--text); box-shadow: 0 4px 14px rgba(0, 0, 0, .25); animation: riseIn .35s ease-out both; }
.name-btn:hover:not(:disabled) { background: linear-gradient(180deg, rgba(52, 60, 128, .95), rgba(36, 43, 96, .95)); border-color: rgba(165, 180, 252, .5); }
.name-btn:active { transform: scale(.98); }
.chev { color: var(--muted); font-size: 22px; line-height: 1; }
.online-tag { font-size: 11px; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: #bbf7d0; background: rgba(34, 197, 94, .2); padding: 3px 8px; border-radius: 999px; }
@keyframes riseIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }

/* topbar učesnika */
.me-chip { padding: 4px 10px 4px 4px; border-radius: 999px; background: var(--surface-3); border: 1px solid var(--border); color: var(--text); }
.me-chip .chev { font-size: 12px; }
.exit-btn { color: #fca5a5 !important; }
#who { display: flex; align-items: center; gap: 6px; }

/* soba */
.room-card { position: relative; border-radius: 22px; background:
    radial-gradient(600px 300px at 50% 0%, rgba(99, 102, 241, .22), transparent 70%),
    linear-gradient(180deg, rgba(31, 37, 84, .9), rgba(21, 26, 60, .9)); }
.task-hero .key, .task-hero .key a { color: #fff; text-decoration: none; }
.task-hero .title { color: #d4d9f5; }

/* čekanje */
.waiting h2 { margin-top: 26px; }
.deck { position: relative; width: 64px; height: 90px; margin: 10px auto 0; }
.deck span { position: absolute; inset: 0; border-radius: 10px; border: 2px solid rgba(255, 255, 255, .85);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .13) 0 6px, transparent 6px 12px), var(--grad);
  box-shadow: 0 8px 22px rgba(0, 0, 0, .4); animation: shuffle 2.4s ease-in-out infinite; }
.deck span:nth-child(2) { animation-delay: .8s; }
.deck span:nth-child(3) { animation-delay: 1.6s; }
@keyframes shuffle {
  0%, 100% { transform: translateX(0) rotate(0); z-index: 1; }
  25% { transform: translateX(-38px) rotate(-14deg); }
  50% { transform: translateX(0) rotate(0); z-index: 3; }
  75% { transform: translateX(38px) rotate(14deg); }
}
.here { margin: 22px auto 0; max-width: 460px; padding: 14px; border-radius: 16px; background: var(--surface-2); border: 1px solid var(--border); }
.here-title { font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: 10px; }
.here-list { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.here-item { transition: opacity .3s, filter .3s; }
.here-item.off { opacity: .35; filter: grayscale(1); }
.tip { margin: 18px auto 0; max-width: 420px; font-size: 14px; color: #c7d2fe; background: rgba(129, 140, 248, .1); border: 1px dashed rgba(129, 140, 248, .35); padding: 10px 14px; border-radius: 12px; }
.tip-in { animation: tipIn .5s ease-out; }
@keyframes tipIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }

/* glasanje */
.vote-hint { color: #d4d9f5; }
.vote-hint b { color: var(--gold); }
.sent-pill { display: inline-block; padding: 6px 14px; border-radius: 999px; background: rgba(34, 197, 94, .2); color: #bbf7d0; border: 1px solid rgba(74, 222, 128, .4); font-weight: 600; animation: popIn .2s ease-out; }
.sent-pill b { color: #fff; }
.cards.play .pcard { animation: dealIn .4s cubic-bezier(.2, .8, .3, 1.2) both; }
.cards.play .pcard .face { font-size: 1.15em; font-weight: 800; }
.corner { position: absolute; display: flex; flex-direction: column; align-items: center; font-size: 11px; font-weight: 800; line-height: 1; }
.corner i { font-style: normal; font-size: 12px; margin-top: 2px; }
.corner.tl { top: 6px; left: 7px; }
.corner.br { bottom: 6px; right: 7px; transform: rotate(180deg); }
.pcard.red .corner { color: #dc2626; }
.pcard.selected .corner { color: #fff; }
@keyframes dealIn { from { opacity: 0; transform: translateY(30px) rotate(-8deg) scale(.9); } to { opacity: 1; transform: none; } }
.cards.play .pcard.selected { animation: none; transform: translateY(-8px); }
.table-title { margin: 22px 0 10px; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); text-align: center; }

/* konačna procjena */
.final-box { margin-top: 16px; text-align: center; padding: 16px; border-radius: 18px; background: var(--accent-soft); border: 1px solid rgba(129, 140, 248, .35); }
.final-box.done { background: linear-gradient(135deg, rgba(34, 197, 94, .2), rgba(16, 185, 129, .1)); border-color: rgba(74, 222, 128, .45); box-shadow: 0 0 40px rgba(34, 197, 94, .15); }
.final-label { font-size: 12px; text-transform: uppercase; letter-spacing: .1em; font-weight: 700; color: var(--muted); }
.final-total { font-size: 38px; font-weight: 800; line-height: 1.15; margin: 4px 0 10px; color: #fff; }
.final-box.done .final-total { color: #bbf7d0; }
.final-total span { font-size: 16px; font-weight: 600; color: var(--muted); }
.final-parts { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; align-items: center; }
.final-chip { padding: 4px 10px; border-radius: 999px; background: rgba(255, 255, 255, .08); border: 1px solid var(--border); font-size: 13px; color: #d4d9f5; }
.final-chip b { color: #fff; margin-left: 4px; }
.plus { color: var(--muted); font-weight: 700; }

/* lista taskova */
.p-tasks li { border-color: var(--border); }
.p-tasks li.active { background: var(--accent-soft); box-shadow: 0 0 0 1px rgba(129, 140, 248, .35) inset; }
.p-tasks li.done b a, .p-tasks li.done b { color: #bbf7d0; }
.leave-row { text-align: center; margin: 6px 0 10px; }
.leave-row button { color: #fca5a5; }
button.block.danger { width: 100%; }

/* konfete */
.confetti { position: fixed; inset: 0; pointer-events: none; overflow: hidden; z-index: 200; }
.confetti i { position: absolute; top: -12px; width: 9px; height: 14px; border-radius: 2px; animation: confettiFall 2.5s cubic-bezier(.25, .6, .5, 1) forwards; }
@keyframes confettiFall { to { transform: translate(var(--x), 105vh) rotate(var(--r)); opacity: .9; } }

/* =================================================================
   PRIKAZ ZA TV (stage) – veliki fontovi
   ================================================================= */
body.stage-mode .topbar { display: none; }
body.stage-mode main { max-width: 1600px; padding: 18px 28px 40px; }

.stage { color: var(--text); font-size: 18px; }
.stage-bar { display: flex; align-items: center; gap: 16px; flex-wrap: wrap; padding: 10px 16px; border-radius: 14px; background: rgba(255, 255, 255, .06); border: 1px solid var(--border); }
.stage-session { font-size: 15px; color: var(--muted); }
.stage-session b { color: var(--text); }
.stage-join { margin: 0 auto; font-size: 17px; color: var(--muted); }
.stage-join b { color: #fff; }
.stage-join .pin { font-size: 24px; letter-spacing: .14em; color: var(--gold); }

.stage-task { text-align: center; padding: 28px 10px 18px; }
.stage-key { font-size: clamp(40px, 6vw, 76px); font-weight: 800; letter-spacing: .02em; line-height: 1; }
.stage-key a { color: #fff; text-decoration: none; }
.stage-title { font-size: clamp(20px, 2.4vw, 30px); color: #d4d9f5; margin-top: 10px; }
.stage-meta { margin-top: 14px; display: flex; gap: 8px; justify-content: center; align-items: center; flex-wrap: wrap; font-size: 15px; }
.stage .badge { font-size: 14px; padding: 4px 12px; }
.stage-center { text-align: center; padding: 40px 0; }

/* glasanje u toku */
.stage-progress { max-width: 640px; margin: 4px auto 26px; text-align: center; }
.big-count { font-size: 64px; font-weight: 800; line-height: 1; }
.big-count span { font-size: 32px; color: var(--muted); font-weight: 600; margin-left: 6px; }
.progress.lg { height: 12px; margin: 14px 0 8px; }
.stage-progress-label { color: var(--muted); }
/* svi glasali – odbrojavanje do automatskog otvaranja karata */
.auto-reveal { margin: 14px auto 0; display: flex; align-items: center; justify-content: center; gap: 8px; width: fit-content; max-width: 100%;
  padding: 8px 18px; border-radius: 999px; font-weight: 600; color: #fde68a; background: rgba(250, 204, 21, .12); border: 1px solid rgba(250, 204, 21, .4);
  animation: arPulse 1s ease-in-out infinite; }
.auto-reveal b { font-size: 1.25em; display: inline-block; min-width: 1ch; text-align: center; }
.auto-reveal .nw { white-space: nowrap; }
.stage .auto-reveal { font-size: 20px; padding: 10px 24px; }
@keyframes arPulse { 50% { box-shadow: 0 0 0 6px rgba(250, 204, 21, .12); } }

/* sjedišta za stolom (TV i telefon) */
.seat-groups { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 18px; }
.seat-group { background: rgba(255, 255, 255, .05); border: 1px solid var(--border); border-radius: 18px; padding: 16px 18px; }
.seat-group-title { font-size: 14px; text-transform: uppercase; letter-spacing: .08em; font-weight: 700; color: var(--muted); margin-bottom: 14px; display: flex; justify-content: space-between; }
.seat-group-title span { color: #fff; }
.seats { display: flex; flex-wrap: wrap; gap: 16px; }
.seat { width: 96px; text-align: center; }
.card-back { width: 78px; height: 108px; margin: 0 auto; border-radius: 12px; border: 2px dashed rgba(255, 255, 255, .25); display: grid; place-items: center; font-size: 34px; font-weight: 800; color: #fff; transition: all .3s; }
.seat.voted .card-back {
  border: 2px solid rgba(255, 255, 255, .85);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .12) 0 6px, transparent 6px 12px), var(--grad);
  box-shadow: 0 8px 20px rgba(79, 70, 229, .45);
  animation: dropIn .35s ease-out;
}
.seat.offline .seat-name { opacity: .5; }
.seat.mine .card-back { outline: 3px solid var(--gold); outline-offset: 3px; }
.seat.mine .seat-name { color: var(--gold); font-weight: 700; }
.seat-name { font-size: 14px; margin-top: 8px; color: #d4d9f5; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.seat.tinted .card-back { border-color: color-mix(in srgb, var(--mc) 55%, transparent); }
.seat.tinted.voted .card-back {
  border-color: color-mix(in srgb, var(--mc) 40%, #fff);
  background: repeating-linear-gradient(45deg, rgba(255, 255, 255, .14) 0 6px, transparent 6px 12px),
    linear-gradient(160deg, color-mix(in srgb, var(--mc) 80%, #fff), color-mix(in srgb, var(--mc) 75%, #000));
  box-shadow: 0 8px 20px color-mix(in srgb, var(--mc) 45%, transparent);
}
.seat.tinted .seat-name { border-bottom: 2px solid var(--mc); display: inline-block; max-width: 100%; }
@keyframes dropIn { from { transform: translateY(-12px) scale(.9); opacity: .2; } to { transform: none; opacity: 1; } }

.stage-actions { display: flex; justify-content: center; gap: 12px; flex-wrap: wrap; margin-top: 28px; }

/* otkriveni glasovi */
/* flex umjesto grida: alert preko cijele širine kod auto-fit grida drži sve (prazne) kolone,
   pa se podtimovi stisnu u lijevi dio ekrana */
.stage-reveal { display: flex; flex-wrap: wrap; gap: 18px; align-items: flex-start; }
.stage-reveal > .alert { flex: 1 0 100%; margin: 0; font-size: 18px; }
.stage-reveal .result-group { flex: 1 1 320px; min-width: 0; margin: 0; padding: 18px; border-radius: 18px; }
.stage-reveal .result-group h4 { font-size: 15px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.stage .votes { gap: 14px; }
.stage .vote { min-width: 96px; }
.stage .vote .vcard { width: 84px; height: 116px; margin: 0 auto; display: grid; place-items: center; font-size: 30px; }
.stage .vote .vname { font-size: 14px; max-width: 110px; margin: 8px auto 0; }
.stage .stats { font-size: 15px; color: var(--muted); }
.stage .confirm-row { border-top-color: var(--border); }
.stage .confirm-row select { font-size: 17px; font-weight: 700; }
.stage-final { max-width: 900px; margin: 20px auto 0; text-align: center; }
.stage-final .alert { font-size: 22px; padding: 16px 20px; border-radius: 16px; }
.stage-final .final-total { font-size: 56px; }
.stage-final .final-chip { font-size: 16px; padding: 6px 14px; }

/* okretanje karata pri prikazu */
.flip-in .vote .vcard { animation: flipCard .55s cubic-bezier(.2, .8, .3, 1) both; }
.flip-in .vote:nth-child(2) .vcard { animation-delay: .07s; }
.flip-in .vote:nth-child(3) .vcard { animation-delay: .14s; }
.flip-in .vote:nth-child(4) .vcard { animation-delay: .21s; }
.flip-in .vote:nth-child(5) .vcard { animation-delay: .28s; }
.flip-in .vote:nth-child(n+6) .vcard { animation-delay: .35s; }
@keyframes flipCard { from { transform: perspective(600px) rotateY(90deg); opacity: 0; } to { transform: none; opacity: 1; } }

@media (max-width: 760px) {
  body.stage-mode main { padding: 10px; }
  .stage-bar { font-size: 13px; }
  .seat { width: 76px; }
  .card-back, .stage .vote .vcard { width: 62px; height: 86px; font-size: 22px; }
}
@media (max-width: 640px) {
  .seat-groups { grid-template-columns: 1fr; gap: 10px; }
  .seat-group { padding: 12px; border-radius: 14px; }
  .seat-group-title { font-size: 12px; margin-bottom: 10px; }
  .seats { gap: 10px; }
  .seat { width: 58px; }
  .card-back { width: 44px; height: 62px; font-size: 20px; border-radius: 8px; }
  .seat-name { font-size: 12px; }
  .cards.play .pcard { height: 100px; }
  .final-total { font-size: 32px; }
  .who-screen h1, .pin-screen h1 { font-size: 26px; }
}
@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; }
}

/* štampa izvještaja – svijetlo */
@media print {
  :root { color-scheme: light; --text: #111; --muted: #555; --border: #ccc; --surface: #fff; --surface-2: #f4f4f4; --accent: #3730a3; --warn-soft: #fff4e0; }
  body, body.participant { background: #fff !important; color: #111; }
  .card { background: #fff !important; backdrop-filter: none; box-shadow: none; }
  .page-head h1 { color: #111; background: none; }
  a { color: #111; }
  .badge { color: #111 !important; background: #eee !important; }
  .vote .vcard, .vote.tinted .vcard { box-shadow: none; border: 1px solid #ccc; border-top: 4px solid var(--mc, #ccc); }
  .vote.tinted.min .vcard, .vote.tinted.max .vcard { outline: none; }
  th { color: #333; }
}

/* telefon: glasanje završeno – rezultati na TV-u */
.done-banner { display: flex; align-items: center; gap: 12px; text-align: left; padding: 12px 14px; border-radius: 14px; background: var(--ok-soft); border: 1px solid rgba(74, 222, 128, .35); color: #dcfce7; animation: popIn .25s ease-out; }
.done-banner b { color: #fff; }
.done-check { flex: none; width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; font-weight: 800; color: #052e16; background: linear-gradient(135deg, #86efac, #22c55e); box-shadow: 0 4px 14px rgba(34, 197, 94, .4); }
.done-banner + .waiting { padding-top: 20px; }

/* ---------------- hijerarhija Epic › Story › subtask ---------------- */
.crumbs { display: flex; flex-wrap: wrap; justify-content: center; align-items: center; gap: 6px; margin-bottom: 8px; font-size: 13px; color: var(--muted); }
.crumb { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--border); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.crumb i { font-style: normal; }
.crumb b, .crumb b a { color: #e0e7ff; text-decoration: none; }
.crumb.epic { border-color: rgba(250, 204, 21, .35); }
.crumb.story { border-color: rgba(74, 222, 128, .35); }
.crumbs .sep { opacity: .6; }
.stage .crumbs { font-size: 17px; margin-bottom: 14px; }
.voters-tag { display: inline-block; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; background: rgba(56, 189, 248, .16); color: #bae6fd; border: 1px solid rgba(56, 189, 248, .35); white-space: nowrap; }
.stage .voters-tag { font-size: 14px; padding: 4px 12px; }

.tasklist li.tl-head { display: flex; align-items: center; gap: 6px; padding: 6px 8px; margin: 10px 0 4px; border: none; background: transparent; font-size: 13px; }
.tasklist li.tl-head:first-child { margin-top: 0; }
.tasklist li.tl-head.epic { color: var(--gold); border-bottom: 1px solid rgba(250, 204, 21, .25); border-radius: 0; }
.tasklist li.tl-head.story { color: #bbf7d0; background: rgba(34, 197, 94, .07); border-radius: 8px; }
.tasklist li.tl-head.story.in-epic, .tasklist li.in-epic.tl-head.story { margin-left: 10px; }
.tl-head b a { color: inherit; }
.tl-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.tl-sum { font-weight: 700; color: #fff; white-space: nowrap; }
.tl-sum .muted { font-weight: 500; font-size: 11px; }
.tasklist li.sub { margin-left: 14px; border-left: 2px solid rgba(74, 222, 128, .35); }

textarea.mono { font-family: ui-monospace, 'Cascadia Mono', Consolas, monospace; font-size: 13px; tab-size: 2; }
.add-help { max-width: 70%; }
.add-help summary { cursor: pointer; }
.add-help code { background: var(--surface-3); padding: 0 4px; border-radius: 4px; }
.task-preview { padding: 8px 10px; border-radius: 12px; background: rgba(8, 10, 30, .4); border: 1px dashed var(--border-strong); max-height: 260px; overflow: auto; }
.pv-row { display: flex; align-items: center; gap: 6px; padding: 2px 0; font-size: 13px; white-space: nowrap; }
.pv-row.group { color: var(--muted); }
.pv-row.group b { color: var(--text); }
.pv-title { overflow: hidden; text-overflow: ellipsis; min-width: 0; flex: 0 1 auto; }
.pv-row .muted { margin-left: auto; padding-left: 8px; }

/* telefon: task koji procjenjuje drugi podtim */
.spectate { text-align: center; padding: 18px 12px; margin: 10px 0 4px; border-radius: 16px; background: rgba(56, 189, 248, .08); border: 1px dashed rgba(56, 189, 248, .35); color: #e0f2fe; }
.spectate b { color: #fff; }
.spectate-eyes { font-size: 34px; margin-bottom: 4px; animation: bob 3s ease-in-out infinite; }
.p-tasks li.p-head { display: flex; align-items: center; gap: 6px; padding: 8px 0 4px; font-size: 13px; color: #bbf7d0; border-bottom: none; }
.p-tasks li.p-head.epic { color: var(--gold); }
.p-head-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--text); }
.p-head-sum { font-weight: 700; color: #fff; }
.p-tasks li.sub { padding-left: 12px; border-left: 2px solid rgba(74, 222, 128, .3); }
.report tr.group-row td { background: rgba(255, 255, 255, .035); border-top: 1px solid var(--border-strong) !important; }
.report tr.group-row.epic td { color: var(--gold); }
.report tr.group-row.story td:nth-child(2) { color: #bbf7d0; }
.report tr.sub-row td:nth-child(2) { padding-left: 22px; }
.report .crumbs { justify-content: flex-start; }
.jira-list { display: grid; grid-template-columns: repeat(auto-fill, minmax(180px, 1fr)); gap: 6px 18px; margin-bottom: 10px; }
.jira-list div { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed var(--border); }
.jira-list span { font-weight: 700; font-variant-numeric: tabular-nums; }
@media print { .report tr.group-row td, .report tr.group-row.epic td, .report tr.group-row.story td:nth-child(2) { color: #111; background: #f3f3f3; } }
/* uska lijeva kolona: zaglavlje storije u dva reda */
.tasklist li.tl-head { flex-wrap: wrap; row-gap: 2px; }
.tl-head b { white-space: nowrap; }
.tl-head .tl-sum { margin-left: auto; }
.tl-head .tl-title { flex: 1 1 100%; order: 5; white-space: normal; font-size: 12px; line-height: 1.3; }
.tl-head .voters-tag { order: 6; font-size: 11px; padding: 1px 7px; }
/* ko glasa – izbor podtima za epic / story / samostalni task */
select.sub-pick { width: auto; max-width: 100%; padding: 2px 22px 2px 8px; font-size: 11.5px; font-weight: 600; border-radius: 999px; line-height: 1.4;
  background-color: rgba(56, 189, 248, .14); color: #bae6fd; border: 1px solid rgba(56, 189, 248, .35); cursor: pointer; }
select.sub-pick.all { background-color: rgba(148, 163, 184, .1); color: var(--muted); border-color: var(--border); }
select.sub-pick:hover { border-color: #7dd3fc; }
select.sub-pick option { background: #1b2150; color: var(--text); }
.tl-head select.sub-pick { order: 6; }
/* dodavanje u epic / story */
.tl-head .gmove { order: 7; margin-left: auto; display: inline-flex; gap: 2px; }
.tl-head .gmove button { padding: 0 6px; min-width: 0; width: auto; height: 22px; font-size: 13px; line-height: 1; color: var(--muted); }
.tl-head .gmove button:not(:disabled):hover { color: #fff; background: rgba(129, 140, 248, .2); }
.tl-head .gmove button:disabled { opacity: .3; }
.tl-head .gmove + .add-under { margin-left: 4px; }
.tl-head .add-under { order: 7; margin-left: auto; padding: 0 8px; min-width: 0; width: auto; height: 22px; font-size: 11.5px; font-weight: 600; line-height: 1; color: var(--muted); border: 1px dashed var(--border-strong); border-radius: 999px; white-space: nowrap; }
.tl-head .add-under:hover { color: #fff; background: rgba(129, 140, 248, .2); }
/* podtimovi koji glasaju u sesiji */
.focus-bar { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; padding: 8px 10px; margin-bottom: 10px; border-radius: 12px; background: rgba(8, 10, 30, .35); border: 1px solid var(--border); }
.focus-chip { display: inline-flex; align-items: center; gap: 5px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 600; cursor: pointer;
  border: 1px solid var(--border); color: var(--muted); background: transparent; user-select: none; }
.focus-chip input { margin: 0; accent-color: #38bdf8; }
.focus-chip.on { color: #bae6fd; background: rgba(56, 189, 248, .14); border-color: rgba(56, 189, 248, .4); }
.hidden-note { margin: -4px 0 8px; }
button.link { background: none; border: 0; padding: 0; color: #a5b4fc; text-decoration: underline; cursor: pointer; font: inherit; min-height: 0; box-shadow: none; }
.tasklist li.out { opacity: .5; }
/* QA glasa za task */
.qa-toggle { display: inline-flex; align-items: center; gap: 5px; padding: 2px 9px; border-radius: 999px; font-size: 12px; font-weight: 600; cursor: pointer; white-space: nowrap;
  color: #fde68a; background: rgba(250, 204, 21, .1); border: 1px solid rgba(250, 204, 21, .35); user-select: none; }
.qa-toggle input { margin: 0; accent-color: #facc15; }
.qa-toggle.off { color: var(--muted); background: transparent; border-color: var(--border); text-decoration: line-through; }
.stage .qa-toggle { font-size: 14px; padding: 4px 12px; }
.sub-toggles { display: inline-flex; flex-wrap: wrap; gap: 4px; vertical-align: middle; }
input[type="color"].mcolor { width: 34px; height: 30px; padding: 2px; border-radius: 8px; border: 1px solid var(--border); background: transparent; cursor: pointer; }
.tasklist li .row select.sub-pick { margin-left: 2px; }
.pv-row { white-space: normal; flex-wrap: wrap; row-gap: 0; }
.pv-row .muted { margin-left: 22px; padding-left: 0; flex-basis: 100%; }
.pv-row.group .voters-tag { font-size: 11px; padding: 0 7px; }
.task-preview { overflow-x: hidden; }

/* ---------------- uvoz taskova ---------------- */
.modal.xl { max-width: min(1240px, 96vw); width: 100%; max-height: 94vh; display: flex; flex-direction: column; }
.import-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.25fr); gap: 14px; min-height: 0; flex: 1; }
.import-left { display: flex; flex-direction: column; gap: 8px; min-height: 0; }
.import-left textarea { flex: 1; min-height: 46vh; resize: vertical; white-space: pre; overflow: auto; }
.import-right { min-height: 0; }
.imp-preview { height: 100%; max-height: 62vh; overflow: auto; padding: 8px 10px; border-radius: 12px; background: rgba(8, 10, 30, .4); border: 1px dashed var(--border-strong); }
.imp-tools { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; padding-bottom: 8px; margin-bottom: 6px; border-bottom: 1px solid var(--border); position: sticky; top: -8px; background: #1b2150; z-index: 1; }
.imp-row { display: flex; align-items: center; gap: 6px; padding: 3px 4px; font-size: 13px; border-radius: 8px; min-width: 0; }
.imp-row .imp-title { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: var(--muted); }
.imp-row.epic { color: var(--gold); margin-top: 8px; }
.imp-row.story { color: #bbf7d0; margin-top: 4px; background: rgba(34, 197, 94, .07); }
.imp-row.story.nosub { background: rgba(245, 158, 11, .1); color: var(--gold); }
.imp-row.leaf { cursor: pointer; }
.imp-row.leaf:hover { background: var(--surface-2); }
.imp-row.leaf.sub { margin-left: 18px; }
.imp-row.leaf.off { opacity: .5; }
.imp-row.leaf b { color: var(--text); }
.imp-row select.inline { width: auto; max-width: 190px; padding: 3px 6px; font-size: 12px; }
#impBulk { width: auto; max-width: 190px; padding: 3px 6px; font-size: 12px; }
label.btn { cursor: pointer; }
.imp-row.epic { cursor: pointer; }
.imp-row.story.solo { background: rgba(148, 163, 184, .08); color: var(--muted); margin-top: 10px; }
.imp-grp { display: flex; align-items: center; gap: 6px; flex: 1; min-width: 0; cursor: pointer; }
.imp-row.epic:hover, .imp-grp:hover { filter: brightness(1.15); }
.imp-desc { font-size: 11px; opacity: .8; }

/* ---------------- opis iz Jire ---------------- */
[data-desc] { cursor: pointer; text-decoration: underline dotted rgba(165, 180, 252, .55); text-underline-offset: 4px; text-decoration-thickness: 1px; border-radius: 4px; }
[data-desc]:hover { color: #fff; text-decoration-color: var(--primary, #818cf8); background: rgba(129, 140, 248, .12); }
[data-desc]:focus-visible { outline: 2px solid var(--primary, #818cf8); outline-offset: 2px; }
.desc-modal { display: flex; flex-direction: column; gap: 10px; min-height: 0; text-align: left; }
.desc-modal .modal-actions { justify-content: flex-end; }
.desc-tabs { display: flex; gap: 6px; flex-wrap: wrap; }
.desc-head { display: flex; flex-direction: column; gap: 2px; }
.desc-head h2 { margin: 0; font-size: 20px; line-height: 1.3; }
.desc-key { font-weight: 700; color: var(--muted); font-size: 13px; }
.desc-key a { color: inherit; }
.desc-body { max-height: min(62vh, 640px); overflow: auto; padding: 12px 14px; border-radius: 12px; background: rgba(8, 10, 30, .45); border: 1px solid var(--border); line-height: 1.55; font-size: 15px; overflow-wrap: anywhere; }
.desc-body p { margin: 0 0 10px; }
.desc-body ul, .desc-body ol { margin: 0 0 10px; padding-left: 22px; }
.desc-body li { margin: 2px 0; }
.desc-body .d-h { font-weight: 700; color: #fff; margin: 14px 0 6px; }
.desc-body .d-h1, .desc-body .d-h2 { font-size: 18px; }
.desc-body .d-h3 { font-size: 16px; color: var(--gold); }
.desc-body > :first-child { margin-top: 0; }
.desc-body pre { background: rgba(0, 0, 0, .35); padding: 10px; border-radius: 8px; overflow: auto; font-size: 13px; white-space: pre; margin: 0 0 10px; }
.desc-body code { background: rgba(0, 0, 0, .3); padding: 1px 5px; border-radius: 5px; font-size: 13px; }
.desc-body blockquote { margin: 0 0 10px; padding: 4px 12px; border-left: 3px solid var(--border-strong); color: var(--muted); }
.desc-body .d-table { overflow: auto; margin: 0 0 10px; }
.desc-body table { border-collapse: collapse; font-size: 13px; }
.desc-body th, .desc-body td { border: 1px solid var(--border); padding: 4px 8px; text-align: left; vertical-align: top; }
.desc-body th { background: var(--surface-2); }
.desc-body a { color: #a5b4fc; }
.desc-body hr { border: 0; border-top: 1px solid var(--border); margin: 12px 0; }
.desc-body .mention { color: #a5b4fc; }
@media (max-width: 860px) {
  .import-grid { grid-template-columns: 1fr; }
  .import-left textarea { min-height: 24vh; }
  .imp-preview { max-height: 40vh; }
}
/* doglasavanje: glasaju samo podtimovi bez potvrđenog vremena */
.badge.supp { background: rgba(167, 139, 250, .16); color: #ddd6fe; border: 1px solid rgba(167, 139, 250, .45); }
button.supp-btn { border-color: rgba(167, 139, 250, .55); color: #ddd6fe; background: rgba(167, 139, 250, .12); }
button.supp-btn:hover { background: rgba(167, 139, 250, .22); }
.result-group.carried { background: rgba(255, 255, 255, .025); border-style: dashed; }
.result-group.carried h4 .badge { font-size: 11px; letter-spacing: .04em; color: #c4b5fd; background: rgba(167, 139, 250, .12); }
/* slanje procjena na Jiru */
button.jira-btn { border-color: rgba(56, 189, 248, .5); color: #bae6fd; background: rgba(56, 189, 248, .1); }
button.jira-btn:hover { background: rgba(56, 189, 248, .2); }
button.jira-btn.err { border-color: rgba(248, 113, 113, .6); color: #fecaca; background: rgba(248, 113, 113, .1); }
.jira-ok { font-size: 12px; font-weight: 600; color: #7dd3fc; white-space: nowrap; }
