/* eKolejka – układ i elementy aplikacji. Wygląd bloków 3D, paneli, lasera i obu motywów daje bundle.css + theme-light.css.
   Tu wyłącznie tokeny (var(--…)) – bez własnych heksów. Kolor danych: --c (z klas al-c-*), tekst w kolorze: var(--ct, var(--c)). */

* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); font-family: var(--font-sans); }
button, input, select, textarea { font: inherit; color: inherit; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.ek-muted { color: var(--ink-muted); }
.ek-hint { margin: 12px 0 0; font-size: 13px; display: flex; gap: 6px; align-items: center; }
.ek-hint .al-ico { width: 16px; height: 16px; flex: none; }
.ek-row { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.ek-center { justify-content: center; }
.ek-mt { margin-top: 16px; }
.ek-h4 { margin: 16px 0 8px; font: 600 13px/16px var(--font-display); letter-spacing: .1em; text-transform: uppercase; color: var(--ink-muted); }
.ek-num { font-variant-numeric: tabular-nums; white-space: nowrap; }
.ek-scroll { overflow: auto; max-width: 100%; }
.ek-tall { max-height: 520px; }
.ek-sq40 { width: 40px; height: 40px; }
.ek-sq36 { width: 36px; height: 36px; }
.ek-sq36 .al-ico { width: 18px; height: 18px; }
kbd { margin-left: 6px; padding: 0 5px; border: 1px solid var(--gold-700); border-radius: 4px; font: 600 11px/16px var(--font-display); color: var(--ink-faint); }
.al-grid > * { min-width: 0; }
.ek-stack { display: flex; flex-direction: column; gap: 24px; min-width: 0; }

/* ───────── nagłówek ───────── */
.ek-top { display: flex; align-items: center; gap: 16px; padding-top: 4px; flex-wrap: wrap; }
.ek-brand { font: 700 26px/28px var(--font-display); letter-spacing: .08em; color: var(--ink); display: flex; align-items: baseline; gap: 2px; }
.ek-brand__e { color: var(--logo-at); text-shadow: 0 0 14px var(--laser-glow); }
.ek-brand small { margin-left: 12px; font: 500 14px var(--font-sans); letter-spacing: 0; color: var(--ink-muted); }
.ek-top__title { flex: 1; font-size: 22px !important; line-height: 28px !important; color: var(--ink-muted) !important; padding-left: 14px; border-left: 1px solid var(--gold-700); }
.ek-demo { font: 600 12px/18px var(--font-display); letter-spacing: .1em; color: var(--data-yellow); border: 1px solid currentColor; border-radius: var(--radius-pill); padding: 2px 10px; opacity: .85; }
html[data-theme="light"] .ek-demo { color: var(--data-yellow-text); }
.ek-select { appearance: none; -webkit-appearance: none; color: var(--gold-300); font: 600 16px/20px var(--font-display); letter-spacing: .04em; padding-right: 34px; min-width: 0;
  background-image: var(--al-dome), var(--al-face-grad), var(--al-gold-grad); }
html[data-theme="light"] .ek-select { color: var(--ink); }
.ek-select option { background: var(--bg-800); color: var(--ink); }
.ek-wide { width: 100%; }
.ek-mtop { margin: 0 -14px; padding-top: calc(10px + env(safe-area-inset-top, 0px)); }
.ek-mark { width: 44px; filter: drop-shadow(-2px 3px 2px rgba(0,0,0,.6)); }
[data-act=sim][aria-pressed="false"] { opacity: .75; }

/* ───────── wspólne: kolory danych ───────── */
.ek-dot { display: inline-block; width: 10px; height: 10px; flex: none; border-radius: 50%; background: var(--c, var(--gold-500)); box-shadow: 0 0 8px var(--c, transparent); }
.ek-letter { display: grid; place-items: center; width: 38px; height: 38px; flex: none; border-radius: var(--radius-sm); font: 700 20px var(--font-display); color: var(--ct, var(--c));
  border: 1.5px solid var(--c); background: color-mix(in srgb, var(--c) 14%, transparent); box-shadow: 0 0 12px color-mix(in srgb, var(--c) 35%, transparent); }
.ek-qbar { height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--ink) 8%, transparent); overflow: hidden; }
.ek-qbar i { display: block; height: 100%; border-radius: 3px; background: var(--c, var(--data-blue)); box-shadow: 0 0 8px var(--c, transparent); transition: width .5s ease; }

/* ───────── pulpit ───────── */
.ek-qlist { display: flex; flex-direction: column; gap: 10px; }
.ek-qrow { display: grid; grid-template-columns: auto minmax(0, 1fr) 90px auto auto; align-items: center; gap: 12px; padding: 8px 10px; border-radius: var(--radius-md);
  background: color-mix(in srgb, var(--c) 5%, transparent); border: 1px solid color-mix(in srgb, var(--c) 22%, transparent); }
.ek-qrow__name { display: flex; flex-direction: column; min-width: 0; }
.ek-qrow__name small { color: var(--ink-muted); font-size: 12px; }
.ek-qrow__n { font: 600 30px/32px var(--font-display); color: var(--ct, var(--c)); min-width: 36px; text-align: right; font-variant-numeric: tabular-nums; }
.ek-fflist { display: flex; flex-direction: column; gap: 8px; }
.ek-ff { display: grid; grid-template-columns: auto minmax(0, 1fr) auto 18px; align-items: center; gap: 12px; width: 100%; padding: 10px 12px; text-align: left; cursor: pointer;
  border-radius: var(--radius-md); border: 1px solid var(--gold-900); background: color-mix(in srgb, var(--bg-800) 70%, transparent); transition: transform .2s, border-color .2s; }
.ek-ff:hover { border-color: var(--gold-500); transform: translate(1px, -2px); }
.ek-ff__n { font-weight: 600; }
.ek-ff__t { display: flex; flex-direction: column; align-items: flex-end; }
.ek-ff__t b { font: 600 17px var(--font-display); color: var(--ink); }
.ek-ff__t small { color: var(--ink-muted); font-size: 12px; }
.ek-ff .al-ico { width: 18px; height: 18px; }
.ek-team { display: grid; grid-template-columns: minmax(0, 1.2fr) 1fr 48px; gap: 10px; align-items: center; padding: 5px 0; }
.ek-team span { display: flex; flex-direction: column; font-weight: 600; font-size: 14px; }
.ek-team small { font-weight: 400; color: var(--ink-muted); font-size: 12px; }
.ek-team b { font: 600 16px var(--font-display); text-align: right; color: var(--ct, var(--c)); }
.ek-legend { display: flex; gap: 14px; font-size: 12px; color: var(--ink-muted); }
.ek-legend span::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 2px; background: var(--c); margin-right: 6px; vertical-align: -1px; }
.al-chart .ek-now { stroke: var(--ink-faint); stroke-dasharray: 4 4; }
.ek-log { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; font-size: 14px; }
.ek-log li { display: grid; grid-template-columns: auto auto 1fr; gap: 10px; align-items: start; padding: 6px 0; border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.ek-log li.ek-muted { display: block; }
.ek-log .al-ico { width: 16px; height: 16px; margin-top: 2px; }
.ek-time { font: 600 13px var(--font-display); color: var(--ink-faint); font-variant-numeric: tabular-nums; }
.ek-row.ek-mt .al-btn { flex: 1; }

/* ───────── kalendarz ───────── */
.ek-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 14px; }
.ek-callabel { margin-left: 8px !important; }
.ek-loadline { display: grid; grid-template-columns: auto minmax(80px, 260px); gap: 14px; align-items: center; margin: 14px 0 10px; font-size: 14px; color: var(--ink-muted); }
.ek-loadline b { color: var(--ct, var(--c)); font: 600 18px var(--font-display); }
.ek-calscroll { max-height: 68vh; overflow: auto; border-radius: var(--radius-md); border: 1px solid color-mix(in srgb, var(--gold-500) 30%, transparent); }
.ek-cal { display: grid; grid-template-columns: 56px repeat(var(--cols), minmax(170px, 1fr)); position: relative; min-width: min-content; }
.ek-colhead { position: sticky; top: 0; z-index: 3; height: 64px; padding: 8px 10px; display: flex; flex-direction: column; gap: 4px; justify-content: center;
  background: var(--bg-800); border-bottom: 1px solid var(--gold-700); border-left: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.ek-colhead b { font: 600 15px/18px var(--font-display); letter-spacing: .03em; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ek-colhead small { color: var(--ink-muted); font-size: 12px; white-space: nowrap; }
.ek-axishead { border-left: 0; position: sticky; left: 0; z-index: 4; }
.ek-axis { position: sticky; left: 0; z-index: 2; background: var(--bg-900); }
.ek-axisbody { position: relative; }
.ek-hr { position: absolute; left: 0; right: 0; transform: translateY(-50%); }
.ek-hr span { font: 500 12px var(--font-display); color: var(--ink-faint); padding-left: 8px; }
.ek-nowlabel { position: absolute; left: 2px; transform: translateY(-50%); font: 700 11px var(--font-display); color: var(--data-red); background: var(--bg-900); padding: 0 3px; border-radius: 3px; z-index: 2; }
html[data-theme="light"] .ek-nowlabel { color: var(--data-red-text); }
.ek-col { position: relative; cursor: copy; border-left: 1px solid color-mix(in srgb, var(--ink) 6%, transparent);
  background-image: linear-gradient(color-mix(in srgb, var(--ink) 7%, transparent) 1px, transparent 1px); background-size: 100% var(--hour); background-position: 0 var(--off);
  background-color: color-mix(in srgb, var(--bg-950) 45%, transparent); }
.ek-work { position: absolute; left: 0; right: 0; background: color-mix(in srgb, var(--bg-600) 35%, transparent); border-top: 1px dashed color-mix(in srgb, var(--gold-500) 25%, transparent); }
.ek-nowline { position: absolute; left: 0; right: 0; height: 0; border-top: 2px solid var(--data-red); box-shadow: 0 0 8px var(--data-red); z-index: 2; pointer-events: none; }
.ek-ap { position: absolute; left: 4px; right: 4px; z-index: 1; display: flex; flex-direction: column; align-items: flex-start; gap: 1px; overflow: hidden; padding: 3px 8px; cursor: pointer; text-align: left;
  border: 0; border-left: 3px solid var(--c); border-radius: 6px; background: color-mix(in srgb, var(--c) 20%, var(--bg-800)); box-shadow: -3px 4px 8px rgba(0,0,0,.35); transition: transform .15s, box-shadow .15s; }
.ek-ap:hover { transform: translate(1px, -2px); box-shadow: -5px 8px 14px rgba(0,0,0,.45), 0 0 0 1px var(--c); z-index: 3; }
.ek-ap b { font: 600 13px/16px var(--font-sans); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; max-width: 100%; }
.ek-ap small { font-size: 12px; color: var(--ink-muted); white-space: nowrap; }
.ek-ap em { font: 600 10px var(--font-display); letter-spacing: .08em; font-style: normal; color: var(--ct, var(--c)); }
.ek-ap.is-done { opacity: .55; }
.ek-ap.is-noshow { opacity: .5; } .ek-ap.is-noshow b { text-decoration: line-through; }
.ek-ap.is-arrived { box-shadow: 0 0 0 2px var(--c), 0 0 14px var(--c); }
.ek-week td, .ek-week th { text-align: center; }
.ek-week td:first-child { text-align: left; white-space: nowrap; }
.ek-wcell { cursor: pointer; min-width: 92px; }
.ek-wcell b { display: block; font: 600 20px var(--font-display); color: var(--ct, var(--c)); }
.ek-wcell small { display: block; color: var(--ink-muted); font-size: 11px; margin-bottom: 4px; }
.ek-wcell:hover { outline: 1px solid var(--gold-500); outline-offset: -2px; }
.ek-today { color: var(--gold-300) !important; }
.ek-dl { display: grid; grid-template-columns: 120px 1fr; gap: 8px 14px; margin: 0 0 16px; }
.ek-dl dt { color: var(--ink-muted); font: 500 13px var(--font-display); letter-spacing: .06em; text-transform: uppercase; }
.ek-dl dd { margin: 0; }
.ek-code { font: 700 18px/22px var(--font-display); letter-spacing: .25em; color: var(--gold-300); }
.ek-code--big { font-size: 32px; line-height: 38px; }
.ek-actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 8px; }

/* ───────── rezerwacja ───────── */
.ek-step { display: inline-grid; place-items: center; width: 26px; height: 26px; margin-right: 10px; border-radius: 50%; background: var(--al-gold-grad); color: var(--bg-950); font: 700 15px var(--font-display); }
.ek-svcs, .ek-presets { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 10px; }
.ek-pick { display: flex; flex-direction: column; align-items: flex-start; gap: 4px; padding: 12px 14px; text-align: left; cursor: pointer; position: relative;
  border-radius: var(--radius-md); border: 1px solid var(--gold-900); background: color-mix(in srgb, var(--bg-800) 75%, transparent);
  box-shadow: -4px 6px 10px rgba(0,0,0,.25); transition: transform .2s var(--al-ease), border-color .2s, box-shadow .2s; }
.ek-pick:hover { transform: translate(1px, -3px); border-color: var(--gold-500); }
.ek-pick.is-active { border-color: var(--gold-300); box-shadow: -4px 8px 14px rgba(0,0,0,.35), 0 3px 0 -1px var(--laser), 0 6px 14px -6px var(--laser-glow); }
.ek-pick .ek-dot { position: absolute; top: 12px; right: 12px; }
.ek-pick__n { font-weight: 600; padding-right: 18px; display: flex; gap: 8px; align-items: center; }
.ek-pick__n .al-ico { width: 20px; height: 20px; }
.ek-pick__m { font-size: 13px; color: var(--ink-muted); }
.ek-chips { display: flex; flex-wrap: wrap; gap: 8px; }
.ek-chipbtn { display: inline-flex; flex-direction: column; align-items: flex-start; padding: 7px 14px; border-radius: var(--radius-pill); cursor: pointer; font-weight: 600; font-size: 14px; line-height: 18px;
  border: 1px solid var(--gold-900); background: color-mix(in srgb, var(--bg-800) 70%, transparent); transition: border-color .2s, background .2s; }
.ek-chipbtn:has(> b) { flex-direction: row; gap: 6px; align-items: center; }
.ek-chipbtn small { font-weight: 400; font-size: 11px; color: var(--ink-muted); }
.ek-chipbtn b { color: var(--ct, var(--c, var(--gold-300))); }
.ek-chipbtn:hover { border-color: var(--gold-500); }
.ek-chipbtn.is-active { border-color: var(--gold-300); background: color-mix(in srgb, var(--gold-500) 18%, var(--bg-800)); box-shadow: 0 3px 0 -1px var(--laser); }
.ek-chipbtn--s { padding: 4px 10px; font-size: 12px; flex-direction: row; gap: 4px; }
.ek-first { width: 100%; margin-top: 16px; height: 52px; }
.ek-first .al-label { white-space: normal; text-align: left; font-size: 16px !important; }
.ek-days { display: flex; gap: 8px; overflow-x: auto; padding: 4px 2px 12px; scrollbar-width: thin; }
.ek-day { flex: none; width: 62px; display: flex; flex-direction: column; align-items: center; gap: 1px; padding: 8px 4px; cursor: pointer; border-radius: var(--radius-md);
  border: 1px solid var(--gold-900); background: color-mix(in srgb, var(--bg-800) 70%, transparent); transition: transform .2s, border-color .2s; }
.ek-day small { font-size: 11px; color: var(--ink-muted); text-transform: uppercase; }
.ek-day b { font: 600 22px/24px var(--font-display); }
.ek-day:hover { transform: translateY(-2px); border-color: var(--gold-500); }
.ek-day.is-active { border-color: var(--gold-300); box-shadow: 0 3px 0 -1px var(--laser), 0 6px 12px -6px var(--laser-glow); }
.ek-day.is-empty { opacity: .5; }
.ek-dots { display: block; width: 36px; height: 4px; margin-top: 4px; border-radius: 2px; background: color-mix(in srgb, var(--ink) 10%, transparent); overflow: hidden; }
.ek-dots span { display: block; height: 100%; background: var(--c); }
.ek-part + .ek-part { margin-top: 4px; }
.ek-slots { display: grid; grid-template-columns: repeat(auto-fill, minmax(74px, 1fr)); gap: 8px; }
.ek-slot { display: flex; flex-direction: column; align-items: center; padding: 8px 4px; cursor: pointer; border-radius: var(--radius-sm); font: 600 17px var(--font-display);
  border: 1px solid var(--gold-900); background: color-mix(in srgb, var(--bg-700) 70%, transparent); transition: transform .15s, border-color .15s; font-variant-numeric: tabular-nums; }
.ek-slot small { font: 400 11px var(--font-sans); color: var(--ink-muted); }
.ek-slot:hover { transform: translateY(-2px); border-color: var(--gold-300); }
.ek-slot.is-active { background: var(--al-gold-grad); color: var(--bg-950); border-color: var(--gold-100); }
.ek-summary { display: flex; flex-direction: column; gap: 3px; padding: 12px 14px; margin-bottom: 14px; border-radius: var(--radius-md); border-left: 3px solid var(--c); background: color-mix(in srgb, var(--c) 10%, transparent); }
.ek-summary span { color: var(--ink-muted); }
.ek-form { display: flex; flex-direction: column; gap: 12px; }
.ek-form label { display: flex; flex-direction: column; gap: 5px; font: 500 13px var(--font-display); letter-spacing: .05em; text-transform: uppercase; color: var(--ink-muted); }
.ek-form--row { flex-direction: row; flex-wrap: wrap; align-items: flex-end; margin-bottom: 14px; }
.ek-form--row label { flex: 1 1 220px; }
.ek-form .al-btn { align-self: flex-start; }
.ek-inline { flex-direction: row; flex-wrap: wrap; margin: 10px 0; }
.ek-inline .ek-in { flex: 1 1 140px; }
.ek-in { height: 42px; padding: 0 12px; border-radius: var(--radius-sm); border: 1px solid var(--gold-900); background: color-mix(in srgb, var(--bg-950) 55%, transparent);
  color: var(--ink); font: 500 15px var(--font-sans); letter-spacing: 0; text-transform: none; box-shadow: inset -1px 2px 4px rgba(0,0,0,.3); min-width: 0; }
.ek-in:focus { outline: none; border-color: var(--gold-300); box-shadow: 0 0 0 3px color-mix(in srgb, var(--gold-300) 18%, transparent), 0 3px 0 -1px var(--laser); }
select.ek-in option { background: var(--bg-800); }
.ek-in--n { width: 80px; } .ek-in--s { width: 130px; } .ek-in--t { width: 112px; height: 36px; }
.ek-in--area { height: auto; padding: 8px 12px; resize: vertical; min-width: 220px; width: 100%; line-height: 1.4; }
.ek-check { flex-direction: row !important; align-items: center; gap: 12px !important; text-transform: none !important; letter-spacing: 0 !important; font: 400 14px var(--font-sans) !important; color: var(--ink) !important; cursor: pointer; }
.ek-check .al-switch { flex: none; }
.ek-empty { padding: 10px 0; }

/* ───────── okno modalne, komunikaty ───────── */
.ek-modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: color-mix(in srgb, var(--bg-950) 72%, transparent); backdrop-filter: blur(4px); animation: ek-fade .2s ease; }
.ek-modal__box { position: relative; width: min(560px, 100%); max-height: calc(100vh - 32px); overflow: auto; padding: 22px 22px 24px !important; }
.ek-modal__box.is-wide { width: min(880px, 100%); }
.ek-modal__x { position: absolute !important; top: 14px; right: 14px; width: 36px !important; height: 36px !important; }
.ek-modal__box > .al-panel__head, .ek-modal__box > h3 { padding-right: 46px; }
@keyframes ek-fade { from { opacity: 0; } }
#ek-toasts { position: fixed; right: 18px; bottom: 18px; z-index: 60; display: flex; flex-direction: column; gap: 10px; max-width: min(420px, calc(100vw - 36px)); }
.ek-toast { display: flex; gap: 10px; align-items: center; padding: 12px 16px; border-radius: var(--radius-md); background: var(--bg-800); border: 1px solid var(--gold-700); box-shadow: var(--shadow-panel); font-size: 14px; animation: ek-in .3s var(--al-ease); transition: opacity .4s, transform .4s; }
.ek-toast.is-out { opacity: 0; transform: translateX(30px); }
.ek-toast__dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--c); box-shadow: 0 0 10px var(--c); }
@keyframes ek-in { from { opacity: 0; transform: translateY(14px); } }
.ek-confirm { text-align: center; }
.ek-confirm__ok { width: 64px; height: 64px; margin: 4px auto 10px; border-radius: 50%; display: grid; place-items: center; border: 2px solid var(--data-green); box-shadow: 0 0 22px color-mix(in srgb, var(--data-green) 45%, transparent); }
.ek-confirm__ok .al-ico { width: 34px; height: 34px; }
.ek-qrbox { display: flex; gap: 18px; align-items: center; justify-content: center; text-align: left; margin: 14px 0; flex-wrap: wrap; }
.ek-qrbox > div { max-width: 240px; display: flex; flex-direction: column; gap: 4px; }
.ek-qr { background: var(--gold-100); border-radius: 8px; padding: 4px; flex: none; }
.ek-qr path { fill: var(--bg-950); }
html[data-theme="light"] .ek-qr path { fill: var(--ink); }
.ek-ol { padding-left: 20px; display: flex; flex-direction: column; gap: 8px; }
.ek-sms { display: flex; gap: 10px; padding: 12px 14px; border-radius: 14px 14px 14px 4px; background: color-mix(in srgb, var(--data-green) 12%, var(--bg-800)); border: 1px solid color-mix(in srgb, var(--data-green) 35%, transparent); margin-bottom: 12px; }
.ek-sms p { margin: 0; font-size: 14px; }
.ek-sms .al-ico { width: 18px; height: 18px; flex: none; }

/* ───────── kolejka: stanowisko ───────── */
.ek-desk { display: flex; flex-direction: column; gap: 14px; }
.ek-current { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 18px 12px; border-radius: var(--radius-lg); text-align: center;
  border: 1px solid color-mix(in srgb, var(--c, var(--gold-500)) 45%, transparent); background: radial-gradient(ellipse at 70% 0%, color-mix(in srgb, var(--c, var(--gold-500)) 18%, transparent), transparent 70%); }
.ek-current > small:first-child { font: 600 13px var(--font-display); letter-spacing: .18em; color: var(--ink-muted); }
.ek-current__no { font: 700 84px/88px var(--font-display); letter-spacing: .04em; color: var(--ct, var(--c, var(--ink))); text-shadow: 0 0 28px color-mix(in srgb, var(--c, transparent) 60%, transparent); font-variant-numeric: tabular-nums; }
.ek-current__no.ek-muted { color: var(--ink-faint); text-shadow: none; }
.ek-bigbtn { width: 100%; height: 64px !important; }
.ek-bigbtn .al-label { font-size: 20px !important; }
.ek-desk .ek-actions .al-btn { flex: 1 1 140px; }
.al-btn:disabled, .al-iconbtn:disabled { opacity: .4; cursor: not-allowed; pointer-events: none; }
.ek-tno { font: 700 18px var(--font-display); color: var(--ct, var(--c)); letter-spacing: .04em; }
.ek-lvbtn { border: 0; background: none; padding: 0; cursor: pointer; }
.ek-lvbtn:hover .al-chip { box-shadow: 0 0 0 1px var(--gold-300); }
tr.ek-over td { background: color-mix(in srgb, var(--data-red) 9%, transparent) !important; }
.ek-wins { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 12px; }
.ek-wcard { display: flex; flex-direction: column; gap: 4px; padding: 12px 14px; border-radius: var(--radius-md); border: 1px solid var(--gold-900); background: color-mix(in srgb, var(--bg-800) 70%, transparent); }
.ek-wcard.is-mine { border-color: var(--gold-300); box-shadow: 0 3px 0 -1px var(--laser); }
.ek-wcard.is-closed { opacity: .5; }
.ek-wcard b { font: 600 15px var(--font-display); letter-spacing: .04em; }
.ek-wcard__no { font: 700 30px/34px var(--font-display); color: var(--ct, var(--c, var(--ink-faint))); }
.ek-wcard small { color: var(--ink-muted); font-size: 12px; }
.ek-levels { display: flex; flex-direction: column; gap: 10px; margin-top: 12px; }
.ek-level { display: grid; grid-template-columns: 1fr auto; gap: 2px 12px; text-align: left; padding: 12px 14px; cursor: pointer; border-radius: var(--radius-md);
  border: 1px solid color-mix(in srgb, var(--c) 40%, transparent); border-left: 5px solid var(--c); background: color-mix(in srgb, var(--c) 9%, var(--bg-800)); transition: transform .15s; }
.ek-level:hover, .ek-level.is-active { transform: translateX(4px); box-shadow: 0 0 0 1px var(--c), 0 0 16px color-mix(in srgb, var(--c) 35%, transparent); }
.ek-level b { font: 600 18px var(--font-display); letter-spacing: .04em; color: var(--ct, var(--c)); }
.ek-level small { grid-column: 1 / -1; color: var(--ink-muted); font-size: 13px; }
.ek-level__t { font: 600 13px var(--font-display); color: var(--ink-muted); }
.ek-embed { margin-top: 16px; border-radius: var(--radius-lg); border: 1px solid var(--gold-900); overflow: hidden; background: color-mix(in srgb, var(--bg-950) 40%, transparent); padding: 18px; }

/* ───────── ekran TV / biletomat / telefon ───────── */
body.ek-screen .al-app { display: block; }
.ek-tv { display: flex; flex-direction: column; gap: 20px; }
.ek-tv.is-full { min-height: 100vh; padding: 24px 32px; }
.ek-tv__head { display: flex; align-items: center; gap: 14px; }
.ek-tv__head > div { display: flex; flex-direction: column; flex: 1; min-width: 0; }
.ek-tv__head b { font: 600 22px/26px var(--font-display); letter-spacing: .05em; }
.ek-tv__head small { color: var(--ink-muted); }
.ek-tv__clock { font: 600 34px var(--font-display); color: var(--gold-300); font-variant-numeric: tabular-nums; }
.ek-tv__body { display: grid; grid-template-columns: minmax(0, 1.7fr) minmax(0, 1fr); gap: 24px; flex: 1; }
.ek-tv__now { display: flex; flex-direction: column; gap: 14px; }
.ek-tv__big { display: flex; align-items: center; justify-content: center; gap: 24px; flex-wrap: wrap; padding: 22px 10px; border-radius: var(--radius-lg); min-height: 180px;
  background: radial-gradient(ellipse at 70% 10%, color-mix(in srgb, var(--c, var(--gold-500)) 20%, transparent), transparent 70%); }
.ek-tv__no { font: 700 clamp(64px, 9vw, 150px)/1 var(--font-display); color: var(--ct, var(--c)); text-shadow: 0 0 40px color-mix(in srgb, var(--c) 60%, transparent); letter-spacing: .03em; }
.ek-tv__arrow .al-ico { width: clamp(36px, 4vw, 64px); height: clamp(36px, 4vw, 64px); }
.ek-tv__win { font: 600 clamp(30px, 4vw, 64px)/1.05 var(--font-display); text-transform: uppercase; letter-spacing: .04em; }
.ek-tv__now.is-fresh .ek-tv__big { animation: ek-flash 1.1s ease-in-out 4; }
@keyframes ek-flash { 50% { box-shadow: inset 0 0 0 3px var(--c, var(--gold-300)), 0 0 46px color-mix(in srgb, var(--c, var(--gold-300)) 55%, transparent); } }
.ek-tv__list { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 12px; }
.ek-tv__row { display: grid; grid-template-columns: auto 1fr; gap: 0 14px; align-items: center; padding: 10px 14px; border-radius: var(--radius-md); background: color-mix(in srgb, var(--c) 8%, transparent); border-left: 3px solid var(--c); }
.ek-tv__row b { font: 700 26px var(--font-display); color: var(--ct, var(--c)); }
.ek-tv__row span { font: 600 17px var(--font-display); text-transform: uppercase; }
.ek-tv__row b { grid-row: span 2; }
.ek-tv__row small { color: var(--ink-faint); font-size: 12px; }
.ek-tv__side { display: flex; flex-direction: column; gap: 10px; }
.ek-tvcat { display: grid; grid-template-columns: auto 1fr auto auto; gap: 12px; align-items: center; padding: 8px 4px; border-bottom: 1px solid color-mix(in srgb, var(--ink) 6%, transparent); }
.ek-tvcat__n { font-weight: 600; }
.ek-tvcat__w { display: flex; flex-direction: column; align-items: center; min-width: 46px; }
.ek-tvcat__w b { font: 700 24px/26px var(--font-display); color: var(--ct, var(--c)); }
.ek-tvcat__w small { font-size: 11px; color: var(--ink-faint); }
.ek-tv__note { display: flex; gap: 8px; align-items: flex-start; font-size: 13px; color: var(--ink-muted); margin: 6px 0; }
.ek-tv__note .al-ico { width: 18px; height: 18px; flex: none; }
.ek-tv__qr { margin-top: auto; display: flex; gap: 14px; align-items: center; font-weight: 600; }
.ek-tv__qr small { font-weight: 400; color: var(--ink-muted); }
.ek-tv__sound { position: fixed !important; left: 50%; bottom: 24px; transform: translateX(-50%); z-index: 10; }
.ek-embed--tv .ek-tv__no { font-size: clamp(48px, 6vw, 96px); }
.ek-kiosk { display: flex; flex-direction: column; gap: 18px; }
body.ek-screen .ek-kiosk { min-height: 100vh; padding: 24px 32px; }
.ek-kiosk__title { margin: 6px 0 0; font: 600 32px var(--font-display); letter-spacing: .08em; text-transform: uppercase; text-align: center; }
.ek-ktiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(230px, 1fr)); gap: 26px; padding: 10px 6px 24px; }
.ek-ktile { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; min-height: 190px; padding: 18px; cursor: pointer; text-align: center;
  border-radius: var(--radius-lg); border: 1.5px solid color-mix(in srgb, var(--c) 55%, var(--gold-700));
  background: radial-gradient(ellipse at 75% 0%, color-mix(in srgb, var(--c) 22%, transparent), transparent 65%), linear-gradient(225deg, var(--bg-600), var(--bg-800));
  box-shadow: var(--shadow-float), inset 1px -1px 0 color-mix(in srgb, var(--ink) 12%, transparent); transition: transform .3s var(--al-ease), box-shadow .3s; position: relative; }
.ek-ktile::after { content: ""; position: absolute; left: 16%; right: 16%; bottom: -12px; height: 3px; border-radius: 3px; background: var(--laser); box-shadow: var(--shadow-laser); opacity: 0; transform: scaleX(.3); transition: opacity .2s, transform .25s; }
.ek-ktile:hover, .ek-ktile:focus-visible { transform: translate(1px, -8px); box-shadow: var(--shadow-lift), 0 0 30px color-mix(in srgb, var(--c) 30%, transparent); outline: none; }
.ek-ktile:hover::after, .ek-ktile:focus-visible::after { opacity: 1; transform: scaleX(1); }
.ek-ktile:active { transform: translate(-2px, 3px); }
body.ek-screen .ek-ktile { min-height: 250px; }
.ek-ktile:disabled { opacity: .45; cursor: not-allowed; }
.ek-ktile__l { font: 700 64px/1 var(--font-display); color: var(--ct, var(--c)); text-shadow: 0 0 26px color-mix(in srgb, var(--c) 60%, transparent); }
.ek-ktile__l .al-ico { width: 60px; height: 60px; }
.ek-ktile__n { font: 600 22px/26px var(--font-display); letter-spacing: .05em; text-transform: uppercase; }
.ek-ktile__m { font-size: 14px; color: var(--ink-muted); }
.ek-ticket { display: flex; flex-direction: column; align-items: center; gap: 8px; text-align: center; padding: 6px 0 4px; }
.ek-ticket__no { font: 700 96px/1 var(--font-display); color: var(--ct, var(--c)); text-shadow: 0 0 30px color-mix(in srgb, var(--c) 55%, transparent); letter-spacing: .03em; margin: 6px 0; }
.ek-ticket__est { display: flex; gap: 30px; margin: 8px 0; }
.ek-ticket__est span { display: flex; flex-direction: column; }
.ek-ticket__est b { font: 700 30px var(--font-display); }
.ek-ticket__est small, .ek-ticket > small { color: var(--ink-muted); font-size: 12px; }
body.ek-phone #app { padding: 16px; }
.ek-phonecard { max-width: 440px; margin: 0 auto; display: flex; flex-direction: column; gap: 12px; align-items: center; text-align: center; }
.ek-phonecard .ek-tv__head { align-self: stretch; text-align: left; }
.ek-phonecard .ek-ticket__no { font-size: 110px; }
.ek-phone__state { display: flex; flex-direction: column; }
.ek-phone__state b { font: 700 40px var(--font-display); }
.ek-phone__state span { color: var(--ink-muted); }
.ek-phone__call { display: flex; flex-direction: column; gap: 6px; padding: 18px 24px; border-radius: var(--radius-lg); font: 600 16px var(--font-display); letter-spacing: .2em; color: var(--ct, var(--c));
  border: 2px solid var(--c); animation: ek-flash 1s ease-in-out infinite; }
.ek-phone__call b { font-size: 40px; letter-spacing: .04em; color: var(--ink); text-transform: uppercase; }

/* ───────── ustawienia ───────── */
.ek-tabs { overflow-x: auto; max-width: 100%; }
.ek-tabs button { white-space: nowrap; }
.ek-edit td { vertical-align: middle; }
.ek-edit .ek-in { width: 100%; min-width: 120px; }
.ek-edit .ek-in.ek-in--n { width: 80px; min-width: 70px; }
.ek-edit .ek-in.ek-in--s { width: 130px; min-width: 120px; }
.ek-staffgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.ek-staff { display: flex; flex-direction: column; gap: 10px; padding: 14px; border-radius: var(--radius-md); border: 1px solid var(--gold-900); border-top: 3px solid var(--c); background: color-mix(in srgb, var(--bg-800) 60%, transparent); }
.ek-staff .ek-row { flex-wrap: nowrap; }
.ek-staff .ek-row .ek-in { flex: 1; }
.ek-hours { border-collapse: collapse; }
.ek-hours td { padding: 3px 6px 3px 0; white-space: nowrap; }
.ek-small { display: flex; flex-direction: column; gap: 4px; font-size: 12px; color: var(--ink-muted); }

/* ───────── wydruk biletu ───────── */
#ek-print { display: none; }
@media print {
  body.ek-printing > *:not(#ek-print) { display: none !important; }
  body.ek-printing { background: none !important; }
  body.ek-printing #ek-print { display: block; color: black; }
  #ek-print .ek-ticket__no, #ek-print * { color: black !important; text-shadow: none !important; }
  #ek-print .ek-qr { background: none; }
  #ek-print .ek-qr path { fill: black; }
}

/* ───────── telefon / tablet ───────── */
@media (max-width: 1180px) {
  .ek-qrow { grid-template-columns: auto minmax(0, 1fr) 60px auto; }
  .ek-qrow .al-chip { grid-column: 2 / -1; justify-self: start; }
}
@media (max-width: 720px) {
  .ek-hide-s { display: none; }
  .ek-kpis { grid-template-columns: 1fr 1fr !important; }
  .ek-kpis .al-kpi__value { font-size: 32px; line-height: 36px; }
  .ek-kpis .al-kpi__delta { font-size: 13px; line-height: 16px; }
  .ek-kpis .al-kpi__row { flex-wrap: wrap; gap: 2px 8px; }
  kbd { display: none; }
  .ek-bigbtn .al-label { white-space: normal; font-size: 18px !important; }
  .al-panel__head { flex-wrap: wrap; }
  .al-panel__head .al-btn .al-label { white-space: normal; }
  .ek-kpis .al-kpi__label { font-size: 12px; }
  .ek-qrow { grid-template-columns: auto minmax(0, 1fr) auto; }
  .ek-qrow .ek-qbar { display: none; }
  .ek-toolbar { flex-direction: column; align-items: stretch; }
  .ek-toolbar .ek-row { justify-content: space-between; }
  .ek-toolbar .al-segment { align-self: flex-start; max-width: 100%; overflow-x: auto; }
  .ek-toolbar .ek-row .al-btn { flex: 1; padding: 0 10px; }
  .ek-current__no { font-size: 64px; line-height: 68px; }
  .ek-tv__body { grid-template-columns: 1fr; }
  .ek-tv.is-full, body.ek-screen .ek-kiosk { padding: 16px; }
  .ek-cal { grid-template-columns: 48px repeat(var(--cols), minmax(150px, 1fr)); }
  .ek-dl { grid-template-columns: 1fr; gap: 2px; }
  .ek-dl dd { margin-bottom: 8px; }
  .ek-staffgrid { grid-template-columns: 1fr; }
  .ek-svcs { grid-template-columns: 1fr 1fr; }
  .ek-loadline { grid-template-columns: 1fr; }
  .ek-actions .al-btn { flex: 1 1 auto; }
  .ek-ktiles { grid-template-columns: 1fr 1fr; gap: 16px; }
  .ek-ktile { min-height: 150px; }
  .ek-ktile__l { font-size: 48px; }
  .ek-ktile__n { font-size: 17px; line-height: 20px; }
  .ek-ticket__no { font-size: 76px; }
  #ek-toasts { left: 14px; right: 14px; bottom: 96px; max-width: none; }
  .ek-modal { align-items: end; padding: 8px; }
}
