/* ===== Florbal Chodov admin – modro-černý design, světlý / tmavý režim ===== */
:root {
  --bg: #f2f4f8;
  --surface: #ffffff;
  --surface-2: #f7f9fc;
  --text: #0b1220;
  --muted: #5b667a;
  --line: #e1e6ef;
  --accent: #1d63ff;
  --accent-strong: #0f4fe0;
  --accent-ink: #ffffff;
  --accent-soft: color-mix(in srgb, var(--accent) 10%, transparent);
  --accent-deep: #0b3fc0;
  --header-2: #0d121c;
  --ok: #0f7a4a; --ok-soft: rgba(16, 160, 95, .12);
  --warn: #9a5b00; --warn-soft: rgba(245, 160, 20, .16);
  --err: #c0262d; --err-soft: rgba(225, 45, 55, .1);
  --header: #05080f;
  --header-line: rgba(255, 255, 255, .08);
  --header-text: #e8edf7;
  --header-muted: #8e9ab0;
  --shadow: 0 1px 2px rgba(10, 20, 40, .05), 0 8px 24px rgba(10, 20, 40, .06);
  --radius: 14px;
  --radius-s: 10px;
  color-scheme: light;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --bg: #070a10; --surface: #0e131c; --surface-2: #131a26; --text: #e6ebf4; --muted: #8b97ab; --line: #1e2736;
    --accent: #3d86ff; --accent-strong: #5b9aff; --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
    --ok: #3ccf8e; --ok-soft: rgba(60, 207, 142, .13); --warn: #f5b84a; --warn-soft: rgba(245, 184, 74, .13);
    --err: #ff6b72; --err-soft: rgba(255, 107, 114, .13);
    --header: #03050a; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
    color-scheme: dark;
  }
}
:root[data-theme="dark"] {
  --bg: #070a10; --surface: #0e131c; --surface-2: #131a26; --text: #e6ebf4; --muted: #8b97ab; --line: #1e2736;
  --accent: #3d86ff; --accent-strong: #5b9aff; --accent-soft: color-mix(in srgb, var(--accent) 16%, transparent);
  --ok: #3ccf8e; --ok-soft: rgba(60, 207, 142, .13); --warn: #f5b84a; --warn-soft: rgba(245, 184, 74, .13);
  --err: #ff6b72; --err-soft: rgba(255, 107, 114, .13);
  --header: #03050a; --shadow: 0 1px 2px rgba(0, 0, 0, .4), 0 10px 30px rgba(0, 0, 0, .35);
  color-scheme: dark;
}

* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font: 15px/1.5 Inter, system-ui, -apple-system, "Segoe UI", Roboto, sans-serif; color: var(--text); background: var(--bg); -webkit-font-smoothing: antialiased; }
a { color: var(--accent); text-decoration-thickness: 1px; text-underline-offset: 2px; }
h1 { font-size: 1.65rem; font-weight: 800; letter-spacing: -.02em; margin: 0 0 1.1rem; }
h2 { font-size: 1.05rem; font-weight: 700; letter-spacing: -.01em; margin: 0 0 .8rem; }
code, pre { font: 13px ui-monospace, SFMono-Regular, Menlo, monospace; background: var(--surface-2); border: 1px solid var(--line); border-radius: 8px; }
code { padding: 1px 6px; }
pre { padding: 10px 12px; overflow-x: auto; }
svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }

/* ===== hlavička ===== */
.header { position: sticky; top: 0; z-index: 50; background: var(--header); color: var(--header-text); border-bottom: 1px solid var(--header-line); box-shadow: inset 0 -2px 0 color-mix(in srgb, var(--accent) 55%, transparent); }
.header-inner { display: flex; align-items: center; gap: 18px; height: 62px; padding: 0 20px; max-width: 1480px; margin: 0 auto; }
.brand { display: flex; align-items: center; gap: 10px; color: inherit; text-decoration: none; flex: none; }
.brand-mark { display: grid; place-items: center; width: 34px; height: 34px; border-radius: 10px; background: linear-gradient(135deg, var(--accent), var(--accent-deep)); color: #fff; font-weight: 800; font-size: .85rem; letter-spacing: .02em; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 45%, transparent); }
.brand-name { font-weight: 700; letter-spacing: -.01em; white-space: nowrap; }
.nav { display: flex; align-items: center; gap: 2px; flex: 1; min-width: 0; }
.nav > a, .nav-more summary { display: inline-flex; align-items: center; gap: 6px; padding: 7px 12px; border-radius: 999px; color: var(--header-muted); text-decoration: none; font-weight: 500; font-size: .92rem; white-space: nowrap; cursor: pointer; transition: color .15s, background .15s; }
.nav > a:hover, .nav-more summary:hover { color: var(--header-text); background: color-mix(in srgb, var(--header-text) 7%, transparent); }
.nav > a.active, .nav-more summary.active { color: var(--header-text); background: color-mix(in srgb, var(--accent) 22%, transparent); box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 45%, transparent); }
.nav-more { position: relative; }
.nav-more summary { list-style: none; }
.nav-more summary::-webkit-details-marker { display: none; }
.nav-more summary::after { content: ""; width: 6px; height: 6px; border: solid currentColor; border-width: 0 1.5px 1.5px 0; transform: rotate(45deg) translateY(-2px); margin-left: 2px; }
.nav-menu { position: absolute; top: calc(100% + 8px); left: 0; min-width: 220px; padding: 6px; background: var(--header-2); border: 1px solid var(--header-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); }
.nav-menu a { display: block; padding: 8px 10px; border-radius: 8px; color: var(--header-text); text-decoration: none; font-size: .92rem; }
.nav-menu a:hover { background: rgba(255, 255, 255, .07); }
.nav-menu-label { display: block; padding: 6px 10px 4px; font-size: .7rem; text-transform: uppercase; letter-spacing: .08em; color: var(--header-muted); }
.header-tools { display: flex; align-items: center; gap: 10px; flex: none; margin-left: auto; }
.icon-btn { display: inline-grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--header-line); background: color-mix(in srgb, var(--header-text) 5%, transparent); color: var(--header-text); cursor: pointer; }
.icon-btn:hover { background: rgba(255, 255, 255, .1); }
.i-moon { display: none; }
:root[data-theme="dark"] .i-sun { display: none; }
:root[data-theme="dark"] .i-moon { display: block; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .i-sun { display: none; }
  :root:not([data-theme="light"]) .i-moon { display: block; }
}
.user-chip { display: flex; align-items: center; gap: 9px; padding: 3px 12px 3px 3px; border-radius: 999px; background: color-mix(in srgb, var(--header-text) 6%, transparent); border: 1px solid var(--header-line); color: inherit; text-decoration: none; }
.user-chip:hover { background: rgba(255, 255, 255, .09); }
.avatar { display: grid; place-items: center; width: 30px; height: 30px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-size: .75rem; font-weight: 700; }
.user-text { display: grid; line-height: 1.15; }
.user-name { font-weight: 600; font-size: .88rem; white-space: nowrap; }
.user-role { font-size: .72rem; color: var(--header-muted); }
.logout { color: var(--header-muted); font-size: .88rem; text-decoration: none; }
.logout:hover { color: var(--header-text); }
.nav-toggle { display: none; }

@media (max-width: 1180px) {
  .nav-toggle { display: inline-grid; }
  .nav { display: none; position: absolute; top: 62px; left: 0; right: 0; flex-direction: column; align-items: stretch; gap: 2px; padding: 10px 14px 14px; background: var(--header); border-bottom: 1px solid var(--header-line); box-shadow: 0 20px 40px rgba(0, 0, 0, .35); }
  .nav-open .nav { display: flex; }
  .nav > a, .nav-more summary { border-radius: 10px; padding: 10px 12px; }
  .nav-menu { position: static; margin-top: 4px; box-shadow: none; }
}
@media (max-width: 640px) {
  .header-inner { padding: 0 12px; gap: 10px; }
  .brand-name, .user-text, .logout { display: none; }
  .user-chip { padding: 3px; }
}

/* ===== obsah ===== */
.content { max-width: 1480px; margin: 0 auto; padding: 28px 20px 48px; }
@media (max-width: 640px) { .content { padding: 18px 16px 40px; } }

/* ===== přihlášení ===== */
body.auth { min-height: 100vh; background: radial-gradient(1200px 600px at 50% -10%, color-mix(in srgb, var(--accent) 25%, transparent), transparent 60%), var(--bg); }
.auth-wrap { min-height: 100vh; display: grid; place-content: center; justify-items: center; gap: 18px; padding: 24px 16px; position: relative; }
.auth-brand .brand-mark { width: 52px; height: 52px; border-radius: 14px; font-size: 1.1rem; }
.auth-card { width: min(400px, calc(100vw - 32px)); background: var(--surface); padding: 30px; border-radius: 18px; border: 1px solid var(--line); box-shadow: var(--shadow); }
.auth-card h1 { font-size: 1.35rem; text-align: center; }
.auth-card form { display: grid; gap: 14px; }
.auth-card .btn { width: 100%; justify-content: center; padding: 11px; }
.auth-theme { position: fixed; top: 16px; right: 16px; color: var(--text); border-color: var(--line); background: var(--surface); }

/* ===== komponenty ===== */
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 20px; margin-bottom: 18px; box-shadow: var(--shadow); }
.card.narrow { max-width: 540px; }
.card.empty, td.empty { color: var(--muted); text-align: center; padding: 32px; }
details.card summary { cursor: pointer; }
.grid-2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(340px, 1fr)); gap: 18px; align-items: start; }
.grid-2 > * { min-width: 0; }
.muted { color: var(--muted); }
.small { font-size: .85rem; }
.nowrap { white-space: nowrap; }
.inline { display: inline; }
.link-muted { color: var(--muted); font-size: .9rem; }

.btn { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border: 1px solid transparent; border-radius: var(--radius-s); background: var(--accent); color: var(--accent-ink); font: inherit; font-weight: 600; font-size: .92rem; text-decoration: none; cursor: pointer; transition: background .15s, box-shadow .15s, transform .05s; box-shadow: 0 4px 14px color-mix(in srgb, var(--accent) 25%, transparent); }
.btn:hover { background: var(--accent-strong); }
.btn:active { transform: translateY(1px); }
.btn-secondary { background: var(--surface); color: var(--text); border-color: var(--line); box-shadow: none; }
.btn-secondary:hover { background: var(--surface-2); border-color: var(--accent); color: var(--accent); }
.btn-link { background: none; border-color: transparent; color: var(--accent); padding-left: 6px; padding-right: 6px; font-weight: 500; box-shadow: none; }
.btn-link:hover { background: var(--accent-soft); }
.btn-small { padding: 5px 11px; font-size: .84rem; }
.danger { color: var(--err) !important; }
.bookmarklet { font-size: 1rem; cursor: grab; }

/* ===== formuláře ===== */
input, select, textarea { font: inherit; font-size: .93rem; padding: 8px 11px; border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); color: var(--text); max-width: 100%; transition: border-color .15s, box-shadow .15s; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
input[type="checkbox"] { accent-color: var(--accent); width: 16px; height: 16px; }
input:disabled { opacity: .6; }
.form { display: grid; gap: 13px; }
.form label, .auth-card label { display: grid; gap: 5px; font-size: .86rem; font-weight: 600; }
.form input:not([type=checkbox]), .form select, .form textarea, .auth-card input { width: 100%; }
label.check { display: flex !important; align-items: center; gap: 9px; font-weight: 500; }
.row { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.w-s { width: 90px; }
.w-m { width: 120px; }
.w-l { width: 160px; }
.filters { display: flex; flex-wrap: wrap; gap: 10px; align-items: end; margin-bottom: 18px; padding: 14px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .filters { padding: 0; border: 0; box-shadow: none; background: none; margin-top: 16px; }
.filters label { display: grid; gap: 4px; font-size: .74rem; font-weight: 600; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.toolbar { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; justify-content: space-between; margin: 14px 0; }
.toolbar h2 { margin: 0; }
.tabs { display: inline-flex; gap: 4px; margin-bottom: 16px; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; overflow-x: auto; max-width: 100%; }
.tabs a { padding: 7px 14px; text-decoration: none; color: var(--muted); border-radius: 9px; white-space: nowrap; font-weight: 500; font-size: .92rem; }
.tabs a.active { color: var(--accent-ink); background: var(--accent); }

/* ===== tabulky ===== */
.table-wrap { overflow-x: auto; margin-bottom: 18px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.card .table-wrap { border: 0; box-shadow: none; border-radius: 0; margin-bottom: 12px; }
.table { width: 100%; border-collapse: collapse; }
.table th, .table td { padding: 11px 14px; border-bottom: 1px solid var(--line); text-align: left; vertical-align: top; }
.table tbody tr:last-child td { border-bottom: 0; }
.table thead th { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); background: var(--surface-2); }
.table tbody tr:hover td { background: var(--surface-2); }
.table tfoot th { border-top: 1px solid var(--line); border-bottom: 0; }
.table.compact th, .table.compact td { padding: 7px 9px; vertical-align: middle; }
.table tr.is-open td:first-child { box-shadow: inset 3px 0 var(--accent); }
.table tr.past td { opacity: .5; }
.table tr.warn td { background: var(--warn-soft); }
.table td.match { min-width: 150px; font-weight: 600; }
.table td.match a { color: var(--text); text-decoration: none; }
.table td.match a:hover { color: var(--accent); }
.num { text-align: right !important; font-variant-numeric: tabular-nums; }
.center { text-align: center !important; }
.actions { white-space: nowrap; }
.new-row td { background: var(--surface-2); }

/* ===== štítky ===== */
.badge { display: inline-block; min-width: 19px; padding: 0 6px; margin-left: 4px; border-radius: 10px; background: #ff3b47; color: #fff; font-size: .7rem; font-weight: 700; text-align: center; line-height: 19px; }
.tag { display: inline-block; padding: 2px 9px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); color: var(--muted); font-size: .75rem; font-weight: 600; white-space: nowrap; }
.tag-pending, .tag-warn, .tag-st-open { background: var(--warn-soft); color: var(--warn); border-color: transparent; }
.tag-confirmed, .tag-st-confirmed { background: var(--ok-soft); color: var(--ok); border-color: transparent; }
.tag-rejected { background: var(--err-soft); color: var(--err); border-color: transparent; }
.tag-st-paid, .tag-role-admin { background: var(--accent-soft); color: var(--accent); border-color: transparent; }
.tag-role-superadmin { background: var(--text); color: var(--surface); border-color: transparent; }
.flash { padding: 11px 15px; border-radius: var(--radius-s); margin: 0 0 16px; white-space: pre-line; font-weight: 500; border: 1px solid transparent; }
.flash-ok { background: var(--ok-soft); color: var(--ok); }
.flash-error { background: var(--err-soft); color: var(--err); }
.flash-warn { background: var(--warn-soft); color: var(--warn); }
.flash-info { background: var(--accent-soft); color: var(--accent); }

/* ===== přepínač ===== */
.switch { position: relative; display: inline-block; width: 42px; height: 24px; cursor: pointer; }
.switch input { opacity: 0; width: 0; height: 0; }
.switch span { position: absolute; inset: 0; background: var(--line); border-radius: 24px; transition: .15s; }
.switch span::after { content: ""; position: absolute; left: 3px; top: 3px; width: 18px; height: 18px; background: #fff; border-radius: 50%; transition: .15s; box-shadow: 0 1px 3px rgba(0, 0, 0, .25); }
.switch input:checked + span { background: var(--accent); }
.switch input:checked + span::after { transform: translateX(18px); }
.switch input:focus-visible + span { box-shadow: 0 0 0 3px var(--accent-soft); }

/* ===== karty akcí pro tvůrce ===== */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(320px, 1fr)); gap: 16px; }
.event-card { display: flex; flex-direction: column; margin: 0; position: relative; overflow: hidden; }
.event-card::before { content: ""; position: absolute; inset: 0 0 auto; height: 3px; background: linear-gradient(90deg, var(--accent), transparent); }
.event-card h2 { margin: 2px 0 4px; font-size: 1.15rem; }
.event-date { font-weight: 700; color: var(--accent); font-size: .88rem; text-transform: uppercase; letter-spacing: .03em; }
.event-card .note { background: var(--surface-2); padding: 9px 11px; border-radius: var(--radius-s); font-size: .9rem; }
.offers { list-style: none; margin: 14px 0 0; padding: 0; border-top: 1px solid var(--line); }
.offers li { display: grid; grid-template-columns: 1fr auto; gap: 2px 10px; padding: 11px 0; border-bottom: 1px solid var(--line); align-items: center; }
.offers li:last-child { border-bottom: 0; }
.offer-name { font-weight: 600; }
.offer-amount { font-weight: 800; text-align: right; font-variant-numeric: tabular-nums; }
.offer-action { text-align: right; }

/* ===== výkaz / tisk ===== */
.statement-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 20px; margin-bottom: 16px; }
.parties { display: flex; flex-wrap: wrap; gap: 40px; }
.danger-zone { margin-top: 24px; text-align: right; }
@media print {
  :root { --bg: #fff; --surface: #fff; --surface-2: #fff; --text: #000; --muted: #444; --line: #ccc; }
  .header, .no-print, .flash { display: none !important; }
  .content { margin: 0; padding: 0; max-width: none; }
  .card, .table-wrap { border: 0; padding: 0; box-shadow: none; }
}

/* ===== menu uživatele ===== */
.user-menu { position: relative; }
.user-menu summary { list-style: none; cursor: pointer; }
.user-menu summary::-webkit-details-marker { display: none; }
.user-dropdown { position: absolute; right: 0; top: calc(100% + 10px); min-width: 210px; padding: 6px; background: var(--header-2); border: 1px solid var(--header-line); border-radius: 12px; box-shadow: 0 16px 40px rgba(0, 0, 0, .45); z-index: 60; }
.user-dropdown a { display: block; padding: 9px 12px; border-radius: 8px; color: var(--header-text); text-decoration: none; font-size: .92rem; }
.user-dropdown a:hover { background: color-mix(in srgb, var(--header-text) 8%, transparent); }
.user-dropdown a.danger { color: #ff6b72 !important; }
.user-dropdown hr { border: 0; border-top: 1px solid var(--header-line); margin: 6px 0; }

/* ===== hlavička stránky ===== */
.page-head { display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 18px; }
.page-head h1 { margin: 0; }
.page-head-tools { display: flex; gap: 8px; }
.seg { display: inline-flex; padding: 4px; background: var(--surface); border: 1px solid var(--line); border-radius: 12px; }
.seg a { padding: 7px 16px; border-radius: 9px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .9rem; }
.seg a.active { background: var(--accent); color: var(--accent-ink); }
.filters.is-collapsed { display: none; }
.card.narrow-l { max-width: 760px; }

/* ===== seznam akcí – karty s datovou dlaždicí ===== */
.tabs-line { display: flex; gap: 4px; border-bottom: 1px solid var(--line); overflow-x: auto; scrollbar-width: none; }
.tabs-line a { position: relative; padding: 10px 14px 12px; color: var(--muted); text-decoration: none; font-weight: 600; font-size: .92rem; white-space: nowrap; transition: color .15s; }
.tabs-line a:hover { color: var(--text); }
.tabs-line a.active { color: var(--text); }
.tabs-line a.active::after { content: ""; position: absolute; left: 10px; right: 10px; bottom: -1px; height: 3px; border-radius: 3px 3px 0 0; background: var(--accent); }
.page-head:has(.tabs-line) { align-items: flex-end; }

.month { max-width: 1040px; margin: 0 auto 30px; }
.month-head { display: flex; align-items: baseline; gap: 8px; margin: 0 0 12px 4px; font-size: 1.05rem; font-weight: 800; color: var(--muted); }
.month-head span { color: var(--text); }
.month-head small { margin-left: auto; font-size: .78rem; font-weight: 600; color: var(--muted); }
.ev-list { display: grid; gap: 10px; }

.ev { position: relative; background: var(--ev-bg); border: 1px solid var(--line); border-radius: 16px; overflow: hidden; transition: border-color .15s, box-shadow .15s, transform .15s; }
.ev:hover { border-color: color-mix(in srgb, var(--accent) 45%, var(--line)); box-shadow: var(--shadow); }
.ev[open] { box-shadow: var(--shadow); border-color: color-mix(in srgb, var(--accent) 35%, var(--line)); }
.ev > summary { display: grid; grid-template-columns: 78px 1fr auto 20px; align-items: center; gap: 16px; padding: 14px 18px 14px 14px; cursor: pointer; list-style: none; }
.ev > summary::-webkit-details-marker { display: none; }

.ev-date { display: grid; justify-items: center; align-content: center; height: 70px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); line-height: 1; }
.ev-date .d-dow { font-size: .64rem; font-weight: 800; text-transform: uppercase; letter-spacing: .1em; color: var(--muted); }
.ev-date .d-num { margin: 4px 0 3px; font-size: 1.6rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; }
.ev-date .d-mon { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--accent); }
.ev-date.is-today { background: var(--accent); border-color: var(--accent); }
.ev-date.is-today span { color: #fff; }

.ev-tags { display: flex; flex-wrap: wrap; align-items: center; gap: 6px; margin-bottom: 5px; }
.type-pill { display: inline-flex; align-items: center; gap: 6px; padding: 2px 9px 2px 7px; border-radius: 999px; font-size: .7rem; font-weight: 700; color: var(--type); background: color-mix(in srgb, var(--type) 14%, transparent); }
.type-pill::before { content: ""; width: 6px; height: 6px; border-radius: 50%; background: var(--type); }
.badge-label { padding: 2px 8px; border-radius: 999px; background: var(--text); color: var(--surface); font-size: .64rem; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; }
.badge-cancel { padding: 2px 8px; border-radius: 999px; background: var(--err-soft); color: var(--err); font-size: .64rem; font-weight: 800; letter-spacing: .06em; }
.ev-title { font-size: 1.08rem; font-weight: 700; letter-spacing: -.01em; line-height: 1.3; }
.ev-meta { display: flex; flex-wrap: wrap; gap: 4px 16px; margin-top: 6px; color: var(--muted); font-size: .84rem; }
.ev-meta > span { display: inline-flex; align-items: center; gap: 5px; }
.ev-meta svg { width: 15px; height: 15px; opacity: .75; }
.m-time b { color: var(--text); font-weight: 700; font-variant-numeric: tabular-nums; }

.ev-status { display: flex; align-items: center; gap: 8px; justify-content: flex-end; }
.chips { display: flex; flex-wrap: wrap; gap: 5px; justify-content: flex-end; max-width: 260px; }
.chip { padding: 3px 10px; border-radius: 999px; font-size: .74rem; font-weight: 700; white-space: nowrap; }
.chip-missing { color: var(--err); border: 1px dashed color-mix(in srgb, var(--err) 60%, transparent); background: var(--err-soft); }
.covered { display: inline-flex; color: var(--ok); }
.covered svg { width: 28px; height: 28px; stroke-width: 2; }
.ev-chevron { width: 20px; height: 20px; display: grid; place-items: center; }
.ev-chevron::after { content: ""; width: 7px; height: 7px; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg) translate(-1px, -1px); transition: transform .2s; }
.ev[open] .ev-chevron::after { transform: rotate(-135deg) translate(-1px, -1px); }

/* stavy */
.ev-past { opacity: .6; }
.ev-past:hover, .ev-past[open] { opacity: 1; }

.ev-cancelled .ev-title span { text-decoration: line-through; }
.ev-closed .ev-date .d-num { color: var(--muted); }
/* moje účast – jemný přechod barvy zleva doprava */
.ev-my-pending { background: linear-gradient(90deg, rgba(245, 165, 36, .2), rgba(245, 165, 36, .05) 40%, var(--ev-bg) 72%); }
.ev-my-confirmed { background: linear-gradient(90deg, rgba(34, 176, 125, .22), rgba(34, 176, 125, .06) 40%, var(--ev-bg) 72%); }
.ev-my-pending .ev-date { border-color: rgba(245, 165, 36, .55); }
.ev-my-confirmed .ev-date { border-color: rgba(34, 176, 125, .55); }
/* ZMĚNA – oranžový čas a text */
.ev-changed .m-time b { color: #f5a524; }
.time-change { margin-left: 4px; padding: 1px 6px; border-radius: 4px; font-size: .62rem; font-weight: 800; letter-spacing: .08em; color: #f5a524; background: rgba(245, 165, 36, .14); }

/* detail akce */
.ev-body { padding: 2px 18px 18px 108px; display: grid; gap: 12px; }
.ev-info { display: flex; flex-wrap: wrap; gap: 6px; }
.ev-info span { padding: 3px 10px; border-radius: 999px; background: var(--surface-2); border: 1px solid var(--line); font-size: .78rem; color: var(--muted); }
.ev-body .note { margin: 0; padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); border-left: 3px solid var(--accent); font-size: .9rem; }
.pos-list { display: grid; gap: 6px; }
.pos { display: grid; grid-template-columns: minmax(150px, 220px) 1fr auto; gap: 8px 16px; align-items: center; padding: 9px 12px; border-radius: 12px; background: var(--surface-2); }
.pos-head { display: flex; align-items: center; gap: 10px; }
.pos-name { font-weight: 700; }
.pos-count { font-size: .74rem; font-weight: 800; padding: 1px 7px; border-radius: 999px; }
.pos-count.is-missing { background: var(--err-soft); color: var(--err); }
.pos-count.is-full { background: var(--ok-soft); color: var(--ok); }
.pos-amount { margin-left: auto; font-weight: 800; font-variant-numeric: tabular-nums; }
.pos-people { display: flex; flex-wrap: wrap; gap: 6px; }
.person { display: inline-flex; align-items: center; gap: 6px; padding: 3px 4px 3px 10px; border-radius: 999px; background: var(--surface); border: 1px solid var(--line); font-size: .85rem; font-weight: 600; }
.person-confirmed { background: var(--ok-soft); border-color: transparent; padding-right: 10px; }
.person-pending { background: var(--warn-soft); border-color: transparent; }
.person em { font-style: normal; font-size: .7rem; color: var(--warn); font-weight: 700; padding-right: 4px; }
.mini { width: 24px; height: 24px; border-radius: 50%; border: 0; cursor: pointer; font-weight: 800; font-size: .8rem; }
.mini-ok { background: var(--ok); color: #fff; }
.mini-no { background: var(--err); color: #fff; }
.pos-action { display: flex; align-items: center; gap: 6px; justify-content: flex-end; }
.ev-admin { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; padding-top: 10px; border-top: 1px solid var(--line); }
.switch-row { display: inline-flex; align-items: center; gap: 10px; font-size: .9rem; font-weight: 600; margin-right: auto; cursor: pointer; }

@media (max-width: 760px) {
  .ev > summary { grid-template-columns: 54px 1fr 18px; gap: 12px; padding: 12px; }
  .ev-date { height: 62px; }
  .ev-date .d-num { font-size: 1.35rem; }
  .ev-status { grid-column: 2 / 3; justify-content: flex-start; }
  .chips { justify-content: flex-start; }
  .ev-chevron { grid-row: 1; grid-column: 3; }
  .ev-body { padding: 2px 12px 14px; }
  .pos { grid-template-columns: 1fr; }
  .pos-action { justify-content: flex-start; }
}

/* ===== kalendář ===== */
.cal-nav { display: flex; align-items: center; gap: 12px; }
.cal-nav h1 { min-width: 200px; text-align: center; }
.icon-link { display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; border: 1px solid var(--line); background: var(--surface); color: var(--text); text-decoration: none; font-size: 1.3rem; }
.icon-link:hover { border-color: var(--accent); color: var(--accent); }
.cal-legend { display: flex; gap: 14px; font-size: .8rem; color: var(--muted); }
.lg::before { content: ""; display: inline-block; width: 10px; height: 10px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }
.lg-none::before { background: var(--muted); }
.lg-pending::before { background: #f5a524; }
.lg-confirmed::before { background: var(--ok); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); background: var(--line); gap: 1px; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; box-shadow: var(--shadow); }
.cal-dow { padding: 10px; background: var(--surface-2); font-size: .74rem; font-weight: 800; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); text-align: center; }
.cal-day { min-height: 118px; padding: 6px; background: var(--surface); display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.cal-day.is-other { background: var(--surface-2); }
.cal-day.is-other .cal-num { opacity: .4; }
.cal-num { font-size: .82rem; font-weight: 700; color: var(--muted); padding: 2px 4px; }
.cal-day.is-today .cal-num { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border-radius: 50%; background: var(--accent); color: #fff; }
.cal-ev { display: block; padding: 3px 7px; border-radius: 6px; font-size: .76rem; color: var(--text); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; background: var(--surface-2); border-left: 3px solid var(--type); }
.cal-ev:hover { filter: brightness(1.15); }
.cal-ev b { font-variant-numeric: tabular-nums; }
.cal-none { background: var(--surface-2); border-left-color: var(--muted); color: var(--muted); }
.cal-pending { background: rgba(245, 165, 36, .18); border-left-color: #f5a524; }
.cal-confirmed { background: var(--ok-soft); border-left-color: var(--ok); }
.cal-cancelled { text-decoration: line-through; opacity: .5; }
@media (max-width: 760px) {
  .cal-day { min-height: 74px; padding: 3px; }
  .cal-ev { font-size: 0; padding: 0; height: 6px; border-left-width: 0; border-radius: 3px; }
  .cal-legend { width: 100%; }
}
[hidden] { display: none !important; }
.chip-bonus { background: var(--ok-soft) !important; color: var(--ok) !important; border-color: transparent !important; font-weight: 700; }
.km-input { width: 84px; text-align: right; padding: 5px 8px; }
.statement-table td, .statement-table th { vertical-align: middle; }

/* ===== přepínač zobrazení Admin / Tvůrce ===== */
.mode-switch button { position: relative; display: grid; grid-template-columns: 1fr 1fr; align-items: center; height: 36px; padding: 3px; border-radius: 10px; border: 1px solid var(--header-line); background: rgba(255, 255, 255, .04); color: var(--header-muted); cursor: pointer; font: inherit; font-size: .8rem; font-weight: 700; }
.mode-switch button:hover { border-color: rgba(255, 255, 255, .25); }
.mode-opt { position: relative; z-index: 1; padding: 0 12px; line-height: 28px; text-align: center; transition: color .25s; }
.mode-thumb { position: absolute; top: 3px; bottom: 3px; left: 3px; width: calc(50% - 3px); border-radius: 7px; background: linear-gradient(135deg, #ff4b55, #c1121f); box-shadow: 0 2px 10px rgba(229, 45, 55, .5); transition: transform .28s cubic-bezier(.65, 0, .35, 1), background .28s; }
.mode-switch.is-admin .mode-admin, .mode-switch.is-creator .mode-creator { color: #fff; }
.mode-switch.is-creator .mode-thumb { transform: translateX(100%); background: linear-gradient(135deg, #3d86ff, #0b3fc0); box-shadow: 0 2px 10px rgba(29, 99, 255, .5); }
@media (max-width: 640px) { .mode-opt { padding: 0 8px; font-size: .72rem; } }
@media (prefers-reduced-motion: reduce) { .mode-thumb, .mode-opt { transition: none; } }
.events-head, .events-filters { max-width: 1040px; margin-left: auto; margin-right: auto; }
/* úkoly */
.tasks { padding: 10px 14px; border-radius: var(--radius-s); background: var(--surface-2); font-size: .9rem; }
.tasks ul, .pos-tasks { list-style: none; margin: 6px 0 0; padding: 0; display: grid; gap: 4px; }
.tasks li, .pos-tasks li { position: relative; padding-left: 24px; }
.tasks li::before, .pos-tasks li::before { content: ""; position: absolute; left: 2px; top: 3px; width: 13px; height: 13px; border: 2px solid var(--accent); border-radius: 4px; }
.pos-tasks { grid-column: 1 / -1; margin: 2px 0 0; font-size: .85rem; color: var(--muted); }
.pos-tasks li::before { width: 11px; height: 11px; top: 4px; border-color: var(--muted); }
textarea.ptasks { width: 100%; min-width: 180px; resize: vertical; font-size: .85rem; }
.inline-form { margin-top: 10px; }

/* čas v dlaždici vlevo, datum jako výrazný štítek */
.ev-clock { display: grid; justify-items: center; align-content: center; gap: 4px; height: 70px; border-radius: 12px; background: var(--surface-2); border: 1px solid var(--line); }
.c-time { font-size: 1.45rem; font-weight: 800; letter-spacing: -.03em; font-variant-numeric: tabular-nums; line-height: 1; }
.c-change { padding: 1px 6px; border-radius: 4px; font-size: .58rem; font-weight: 800; letter-spacing: .08em; color: #f5a524; background: rgba(245, 165, 36, .14); }
.c-sub { font-size: .58rem; font-weight: 600; color: var(--muted); text-align: center; line-height: 1.1; }
.ev-changed .c-time { color: #f5a524; }
.ev-changed .ev-clock { border-color: rgba(245, 165, 36, .5); }
.ev-closed .c-time { color: var(--muted); }
.ev-my-pending .ev-clock { border-color: rgba(245, 165, 36, .55); }
.ev-my-confirmed .ev-clock { border-color: rgba(34, 176, 125, .55); }
.date-pill { display: inline-flex; align-items: center; gap: 6px; padding: 4px 11px 4px 9px; border-radius: 8px; background: var(--accent-soft); color: var(--accent); font-size: .88rem; font-weight: 600; text-transform: capitalize; }
.date-pill b { font-weight: 800; font-variant-numeric: tabular-nums; }
.date-pill svg { width: 15px; height: 15px; }
.date-pill.is-today { background: var(--accent); color: #fff; }
.date-pill.is-soon { background: color-mix(in srgb, var(--accent) 28%, transparent); }
@media (max-width: 760px) {
  .ev > summary { grid-template-columns: 62px 1fr 18px; }
  .ev-clock { height: 62px; }
  .c-time { font-size: 1.15rem; }
}
/* nadpis dne nad akcemi */
.month { margin-bottom: 22px; }
.day-line { display: flex; align-items: center; gap: 12px; margin: 0 0 10px 4px; font-size: .86rem; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; color: var(--accent); }
.day-line::after { content: ""; flex: 1; height: 1px; background: var(--line); }
.day-line.is-today { color: #f5a524; }

/* ===== souhrn výkazu ===== */
.sum-tiles { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 12px; margin-bottom: 18px; }
.sum-tile { position: relative; display: grid; gap: 2px; padding: 16px 18px 16px 66px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); min-width: 0; }
.sum-icon { position: absolute; left: 16px; top: 18px; display: grid; place-items: center; width: 36px; height: 36px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.sum-icon svg { width: 20px; height: 20px; }
.sum-label { font-size: .74rem; font-weight: 700; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); }
.sum-value { font-size: 1.55rem; font-weight: 800; letter-spacing: -.02em; font-variant-numeric: tabular-nums; }
.sum-note { font-size: .8rem; color: var(--muted); line-height: 1.35; }
.sum-total { background: linear-gradient(135deg, var(--accent), var(--accent-deep)); border-color: transparent; color: #fff; box-shadow: 0 8px 24px color-mix(in srgb, var(--accent) 30%, transparent); }
.sum-total .sum-icon { background: rgba(255, 255, 255, .18); color: #fff; }
.sum-total .sum-label, .sum-total .sum-note { color: rgba(255, 255, 255, .78); }
@media (max-width: 760px) { .sum-tiles { grid-template-columns: 1fr; } }
@media print { .sum-total { background: none; color: #000; border: 1px solid #000; box-shadow: none; } .sum-total .sum-label, .sum-total .sum-note { color: #444; } }
/* pokrytá akce – lehce šedá (pokud na ní nejsem já) */
.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed) { opacity: .55; filter: saturate(.4); }
.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed):hover { opacity: .75; }
/* zrušená akce – červený přechod, červený čas a ZRUŠENO */
.ev-cancelled { background: linear-gradient(90deg, rgba(229, 45, 55, .22), rgba(229, 45, 55, .06) 40%, var(--ev-bg) 72%); }
.ev-cancelled .ev-clock { border-color: rgba(229, 45, 55, .55); }
.ev-cancelled .c-time { color: var(--err); text-decoration: line-through; }
.ev-cancelled .ev-title span { color: var(--muted); }
.c-cancel { padding: 1px 6px; border-radius: 4px; font-size: .58rem; font-weight: 800; letter-spacing: .08em; color: var(--err); background: var(--err-soft); }
/* kategorie – jemný přechod zdola nahoru (modrá chlapci, červená dívky) */
.ev > summary, .ev > .ev-body { position: relative; z-index: 1; }
/* odběr kalendáře */
.ical-box { margin-top: 18px; }
.ical-head { display: flex; gap: 14px; align-items: flex-start; margin-bottom: 12px; }
.ical-head h2 { margin: 0 0 2px; }
.ical-head p { margin: 0; }
.ical-icon { flex: none; display: grid; place-items: center; width: 40px; height: 40px; border-radius: 10px; background: var(--accent-soft); color: var(--accent); }
.ical-icon svg { width: 22px; height: 22px; }
.ical-url { display: flex; gap: 8px; margin-bottom: 10px; }
.ical-url input { flex: 1; min-width: 0; font: 12.5px ui-monospace, SFMono-Regular, Menlo, monospace; }
.ical-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 8px; }
/* admin – řádek pro každého přihlášeného */
.pos-row { display: grid; grid-template-columns: minmax(120px, 200px) 110px 1fr auto; gap: 12px; align-items: center; padding: 9px 12px; border-radius: 10px; background: var(--surface-2); }
.pos-row .pos-name { font-weight: 700; }
.pos-row-amount { font-weight: 800; font-variant-numeric: tabular-nums; text-align: right; }
.pos-row-person { font-weight: 600; }
.pos-row-person em { margin-left: 8px; font-style: normal; font-size: .72rem; font-weight: 700; color: var(--warn); }
.pos-row-actions { display: flex; gap: 6px; justify-content: flex-end; }
.pos-row-confirmed { box-shadow: inset 3px 0 var(--ok); }
.pos-row-pending { box-shadow: inset 3px 0 #f5a524; }
.pos-row-free { box-shadow: inset 3px 0 color-mix(in srgb, var(--err) 60%, transparent); }
.pos-row-free .pos-row-person { font-style: italic; font-weight: 500; }
.pos-tasks-admin { margin: 2px 0 4px 12px; }
@media (max-width: 760px) { .pos-row { grid-template-columns: 1fr auto; } .pos-row-person { grid-column: 1; } .pos-row-actions { grid-column: 2; grid-row: 1 / span 2; } .pos-row-amount { text-align: left; } }
/* odkaz na disk */
.drive-link { display: flex; align-items: center; gap: 12px; padding: 10px 14px; border-radius: 12px; border: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); background: var(--accent-soft); color: var(--text); text-decoration: none; }
.drive-link:hover { border-color: var(--accent); }
.drive-link svg { flex: none; width: 22px; height: 22px; color: var(--accent); }
.drive-link span:not(.drive-open) { display: grid; line-height: 1.25; min-width: 0; }
.drive-link small { color: var(--muted); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.drive-open { margin-left: auto; font-weight: 700; font-size: .86rem; color: var(--accent); white-space: nowrap; }
/* rozbalovací poznámky a úkoly */
.fold { border-radius: var(--radius-s); background: var(--surface-2); border-left: 3px solid var(--accent); }
.fold > summary { display: flex; align-items: center; gap: 8px; padding: 9px 14px; cursor: pointer; list-style: none; font-weight: 700; font-size: .9rem; }
.fold > summary::-webkit-details-marker { display: none; }
.fold > summary::after { content: ""; width: 6px; height: 6px; margin-left: auto; border: solid var(--muted); border-width: 0 2px 2px 0; transform: rotate(45deg); transition: transform .2s; }
.fold[open] > summary::after { transform: rotate(-135deg); }
.fold-body { padding: 0 14px 12px; font-size: .9rem; line-height: 1.5; }
.fold-pos { grid-column: 1 / -1; border-left-color: var(--muted); background: var(--surface); }
.pos-list > .fold-pos { margin: -2px 0 2px 12px; }
/* detail akce – seznam uživatelů s cenami */
.people-table td { vertical-align: middle; }
.adj-input { text-align: right; }
.adj-state { display: block; min-height: 1em; font-size: .7rem; font-weight: 700; color: var(--muted); }
.adj-state.is-ok { color: var(--ok); }
.adj-state.is-error { color: var(--err); }
.signup-pill { display: inline-flex; align-items: center; gap: 6px; margin: 2px 4px 2px 0; padding: 3px 4px 3px 10px; border-radius: 999px; font-size: .8rem; font-weight: 600; background: var(--surface-2); border: 1px solid var(--line); white-space: nowrap; }
.signup-confirmed { background: var(--ok-soft); border-color: transparent; color: var(--ok); }
.signup-pending { background: var(--warn-soft); border-color: transparent; color: var(--warn); }
.signup-rejected { background: var(--err-soft); border-color: transparent; color: var(--err); }
.people-table .actions { white-space: normal; }
/* editor formátovaného textu */
.rte-field { display: grid; gap: 5px; }
.rte-label { font-size: .86rem; font-weight: 600; }
.rte { border: 1px solid var(--line); border-radius: var(--radius-s); background: var(--surface-2); overflow: hidden; }
.rte:focus-within { border-color: var(--accent); box-shadow: 0 0 0 3px var(--accent-soft); }
.rte-toolbar { display: flex; flex-wrap: wrap; align-items: center; gap: 2px; padding: 5px; border-bottom: 1px solid var(--line); background: var(--surface); }
.rte-toolbar button { min-width: 30px; height: 30px; padding: 0 7px; border: 0; border-radius: 7px; background: transparent; color: var(--text); font: inherit; font-size: .9rem; cursor: pointer; }
.rte-toolbar button:hover { background: var(--surface-2); }
.rte-sep { width: 1px; height: 20px; margin: 0 4px; background: var(--line); }
.rte-color { min-width: 22px !important; width: 22px; height: 22px !important; padding: 0 !important; margin: 0 2px; border-radius: 50% !important; background: var(--c) !important; box-shadow: inset 0 0 0 2px rgba(255, 255, 255, .25); }
.rte-color-reset { background: var(--surface-2) !important; color: var(--text) !important; font-weight: 700; font-size: .75rem !important; box-shadow: inset 0 0 0 1px var(--line); }
.rte-area { min-height: 96px; max-height: 360px; overflow-y: auto; padding: 10px 12px; font-size: .93rem; line-height: 1.55; outline: none; }
.rte-area.is-empty::before { content: attr(data-placeholder); color: var(--muted); pointer-events: none; }
.rte-area ul, .rte-area ol, .rich ul, .rich ol { margin: 4px 0; padding-left: 22px; }
.rich li, .rte-area li { margin: 2px 0; }

/* ===== podklad karet akcí – plná tmavě modrá (světlý režim bílá) ===== */
:root { --ev-bg: #ffffff; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ev-bg: #111b2e; } }
:root[data-theme="dark"] { --ev-bg: #111b2e; }

/* ===== bez průhlednosti: obsazené a proběhlé akce mají plnou barvu ===== */
:root { --ev-covered-bg: #eceef2; --ev-covered-clock: #dfe2e8; }
@media (prefers-color-scheme: dark) { :root:not([data-theme="light"]) { --ev-covered-bg: #1b2029; --ev-covered-clock: #252b36; } }
:root[data-theme="dark"] { --ev-covered-bg: #1b2029; --ev-covered-clock: #252b36; }
.ev.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed),
.ev.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed):hover { opacity: 1; filter: none; background: var(--ev-covered-bg); }
.ev.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed) .ev-clock { background: var(--ev-covered-clock); }
.ev.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed) :is(.ev-title, .c-time, .type-pill, .ev-meta) { color: var(--muted); }
.ev.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed) .type-pill { background: var(--ev-covered-clock); }
.ev.ev-covered:not(.ev-my-pending):not(.ev-my-confirmed) .type-pill::before { background: var(--muted); }
.ev.ev-past, .ev.ev-past:hover { opacity: 1; }
.ev-past :is(.ev-title, .c-time) { color: var(--muted); }

/* ===== logo klubu ===== */
.brand-mark.has-logo { background: var(--logo-bg, #fff); padding: 2px; overflow: hidden; box-shadow: none; }
.brand-mark.has-logo img { width: 100%; height: 100%; object-fit: contain; display: block; }
.logo-field { display: flex; gap: 14px; align-items: center; }
.logo-field label { flex: 1; }
.logo-preview { flex: none; display: grid; place-items: center; width: 64px; height: 64px; border-radius: 14px; background: var(--surface-2); border: 1px solid var(--line); overflow: hidden; }
.logo-preview img { max-width: 100%; max-height: 100%; object-fit: contain; }

/* ===== záložky nastavení ===== */
.settings-tabs { margin-bottom: 18px; }

/* ===== okna (dialog) ===== */
dialog.modal { width: min(440px, calc(100vw - 32px)); padding: 24px; border: 1px solid var(--line); border-radius: 18px; background: var(--surface); color: var(--text); box-shadow: 0 30px 80px rgba(0, 0, 0, .35); }
dialog.modal::backdrop { background: rgba(5, 8, 15, .55); backdrop-filter: blur(3px); }
dialog.modal h2 { margin: 0 32px 4px 0; font-size: 1.2rem; }
.modal-close-form { position: absolute; top: 12px; right: 12px; margin: 0; }
.modal-x { width: 32px; height: 32px; border: 0; border-radius: 8px; background: var(--surface-2); color: var(--text); font-size: 1.3rem; line-height: 1; cursor: pointer; }
.contact-table th { width: 90px; color: var(--muted); font-weight: 600; text-align: left; }
.contact-table a { font-weight: 600; }
.person-link { padding: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-decoration: underline; text-decoration-style: dotted; text-underline-offset: 3px; }
.person-link:hover { color: var(--accent); }
.form-actions { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }

/* ===== barvy klubu ===== */
.presets { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 16px; }
.preset { display: inline-flex; align-items: center; gap: 8px; padding: 6px 12px 6px 6px; border-radius: 999px; border: 1px solid var(--line); background: var(--surface-2); color: var(--text); font: inherit; font-size: .86rem; font-weight: 600; cursor: pointer; }
.preset span { width: 22px; height: 22px; border-radius: 50%; background: linear-gradient(135deg, var(--p1) 50%, var(--p2) 50%); }
.preset:hover { border-color: var(--accent); }
.theme-modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }
.theme-mode { margin: 0; padding: 14px; border: 1px solid var(--line); border-radius: var(--radius-s); display: grid; gap: 10px; min-width: 0; }
.theme-mode legend { padding: 0 6px; font-weight: 700; }
.color-row { display: flex !important; align-items: center; gap: 10px; font-weight: 600; }
.color-row input[type=color] { width: 44px !important; height: 32px; padding: 2px; flex: none; }
.color-row code { margin-left: auto; font-size: 12px; }
.theme-preview { border-radius: 12px; overflow: hidden; border: 1px solid var(--line); background: var(--tp-bg); }
.tp-head { display: flex; align-items: center; gap: 8px; height: 34px; padding: 0 10px; background: var(--tp-header); box-shadow: inset 0 -2px 0 var(--tp-accent); }
.tp-mark { width: 18px; height: 18px; border-radius: 5px; background: var(--tp-accent); }
.tp-line { width: 60px; height: 6px; border-radius: 3px; background: color-mix(in srgb, #fff 45%, var(--tp-header)); }
.tp-body { display: flex; align-items: center; gap: 10px; padding: 12px; }
.tp-card { flex: 1; display: grid; gap: 6px; padding: 10px; border-radius: 8px; background: color-mix(in srgb, var(--tp-bg) 86%, #fff); border: 1px solid color-mix(in srgb, var(--tp-bg) 80%, #888); }
.tp-pill { width: 50px; height: 8px; border-radius: 4px; background: var(--tp-accent); }
.tp-text { width: 80%; height: 6px; border-radius: 3px; background: color-mix(in srgb, var(--tp-bg) 50%, #888); }
.tp-btn { padding: 6px 10px; border-radius: 7px; background: var(--tp-accent); color: #fff; font-size: .75rem; font-weight: 700; }

/* ===== tabulka částek ===== */
.amounts-table th, .amounts-table td { white-space: nowrap; }
.rate-cell { display: inline-flex; align-items: center; gap: 6px; }
.rate-cell input[type=number] { width: 92px; }

/* ===== správa platformy ===== */
.input-suffix { display: flex; align-items: stretch; }
.input-suffix input { border-top-right-radius: 0; border-bottom-right-radius: 0; }
.input-suffix span { display: grid; place-items: center; padding: 0 11px; border: 1px solid var(--line); border-left: 0; border-radius: 0 var(--radius-s) var(--radius-s) 0; background: var(--surface); color: var(--muted); font-weight: 500; white-space: nowrap; }
.form-sub { margin: 8px 0 0; font-size: .95rem; }
.form-row { display: flex; flex-wrap: wrap; gap: 8px; justify-content: flex-end; }
.form-row input { max-width: 240px; }
.plain-list { list-style: none; margin: 0 0 12px; padding: 0; display: grid; gap: 6px; }
.stats { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 8px; }
.stats div { padding: 10px 12px; border-radius: var(--radius-s); background: var(--surface-2); }
.stats dt { font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); }
.stats dd { margin: 0; font-size: 1.3rem; font-weight: 800; }
.callout { border-color: color-mix(in srgb, var(--accent) 40%, var(--line)); background: var(--accent-soft); }
.steps { margin: 0; padding-left: 20px; display: grid; gap: 8px; }
.btn-danger { background: var(--err); color: #fff; box-shadow: none; }
.btn-danger:hover { background: color-mix(in srgb, var(--err) 85%, #000); }
/* úvodní okno – kroky */
.onb-step { display: flex; gap: 12px; align-items: flex-start; margin-top: 4px; }
.onb-step p { margin: 2px 0 0; }
.onb-num { flex: none; display: grid; place-items: center; width: 26px; height: 26px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font-weight: 800; font-size: .85rem; }

/* ===== editor loga (ořez do čtverce + pozadí) ===== */
.logo-editor { display: grid; grid-template-columns: 200px 1fr; gap: 18px; align-items: start; }
.le-stage { position: relative; width: 200px; height: 200px; border-radius: 22px; overflow: hidden; background: var(--le-bg, #fff); border: 1px solid var(--line); box-shadow: var(--shadow); touch-action: none; cursor: grab; }
.le-stage.is-dragging { cursor: grabbing; }
.le-stage.is-transparent { background: repeating-conic-gradient(#c9ced8 0 25%, #f3f5f8 0 50%) 0 0 / 16px 16px; }
.le-stage canvas { display: block; width: 100%; height: 100%; }
.le-empty { position: absolute; inset: 0; display: grid; place-content: center; text-align: center; font-size: 2.4rem; font-weight: 800; color: var(--muted); }
.le-empty small { font-size: .75rem; font-weight: 600; }
.le-controls { display: grid; gap: 12px; min-width: 0; }
.le-tools { display: grid; gap: 8px; }
.le-tools p { margin: 0; }
.le-zoom input { width: 100%; accent-color: var(--accent); }
.le-buttons { display: flex; flex-wrap: wrap; gap: 6px; }
.le-bg { display: grid; gap: 6px; }
.le-bg-label { font-size: .86rem; font-weight: 600; }
.le-swatches { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; }
.le-swatch { width: 30px; height: 30px; padding: 0; border-radius: 8px; border: 1px solid var(--line); background: var(--c); cursor: pointer; box-shadow: inset 0 0 0 2px color-mix(in srgb, var(--surface) 30%, transparent); }
.le-swatch:hover { border-color: var(--accent); }
.le-swatches input[type=color] { width: 44px; height: 32px; padding: 2px; }
.le-swatches label.check { margin-left: 4px; }
@media (max-width: 560px) { .logo-editor { grid-template-columns: 1fr; } .le-stage { margin: 0 auto; } }
