/* ===== Lékárničky – design systém ===== */
:root {
  --brand: #D6001C;
  --brand-600: #B80018;
  --brand-50: #FDECEE;
  --ink: #1D1D1B;
  --ink-2: #4A4845;
  --muted: #7A7671;
  --line: #E6E3DE;
  --bg: #F4F3F1;
  --surface: #FFFFFF;
  --surface-2: #FAF9F7;
  --ok: #1E9E5A;
  --ok-50: #E7F6EE;
  --warn: #E58A00;
  --warn-50: #FFF3DF;
  --crit: #D6001C;
  --crit-50: #FDECEE;
  --info: #2B6CB0;
  --info-50: #E8F1FB;
  --radius: 16px;
  --radius-sm: 10px;
  --shadow: 0 1px 2px rgba(29, 29, 27, .06), 0 4px 16px rgba(29, 29, 27, .06);
  --shadow-lg: 0 10px 40px rgba(29, 29, 27, .18);
  --sidebar: 252px;
  --topbar: 60px;
  --bottombar: 68px;
  --safe-b: env(safe-area-inset-bottom, 0px);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  color-scheme: light;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: var(--font); background: var(--bg); color: var(--ink); font-size: 15px; line-height: 1.45; -webkit-tap-highlight-color: transparent; }
img { max-width: 100%; display: block; }
a { color: inherit; }
button, input, select, textarea { font: inherit; color: inherit; }
h1, h2, h3, h4 { margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 24px; font-weight: 800; }
h2 { font-size: 18px; font-weight: 750; }
h3 { font-size: 15px; font-weight: 700; }
p { margin: 0; }
.muted { color: var(--muted); }
.small { font-size: 13px; }
.tiny { font-size: 12px; }
.nowrap { white-space: nowrap; }
.ellipsis { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.hidden { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }

/* ===== Layout ===== */
.app { min-height: 100dvh; }
.topbar {
  position: sticky; top: 0; z-index: 40; height: var(--topbar);
  display: flex; align-items: center; gap: 12px; padding: 0 16px;
  background: rgba(255, 255, 255, .92); backdrop-filter: saturate(1.4) blur(12px);
  border-bottom: 1px solid var(--line);
}
.topbar .logo { height: 26px; width: auto; }
.topbar .title { font-weight: 750; font-size: 16px; flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.topbar .back { margin-left: -8px; }
.icon-btn {
  position: relative; display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px;
  border: 0; background: transparent; cursor: pointer; color: var(--ink); text-decoration: none; flex: none;
}
.icon-btn:hover { background: var(--bg); }
.icon-btn svg { width: 22px; height: 22px; }
.dot-badge { position: absolute; top: 6px; right: 6px; min-width: 18px; height: 18px; padding: 0 5px; border-radius: 9px; background: var(--brand); color: #fff; font-size: 11px; font-weight: 700; display: grid; place-items: center; border: 2px solid #fff; }

.sidebar { display: none; }
.main { padding: 16px 16px calc(var(--bottombar) + var(--safe-b) + 24px); max-width: 1280px; margin: 0 auto; }
.main.no-pad { padding: 0; max-width: none; }

.bottombar {
  position: fixed; left: 0; right: 0; bottom: 0; z-index: 45;
  height: calc(var(--bottombar) + var(--safe-b)); padding-bottom: var(--safe-b);
  display: grid; grid-template-columns: repeat(5, 1fr); align-items: stretch;
  background: rgba(255, 255, 255, .96); backdrop-filter: blur(12px); border-top: 1px solid var(--line);
}
.bottombar a { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 3px; font-size: 11px; font-weight: 600; color: var(--muted); text-decoration: none; position: relative; }
.bottombar a svg { width: 23px; height: 23px; }
.bottombar a.active { color: var(--brand); }
.bottombar a.scan-btn > span.fab {
  width: 58px; height: 58px; margin-top: -26px; border-radius: 50%; display: grid; place-items: center;
  background: var(--brand); color: #fff; box-shadow: 0 6px 18px rgba(214, 0, 28, .45); border: 4px solid #fff; transition: transform .15s;
}
.bottombar a.scan-btn:active > span.fab { transform: scale(.94); }
.bottombar a.scan-btn svg { width: 26px; height: 26px; }
.bottombar .dot-badge { top: 4px; right: calc(50% - 22px); }

@media (min-width: 1024px) {
  .app.has-sidebar { display: grid; grid-template-columns: var(--sidebar) 1fr; }
  .app.has-sidebar .bottombar { display: none; }
  .app.has-sidebar .main { padding: 24px 32px 48px; width: 100%; min-width: 0; }
  .app.has-sidebar .main.no-pad { padding: 0; }
  .app.has-sidebar .topbar .logo, .app.has-sidebar .topbar .menu-only { display: none; }
  .sidebar {
    display: flex; flex-direction: column; position: sticky; top: 0; height: 100dvh; overflow-y: auto;
    background: var(--ink); color: #EDEBE8; padding: 18px 12px; grid-row: 1 / span 2;
  }
  .sidebar .brand { display: flex; align-items: center; gap: 10px; padding: 6px 10px 20px; }
  .sidebar .brand img { height: 30px; background: #fff; border-radius: 6px; padding: 4px 8px; }
  .sidebar nav { display: flex; flex-direction: column; gap: 2px; }
  .sidebar .group { font-size: 11px; text-transform: uppercase; letter-spacing: .08em; color: #8E8A84; margin: 16px 12px 6px; }
  .sidebar a { display: flex; align-items: center; gap: 12px; padding: 10px 12px; border-radius: 10px; color: #D9D6D1; text-decoration: none; font-weight: 550; position: relative; }
  .sidebar a svg { width: 20px; height: 20px; opacity: .85; }
  .sidebar a:hover { background: rgba(255, 255, 255, .06); color: #fff; }
  .sidebar a.active { background: var(--brand); color: #fff; }
  .sidebar a .count { margin-left: auto; background: var(--brand); color: #fff; border-radius: 10px; font-size: 11px; font-weight: 700; padding: 1px 7px; }
  .sidebar a.active .count { background: #fff; color: var(--brand); }
  .sidebar .me { margin-top: auto; padding: 12px; border-radius: 12px; background: rgba(255, 255, 255, .05); display: flex; align-items: center; gap: 10px; text-decoration: none; }
  .sidebar .me .avatar { background: #3A3835; }
}

/* ===== Komponenty ===== */
.page-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 12px; margin: 4px 0 16px; flex-wrap: wrap; }
.page-head .sub { color: var(--muted); margin-top: 4px; }
.page-head .actions { display: flex; gap: 8px; flex-wrap: wrap; }

.card { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 16px; }
.card + .card { margin-top: 12px; }
.card-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 12px; }
.card-head a { font-size: 13px; color: var(--brand); text-decoration: none; font-weight: 600; }
.card.flush { padding: 0; overflow: hidden; }
.grid { display: grid; gap: 12px; }
.grid-2 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .grid-2 { grid-template-columns: 1fr 1fr; } }
.grid-3 { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 900px) { .grid-3 { grid-template-columns: 2fr 1fr; } }
.stack { display: flex; flex-direction: column; gap: 12px; }
.row { display: flex; align-items: center; gap: 10px; }
.row.wrap { flex-wrap: wrap; }
.spacer { flex: 1; }

.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 44px; padding: 0 16px;
  border-radius: 12px; border: 1px solid var(--line); background: var(--surface); color: var(--ink);
  font-weight: 650; cursor: pointer; text-decoration: none; white-space: nowrap; transition: transform .08s, background .15s, box-shadow .15s;
}
.btn:hover { background: var(--surface-2); }
.btn:active { transform: scale(.98); }
.btn svg { width: 19px; height: 19px; flex: none; }
.btn-primary { background: var(--brand); border-color: var(--brand); color: #fff; box-shadow: 0 4px 14px rgba(214, 0, 28, .25); }
.btn-primary:hover { background: var(--brand-600); }
.btn-dark { background: var(--ink); border-color: var(--ink); color: #fff; }
.btn-dark:hover { background: #33312E; }
.btn-ok { background: var(--ok); border-color: var(--ok); color: #fff; }
.btn-ghost { background: transparent; border-color: transparent; }
.btn-ghost:hover { background: rgba(0, 0, 0, .04); }
.btn-danger { color: var(--crit); border-color: #F3C3C9; }
.btn-danger:hover { background: var(--crit-50); }
.btn-sm { height: 34px; padding: 0 12px; border-radius: 10px; font-size: 13px; }
.btn-lg { height: 54px; font-size: 16px; border-radius: 14px; padding: 0 22px; }
.btn-block { width: 100%; }
.btn[disabled] { opacity: .5; pointer-events: none; }
.btn.loading { pointer-events: none; opacity: .75; }
.btn.loading::after { content: ""; width: 16px; height: 16px; border: 2px solid currentColor; border-right-color: transparent; border-radius: 50%; animation: spin .7s linear infinite; }

.chips { display: flex; gap: 8px; overflow-x: auto; padding-bottom: 2px; scrollbar-width: none; }
.chips::-webkit-scrollbar { display: none; }
.chip {
  display: inline-flex; align-items: center; gap: 6px; height: 36px; padding: 0 14px; border-radius: 18px; border: 1px solid var(--line);
  background: var(--surface); font-weight: 600; font-size: 13px; cursor: pointer; white-space: nowrap; color: var(--ink-2); text-decoration: none;
}
.chip.active { background: var(--ink); border-color: var(--ink); color: #fff; }
.chip .n { background: rgba(0, 0, 0, .08); border-radius: 9px; padding: 0 7px; font-size: 12px; }
.chip.active .n { background: rgba(255, 255, 255, .2); }

.badge { display: inline-flex; align-items: center; gap: 5px; height: 24px; padding: 0 9px; border-radius: 12px; font-size: 12px; font-weight: 700; white-space: nowrap; background: var(--bg); color: var(--ink-2); }
.badge::before { content: ""; width: 7px; height: 7px; border-radius: 50%; background: currentColor; }
.badge.plain::before { display: none; }
.badge.ok { background: var(--ok-50); color: var(--ok); }
.badge.warning { background: var(--warn-50); color: #B86E00; }
.badge.critical { background: var(--crit-50); color: var(--crit); }
.badge.info { background: var(--info-50); color: var(--info); }

.status-dot { width: 10px; height: 10px; border-radius: 50%; flex: none; background: var(--ok); }
.status-dot.warning { background: var(--warn); }
.status-dot.critical { background: var(--crit); box-shadow: 0 0 0 0 rgba(214, 0, 28, .5); animation: pulse-dot 1.6s infinite; }

.avatar { width: 36px; height: 36px; border-radius: 50%; background: var(--brand-50); color: var(--brand); display: grid; place-items: center; font-weight: 750; font-size: 13px; flex: none; }

/* ===== Formuláře ===== */
.field { display: flex; flex-direction: column; gap: 6px; }
.field > label, .label { font-size: 13px; font-weight: 650; color: var(--ink-2); }
.field .hint { font-size: 12px; color: var(--muted); }
.input, .select, .textarea {
  width: 100%; height: 46px; padding: 0 14px; border-radius: 12px; border: 1px solid var(--line); background: var(--surface);
  outline: none; transition: border-color .15s, box-shadow .15s; font-size: 16px;
}
.textarea { height: auto; min-height: 88px; padding: 12px 14px; resize: vertical; }
.input:focus, .select:focus, .textarea:focus { border-color: var(--ink); box-shadow: 0 0 0 3px rgba(29, 29, 27, .08); }
.form { display: flex; flex-direction: column; gap: 14px; }
.form-row { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.form-row.three { grid-template-columns: 1fr 1fr 1fr; }
@media (max-width: 520px) { .form-row.three { grid-template-columns: 1fr 1fr; } }
.check { display: flex; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 12px; cursor: pointer; background: var(--surface); }
.check input { width: 20px; height: 20px; accent-color: var(--brand); }
.checks { display: flex; flex-wrap: wrap; gap: 8px; }
.switch { position: relative; display: inline-block; width: 46px; height: 28px; flex: none; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: #CFCBC5; border-radius: 14px; transition: .2s; cursor: pointer; }
.switch span::before { content: ""; position: absolute; width: 22px; height: 22px; left: 3px; top: 3px; background: #fff; border-radius: 50%; transition: .2s; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.switch input:checked + span { background: var(--ok); }
.switch input:checked + span::before { transform: translateX(18px); }

.stepper { display: inline-flex; align-items: center; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--surface); }
.stepper button { width: 40px; height: 40px; border: 0; background: transparent; font-size: 20px; font-weight: 700; cursor: pointer; display: grid; place-items: center; }
.stepper button:active { background: var(--bg); }
.stepper input { width: 46px; height: 40px; border: 0; text-align: center; font-weight: 750; font-size: 17px; outline: none; -moz-appearance: textfield; }
.stepper input::-webkit-inner-spin-button { -webkit-appearance: none; }

.segmented { display: inline-flex; background: #E9E6E1; border-radius: 12px; padding: 3px; gap: 2px; }
.segmented button { border: 0; background: transparent; height: 36px; padding: 0 14px; border-radius: 10px; font-weight: 650; font-size: 13px; cursor: pointer; color: var(--ink-2); }
.segmented button.active { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0, 0, 0, .12); }

.search { position: relative; }
.search svg { position: absolute; left: 13px; top: 50%; transform: translateY(-50%); width: 19px; height: 19px; color: var(--muted); }
.search .input { padding-left: 42px; }

/* ===== Seznamy ===== */
.list { display: flex; flex-direction: column; }
.list-item { display: flex; align-items: center; gap: 12px; padding: 12px 16px; text-decoration: none; color: inherit; border-top: 1px solid var(--line); cursor: pointer; }
.list-item:first-child { border-top: 0; }
.list-item:hover { background: var(--surface-2); }
.list-item .body { flex: 1; min-width: 0; }
.list-item .title { font-weight: 650; }
.list-item .meta { font-size: 13px; color: var(--muted); }
.list-item > svg.chev { width: 18px; height: 18px; color: #B7B2AB; flex: none; }

.thumb { width: 52px; height: 52px; border-radius: 12px; object-fit: cover; background: var(--bg); flex: none; }
.thumb.sm { width: 40px; height: 40px; border-radius: 10px; }
.thumb.lg { width: 76px; height: 76px; border-radius: 14px; }
.thumb-ph { display: grid; place-items: center; color: #fff; font-weight: 800; font-size: 16px; }

.empty { text-align: center; padding: 40px 16px; color: var(--muted); }
.empty svg { width: 48px; height: 48px; color: #CFCBC5; margin: 0 auto 10px; display: block; }
.empty h3 { color: var(--ink); margin-bottom: 4px; }

.table-wrap { overflow-x: auto; }
table.table { width: 100%; border-collapse: collapse; font-size: 14px; }
.table th { text-align: left; font-size: 12px; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 700; padding: 10px 12px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 12px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.clickable { cursor: pointer; }
.table tr.clickable:hover td { background: var(--surface-2); }

.tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--line); margin-bottom: 16px; overflow-x: auto; scrollbar-width: none; }
.tabs button { border: 0; background: transparent; padding: 12px 14px; font-weight: 650; color: var(--muted); cursor: pointer; border-bottom: 3px solid transparent; margin-bottom: -1px; white-space: nowrap; }
.tabs button.active { color: var(--ink); border-bottom-color: var(--brand); }

/* ===== KPI ===== */
.kpis { display: grid; gap: 12px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 760px) { .kpis { grid-template-columns: repeat(4, 1fr); } }
.kpi { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px 16px; text-decoration: none; color: inherit; position: relative; overflow: hidden; display: block; transition: transform .15s, box-shadow .15s; }
.kpi:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kpi .v { font-size: 30px; font-weight: 800; letter-spacing: -.02em; }
.kpi .l { font-size: 13px; color: var(--muted); font-weight: 600; }
.kpi .ic { position: absolute; right: 12px; top: 12px; width: 36px; height: 36px; border-radius: 10px; display: grid; place-items: center; }
.kpi .ic svg { width: 20px; height: 20px; }
.kpi.ok .ic { background: var(--ok-50); color: var(--ok); }
.kpi.warning .ic { background: var(--warn-50); color: var(--warn); }
.kpi.critical .ic { background: var(--crit-50); color: var(--crit); }
.kpi.info .ic { background: var(--info-50); color: var(--info); }
.kpi.critical .v { color: var(--crit); }

/* ===== Lékárničky ===== */
.kit-card { display: flex; gap: 12px; align-items: stretch; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; text-decoration: none; color: inherit; position: relative; overflow: hidden; transition: transform .15s, box-shadow .15s; }
.kit-card:hover { transform: translateY(-2px); box-shadow: var(--shadow-lg); }
.kit-card::before { content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 5px; background: var(--ok); }
.kit-card.warning::before { background: var(--warn); }
.kit-card.critical::before { background: var(--crit); }
.kit-card .kbody { flex: 1; min-width: 0; }
.kit-card .klabel { font-size: 12px; font-weight: 800; color: var(--brand); letter-spacing: .04em; }
.kit-card .kname { font-weight: 700; font-size: 16px; }
.kit-card .kloc { font-size: 13px; color: var(--muted); }
.kit-card .kissues { margin-top: 8px; display: flex; flex-direction: column; gap: 3px; font-size: 13px; }
.kit-card .kissues div { display: flex; gap: 6px; align-items: baseline; }
.kit-card .kissues .status-dot { width: 7px; height: 7px; transform: translateY(-1px); animation: none; }
.kit-grid { display: grid; gap: 12px; grid-template-columns: 1fr; }
@media (min-width: 760px) { .kit-grid { grid-template-columns: 1fr 1fr; } }
@media (min-width: 1280px) { .kit-grid { grid-template-columns: 1fr 1fr 1fr; } }

.kit-hero { background: var(--ink); color: #fff; border-radius: var(--radius); padding: 18px; position: relative; overflow: hidden; }
.kit-hero::after { content: ""; position: absolute; right: -40px; top: -40px; width: 180px; height: 180px; border-radius: 50%; background: radial-gradient(circle, rgba(214, 0, 28, .55), transparent 70%); }
.kit-hero .klabel { color: #FF8C99; font-weight: 800; font-size: 13px; letter-spacing: .05em; }
.kit-hero h1 { font-size: 22px; margin: 2px 0 4px; }
.kit-hero .loc { color: #CFCBC5; font-size: 14px; display: flex; align-items: center; gap: 6px; }
.kit-hero .loc svg { width: 16px; height: 16px; }
.kit-hero > * { position: relative; z-index: 1; }
.kit-hero .photo { position: absolute; inset: 0; z-index: 0; opacity: .25; object-fit: cover; width: 100%; height: 100%; }
.quick-actions { display: grid; grid-template-columns: repeat(4, 1fr); gap: 8px; margin-top: 14px; }
.quick-actions .btn { height: auto; padding: 10px 4px; flex-direction: column; gap: 4px; font-size: 12px; background: rgba(255, 255, 255, .08); border-color: rgba(255, 255, 255, .12); color: #fff; }
.quick-actions .btn:hover { background: rgba(255, 255, 255, .16); }
.quick-actions .btn.primary { background: var(--brand); border-color: var(--brand); }
.quick-actions .btn svg { width: 22px; height: 22px; }

.item-row { display: flex; gap: 12px; padding: 12px 0; border-top: 1px solid var(--line); align-items: flex-start; }
.item-row:first-child { border-top: 0; }
.item-row .body { flex: 1; min-width: 0; }
.qtybar { height: 6px; border-radius: 3px; background: var(--bg); overflow: hidden; margin: 6px 0; max-width: 220px; }
.qtybar > i { display: block; height: 100%; background: var(--ok); border-radius: 3px; transition: width .6s cubic-bezier(.2, .8, .2, 1); }
.qtybar.warning > i { background: var(--warn); }
.qtybar.critical > i { background: var(--crit); }
.batches { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 4px; }
.batch { font-size: 12px; font-weight: 650; padding: 3px 8px; border-radius: 8px; background: var(--bg); color: var(--ink-2); }
.batch.warning { background: var(--warn-50); color: #B86E00; }
.batch.critical { background: var(--crit-50); color: var(--crit); }

/* ===== Veřejný odběr ===== */
.emergency { display: flex; align-items: center; gap: 12px; background: var(--crit-50); border: 1px solid #F6C6CC; color: #8F0013; border-radius: var(--radius); padding: 12px 14px; font-size: 13px; }
.emergency a.call { flex: none; display: inline-flex; align-items: center; gap: 6px; background: var(--brand); color: #fff; font-weight: 800; padding: 10px 14px; border-radius: 12px; text-decoration: none; font-size: 16px; }
.emergency a.call svg { width: 18px; height: 18px; }
.take-grid { display: grid; gap: 10px; grid-template-columns: repeat(2, 1fr); }
@media (min-width: 640px) { .take-grid { grid-template-columns: repeat(3, 1fr); } }
@media (min-width: 1024px) { .take-grid { grid-template-columns: repeat(4, 1fr); } }
.take-card { position: relative; background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 10px; display: flex; flex-direction: column; gap: 8px; cursor: pointer; border: 2px solid transparent; transition: transform .12s, border-color .15s, box-shadow .15s; user-select: none; }
.take-card:active { transform: scale(.97); }
.take-card.selected { border-color: var(--brand); box-shadow: 0 6px 20px rgba(214, 0, 28, .18); }
.take-card img, .take-card .thumb-ph { width: 100%; aspect-ratio: 1; border-radius: 12px; object-fit: cover; background: var(--bg); }
.take-card .tname { font-weight: 650; font-size: 13.5px; line-height: 1.25; min-height: 34px; }
.take-card .tqty { font-size: 12px; color: var(--muted); display: flex; justify-content: space-between; align-items: center; }
.take-card .sel { position: absolute; top: 6px; right: 6px; min-width: 34px; height: 34px; padding: 0 8px; border-radius: 17px; background: var(--brand); color: #fff; font-weight: 800; display: grid; place-items: center; transform: scale(0); transition: transform .25s cubic-bezier(.3, 1.6, .5, 1); box-shadow: 0 3px 10px rgba(214, 0, 28, .4); }
.take-card.selected .sel { transform: scale(1); }
.take-card.empty-stock { opacity: .55; }
.take-card .minus { position: absolute; top: 6px; left: 6px; width: 34px; height: 34px; border-radius: 50%; background: #fff; border: 1px solid var(--line); display: none; place-items: center; font-weight: 800; font-size: 20px; box-shadow: var(--shadow); }
.take-card.selected .minus { display: grid; }

.sticky-cta { position: fixed; left: 0; right: 0; bottom: calc(var(--bottombar) + var(--safe-b)); padding: 12px 16px; z-index: 44; background: linear-gradient(to top, var(--bg) 70%, transparent); transform: translateY(130%); transition: transform .3s cubic-bezier(.2, .9, .3, 1.1); }
.sticky-cta.show { transform: none; }
.sticky-cta .btn { max-width: 560px; margin: 0 auto; display: flex; }
@media (min-width: 1024px) { .app.has-sidebar .sticky-cta { left: var(--sidebar); bottom: 0; } }
.app:not(.has-bottombar) .sticky-cta { bottom: 0; padding-bottom: calc(12px + var(--safe-b)); }

.success-anim { display: grid; place-items: center; padding: 30px 0 10px; }
.success-anim svg { width: 110px; height: 110px; }
.success-anim circle { stroke: var(--ok); stroke-width: 4; fill: none; stroke-dasharray: 300; stroke-dashoffset: 300; animation: draw .6s ease-out forwards; }
.success-anim path { stroke: var(--ok); stroke-width: 6; fill: none; stroke-linecap: round; stroke-linejoin: round; stroke-dasharray: 80; stroke-dashoffset: 80; animation: draw .4s .5s ease-out forwards; }

/* ===== Landing ===== */
.landing { max-width: 560px; margin: 0 auto; }
.landing .hero { text-align: center; padding: 24px 0 18px; }
.landing .hero img { height: 40px; margin: 0 auto 18px; }
.landing .hero h1 { font-size: 28px; }
.tiles { display: grid; gap: 12px; grid-template-columns: 1fr 1fr; }
.tile { background: var(--surface); border-radius: 20px; box-shadow: var(--shadow); padding: 18px; display: flex; flex-direction: column; gap: 10px; text-decoration: none; color: inherit; min-height: 140px; transition: transform .15s, box-shadow .15s; animation: rise .5s both; }
.tile:hover { transform: translateY(-3px); box-shadow: var(--shadow-lg); }
.tile .ic { width: 48px; height: 48px; border-radius: 14px; display: grid; place-items: center; background: var(--brand-50); color: var(--brand); }
.tile .ic svg { width: 26px; height: 26px; }
.tile strong { font-size: 16px; }
.tile span { font-size: 13px; color: var(--muted); }
.tile.big { grid-column: 1 / -1; flex-direction: row; align-items: center; background: var(--brand); color: #fff; min-height: 110px; }
.tile.big .ic { background: rgba(255, 255, 255, .18); color: #fff; width: 64px; height: 64px; border-radius: 18px; }
.tile.big .ic svg { width: 34px; height: 34px; }
.tile.big span { color: rgba(255, 255, 255, .85); }
.tile:nth-child(2) { animation-delay: .06s; } .tile:nth-child(3) { animation-delay: .12s; } .tile:nth-child(4) { animation-delay: .18s; } .tile:nth-child(5) { animation-delay: .24s; }

/* ===== Skener ===== */
.scanner { position: fixed; inset: 0; z-index: 60; background: #000; color: #fff; display: flex; flex-direction: column; }
.scanner video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; }
.scanner .shade { position: absolute; inset: 0; pointer-events: none; }
.scanner .frame { position: absolute; left: 50%; top: 45%; width: min(70vw, 300px); aspect-ratio: 1; transform: translate(-50%, -50%); border-radius: 28px; box-shadow: 0 0 0 100vmax rgba(0, 0, 0, .55); }
.scanner .frame::before, .scanner .frame::after { content: ""; position: absolute; inset: -3px; border-radius: 30px; border: 4px solid transparent; border-top-color: #fff; border-bottom-color: #fff; -webkit-mask: linear-gradient(90deg, #000 18%, transparent 18% 82%, #000 82%); mask: linear-gradient(90deg, #000 18%, transparent 18% 82%, #000 82%); }
.scanner .frame::after { border-color: transparent; border-left-color: #fff; border-right-color: #fff; -webkit-mask: linear-gradient(180deg, #000 18%, transparent 18% 82%, #000 82%); mask: linear-gradient(180deg, #000 18%, transparent 18% 82%, #000 82%); }
.scanner .laser { position: absolute; left: 8%; right: 8%; height: 3px; border-radius: 2px; background: var(--brand); box-shadow: 0 0 14px 3px rgba(214, 0, 28, .8); animation: laser 2s ease-in-out infinite; }
.scanner .frame.found { box-shadow: 0 0 0 100vmax rgba(30, 158, 90, .45); transition: box-shadow .2s; }
.scanner .top { position: relative; z-index: 2; display: flex; align-items: center; justify-content: space-between; padding: calc(12px + env(safe-area-inset-top)) 12px 12px; }
.scanner .top .icon-btn { color: #fff; background: rgba(0, 0, 0, .35); }
.scanner .hint { position: absolute; left: 0; right: 0; top: calc(45% + min(35vw, 150px) + 28px); text-align: center; font-weight: 650; z-index: 2; text-shadow: 0 1px 4px rgba(0, 0, 0, .6); padding: 0 24px; }
.scanner .bottom { position: absolute; left: 0; right: 0; bottom: 0; z-index: 2; padding: 16px 16px calc(20px + var(--safe-b)); display: flex; flex-direction: column; gap: 10px; align-items: center; }
.scanner .manual { display: flex; gap: 8px; width: 100%; max-width: 420px; }
.scanner .manual .input { background: rgba(255, 255, 255, .95); color: var(--ink); text-transform: uppercase; }

/* ===== Plán areálu ===== */
.map-page { display: flex; flex-direction: column; height: calc(100dvh - var(--topbar) - var(--bottombar) - var(--safe-b)); }
@media (min-width: 1024px) { .app.has-sidebar .map-page { height: calc(100dvh - var(--topbar)); } }
.app:not(.has-bottombar) .map-page { height: calc(100dvh - var(--topbar)); }
.map-toolbar { display: flex; gap: 8px; align-items: center; padding: 10px 12px; background: var(--surface); border-bottom: 1px solid var(--line); flex-wrap: wrap; z-index: 3; }
.map-toolbar .chips { flex: 1; min-width: 0; }
.map-body { flex: 1; display: flex; min-height: 0; position: relative; }
.map-viewport { flex: 1; position: relative; overflow: hidden; background: #DCE3D6; touch-action: none; cursor: grab; user-select: none; }
.map-viewport.dragging { cursor: grabbing; }
.map-canvas { position: absolute; left: 0; top: 0; transform-origin: 0 0; will-change: transform; }
.map-canvas.animate { transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.map-canvas > img { display: block; pointer-events: none; max-width: none; user-select: none; -webkit-user-drag: none; }
.pin { position: absolute; width: 0; height: 0; z-index: 2; }
.pin .pin-inner { position: absolute; left: 0; top: 0; transform: translate(-50%, -100%) scale(var(--inv, 1)); transform-origin: 50% 100%; cursor: pointer; animation: pin-drop .55s cubic-bezier(.3, 1.5, .5, 1) both; animation-delay: var(--delay, 0s); }
.pin .marker { width: 44px; height: 54px; position: relative; filter: drop-shadow(0 4px 6px rgba(0, 0, 0, .35)); transition: transform .2s; }
.pin .marker svg { width: 100%; height: 100%; }
.pin .marker .body { fill: var(--ok); }
.pin.warning .marker .body { fill: var(--warn); }
.pin.critical .marker .body { fill: var(--crit); }
.pin .pin-inner:hover .marker, .pin.active .marker { transform: scale(1.15) translateY(-4px); }
.pin .ring { position: absolute; left: 50%; bottom: -4px; width: 26px; height: 12px; margin-left: -13px; border-radius: 50%; background: rgba(30, 158, 90, .45); animation: ring 2.4s ease-out infinite; animation-delay: var(--delay2, 0s); }
.pin.warning .ring { background: rgba(229, 138, 0, .5); }
.pin.critical .ring { background: rgba(214, 0, 28, .55); animation-duration: 1.2s; }
.pin.dim { opacity: .25; }
.pin.dim .ring { display: none; }
.pin .pin-label { position: absolute; left: 50%; top: 100%; transform: translateX(-50%); margin-top: 6px; background: rgba(29, 29, 27, .88); color: #fff; font-size: 11px; font-weight: 750; padding: 2px 7px; border-radius: 7px; white-space: nowrap; pointer-events: none; }
.pin.active { z-index: 5; }
.pin.active .pin-inner { animation: pin-bounce .8s cubic-bezier(.3, 1.5, .5, 1); }
.pin.highlight .ring { animation-duration: .9s; width: 60px; height: 26px; margin-left: -30px; bottom: -10px; }
.map-canvas.hide-kits .pin { display: none; }
/* body infomapy (AED, hasicí přístroje, shromaždiště…) */
.poi { position: absolute; width: 0; height: 0; z-index: 1; }
.poi .poi-inner { position: absolute; left: 0; top: 0; transform: translate(-50%, -50%) scale(var(--inv, 1)); display: flex; flex-direction: column; align-items: center; cursor: pointer; animation: poi-in .4s cubic-bezier(.3, 1.5, .5, 1) both; }
.poi .poi-ic { width: 30px; height: 30px; border-radius: 50%; background: var(--c); display: grid; place-items: center; border: 2.5px solid #fff; box-shadow: 0 2px 6px rgba(0, 0, 0, .35); transition: transform .15s; }
.poi .poi-ic svg { width: 17px; height: 17px; }
.poi .poi-label { margin-top: 3px; background: rgba(255, 255, 255, .94); color: var(--ink); font-size: 10px; font-weight: 750; padding: 1px 6px; border-radius: 6px; white-space: nowrap; box-shadow: 0 1px 3px rgba(0, 0, 0, .2); }
.poi .poi-tag { background: var(--c); color: #fff; font-size: 11px; font-weight: 800; padding: 3px 8px; border-radius: 7px; white-space: nowrap; box-shadow: 0 2px 6px rgba(0, 0, 0, .3); }
.poi-firstaid .poi-ic svg { stroke-width: 3.2; }
.poi .poi-inner:hover .poi-ic, .poi.active .poi-ic { transform: scale(1.25); }
.poi.active { z-index: 4; }
.poi-dot { width: 26px; height: 26px; border-radius: 50%; display: inline-grid; place-items: center; flex: none; }
.poi-dot svg { width: 15px; height: 15px; }
.poi-dot.sm { width: 20px; height: 20px; }
.poi-dot.sm svg { width: 12px; height: 12px; }
.poi-dot.lg { width: 40px; height: 40px; }
.poi-dot.lg svg { width: 22px; height: 22px; }
.map-editing .poi .poi-inner { cursor: move; }
@keyframes poi-in { from { opacity: 0; transform: translate(-50%, -50%) scale(0); } }
.map-editing .pin .pin-inner { cursor: move; }
.map-editing .map-viewport { outline: 3px dashed var(--brand); outline-offset: -3px; }
.map-zoom { position: absolute; right: 12px; bottom: 12px; display: flex; flex-direction: column; gap: 6px; z-index: 4; }
.map-zoom button { width: 42px; height: 42px; border-radius: 12px; border: 0; background: #fff; box-shadow: var(--shadow); cursor: pointer; display: grid; place-items: center; }
.map-zoom svg { width: 20px; height: 20px; }
.map-legend { position: absolute; left: 12px; bottom: 12px; z-index: 4; background: rgba(255, 255, 255, .95); border-radius: 12px; padding: 8px 12px; box-shadow: var(--shadow); display: flex; gap: 12px; font-size: 12px; font-weight: 650; }
.map-legend span { display: inline-flex; align-items: center; gap: 5px; }
.map-side { width: 320px; flex: none; background: var(--surface); border-left: 1px solid var(--line); overflow-y: auto; display: none; }
@media (min-width: 1100px) { .map-side { display: block; } }
.map-side .list-item { padding: 10px 14px; }
.map-side .list-item.active { background: var(--brand-50); }
.map-popup { position: absolute; z-index: 10; left: 12px; right: 12px; bottom: 12px; max-width: 380px; background: #fff; border-radius: 18px; box-shadow: var(--shadow-lg); padding: 14px; animation: rise .3s cubic-bezier(.2, .9, .3, 1.2); }
@media (min-width: 700px) { .map-popup { left: 16px; right: auto; bottom: 70px; width: 360px; } }
.map-popup .close { position: absolute; right: 6px; top: 6px; }
.unplaced { padding: 10px 12px; border-top: 1px solid var(--line); background: var(--warn-50); }
.unplaced .chips { flex-wrap: wrap; }
.unplaced .chip { cursor: grab; }
.map-empty { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 24px; }

/* ===== Nejbližší ===== */
.compass-card { background: var(--ink); color: #fff; border-radius: 22px; padding: 22px; text-align: center; position: relative; overflow: hidden; }
.compass-card .dist { font-size: 46px; font-weight: 850; letter-spacing: -.03em; line-height: 1; }
.compass-card .dist small { font-size: 18px; font-weight: 700; color: #CFCBC5; margin-left: 4px; }
.compass { width: 170px; height: 170px; margin: 12px auto 8px; border-radius: 50%; position: relative; background: radial-gradient(circle, #2C2A27 0 58%, #23211F 59%); border: 2px solid #3A3835; }
.compass .tick { position: absolute; left: 50%; top: 6px; font-size: 11px; font-weight: 800; color: #8E8A84; transform: translateX(-50%); }
.compass .arrow { position: absolute; inset: 0; transition: transform .25s ease-out; }
.compass .arrow svg { width: 100%; height: 100%; }
.compass .ring-anim { position: absolute; inset: -2px; border-radius: 50%; border: 2px solid var(--brand); opacity: 0; animation: radar 2.2s ease-out infinite; }
.nearest-map { height: 300px; border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); z-index: 0; }
.dist-badge { font-weight: 800; font-size: 15px; white-space: nowrap; }

/* ===== Kontrola ===== */
.check-progress { position: sticky; top: var(--topbar); z-index: 30; background: var(--bg); padding: 10px 0; margin: -4px 0 8px; }
.progress { height: 8px; border-radius: 4px; background: #E3DFD9; overflow: hidden; }
.progress > i { display: block; height: 100%; background: linear-gradient(90deg, var(--ok), #3CC57F); border-radius: 4px; transition: width .4s cubic-bezier(.2, .8, .2, 1); }
.check-item { background: var(--surface); border-radius: var(--radius); box-shadow: var(--shadow); padding: 14px; transition: background .3s, box-shadow .3s; border: 2px solid transparent; }
.check-item + .check-item { margin-top: 10px; }
.check-item.done { background: #F2FBF6; border-color: #BDE7CF; }
.check-item.changed { background: #FFF9EE; border-color: #F5D9A6; }
.check-item .head { display: flex; gap: 12px; align-items: center; }
.check-item .head .body { flex: 1; min-width: 0; }
.check-item .done-mark { width: 34px; height: 34px; border-radius: 50%; background: var(--ok); color: #fff; display: grid; place-items: center; animation: pop .35s cubic-bezier(.3, 1.6, .5, 1); }
.check-item .done-mark svg { width: 20px; height: 20px; }
.batch-edit { display: flex; gap: 8px; align-items: center; padding: 8px 0; border-top: 1px dashed var(--line); flex-wrap: wrap; }
.batch-edit .input { height: 40px; width: 160px; font-size: 15px; }
.batch-edit.expired .input[type=date] { border-color: var(--crit); color: var(--crit); }

/* ===== Sheet / modal ===== */
.backdrop { position: fixed; inset: 0; z-index: 90; background: rgba(20, 19, 18, .5); opacity: 0; transition: opacity .25s; }
.backdrop.show { opacity: 1; }
.sheet { position: fixed; z-index: 91; left: 0; right: 0; bottom: 0; max-height: 92dvh; background: var(--surface); border-radius: 22px 22px 0 0; display: flex; flex-direction: column; transform: translateY(100%); transition: transform .32s cubic-bezier(.2, .9, .3, 1); box-shadow: var(--shadow-lg); }
.sheet.show { transform: none; }
.sheet .grabber { width: 40px; height: 5px; border-radius: 3px; background: #D8D4CE; margin: 8px auto 0; flex: none; }
.sheet .sheet-head { display: flex; align-items: center; gap: 8px; padding: 10px 12px 10px 20px; flex: none; }
.sheet .sheet-head h2 { flex: 1; }
.sheet .sheet-body { padding: 4px 20px 20px; overflow-y: auto; flex: 1; overscroll-behavior: contain; }
.sheet .sheet-foot { padding: 12px 20px calc(12px + var(--safe-b)); border-top: 1px solid var(--line); display: flex; gap: 10px; flex: none; }
.sheet .sheet-foot .btn { flex: 1; }
@media (min-width: 760px) {
  .sheet { left: 50%; top: 50%; bottom: auto; width: min(560px, 94vw); max-height: 88vh; border-radius: 22px; transform: translate(-50%, -46%) scale(.96); opacity: 0; transition: transform .25s cubic-bezier(.2, .9, .3, 1.1), opacity .2s; }
  .sheet.show { transform: translate(-50%, -50%); opacity: 1; }
  .sheet.wide { width: min(820px, 94vw); }
  .sheet .grabber { display: none; }
  .sheet .sheet-foot { padding-bottom: 12px; }
}

.toasts { position: fixed; z-index: 120; left: 50%; top: calc(12px + env(safe-area-inset-top)); transform: translateX(-50%); display: flex; flex-direction: column; gap: 8px; width: min(440px, 92vw); pointer-events: none; }
.toast { background: var(--ink); color: #fff; border-radius: 14px; padding: 12px 14px; box-shadow: var(--shadow-lg); display: flex; gap: 10px; align-items: center; font-weight: 600; font-size: 14px; animation: toast-in .35s cubic-bezier(.2, .9, .3, 1.2); pointer-events: auto; }
.toast svg { width: 20px; height: 20px; flex: none; }
.toast.ok svg { color: #5BD596; }
.toast.error { background: var(--crit); }
.toast.out { animation: toast-out .25s forwards; }

/* ===== Graf ===== */
.bars { display: flex; align-items: flex-end; gap: 3px; height: 120px; padding-top: 10px; }
.bars .bar { flex: 1; background: linear-gradient(to top, var(--brand), #F2546A); border-radius: 4px 4px 1px 1px; min-height: 2px; transform-origin: bottom; animation: grow .7s cubic-bezier(.2, .8, .2, 1) both; position: relative; }
.bars .bar:hover::after { content: attr(data-tip); position: absolute; bottom: 100%; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; font-size: 11px; padding: 3px 6px; border-radius: 6px; white-space: nowrap; margin-bottom: 4px; z-index: 2; }
.bars .bar.zero { background: #E6E3DE; }

/* ===== Timeline ===== */
.timeline { position: relative; }
.tl-item { display: flex; gap: 12px; padding: 10px 0; position: relative; }
.tl-item .tl-ic { width: 36px; height: 36px; border-radius: 50%; display: grid; place-items: center; flex: none; background: var(--bg); color: var(--ink-2); position: relative; z-index: 1; }
.tl-item .tl-ic svg { width: 18px; height: 18px; }
.tl-item::before { content: ""; position: absolute; left: 17px; top: 46px; bottom: -10px; width: 2px; background: var(--line); }
.tl-item:last-child::before { display: none; }
.tl-item.take .tl-ic { background: var(--crit-50); color: var(--crit); }
.tl-item.restock .tl-ic { background: var(--ok-50); color: var(--ok); }
.tl-item.check .tl-ic { background: var(--info-50); color: var(--info); }
.tl-item.adjust .tl-ic { background: var(--warn-50); color: var(--warn); }
.tl-item .tl-body { flex: 1; min-width: 0; }
.tl-item .tl-title { font-weight: 650; }
.tl-item .tl-meta { font-size: 13px; color: var(--muted); }
.tl-item .tl-items { font-size: 13px; margin-top: 3px; color: var(--ink-2); }

/* ===== Štítky (tisk) ===== */
.labels { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 12px; }
.label-card { background: #fff; border: 2px solid var(--ink); border-radius: 14px; overflow: hidden; break-inside: avoid; page-break-inside: avoid; }
.label-card .lh { background: var(--brand); color: #fff; display: flex; align-items: center; gap: 8px; padding: 8px 10px; font-weight: 800; font-size: 14px; }
.label-card .lh .cross { width: 22px; height: 22px; background: #fff; border-radius: 5px; display: grid; place-items: center; }
.label-card .lh .cross svg { width: 16px; height: 16px; color: var(--brand); }
.label-card .lb { padding: 10px; display: flex; gap: 10px; align-items: center; }
.label-card .lb img { width: 120px; height: 120px; flex: none; }
.label-card .lb .t { font-size: 12px; }
.label-card .lb .t strong { display: block; font-size: 15px; margin-bottom: 2px; }
.label-card .lf { border-top: 1px dashed #999; padding: 6px 10px; font-size: 11px; text-align: center; font-weight: 650; }

.protocol { background: #fff; max-width: 900px; margin: 0 auto; padding: 28px; border-radius: var(--radius); box-shadow: var(--shadow); }
.protocol h1 { font-size: 22px; }
.protocol .meta-grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(180px, 1fr)); gap: 10px; margin: 16px 0; }
.protocol .meta-grid div { background: var(--surface-2); border-radius: 10px; padding: 10px; }
.protocol .meta-grid span { display: block; font-size: 12px; color: var(--muted); }
.protocol .signs { display: grid; grid-template-columns: 1fr 1fr; gap: 40px; margin-top: 50px; }
.protocol .signs div { border-top: 1px solid #999; padding-top: 6px; font-size: 12px; color: var(--muted); }

@media print {
  body { background: #fff; }
  .topbar, .sidebar, .bottombar, .no-print, .sticky-cta, .toasts { display: none !important; }
  .app.has-sidebar { display: block; }
  .main { padding: 0 !important; max-width: none; }
  .protocol { box-shadow: none; padding: 0; }
  .labels { grid-template-columns: repeat(3, 1fr); gap: 8mm; }
  .label-card { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  @page { margin: 10mm; }
}

/* ===== Skeleton & animace ===== */
.skeleton { background: linear-gradient(90deg, #ECE9E4 25%, #F6F4F1 50%, #ECE9E4 75%); background-size: 200% 100%; animation: shimmer 1.2s infinite; border-radius: 12px; }
.view-enter { animation: view-in .28s cubic-bezier(.2, .8, .2, 1); }
.rise { animation: rise .45s cubic-bezier(.2, .8, .2, 1) both; }
.spinner { width: 28px; height: 28px; border: 3px solid #E3DFD9; border-top-color: var(--brand); border-radius: 50%; animation: spin .8s linear infinite; margin: 40px auto; }

@keyframes spin { to { transform: rotate(360deg); } }
@keyframes shimmer { to { background-position: -200% 0; } }
@keyframes view-in { from { opacity: 0; transform: translateY(8px); } }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } }
@keyframes pop { from { transform: scale(0); } }
@keyframes grow { from { transform: scaleY(0); } }
@keyframes draw { to { stroke-dashoffset: 0; } }
@keyframes toast-in { from { opacity: 0; transform: translateY(-14px) scale(.96); } }
@keyframes toast-out { to { opacity: 0; transform: translateY(-10px); } }
@keyframes laser { 0%, 100% { top: 8%; } 50% { top: 92%; } }
@keyframes pulse-dot { 0% { box-shadow: 0 0 0 0 rgba(214, 0, 28, .5); } 70% { box-shadow: 0 0 0 8px rgba(214, 0, 28, 0); } 100% { box-shadow: 0 0 0 0 rgba(214, 0, 28, 0); } }
@keyframes ring { 0% { transform: scale(.4); opacity: 1; } 100% { transform: scale(2.6); opacity: 0; } }
@keyframes radar { 0% { transform: scale(.9); opacity: .8; } 100% { transform: scale(1.25); opacity: 0; } }
@keyframes pin-drop { 0% { opacity: 0; transform: translate(-50%, -260%) scale(var(--inv, 1)); } 60% { opacity: 1; } 100% { opacity: 1; transform: translate(-50%, -100%) scale(var(--inv, 1)); } }
@keyframes pin-bounce { 0%, 100% { transform: translate(-50%, -100%) scale(var(--inv, 1)); } 30% { transform: translate(-50%, -135%) scale(var(--inv, 1)); } 60% { transform: translate(-50%, -96%) scale(var(--inv, 1)); } }

@media (prefers-reduced-motion: reduce) {
  *, *::before, *::after { animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important; }
}
