/* =========================================================
   MindsRestart — nový vzhled aplikace: klientský portál, administrace,
   stránky z odkazů v e-mailech a systémové stránky.
   Navazuje na tokeny a komponenty assets/css/v2/site.css; načítá se jen
   v šablonách nového vzhledu (app/views/v2/client, admin, odkazy).
   ========================================================= */

:root {
  --app-bg: #F3F5FB;
  --lane: #ECEFF8;
  --ok: #138A6B;
  --ok-tint: #E3F5EE;
  --warn: #B8741A;
  --warn-tint: #FDF2E2;
  --danger: #B42F4B;
  --danger-tint: #FBE9ED;
  --r-sm: 12px;
  --side-w: 252px;
}

body.app-body { background: var(--app-bg); font-size: 15.5px; line-height: 1.55; color: var(--text-light); }
.app-body h1 { font-size: clamp(24px, 2.2vw, 30px); line-height: 1.2; }
.app-body h2 { font-size: 19px; line-height: 1.3; }
.app-body h3 { font-size: 16px; line-height: 1.35; }
.ai { width: 20px; height: 20px; flex: none; }
.ai--sm { width: 16px; height: 16px; }
.muted { color: var(--text-light); }
.tiny { font-size: 12.5px; line-height: 1.45; }
.strong { font-weight: 800; color: var(--blue-deep); }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }

/* ---------- Shell administrace ---------- */
.app { display: grid; grid-template-columns: var(--side-w) minmax(0, 1fr); min-height: 100vh; }
.side { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; gap: 4px; padding: 18px 14px 14px; background: #fff; border-right: 1px solid var(--line); overflow-y: auto; }
.side .brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; text-decoration: none; }
.side .brand img.sym { height: 30px; width: auto; }
.side .brand span { display: flex; flex-direction: column; line-height: 1.1; }
.side .brand b { font-size: 16px; color: var(--blue-deep); font-weight: 900; }
.side .brand small { font-size: 12px; color: var(--text-light); font-weight: 700; }
.side .grp { font-size: 11.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: #8A8FB0; padding: 14px 12px 6px; }
.side nav a, .side .lnk { position: relative; display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; font-weight: 700; font-size: 15px; color: var(--text-light); text-decoration: none; transition: background .15s, color .15s; }
.side nav a:hover, .side .lnk:hover { background: var(--bg-light); color: var(--blue-deep); }
.side nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-deep); }
.side nav a[aria-current="page"]::before { content: ""; position: absolute; left: -14px; top: 8px; bottom: 8px; width: 4px; border-radius: 0 4px 4px 0; background: var(--gradient-contact); }
.side nav a[aria-current="page"] .ai { color: var(--purple); }
.badge { margin-left: auto; min-width: 22px; height: 22px; padding: 0 7px; border-radius: 999px; background: var(--purple); color: #fff; font-size: 12px; font-weight: 900; display: inline-grid; place-items: center; }
.badge--soft { background: var(--blue-tint); color: var(--blue-deep); }
.side .foot { margin-top: auto; padding-top: 12px; border-top: 1px solid var(--line); display: grid; gap: 2px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px 12px; }
.me .av { width: 36px; height: 36px; border-radius: 50%; background: var(--gradient-contact); color: #fff; display: grid; place-items: center; font-weight: 900; }
.me b { display: block; color: var(--blue-deep); font-size: 14.5px; line-height: 1.2; }
.me small { font-size: 12.5px; }

.main { min-width: 0; display: flex; flex-direction: column; }
.topbar { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; gap: 14px; height: 68px; padding: 0 28px; background: rgba(243, 245, 251, .88); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.topbar .crumb { font-weight: 800; color: var(--blue-deep); white-space: nowrap; }
.topbar .sub { display: flex; gap: 4px; }
.topbar .sub a { padding: 7px 12px; border-radius: 999px; font-weight: 700; font-size: 14px; color: var(--text-light); text-decoration: none; }
.topbar .sub a[aria-current="page"] { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 0 var(--line), 0 0 0 1px var(--line); }
.searchbtn { margin-left: auto; display: flex; align-items: center; gap: 10px; width: min(420px, 40vw); height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: #8A8FB0; font: 600 14.5px var(--font); cursor: pointer; transition: border-color .2s; }
.searchbtn:hover { border-color: var(--line-strong); }
.searchbtn kbd, .kbd { margin-left: auto; font: 800 11.5px var(--font); color: var(--text-light); background: var(--bg-light); border: 1px solid var(--line); border-radius: 6px; padding: 2px 6px; }
.iconbtn { width: 42px; height: 42px; flex: none; border-radius: 12px; border: 1.5px solid var(--line); background: #fff; color: var(--blue-deep); display: grid; place-items: center; cursor: pointer; position: relative; text-decoration: none; }
.iconbtn .dot { position: absolute; top: 8px; right: 9px; width: 8px; height: 8px; border-radius: 50%; background: var(--purple); box-shadow: 0 0 0 2px #fff; }
.page { width: 100%; max-width: 1380px; padding: 26px 28px 64px; }
.page-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; margin-bottom: 22px; flex-wrap: wrap; }
.page-head p { margin: 6px 0 0; }
.eyebrow { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; display: block; }
.acts { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }

/* Tlačítka v aplikaci (menší než na webu) */
.app-body .btn { min-height: 42px; padding: 0 18px; font-size: 15px; gap: 8px; }
.app-body .btn--sm { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--ghost { background: transparent; color: var(--blue-deep); border-color: transparent; }
.btn--ghost:hover { background: var(--bg-light); }
.btn--blue { background: var(--blue-deep); color: #fff; }
.btn--blue:hover { background: #2E3A88; }
.btn--danger { background: #fff; color: var(--danger); border-color: #EBC3CD; }
.btn--danger:hover { background: var(--danger-tint); }
.btn[disabled] { opacity: .45; pointer-events: none; }

.panel { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 20px; }
.panel + .panel { margin-top: 18px; }
.panel-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; }

/* Stavové štítky */
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 800; white-space: nowrap; background: var(--bg-light); color: var(--text-light); }
.pill::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; opacity: .85; }
.pill--plain::before { display: none; }
.pill--teal { background: var(--teal-tint); color: #0E6F6A; }
.pill--blue { background: var(--blue-tint); color: var(--blue); }
.pill--purple { background: var(--purple-tint); color: var(--purple-dark); }
.pill--ok { background: var(--ok-tint); color: var(--ok); }
.pill--warn { background: var(--warn-tint); color: var(--warn); }
.pill--danger { background: var(--danger-tint); color: var(--danger); }
.pill--gray { background: #EEF0F6; color: #6B7090; }

/* ---------- Přehled: fronty ---------- */
.hello { display: flex; justify-content: space-between; align-items: flex-end; gap: 20px; flex-wrap: wrap; margin-bottom: 20px; }
.hello h1 { font-size: clamp(26px, 2.4vw, 34px); }
.hello .sum { margin: 6px 0 0; font-size: 16px; }
.hello .sum b { color: var(--blue-deep); }
.stats { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 20px; }
.stat { background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: flex; gap: 12px; align-items: center; text-decoration: none; transition: border-color .2s, box-shadow .2s; }
.stat:hover { border-color: var(--line-strong); box-shadow: var(--shadow); }
.stat .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; flex: none; }
.stat b { display: block; font-size: 22px; font-weight: 900; color: var(--blue-deep); line-height: 1.1; }
.stat span { font-size: 13.5px; }
.lanes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 18px; align-items: start; }
.lane { background: var(--lane); border-radius: 22px; padding: 12px; min-height: 120px; }
.lane-head { display: flex; align-items: center; gap: 10px; padding: 6px 8px 4px; }
.lane-head h2 { font-size: 16.5px; }
.lane-head .n { margin-left: auto; font-weight: 900; color: var(--blue-deep); background: #fff; border-radius: 999px; min-width: 28px; height: 28px; display: grid; place-items: center; font-size: 14px; }
.lane-hint { font-size: 13px; padding: 0 8px 10px; margin: 0; }
.dot { width: 10px; height: 10px; border-radius: 50%; flex: none; }
.dot--amber { background: #E9A23B; box-shadow: 0 0 0 4px #FCEBD0; }
.dot--blue { background: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.dot--green { background: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.tasks { display: grid; gap: 10px; }
.task { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px 14px; display: grid; gap: 6px; box-shadow: 0 1px 2px rgba(56,69,156,.04); transition: box-shadow .2s, transform .2s var(--ease), border-color .2s, opacity .3s; }
.task:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.task .kind { display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: var(--text-light); }
.task .kind .k-ic { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; }
.task .kind .since { margin-left: auto; font-weight: 700; color: #8A8FB0; }
.task h3 { font-size: 16px; color: var(--blue-deep); }
.task .what { font-weight: 800; color: var(--text); font-size: 14.5px; }
.task p { margin: 0; font-size: 14px; line-height: 1.5; }
.task .foot { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 6px; }
.task--urgent { border-color: #F2C6A0; box-shadow: 0 0 0 3px #FDF0E2; }
.task.is-leaving { opacity: 0; transform: translateX(30px) scale(.98); }
.task.is-arriving { animation: arrive .6s var(--ease); }
@keyframes arrive { from { opacity: 0; transform: translateY(-10px); box-shadow: 0 0 0 4px var(--teal-tint); } to { opacity: 1; transform: none; } }
.age { font-size: 12.5px; font-weight: 800; padding: 2px 8px; border-radius: 999px; background: #EEF0F6; color: #6B7090; }
.age--old { background: var(--warn-tint); color: var(--warn); }
.empty { text-align: center; padding: 22px 14px; font-size: 14px; color: #8A8FB0; }
.empty .ai { width: 34px; height: 34px; margin: 0 auto 8px; color: var(--teal); }
.k-ic--req { background: var(--purple-tint); color: var(--purple); }
.k-ic--conf { background: var(--teal-tint); color: #0E6F6A; }
.k-ic--prep { background: var(--blue-tint); color: var(--blue); }
.k-ic--offer { background: #FDF2E2; color: var(--warn); }
.k-ic--rec { background: var(--danger-tint); color: var(--danger); }

/* Dnešní agenda */
.agenda { display: grid; gap: 10px; }
.slot-item { display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 14px; }
.slot-item .t { font-weight: 900; color: var(--blue-deep); font-size: 17px; line-height: 1.1; }
.slot-item .t small { display: block; font-size: 12px; color: #8A8FB0; font-weight: 700; }
.slot-item h3 { font-size: 15.5px; }
.slot-item .meta { display: flex; flex-wrap: wrap; gap: 6px; margin: 6px 0 8px; }
.slot-item.is-now { border-color: var(--teal); box-shadow: 0 0 0 3px var(--teal-tint); }
.week-strip { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; }
.week-strip a { text-decoration: none; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 10px 8px; text-align: center; color: var(--text-light); font-size: 12.5px; font-weight: 700; }
.week-strip a b { display: block; font-size: 18px; color: var(--blue-deep); font-weight: 900; }
.week-strip a[aria-current="date"] { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-tint); }
.week-strip .wbars { display: flex; gap: 3px; justify-content: center; margin-top: 6px; min-height: 6px; }
.week-strip .wbars i { width: 14px; height: 6px; border-radius: 3px; background: var(--teal); }
.week-strip .wbars i.p { background: var(--purple); }
.week-strip .wbars i.b { background: var(--blue); }

/* ---------- Výsuvný panel (drawer) ---------- */
.scrim { position: fixed; inset: 0; background: rgba(35, 42, 99, .38); backdrop-filter: blur(2px); z-index: 70; opacity: 0; pointer-events: none; transition: opacity .25s; }
.scrim.open { opacity: 1; pointer-events: auto; }
.drawer { position: fixed; top: 0; right: 0; bottom: 0; width: min(580px, 100%); z-index: 80; background: #fff; display: flex; flex-direction: column; box-shadow: -30px 0 80px -30px rgba(35,42,99,.5); transform: translateX(104%); transition: transform .35s var(--ease); }
.drawer.open { transform: none; }
.drawer > header { display: flex; align-items: flex-start; gap: 14px; padding: 20px 22px 16px; border-bottom: 1px solid var(--line); }
.drawer > header h2 { font-size: 21px; }
.drawer > header p { margin: 4px 0 0; font-size: 14px; }
.drawer > header .iconbtn { margin-left: auto; }
.drawer .body { flex: 1; overflow-y: auto; padding: 18px 22px 28px; }
.drawer > footer { display: flex; gap: 10px; align-items: center; justify-content: space-between; padding: 14px 22px; border-top: 1px solid var(--line); background: var(--bg-soft); flex-wrap: wrap; }
.drawer .sec { margin-top: 20px; }
.drawer .sec:first-child { margin-top: 0; }
.drawer .sec > h3 { font-size: 14px; letter-spacing: .02em; color: var(--blue-deep); margin-bottom: 10px; display: flex; align-items: center; gap: 8px; }
.facts { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 8px 16px; font-size: 14.5px; margin: 0; }
.facts dt { color: #8A8FB0; font-weight: 700; }
.facts dd { margin: 0; color: var(--text); font-weight: 600; }
.note { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 14px; padding: 12px 14px; font-size: 14.5px; color: var(--text); }
.note--quote { border-left: 4px solid var(--teal); }
.note--info { background: var(--blue-tint); border-color: #D3E3F6; color: #24508A; }
.note--warn { background: var(--warn-tint); border-color: #F4DDB8; color: #7A4C0E; }
.note--ok { background: var(--ok-tint); border-color: #C3E8DA; color: #0E5E49; }

/* Průvodce kroky uvnitř panelu */
.wiz { display: flex; gap: 6px; margin-bottom: 18px; }
.wiz span { flex: 1; display: flex; align-items: center; gap: 8px; font-size: 12.5px; font-weight: 800; color: #8A8FB0; }
.wiz span i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; background: #EEF0F6; color: #8A8FB0; font-size: 12px; flex: none; }
.wiz span.is-on { color: var(--blue-deep); }
.wiz span.is-on i { background: var(--blue-deep); color: #fff; }
.wiz span.is-done i { background: var(--teal); color: #fff; }
.wiz span + span::before { content: ""; height: 2px; flex: 0 0 14px; background: var(--line); border-radius: 2px; }
.wstep[hidden] { display: none; }

/* Výběr volných termínů */
.daypick { display: grid; gap: 14px; }
.dayrow h4 { font-size: 13px; font-weight: 800; color: var(--blue-deep); margin: 0 0 6px; display: flex; gap: 8px; align-items: baseline; }
.dayrow h4 small { color: #8A8FB0; font-weight: 700; }
.slots { display: flex; flex-wrap: wrap; gap: 8px; }
.slotbtn { min-width: 74px; padding: 9px 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--blue-deep); font: 800 14.5px var(--font); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s, opacity .15s; }
.slotbtn:hover { border-color: var(--teal); }
.slotbtn[aria-pressed="true"] { background: var(--blue-deep); color: #fff; border-color: var(--blue-deep); box-shadow: 0 6px 14px -8px rgba(56,69,156,.8); }
.slotbtn.is-pref { border-style: dashed; }
.picked { display: flex; flex-wrap: wrap; gap: 8px; min-height: 34px; align-items: center; }
.picked .pill { font-size: 13px; }
.mailprev { border: 1px solid var(--line); border-radius: 14px; overflow: hidden; }
.mailprev .mh { padding: 10px 14px; background: var(--bg-soft); border-bottom: 1px solid var(--line); font-size: 13.5px; display: grid; gap: 2px; }
.mailprev .mh b { color: var(--blue-deep); }
.mailprev textarea { width: 100%; min-height: 300px; border: 0; padding: 14px; font: 500 14.5px/1.6 var(--font); color: var(--text); resize: vertical; }
.mailprev textarea:focus { outline: none; background: #FCFDFF; }
.sendbox { display: grid; gap: 10px; }
.check { display: flex; gap: 10px; align-items: flex-start; font-size: 14.5px; color: var(--text); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--blue-deep); margin-top: 1px; flex: none; }

/* Formulářové prvky */
.field { display: grid; gap: 6px; margin-bottom: 14px; }
.field > span, .field > label { font-size: 13.5px; font-weight: 800; color: var(--blue-deep); }
.field small { font-size: 12.5px; color: #8A8FB0; }
.inp, .field input[type=text], .field input[type=email], .field input[type=tel], .field input[type=date], .field input[type=number], .field select, .field textarea {
  width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; font: 600 15px/1.45 var(--font); color: var(--text); background: #fff; transition: border-color .15s, box-shadow .15s; }
.field textarea { min-height: 96px; resize: vertical; }
.inp:focus, .field input:focus, .field select:focus, .field textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.choice { display: grid; gap: 10px; }
.choice label { display: flex; gap: 12px; align-items: flex-start; padding: 12px 14px; border: 1.5px solid var(--line-strong); border-radius: 14px; cursor: pointer; transition: border-color .15s, box-shadow .15s; }
.choice label:has(input:checked) { border-color: var(--purple); box-shadow: 0 0 0 3px var(--purple-tint); }
.choice input { accent-color: var(--purple); margin-top: 3px; }
.choice b { display: block; color: var(--blue-deep); }
.choice small { font-size: 13px; }
.choice .pr { margin-left: auto; font-weight: 900; color: var(--blue-deep); white-space: nowrap; }

/* ---------- Toast a příkazová paleta ---------- */
.toast { position: fixed; left: 50%; bottom: 26px; z-index: 120; transform: translate(-50%, 20px); opacity: 0; pointer-events: none; display: flex; align-items: center; gap: 12px; padding: 12px 14px 12px 16px; border-radius: 14px; background: #232A63; color: #fff; font-weight: 700; font-size: 14.5px; box-shadow: 0 20px 40px -16px rgba(35,42,99,.7); transition: background-color .3s var(--ease), border-color .3s var(--ease), color .3s var(--ease), box-shadow .3s var(--ease), transform .3s var(--ease), opacity .3s var(--ease); max-width: calc(100% - 32px); }
.toast.show { opacity: 1; transform: translate(-50%, 0); pointer-events: auto; }
.toast .ai { color: #8FE3DE; }
.toast button { background: rgba(255,255,255,.14); color: #fff; border: 0; border-radius: 9px; padding: 6px 10px; font: 800 13.5px var(--font); cursor: pointer; }
.cmdk { position: fixed; inset: 0; z-index: 110; display: none; align-items: flex-start; justify-content: center; padding-top: 12vh; background: rgba(35,42,99,.35); backdrop-filter: blur(3px); }
.cmdk.open { display: flex; }
.cmdk .box { width: min(640px, calc(100% - 24px)); background: #fff; border-radius: 20px; box-shadow: 0 40px 90px -30px rgba(35,42,99,.6); overflow: hidden; animation: fade .2s var(--ease); }
.cmdk .q { display: flex; align-items: center; gap: 10px; padding: 14px 18px; border-bottom: 1px solid var(--line); }
.cmdk .q input { flex: 1; border: 0; font: 700 17px var(--font); color: var(--text); outline: none; }
.cmdk ul { list-style: none; margin: 0; padding: 8px; max-height: 50vh; overflow: auto; }
.cmdk li a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 12px; text-decoration: none; color: var(--text); font-weight: 700; }
.cmdk li a small { margin-left: auto; color: #8A8FB0; font-weight: 700; font-size: 12.5px; }
.cmdk li a.is-active, .cmdk li a:hover { background: var(--blue-tint); color: var(--blue-deep); }
.cmdk .grp { font-size: 11.5px; font-weight: 800; letter-spacing: .1em; text-transform: uppercase; color: #8A8FB0; padding: 10px 12px 4px; }
.cmdk .hint { padding: 10px 18px; border-top: 1px solid var(--line); font-size: 12.5px; color: #8A8FB0; display: flex; gap: 14px; }

/* ---------- Seznam klientů ---------- */
.toolbar { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; margin-bottom: 14px; }
.toolbar .search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; min-width: min(320px, 100%); }
.toolbar .search input { border: 0; outline: none; font: 600 15px var(--font); flex: 1; min-width: 0; }
.chips { display: flex; gap: 6px; flex-wrap: wrap; }
.app-body .chip { padding: 7px 12px; font-size: 14px; border-width: 1.5px; }
.app-body .chip small { font-weight: 800; opacity: .7; }
.tbl-wrap { background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
table.tbl { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.tbl th { text-align: left; font-size: 12px; letter-spacing: .08em; text-transform: uppercase; color: #8A8FB0; font-weight: 800; padding: 12px 16px; background: var(--bg-soft); border-bottom: 1px solid var(--line); }
.tbl td { padding: 13px 16px; border-bottom: 1px solid var(--line); vertical-align: middle; color: var(--text); }
.tbl tr:last-child td { border-bottom: 0; }
.tbl tbody tr { cursor: pointer; transition: background .15s; }
.tbl tbody tr:hover { background: #FAFBFF; }
.who { display: flex; align-items: center; gap: 12px; }
.who .av { width: 38px; height: 38px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 14px; flex: none; }
.who b { display: block; color: var(--blue-deep); line-height: 1.2; }
.who small { font-size: 12.5px; color: #8A8FB0; }
.nextstep { display: flex; flex-direction: column; gap: 2px; }
.nextstep small { font-size: 12px; font-weight: 800; }
.nextstep small.on-me { color: var(--purple); }
.nextstep small.on-client { color: var(--blue); }
.meter { height: 6px; border-radius: 6px; background: #EEF0F6; overflow: hidden; min-width: 70px; }
.meter i { display: block; height: 100%; background: var(--gradient-contact); border-radius: 6px; }

/* ---------- Detail klienta ---------- */
.client-head { display: flex; gap: 18px; align-items: center; flex-wrap: wrap; margin-bottom: 18px; }
.client-head .av { width: 64px; height: 64px; border-radius: 50%; background: var(--gradient-contact); color: #fff; font-weight: 900; font-size: 22px; display: grid; place-items: center; flex: none; }
.client-head h1 { font-size: 28px; }
.client-head .sub { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 6px; font-size: 14.5px; }
.client-head .acts { margin-left: auto; }
.journey { display: grid; grid-template-columns: repeat(8, minmax(0, 1fr)); gap: 0; background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 12px 14px; margin-bottom: 18px; }
.journey button { position: relative; display: grid; justify-items: center; gap: 6px; background: none; border: 0; padding: 0 4px; cursor: pointer; font: 800 12.5px/1.25 var(--font); color: #8A8FB0; text-align: center; }
.journey button::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; border-radius: 3px; background: var(--line); }
.journey button:first-child::before { display: none; }
.journey button.done::before, .journey button.now::before { background: var(--teal); }
.journey .nd { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #EEF0F6; color: #8A8FB0; position: relative; z-index: 1; transition: transform .2s; }
.journey .nd .ai { width: 16px; height: 16px; }
.journey button.done { color: var(--text-light); }
.journey button.done .nd { background: var(--teal); color: #fff; }
.journey button.now { color: var(--blue-deep); }
.journey button.now .nd { background: var(--blue-deep); color: #fff; box-shadow: 0 0 0 5px var(--blue-tint); }
.journey button[aria-pressed="true"] .nd { transform: scale(1.12); }
.journey button small { font-weight: 700; color: #8A8FB0; font-size: 11.5px; }
.jdetail { margin: -6px 0 18px; }
.nextcard { display: flex; gap: 16px; align-items: center; background: var(--gradient-contact); color: rgba(255,255,255,.9); border-radius: 20px; padding: 18px 20px; margin-bottom: 18px; flex-wrap: wrap; }
.nextcard .ic { width: 46px; height: 46px; border-radius: 14px; background: rgba(255,255,255,.16); display: grid; place-items: center; color: #fff; flex: none; }
.nextcard b { display: block; color: #fff; font-size: 17px; }
.nextcard .acts { margin-left: auto; }
.tabs { display: flex; flex-wrap: nowrap; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 18px; overflow-x: auto; scrollbar-width: none; }
.tabs button { position: relative; padding: 10px 14px; border: 0; background: none; font: 800 14.5px var(--font); color: var(--text-light); cursor: pointer; white-space: nowrap; }
.tabs button[aria-selected="true"] { color: var(--blue-deep); }
.tabs button[aria-selected="true"]::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--gradient-contact); }
.tabs button .badge { margin-left: 6px; }
.tpanel[hidden] { display: none; }
.cols { display: grid; grid-template-columns: minmax(0, 1fr) 340px; gap: 18px; align-items: start; }
.incl { list-style: none; margin: 0; padding: 0; display: grid; gap: 2px; }
.incl li { display: grid; grid-template-columns: minmax(0, 1fr) 120px 58px; gap: 14px; align-items: center; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text); }
.incl li:last-child { border-bottom: 0; }
.incl li b { font-weight: 900; color: var(--blue-deep); text-align: right; }
.sess { display: grid; gap: 10px; }
.sess-item { border: 1px solid var(--line); border-radius: 16px; padding: 14px 16px; display: grid; gap: 10px; }
.sess-item .top { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; }
.sess-item .top .when { font-weight: 900; color: var(--blue-deep); min-width: 92px; }
.sess-item .top .acts { margin-left: auto; }
.rec { display: flex; gap: 12px; align-items: center; flex-wrap: wrap; background: var(--bg-soft); border-radius: 12px; padding: 10px 12px; font-size: 14px; }
.rec .ic { width: 34px; height: 34px; border-radius: 10px; background: var(--purple-tint); color: var(--purple); display: grid; place-items: center; flex: none; }
.rec .grow { flex: 1; min-width: 200px; }
.rec .grow b { color: var(--blue-deep); display: block; }
.app-body .switch { font-size: 14px; gap: 8px; }
.app-body .switch .track { width: 40px; height: 22px; }
.app-body .switch .track::after { width: 16px; height: 16px; }
.app-body .switch input:checked + .track::after { transform: translateX(18px); }
.timeline { list-style: none; margin: 0; padding: 0; position: relative; }
.timeline::before { content: ""; position: absolute; left: 11px; top: 8px; bottom: 8px; width: 2px; background: var(--line); }
.timeline li { position: relative; display: grid; grid-template-columns: 24px minmax(0, 1fr) auto; gap: 12px; padding: 8px 0; font-size: 14.5px; color: var(--text); }
.timeline li i { width: 24px; height: 24px; border-radius: 50%; background: #fff; border: 2px solid var(--line-strong); position: relative; z-index: 1; display: grid; place-items: center; }
.timeline li i.ok { border-color: var(--teal); background: var(--teal); color: #fff; }
.timeline li i.ok .ai { width: 12px; height: 12px; }
.timeline li i.p { border-color: var(--purple); }
.timeline li i.b { border-color: var(--blue); }
.timeline li time { font-size: 12.5px; color: #8A8FB0; font-weight: 700; white-space: nowrap; }
.timeline li small { display: block; color: var(--text-light); font-size: 13px; }
.menu { position: relative; }
.menu > div { position: absolute; right: 0; top: calc(100% + 6px); z-index: 40; min-width: 240px; background: #fff; border: 1px solid var(--line); border-radius: 14px; box-shadow: var(--shadow); padding: 6px; display: none; }
.menu.open > div { display: block; animation: fade .15s var(--ease); }
.menu > div a, .menu > div button { display: flex; width: 100%; gap: 10px; align-items: center; padding: 9px 10px; border-radius: 10px; border: 0; background: none; font: 700 14.5px var(--font); color: var(--text); text-decoration: none; cursor: pointer; text-align: left; }
.menu > div a:hover, .menu > div button:hover { background: var(--bg-light); }
.menu > div .danger { color: var(--danger); }
.menu > div hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }

/* ---------- Kalendář ---------- */
.cal-head { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; margin-bottom: 12px; }
.cal-head h2 { font-size: 18px; margin-right: 8px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 13px; font-weight: 700; margin-left: auto; }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.legend i { width: 12px; height: 12px; border-radius: 4px; }
.cal { display: grid; grid-template-columns: 56px repeat(5, minmax(0, 1fr)); background: #fff; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.cal .ch { padding: 10px 8px; text-align: center; border-bottom: 1px solid var(--line); border-left: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--text-light); background: var(--bg-soft); }
.cal .ch b { display: block; font-size: 18px; color: var(--blue-deep); }
.cal .ch.today { background: var(--purple-tint); }
.cal .ch.today b { color: var(--purple); }
.cal .ch:first-child { border-left: 0; }
.cal .hours { display: grid; grid-template-rows: repeat(10, 56px); }
.cal .hours span { font-size: 12px; font-weight: 700; color: #8A8FB0; text-align: right; padding: 2px 8px 0 0; border-top: 1px solid var(--line); }
.cal .hours span:first-child { border-top: 0; }
.cal .col { position: relative; display: grid; grid-template-rows: repeat(20, 28px); border-left: 1px solid var(--line); }
.cal .col .cell { border-top: 1px solid var(--line); cursor: pointer; transition: background .15s; }
.cal .col .cell:nth-child(odd) { border-top-color: var(--line); }
.cal .col .cell:nth-child(even) { border-top: 1px dashed #EEF0F8; }
.cal .col .cell.off { background: repeating-linear-gradient(135deg, #F7F8FC 0 6px, #F1F3F9 6px 12px); cursor: default; }
.cal .col .cell:not(.off):hover { background: var(--teal-tint); }
.cal .ev { display: flex; flex-direction: column; align-items: flex-start; justify-content: flex-start; position: absolute; left: 4px; right: 4px; border-radius: 10px; padding: 5px 8px; font-size: 12.5px; line-height: 1.3; color: #fff; overflow: hidden; cursor: pointer; box-shadow: 0 4px 10px -6px rgba(35,42,99,.6); border: 0; text-align: left; font-family: var(--font); }
.cal .ev b { display: block; font-size: 13px; }
.cal .ev.t-konz { background: var(--teal-dark); }
.cal .ev.t-rtt { background: var(--purple); }
.cal .ev.t-kot { background: var(--blue); }
.cal .ev.t-blk { background: repeating-linear-gradient(135deg, #8A8FB0 0 6px, #7D82A6 6px 12px); }
.cal .ev.t-prop { background: #fff; color: var(--purple-dark); border: 2px dashed var(--purple); box-shadow: none; }
.cal .now { position: absolute; left: 0; right: 0; height: 2px; background: var(--purple); z-index: 2; }
.cal .now::before { content: ""; position: absolute; left: -4px; top: -4px; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.pipeline { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; align-items: start; }
.hours-edit { display: grid; gap: 10px; }
.hrow { display: grid; grid-template-columns: 120px 70px minmax(0, 1fr) auto; gap: 14px; align-items: center; background: #fff; border: 1px solid var(--line); border-radius: 16px; padding: 12px 16px; }
.hrow b { color: var(--blue-deep); }
.hrow .ranges { display: flex; flex-wrap: wrap; gap: 8px; }
.hrow .rng { display: inline-flex; align-items: center; gap: 6px; padding: 6px 10px; border-radius: 10px; background: var(--teal-tint); color: #0E6F6A; font-weight: 800; font-size: 14px; }
.hrow.is-off .ranges { opacity: .35; }

/* ---------- Editor obsahu ---------- */
.editor { display: grid; grid-template-columns: minmax(340px, 430px) minmax(0, 1fr); gap: 0; height: calc(100vh - 68px); }
.ed-side { display: flex; flex-direction: column; min-height: 0; background: #fff; border-right: 1px solid var(--line); }
.ed-top { padding: 16px 18px 12px; border-bottom: 1px solid var(--line); display: grid; gap: 10px; }
.ed-top select { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 10px 12px; font: 800 15px var(--font); color: var(--blue-deep); background: #fff; }
.ed-list { flex: 1; overflow-y: auto; padding: 8px 10px 80px; }
.ed-group { border-bottom: 1px solid var(--line); }
.ed-group > button { width: 100%; display: flex; align-items: center; gap: 10px; padding: 12px 8px; border: 0; background: none; font: 800 14.5px var(--font); color: var(--blue-deep); cursor: pointer; text-align: left; }
.ed-group > button small { margin-left: auto; color: #8A8FB0; font-weight: 700; }
.ed-group > button .chev { transition: transform .2s; color: #8A8FB0; }
.ed-group.open > button .chev { transform: rotate(90deg); }
.ed-group .fields { display: none; padding: 0 6px 12px; }
.ed-group.open .fields { display: grid; gap: 12px; }
.ef { display: grid; gap: 6px; border-radius: 14px; padding: 10px; border: 1.5px solid transparent; transition: border-color .15s, background .15s; }
.ef.is-active { border-color: var(--blue); background: #F8FAFF; }
.ef .lab { display: flex; gap: 8px; align-items: center; font-size: 13px; font-weight: 800; color: var(--blue-deep); }
.ef .lab .pill { margin-left: auto; font-size: 11.5px; padding: 2px 8px; }
.ef textarea { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: 600 14.5px/1.5 var(--font); color: var(--text); resize: vertical; min-height: 44px; background: #fff; }
.ef textarea:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.ef .var { border-left: 3px solid var(--gold); padding-left: 10px; display: grid; gap: 4px; }
.ef .var span { font-size: 12px; font-weight: 800; color: #8A6A1F; }
.ef .tools { display: flex; gap: 10px; align-items: center; font-size: 12.5px; }
.ef .tools button { border: 0; background: none; padding: 0; font: 800 12.5px var(--font); color: var(--blue); cursor: pointer; }
.ef .tools .cnt { margin-left: auto; color: #8A8FB0; font-weight: 700; }
.ed-save { position: sticky; bottom: 0; display: flex; align-items: center; gap: 10px; padding: 12px 16px; background: #fff; border-top: 1px solid var(--line); }
.ed-save .msg { font-size: 13.5px; font-weight: 800; color: var(--text-light); }
.ed-save .msg.dirty { color: var(--purple); }
.ed-save .acts { margin-left: auto; }
.ed-prev { display: flex; flex-direction: column; min-width: 0; background: #E8EBF4; }
.ed-prev .bar { display: flex; gap: 10px; align-items: center; padding: 10px 16px; border-bottom: 1px solid var(--line); background: #F3F5FB; flex-wrap: wrap; }
.ed-prev .bar .url { flex: 1; min-width: 160px; display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 12px; background: #fff; border-radius: 10px; border: 1px solid var(--line); font-size: 13px; color: var(--text-light); font-weight: 700; white-space: nowrap; overflow: hidden; }
.ed-prev .frame { flex: 1; position: relative; overflow: hidden; min-height: 0; }
.ed-prev iframe { position: absolute; top: 14px; left: 14px; border: 0; border-radius: 14px; background: #fff; box-shadow: 0 20px 50px -30px rgba(35,42,99,.6); transform-origin: 0 0; }
.seg2 { display: inline-flex; background: #fff; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg2 button { border: 0; background: none; padding: 5px 10px; border-radius: 8px; font: 800 13px var(--font); color: var(--text-light); cursor: pointer; display: inline-flex; gap: 6px; align-items: center; }
.seg2 button[aria-pressed="true"] { background: var(--blue-deep); color: #fff; }
.findres { display: grid; gap: 6px; }
.findres button { text-align: left; border: 1px solid var(--line); background: #fff; border-radius: 12px; padding: 8px 10px; cursor: pointer; font: 600 13.5px/1.4 var(--font); color: var(--text); }
.findres button b { display: block; font-size: 12px; color: var(--blue); font-weight: 800; }
.findres mark { background: #FFF1B8; color: inherit; border-radius: 3px; }

/* ---------- Reference (správa) ---------- */
.ref-admin { display: grid; grid-template-columns: repeat(auto-fill, minmax(250px, 1fr)); gap: 14px; }
.rcard { background: #fff; border: 1px solid var(--line); border-radius: 18px; padding: 14px; display: grid; gap: 10px; cursor: pointer; transition: box-shadow .2s, border-color .2s; }
.rcard:hover { box-shadow: var(--shadow); border-color: var(--line-strong); }
.rcard .top { display: flex; gap: 10px; align-items: center; }
.rcard .top .avatar { width: 48px; height: 48px; font-size: 16px; }
.rcard .top b { display: block; color: var(--blue-deep); }
.rcard p { margin: 0; font-size: 13.5px; line-height: 1.5; display: -webkit-box; -webkit-line-clamp: 3; -webkit-box-orient: vertical; overflow: hidden; }
.rcard .flags { display: flex; gap: 6px; flex-wrap: wrap; }
.rcard.is-off { opacity: .55; }
.crop { display: grid; grid-template-columns: 190px minmax(0, 1fr); gap: 18px; align-items: center; }
.crop .circle { position: relative; width: 190px; height: 190px; border-radius: 50%; overflow: hidden; background: linear-gradient(180deg, #38459C 0%, #1A8EBB 60%, #1AB6AE 100%); cursor: grab; touch-action: none; box-shadow: 0 0 0 4px #fff, 0 0 0 5px var(--line-strong); }
.crop .circle:active { cursor: grabbing; }
.crop .circle img { position: absolute; max-width: none; user-select: none; pointer-events: none; }
.crop input[type=range] { width: 100%; accent-color: var(--purple); }

/* ---------- Ceník ---------- */
.price-grid { width: 100%; border-collapse: separate; border-spacing: 0; }
.price-grid th, .price-grid td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: right; }
.price-grid th:first-child, .price-grid td:first-child { text-align: left; }
.price-grid thead th { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: #8A8FB0; }
.price-grid input { width: 120px; text-align: right; border: 1.5px solid var(--line-strong); border-radius: 10px; padding: 8px 10px; font: 800 15px var(--font); color: var(--blue-deep); }
.price-grid input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.price-grid input.changed { border-color: var(--purple); background: var(--purple-tint); }

/* ---------- Přehledy ---------- */
.bars { display: flex; align-items: flex-end; gap: 8px; height: 150px; padding-top: 10px; }
.bars div { flex: 1; display: grid; gap: 6px; justify-items: center; font-size: 11.5px; font-weight: 700; color: #8A8FB0; }
.bars i { display: block; width: 100%; max-width: 34px; border-radius: 8px 8px 4px 4px; background: var(--gradient-contact); }
.funnel { display: grid; gap: 8px; }
.funnel div { display: grid; grid-template-columns: 180px minmax(0, 1fr) 46px; gap: 12px; align-items: center; font-size: 14px; color: var(--text); }
.funnel div i { display: block; height: 14px; border-radius: 7px; background: var(--gradient-contact); }
.funnel div b { text-align: right; color: var(--blue-deep); }
.illus { font-size: 12px; font-weight: 800; color: var(--warn); background: var(--warn-tint); padding: 3px 9px; border-radius: 999px; }

/* ---------- Mobilní administrace ---------- */
.tabbar { display: none; }
@media (max-width: 1180px) {
  .lanes { grid-template-columns: 1fr 1fr; }
  .lanes .lane:last-child { grid-column: 1 / -1; }
  .cols { grid-template-columns: 1fr; }
  .pipeline { grid-template-columns: 1fr 1fr; }
  .stats { grid-template-columns: 1fr 1fr; }
}
@media (max-width: 960px) {
  .app { grid-template-columns: 1fr; }
  .side { display: none; }
  .topbar { padding: 0 16px; height: 60px; }
  .topbar .sub { display: none; }
  .topbar .m-brand { display: flex !important; }
  .searchbtn { width: auto; flex: 1; }
  .searchbtn kbd { display: none; }
  .page { padding: 18px 16px 100px; }
  .tabbar { display: grid; grid-template-columns: repeat(5, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; text-decoration: none; font-size: 11.5px; font-weight: 800; color: #8A8FB0; position: relative; }
  .tabbar a[aria-current="page"] { color: var(--blue-deep); }
  .tabbar a[aria-current="page"] .ai { color: var(--purple); }
  .tabbar a .badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .editor { grid-template-columns: 1fr; height: auto; }
  .ed-prev { min-height: 70vh; }
  .journey { grid-template-columns: repeat(4, minmax(0, 1fr)); row-gap: 16px; }
  .journey button:nth-child(5)::before { display: none; }
  .hrow { grid-template-columns: 1fr auto; }
  .hrow .ranges { grid-column: 1 / -1; }
}
@media (max-width: 720px) {
  .lanes, .grid2, .grid3, .pipeline, .stats { grid-template-columns: 1fr; }
  .lanes .lane:last-child { grid-column: auto; }
  .hide-m { display: none !important; }
  .tbl th.hide-m, .tbl td.hide-m { display: none; }
  .client-head .acts { margin-left: 0; width: 100%; }
  .incl li { grid-template-columns: minmax(0, 1fr) 56px; }
  .incl li .meter { display: none; }
  .cal { grid-template-columns: 44px repeat(5, minmax(56px, 1fr)); overflow-x: auto; }
  .drawer { width: 100%; }
  .crop { grid-template-columns: 1fr; justify-items: center; }
  .funnel div { grid-template-columns: 110px minmax(0, 1fr) 40px; }
}
.m-brand { display: none !important; align-items: center; gap: 8px; text-decoration: none; }
.m-brand img { height: 28px; width: auto; }

/* =========================================================
   KLIENTSKÝ PORTÁL
   ========================================================= */
body.portal-body { background: linear-gradient(180deg, #F6F6FF 0%, #F7FBFF 380px, #F7FBFF 100%); font-size: 16px; line-height: 1.6; }
.p-head { position: sticky; top: 0; z-index: 40; background: rgba(255,255,255,.9); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.p-head .bar { display: flex; align-items: center; gap: 18px; height: 70px; width: min(100% - 32px, 1120px); margin-inline: auto; }
.p-head .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.p-head .brand .sym { height: 30px; width: auto; }
.p-head .brand .txt { height: 15px; width: auto; }
.p-nav { display: flex; gap: 4px; margin-left: 18px; }
.p-nav a { padding: 8px 14px; border-radius: 999px; font-weight: 700; font-size: 15px; color: var(--text-light); text-decoration: none; display: inline-flex; gap: 8px; align-items: center; }
.p-nav a:hover { background: var(--bg-light); color: var(--blue-deep); }
.p-nav a[aria-current="page"] { background: var(--blue-tint); color: var(--blue-deep); }
.p-nav a .badge { margin: 0; min-width: 20px; height: 20px; font-size: 11px; }
.p-acc { margin-left: auto; display: flex; align-items: center; gap: 10px; }
.p-acc .av { width: 38px; height: 38px; border-radius: 50%; background: var(--gradient-contact); color: #fff; font-weight: 900; display: grid; place-items: center; }
.p-main { width: min(100% - 32px, 1120px); margin-inline: auto; padding: 30px 0 80px; }
.p-greet { margin-bottom: 22px; }
.p-greet h1 { font-size: clamp(28px, 3vw, 40px); }
.p-greet p { margin: 6px 0 0; font-size: 17px; }
.p-grid { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.p-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 22px; }
.p-card + .p-card { margin-top: 18px; }
.p-card h2 { font-size: 20px; }
.p-card .kick { font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); margin-bottom: 6px; display: block; }
.focus { position: relative; overflow: hidden; border-radius: 28px; padding: clamp(22px, 3vw, 34px); color: rgba(255,255,255,.92); background: var(--gradient-contact); box-shadow: 0 30px 60px -34px rgba(56,69,156,.8); isolation: isolate; }
.focus::before { content: ""; position: absolute; right: -120px; top: -160px; width: 420px; height: 420px; border-radius: 50%; background: radial-gradient(circle, rgba(26,182,174,.5), transparent 65%); z-index: -1; }
.focus .kick { color: #9EEBE5; font-size: 12.5px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; display: inline-flex; gap: 8px; align-items: center; }
.focus .kick::before { content: ""; width: 8px; height: 8px; border-radius: 50%; background: #9EEBE5; box-shadow: 0 0 0 4px rgba(158,235,229,.25); animation: pulse 2s infinite; }
@keyframes pulse { 50% { box-shadow: 0 0 0 8px rgba(158,235,229,0); } }
.focus h2 { color: #fff; font-size: clamp(24px, 2.4vw, 32px); margin: 10px 0 8px; }
.focus p { color: rgba(255,255,255,.9); }
.focus .opts { display: grid; grid-template-columns: repeat(auto-fit, minmax(190px, 1fr)); gap: 10px; margin: 18px 0; }
.focus .opt { display: grid; gap: 2px; padding: 14px 16px; border-radius: 16px; background: rgba(255,255,255,.12); border: 2px solid rgba(255,255,255,.25); color: #fff; cursor: pointer; text-align: left; font-family: var(--font); transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s, opacity .15s; }
.focus .opt b { font-size: 17px; }
.focus .opt span { font-size: 14px; opacity: .85; }
.focus .opt:hover { background: rgba(255,255,255,.2); }
.focus .opt[aria-pressed="true"] { background: #fff; color: var(--blue-deep); border-color: #fff; box-shadow: 0 10px 24px -12px rgba(0,0,0,.45); }
.focus .row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.focus .meta { display: inline-flex; gap: 8px; align-items: center; font-size: 13.5px; font-weight: 700; padding: 6px 12px; border-radius: 999px; background: rgba(255,255,255,.14); }
.focus .btn--white[disabled] { opacity: .5; }
.focus .btn--line { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.focus .btn--line:hover { border-color: #fff; }
.focus.is-done { background: linear-gradient(120deg, #138A6B 0%, #1A8EBB 100%); }
.qr { display: grid; grid-template-columns: 150px minmax(0, 1fr); gap: 18px; align-items: center; margin: 16px 0; }
.qr .code { width: 150px; height: 150px; border-radius: 16px; background: #fff; padding: 10px; }
.qr dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr) auto; gap: 8px 12px; align-items: center; font-size: 15px; }
.qr dt { opacity: .8; font-weight: 700; }
.qr dd { margin: 0; font-weight: 900; color: #fff; }
.qr .cp { border: 0; background: rgba(255,255,255,.16); color: #fff; border-radius: 8px; padding: 4px 8px; font: 800 12.5px var(--font); cursor: pointer; }
.nexttime { display: grid; grid-template-columns: 64px minmax(0, 1fr); gap: 14px; align-items: center; }
.nexttime .cal-ic { width: 64px; border-radius: 16px; overflow: hidden; text-align: center; border: 1px solid var(--line); }
.nexttime .cal-ic span { display: block; background: var(--purple); color: #fff; font-size: 12px; font-weight: 800; padding: 3px 0; }
.nexttime .cal-ic b { display: block; font-size: 26px; color: var(--blue-deep); font-weight: 900; padding: 4px 0 6px; line-height: 1; }
.ring { --p: 30; width: 104px; height: 104px; border-radius: 50%; background: conic-gradient(var(--purple) calc(var(--p) * 1%), #EEF0F8 0); display: grid; place-items: center; flex: none; }
.ring div { width: 82px; height: 82px; border-radius: 50%; background: #fff; display: grid; place-items: center; text-align: center; line-height: 1.1; }
.ring b { font-size: 22px; color: var(--blue-deep); font-weight: 900; }
.ring small { font-size: 11.5px; font-weight: 700; color: #8A8FB0; }
.prog { display: flex; gap: 16px; align-items: center; }
.steps-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.steps-list li { display: flex; align-items: center; gap: 12px; padding: 12px 14px; border-radius: 16px; background: var(--bg-soft); font-size: 15px; }
.steps-list li b { display: block; color: var(--blue-deep); }
.steps-list li small { font-size: 13.5px; }
.steps-list li .btn { margin-left: auto; }
.player { display: grid; gap: 12px; }
.player .top { display: flex; gap: 14px; align-items: center; }
.player .pp { width: 56px; height: 56px; border-radius: 50%; border: 0; background: var(--gradient-contact); color: #fff; display: grid; place-items: center; cursor: pointer; flex: none; box-shadow: 0 10px 24px -12px rgba(56,69,156,.8); }
.player .pp .ai { width: 22px; height: 22px; }
.player .track2 { position: relative; height: 8px; border-radius: 8px; background: #EEF0F8; cursor: pointer; }
.player .track2 i { position: absolute; left: 0; top: 0; bottom: 0; border-radius: 8px; background: var(--gradient-contact); }
.player .track2 .lim { position: absolute; top: -3px; bottom: -3px; width: 2px; background: var(--purple); border-radius: 2px; }
.player .times { display: flex; justify-content: space-between; font-size: 12.5px; font-weight: 700; color: #8A8FB0; }
.player .msg { font-size: 13.5px; color: var(--purple-dark); font-weight: 700; min-height: 20px; }
.player .info { display: flex; gap: 8px; flex-wrap: wrap; }
.p-timeline { list-style: none; margin: 0; padding: 0; display: grid; gap: 0; position: relative; }
.p-timeline li { position: relative; display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 14px; padding: 12px 0; align-items: start; }
.p-timeline li::before { content: ""; position: absolute; left: 17px; top: 0; bottom: 0; width: 2px; background: var(--line); }
.p-timeline li:first-child::before { top: 24px; }
.p-timeline li:last-child::before { bottom: calc(100% - 24px); }
.p-timeline .nd { position: relative; z-index: 1; width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2px solid var(--line-strong); color: #8A8FB0; }
.p-timeline .nd .ai { width: 16px; height: 16px; }
.p-timeline li.done .nd { background: var(--teal); border-color: var(--teal); color: #fff; }
.p-timeline li.now .nd { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; box-shadow: 0 0 0 5px var(--blue-tint); }
.p-timeline b { display: block; color: var(--blue-deep); }
.p-timeline small { font-size: 13.5px; }
.p-timeline .r { text-align: right; font-size: 13.5px; font-weight: 700; color: #8A8FB0; white-space: nowrap; }
.incl2 { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.incl2 li { display: grid; grid-template-columns: 44px minmax(0, 1fr) auto; gap: 12px; align-items: center; }
.incl2 .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--purple-tint); color: var(--purple); }
.incl2 b { display: block; color: var(--blue-deep); font-size: 15px; }
.incl2 small { font-size: 13px; }
.dots3 { display: flex; gap: 5px; }
.dots3 i { width: 12px; height: 12px; border-radius: 50%; background: #EEF0F8; border: 2px solid var(--line-strong); }
.dots3 i.on { background: var(--teal); border-color: var(--teal); }
.docs { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.docs li { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.docs .ic { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); flex: none; }
.docs b { display: block; color: var(--blue-deep); }
.docs small { font-size: 13.5px; }
.docs .acts { margin-left: auto; }
.p-tabbar { display: none; }
.stepper2 { display: flex; gap: 0; margin-bottom: 22px; }
.stepper2 div { flex: 1; display: grid; justify-items: center; gap: 6px; position: relative; font-size: 13px; font-weight: 800; color: #8A8FB0; text-align: center; }
.stepper2 div::before { content: ""; position: absolute; top: 15px; left: calc(-50% + 18px); right: calc(50% + 18px); height: 3px; background: var(--line); border-radius: 3px; }
.stepper2 div:first-child::before { display: none; }
.stepper2 div i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; background: #EEF0F6; font-style: normal; position: relative; z-index: 1; }
.stepper2 div.done i { background: var(--teal); color: #fff; }
.stepper2 div.done::before, .stepper2 div.on::before { background: var(--teal); }
.stepper2 div.on { color: var(--blue-deep); }
.stepper2 div.on i { background: var(--blue-deep); color: #fff; box-shadow: 0 0 0 5px var(--blue-tint); }
.auth { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.auth .art { background: var(--gradient-hero); color: #fff; padding: 48px; display: flex; flex-direction: column; justify-content: flex-start; gap: clamp(40px, 8vh, 90px); position: relative; overflow: hidden; }
.auth .art h2 { color: #fff; font-size: clamp(28px, 3vw, 40px); max-width: 460px; }
.auth .art p { color: rgba(255,255,255,.9); max-width: 420px; font-size: 17px; }
.auth .art img.zd { position: absolute; right: 0; bottom: 0; height: 62%; width: auto; max-width: 70%; object-fit: contain; object-position: right bottom; filter: drop-shadow(0 20px 40px rgba(0,0,0,.25)); }
.auth .form { display: grid; place-items: center; padding: 40px 20px; background: #fff; }
.auth .form > div { width: min(400px, 100%); }
@media (max-width: 960px) {
  .p-nav { display: none; }
  .p-grid { grid-template-columns: 1fr; }
  .p-main { padding: 20px 0 110px; }
  .p-tabbar { display: grid; grid-template-columns: repeat(4, 1fr); position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; background: rgba(255,255,255,.96); backdrop-filter: blur(12px); border-top: 1px solid var(--line); padding: 6px 4px calc(6px + env(safe-area-inset-bottom)); }
  .p-tabbar a { display: grid; justify-items: center; gap: 2px; padding: 6px 2px; text-decoration: none; font-size: 11.5px; font-weight: 800; color: #8A8FB0; position: relative; text-align: center; line-height: 1.2; }
  .p-tabbar a[aria-current="page"] { color: var(--blue-deep); }
  .p-tabbar a[aria-current="page"] .ai { color: var(--purple); }
  .p-tabbar a .badge { position: absolute; top: 0; left: calc(50% + 6px); margin: 0; min-width: 18px; height: 18px; font-size: 11px; padding: 0 5px; }
  .auth { grid-template-columns: 1fr; }
  .auth .art { min-height: 300px; padding: 28px; gap: 24px; }
  .auth .art > div { max-width: 58%; }
  .auth .art img.zd { height: 88%; max-width: 45%; }
}
@media (max-width: 600px) {
  .qr { grid-template-columns: 1fr; justify-items: start; }
  .p-head .brand .txt { display: none; }
  .p-timeline li { grid-template-columns: 36px minmax(0, 1fr); }
  .p-timeline .r { grid-column: 2; text-align: left; }
  .stepper2 div span { display: none; }
}
.back { display: inline-flex; align-items: center; gap: 6px; font-weight: 800; color: var(--blue); text-decoration: none; }
.back::before { content: "←"; transition: transform .2s var(--ease); }
.back:hover::before { transform: translateX(-3px); }
.cols > *, .grid2 > *, .grid3 > *, .p-grid > * { min-width: 0; }
.drawer:focus { outline: none; }
.grid2 > .panel + .panel, .grid3 > .panel + .panel, .cols > .panel + .panel { margin-top: 0; }

:root {
  --dots: radial-gradient(rgba(56, 69, 156, .10) 1px, transparent 1.3px);
  --dots-w: radial-gradient(rgba(255, 255, 255, .14) 1px, transparent 1.4px);
  --navy: #2A3478;
  --shadow-lg: 0 1px 2px rgba(42, 52, 120, .06), 0 30px 60px -32px rgba(42, 52, 120, .45);
  --shadow-md: 0 1px 2px rgba(42, 52, 120, .05), 0 16px 34px -22px rgba(42, 52, 120, .38);
}

/* ---------- Společné značkové prvky ---------- */
.b-dots { position: relative; }
.b-dots::before { content: ""; position: absolute; inset: 0; background-image: var(--dots); background-size: 22px 22px; pointer-events: none; -webkit-mask-image: linear-gradient(180deg, #000, transparent 85%); mask-image: linear-gradient(180deg, #000, transparent 85%); }
.b-glow { position: absolute; border-radius: 50%; filter: blur(10px); pointer-events: none; }
.b-band { position: relative; overflow: hidden; color: rgba(255,255,255,.9);
  background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.16), transparent 55%), radial-gradient(70% 90% at 0% 100%, rgba(20,24,80,.28), transparent 60%), var(--gradient-contact); }
.b-band::before { content: ""; position: absolute; inset: 0; background-image: var(--dots-w); background-size: 18px 18px; pointer-events: none; }
.b-band::after { content: ""; position: absolute; inset: -30%; pointer-events: none; mix-blend-mode: soft-light;
  background: radial-gradient(28% 34% at 30% 35%, rgba(255,255,255,.34), transparent 70%), radial-gradient(30% 36% at 72% 68%, rgba(158,235,229,.28), transparent 70%);
  animation: mo-drift 22s ease-in-out infinite alternate; }
.b-band > * { position: relative; z-index: 1; }
.b-band h1, .b-band h2, .b-band h3 { color: #fff; }
.b-band .eyebrow, .b-band .kicker { color: #9EEBE5; }
.b-tile { width: 52px; height: 52px; border-radius: 16px; display: grid; place-items: center; background: rgba(255,255,255,.15); border: 1px solid rgba(255,255,255,.3); color: #fff; flex: none; }
.b-tile .ai { width: 26px; height: 26px; }
.b-ico { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; flex: none; background: var(--blue-tint); color: var(--blue-deep); }
.b-ico--teal { background: var(--teal-tint); color: #0E6F6A; }
.b-ico--purple { background: var(--purple-tint); color: var(--purple-dark); }
.b-ico--warn { background: var(--warn-tint); color: var(--warn); }
.b-ico--ok { background: var(--ok-tint); color: var(--ok); }
.b-ico--danger { background: var(--danger-tint); color: var(--danger); }
.b-ico--grad { background: var(--gradient-contact); color: #fff; box-shadow: 0 10px 22px -12px rgba(56,69,156,.8); }
.cal-tile { width: 62px; flex: none; border-radius: 14px; overflow: hidden; background: #fff; border: 1px solid var(--line); text-align: center; box-shadow: 0 6px 14px -10px rgba(42,52,120,.5); }
.cal-tile span { display: block; background: var(--purple); color: #fff; font-size: 11px; font-weight: 900; letter-spacing: .12em; padding: 4px 0 3px; }
.cal-tile b { display: block; font-size: 26px; line-height: 1; padding: 6px 0 8px; color: var(--blue-deep); font-weight: 900; }
.done-mark { width: 76px; height: 76px; margin: 0 auto 18px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-contact); color: #fff; box-shadow: 0 0 0 10px rgba(26,182,174,.12), 0 18px 34px -16px rgba(56,69,156,.8); }
.done-mark svg { width: 36px; height: 36px; }
.done-mark path { stroke-dasharray: 30; stroke-dashoffset: 30; animation: draw .6s .15s var(--ease) forwards; }
@keyframes draw { to { stroke-dashoffset: 0; } }
.mono { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: .92em; }

/* =========================================================
   GALERIE E-MAILŮ
   ========================================================= */
body.ms-body { background: #EEF1F8; font-size: 15.5px; line-height: 1.55; }
.ms-top { position: sticky; top: 0; z-index: 30; height: 64px; display: flex; align-items: center; gap: 22px; padding: 0 22px; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.ms-brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.ms-brand img { height: 30px; width: auto; }
.ms-brand span { display: flex; flex-direction: column; line-height: 1.1; }
.ms-brand b { color: var(--blue-deep); font-weight: 900; font-size: 15.5px; }
.ms-brand small { color: var(--text-light); font-weight: 700; font-size: 12px; }
.ms-nav { display: flex; gap: 2px; }
.ms-nav a { padding: 8px 12px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--text-light); text-decoration: none; }
.ms-nav a:hover { background: var(--bg-light); color: var(--blue-deep); }
.ms-ctl { margin-left: auto; display: flex; gap: 10px; }
.ms-ctl .seg2 button span { display: inline; }

.ms { display: grid; grid-template-columns: 340px minmax(0, 1fr) 320px; height: calc(100vh - 64px); }
.ms-list { background: #fff; border-right: 1px solid var(--line); display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.ms-intro { padding: 22px 18px 14px; display: grid; gap: 12px; border-bottom: 1px solid var(--line); background: linear-gradient(180deg, var(--bg-soft), #fff); }
.ms-intro h1 { font-size: 26px; line-height: 1.15; margin: -4px 0 0; }
.ms-intro .eyebrow { margin: 0; }
.ms-nums { display: flex; gap: 8px; }
.ms-nums span { flex: 1; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 7px 10px; font-size: 12px; font-weight: 700; color: var(--text-light); line-height: 1.25; }
.ms-nums b { display: block; font-size: 19px; font-weight: 900; color: var(--blue-deep); }
.ms-search { display: flex; align-items: center; gap: 8px; height: 42px; padding: 0 12px; border: 1.5px solid var(--line-strong); border-radius: 12px; background: #fff; color: #8A8FB0; transition: border-color .2s, box-shadow .2s; }
.ms-search:focus-within { border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.ms-search input { border: 0; outline: 0; font: 600 14.5px var(--font); flex: 1; min-width: 0; color: var(--text); background: none; }
.ms-intro .chips .chip { min-height: 32px; padding: 0 12px; font-size: 13px; }
.ms-list .scroll { position: relative; flex: 1; overflow-y: auto; padding: 6px 10px 48px; }
.ms-cat { position: sticky; top: -6px; z-index: 2; display: flex; align-items: center; gap: 10px; margin: 6px -10px 0; padding: 14px 18px 6px; background: rgba(255,255,255,.96); backdrop-filter: blur(6px); }
.ms-cat b { flex: 1; font-size: 11.5px; letter-spacing: .12em; text-transform: uppercase; color: var(--blue-deep); font-weight: 900; }
.ms-cat em { font-style: normal; font-size: 12px; font-weight: 800; color: #8A8FB0; background: var(--bg-light); border-radius: 999px; padding: 1px 8px; }
.ms-ico { width: 26px; height: 26px; border-radius: 8px; display: grid; place-items: center; background: var(--c, var(--blue-deep)); flex: none; box-shadow: 0 4px 10px -6px var(--c, #38459C); }
.ms-ico img { width: 15px; height: 15px; }
.ms-item { position: relative; width: 100%; text-align: left; display: grid; gap: 3px; padding: 9px 12px 10px 44px; border: 0; border-radius: 12px; background: none; cursor: pointer; font-family: var(--font); transition: background .15s; }
.ms-item:hover { background: var(--bg-light); }
.ms-item[aria-current="true"] { background: var(--blue-tint); }
.ms-item[aria-current="true"]::before { content: ""; position: absolute; left: 18px; top: 14px; bottom: 14px; width: 3px; border-radius: 3px; background: var(--gradient-contact); }
.ms-item b { font-size: 14px; color: var(--blue-deep); font-weight: 800; line-height: 1.3; }
.ms-item .meta { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; font-size: 12px; color: #8A8FB0; font-weight: 700; }
.ms-item .meta .sep { color: #C3C7DD; }
.ms-item .tag { font-style: normal; font-size: 11px; font-weight: 800; padding: 1px 7px; border-radius: 6px; background: #EEF0F6; color: #6B7090; }
.ms-item .tag--new { background: var(--warn-tint); color: var(--warn); }
.ms-item .tag--lock { background: #EEF0F6; color: #6B7090; }
.mdot { width: 8px; height: 8px; border-radius: 50%; background: var(--purple); flex: none; }
.mdot--security { background: var(--blue); } .mdot--receipt, .mdot--receipt_exception { background: var(--ok); } .mdot--optional { background: #A6AAC4; }
.mdot--internal { background: #6B7090; } .mdot--personal { background: var(--teal); }
.ms-empty { padding: 24px 12px; color: #8A8FB0; font-size: 14px; text-align: center; }

.ms-stage { position: relative; min-width: 0; min-height: 0; overflow: auto; padding: 30px 26px 60px; background-color: #E9ECF5; background-image: var(--dots); background-size: 22px 22px; display: flex; flex-direction: column; align-items: center; }
.mx-desk { width: 760px; max-width: 100%; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); overflow: hidden; flex: none; }
.mx-chrome { display: flex; align-items: center; gap: 7px; height: 38px; padding: 0 14px; background: #F4F5FA; border-bottom: 1px solid var(--line); }
.mx-chrome i { width: 11px; height: 11px; border-radius: 50%; background: #FF5F57; } .mx-chrome i:nth-child(2) { background: #FEBC2E; } .mx-chrome i:nth-child(3) { background: #28C840; }
.mx-chrome span { margin-left: 12px; font-size: 12.5px; font-weight: 800; color: #8A8FB0; }
.mx-head { display: flex; align-items: center; gap: 12px; padding: 16px 22px 4px; }
.mx-head .who { flex: 1; min-width: 0; display: grid; line-height: 1.3; }
.mx-head .who b { font-size: 14.5px; color: var(--text); font-weight: 800; }
.mx-head .who b small { font-weight: 600; color: #8A8FB0; font-size: 12.5px; }
.mx-head .who > small { font-size: 12.5px; color: #8A8FB0; font-weight: 600; }
.mx-head time { font-size: 12.5px; color: #8A8FB0; font-weight: 700; white-space: nowrap; }
.mav { width: 40px; height: 40px; border-radius: 50%; overflow: hidden; flex: none; background: var(--blue-tint); display: grid; place-items: center; }
.mav img { width: 100%; height: 100%; object-fit: cover; }
.mav--sys { background: #fff; border: 1px solid var(--line); }
.mav--mono { background: var(--gradient-contact); color: #fff; font-weight: 900; font-size: 14px; letter-spacing: .02em; }
.ph-head .mav--mono { font-size: 12px; }
.mav--sys img { width: 72%; height: auto; object-fit: contain; }
.mx-subj { font-size: 21px; line-height: 1.3; padding: 8px 22px 16px; margin: 0; border-bottom: 1px solid var(--line); }
.mx-desk iframe { display: block; width: 100%; border: 0; min-height: 600px; background: #EEF1F8; }
.mx-fit { position: relative; overflow: hidden; background: #EEF1F8; }
.mx-fit iframe { transform-origin: 0 0; min-height: 0; }
.mx-phone { display: none; }
.ms-stage.is-mobile .mx-desk { display: none; }
.ms-stage.is-mobile .mx-phone { display: block; }
.ph-frame { width: 392px; max-width: 100%; height: 820px; border-radius: 56px; padding: 14px; background: #161A33; box-shadow: var(--shadow-lg), inset 0 0 0 2px #2C3156; display: flex; flex-direction: column; overflow: hidden; }
.ph-frame > * { background: #fff; }
.ph-status { display: flex; align-items: center; justify-content: space-between; height: 44px; padding: 0 26px; border-radius: 42px 42px 0 0; font-size: 14px; color: #111; }
.ph-notch { width: 110px; height: 30px; border-radius: 20px; background: #161A33; }
.ph-ind { display: flex; gap: 3px; align-items: flex-end; } .ph-ind i { width: 4px; background: #111; border-radius: 1px; } .ph-ind i:nth-child(1) { height: 6px; } .ph-ind i:nth-child(2) { height: 9px; } .ph-ind i:nth-child(3) { height: 12px; }
.ph-bar { padding: 4px 16px 6px; font-size: 15px; font-weight: 700; color: #1C75BC; }
.ph-head { display: flex; gap: 10px; align-items: center; padding: 6px 16px 10px; border-bottom: 1px solid var(--line); }
.ph-head .mav { width: 34px; height: 34px; }
.ph-head div { display: grid; min-width: 0; line-height: 1.25; }
.ph-head b { font-size: 14px; color: var(--text); }
.ph-head small { font-size: 12.5px; color: #8A8FB0; font-weight: 700; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ph-body { flex: 1; overflow-y: auto; border-radius: 0 0 42px 42px; }
.ph-body iframe { display: block; width: 100%; border: 0; min-height: 600px; }

.ms-info { background: #fff; border-left: 1px solid var(--line); padding: 22px 20px 30px; overflow-y: auto; min-width: 0; }
.ms-info dl { margin: 6px 0 18px; display: grid; gap: 0; }
.ms-info dt { display: flex; align-items: center; gap: 8px; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #8A8FB0; padding-top: 14px; }
.ms-info dt .ai { color: var(--teal-dark); }
.ms-info dd { margin: 5px 0 0; padding-bottom: 14px; border-bottom: 1px solid var(--line); font-size: 14.5px; color: var(--text); font-weight: 600; }
.ms-info dd:last-child { border-bottom: 0; }
.modeline { display: grid; gap: 6px; justify-items: start; }
.modeline small { font-size: 13px; color: var(--text-light); font-weight: 600; }
.lockline { display: inline-flex; align-items: center; gap: 6px; color: var(--warn); font-weight: 800; }
.ms-info code, .ms-origin code { font-family: ui-monospace, 'SF Mono', Menlo, monospace; font-size: 12.5px; background: var(--bg-light); border: 1px solid var(--line); border-radius: 6px; padding: 1px 6px; color: var(--blue-deep); }
.ms-editbtn { width: 100%; }
.ms-origin { margin: 16px 0 0; font-size: 12.5px; color: #8A8FB0; line-height: 1.7; }
.ms-origin b { color: var(--text-light); }

@media (max-width: 1360px) {
  .ms { grid-template-columns: 320px minmax(0, 1fr); grid-template-rows: minmax(0, 1fr) auto; }
  .ms-list { grid-row: 1 / span 2; }
  .ms-info { border-left: 0; border-top: 1px solid var(--line); max-height: 220px; padding: 14px 22px; display: grid; grid-template-columns: minmax(0, 1fr) 240px; gap: 0 22px; align-items: start; }
  .ms-info > .eyebrow { grid-column: 1 / -1; }
  .ms-info dl { grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 0 18px; margin: 0; }
  .ms-info dd { border-bottom: 0; padding-bottom: 6px; }
  .ms-info .ms-editbtn { grid-column: 2; grid-row: 2; margin-top: 14px; }
  .ms-info .ms-origin { grid-column: 2; grid-row: 2; margin-top: 70px; }
}
@media (max-width: 1080px) { .ms-nav { display: none; } }
@media (max-width: 960px) {
  .ms { display: block; height: auto; }
  .ms-list { border-right: 0; border-bottom: 1px solid var(--line); }
  .ms-list .scroll { max-height: 46vh; }
  .ms-stage { padding: 20px 10px 40px; }
  .ms-info { max-height: none; display: block; padding: 20px 18px 30px; }
  .ms-info dl { grid-template-columns: 1fr; }
  .ms-info .ms-origin { margin-top: 14px; }
  .ms-ctl .seg2 button span { display: none; }
  .ms-top { gap: 12px; padding: 0 14px; }
}
@media (max-width: 520px) { .ms-brand span { display: none; } .mx-head { padding: 14px 14px 4px; } .mx-subj { padding: 6px 14px 14px; font-size: 18px; } .mx-head time { display: none; } }

/* ---------- Editor šablon v administraci ---------- */
.tpl { display: grid; grid-template-columns: 280px minmax(0, 1fr); height: calc(100vh - 68px); }
.tpl .ms-intro { padding: 16px 14px 12px; background: #fff; }
.tpl-main { min-width: 0; overflow-y: auto; }
.tpl-head { position: sticky; top: 0; z-index: 5; display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; padding: 20px 26px 16px; background: rgba(243,245,251,.92); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.tpl-head h1 { font-size: clamp(22px, 2vw, 27px); margin: 0 0 8px; }
.tpl-head .eyebrow { margin-bottom: 4px; }
.tpl-head .acts { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.tpl-cols { display: grid; grid-template-columns: minmax(0, 400px) minmax(0, 1fr); gap: 22px; padding: 22px 26px 40px; align-items: start; }
.tcard { background: #fff; border: 1px solid var(--line); border-radius: 20px; padding: 18px 18px 6px; margin-bottom: 14px; }
.tcard h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8A8FB0; margin: 0 0 12px; }
.tcard--meta { padding-bottom: 14px; background: var(--bg-soft); }
.tcard--meta dl { margin: 0; display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 10px 14px; font-size: 13.5px; }
.tcard--meta dt { font-weight: 800; color: #8A8FB0; }
.tcard--meta dd { margin: 0; color: var(--text); }
.tparas { display: grid; gap: 10px; margin-bottom: 12px; }
.tpara { display: grid; grid-template-columns: 26px minmax(0, 1fr); gap: 10px; align-items: start; }
.tpara .n { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); font-weight: 900; font-size: 12.5px; margin-top: 8px; }
.tpara textarea, .tcard input[type="text"] { width: 100%; border: 1.5px solid var(--line-strong); border-radius: 12px; padding: 11px 13px; font: 600 15px/1.55 var(--font); color: var(--text); background: #fff; resize: vertical; transition: border-color .2s, box-shadow .2s; }
.tpara textarea:focus, .tcard input[type="text"]:focus { outline: 0; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); }
.tpara textarea[readonly], .tcard input[readonly] { background: #F7F8FC; color: var(--text-light); border-style: dashed; }
.vars { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin: 0 0 14px 36px; font-size: 12.5px; font-weight: 800; color: #8A8FB0; }
.vars button { display: inline-flex; gap: 5px; align-items: center; border: 1px dashed var(--line-strong); background: var(--bg-soft); border-radius: 999px; padding: 4px 10px; font: 800 12.5px var(--font); color: var(--blue); cursor: pointer; }
.vars button:hover { border-color: var(--teal); background: var(--teal-tint); color: #0E6F6A; }
.tlock { display: flex; gap: 14px; align-items: flex-start; padding: 16px 18px; margin-bottom: 14px; border-radius: 18px; background: linear-gradient(135deg, #FFF8EC, #FDF2E2); border: 1px solid #F4DDB8; }
.tlock .ic { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: #fff; color: var(--warn); flex: none; box-shadow: 0 6px 14px -10px rgba(184,116,26,.8); }
.tlock b { color: #7A4C0E; display: block; }
.tlock p { margin: 4px 0 10px; font-size: 13.5px; color: #8A5A17; }
.tpl-prev { position: sticky; top: 108px; border-radius: 22px; padding: 14px 16px 26px; max-height: calc(100vh - 68px - 130px); }
.tpl-prevbar { align-self: stretch; display: flex; justify-content: space-between; align-items: center; margin-bottom: 12px; }
.tpl-prev .mx-desk { width: 100%; }
.tpl-prev .ph-frame { height: 720px; }
@media (max-width: 1280px) { .tpl { grid-template-columns: 260px minmax(0, 1fr); } .tpl-cols { grid-template-columns: minmax(0, 1fr); } .tpl-prev { position: static; max-height: none; } }
@media (max-width: 960px) { .tpl { display: block; height: auto; } .tpl .ms-list { border-right: 0; border-bottom: 1px solid var(--line); } .tpl .ms-list .scroll { max-height: 40vh; } .tpl-head { position: static; padding: 18px 16px 14px; } .tpl-cols { padding: 16px 12px 40px; } }

/* =========================================================
   STRÁNKY Z ODKAZŮ V E-MAILECH
   ========================================================= */
body.tk-body, body.sys-body { position: relative; min-height: 100vh; display: flex; flex-direction: column; background: linear-gradient(180deg, #F7FBFF 0%, #F6F6FF 60%, #F3F5FB 100%); font-size: 16px; line-height: 1.6; overflow-x: hidden; }
.tk-bg { position: fixed; inset: 0; z-index: 0; pointer-events: none; background-image: var(--dots); background-size: 22px 22px; -webkit-mask-image: linear-gradient(180deg, #000 0%, transparent 70%); mask-image: linear-gradient(180deg, #000 0%, transparent 70%); }
.tk-bg i { position: absolute; border-radius: 50%; filter: blur(30px); }
.tk-bg i:nth-child(1) { width: 520px; height: 520px; left: -200px; top: -180px; background: radial-gradient(circle, rgba(26,182,174,.22), transparent 65%); }
.tk-bg i:nth-child(2) { width: 620px; height: 620px; right: -240px; top: 120px; background: radial-gradient(circle, rgba(172,65,152,.16), transparent 65%); }
.tk-head, .tk-main, .tk-foot, .tk-demo, .sys, .sys-foot { position: relative; z-index: 1; }
.tk-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: min(100% - 32px, 1040px); margin: 0 auto; padding: 22px 0 18px; }
.tk-head .brand, .sys .brand { display: flex; align-items: center; gap: 10px; text-decoration: none; }
.tk-head .brand .sym, .sys .brand .sym { height: 34px; width: auto; }
.tk-head .brand .txt, .sys .brand .txt { height: 17px; width: auto; }
.tk-secure { display: inline-flex; align-items: center; gap: 7px; padding: 7px 13px; border-radius: 999px; background: rgba(255,255,255,.8); border: 1px solid var(--line); font-size: 13px; font-weight: 800; color: var(--text-light); box-shadow: 0 6px 16px -12px rgba(42,52,120,.5); }
.tk-secure .ai { color: var(--teal-dark); }
.tk-main { flex: 1; width: min(100% - 32px, 1040px); margin: 0 auto; padding: 6px 0 48px; display: flex; flex-direction: column; justify-content: center; }
.tk-main > .tk-card:not(.tk-grid .tk-card) { flex: none; }
.tk-grid { display: grid; grid-template-columns: minmax(0, 1fr) 320px; gap: 24px; align-items: start; }
.tk-card { background: #fff; border: 1px solid var(--line); border-radius: 30px; box-shadow: var(--shadow-lg); overflow: hidden; max-width: 720px; margin: 0 auto; width: 100%; }
.tk-grid .tk-card { max-width: none; }
.tk-card--wide { max-width: 880px; }
.tk-hero { display: grid; grid-template-columns: auto minmax(0, 1fr) auto; gap: 18px 20px; align-items: start; padding: clamp(26px, 4vw, 38px) clamp(22px, 4vw, 40px) clamp(24px, 3.5vw, 34px); }
.tk-hero .b-tile { margin-top: 4px; }
.tk-hero-t .eyebrow { margin-bottom: 8px; }
.tk-hero h1 { font-size: clamp(25px, 3vw, 34px); line-height: 1.15; margin: 0; }
.tk-hero p { margin: 10px 0 0; font-size: 17px; color: rgba(255,255,255,.88); }
.b-band--ok { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.18), transparent 55%), radial-gradient(70% 90% at 0% 100%, rgba(20,24,80,.22), transparent 60%), linear-gradient(120deg, #1AB6AE 0%, #1A8EBB 45%, #38459C 100%); }
.b-band--muted { background: radial-gradient(90% 120% at 100% 0%, rgba(255,255,255,.12), transparent 55%), radial-gradient(70% 90% at 0% 100%, rgba(10,12,50,.3), transparent 60%), linear-gradient(120deg, #56609A 0%, #3E4778 55%, #2A3478 100%); }
.tk-steps { grid-column: 1 / -1; list-style: none; margin: 6px 0 0; padding: 0; display: flex; gap: 8px; flex-wrap: wrap; }
.tk-steps li { display: inline-flex; align-items: center; gap: 8px; padding: 6px 14px 6px 6px; border-radius: 999px; background: rgba(255,255,255,.1); border: 1px solid rgba(255,255,255,.18); font-size: 13.5px; font-weight: 800; color: rgba(255,255,255,.7); }
.tk-steps li i { width: 24px; height: 24px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; background: rgba(255,255,255,.16); }
.tk-steps li.cur { background: #fff; color: var(--blue-deep); border-color: #fff; }
.tk-steps li.cur i { background: var(--gradient-contact); color: #fff; }
.tk-steps li.done { color: #fff; }
.tk-steps li.done i { background: var(--teal); color: #fff; }
.tk-amount { text-align: right; align-self: center; padding: 14px 18px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); }
.tk-amount span { display: block; font-size: 12px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #9EEBE5; }
.tk-amount b { display: block; font-size: clamp(28px, 3.2vw, 38px); line-height: 1.1; color: #fff; font-weight: 900; margin: 2px 0; white-space: nowrap; }
.tk-amount small { font-size: 13.5px; font-weight: 700; color: rgba(255,255,255,.8); }
.tk-in { padding: clamp(22px, 3.5vw, 34px) clamp(20px, 4vw, 40px) clamp(24px, 4vw, 38px); }
.tk-label { display: flex; align-items: baseline; gap: 10px; flex-wrap: wrap; font-size: 12.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--purple); margin-bottom: 12px; }
.tk-label span { letter-spacing: 0; text-transform: none; font-weight: 700; color: #8A8FB0; font-size: 13px; }
.tk-slots { display: grid; gap: 10px; margin-bottom: 18px; }
.slot { display: flex; align-items: center; gap: 16px; width: 100%; padding: 14px 18px 14px 14px; border-radius: 20px; border: 1.5px solid var(--line-strong); background: #fff; cursor: pointer; font-family: var(--font); text-align: left; transition: border-color .15s, box-shadow .2s, transform .15s; }
.slot:not([disabled]):hover { border-color: var(--teal); transform: translateY(-1px); box-shadow: var(--shadow-md); }
.slot[aria-checked="true"] { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gradient-contact) border-box; border: 2px solid transparent; box-shadow: 0 0 0 5px rgba(56,69,156,.08), var(--shadow-md); }
.slot[disabled] { cursor: not-allowed; opacity: .5; background: #FAFBFE; }
.slot[disabled] .cal-tile span { background: #A6AAC4; }
.slot .w { flex: 1; min-width: 0; }
.slot .w b { display: block; font-size: 18px; color: var(--blue-deep); line-height: 1.3; }
.slot .w span { font-size: 14px; color: var(--text-light); font-weight: 600; }
.slot .rb { width: 26px; height: 26px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s, opacity .2s; display: grid; place-items: center; }
.slot[aria-checked="true"] .rb { border-color: transparent; background: var(--gradient-contact); }
.slot[aria-checked="true"] .rb::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.tk-cta { width: 100%; min-height: 58px; font-size: 17px; gap: 10px; }
.tk-cta .ai { transition: transform .2s var(--ease); }
.tk-cta:hover .ai { transform: translateX(3px); }
.tk-fine { display: flex; align-items: flex-start; gap: 8px; margin: 12px 0 0; font-size: 13.5px; color: var(--text-light); }
.tk-fine .ai { color: var(--teal-dark); margin-top: 2px; }
.tk-more { margin-top: 22px; border-top: 1px solid var(--line); padding-top: 6px; }
.tk-more summary { list-style: none; cursor: pointer; display: flex; align-items: center; justify-content: space-between; padding: 12px 2px; font-weight: 800; color: var(--blue-deep); }
.tk-more summary::-webkit-details-marker { display: none; }
.tk-more[open] summary .ai { transform: rotate(180deg); }
.tk-alt { display: flex; gap: 14px; align-items: center; padding: 14px 16px; border: 1px solid var(--line); border-radius: 18px; margin-top: 10px; background: #fff; }
.tk-alt > div { flex: 1; min-width: 0; }
.tk-alt b { color: var(--blue-deep); display: block; }
.tk-alt p { margin: 2px 0 0; font-size: 14px; }
.tk-alt--soft { background: linear-gradient(135deg, var(--teal-tint), #F3FBFB); border-color: #CDEDEA; align-items: flex-start; margin-top: 18px; }
.tk-alt--soft a { color: var(--blue-deep); font-weight: 800; }
.tk-side { display: grid; gap: 16px; position: sticky; top: 20px; }
.tk-msg, .tk-facts { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; box-shadow: var(--shadow-md); }
.tk-msg .who { display: flex; gap: 12px; align-items: center; margin-bottom: 14px; }
.tk-msg .who b { display: block; color: var(--blue-deep); font-size: 16px; line-height: 1.2; }
.tk-msg .who span { font-size: 13.5px; }
.bubble { position: relative; background: var(--purple-tint); border-radius: 4px 20px 20px 20px; padding: 14px 16px; color: var(--text); font-size: 16px; }
.bubble span { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: var(--purple-dark); margin-bottom: 4px; }
.tk-facts h2 { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: #8A8FB0; margin-bottom: 8px; }
.tk-facts dl { margin: 0; display: grid; }
.tk-facts dl div { display: flex; justify-content: space-between; gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); font-size: 14.5px; }
.tk-facts dl div:last-child { border-bottom: 0; }
.tk-facts dt { display: inline-flex; align-items: center; gap: 8px; color: var(--text-light); font-weight: 700; }
.tk-facts dt .ai { color: var(--teal-dark); }
.tk-facts dd { margin: 0; font-weight: 800; color: var(--blue-deep); text-align: right; }
.tk-done { text-align: center; }
.tk-done h2 { font-size: clamp(24px, 2.6vw, 30px); margin-bottom: 8px; }
.tk-done .lead { font-size: 17.5px; max-width: 520px; margin: 0 auto 18px; }
.tk-summary { display: flex; align-items: center; gap: 16px; text-align: left; padding: 16px 18px; border-radius: 20px; background: var(--bg-soft); border: 1px solid var(--line); margin: 0 0 20px; flex-wrap: wrap; }
.tk-summary > div { flex: 1; min-width: 180px; }
.tk-summary b { display: block; color: var(--blue-deep); font-size: 17px; }
.tk-summary span { font-size: 14px; }
.tk-next { list-style: none; margin: 0 auto 22px; padding: 0; display: grid; gap: 0; max-width: 460px; text-align: left; }
.tk-next li { position: relative; display: flex; gap: 14px; align-items: center; padding: 8px 0; color: var(--text-light); }
.tk-next li + li::before { content: ""; position: absolute; left: 15px; top: -10px; height: 20px; width: 2px; background: var(--line-strong); }
.tk-next i { width: 32px; height: 32px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-weight: 900; font-size: 13.5px; background: #fff; border: 2px solid var(--line-strong); color: #8A8FB0; flex: none; }
.tk-next li.done i { background: var(--teal); border-color: var(--teal); color: #fff; }
.tk-next b { color: var(--blue-deep); font-size: 15px; }
/* platba */
.paybox { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 28px; align-items: start; }
.qrcard { text-align: center; padding: 20px 18px 18px; border-radius: 24px; background: linear-gradient(180deg, var(--bg-soft), #fff); border: 1px solid var(--line); }
.qrframe { position: relative; width: 190px; height: 190px; margin: 0 auto 14px; padding: 14px; border-radius: 22px; background: #fff; box-shadow: var(--shadow-md); }
.qrframe .qr-code { width: 100%; height: 100%; display: block; }
.qrframe .corner { position: absolute; width: 22px; height: 22px; border: 3px solid var(--teal); }
.qrframe .c1 { left: -4px; top: -4px; border-right: 0; border-bottom: 0; border-radius: 10px 0 0 0; } .qrframe .c2 { right: -4px; top: -4px; border-left: 0; border-bottom: 0; border-radius: 0 10px 0 0; }
.qrframe .c3 { left: -4px; bottom: -4px; border-right: 0; border-top: 0; border-radius: 0 0 0 10px; } .qrframe .c4 { right: -4px; bottom: -4px; border-left: 0; border-top: 0; border-radius: 0 0 10px 0; }
.qrcard b { color: var(--blue-deep); display: block; }
.qrcard p { margin: 2px 0 0; font-size: 13.5px; }
.paydata dl { margin: 0; border: 1px solid var(--line); border-radius: 20px; overflow: hidden; }
.payrow { display: grid; grid-template-columns: 150px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px 12px 18px; border-bottom: 1px solid var(--line); }
.payrow:last-child { border-bottom: 0; }
.payrow dt { font-size: 13px; font-weight: 800; color: #8A8FB0; }
.payrow dd { margin: 0; font-weight: 900; color: var(--blue-deep); font-size: 16.5px; overflow-wrap: anywhere; }
.payrow .cp { display: inline-flex; align-items: center; gap: 6px; border: 1px solid var(--line-strong); background: #fff; border-radius: 999px; padding: 6px 12px; font: 800 12.5px var(--font); color: var(--blue-deep); cursor: pointer; transition: border-color .2s, background .2s; }
.payrow .cp:hover { border-color: var(--teal); background: var(--teal-tint); }
.paytrack { list-style: none; margin: 26px 0 18px; padding: 0; display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); }
.paytrack li { position: relative; padding-top: 36px; text-align: center; }
.paytrack li::before { content: ""; position: absolute; top: 13px; left: -50%; right: 50%; height: 3px; background: var(--line-strong); }
.paytrack li:first-child::before { display: none; }
.paytrack li.done::before, .paytrack li.cur::before { background: var(--teal); }
.paytrack i { position: absolute; top: 0; left: 50%; transform: translateX(-50%); width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; background: #fff; border: 2.5px solid var(--line-strong); color: #fff; z-index: 1; }
.paytrack li.done i { background: var(--teal); border-color: var(--teal); }
.paytrack li.cur i { border-color: var(--purple); box-shadow: 0 0 0 6px var(--purple-tint); }
.paytrack li.cur i::after { content: ""; width: 10px; height: 10px; border-radius: 50%; background: var(--purple); }
.paytrack b { display: block; font-size: 14.5px; color: var(--blue-deep); }
.paytrack span { font-size: 12.5px; color: #8A8FB0; font-weight: 700; }
.tk-row { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-soft); }
.tk-row > div { flex: 1; min-width: 0; }
.tk-row b { display: block; color: var(--blue-deep); }
.tk-row span { font-size: 13.5px; }
.tk-receipt { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 10px; margin: 6px 0 22px; }
.tk-receipt div { background: var(--bg-soft); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; }
.tk-receipt span { display: block; font-size: 12px; font-weight: 800; color: #8A8FB0; text-transform: uppercase; letter-spacing: .08em; }
.tk-receipt b { font-size: 18px; color: var(--blue-deep); }
/* dřívější zahájení */
.period { margin: 6px 0 22px; padding: 18px 18px 10px; border-radius: 20px; background: #fff; border: 1px solid var(--line); }
.period .bar { position: relative; height: 10px; border-radius: 10px; background: #EEF0F6; }
.period .bar i { position: absolute; inset: 0; border-radius: 10px; background: linear-gradient(90deg, var(--teal), var(--blue) 50%, var(--purple)); opacity: .9; }
.period .bar em { position: absolute; top: 50%; width: 22px; height: 22px; border-radius: 50%; transform: translate(-50%, -50%); background: #fff; border: 4px solid var(--purple); box-shadow: 0 0 0 6px var(--purple-tint); }
.period .lbl { position: relative; display: flex; justify-content: space-between; margin-top: 12px; font-size: 12.5px; color: #8A8FB0; font-weight: 700; }
.period .lbl span { display: grid; }
.period .lbl b { color: var(--blue-deep); font-size: 14px; }
.period .lbl .mid { position: absolute; left: 50%; transform: translateX(-50%); text-align: center; }
.period .lbl .mid b { color: var(--purple); }
.period .lbl .end { text-align: right; }
.tk-copy p { font-size: 16.5px; color: var(--text); }
/* neplatný odkaz */
.tk-ways { display: grid; gap: 10px; margin-top: 22px; }
.tk-way { display: flex; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; border-radius: 20px; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s, border-color .2s; }
.tk-way:hover { transform: translateY(-2px); box-shadow: var(--shadow-md); border-color: var(--line-strong); }
.tk-way b { color: var(--blue-deep); font-size: 16px; }
.tk-way > .ai { color: var(--purple); margin-left: auto; transition: transform .2s var(--ease); }
.tk-way:hover > .ai { transform: translateX(3px); }
.tk-way span:not(.b-ico) { display: block; font-size: 13.5px; color: var(--text-light); }
.tk-foot { width: min(100% - 32px, 1040px); margin: 0 auto; padding: 0 0 28px; text-align: center; }
.tk-help { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; padding: 14px 18px; border-radius: 24px; background: rgba(255,255,255,.75); border: 1px solid var(--line); backdrop-filter: blur(8px); max-width: 720px; margin: 0 auto 14px; text-align: left; }
.tk-help > div { display: grid; line-height: 1.3; margin-right: auto; }
.tk-help .b-ico { width: 46px; height: 46px; }
.tk-help b { color: var(--blue-deep); }
.tk-help span { font-size: 13.5px; }
.tk-chip { display: inline-flex; align-items: center; gap: 7px; padding: 8px 13px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-weight: 800; font-size: 13.5px; color: var(--blue-deep); text-decoration: none; }
.tk-chip:hover { border-color: var(--teal); }
.tk-chip .ai { color: var(--teal-dark); }
.tk-foot p { font-size: 12.5px; color: #8A8FB0; margin: 0; }
.tk-foot p a { color: inherit; }
/* Stránky z odkazů v MR3: výběr času jako přepínač ve formuláři (label.slot + radio, funguje bez JS) – stejné stavy jako .slot[aria-checked] / [disabled]. */
.slot { position: relative; }
.slot input[type="radio"] { position: absolute; opacity: 0; width: 1px; height: 1px; margin: 0; pointer-events: none; }
.slot:has(input:checked) { border-color: transparent; background: linear-gradient(#fff, #fff) padding-box, var(--gradient-contact) border-box; border: 2px solid transparent; box-shadow: 0 0 0 5px rgba(56,69,156,.08), var(--shadow-md); }
.slot:has(input:checked) .rb { border-color: transparent; background: var(--gradient-contact); }
.slot:has(input:checked) .rb::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.slot:has(input:focus-visible) { outline: 3px solid var(--teal); outline-offset: 3px; }
.slot.is-disabled { cursor: not-allowed; opacity: .5; background: #FAFBFE; }
.slot.is-disabled:hover { border-color: var(--line-strong); transform: none; box-shadow: none; }
.slot.is-disabled .cal-tile span { background: #A6AAC4; }
form.tk-alt { margin: 10px 0 0; }
.tk-alt .tk-check { display: flex; gap: 8px; align-items: flex-start; margin-top: 8px; font-size: 14px; color: var(--text); }
.tk-alt .tk-check input { margin-top: 3px; accent-color: var(--purple); }
.tk-statement { margin: 0 0 16px; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); color: var(--text); font-size: 15.5px; }
.tk-sign { margin: 18px 0 0; font-weight: 800; color: var(--blue-deep); }
.tk-in .tk-facts { box-shadow: none; margin-top: 18px; }
.qrframe svg { width: 100%; height: 100%; display: block; }
.paybox--noqr { grid-template-columns: 1fr; }
@media (max-width: 420px) { .tk-secure { white-space: nowrap; padding: 6px 10px; } }
.tk-in > .acts, .tk-done .acts { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 22px; }
.tk-done .acts { justify-content: center; }
@media (max-width: 960px) { .tk-grid { grid-template-columns: 1fr; } .tk-grid .tk-card { max-width: 720px; } .tk-side { max-width: 720px; margin: 0 auto; width: 100%; grid-template-columns: 1fr 1fr; } }
@media (max-width: 760px) {
  .tk-hero { grid-template-columns: auto minmax(0, 1fr); }
  .tk-amount { grid-column: 1 / -1; text-align: left; }
  .paybox { grid-template-columns: 1fr; }
  .payrow { grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; }
  .payrow dt { grid-column: 1; } .payrow dd { grid-column: 1; grid-row: 2; } .payrow .cp { grid-column: 2; grid-row: 1 / span 2; }
  .tk-side { grid-template-columns: 1fr; }
  .tk-receipt { grid-template-columns: 1fr; }
  .tk-alt { flex-wrap: wrap; } .tk-alt .btn { width: 100%; }
  .tk-help > div { margin-right: 0; flex: 1; }
}
@media (max-width: 480px) {
  .tk-head .brand .txt { display: none; }
  .tk-hero { grid-template-columns: 1fr; gap: 14px; }
  .tk-hero .b-tile { width: 46px; height: 46px; }
  .slot { gap: 12px; padding: 12px; } .slot .w b { font-size: 16px; }
  .paytrack b { font-size: 13px; }
  .period .lbl { font-size: 11.5px; }
}

/* =========================================================
   SYSTÉMOVÉ STRÁNKY (404, 500, 503)
   ========================================================= */
.e404 { background: linear-gradient(180deg, var(--bg-soft), #fff); padding-block: clamp(48px, 7vw, 96px) clamp(40px, 6vw, 80px); overflow: hidden; }
.err-grid { position: relative; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, .95fr); gap: 40px; align-items: center; }
.err-txt h1 { font-size: clamp(38px, 4.6vw, 62px); margin-bottom: 18px; }
.err-txt .lead { max-width: 520px; margin-bottom: 28px; }
.err-txt .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.err-next { padding-top: clamp(40px, 5vw, 64px); }
.err-next h2 { margin-bottom: 26px; }
.err-cards { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 16px; }
.err-card { display: flex; flex-direction: column; gap: 8px; padding: 22px; border-radius: var(--r-lg); background: #fff; border: 1px solid var(--line); text-decoration: none; color: var(--text-light); font-size: 15px; transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.err-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); border-color: var(--line-strong); }
.err-card .b-ico { margin-bottom: 8px; }
.err-card b { color: var(--blue-deep); font-size: 19px; }
.err-card .link { margin-top: auto; padding-top: 8px; font-style: normal; }

body.sys-body { text-align: center; }
.sys { flex: 1; width: min(100% - 32px, 640px); margin: 0 auto; padding: 40px 0 30px; display: flex; flex-direction: column; align-items: center; }
.sys .brand { margin-bottom: clamp(30px, 6vh, 56px); }
.sys-orb { position: relative; width: 150px; height: 150px; display: grid; place-items: center; margin-bottom: 26px; }
.sys-orb .core { position: relative; z-index: 1; width: 96px; height: 96px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-contact); color: #fff; box-shadow: 0 24px 40px -18px rgba(56,69,156,.8); }
.sys-orb .core .ai { width: 40px; height: 40px; }
.sys-chip { display: inline-flex; padding: 6px 14px; border-radius: 999px; background: #fff; border: 1px solid var(--line); font-size: 12.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: var(--blue); margin-bottom: 14px; }
.sys h1 { font-size: clamp(32px, 4.4vw, 48px); margin-bottom: 14px; }
.sys .lead { max-width: 520px; margin: 0 auto 24px; }
.sys .cta-row { display: flex; gap: 12px; justify-content: center; flex-wrap: wrap; margin-bottom: 34px; }
.sys-progress { width: min(320px, 80%); height: 6px; border-radius: 6px; background: #E4E7F4; overflow: hidden; margin: -6px auto 26px; }
.sys-progress i { display: block; width: 40%; height: 100%; border-radius: 6px; background: var(--gradient-hero); animation: slide 1.8s ease-in-out infinite; }
@keyframes slide { 0% { transform: translateX(-100%); } 100% { transform: translateX(260%); } }
.sys-contact { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; width: 100%; max-width: 520px; }
.sys-contact a { display: flex; align-items: center; gap: 12px; padding: 14px 16px; border-radius: 20px; background: #fff; border: 1px solid var(--line); text-decoration: none; text-align: left; box-shadow: var(--shadow-md); }
.sys-contact a span:last-child { display: grid; min-width: 0; line-height: 1.3; }
.sys-contact small { font-size: 12px; font-weight: 800; color: #8A8FB0; text-transform: uppercase; letter-spacing: .08em; }
.sys-contact b { color: var(--blue-deep); font-size: 15px; overflow-wrap: anywhere; }
.sys-foot { padding: 18px; font-size: 12.5px; color: #8A8FB0; }
@media (max-width: 520px) { .sys-contact { grid-template-columns: 1fr; } }

/* =========================================================
   DOKUMENTY A4 (tabulky a jednoduché bloky kvůli Dompdf)
   ========================================================= */
body.doc-body { background: #D9DDEA; }
.doc-tools { position: sticky; top: 0; z-index: 10; display: flex; gap: 12px; align-items: center; justify-content: space-between; padding: 12px 22px; background: rgba(255,255,255,.9); backdrop-filter: blur(10px); -webkit-backdrop-filter: blur(10px); border-bottom: 1px solid var(--line); }
.doc-name { display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-deep); font-size: 14.5px; }
.sheets { padding: 36px 16px 72px; display: grid; gap: 30px; justify-items: center; grid-template-columns: minmax(0, 1fr); }
.sheet { position: relative; width: 210mm; max-width: 100%; min-height: 297mm; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.06), 0 40px 70px -36px rgba(35,42,99,.55); padding: 15mm 17mm 14mm; font-family: var(--font); color: #2A2D4A; font-size: 10pt; line-height: 1.55; display: flex; flex-direction: column; }
.sheet::before { content: ""; position: absolute; left: 0; top: 0; right: 0; height: 2.2mm; background: linear-gradient(90deg, #1AB6AE, #38459C 50%, #AC4198); }
.sheet table { border-collapse: collapse; }
.sheet .dh { width: 100%; }
.sheet .dh td { vertical-align: middle; padding: 0; }
.sheet .dh .brand2 img.sym { height: 11mm; width: auto; display: inline-block; vertical-align: middle; }
.sheet .dh .brand2 img.txt { height: 4.6mm; width: auto; display: inline-block; vertical-align: middle; margin-left: 2mm; }
.sheet .dh .kind { text-align: right; }
.sheet .dh .kind span { display: block; font-size: 7.5pt; font-weight: 800; letter-spacing: .14em; text-transform: uppercase; color: #8A8FB0; }
.sheet .dh .kind b { display: inline-block; margin-top: 1mm; padding: 1mm 3mm; border-radius: 2mm; background: #EAF2FB; color: #38459C; font-size: 10.5pt; }
.sheet .gl { height: .4mm; background: #E4E7F4; margin: 6mm 0 8mm; }
.sheet .lbl { display: block; font-size: 7.5pt; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #1C75BC; margin-bottom: 1.5mm; }
.sheet h1 { font-size: 23pt; line-height: 1.12; color: #38459C; margin: 0 0 1.5mm; letter-spacing: -.01em; }
.sheet h2 { display: flex; align-items: center; gap: 3mm; font-size: 12pt; color: #38459C; margin: 8mm 0 3mm; }
.sheet h2 span { width: 6.5mm; height: 6.5mm; border-radius: 50%; display: inline-grid; place-items: center; background: linear-gradient(135deg, #1A8EBB, #38459C 50%, #753E93); color: #fff; font-size: 8.5pt; flex: none; }
.sheet p { margin: 0 0 2.5mm; }
.sheet .muted { color: #6B7090; }
.sheet .small { font-size: 8.5pt; }
.titlerow { width: 100%; margin-bottom: 7mm; }
.titlerow td { vertical-align: middle; padding: 0; }
.titlerow .amount { width: 62mm; text-align: right; padding: 4.5mm 5.5mm; border-radius: 4mm; background: #38459C; background-image: linear-gradient(120deg, #1A8EBB 0%, #38459C 48%, #753E93 100%); color: #fff; }
.titlerow .amount span { display: block; font-size: 7.5pt; font-weight: 900; letter-spacing: .14em; text-transform: uppercase; color: #9EEBE5; }
.titlerow .amount b { display: block; font-size: 21pt; line-height: 1.15; }
.titlerow .amount small { font-size: 8.5pt; color: rgba(255,255,255,.82); }
.titlerow .amount--ok { background: #1A8EBB; background-image: linear-gradient(120deg, #1AB6AE 0%, #1A8EBB 50%, #38459C 100%); }
.titlerow .seal { width: 34mm; text-align: center; }
.titlerow .seal img { width: 20mm; height: auto; margin: 0 auto 1mm; display: block; }
.titlerow .seal span { font-size: 7pt; font-weight: 900; letter-spacing: .16em; text-transform: uppercase; color: #8A8FB0; }
.chips-doc span { display: inline-block; margin: 1.5mm 1.5mm 0 0; padding: .8mm 2.6mm; border-radius: 99px; background: #F3F5FB; border: .3mm solid #E4E7F4; font-size: 8pt; font-weight: 800; color: #565A7C; }
.kpis { width: 100%; margin-bottom: 6mm; border: .3mm solid #E4E7F4; border-radius: 3mm; border-collapse: separate !important; overflow: hidden; }
.kpis td { padding: 3mm 4mm; background: #F7F8FD; border-right: .3mm solid #E4E7F4; vertical-align: top; }
.kpis td:last-child { border-right: 0; }
.kpis span { display: block; font-size: 7pt; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #8A8FB0; }
.kpis b { font-size: 10.5pt; color: #2A2D4A; }
.parties { width: 100%; margin-bottom: 7mm; border-collapse: separate !important; border-spacing: 0; }
.parties td { vertical-align: top; }
.parties .gap { width: 6mm; }
.parties .party { width: 50%; padding: 4mm 5mm; border: .3mm solid #E4E7F4; border-radius: 3mm; border-collapse: separate; }
.parties .party b { display: block; color: #38459C; font-size: 11pt; margin-bottom: .5mm; }
.parties .party span:not(.lbl) { display: block; }
.items { width: 100%; margin: 0 0 6mm; }
.items th { text-align: left; font-size: 7.5pt; letter-spacing: .12em; text-transform: uppercase; color: #fff; background: #38459C; padding: 2.4mm 3mm; font-weight: 900; }
.items th:first-child { border-radius: 2mm 0 0 2mm; } .items th:last-child { border-radius: 0 2mm 2mm 0; }
.items td { padding: 3.2mm 3mm; border-bottom: .3mm solid #E4E7F4; vertical-align: top; }
.items td small { display: block; font-size: 8.5pt; color: #8A8FB0; margin-top: .5mm; }
.items .n { width: 9mm; color: #8A8FB0; font-weight: 800; }
.items .r { text-align: right; white-space: nowrap; }
.items tfoot td { border-bottom: 0; padding: 1.6mm 3mm; color: #6B7090; }
.items tfoot .sub td:first-child + td { font-size: 9pt; }
.items tfoot .tot td { padding-top: 3mm; color: #38459C; font-weight: 800; font-size: 11pt; border-top: .6mm solid #38459C; }
.items tfoot .tot b { font-size: 15pt; }
.pay { width: 100%; background: #F6F7FD; border: .3mm solid #E4E7F4; border-radius: 4mm; border-collapse: separate !important; }
.pay td { padding: 5mm; vertical-align: middle; }
.pay .qrcell { width: 40mm; text-align: center; }
.pay .qr { width: 32mm; height: 32mm; background: #fff; border-radius: 2.5mm; padding: 2mm; display: block; margin: 0 auto 1.5mm; border: .3mm solid #E4E7F4; }
.pay .qrcell span { font-size: 7.5pt; font-weight: 900; letter-spacing: .12em; text-transform: uppercase; color: #8A8FB0; }
.pay .kv td { padding: .9mm 6mm .9mm 0; }
.pay .kv td:first-child { color: #6B7090; }
.stamprow { width: 100%; }
.stamprow td { vertical-align: middle; }
.stamprow .r { text-align: right; }
.stamp { display: inline-block; text-align: center; padding: 3mm 6mm; border: .8mm solid #138A6B; border-radius: 3mm; color: #138A6B; font-size: 9pt; font-weight: 800; transform: rotate(-6deg); box-shadow: inset 0 0 0 .6mm #fff, inset 0 0 0 1mm rgba(19,138,107,.4); }
.stamp b { display: block; font-size: 15pt; letter-spacing: .14em; text-transform: uppercase; }
.sh-incl { width: 100%; border-collapse: separate !important; border-spacing: 0 2mm; margin: -2mm 0 2mm; }
.sh-incl td { width: 50%; padding: 2.6mm 3.5mm; background: #F7F8FD; border-radius: 2.5mm; font-weight: 700; color: #2A2D4A; }
.sh-incl td + td { border-left: 2mm solid #fff; }
.sh-incl td.empty { background: none; }
.sh-incl .q { display: inline-block; min-width: 13mm; margin-right: 2mm; padding: .6mm 2mm; border-radius: 99px; background: #fff; border: .3mm solid #D3E3F6; color: #38459C; font-size: 8.5pt; font-weight: 900; text-align: center; }
.tl { width: 100%; }
.tl td { padding: 0 0 4mm; vertical-align: top; }
.tl .t { width: 36mm; color: #6B7090; font-size: 9pt; padding-top: .3mm; }
.tl .dot { width: 8mm; position: relative; }
.tl .dot i { display: block; width: 3mm; height: 3mm; border-radius: 50%; background: #1AB6AE; margin: 1mm auto 0; box-shadow: 0 0 0 1mm #E6F7F6; }
.tl tr:not(:last-child) .dot::after { content: ""; position: absolute; left: 50%; top: 5mm; bottom: -1mm; width: .4mm; background: #E4E7F4; }
.tl b { display: block; color: #38459C; }
.sh-toc { padding: 4mm 5mm; border-radius: 3mm; background: #F7F8FD; border: .3mm solid #E4E7F4; margin-bottom: 7mm; }
.sh-toc ol { margin: 0; padding-left: 5mm; columns: 2; column-gap: 8mm; font-size: 8.5pt; color: #565A7C; }
.sh-toc li { break-inside: avoid; padding: .3mm 0; }
.sh-toc li::marker { color: #1C75BC; font-weight: 800; }
.legal p { text-align: justify; hyphens: auto; }
.legal h2 { margin-top: 6mm; }
.df { width: 100%; margin-top: auto; border-top: .3mm solid #E4E7F4; font-size: 7.5pt; color: #8A8FB0; }
.df td { padding-top: 3.5mm; vertical-align: top; }
.df b { color: #565A7C; }
.df .c { text-align: center; } .df .r { text-align: right; white-space: nowrap; }
@media print { .doc-tools { display: none; } body.doc-body { background: none; } .sheets { padding: 0; gap: 0; } .sheet { box-shadow: none; width: auto; min-height: 0; padding: 0; page-break-after: always; } .sheet::before { display: none; } @page { size: A4; margin: 14mm 16mm; } }
@media (max-width: 820px) {
  .sheet { min-height: 0; padding: 26px 18px 18px; font-size: 14px; overflow-wrap: anywhere; }
  .doc-tools { padding: 10px 12px; } .doc-name { display: none; }
  .titlerow td, .parties td, .pay td, .kpis td, .sh-incl td, .df td { display: block; width: auto !important; }
  .titlerow .amount { margin-top: 12px; text-align: left; }
  .titlerow .seal { display: none; }
  .kpis td { border-right: 0; border-bottom: 1px solid #E4E7F4; }
  .parties .gap { height: 10px; border: 0; padding: 0; }
  .pay .qrcell { text-align: left; } .pay .qr { margin: 0 0 6px; }
  .sh-incl td + td { border-left: 0; margin-top: 6px; }
  .sh-toc ol { columns: 1; }
  .df .c, .df .r { text-align: left; }
}

/* =========================================================
   PORTÁL: přihlášení, registrace, heslo
   ========================================================= */
body.au-body { background: #fff; }
.au { min-height: 100vh; display: grid; grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr); }
.au-art { position: sticky; top: 0; height: 100vh; display: flex; flex-direction: column; padding: 40px clamp(32px, 4vw, 56px); overflow: hidden; }
.au-art::after { width: 560px; height: 560px; right: -160px; top: -200px; }
.au-brand { display: flex; align-items: center; gap: 10px; }
.au-brand img:first-child { height: 34px; width: auto; }
.au-brand img:last-child { height: 17px; width: auto; }
.au-copy { margin-top: clamp(40px, 9vh, 110px); max-width: 440px; }
.au-copy h2 { font-size: clamp(32px, 3.4vw, 46px); line-height: 1.1; margin: 4px 0 14px; }
.au-copy p { font-size: 18px; color: rgba(255,255,255,.88); margin: 0 0 24px; }
.au-feats { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: minmax(0, 210px); gap: 8px; }
.au-feats li { display: flex; align-items: center; gap: 10px; padding: 10px 14px; border-radius: 14px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.2); font-weight: 800; color: #fff; font-size: 15px; backdrop-filter: blur(6px); }
.au-feats .ai { color: #9EEBE5; }
.au-zd { position: absolute; right: -20px; bottom: 0; height: min(64vh, 620px); width: auto; z-index: 1; filter: drop-shadow(0 30px 40px rgba(10,15,60,.35)); -webkit-mask-image: linear-gradient(180deg, #000 85%, transparent 100%); mask-image: linear-gradient(180deg, #000 85%, transparent 100%); }
.au-badge { position: absolute; left: clamp(32px, 4vw, 56px); bottom: 40px; z-index: 2; display: grid; padding: 12px 16px; border-radius: 16px; background: #fff; color: var(--text-light); font-size: 13.5px; line-height: 1.35; box-shadow: 0 20px 40px -20px rgba(10,15,60,.5); }
.au-badge b { color: var(--blue-deep); font-size: 15px; }
.au-main { display: flex; flex-direction: column; padding: 28px clamp(20px, 5vw, 72px) 22px; background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.au-top { display: flex; align-items: center; justify-content: flex-end; gap: 12px; min-height: 40px; }
.au-mbrand { display: none; align-items: center; gap: 8px; margin-right: auto; text-decoration: none; }
.au-mbrand .sym { height: 30px; width: auto; } .au-mbrand .txt { height: 15px; width: auto; }
.au-toplink { font-weight: 800; color: var(--blue-deep); font-size: 14.5px; }
.au-box { width: min(440px, 100%); margin: auto; padding: 28px 0; }
.au-box h1 { font-size: clamp(30px, 3vw, 38px); margin: 2px 0 8px; }
.au-lead { font-size: 16px; margin: 0 0 22px; }
.au-box .field input { min-height: 50px; }
.au-two { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.lockedin { position: relative; }
.lockedin .ai { position: absolute; left: 14px; top: 50%; transform: translateY(-50%); color: #8A8FB0; }
.lockedin input { padding-left: 40px !important; background: #F4F6FB !important; color: var(--text-light) !important; }
.pwwrap { position: relative; }
.pwwrap input { padding-right: 52px !important; }
.pwshow { position: absolute; right: 6px; top: 50%; transform: translateY(-50%); width: 40px; height: 40px; border-radius: 10px; border: 0; background: none; color: #8A8FB0; cursor: pointer; display: grid; place-items: center; }
.pwshow:hover, .pwshow.on { background: var(--bg-light); color: var(--blue-deep); }
.pwmeter { display: grid; grid-template-columns: repeat(4, 1fr); gap: 5px; margin-top: 8px; }
.pwmeter i { height: 5px; border-radius: 5px; background: #E8EBF4; transition: background .25s; }
.pwmeter i.on.l1 { background: var(--danger); } .pwmeter i.on.l2 { background: var(--warn); } .pwmeter i.on.l3 { background: var(--teal); } .pwmeter i.on.l4 { background: var(--ok); }
.pwrules { list-style: none; margin: 8px 0 0; padding: 0; display: grid; gap: 4px; font-size: 13px; color: #8A8FB0; font-weight: 700; }
.pwrules li { display: flex; gap: 8px; align-items: center; }
.pwrules li::before { content: ""; width: 16px; height: 16px; border-radius: 50%; border: 2px solid #D5D9EA; flex: none; box-sizing: border-box; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s, opacity .2s; }
.pwrules li.ok { color: var(--ok); }
.pwrules li.ok::before { border-color: var(--ok); background: var(--ok) url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='white' stroke-width='3.5' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m5 12 5 5 9-10'/%3E%3C/svg%3E") center/10px no-repeat; }
.au-check, .c-confirm { display: flex; gap: 12px; align-items: flex-start; margin: 4px 0 20px; font-size: 14.5px; color: var(--text); cursor: pointer; }
.au-check input, .c-confirm input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.au-check .box, .c-confirm .box { flex: none; width: 24px; height: 24px; border-radius: 8px; border: 2px solid var(--line-strong); display: grid; place-items: center; background: #fff; transition: background-color .2s, border-color .2s, color .2s, box-shadow .2s, transform .2s, opacity .2s; margin-top: 1px; }
.au-check input:checked + .box, .c-confirm input:checked + .box { background: var(--gradient-contact); border-color: transparent; }
.au-check input:checked + .box::after, .c-confirm input:checked + .box::after { content: ""; width: 10px; height: 6px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.au-check input:focus-visible + .box, .c-confirm input:focus-visible + .box { outline: 3px solid var(--teal); outline-offset: 2px; }
.au-check a { color: var(--blue-deep); font-weight: 700; }
.au-cta { width: 100%; min-height: 54px; gap: 10px; font-size: 16.5px; }
.au-steps { list-style: none; margin: 0 0 26px; padding: 0; display: flex; gap: 6px; align-items: center; flex-wrap: wrap; }
.au-steps li { display: flex; align-items: center; gap: 8px; font-size: 13.5px; font-weight: 800; color: #8A8FB0; }
.au-steps li + li::before { content: ""; width: 26px; height: 2px; background: var(--line-strong); margin-right: 2px; }
.au-steps i { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12.5px; background: #EEF0F6; color: #8A8FB0; }
.au-steps li.cur { color: var(--blue-deep); }
.au-steps li.cur i { background: var(--gradient-contact); color: #fff; box-shadow: 0 6px 14px -8px rgba(56,69,156,.8); }
.au-done { text-align: center; }
.au-ico { width: 56px; height: 56px; border-radius: 18px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); margin-bottom: 18px; }
.au-ico--big { width: 76px; height: 76px; border-radius: 24px; margin: 0 auto 18px; background: var(--gradient-contact); color: #fff; box-shadow: 0 0 0 10px rgba(26,182,174,.12); }
.au-ico--big .ai { width: 32px; height: 32px; }
.au-alt { margin: 16px 0 0; font-size: 14.5px; }
.au-row { display: flex; justify-content: flex-end; margin: -4px 0 18px; font-size: 14px; }
.au-row a { color: var(--blue-deep); font-weight: 800; }
.au-or { display: flex; align-items: center; gap: 12px; margin: 22px 0 14px; font-size: 13.5px; font-weight: 800; color: #8A8FB0; }
.au-or::before, .au-or::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.au-note { margin: 18px 0 0; font-size: 12.5px; color: #8A8FB0; text-align: center; }
.au-legal { display: flex; align-items: center; justify-content: center; gap: 6px; flex-wrap: wrap; margin: 0; font-size: 12.5px; color: #8A8FB0; }
.au-legal .ai { color: var(--teal-dark); }
.au-legal a { color: inherit; }
@media (max-width: 1100px) { .au-zd { height: 50vh; right: -60px; } }
@media (max-width: 900px) {
  .au { grid-template-columns: 1fr; }
  .au-art { display: none; }
  .au-mbrand { display: flex; }
  .au-main { min-height: 100vh; padding-top: 18px; }
}
@media (max-width: 420px) { .au-two { grid-template-columns: 1fr; gap: 0; } .au-mbrand .txt { display: none; } }

/* ---------- Vstupní dotazník (portál) ---------- */
.p-back { margin: 0 0 12px; }
.q-hero { display: flex; justify-content: space-between; align-items: center; gap: 24px; padding: clamp(24px, 3.5vw, 36px) clamp(22px, 3.5vw, 40px); border-radius: 28px; margin-bottom: 22px; box-shadow: 0 30px 60px -40px rgba(56,69,156,.8); }
.q-hero h1 { font-size: clamp(28px, 3vw, 40px); margin: 0 0 8px; }
.q-hero p { margin: 0; max-width: 560px; color: rgba(255,255,255,.88); }
.q-ring { position: relative; width: 112px; height: 112px; flex: none; display: grid; place-items: center; text-align: center; }
.q-ring svg { position: absolute; inset: 0; transform: rotate(-90deg); }
.q-ring circle { fill: none; stroke: rgba(255,255,255,.18); stroke-width: 4; }
.q-ring circle.v { stroke: #9EEBE5; stroke-linecap: round; stroke-dasharray: 119.4; stroke-dashoffset: calc(119.4 - 119.4 * var(--p) / 100); transition: stroke-dashoffset .5s var(--ease); }
.q-ring b { font-size: 24px; color: #fff; line-height: 1; margin-top: 18px; }
.q-ring small { font-size: 12px; font-weight: 800; color: rgba(255,255,255,.75); margin-top: -18px; }
.q-layout { display: grid; grid-template-columns: 300px minmax(0, 1fr); gap: 24px; align-items: start; }
.q-side { position: sticky; top: 92px; display: grid; gap: 14px; }
.q-steps { list-style: none; margin: 0; padding: 10px; display: grid; gap: 2px; background: #fff; border: 1px solid var(--line); border-radius: 22px; }
.q-steps li { display: flex; gap: 12px; align-items: flex-start; padding: 9px 10px; border-radius: 14px; cursor: pointer; font-size: 14px; font-weight: 700; color: var(--text-light); line-height: 1.35; transition: background .15s; }
.q-steps li:hover { background: var(--bg-light); }
.q-steps li i { width: 26px; height: 26px; flex: none; border-radius: 50%; display: grid; place-items: center; font-style: normal; font-size: 12px; font-weight: 900; background: #EEF0F6; color: #8A8FB0; }
.q-steps li.cur { background: var(--blue-tint); color: var(--blue-deep); }
.q-steps li.cur i { background: var(--gradient-contact); color: #fff; }
.q-steps li.done i { background: var(--teal); color: #fff; font-size: 0; }
.q-steps li.done i::after { content: ""; width: 9px; height: 5px; border: 2.5px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
.q-steps li span { padding-top: 3px; }
.q-priv { display: flex; gap: 12px; align-items: center; padding: 14px 16px; border-radius: 20px; background: linear-gradient(135deg, var(--teal-tint), #F3FBFB); border: 1px solid #CDEDEA; }
.q-priv p { margin: 0; font-size: 13.5px; color: #0E5E59; font-weight: 700; }
.q-side .saved { justify-content: center; }
.qcard { background: #fff; border: 1px solid var(--line); border-radius: 28px; padding: clamp(24px, 3.5vw, 40px); box-shadow: var(--shadow-md); min-height: 380px; }
.q-num { display: inline-block; font-size: 13px; font-weight: 800; color: #8A8FB0; letter-spacing: .06em; margin-bottom: 10px; }
.q-num b { font-size: 32px; line-height: 1; font-weight: 900; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; letter-spacing: -.02em; }
.qcard h2 { font-size: clamp(22px, 2.4vw, 30px); line-height: 1.25; margin: 0 0 20px; }
.q-area { position: relative; }
.q-area textarea { width: 100%; min-height: 200px; border: 1.5px solid var(--line-strong); border-radius: 18px; padding: 16px 18px 30px; font: 600 16.5px/1.65 var(--font); color: var(--text); background: var(--bg-soft); resize: vertical; transition: border-color .2s, box-shadow .2s, background .2s; }
.q-area textarea:focus { outline: none; border-color: var(--teal); box-shadow: 0 0 0 4px var(--teal-tint); background: #fff; }
.q-count { position: absolute; right: 16px; bottom: 12px; font-size: 12px; font-weight: 800; color: #A6AAC4; }
.q-help { margin: 10px 0 0; font-size: 13.5px; color: #8A8FB0; }
.q-unk { margin: 10px 0 0; font-size: 13.5px; color: var(--warn); font-weight: 700; }
.q-scale { display: grid; grid-template-columns: repeat(10, minmax(0, 1fr)); gap: 8px; margin: 6px 0 10px; }
.q-scale button { aspect-ratio: 1; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; font: 900 17px var(--font); color: var(--blue-deep); cursor: pointer; transition: background-color .15s, border-color .15s, color .15s, box-shadow .15s, transform .15s, opacity .15s; }
.q-scale button:hover { border-color: var(--teal); transform: translateY(-2px); }
.q-scale button[aria-pressed="true"] { background: var(--gradient-contact); border-color: transparent; color: #fff; box-shadow: 0 10px 20px -10px rgba(56,69,156,.8); }
.q-ends { display: flex; justify-content: space-between; font-size: 13px; font-weight: 800; color: #8A8FB0; }
.q-review { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.q-review li { display: grid; grid-template-columns: 40px minmax(0, 1fr) auto; gap: 12px; align-items: start; padding: 14px; border-radius: 18px; border: 1px solid var(--line); background: var(--bg-soft); }
.q-review .n { font-weight: 900; color: var(--purple); font-size: 15px; padding-top: 2px; }
.q-review b { color: var(--blue-deep); display: block; }
.q-review p { margin: 4px 0 0; font-size: 14.5px; color: var(--text); white-space: pre-wrap; }
.q-review em { color: #8A8FB0; }
.q-sent { text-align: center; padding: 20px 0; }
.qnav { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 16px; flex-wrap: wrap; }
.qnav .acts { display: flex; gap: 8px; }
.saved { font-size: 13px; font-weight: 800; color: var(--ok); display: inline-flex; gap: 6px; align-items: center; }
@media (max-width: 960px) { .q-layout { grid-template-columns: 1fr; } .q-side { position: static; } .q-steps { display: none; } .q-hero { flex-wrap: wrap; } }
@media (max-width: 560px) { .q-ring { width: 88px; height: 88px; } .q-ring b { font-size: 19px; } .q-scale { grid-template-columns: repeat(5, minmax(0, 1fr)); } .qnav .acts { width: 100%; } .qnav .acts .btn { flex: 1; } }

/* ---------- Souhlasy (portál) ---------- */
.c-doc { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; box-shadow: var(--shadow-md); transition: border-color .25s, box-shadow .25s; }
.c-doc + .c-doc { margin-top: 16px; }
.c-doc.is-ok { border-color: #BFE7E3; box-shadow: 0 0 0 4px var(--teal-tint), var(--shadow-md); }
.c-doc header { display: flex; gap: 16px; align-items: flex-start; }
.c-doc header .pill { margin-bottom: 6px; }
.c-doc h2 { font-size: 20px; line-height: 1.3; }
.c-doc header p { margin: 4px 0 0; font-size: 15px; }
.c-read { margin: 16px 0 14px; border: 1px solid var(--line); border-radius: 16px; background: var(--bg-soft); }
.c-read summary { list-style: none; display: flex; align-items: center; gap: 8px; padding: 12px 14px; cursor: pointer; font-weight: 800; color: var(--blue-deep); font-size: 14.5px; }
.c-read summary::-webkit-details-marker { display: none; }
.c-read summary .pill { margin-left: auto; }
.c-text { max-height: 220px; overflow-y: auto; padding: 4px 16px 14px; font-size: 14.5px; border-top: 1px solid var(--line); background: #fff; border-radius: 0 0 16px 16px; }
.c-confirm { margin: 0; padding: 14px 16px; border-radius: 16px; border: 1.5px dashed var(--line-strong); font-weight: 700; color: var(--blue-deep); }
.c-doc.is-ok .c-confirm { border-style: solid; border-color: var(--teal); background: var(--teal-tint); }
.c-sign { background: #fff; border: 1px solid var(--line); border-radius: 26px; padding: 22px; margin-top: 16px; box-shadow: var(--shadow-md); }
.c-aside { display: grid; gap: 16px; position: sticky; top: 92px; }
.c-prog ol { list-style: none; margin: 4px 0 0; padding: 0; display: grid; gap: 10px; font-size: 14px; font-weight: 700; color: var(--text-light); }
.c-prog li { display: flex; gap: 10px; align-items: center; }
.c-prog i { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line-strong); flex: none; display: grid; place-items: center; }
.c-prog li.done { color: var(--blue-deep); }
.c-prog li.done i { background: var(--teal); border-color: var(--teal); }
.c-prog li.done i::after { content: ""; width: 8px; height: 5px; border: 2.2px solid #fff; border-top: 0; border-right: 0; transform: rotate(-45deg) translate(1px, -1px); }
@media (max-width: 960px) { .c-aside { position: static; } }

/* =========================================================
   ADMINISTRACE: zbývající obrazovky
   ========================================================= */
.kpis4 { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 14px; margin: 0 0 18px; }
.kpi { display: flex; gap: 14px; align-items: center; padding: 16px 18px; border-radius: 20px; background: #fff; border: 1px solid var(--line); transition: box-shadow .2s; }
.kpi:hover { box-shadow: var(--shadow-md); }
.kpi > div { display: grid; min-width: 0; line-height: 1.25; }
.kpi b { font-size: 22px; font-weight: 900; color: var(--blue-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.kpi span { font-size: 13.5px; }
.kpi small { font-size: 12px; color: #8A8FB0; font-weight: 700; }
.rec-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 12px; margin-bottom: 14px; flex-wrap: wrap; }
.rec-toolbar .chip em { font-style: normal; margin-left: 4px; font-size: 12px; opacity: .7; }
.tbl .r { text-align: right; }
.tbl .num { font-weight: 900; color: var(--blue-deep); white-space: nowrap; font-variant-numeric: tabular-nums; }
.tbl small.sub { display: block; font-size: 12px; color: #8A8FB0; font-weight: 700; }
.wave { display: inline-flex; align-items: center; gap: 2px; height: 28px; width: 120px; }
.wave i { flex: 1; border-radius: 2px; background: linear-gradient(180deg, #8E4092, #1A8EBB); opacity: .55; }
tr[data-f*="off"] .wave i { background: #C8CCDF; }
.plays { display: flex; align-items: center; gap: 10px; font-size: 13px; font-weight: 800; color: var(--text-light); }
.plays .meter { width: 80px; }
.clientchip { display: inline-flex; gap: 10px; align-items: center; margin-top: 12px; padding: 6px 14px 6px 6px; border-radius: 999px; background: #fff; border: 1px solid var(--line); }
.clientchip .av { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-weight: 900; font-size: 13px; }
.clientchip span { display: grid; line-height: 1.2; }
.clientchip b { color: var(--blue-deep); font-size: 14px; }
.clientchip small { font-size: 12px; color: #8A8FB0; }
.qa-cols { display: grid; grid-template-columns: minmax(0, 1fr) 360px; gap: 22px; align-items: start; }
.qa-count { font-size: 13.5px; color: var(--text-light); white-space: nowrap; padding: 6px 12px; border-radius: 999px; background: var(--bg-light); }
.qa-count b { color: var(--blue-deep); font-size: 15px; }
.qlist { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.qlist li { display: grid; grid-template-columns: 18px 36px minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 12px 14px; border: 1px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; transition: border-color .15s, box-shadow .15s, opacity .2s; }
.qlist li:hover { border-color: var(--line-strong); }
.qlist li.sel { border-color: var(--blue); box-shadow: 0 0 0 3px var(--blue-tint); }
.qlist li .h { color: #B5B9D3; cursor: grab; font-size: 13px; letter-spacing: -2px; }
.qlist li .ty { width: 36px; height: 36px; border-radius: 11px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue-deep); }
.qlist li[data-t="scale"] .ty { background: var(--purple-tint); color: var(--purple-dark); }
.qlist li[data-t="yes_no"] .ty { background: var(--teal-tint); color: #0E6F6A; }
.qlist li .tx { display: grid; min-width: 0; }
.qlist li b { color: var(--blue-deep); font-size: 14.5px; line-height: 1.35; }
.qlist li small { font-size: 12.5px; color: #8A8FB0; font-weight: 700; }
.qlist li.off { background: #FAFBFE; }
.qlist li.off .tx, .qlist li.off .ty { opacity: .45; }
.qa-add { width: 100%; margin-top: 10px; display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 50px; border-radius: 16px; border: 1.5px dashed var(--line-strong); background: var(--bg-soft); font: 800 14.5px var(--font); color: var(--blue-deep); cursor: pointer; }
.qa-add:hover { border-color: var(--teal); background: var(--teal-tint); }
.qa-new { margin-top: 10px; padding: 16px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); }
.qa-types { display: flex; gap: 8px; flex-wrap: wrap; margin: 0 0 14px; }
.qa-types label { cursor: pointer; }
.qa-types input { position: absolute; opacity: 0; width: 1px; height: 1px; }
.qa-types span { display: inline-flex; align-items: center; gap: 6px; padding: 8px 12px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 800; font-size: 13.5px; color: var(--text-light); }
.qa-types input:checked + span { border-color: var(--blue-deep); background: var(--blue-deep); color: #fff; }
.qa-types input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.qa-prev { position: sticky; top: 92px; display: grid; gap: 12px; justify-items: center; }
.qa-prev > .tiny.strong { justify-self: start; }
.phone-mini { width: 300px; border-radius: 40px; padding: 12px; background: #161A33; box-shadow: var(--shadow-lg); }
.phone-mini > * { background: #F7FBFF; }
.pm-bar { display: flex; align-items: center; gap: 8px; padding: 18px 16px 10px; border-radius: 30px 30px 0 0; font-weight: 800; font-size: 13px; color: var(--blue-deep); border-bottom: 1px solid var(--line); background: #fff; }
.pm-bar img { height: 18px; width: auto; }
.pm-prog { height: 4px; background: #E8EBF4; }
.pm-prog i { display: block; height: 100%; background: var(--gradient-hero); transition: width .3s; }
.pm-body { padding: 20px 16px; min-height: 250px; }
.pm-body small { font-size: 11.5px; font-weight: 900; color: var(--purple); letter-spacing: .08em; text-transform: uppercase; }
.pm-body h3 { font-size: 18px; line-height: 1.3; margin: 6px 0 14px; }
.pm-ta { min-height: 110px; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; padding: 10px 12px; font-size: 13px; color: #A6AAC4; }
.pm-scale { display: grid; grid-template-columns: repeat(5, 1fr); gap: 5px; }
.pm-scale span { aspect-ratio: 1; border-radius: 10px; border: 1.5px solid var(--line-strong); background: #fff; display: grid; place-items: center; font-weight: 900; font-size: 13px; color: var(--blue-deep); }
.pm-ends { display: flex; justify-content: space-between; margin-top: 8px; font-size: 11px; font-weight: 800; color: #8A8FB0; }
.pm-yn { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.pm-yn span { padding: 12px; text-align: center; border-radius: 14px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 800; color: var(--blue-deep); }
.pm-nav { display: flex; justify-content: space-between; align-items: center; padding: 12px 16px 18px; border-radius: 0 0 30px 30px; border-top: 1px solid var(--line); background: #fff; font-size: 13px; font-weight: 800; color: var(--blue-deep); }
.pm-nav .b { padding: 8px 14px; border-radius: 999px; background: var(--blue-deep); color: #fff; }
.fx-cols { display: grid; grid-template-columns: minmax(0, 1.4fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.fx-legend { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; font-weight: 800; color: #8A8FB0; }
.fx-legend i { width: 10px; height: 10px; border-radius: 3px; margin-left: 8px; }
.fx-legend i.a, .bchart i.a { background: linear-gradient(180deg, #38459C, #1A8EBB); }
.fx-legend i.b, .bchart i.b { background: linear-gradient(180deg, #AC4198, #8E4092); }
.bchart { display: grid; grid-template-columns: repeat(6, minmax(0, 1fr)); gap: 12px; align-items: end; height: 200px; padding: 10px 4px 0; background-image: linear-gradient(var(--line) 1px, transparent 1px); background-size: 100% 25%; }
.bcol { display: grid; gap: 8px; height: 100%; grid-template-rows: minmax(0, 1fr) auto; text-align: center; }
.bb { display: flex; gap: 5px; align-items: flex-end; justify-content: center; height: 100%; }
.bb i { width: min(22px, 40%); border-radius: 7px 7px 3px 3px; }
.bcol span { font-size: 12.5px; font-weight: 800; color: #8A8FB0; }
.bcol:last-child span { color: var(--blue-deep); }
.due { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 14px; border-radius: 16px; background: var(--warn-tint); border: 1px solid #F4DDB8; margin-bottom: 12px; }
.due .num { font-size: 18px; color: #7A4C0E; }
.docid { display: flex; gap: 12px; align-items: center; }
.docid .b-ico { width: 36px; height: 36px; border-radius: 11px; }
.docid span:last-child { display: grid; line-height: 1.25; }
.docid b { color: var(--blue-deep); font-variant-numeric: tabular-nums; }
.docid small { font-size: 12px; color: #8A8FB0; }
.hbars { display: grid; gap: 12px; }
.hb { display: grid; grid-template-columns: 130px minmax(0, 1fr) 48px; gap: 12px; align-items: center; font-size: 14px; font-weight: 700; color: var(--text); }
.hb > div { height: 12px; border-radius: 12px; background: #EEF0F6; overflow: hidden; }
.hb i { display: block; height: 100%; border-radius: 12px; }
.hb b { text-align: right; color: var(--blue-deep); }
.qz-funnel { display: grid; gap: 10px; }
.qz-funnel div { width: var(--w); min-width: 170px; padding: 12px 16px; border-radius: 16px; background: var(--gradient-contact); color: rgba(255,255,255,.85); display: flex; align-items: baseline; gap: 10px; font-size: 13.5px; }
.qz-funnel div:nth-child(2) { opacity: .85; } .qz-funnel div:nth-child(3) { opacity: .72; }
.qz-funnel b { font-size: 22px; color: #fff; }
.qz { display: inline-flex; align-items: center; gap: 8px; font-weight: 700; }
.qz::before { content: ""; width: 10px; height: 10px; border-radius: 3px; background: var(--purple); }
.qz--v::before { background: var(--teal); }
.qz-cards { display: grid; grid-template-columns: 1fr 1fr; gap: 18px; }
.qz-card { display: block; border-radius: 24px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-decoration: none; transition: transform .2s var(--ease), box-shadow .2s; }
.qz-card:hover { transform: translateY(-3px); box-shadow: var(--shadow); }
.qz-card .b-band { padding: 24px; display: grid; gap: 6px; justify-items: start; }
.qz-card .b-band .b-tile { margin-bottom: 8px; }
.qz-card .b-band .eyebrow { margin: 0; }
.qz-card .b-band h2 { font-size: 24px; }
.qz-card .in { padding: 18px 24px 22px; }
.qz-card .in p { margin: 0 0 10px; }
@media (max-width: 1180px) { .kpis4 { grid-template-columns: 1fr 1fr; } .qa-cols, .fx-cols { grid-template-columns: 1fr; } .qa-prev { position: static; } }
@media (max-width: 640px) { .kpis4 { grid-template-columns: 1fr; } .qz-cards { grid-template-columns: 1fr; } .hb { grid-template-columns: 96px minmax(0, 1fr) 42px; font-size: 13px; } .phone-mini { width: 100%; max-width: 300px; } }

/* ---------- Přihlášení do administrace ---------- */
body.adl-body { min-height: 100vh; display: grid; place-items: center; padding: 24px 16px; }
body.adl-body::after { width: 640px; height: 640px; right: -200px; top: -240px; }
.adl { position: relative; z-index: 1; width: min(440px, 100%); }
.adl-card { background: #fff; border-radius: 30px; padding: clamp(26px, 4vw, 40px); box-shadow: 0 40px 80px -30px rgba(10,15,60,.6); color: var(--text-light); }
.adl-brand { display: flex; align-items: center; gap: 12px; margin-bottom: 26px; }
.adl-brand img { height: 36px; width: auto; }
.adl-brand span { display: grid; line-height: 1.15; }
.adl-brand b { color: var(--blue-deep); font-size: 17px; font-weight: 900; }
.adl-brand small { font-size: 12.5px; font-weight: 800; color: #8A8FB0; letter-spacing: .1em; text-transform: uppercase; }
.adl-card h1 { color: var(--blue-deep); font-size: 30px; margin-bottom: 18px; }
.adl-card .field input { min-height: 50px; }
.adl-foot { display: flex; justify-content: space-between; align-items: center; gap: 10px; flex-wrap: wrap; margin: 18px 0 0; font-size: 13px; }
.adl-foot span { display: inline-flex; align-items: center; gap: 6px; color: #8A8FB0; font-weight: 700; }
.adl-foot span .ai { color: var(--teal-dark); }
.adl-note { text-align: center; font-size: 12.5px; color: rgba(255,255,255,.75); margin: 16px 0 0; }
/* doladění */
.fx-cols > .panel + .panel, .qa-cols > .panel + *, .kpis4 + .fx-cols > * { margin-top: 0; }
.qz-funnel div { min-width: 230px; }
.qz-funnel div:nth-child(2), .qz-funnel div:nth-child(3) { opacity: 1; }
.qz-funnel div:nth-child(2) { background: linear-gradient(120deg, #1C75BC, #38459C 55%, #753E93); }
.qz-funnel div:nth-child(3) { background: linear-gradient(120deg, #38459C, #753E93 55%, #AC4198); }
.qz-funnel div b { color: #fff !important; -webkit-text-fill-color: #fff; }
.au-copy { position: relative; z-index: 2; }

/* =========================================================
   SOUPIS „CO JEŠTĚ ZBÝVÁ“
   ========================================================= */
body.inv-body { background: #F3F5FB; font-size: 15.5px; line-height: 1.55; }
.inv-hero { padding: clamp(44px, 6vw, 80px) 0 clamp(40px, 5vw, 64px); }
.inv-hero::after { width: 620px; height: 620px; right: -140px; top: -260px; }
.inv-hero-in { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 40px; align-items: center; }
.inv-hero h1 { font-size: clamp(38px, 4.6vw, 60px); margin: 4px 0 16px; }
.inv-hero p { font-size: 18.5px; max-width: 640px; color: rgba(255,255,255,.88); margin: 0 0 26px; }
.inv-hero .cta-row { display: flex; gap: 12px; flex-wrap: wrap; }
.btn--ghostw { background: transparent; color: #fff; border-color: rgba(255,255,255,.5); }
.btn--ghostw:hover { border-color: #fff; background: rgba(255,255,255,.08); }
.inv-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; }
.inv-tiles a { display: grid; gap: 2px; padding: 18px; border-radius: 20px; background: rgba(255,255,255,.12); border: 1px solid rgba(255,255,255,.22); text-decoration: none; color: rgba(255,255,255,.85); font-size: 14px; font-weight: 700; backdrop-filter: blur(6px); transition: background .2s, transform .2s var(--ease); }
.inv-tiles a:hover { background: rgba(255,255,255,.2); transform: translateY(-2px); }
.inv-tiles b { font-size: 34px; line-height: 1; color: #fff; font-weight: 900; }
.inv-nav { position: sticky; top: 64px; z-index: 20; background: rgba(255,255,255,.92); backdrop-filter: blur(12px); -webkit-backdrop-filter: blur(12px); border-bottom: 1px solid var(--line); }
.inv-nav .container { display: flex; gap: 4px; overflow-x: auto; padding: 10px 0; scrollbar-width: none; }
.inv-nav a { flex: none; padding: 8px 14px; border-radius: 999px; font-weight: 800; font-size: 14px; color: var(--text-light); text-decoration: none; }
.inv-nav a:hover { background: var(--bg-light); color: var(--blue-deep); }
.inv-main { padding: 28px 0 60px; }
.inv-legend { display: flex; align-items: center; gap: 8px 10px; flex-wrap: wrap; font-size: 13.5px; color: var(--text-light); margin: 0 0 26px; }
.inv-legend .pill:not(:first-child) { margin-left: 10px; }
.inv-sec { scroll-margin-top: 130px; background: #fff; border: 1px solid var(--line); border-radius: 30px; padding: clamp(20px, 3vw, 30px); margin-bottom: 22px; box-shadow: 0 1px 2px rgba(42,52,120,.04); }
.inv-sec > header { display: flex; align-items: flex-start; gap: 16px; margin-bottom: 22px; flex-wrap: wrap; }
.inv-sec > header > div { flex: 1; min-width: 260px; }
.inv-sec h2 { font-size: clamp(22px, 2.2vw, 28px); }
.inv-sec h2 em { font-style: normal; font-size: .62em; vertical-align: middle; padding: 3px 10px; border-radius: 999px; background: var(--bg-light); color: var(--text-light); margin-left: 6px; }
.inv-sec > header p { margin: 4px 0 0; max-width: 820px; }
.inv-cards { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.inv-card { display: flex; flex-direction: column; border-radius: 22px; border: 1px solid var(--line); background: #fff; overflow: hidden; text-decoration: none; color: var(--text-light); transition: transform .25s var(--ease), box-shadow .25s, border-color .25s; }
.inv-card:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); border-color: var(--line-strong); }
.inv-card figure { aspect-ratio: 16 / 10; overflow: hidden; background: #E9ECF5; border-bottom: 1px solid var(--line); }
.inv-card--tall figure { aspect-ratio: 4 / 3; }
.inv-card figure img { width: 100%; height: 100%; object-fit: cover; object-position: top center; transition: transform .5s var(--ease); }
.inv-card:hover figure img { transform: scale(1.03); }
.inv-card .b { padding: 16px 18px 18px; display: flex; flex-direction: column; gap: 6px; flex: 1; }
.inv-card .pill { align-self: flex-start; }
.inv-card h3 { font-size: 17.5px; line-height: 1.3; margin-top: 2px; }
.inv-card p { margin: 0; font-size: 14px; }
.inv-card small { margin-top: auto; padding-top: 6px; font-size: 12px; color: #8A8FB0; font-weight: 700; }
.inv-rows { list-style: none; margin: 16px 0 0; padding: 0; border-top: 1px solid var(--line); }
.inv-cards + .inv-rows { margin-top: 18px; }
.inv-sec > header + .inv-rows { margin-top: 0; }
.inv-rows li { display: grid; grid-template-columns: 170px minmax(0, 1fr) auto; gap: 14px; align-items: center; padding: 13px 4px; border-bottom: 1px solid var(--line); }
.inv-rows li:last-child { border-bottom: 0; }
.inv-rows li > div { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 2px 18px; }
.inv-rows b { color: var(--blue-deep); font-size: 15px; }
.inv-rows span { font-size: 14px; }
.inv-rows small { grid-column: 1; font-size: 12px; color: #8A8FB0; font-weight: 700; }
.inv-rows .pill { justify-self: start; }
.inv-foot { text-align: center; padding: 0 16px 40px; font-size: 13px; color: #8A8FB0; }
@media (max-width: 1100px) { .inv-hero-in { grid-template-columns: 1fr; } .inv-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 720px) {
  .inv-cards { grid-template-columns: 1fr; } .inv-tiles { grid-template-columns: 1fr 1fr; }
  .inv-rows li { grid-template-columns: 1fr; gap: 6px; } .inv-rows li > div { grid-template-columns: 1fr; }
  .inv-legend .pill:not(:first-child) { margin-left: 0; }
}
body.adl-body::before, body.adl-body::after { position: fixed; }
.tk-secure .v { margin-left: -3px; }
@media (max-width: 560px) {
  .tk-secure .v { display: none; }
  .tk-head { padding: 16px 0 14px; }
}
@media (max-width: 980px) { .err-grid { grid-template-columns: 1fr; } .err-cards { grid-template-columns: 1fr 1fr; } }
@media (max-width: 560px) { .err-cards { grid-template-columns: 1fr; } }

/* =========================================================
   KONTROLA 2: 404, systémové stránky, dokumenty, doplnění panelů
   ========================================================= */
/* 404: číslo v textu, portrét v kruhu (hlava nad kruhem, nic přes obličej) */
.e404-num { width: fit-content; font-size: clamp(96px, 11vw, 150px); line-height: .9; font-weight: 900; letter-spacing: -.045em; background: var(--gradient-text); -webkit-background-clip: text; background-clip: text; color: transparent; margin-bottom: 18px; }
.e404-art { position: relative; height: 520px; }
.e404-disc { position: absolute; left: 50%; bottom: 0; width: 430px; height: 430px; transform: translateX(-50%); border-radius: 50%; box-shadow: 0 40px 80px -40px rgba(56,69,156,.65); }
.e404-frame { position: absolute; left: 50%; bottom: 0; width: 430px; height: 540px; transform: translateX(-50%); overflow: hidden; border-radius: 0 0 215px 215px; }
.e404-frame img { position: absolute; left: 50%; bottom: -70px; height: 600px; width: auto; max-width: none; transform: translateX(-50%); }
.e404-badge { position: absolute; left: calc(50% - 285px); bottom: 70px; display: grid; padding: 12px 16px; border-radius: 16px; background: #fff; box-shadow: var(--shadow-md); font-size: 13.5px; line-height: 1.35; z-index: 2; }
.e404-badge b { color: var(--blue-deep); font-size: 15px; }
@media (max-width: 1180px) { .e404-badge { left: 0; } }
@media (max-width: 980px) { .e404-art { height: 460px; max-width: 460px; width: 100%; margin: 0 auto; } }
@media (max-width: 560px) {
  .e404-art { height: 380px; }
  .e404-disc { width: 320px; height: 320px; }
  .e404-frame { width: 320px; height: 400px; border-radius: 0 0 160px 160px; }
  .e404-frame img { height: 450px; bottom: -52px; }
  .e404-badge { bottom: 30px; padding: 10px 13px; }
}

/* 500/503: klidný symbol se soustřednými kruhy */
.sys { justify-content: center; }
.sys-orb { width: 176px; height: 176px; }
.sys-orb .sys-r { position: absolute; border-radius: 50%; }
.sys-orb .sys-r1 { inset: 0; background: radial-gradient(circle, rgba(56,69,156,.07), rgba(56,69,156,0) 70%); border: 1px solid rgba(56,69,156,.10); animation: breathe 4s ease-in-out infinite; }
.sys-orb .sys-r2 { inset: 20px; border: 1px solid rgba(26,182,174,.28); background: rgba(255,255,255,.55); }
.sys-orb .sys-r3 { inset: 30px; border: 1px dashed rgba(172,65,152,.25); }
@keyframes breathe { 0%, 100% { opacity: .55; } 50% { opacity: 1; } }

/* dokumenty: razítko potvrzení místo druhého loga */
.titlerow .seal { width: 46mm; text-align: right; }
.titlerow .stamp { font-size: 8pt; padding: 2.4mm 5mm; }
.titlerow .stamp b { font-size: 12.5pt; }
.stamp--blue { border-color: #38459C; color: #38459C; box-shadow: inset 0 0 0 .6mm #fff, inset 0 0 0 1mm rgba(56,69,156,.35); }

/* fakturace: naposledy uhrazeno */
.paid-list { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: grid; gap: 10px; }
.paid-list .who { display: grid; grid-template-columns: 38px minmax(0, 1fr) auto; }
.paid-list .num { font-weight: 900; color: var(--ok); white-space: nowrap; }
/* kvízy: řádky rovnoměrně na celou výšku panelu */
.panel--fill { display: flex; flex-direction: column; }
.panel--fill .hbars { flex: 1; align-content: space-evenly; }

/* galerie: náhled v seznamu doručené pošty */
.ms-inbox { margin: 0 0 16px; padding: 14px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.ms-inbox .lbl { display: block; font-size: 11.5px; font-weight: 900; letter-spacing: .1em; text-transform: uppercase; color: #8A8FB0; margin-bottom: 10px; }
.ms-inbox .row { display: grid; grid-template-columns: 36px minmax(0, 1fr) auto; gap: 10px; align-items: start; padding: 10px; border-radius: 12px; background: #fff; border: 1px solid var(--line); }
.ms-inbox .mav { width: 36px; height: 36px; font-size: 12px; }
.ms-inbox .row > div { display: grid; min-width: 0; line-height: 1.3; }
.ms-inbox b { font-size: 13px; color: var(--text); }
.ms-inbox strong { font-size: 13px; color: var(--blue-deep); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ms-inbox small { font-size: 12.5px; color: #8A8FB0; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ms-inbox time { font-size: 11.5px; color: #8A8FB0; font-weight: 800; }
.ms-inbox p { margin: 8px 2px 0; font-size: 12px; color: #8A8FB0; }
@media (max-width: 1360px) { .ms-inbox { display: none; } }

/* výběr termínu po přijetí: jedna karta na střed */
.tk-grid.is-done { grid-template-columns: minmax(0, 720px); justify-content: center; }
.tk-hero p b { color: #fff; }
.tk-steps li.done i { font-size: 12px; }
.tk-in > .tk-label + .tk-next { margin-top: 4px; }
.tk-in .tk-next { margin-left: 0; }

/* kontrola 2: doladění rozložení */
.panel--fill .bchart { flex: 1; min-height: 200px; height: auto; }
.ms-cat b { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.inv-tiles { grid-auto-rows: 1fr; }
.inv-tiles a { align-content: start; }
.ms-group { position: relative; }

/* portrét Zdenky vystupující z kruhu (img/email/zdenka-pop.png, kruh tvoří spodních 64 px) */
.zd-pop { width: 64px; height: auto; flex: none; display: block; }
.tk-msg .who { align-items: flex-end; }
.tk-msg .who > div { padding-bottom: 20px; }

/* =========================================================
   POHYB A DROBNÉ PŘECHODY (js/motion.js)
   Rytmus jako .reveal na webu: 14 px, 0,7 s, var(--ease).
   Při „omezit pohyb“ vypíná vše pravidlo v system.css.
   ========================================================= */
@keyframes mo-rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
@keyframes mo-fade { from { opacity: 0; } to { opacity: 1; } }
@keyframes mo-drift { 0% { transform: translate3d(-6%, -4%, 0) rotate(0deg); } 100% { transform: translate3d(6%, 5%, 0) rotate(8deg); } }
@keyframes mo-growx { from { transform: scaleX(0); } to { transform: scaleX(1); } }
@keyframes mo-growy { from { transform: scaleY(0); } to { transform: scaleY(1); } }
@keyframes mo-wipe { from { clip-path: inset(0 100% 0 0 round 16px); } to { clip-path: inset(0 0 0 0 round 16px); } }
@keyframes mo-pop { 0% { transform: scale(.4); opacity: 0; } 60% { transform: scale(1.12); opacity: 1; } 100% { transform: scale(1); } }
@keyframes mo-ripple { 0% { transform: scale(.85); opacity: .9; } 100% { transform: scale(1.7); opacity: 0; } }
@keyframes mo-float { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-6px); } }
@keyframes mo-pulse { 0% { box-shadow: 0 0 0 0 rgba(184,116,26,.45); } 70% { box-shadow: 0 0 0 7px rgba(184,116,26,0); } 100% { box-shadow: 0 0 0 0 rgba(184,116,26,0); } }
@keyframes mo-pulse-p { 0% { box-shadow: 0 0 0 0 rgba(172,65,152,.35), 0 0 0 6px var(--purple-tint); } 70% { box-shadow: 0 0 0 12px rgba(172,65,152,0), 0 0 0 6px var(--purple-tint); } 100% { box-shadow: 0 0 0 0 rgba(172,65,152,0), 0 0 0 6px var(--purple-tint); } }
@keyframes mo-scan { 0% { transform: translateY(0); opacity: 0; } 12% { opacity: 1; } 88% { opacity: 1; } 100% { transform: translateY(158px); opacity: 0; } }
@keyframes mo-spin { to { transform: rotate(360deg); } }
@keyframes mo-shine { from { transform: translateX(-120%) skewX(-20deg); } to { transform: translateX(220%) skewX(-20deg); } }
@keyframes mo-nudge { 0% { transform: scale(1); } 35% { transform: scale(1.03); box-shadow: 0 0 0 6px rgba(172,65,152,.14), 0 14px 28px -14px rgba(172,65,152,.8); } 100% { transform: scale(1); } }
@keyframes mo-stamp { 0% { opacity: 0; transform: rotate(-6deg) scale(1.6); } 60% { opacity: 1; transform: rotate(-6deg) scale(.94); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
@keyframes mo-eq { from { transform: scaleY(.35); } to { transform: scaleY(1); } }
@keyframes mo-shimmer { from { background-position: 0% 50%; } to { background-position: 100% 50%; } }

/* objevování (obsah se skrývá jen když běží skript) */
.mo .mo-rv { opacity: 0; }
/* fill „backwards“: po doběhnutí se vrátí běžný styl, takže fungují i efekty při najetí */
.mo .mo-rv.mo-in { opacity: 1; animation: mo-rise .7s var(--ease) backwards; animation-delay: var(--mo-d, 0ms); }
.mo .e404-num.mo-in { animation: mo-rise .7s var(--ease) backwards var(--mo-d, 0ms), mo-shimmer 8s ease-in-out .7s infinite alternate; }
.mo .tk-card.mo-rv.mo-in, .mo .inv-sec.mo-rv.mo-in, .mo .adl-card.mo-rv.mo-in { animation-duration: .8s; }

/* grafy rostou až s objevením panelu */
.hb i { transform-origin: left center; }
.mo .mo-in .hb i { animation: mo-growx 1s var(--ease) both; animation-delay: calc(.25s + var(--mo-i, 0) * 90ms); }
.bb i { transform-origin: center bottom; }
.mo .mo-in .bb i { animation: mo-growy .9s var(--ease) both; animation-delay: calc(.2s + var(--mo-i, 0) * 70ms); }
.mo .mo-in .bb i.b { animation-delay: calc(.32s + var(--mo-i, 0) * 70ms); }
.mo .mo-in .qz-funnel > div { animation: mo-wipe 1s var(--ease) both; animation-delay: calc(.25s + var(--mo-i, 0) * 140ms); }
.plays .meter i, .q-ring circle.v { transform-origin: left center; }
.mo .plays .meter i { animation: mo-growx 1.1s var(--ease) both .3s; }
.hb i { position: relative; }
.hb i::after { content: ""; position: absolute; inset: 0; border-radius: inherit; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.3)); }

/* barevná pole: pomalu „dýchající“ světlo; 404 číslo se jemně přelévá */
.e404-num { background-size: 220% 100%; animation: mo-shimmer 8s ease-in-out infinite alternate; }
.e404-badge, .au-badge { animation: mo-float 6s ease-in-out infinite; }
.au-zd { animation: mo-rise 1s var(--ease) both .15s; }

/* hlavní tlačítka: jemný přechod barvy a odlesk při najetí */
.tk-cta, .au-cta { position: relative; overflow: hidden; isolation: isolate; }
.tk-cta:not([disabled]), .au-cta:not([disabled]).btn--primary { background-image: linear-gradient(120deg, #B24A9E 0%, #AC4198 40%, #8E4092 100%); }
.tk-cta::after, .au-cta::after { content: ""; position: absolute; top: 0; bottom: 0; left: 0; width: 40%; z-index: -1; background: linear-gradient(90deg, rgba(255,255,255,0), rgba(255,255,255,.28), rgba(255,255,255,0)); transform: translateX(-120%) skewX(-20deg); pointer-events: none; }
.tk-cta:hover::after, .au-cta:hover::after { animation: mo-shine .9s var(--ease); }
.tk-cta:active, .au-cta:active { transform: scale(.985); }
.tk-cta[disabled], .au-cta[disabled] { opacity: 1; background: #EDE6F0; color: #A592B0; box-shadow: none; }
.mo-nudge { animation: mo-nudge .8s var(--ease); }

/* výběr času */
.slot .cal-tile { transition: transform .35s var(--ease), box-shadow .35s; }
.slot:not([disabled]):hover .cal-tile { transform: rotate(-3deg); }
.slot[aria-checked="true"] .cal-tile { transform: translateY(-2px) rotate(-4deg); box-shadow: 0 10px 18px -10px rgba(172,65,152,.8); }
.slot[aria-checked="true"] .rb { animation: mo-pop .45s var(--ease); }

/* potvrzení a stavy */
.done-mark { position: relative; }
.done-mark::after { content: ""; position: absolute; inset: 0; border-radius: 50%; border: 2px solid rgba(26,182,174,.6); animation: mo-ripple 1.6s .35s ease-out both; }
.done-mark { animation: mo-pop .6s var(--ease) both; }
.b-band--ok .b-tile { animation: mo-pop .6s var(--ease) both .2s; }
.tk-summary .pill--warn::before { animation: mo-pulse 1.8s ease-out infinite; border-radius: 50%; }
.paytrack li.cur i { animation: mo-pulse-p 2s ease-out infinite; }
.paytrack li::before { transform-origin: left center; }
.mo .mo-in .paytrack li.done::before, .mo .mo-in .paytrack li.cur::before { animation: mo-growx .8s var(--ease) both; animation-delay: calc(.3s + var(--mo-i, 0) * 250ms); }
.mo .mo-in .tk-next li { animation: mo-rise .6s var(--ease) both; animation-delay: calc(.25s + var(--mo-i, 0) * 110ms); }

/* lhůta pro odstoupení: pruh se vyplní, termín „dosedne“ */
.period .bar i { transform-origin: left center; }
.mo .mo-in .period .bar i { animation: mo-growx 1.2s var(--ease) both .3s; }
.mo .mo-in .period .bar em { animation: mo-pop-c .55s var(--ease) both 1s; }
@keyframes mo-pop-c { 0% { transform: translate(-50%, -50%) scale(.3); opacity: 0; } 60% { transform: translate(-50%, -50%) scale(1.15); opacity: 1; } 100% { transform: translate(-50%, -50%) scale(1); opacity: 1; } }
.period .bar em { animation-fill-mode: both; }

/* QR: skenovací linka a „dýchající“ rohy */
.qrframe::after { content: ""; position: absolute; left: 16px; right: 16px; top: 16px; height: 2px; border-radius: 2px; background: linear-gradient(90deg, rgba(26,182,174,0), var(--teal), rgba(26,182,174,0)); box-shadow: 0 0 10px rgba(26,182,174,.7); animation: mo-scan 3.2s ease-in-out infinite; }
.qrframe .corner { transition: transform .3s var(--ease); }
.qrcard:hover .qrframe .c1 { transform: translate(-3px, -3px); } .qrcard:hover .qrframe .c2 { transform: translate(3px, -3px); }
.qrcard:hover .qrframe .c3 { transform: translate(-3px, 3px); } .qrcard:hover .qrframe .c4 { transform: translate(3px, 3px); }
.payrow .cp { transition: background .2s, border-color .2s, color .2s; }
.payrow .cp.copied { background: var(--ok-tint); border-color: #C3E8DA; color: var(--ok); }

/* údržba a chyba serveru */
.sys-orb .sys-r3 { animation: mo-spin 40s linear infinite; }
.sys-orb .core { animation: mo-pop .7s var(--ease) both .1s; }

/* nahrávky: „ekvalizér“ u přehratelných při najetí */
.wave i { transform-origin: center; transition: opacity .2s; }
tr[data-f*="play"]:hover .wave i { opacity: .95; animation: mo-eq .55s ease-in-out infinite alternate; animation-delay: calc(var(--mo-i, 0) * -73ms); }

/* karty a dlaždice: zvednutí při najetí */
.kpi { transition: box-shadow .25s, transform .25s var(--ease); }
.kpi:hover { transform: translateY(-2px); }
.tk-way, .err-card, .inv-card, .qz-card, .tk-chip, .sys-contact a { will-change: transform; }
.sys-contact a { transition: transform .25s var(--ease), box-shadow .25s; }
.sys-contact a:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.tk-chip { transition: border-color .2s, transform .2s var(--ease); }
.tk-chip:hover { transform: translateY(-1px); }

/* dotazník: otázky přijíždějí zprava, škála reaguje */
.qcard > * { animation: mo-rise .45s var(--ease) both; }
.qcard > *:nth-child(2) { animation-delay: .05s; } .qcard > *:nth-child(3) { animation-delay: .1s; } .qcard > *:nth-child(4) { animation-delay: .15s; }
.q-scale button[aria-pressed="true"] { animation: mo-pop .4s var(--ease); }
.q-steps li { transition: background .2s, color .2s; }
.q-steps li i { transition: background .3s, color .3s; }

/* souhlasy, registrace: zaškrtnutí „cvakne“ */
.au-check input:checked + .box, .c-confirm input:checked + .box { animation: mo-pop .35s var(--ease); }
.c-doc.is-ok header .b-ico { transition: background .3s; background: linear-gradient(135deg, #1AB6AE, #1A8EBB); }
.pwmeter i { transition: background .3s, transform .3s var(--ease); transform-origin: left; }
.pwrules li::before { transition: background-color .25s var(--ease), border-color .25s var(--ease), color .25s var(--ease), box-shadow .25s var(--ease), transform .25s var(--ease), opacity .25s var(--ease); }

/* galerie a editor: plynulá výměna náhledu */
[data-mframe] { transition: opacity .25s ease; }
[data-mframe].mo-swap { opacity: 0; }
.ms-stage .mx-desk, .ms-stage .mx-phone { animation: mo-fade .35s ease both; }
.ms-item { transition: background .2s, transform .2s var(--ease); }
.ms-item:hover { transform: translateX(2px); }
.tpl-head [data-tstate] { transition: background .3s, color .3s; }

/* soupis: aktuální část v navigaci */
.inv-nav a { transition: background .2s, color .2s; }
.inv-nav a.is-cur { background: var(--blue-tint); color: var(--blue-deep); }

/* záložky v administraci */
.page .tpanel:not([hidden]) { animation: mo-rise .4s var(--ease) both; }

/* dokument: razítko „dosedne“ (jen na obrazovce) */
@media screen { .sheet { overflow: hidden; } .sheet .stamp { animation: mo-stamp .7s cubic-bezier(.2,.9,.3,1.2) both .5s; } }
@keyframes mo-stamp { 0% { opacity: 0; transform: rotate(-6deg) scale(1.3); } 60% { opacity: 1; transform: rotate(-6deg) scale(.95); } 100% { opacity: 1; transform: rotate(-6deg) scale(1); } }
@media print { *, *::before, *::after { animation: none !important; } }

/* =========================================================
   Doplňky pro skutečný portál a administraci (MR3)
   ========================================================= */
.p-menu { position: relative; }
.p-menu > summary { list-style: none; cursor: pointer; border-radius: 50%; }
.p-menu > summary::-webkit-details-marker { display: none; }
.p-menu > summary:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }
.p-menu__panel { position: absolute; right: 0; top: calc(100% + 10px); z-index: 60; min-width: 260px; display: grid; gap: 2px; padding: 8px; border-radius: 18px; background: #fff; border: 1px solid var(--line); box-shadow: var(--shadow-md, 0 16px 34px -22px rgba(42,52,120,.38)); }
.p-menu__panel > a, .p-menu__panel form > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 10px 12px; border: 0; border-radius: 12px; background: none; color: var(--blue-deep); font: 700 15px var(--font); text-decoration: none; text-align: left; cursor: pointer; }
.p-menu__panel > a:hover, .p-menu__panel form > button:hover { background: var(--bg-light); }
.p-menu__panel hr { border: 0; border-top: 1px solid var(--line); margin: 4px 6px; }
.p-menu__lang { display: flex; align-items: center; gap: 10px; padding: 8px 12px; color: var(--blue-deep); font-weight: 700; font-size: 15px; }
.p-menu__lang .p-lang { margin-left: auto; }
.p-lang { display: inline-flex; gap: 2px; padding: 3px; border-radius: 999px; background: var(--bg-light); }
.p-lang button { border: 0; border-radius: 999px; padding: 5px 10px; background: transparent; color: var(--text-light); font: 800 12.5px var(--font); cursor: pointer; }
.p-lang button[aria-current="true"] { background: #fff; color: var(--blue-deep); box-shadow: 0 1px 3px rgba(42,52,120,.15); }
.p-sub { display: flex; flex-wrap: wrap; align-items: center; gap: 10px 18px; margin: -6px 0 22px; }
.p-sub__links { display: flex; flex-wrap: wrap; gap: 6px; }
.p-sub__links a { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--text-light); text-decoration: none; background: #fff; border: 1px solid var(--line); }
.p-sub__links a:hover { color: var(--blue-deep); border-color: var(--line-strong); }
.p-sub__links a[aria-current] { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep); }
.p-alert { margin: 0 0 16px; padding: 12px 16px; border-radius: 14px; font-weight: 700; font-size: 15px; border: 1px solid var(--line); background: var(--bg-soft); color: var(--blue-deep); }
.p-alert--ok { background: var(--ok-tint); border-color: #C3E8DA; color: #0E5E49; }
.p-alert--warn { background: var(--warn-tint); border-color: #F4DDB8; color: #7A4C0E; }
.p-alert--err { background: var(--danger-tint); border-color: #EBC3CD; color: #8E1F3A; }
.p-alert--info { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep); }
.au-wide { width: 100%; }
.au-row--start { justify-content: flex-start; margin: 18px 0 0; }
.au-resend { margin-top: 22px; padding: 16px; border-radius: 16px; background: var(--bg-soft); text-align: center; }
.au-resend p { margin: 0 0 10px; font-weight: 700; color: var(--blue-deep); }
.field-help { display: block; margin-top: 4px; }
.p-head .p-acc .btn { min-height: 40px; }
.focus--required .kick::before { background: #FFD28A; box-shadow: 0 0 0 4px rgba(255,210,138,.25); }
.p-rec { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; }
.p-rec > span:nth-child(2) { display: grid; gap: 2px; flex: 1; min-width: 160px; }
.p-rec__ic { width: 52px; height: 52px; border-radius: 50%; display: grid; place-items: center; background: var(--gradient-contact); color: #fff; flex: none; }
.steps-list li > span { display: grid; gap: 2px; min-width: 0; }
body.portal-body { min-height: 100vh; }

/* ---------- Portál: doménové části skutečných obrazovek ---------- */
.p-greet--action { display: flex; flex-wrap: wrap; align-items: flex-end; justify-content: space-between; gap: 14px; }
.p-card--wide { grid-column: 1 / -1; }
.p-card__head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 10px; margin-bottom: 14px; }
.p-card__head h2, .p-card__head h3 { margin: 0; }
.p-card h3 { font-size: 17px; color: var(--blue-deep); }
.p-card .p-alert:last-child, .p-card p:last-child { margin-bottom: 0; }
.p-card + .p-alert, .p-alert + .p-card { margin-top: 18px; }
.link-inline, .portal-action-link, .portal-see-all { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.portal-see-all { display: inline-flex; margin-top: 12px; }
.portal-action-note, .portal-payment-note, .portal-package-note, .booking-timezone, .billing-muted, .consent-meta, .consent-stage-note, .consent-necessity-note, .reschedule-hint, .portal-confirmation-note, .portal-payment-box__note { font-size: 13.5px; color: #6B7090; }
.pill--btn { border: 0; cursor: pointer; font-family: var(--font); }
.portal-badge--confirmed { background: var(--ok-tint); color: var(--ok); }
.portal-badge--no-show { background: var(--danger-tint); color: var(--danger); }
.portal-badge-stack { display: flex; flex-wrap: wrap; gap: 6px; }
.portal-icon { width: 20px; height: 20px; flex: none; }
.portal-page-actions, .portal-centre-links, .booking-status-actions, .booking-success-actions, .intake-actions, .portal-appointment-row__actions, .portal-payment-row__actions { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; margin-top: 14px; }
.portal-centre-links { justify-content: flex-start; gap: 6px; margin: -6px 0 18px; }
.portal-centre-links a { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--blue-deep); text-decoration: none; background: #fff; border: 1px solid var(--line); }
.portal-centre-links a:hover { border-color: var(--line-strong); }
.portal-inline-form { display: inline; }
.portal-btn--danger { background: var(--danger); border-color: var(--danger); color: #fff; }
.portal-btn--danger:hover { filter: brightness(1.05); }
.portal-dashboard-grid { display: grid; grid-template-columns: minmax(0, 1fr); gap: 18px; align-items: start; margin-top: 18px; }
.portal-dashboard-grid > .p-card + .p-card { margin-top: 0; }

/* Prázdné stavy */
.empty, .portal-empty--panel, .portal-empty--soft, .booking-availability-empty, .recording-unavailable { display: grid; justify-items: start; gap: 8px; padding: 18px; border-radius: 18px; background: var(--bg-soft); border: 1px dashed var(--line-strong); color: var(--text-light); }
.portal-empty-visual, .portal-empty-icon, .recording-unavailable-icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); }
.portal-empty-visual svg, .portal-empty-icon svg, .recording-unavailable-icon svg { width: 22px; height: 22px; }
.portal-empty-title, .recording-unavailable-title { font-weight: 800; color: var(--blue-deep); margin: 0; }
.portal-empty-text, .recording-unavailable-reason, .recording-unavailable-info { margin: 0; font-size: 14.5px; }
.portal-empty-cta, .portal-empty-action { margin-top: 4px; }

/* Seznamy a řádky */
.portal-list, .portal-appointment-list, .portal-payment-list, .portal-document-list, .portal-download-list, .portal-session-list, .sessions-list, .session-recordings-list, .portal-package-stack, .quiet-step-list { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.portal-list-row, .portal-appointment-row, .portal-payment-row, .portal-link-row, .portal-package-row, .portal-calendar-row, .consent-status-row, .consent-history-row, .booking-availability__item, .portal-session-list > li, .portal-document-list > li, .portal-download-list > li { display: flex; flex-wrap: wrap; align-items: center; gap: 12px 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); }
.portal-list-row--link:hover, .portal-link-row:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md, 0 16px 34px -22px rgba(42,52,120,.38)); }
.portal-list-row__body, .portal-appointment-row__body, .portal-payment-row__body, .portal-link-row__content, .portal-session__content, .booking-availability__head { flex: 1; min-width: 0; display: grid; gap: 2px; }
.portal-list-row__body strong, .portal-appointment-row__body strong, .portal-payment-row__body strong, .portal-link-row__content strong, .portal-package-row__head strong { color: var(--blue-deep); }
.portal-appointment-row__meta, .portal-session__extra, .portal-session__label { font-size: 13.5px; color: #6B7090; }
.portal-list-row__icon, .session-card-icon, .session-note-card__icon, .session-detail-hero__icon { width: 44px; height: 44px; border-radius: 14px; display: grid; place-items: center; background: var(--blue-tint); color: var(--blue); flex: none; }
.portal-list-row__icon--offer { background: var(--purple-tint); color: var(--purple); }
.portal-list-row__link, .portal-appointment-link { font-weight: 800; color: var(--blue); }
.portal-list-more, .portal-offer-extra { font-size: 14px; color: #6B7090; }
.portal-link-row { text-decoration: none; color: inherit; }
.portal-link-row__amount { font-weight: 900; color: var(--blue-deep); white-space: nowrap; }
.portal-package-row { display: grid; gap: 10px; }
.portal-package-row__head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.portal-date-chip { display: inline-grid; place-items: center; min-width: 58px; padding: 6px 8px; border-radius: 14px; border: 1px solid var(--line); background: #fff; color: var(--blue-deep); font-weight: 900; line-height: 1.1; text-align: center; }
.portal-progress, .portal-usage-mini progress, .p-card progress { width: 100%; height: 8px; appearance: none; border: 0; border-radius: 8px; background: #EEF0F8; overflow: hidden; }
.p-card progress::-webkit-progress-bar { background: #EEF0F8; border-radius: 8px; }
.p-card progress::-webkit-progress-value { background: var(--gradient-contact); border-radius: 8px; }
.p-card progress::-moz-progress-bar { background: var(--gradient-contact); border-radius: 8px; }
.portal-usage-mini { display: grid; gap: 6px; font-size: 13.5px; }
.portal-session__mark { width: 12px; height: 12px; border-radius: 50%; background: var(--line-strong); flex: none; }
.portal-session__state { font-size: 12.5px; font-weight: 800; }
.portal-session__cta { margin-left: auto; }

/* Termíny, rezervace a přesun */
.booking-card--portal, .booking-payment-card, .portal-reschedule-card, .portal-confirmation-card, .portal-billing-card, .package-contract-card, .consent-card, .intake-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: clamp(18px, 2.6vw, 26px); }
.booking-card--portal + *, .booking-payment-card + *, .intake-card + .intake-card { margin-top: 18px; }
.booking-steps { display: flex; flex-wrap: wrap; gap: 6px; margin-bottom: 18px; }
.booking-steps .booking-step { padding: 7px 14px; border-radius: 999px; background: var(--bg-light); color: #6B7090; font-weight: 800; font-size: 13.5px; }
.booking-steps .booking-step.active { background: var(--blue-deep); color: #fff; }
.booking-steps .booking-step.done { background: var(--teal-tint); color: #0E6F6A; }
.booking-panel-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 10px; }
.booking-field { display: grid; gap: 6px; margin-bottom: 14px; }
.booking-field label, .booking-panel-title, .intake-field label, .consent-signer label, .package-contract-signer label { font-size: 13.5px; font-weight: 800; color: var(--blue-deep); }
.booking-field select, .booking-field input[type=text], .booking-field input[type=email], .booking-field input[type=tel], .intake-field textarea, .intake-field select, .consent-signer input, .package-contract-signer input, .reschedule-form select, .sessions-search-input { width: 100%; min-height: 46px; padding: 10px 14px; border: 1.5px solid var(--line-strong); border-radius: 12px; font: 600 15.5px var(--font); color: var(--text); background: #fff; }
.booking-field select:focus, .booking-field input:focus, .intake-field textarea:focus, .intake-field select:focus, .consent-signer input:focus, .package-contract-signer input:focus, .sessions-search-input:focus { outline: none; border-color: var(--blue); box-shadow: 0 0 0 4px var(--blue-tint); }
.booking-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 16px; }
.booking-btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 46px; padding: 0 20px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--blue-deep); font: 800 15px var(--font); cursor: pointer; text-decoration: none; }
.booking-btn--primary { background: var(--gradient-cta, var(--gradient-contact)); border-color: transparent; color: #fff; }
.booking-msg, .booking-submit-state, .reschedule-submit__state { font-size: 14px; font-weight: 700; color: var(--purple-dark); }
.booking-request-note, .booking-session-note, .booking-early-performance-note, .booking-admin-first-state, .portal-early-performance, .portal-cancellation-agreement, .portal-payment-box, .booking-payment-summary { padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); font-size: 14.5px; }
.booking-admin-first-state { display: flex; gap: 12px; align-items: flex-start; }
.booking-admin-first-state__icon, .booking-status-icon { width: 40px; height: 40px; border-radius: 12px; display: grid; place-items: center; background: var(--teal-tint); color: #0E6F6A; flex: none; }
.booking-status-icon--notice { background: var(--warn-tint); color: var(--warn); }
.portal-early-performance__title { font-weight: 800; color: var(--blue-deep); margin: 0 0 6px; }
.portal-cancellation-agreement__amounts { display: grid; gap: 4px; margin: 8px 0; }
.booking-availability { display: grid; gap: 10px; }
.booking-availability__list { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; }
.booking-availability__item--status { background: var(--bg-soft); }
.booking-payment-layout, .portal-payment-box { display: grid; grid-template-columns: minmax(0, 1fr) 190px; gap: 18px; align-items: start; }
.booking-payment-details dl, .portal-payment-box__details dl, .portal-confirmation-details, .billing-details { display: grid; grid-template-columns: max-content minmax(0, 1fr); gap: 6px 14px; margin: 0; }
.booking-payment-details dt, .portal-payment-box__details dt, .portal-confirmation-details dt, .billing-details dt { font-weight: 700; color: #6B7090; }
.booking-payment-details dd, .portal-payment-box__details dd, .portal-confirmation-details dd, .billing-details dd { margin: 0; font-weight: 800; color: var(--blue-deep); }
.booking-payment-qr img, .portal-payment-box__qr img, .billing-qr img { width: 100%; max-width: 190px; border-radius: 16px; background: #fff; padding: 8px; border: 1px solid var(--line); }
.booking-payment-qr-hint { font-size: 12.5px; color: #8A8FB0; text-align: center; }
.portal-confirmation-id { font-weight: 900; color: var(--blue-deep); letter-spacing: .04em; }
.portal-confirmation-status { display: inline-flex; }
.billing-amount { font-size: clamp(24px, 3vw, 32px); font-weight: 900; color: var(--blue-deep); }
.billing-period, .billing-period-number { font-weight: 800; color: var(--blue-deep); }
.billing-button { margin-top: 12px; }
.reschedule-picker { display: grid; gap: 12px; }
.reschedule-day { padding: 12px 14px; border-radius: 16px; border: 1px solid var(--line); background: #fff; }
.reschedule-slots, .slot-grid { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 8px; }
.reschedule-slot { position: relative; }
.reschedule-slot-input { position: absolute; opacity: 0; }
.reschedule-slot span, .slot-grid .slot-btn { display: inline-flex; padding: 8px 14px; border-radius: 12px; border: 1.5px solid var(--line-strong); background: #fff; font-weight: 800; color: var(--blue-deep); cursor: pointer; }
.reschedule-slot-input:checked + span, .slot-grid .slot-btn.selected { background: var(--blue-deep); border-color: var(--blue-deep); color: #fff; }
.reschedule-slot-input:focus-visible + span { outline: 3px solid var(--teal); outline-offset: 2px; }
.reschedule-summary { font-weight: 700; color: var(--blue-deep); }

/* Sezení a nahrávky */
.sessions-section + .sessions-section { margin-top: 24px; }
.sessions-section__head { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.sessions-count { display: inline-flex; min-width: 26px; height: 26px; padding: 0 8px; border-radius: 999px; background: var(--blue-tint); color: var(--blue-deep); font-size: 13px; font-weight: 900; align-items: center; justify-content: center; }
.sessions-search { position: relative; max-width: 360px; width: 100%; }
.sessions-search-icon { position: absolute; left: 12px; top: 50%; transform: translateY(-50%); width: 18px; height: 18px; color: #8A8FB0; }
.sessions-search-input { padding-left: 40px; }
.sessions-timeline { display: grid; gap: 10px; }
.session-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; background: #fff; border: 1px solid var(--line); text-decoration: none; color: inherit; }
.session-card:hover { border-color: var(--line-strong); box-shadow: var(--shadow-md, 0 16px 34px -22px rgba(42,52,120,.38)); }
.session-card--upcoming { border-color: var(--blue-tint); background: linear-gradient(180deg, #fff, var(--bg-soft)); }
.session-card--package .session-card-icon { background: var(--purple-tint); color: var(--purple); }
.session-card-info { flex: 1; min-width: 0; display: grid; gap: 2px; }
.session-card-title { font-weight: 800; color: var(--blue-deep); }
.session-card-meta { font-size: 13.5px; color: #6B7090; }
.session-card-chevron { color: #8A8FB0; }
.session-type-pill { display: inline-flex; padding: 3px 10px; border-radius: 999px; background: var(--purple-tint); color: var(--purple-dark); font-size: 12.5px; font-weight: 800; }
.session-detail-hero { display: flex; gap: 16px; align-items: center; margin-bottom: 18px; }
.session-detail-hero__body h1 { margin: 0; font-size: clamp(24px, 2.6vw, 32px); }
.session-detail-meta { display: flex; flex-wrap: wrap; gap: 6px 14px; font-size: 14px; color: #6B7090; }
.session-note-card, .session-recordings-card { background: #fff; border: 1px solid var(--line); border-radius: 24px; padding: 20px; }
.session-note-card { display: flex; gap: 14px; }
.session-note-card + .session-recordings-card, .session-recordings-card + .session-note-card { margin-top: 18px; }
.session-recordings-card__head { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-bottom: 12px; }
.recording-player-shell { padding: 16px; border-radius: 18px; background: var(--bg-soft); border: 1px solid var(--line); }
.recording-player-shell__label { font-weight: 800; color: var(--blue-deep); margin-bottom: 8px; display: block; }

/* Souhlasy, smlouva a stránky z odkazů */
.consent-public-page, .package-contract-public-page { background: linear-gradient(180deg, #F6F6FF 0%, #F7FBFF 380px); min-height: 100vh; }
.consent-public-main, .package-contract-public-main { width: min(100% - 32px, 760px); margin-inline: auto; padding: clamp(28px, 5vw, 56px) 0 64px; }
.consent-logo, .package-contract-logo { height: 40px; width: auto; margin-bottom: 18px; }
.consent-card h1, .package-contract-card h1 { font-size: clamp(26px, 3vw, 34px); }
.consent-form, .consent-portal-form, .package-contract-form { display: grid; gap: 14px; margin-top: 16px; }
.consent-statement, .package-contract-decision { display: block; padding: 14px 16px; border-radius: 16px; background: var(--bg-soft); border: 1px solid var(--line); }
.consent-check, .package-contract-decision { display: flex; gap: 12px; align-items: flex-start; cursor: pointer; }
.consent-check input, .package-contract-decision input, .intake-consent input, .consent-withdrawal__check input { width: 20px; height: 20px; margin-top: 2px; accent-color: var(--purple); flex: none; }
.package-contract-decision--required { border-color: var(--purple-tint); }
.package-contract-decision__body, .consent-withdrawal__body { display: grid; gap: 4px; }
.package-contract-decision__text { font-size: 14.5px; }
.package-contract-decisions { display: grid; gap: 10px; }
.package-contract-decisions__intro { font-weight: 800; color: var(--blue-deep); }
.consent-signer, .package-contract-signer { display: grid; gap: 6px; }
.consent-doc-links { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }
.consent-portal-summary, .consent-portal-management, .consent-portal-history, .consent-withdrawal, .package-contract-summary, .package-contract-scope, .package-contract-policy, .package-contract-inclusions, .package-contract-separation { margin-top: 18px; }
.package-contract-status { display: inline-flex; padding: 4px 12px; border-radius: 999px; font-weight: 800; font-size: 13px; background: var(--bg-light); color: var(--blue-deep); }
.package-contract-status--waiting { background: var(--warn-tint); color: var(--warn); }
.package-contract-status--done { background: var(--ok-tint); color: var(--ok); }
.package-contract-submit, .reschedule-submit { margin-top: 6px; }

/* Vstupní dotazník */
.intake-page { display: grid; gap: 18px; }
.intake-heading p:first-child { margin: 0; font-size: 13px; font-weight: 800; letter-spacing: .12em; text-transform: uppercase; color: var(--blue); }
.intake-heading p:not(:first-child) { margin: 0 0 8px; }
.intake-heading h1 { margin: 4px 0 8px; }
.intake-field { display: grid; gap: 6px; margin-bottom: 14px; }
.intake-consent { display: flex; gap: 12px; align-items: flex-start; margin: 10px 0 16px; }
.intake-status { font-weight: 800; color: var(--blue-deep); }
@media (max-width: 700px) {
  .booking-payment-layout, .portal-payment-box, .portal-dashboard-grid { grid-template-columns: 1fr; }
  .session-detail-hero { align-items: flex-start; }
}

/* Ikony z dosavadních datových helperů nemají vlastní výplň */
.p-main svg:not([fill]), .consent-public-main svg:not([fill]), .package-contract-public-main svg:not([fill]) { fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.p-main svg.portal-icon, .portal-empty-visual svg, .session-card-icon svg, .portal-list-row__icon svg { width: 22px; height: 22px; }
/* Varianty štítků a hlášení, které skládají helpery a datové části */
.portal-badge--pending { background: var(--warn-tint); color: var(--warn); }
.portal-badge--completed { background: var(--ok-tint); color: var(--ok); }
.portal-badge--cancelled { background: #EEF0F6; color: #6B7090; }
.portal-badge--rec { background: var(--purple-tint); color: var(--purple-dark); }
.portal-badge--norec { background: #EEF0F6; color: #6B7090; }
.portal-alert--ok { background: var(--ok-tint); border-color: #C3E8DA; color: #0E5E49; }
.portal-alert--warn { background: var(--warn-tint); border-color: #F4DDB8; color: #7A4C0E; }
.portal-alert--err, .portal-alert--error { background: var(--danger-tint); border-color: #EBC3CD; color: #8E1F3A; }
.portal-alert--info { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep); }
/* Řádek termínu */
.portal-appointment-row__meta { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; justify-content: flex-end; }
.portal-appointment-link { display: inline-flex; align-items: center; gap: 6px; padding: 6px 12px; border-radius: 999px; border: 1px solid var(--line-strong); background: #fff; font-size: 13.5px; font-weight: 800; color: var(--blue-deep); text-decoration: none; }
.portal-appointment-link:hover { border-color: var(--teal); }
.portal-appointment-row .portal-early-performance, .portal-appointment-row .portal-cancellation-agreement { flex-basis: 100%; }
.portal-section-links { display: flex; flex-wrap: wrap; gap: 6px; margin: -6px 0 18px; }
.portal-section-links a { padding: 7px 14px; border-radius: 999px; font-weight: 700; font-size: 14.5px; color: var(--text-light); text-decoration: none; background: #fff; border: 1px solid var(--line); }
.portal-section-links a[aria-current] { background: var(--blue-tint); border-color: var(--blue-tint); color: var(--blue-deep); }

/* Ikony – měkký symbol (AppIcon, Design::ico): průsvitná výplň uzavřených tvarů. Na barevném podkladu tón z barvy ikony. */
svg .f { fill: var(--ai-f, rgba(26, 182, 174, .22)); }
svg .f2 { fill: var(--ai-f2, rgba(172, 65, 152, .2)); }
:is(.b-band, .b-tile, .b-ico--grad, .sys-orb .core, .au-art, .btn--primary, .btn-primary, .is-primary) svg { --ai-f: color-mix(in srgb, currentColor 24%, transparent); --ai-f2: color-mix(in srgb, currentColor 16%, transparent); }
/* Ikony portálu ze sady AppIcon: tah sady místo 1.9 z dosavadních stylů portálu. */
svg.portal-icon { stroke-width: 1.6; }

/* =========================================================
   Grafické opravy portálu podle kontroly 15. 10. 2026
   ========================================================= */
/* Čerpání spolupráce: název sezení má přednost, stav se na úzké šířce zalomí pod něj */
.v2 .portal-session { align-items: center; }
.v2 .portal-session__content { flex: 1 1 12rem; min-width: 0; }
.v2 .portal-session__state { margin-left: auto; text-align: right; }
.portal-session__mark { width: 20px; height: 20px; display: grid; place-items: center; font-size: 11px; font-weight: 900; line-height: 1; background: var(--bg-light); color: #8A8FB0; }
.portal-session--completed .portal-session__mark { background: var(--ok-tint); color: var(--ok); }
.portal-session--scheduled .portal-session__mark, .portal-session--requested .portal-session__mark { background: var(--blue-tint); color: var(--blue-deep); }
.portal-session--no_show .portal-session__mark { background: var(--danger-tint); color: var(--danger); }
/* Ukazatel čerpání: výplň podle podílu */
.portal-progress { overflow: hidden; }
.portal-progress span { display: block; height: 100%; border-radius: inherit; background: var(--gradient-contact); }
/* Stav budoucího termínu se liší od proběhlého */
.portal-badge--confirmed { background: var(--blue-tint); color: var(--blue-deep); }
/* Platby: stav úhrady jako barevný údaj */
.portal-pay-state { font-weight: 800; }
.portal-pay-state--paid { color: var(--ok); }
.portal-pay-state--pending, .portal-pay-state--issued { color: var(--warn); }
.portal-pay-state--cancelled, .portal-pay-state--refunded { color: #6B7090; }
/* Souhlasy: platné zeleně, chybějící červeně */
.consent-status-row .is-granted, .consent-history-row .is-granted { color: var(--ok); }
.consent-status-row .is-missing, .consent-history-row .is-missing { color: var(--danger); }
/* Seznam sezení se na telefonu nevylije z obrazovky */
.session-card { min-width: 0; }
.portal-dashboard-grid > *, .sessions-timeline > * { min-width: 0; }
/* Odpověď na návrh termínu */
.proposal-slot { display: flex; align-items: center; gap: 12px; padding: 12px 16px; border: 1.5px solid var(--line-strong); border-radius: 14px; font-weight: 800; color: var(--blue-deep); cursor: pointer; max-width: 420px; }
.proposal-slot:has(input:checked) { border-color: var(--purple); background: var(--purple-tint); }
.proposal-slot input, .proposal-confirm input { width: 20px; height: 20px; margin: 0; accent-color: var(--purple); flex: none; }
.proposal-option { margin-top: 14px; border-top: 1px solid var(--line); padding-top: 12px; }
.proposal-option form { display: grid; gap: 12px; justify-items: start; margin-top: 10px; }
.proposal-confirm { display: flex; align-items: center; gap: 10px; font-weight: 700; color: var(--blue-deep); cursor: pointer; }
/* Rozbalovací části v portálu se šipkou místo systémového trojúhelníku */
.p-main details:not(.p-menu) > summary { cursor: pointer; list-style: none; display: inline-flex; align-items: center; gap: 8px; font-weight: 800; color: var(--blue-deep); }
.p-main details:not(.p-menu) > summary::-webkit-details-marker { display: none; }
.p-main details:not(.p-menu) > summary::before { content: ""; width: 7px; height: 7px; border-right: 2px solid currentColor; border-bottom: 2px solid currentColor; transform: rotate(-45deg); transition: transform .2s var(--ease); flex: none; }
.p-main details[open]:not(.p-menu) > summary::before { transform: rotate(45deg); }
/* Rozhodnutí o zahájení programu: přehled jako dvojice štítek – hodnota */
.package-contract-summary { display: grid; border: 1px solid var(--line); border-radius: 16px; overflow: hidden; margin: 18px 0 0; }
.package-contract-summary > div { display: grid; grid-template-columns: minmax(8rem, 14rem) minmax(0, 1fr); gap: 4px 18px; padding: 10px 16px; }
.package-contract-summary > div + div { border-top: 1px solid var(--line); }
.package-contract-summary dt { font-size: 13.5px; font-weight: 800; color: var(--text-light); }
.package-contract-summary dd { margin: 0; color: var(--blue-deep); font-weight: 700; overflow-wrap: anywhere; }
@media (max-width: 560px) { .package-contract-summary > div { grid-template-columns: minmax(0, 1fr); } }
div.package-contract-status { display: grid; gap: 4px; padding: 14px 16px; border-radius: 16px; font-size: 14.5px; }
div.package-contract-status p { margin: 0; font-weight: 600; }
/* Dokumenty: jeden řádek = jeden odkaz, bez karty v kartě */
.portal-document-list > li:has(> .portal-link-row) { display: block; padding: 0; border: 0; background: none; box-shadow: none; }
.portal-document-list > li > .portal-link-row { width: 100%; }
/* Vstupní dotazník a faktura ve vzhledu portálu (starší styly intake.css a billing.css) */
.portal-body .intake-page { color: var(--text); }
.portal-body .intake-page .intake-card { border-color: var(--line); border-radius: 24px; }
.portal-body .intake-page .btn { display: inline-flex; align-items: center; justify-content: center; min-height: 48px; padding: 0 22px; border-radius: 999px; border: 1.5px solid var(--line-strong); background: #fff; color: var(--blue-deep); font-weight: 800; }
.portal-body .intake-page .btn--primary { background: var(--purple); border-color: transparent; color: #fff; }
.portal-body .intake-page .btn--danger { color: var(--danger); border-color: #EBC3CD; }
.portal-body .billing-button { display: inline-flex; align-items: center; min-height: 48px; padding: 0 22px; border-radius: 999px; background: var(--purple); color: #fff; font-weight: 800; text-decoration: none; }
/* Rezervace v portálu: nadpisy ve vzhledu portálu, karta s vnitřním odsazením */
.portal-body .booking-panel-title, .portal-body .booking-request-note strong { color: var(--blue-deep); }
.portal-body .booking-card--portal { padding: clamp(18px, 3vw, 28px); }
.portal-package-stack > *, .portal-package-row, .portal-package-row > *, .portal-session-list > li { min-width: 0; }
.portal-badge-stack .pill { white-space: normal; max-width: 100%; }
.portal-body .booking-availability__head h2, .portal-body .booking-panel-head h2 { color: var(--blue-deep); }
/* Seznam sezení na telefonu: stav a šipka pod názvem, název bez lámání uprostřed slova */
.session-card-title, .session-card-meta { overflow-wrap: break-word; hyphens: auto; }
@media (max-width: 480px) {
  .session-card { flex-wrap: wrap; row-gap: 8px; }
  .session-card-info { flex: 1 1 calc(100% - 60px); }
  .session-card > .pill { margin-left: 58px; }
  .session-card > .session-card-chevron { margin-left: auto; }
}
/* Řádky portálu: text má přednost, štítek se na úzké šířce zalomí pod něj (nepřekrývá se s textem) */
.portal-list-row__body, .portal-appointment-row__body, .portal-payment-row__body, .portal-link-row__content { flex: 1 1 10rem; }

/* ---------- Drobnosti z grafické kontroly 15. 10. 2026 (2. sada) ---------- */
/* Registrace: odkazy na podmínky s odstupem od tlačítka */
.au-note + .au-cta { margin-top: 18px; }
/* Stránky z odkazů v e-mailu: horní lišta stejně široká jako karta */
body:has(.tk-main > .tk-card:not(.tk-card--wide)) .tk-head { width: min(100% - 32px, 720px); }
body:has(.tk-main > .tk-card--wide) .tk-head { width: min(100% - 32px, 880px); }

/* ---------- Drobnosti portálu 15. 10. 2026 (3. sada) ---------- */
/* Tokeny nového vzhledu platí i na stránkách, které po nich načítají starý variables.css
   (Platby, Rezervace, Dotazník): stejný přechod avataru a stíny karet jako jinde v portálu */
.portal-body {
  --gradient-contact: linear-gradient(120deg, #1A8EBB 0%, #38459C 45%, #753E93 100%);
  --shadow-md: 0 1px 2px rgba(42, 52, 120, .05), 0 16px 34px -22px rgba(42, 52, 120, .38);
  --shadow-lg: 0 1px 2px rgba(42, 52, 120, .06), 0 30px 60px -32px rgba(42, 52, 120, .45);
}
/* Kalendářní štítek data jednou podobou: měsíc ve fialovém pruhu nahoře, den pod ním (jako na přehledu) */
.portal-body .portal-date-chip { display: flex; flex-direction: column; align-items: stretch; width: 58px; min-width: 58px; padding: 0; border-radius: 14px; overflow: hidden; border: 1px solid var(--line); background: #fff; text-align: center; line-height: 1; flex: none; }
.portal-body .portal-date-chip span { order: -1; display: block; background: var(--purple); color: #fff; font-size: 11px; font-weight: 800; text-transform: uppercase; letter-spacing: .04em; padding: 4px 0; }
.portal-body .portal-date-chip strong { display: block; font-size: 22px; font-weight: 900; color: var(--blue-deep); padding: 6px 0 7px; }
/* Detail platby: jedna karta místo karty v kartě */
.portal-body .p-card:has(> div > .p-card) { background: none; border: 0; box-shadow: none; padding: 0; }
/* Přehrávač nahrávky se zaoblenými rohy (starý styl odkazoval na nedefinovaný --radius-xl) */
.portal-body .audio-player-wrap { border-radius: 16px; }
/* Záhlaví stránek: nadtitulek 12,5 px s mezerou 6 px nad nadpisem (pravidlo .p-greet p ho zvětšovalo na 17 px) */
.p-greet .eyebrow { font-size: 12.5px; margin: 0 0 6px; }
/* Vstupní dotazník: nadpis a nadtitulek ve stejné velikosti jako ostatní stránky portálu */
.portal-body .intake-heading h1 { font-size: clamp(28px, 3vw, 40px); line-height: 1.1; margin-top: 6px; }
.portal-body .intake-heading p:first-child { font-size: 12.5px; }
/* Textové odkazy v obsahu jedním vzorem: modré, tučné, podtržené (jako .link-inline / .portal-see-all) */
.p-main .portal-empty-cta { color: var(--blue); font-weight: 800; text-decoration: underline; text-underline-offset: 3px; }
.p-main :is(.consent-doc-links, .form-privacy-note) a { color: var(--blue); font-weight: 700; text-decoration: underline; text-underline-offset: 3px; }
.p-main .link { text-decoration: underline; text-underline-offset: 3px; }
.p-main .link::after { content: none; }
/* Přehled na mobilu: Další otevřené kroky – tlačítko se zalomí pod text, text nemá úzký sloupec */
.steps-list li { flex-wrap: wrap; justify-content: space-between; }
.steps-list li > span { flex: 1 1 12rem; }
.steps-list li .btn { margin-left: 0; }
/* Platby v Moje spolupráce: štítek bez horního okraje (na počítači na střed, na mobilu 12 px pod textem) */
.portal-payment-row > .portal-payment-row__actions { margin-top: 0; }
