/* GolferIS Admin – barvy Týčko, styl: tmavé plochy, kondenzované nadpisy */
/* Písma jsou na vlastním serveru (licence OFL v assets/fonts), žádné volání Google Fonts. */
@font-face { font-family: "Plus Jakarta Sans"; src: url("fonts/PlusJakartaSans-var.woff2") format("woff2"); font-weight: 200 800; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-Bold.woff2") format("woff2"); font-weight: 700; font-style: normal; font-display: swap; }
@font-face { font-family: "Barlow Condensed"; src: url("fonts/BarlowCondensed-ExtraBold.woff2") format("woff2"); font-weight: 800; font-style: normal; font-display: swap; }
:root {
  --brand: #268068;        /* Týčko zelená – tlačítka, aktivní prvky */
  --brand-deep: #0d5542;
  --brand-tint: #e3f0ec;
  --night: #0f2c24;        /* tmavé plochy (levý panel, hlavička, aktivní karta) */
  --night-2: #173b31;
  --bg: #f6f3ed;           /* teplé pozadí jako aplikace Týčko */
  --surface: #ffffff;
  --line: #e3ddd2;
  --line-2: #d6cfc2;
  --ink: #1f1f1f;
  --muted: #5f6663;
  --gold: #f4c542;         /* fokus a zvýraznění */
  --warn-ink: #7a5300; --warn-bg: #fbf0d2;
  --danger: #a3171c; --danger-bg: #fbe9e9;
  --radius: 14px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
  --display: "Barlow Condensed", "Arial Narrow", system-ui, sans-serif;
  color-scheme: light;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: var(--brand-deep); }
img { max-width: 100%; }
[hidden] { display: none !important; }
.sr { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
.wrap { width: min(1240px, 100%); margin: 0 auto; padding-inline: 32px; }
@media (max-width: 640px) { .wrap { padding-inline: 16px; } }

/* type */
.title { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 52px; line-height: 1; letter-spacing: .005em; }
.title--md { font-size: 36px; }
.title--sm { font-size: 28px; }
@media (max-width: 640px) { .title { font-size: 40px; } }
.display { font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: clamp(56px, 7vw, 96px); line-height: .92; color: #fff; }
.sub { margin: 0; color: var(--muted); font-size: 15.5px; }
.eyebrow { margin: 0; font-size: 12.5px; font-weight: 700; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.eyebrow--light { color: #b9d6cc; }
.hint { margin: 0; font-size: 13px; color: var(--muted); }
.muted { color: var(--muted); }
.mono { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 13px; }
.nowrap { white-space: nowrap; }
.block { display: block; }
small { font-size: 12.5px; }

/* buttons & inputs */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--brand); background: var(--brand); color: #fff; font: inherit; font-weight: 700; text-decoration: none; cursor: pointer; }
.btn:hover { background: var(--brand-deep); border-color: var(--brand-deep); color: #fff; }
.btn--lg { min-height: 52px; font-size: 16px; }
.btn--block { width: 100%; }
.btn--small { min-height: 36px; padding: 0 14px; font-size: 14px; }
.btn--ghost { background: var(--surface); color: var(--ink); border-color: var(--line-2); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand); }
.btn--danger { background: var(--surface); color: var(--danger); border-color: var(--line-2); }
.btn--danger:hover { background: var(--danger-bg); color: var(--danger); border-color: var(--danger); }
.btn--outline-light { background: transparent; border-color: rgba(255,255,255,.35); color: #fff; font-weight: 600; }
.btn--outline-light:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.input { width: 100%; min-height: 50px; border: 1px solid var(--line-2); border-radius: 10px; padding: 0 14px; font: inherit; background: var(--surface); color: var(--ink); }
.input--sm { min-height: 40px; font-size: 14px; }
select.input { padding-right: 8px; }
.input:focus, .btn:focus-visible, a:focus-visible, .check input:focus-visible, summary:focus-visible { outline: 3px solid var(--gold); outline-offset: 1px; }
.field { display: flex; flex-direction: column; gap: 7px; }
.field label, .field__row label { font-size: 14px; font-weight: 700; }
.field__row { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.check { display: flex; align-items: center; gap: 10px; font-size: 14.5px; color: var(--graphite, #3d3d3d); cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--brand); margin: 0; }
.forgot { font-size: 13.5px; text-align: right; }
.forgot summary { cursor: pointer; color: var(--brand-deep); text-decoration: underline; list-style: none; }
.forgot summary::-webkit-details-marker { display: none; }
.forgot p { margin: 6px 0 0; max-width: 300px; color: var(--muted); text-align: left; }

.alert { border-radius: 10px; padding: 12px 14px; font-size: 14px; }
.alert--ok { background: var(--brand-tint); color: var(--brand-deep); }
.alert--warn { background: var(--warn-bg); color: var(--warn-ink); }
.alert--error { background: var(--danger-bg); color: var(--danger); }

/* login: split screen */
.split { min-height: 100vh; display: grid; grid-template-columns: 1fr 1fr; }
.split__brand { background: var(--night); color: #fff; padding: 56px 48px 40px; display: flex; flex-direction: column; gap: 40px; position: relative; overflow: hidden; }
.split__brand::after { content: ""; position: absolute; right: -180px; bottom: -180px; width: 520px; height: 520px; border-radius: 50%; border: 2px solid rgba(38,128,104,.45); box-shadow: 0 0 0 40px rgba(38,128,104,.08), 0 0 0 90px rgba(38,128,104,.05); pointer-events: none; }
.split__logo { width: 260px; height: auto; }
.split__claim { margin-top: auto; margin-bottom: auto; display: flex; flex-direction: column; gap: 12px; position: relative; z-index: 1; }
.split__sub { margin: 0; color: #cfe3dc; font-size: 16px; }
.split__foot { margin: 0; color: #9fbdb3; font-size: 13.5px; position: relative; z-index: 1; }
.split__form { display: flex; align-items: center; justify-content: center; padding: 48px 32px; }
.login { width: min(420px, 100%); display: flex; flex-direction: column; gap: 20px; }
.login .title { font-size: 46px; }
.login__logo-mobile { display: none; width: 200px; height: auto; }
@media (max-width: 860px) {
  .split { grid-template-columns: 1fr; }
  .split__brand { display: none; }
  .split__form { padding: 40px 16px; align-items: flex-start; }
  .login__logo-mobile { display: block; margin-bottom: 8px; }
}

/* top bar */
.topbar { background: var(--night); color: #fff; }
.topbar__in { display: flex; align-items: center; justify-content: space-between; gap: 16px; min-height: 76px; flex-wrap: wrap; padding-block: 10px; }
.topbar__brand { display: flex; align-items: center; gap: 14px; text-decoration: none; color: #fff; }
.topbar__logo { width: 168px; height: auto; display: block; }
.topbar__tag { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; letter-spacing: .02em; padding-left: 14px; border-left: 1px solid rgba(255,255,255,.25); line-height: 1; }
.topbar__user { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.topbar__user form { margin: 0; }
.topbar__who { display: flex; flex-direction: column; line-height: 1.25; }
.topbar__who b { font-size: 14px; }
.topbar__who small { color: #b9d6cc; }
.topbar__back { color: #fff; font-weight: 600; }
.topbar__star { display: inline-flex; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 999px; color: #e8f1ee; flex: none; }
.topbar__star:hover, .topbar__star.is-on { color: var(--gold); background: rgba(255,255,255,.08); }
.rn { display: flex; flex-direction: column; }
.rn__item { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 8px 24px; padding: 18px 22px; border-bottom: 1px solid var(--line); }
.rn__item:last-child { border-bottom: 0; }
.rn__ver { font-family: var(--display); font-size: 22px; font-weight: 800; line-height: 1.1; }
.rn__item.is-current .rn__ver { color: var(--brand); }
.rn__date { display: block; font-size: 13px; color: var(--muted); margin-top: 2px; }
.rn__title { margin: 0 0 4px; font-size: 16px; font-weight: 700; }
.rn__list { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 3px; font-size: 14.5px; }
@media (max-width: 640px) { .rn__item { grid-template-columns: minmax(0, 1fr); } }
@media (max-width: 640px) { .topbar__who { display: none; } .topbar__logo { width: 130px; } }

.avatar { flex: none; width: 38px; height: 38px; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; font-size: 15px; background: #ece6da; color: var(--ink); }
.avatar--light { background: #f1ede4; color: var(--night); }
.avatar--dark { background: var(--night); color: #fff; }

/* pages */
.page { padding-block: 48px 72px; display: flex; flex-direction: column; gap: 32px; }
.page--narrow { width: min(640px, 100%); }
.page__head { display: flex; flex-direction: column; gap: 10px; }
.stack { display: flex; flex-direction: column; gap: 20px; }
.stack-sm { display: flex; flex-direction: column; gap: 8px; }
.row { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; }
.row--between { justify-content: space-between; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 26px; }
.card.stack { gap: 18px; }
.card--dark { background: var(--night); color: #e8f1ee; border-color: var(--night); }
.card--dark p { margin: 0; font-size: 14px; }
.card--dark b { color: #fff; }
.card__title { margin: 0; font-size: 16px; color: #fff; }
.muted-light { color: #9fbdb3; }

/* tool cards on the dashboard */
.apps { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 18px; }
.app { display: flex; flex-direction: column; gap: 10px; min-height: 250px; padding: 24px; border-radius: 18px; text-decoration: none; color: var(--ink); background: var(--surface); border: 1px solid var(--line); transition: transform .15s ease, box-shadow .15s ease, background-color .2s ease, border-color .2s ease, color .2s ease; }
.app .app__desc, .app .app__role { transition: color .2s ease; }
.app:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,44,36,.12); color: var(--ink); }
.app--live:hover, .app--live:focus-visible { background: var(--night); border-color: var(--night); color: #fff; }
.app--ext { border-style: dashed; border-color: var(--line-2); }
.app__top { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 26px; }
.app__name { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 34px; line-height: .98; }
.app__desc { margin: 0; font-size: 14.5px; color: var(--muted); }
.app--live:hover .app__desc, .app--live:focus-visible .app__desc { color: #cfe3dc; }
.app__foot { margin-top: auto; padding-top: 14px; display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: 14px; }
.app__open { display: inline-flex; align-items: center; gap: 6px; font-weight: 700; }
.app--ext .app__open { color: var(--muted); font-weight: 600; }
.app__role { font-size: 12.5px; color: var(--muted); }
.app--live:hover .app__role, .app--live:focus-visible .app__role { color: #9fbdb3; }
.tile { width: 52px; height: 52px; border-radius: 12px; display: inline-flex; align-items: center; justify-content: center; }
.tile--brand { background: var(--brand); color: #fff; }
.tile--muted { background: #efeae0; color: var(--ink); }
.badge { font-size: 11.5px; font-weight: 800; letter-spacing: .06em; text-transform: uppercase; border-radius: 6px; padding: 3px 8px; white-space: nowrap; }
.badge--live { background: var(--brand-tint); color: var(--brand-deep); }
.badge--soon { background: var(--warn-bg); color: var(--warn-ink); }
@media (prefers-reduced-motion: reduce) { .app { transition: none; } .app:hover { transform: none; } }
.app__top { min-height: 52px; }

/* dashboard (rozcestník) přes celou šířku obrazovky – i horní lišta */
.dash .wrap { width: 100%; }
@media (min-width: 1600px) { .dash .wrap { padding-inline: 48px; } }
.dash .apps, .dash .links { grid-template-columns: repeat(auto-fill, minmax(240px, 1fr)); gap: 18px; }

.admin { display: flex; flex-direction: column; gap: 14px; }
.links { display: grid; grid-template-columns: repeat(auto-fill, minmax(280px, 1fr)); gap: 16px; }
.link-card { display: flex; align-items: center; gap: 16px; padding: 22px 22px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); text-decoration: none; color: var(--ink); }
.link-card:hover { border-color: var(--brand); color: var(--ink); }
.link-card span { display: flex; flex-direction: column; }
.link-card b { font-size: 16px; }
.link-card small { color: var(--muted); font-size: 13.5px; }
.link-card small.ok { color: var(--brand-deep); font-weight: 600; }
.link-card--static:hover { border-color: var(--line); }
.link-card.is-on { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }

/* dashboard: panel Pořadí bloků (?poradi=1) */
.order { display: flex; flex-direction: column; gap: 20px; scroll-margin-top: 16px; }
.order__head { display: flex; gap: 16px; align-items: flex-start; }
.order__head .sub { margin: 4px 0 0; }
.order__tile { flex: none; width: 44px; height: 44px; }
.order__title { margin: 0; font-size: 20px; }
.order__cols { display: grid; grid-template-columns: repeat(auto-fit, minmax(280px, 1fr)); gap: 24px; }
.order__col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.order__list { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 6px; counter-reset: ord; }
.order__item { counter-increment: ord; display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 4px 6px 4px 8px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); }
.order__item::before { content: counter(ord); width: 22px; text-align: right; font-size: 13px; font-weight: 700; color: var(--muted); font-variant-numeric: tabular-nums; }
.order__item.is-drag { opacity: .45; }
.order__item.is-over { border-color: var(--brand); box-shadow: inset 0 0 0 1px var(--brand); }
.order__item.is-moved { background: var(--brand-tint); }
.order__grip { display: inline-flex; color: var(--muted); cursor: grab; }
.order__ico { display: inline-flex; color: var(--brand-deep); }
.order__name { flex: 1; min-width: 0; font-weight: 600; font-size: 15px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.order__btns { display: inline-flex; gap: 4px; }
.order__btn { width: 40px; height: 40px; display: inline-flex; align-items: center; justify-content: center; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); cursor: pointer; }
.order__btn:hover:not(:disabled) { border-color: var(--brand); color: var(--brand-deep); background: var(--brand-tint); }
.order__btn:disabled { opacity: .35; cursor: default; }
.order__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding-top: 4px; border-top: 1px solid var(--line); padding-top: 18px; }
.order__reset { margin-left: auto; }
.order__dirty { font-size: 13.5px; font-weight: 600; color: var(--warn-ink); }
@media (max-width: 640px) {
  .order__grip { display: none; }
  .order__foot .btn { flex: 1 1 auto; }
  .order__reset { margin-left: 0; }
}

/* users */
.grid-side { display: grid; grid-template-columns: minmax(0, 1fr) 380px; gap: 28px; align-items: start; }
@media (max-width: 1080px) { .grid-side { grid-template-columns: minmax(0, 1fr); } }
.pills { display: flex; flex-wrap: wrap; gap: 8px; }
.pill { display: inline-flex; align-items: center; gap: 6px; padding: 9px 16px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; font-size: 14.5px; }
.pill small { color: var(--muted); font-weight: 600; }
.pill.is-on { background: var(--night); border-color: var(--night); color: #fff; }
.pill.is-on small { color: #9fbdb3; }
.table-card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); overflow-x: auto; }
.table { width: 100%; border-collapse: collapse; font-size: 14.5px; }
.table th { text-align: left; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); font-weight: 700; padding: 16px 18px; border-bottom: 1px solid var(--line); white-space: nowrap; }
.table td { padding: 14px 18px; border-bottom: 1px solid var(--line); vertical-align: middle; }
.table tr:last-child td { border-bottom: 0; }
.table tr.is-sel td { background: var(--brand-tint); }
.table tr.is-warn td { background: #fdf7e6; }
.cell-apps { color: var(--graphite, #3d3d3d); line-height: 1.6; }
.cell-apps small { color: var(--muted); }
.cell-act { text-align: right; white-space: nowrap; }
.person { display: flex; align-items: center; gap: 12px; }
.person > span:last-child { display: flex; flex-direction: column; line-height: 1.3; min-width: 0; }
.person small { color: var(--muted); overflow-wrap: anywhere; }
.tag { display: inline-block; font-size: 12.5px; font-weight: 700; padding: 3px 9px; border-radius: 6px; background: #efeae0; white-space: nowrap; }
.tag--dark { background: var(--night); color: #fff; }
.status { font-weight: 700; font-size: 14px; white-space: nowrap; }
.status--ok { color: var(--brand-deep); }
.status--warn { color: var(--warn-ink); }
.status--off { color: var(--danger); }
.link { color: var(--danger); font-weight: 600; }
.cell-act .link, .row .link { color: var(--brand-deep); }
.access { border: 0; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.access legend { font-size: 14px; font-weight: 700; padding: 0; margin-bottom: 8px; }
.access__row { display: grid; grid-template-columns: minmax(0, 1fr) 170px; align-items: center; gap: 10px; }
.access__name { display: inline-flex; align-items: center; gap: 8px; font-size: 14.5px; }
.access__admin-note { display: none; }
.access:disabled .access__row { opacity: .45; }
.access:disabled .access__admin-note { display: block; }
.copy { display: flex; gap: 8px; }
.copy .input { flex: 1; min-width: 0; }

/* log pages and account history */
.filters { display: flex; flex-wrap: wrap; gap: 12px; align-items: flex-end; }
.filters .field { gap: 4px; min-width: 200px; }
.field__label { font-size: 13px; font-weight: 700; }
.pill--warn { border-color: #e9cf86; background: var(--warn-bg); color: var(--warn-ink); }
.pill--warn small { color: var(--warn-ink); }
.ev { font-weight: 700; white-space: nowrap; }
.ev--ok { color: var(--brand-deep); }
.ev--bad { color: var(--danger); }
.cell-changes { min-width: 260px; }
.chg { display: block; font-size: 14px; line-height: 1.5; }
.chg s { color: var(--muted); }
.link-plain { color: inherit; text-decoration: none; border-bottom: 1px dotted var(--line-2); }
.link-plain:hover { color: var(--brand-deep); border-bottom-color: var(--brand); }
.card__title--ink { color: var(--ink); }
.timeline { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; }
.timeline li { padding: 9px 0 9px 14px; border-left: 2px solid var(--line); display: flex; flex-direction: column; gap: 2px; }
.timeline__head { font-size: 14px; }
.timeline__head small { color: var(--muted); }
.timeline__body .chg { font-size: 13px; }

/* ---------------------------------------------------------------- apps inside the portal (Recenze, Sociální sítě) */
.topbar--app { position: sticky; top: 0; z-index: 20; }
.topbar--app .topbar__in { min-height: 64px; flex-wrap: nowrap; }
.topbar__apps { display: inline-flex; align-items: center; gap: 6px; padding: 7px 14px 7px 10px; border-radius: 999px; background: var(--brand); color: #fff; font-weight: 700; font-size: 14px; text-decoration: none; white-space: nowrap; }
.topbar__apps:hover { background: #2f9a7d; color: #fff; }
.topbar__apps .s { display: none; }
.topbar__app { font-family: var(--display); font-weight: 800; font-size: 22px; text-transform: uppercase; color: #cfe3dc; white-space: nowrap; }
@media (max-width: 900px) { .topbar__app, .topbar--app .topbar__who { display: none; } }
@media (max-width: 560px) { .topbar--app .topbar__tag, .topbar--app .avatar { display: none; } .topbar--app .topbar__logo { width: 96px; } .topbar__apps .l { display: none; } .topbar__apps .s { display: inline; } }
.subnav { background: var(--surface); border-bottom: 1px solid var(--line); position: sticky; top: 64px; z-index: 15; }
.subnav__in { display: flex; gap: 4px; overflow-x: auto; }
.subnav a { padding: 13px 14px 11px; color: var(--muted); font-weight: 600; text-decoration: none; white-space: nowrap; border-bottom: 3px solid transparent; }
.subnav a:hover { color: var(--ink); }
.subnav a[aria-current="page"] { color: var(--ink); border-bottom-color: var(--brand); }
.page--app { padding-block: 32px 72px; gap: 22px; }
.page__head--row { flex-direction: row; flex-wrap: wrap; justify-content: space-between; align-items: flex-end; gap: 16px; }
.page__head--row > div { display: flex; flex-direction: column; gap: 10px; }
.small { font-size: 13px; }
.danger { color: var(--danger); }
.field--grow { flex: 1 1 220px; }
.counter { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; }
.counter.is-over { color: var(--danger); font-weight: 700; }
.linkbtn { background: none; border: 0; padding: 0; font: inherit; font-size: 14px; color: var(--brand-deep); font-weight: 600; cursor: pointer; text-decoration: underline; text-underline-offset: 2px; }
.linkbtn--danger { color: var(--danger); }
.tag--warn { background: var(--warn-bg); color: var(--warn-ink); }
.table-card--flat { border: 0; border-radius: 0; }
.pager { display: flex; flex-wrap: wrap; gap: 6px; justify-content: center; }
.pager a { min-width: 38px; text-align: center; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); text-decoration: none; font-weight: 600; }
.pager a[aria-current="page"] { background: var(--night); border-color: var(--night); color: #fff; }
details > summary { cursor: pointer; }
.synclog { padding: 18px 22px; }
.synclog .table-card { margin-top: 12px; }
code { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: .92em; background: #efeae0; padding: 1px 5px; border-radius: 4px; }

/* stat tiles */
.stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.stat { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 2px; text-decoration: none; color: var(--ink); }
a.stat:hover { border-color: var(--brand); }
.stat b { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; }
.stat span { font-size: 13px; color: var(--muted); }
.stat--warn b { color: var(--warn-ink); }

/* reviews */
.review { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line-2); border-radius: var(--radius); padding: 18px 20px; display: flex; flex-direction: column; gap: 10px; scroll-margin-top: 130px; }
.review--neg { border-left-color: var(--danger); }
.review:target { box-shadow: 0 0 0 3px var(--gold); }
.review__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; font-size: 14px; }
.review__title { margin: 0; font-size: 16px; }
.review__body { margin: 0; white-space: normal; }
.review__tr { margin: 0; color: var(--muted); font-style: italic; }
.review__tr span { font-style: normal; font-weight: 700; }
.review__reply { background: var(--brand-tint); border-radius: 10px; padding: 10px 14px; }
.review__reply.is-stale { background: var(--warn-bg); }
.review__reply p { margin: 4px 0 0; }
.review__reply-head { font-size: 13px; font-weight: 700; color: var(--brand-deep); display: flex; flex-wrap: wrap; gap: 6px; align-items: center; }
.review__form summary { font-weight: 700; color: var(--brand-deep); font-size: 14px; }
.review__form form { display: flex; flex-direction: column; gap: 8px; margin-top: 10px; }
.review__form textarea { min-height: 80px; padding: 10px 12px; line-height: 1.45; }
.review__foot { display: flex; flex-wrap: wrap; gap: 10px 20px; align-items: center; padding-top: 8px; border-top: 1px solid var(--line); }
.review__foot form { margin: 0; }
.note-form { display: flex; gap: 8px; align-items: center; flex: 1 1 260px; }
.note-form .input { min-height: 34px; }
.store { font-size: 12px; font-weight: 800; padding: 3px 8px; border-radius: 6px; white-space: nowrap; }
.store--google { background: #e3f0ec; color: #0d5542; }
.store--apple { background: #e8eaf0; color: #23283a; }
.stars { color: #e0a100; letter-spacing: 1px; }
.stars__off { color: #ddd6c8; }
textarea.input { padding: 10px 12px; line-height: 1.45; min-height: 80px; resize: vertical; }

/* ---------------------------------------------------------------- Sociální sítě */
.alink { color: var(--brand-deep); font-weight: 700; text-decoration: none; }
.alink:hover { text-decoration: underline; }
.backlink { display: inline-block; margin-bottom: 6px; color: var(--brand-deep); font-size: 14px; font-weight: 700; text-decoration: none; }
.title--xs { font-size: 20px; }
.row--end { justify-content: flex-end; align-items: flex-end; }
.grid2 { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.grid3 { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 16px; }
.grid2--wide { gap: 28px; align-items: start; }
@media (max-width: 760px) { .grid2, .grid3 { grid-template-columns: minmax(0, 1fr); } }
.grid-side--wide { grid-template-columns: minmax(0, 1fr) 360px; }
@media (max-width: 1080px) { .grid-side--wide { grid-template-columns: minmax(0, 1fr); } }
.field__error { color: var(--danger); font-size: 13px; font-weight: 600; }
.fieldset { border: 0; margin: 0; padding: 0; }
.fieldset legend { font-size: 14px; font-weight: 700; margin-bottom: 10px; padding: 0; }
.sep { border: 0; border-top: 1px solid var(--line); margin: 4px 0; width: 100%; }
.break { word-break: break-all; }
.prewrap { white-space: pre-line; margin: 0; }
.rounded { border-radius: 10px; display: block; width: 100%; }
.check--top { align-items: flex-start; line-height: 1.45; }
.check--top input { margin-top: 2px; flex: none; }
b.ok { color: var(--brand-deep); } b.warn { color: var(--warn-ink); }

/* badges */
.sbadge { display: inline-flex; align-items: center; padding: 3px 10px; border-radius: 999px; font-size: 12.5px; font-weight: 700; white-space: nowrap; background: #eceae4; color: var(--muted); }
.sbadge--ok { background: var(--brand-tint); color: var(--brand-deep); }
.sbadge--info { background: #e4edf7; color: #1f4f86; }
.sbadge--warn { background: var(--warn-bg); color: var(--warn-ink); }
.sbadge--bad { background: var(--danger-bg); color: var(--danger); }
.sbadge--paid { background: #fdf3cf; color: #6b4f00; }
.sbadge--draft { background: #f1efe9; color: var(--muted); }
.ch { display: inline-block; min-width: 26px; padding: 1px 6px; margin-right: 4px; border-radius: 6px; font-size: 11.5px; font-weight: 800; text-align: center; color: #fff; }
.ch--fb, .channel--facebook { --c: var(--fb); }
.ch--ig, .channel--instagram { --c: var(--ig); }
.ch { background: var(--c); }
.channel { display: inline-flex; align-items: center; gap: 6px; font-size: 13.5px; font-weight: 600; white-space: nowrap; }
.channel::before { content: ""; width: 9px; height: 9px; border-radius: 3px; background: var(--c); }
:root { --fb: #1f5fbf; --ig: #c13584; }

/* chips (filters) */
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip { padding: 7px 13px; border: 1px solid var(--line-2); border-radius: 999px; background: var(--surface); color: var(--ink); text-decoration: none; font-size: 14px; font-weight: 600; }
.chip:hover { border-color: var(--brand); }
.chip[aria-current="true"] { background: var(--night); border-color: var(--night); color: #fff; }

/* accounts */
.account { display: flex; flex-direction: column; gap: 12px; padding: 18px; border: 1px solid var(--line); border-radius: 12px; }
.account.is-off { opacity: .65; background: #faf8f4; }
.account__name { font-size: 16.5px; }
.account__meta { display: flex; flex-wrap: wrap; gap: 6px 22px; font-size: 14px; }

/* wizard steps */
.steps { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.steps a { display: flex; align-items: center; gap: 10px; padding: 12px 14px; border-radius: 12px; background: var(--surface); border: 1px solid var(--line); color: var(--muted); font-weight: 700; font-size: 14px; text-decoration: none; height: 100%; }
.steps a span { display: inline-grid; place-items: center; flex: none; width: 26px; height: 26px; border-radius: 50%; background: #eceae4; color: var(--muted); font-size: 13px; }
.steps a.is-done { color: var(--brand-deep); }
.steps a.is-done span { background: var(--brand-tint); color: var(--brand-deep); }
.steps a[aria-current="step"] { background: var(--night); border-color: var(--night); color: #fff; }
.steps a[aria-current="step"] span { background: var(--gold); color: var(--night); }
.steps a[aria-disabled="true"] { pointer-events: none; opacity: .6; }
@media (max-width: 760px) { .steps { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
.choice { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 10px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; padding: 14px; border: 1px solid var(--line-2); border-radius: 12px; cursor: pointer; }
.choice label:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-tint); padding: 13px; }
.choice input { accent-color: var(--brand); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.choice span { display: flex; flex-direction: column; gap: 2px; }
.choice small { color: var(--muted); }

/* content step */
.post-tabs { display: flex; flex-wrap: wrap; gap: 6px; }
.post-tabs a { display: inline-flex; gap: 6px; align-items: center; padding: 8px 14px; border-radius: 999px; border: 1px solid var(--line-2); background: var(--surface); color: var(--ink); font-weight: 700; font-size: 14px; text-decoration: none; }
.post-tabs a[aria-current="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 10px; }
.spec div { background: #f8f6f1; border-radius: 10px; padding: 10px 12px; font-size: 14px; }
.spec b { display: block; font-size: 12px; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); }
.dropzone { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 26px; border: 2px dashed var(--line-2); border-radius: 14px; background: #fbfaf7; text-align: center; }
.dropzone.is-over { border-color: var(--brand); background: var(--brand-tint); }
.dropzone.is-busy { opacity: .7; pointer-events: none; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 14px; }
.thumb { margin: 0; display: flex; flex-direction: column; gap: 6px; border: 1px solid var(--line); border-radius: 12px; padding: 8px; background: var(--surface); }
.thumb.is-dragging { opacity: .4; }
.thumb__img { position: relative; border-radius: 8px; overflow: hidden; background: #eee; aspect-ratio: 4 / 5; }
.thumb__img.is-error { outline: 3px solid var(--danger); }
.thumb__img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.thumb__no { position: absolute; left: 6px; top: 6px; padding: 2px 8px; border-radius: 999px; background: rgba(15,44,36,.85); color: #fff; font-size: 12px; font-weight: 700; }
.thumb__bar { display: flex; gap: 4px; align-items: center; }
.thumb figcaption { display: flex; flex-direction: column; gap: 4px; }
.handle { cursor: grab; color: var(--muted); padding: 0 4px; }
.icon-btn { display: inline-grid; place-items: center; width: 34px; height: 34px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-weight: 700; cursor: pointer; text-decoration: none; }
.icon-btn:hover { border-color: var(--brand); background: var(--brand-tint); }
.icon-btn:disabled { opacity: .4; cursor: default; }
.icon-btn--danger { color: var(--danger); }
.icon-btn--danger:hover { border-color: var(--danger); background: var(--danger-bg); }
.note { font-size: 12.5px; line-height: 1.35; }
.note--ok { color: var(--brand-deep); } .note--warning { color: var(--warn-ink); } .note--error { color: var(--danger); }
.preview { padding: 0; overflow: hidden; position: sticky; top: 130px; }
.preview__head { display: flex; align-items: center; gap: 10px; padding: 12px 14px; }
.preview__head .muted { margin-left: auto; }
.preview img { display: block; width: 100%; }
.preview__empty { aspect-ratio: 4 / 5; display: grid; place-items: center; background: #f1efe9; }
.preview__text { margin: 0; padding: 12px 14px; font-size: 13px; white-space: pre-line; }
.modal { width: min(980px, calc(100vw - 32px)); max-height: calc(100vh - 48px); border: 0; border-radius: 16px; padding: 0; }
.modal::backdrop { background: rgba(15,44,36,.55); }
.modal__head { display: flex; justify-content: space-between; gap: 16px; padding: 20px 24px; border-bottom: 1px solid var(--line); }
.modal__body { display: grid; grid-template-columns: 340px minmax(0, 1fr); gap: 24px; padding: 20px 24px; }
@media (max-width: 760px) { .modal__body { grid-template-columns: minmax(0, 1fr); } }
.modal__results { display: flex; flex-direction: column; gap: 10px; }
.variant { border: 1px solid var(--line); border-radius: 12px; padding: 12px 14px; display: flex; flex-direction: column; gap: 8px; align-items: flex-start; }
.variant > .row { width: 100%; }
.variant p { margin: 0; white-space: pre-line; font-size: 14px; }
.ai-provider { border: 0; margin: 0; padding: 0; display: grid; gap: 6px; min-width: 0; }
.ai-provider legend { padding: 0; margin-bottom: 4px; font-weight: 600; }
.ai-provider .check { display: flex; gap: 8px; align-items: flex-start; }
.ai-provider .check.is-disabled { opacity: .6; }
.ai-reply-provider { border: 1px solid #b9d9cb; background: linear-gradient(180deg, #f1f8f4, #fff 60%); border-radius: 12px; padding: 12px 14px; display: grid; gap: 6px; }
.ai-reply-provider .hint { margin: 0; }
.ai-reply-note:empty { display: none; }

/* calendar */
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; color: var(--muted); }
.legend span { display: inline-flex; align-items: center; gap: 6px; }
.lg { display: inline-block; width: 12px; height: 12px; border-radius: 4px; background: #d9e2de; }
.lg--mine { background: var(--brand); } .lg--paid { background: var(--gold); }
.cal__title { min-width: 190px; text-align: center; }
.cal { overflow-x: auto; }
.cal__grid { display: grid; grid-template-columns: repeat(7, minmax(96px, 1fr)); border-top: 1px solid var(--line); border-left: 1px solid var(--line); min-width: 680px; }
.cal__dow { padding: 8px; font-size: 12px; font-weight: 700; text-transform: uppercase; letter-spacing: .08em; color: var(--muted); border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); background: #faf8f4; }
.cal__day { min-height: 104px; padding: 6px; display: flex; flex-direction: column; gap: 4px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.cal__day.is-out { background: #faf8f4; color: #a9a59b; }
.cal__day.is-period { background: #f2f8f5; }
.cal__day.is-today .cal__num { background: var(--night); color: #fff; border-radius: 999px; padding: 0 7px; }
.cal__num { align-self: flex-start; font-size: 12.5px; font-weight: 700; }
.cchip { display: block; padding: 4px 7px; border-radius: 7px; background: #e9eeeb; color: var(--ink); font-size: 12px; font-weight: 700; line-height: 1.3; text-decoration: none; border-left: 3px solid #b8c7c0; }
.cchip span { font-weight: 500; }
.cchip--mine { background: var(--brand-tint); border-left-color: var(--brand); }
.cchip--paid { background: #fdf3cf; border-left-color: var(--gold); }
.cchip.is-done { opacity: .7; }
.cchip.is-failed { border-left-color: var(--danger); background: var(--danger-bg); }
.plan-item { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 10px; color: var(--ink); text-decoration: none; font-size: 14px; }
.plan-item.is-active { border: 2px solid var(--brand); background: var(--brand-tint); padding: 9px 11px; }

/* review step */
.summary { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: 12px; margin: 0; font-size: 14px; }
.summary dt { color: var(--muted); font-size: 13px; }
.summary dd { margin: 0; font-weight: 700; }
.issues { display: flex; flex-direction: column; gap: 6px; }
.issue { display: flex; gap: 10px; padding: 10px 12px; border-radius: 10px; font-size: 14px; }
.issue .mark { flex: none; width: 22px; height: 22px; display: grid; place-items: center; border-radius: 50%; color: #fff; font-size: 12px; }
.issue--error { background: var(--danger-bg); color: var(--danger); } .issue--error .mark { background: var(--danger); }
.issue--warning { background: var(--warn-bg); color: var(--warn-ink); } .issue--warning .mark { background: #b07a00; }
.issue--ok { background: var(--brand-tint); color: var(--brand-deep); } .issue--ok .mark { background: var(--brand); }
.issue a { color: inherit; font-weight: 700; }
.tl-row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; padding: 12px 0; border-top: 1px solid var(--line); }
.tl-row img, .tl-row__noimg { width: 56px; height: 56px; object-fit: cover; border-radius: 8px; flex: none; }
.tl-row__noimg { display: grid; place-items: center; background: #f1efe9; font-size: 10px; color: var(--muted); text-align: center; }
.tl-row__main { flex: 1 1 240px; font-size: 14px; }
.tl-row__state { flex-basis: 100%; display: flex; flex-wrap: wrap; gap: 8px 16px; align-items: center; font-size: 13px; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv b { text-align: right; }
.launch { display: flex; flex-direction: column; gap: 14px; padding: 24px; border-radius: var(--radius); background: var(--night); color: #e8f1ee; }
.launch h2 { margin: 0; font-family: var(--display); font-weight: 800; text-transform: uppercase; font-size: 28px; color: #fff; }
.launch p { margin: 0; font-size: 14px; }
.launch .check { color: #e8f1ee; }
.launch .hint { color: #b9d6cc; }
.launch .btn:disabled { opacity: .5; cursor: not-allowed; }

/* dashboard */
.kpis { display: grid; grid-template-columns: repeat(auto-fill, minmax(160px, 1fr)); gap: 12px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.kpi__label { font-size: 12px; font-weight: 700; letter-spacing: .1em; text-transform: uppercase; color: var(--muted); }
.kpi__value { font-family: var(--display); font-weight: 800; font-size: 34px; line-height: 1; font-variant-numeric: tabular-nums; }
.kpi__meta { font-size: 12.5px; color: var(--muted); }
.delta { font-weight: 700; } .delta--up { color: var(--brand-deep); } .delta--down { color: var(--danger); }
.chart { width: 100%; height: auto; display: block; }
.chart__grid { stroke: var(--line); stroke-width: 1; }
.chart__tick { fill: var(--muted); font-size: 11px; font-family: var(--font); }
.table .num { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.post-cell { display: flex; align-items: center; gap: 12px; color: var(--ink); text-decoration: none; }
.post-cell img { width: 44px; height: 44px; object-fit: cover; border-radius: 8px; flex: none; }
.post-cell:hover b { color: var(--brand-deep); }
.comment-row { display: flex; flex-direction: column; gap: 4px; align-items: flex-start; padding: 12px 0; border-top: 1px solid var(--line); color: var(--ink); text-decoration: none; font-size: 14px; }
a.comment-row:hover { color: var(--brand-deep); }
.comment-row > .row { width: 100%; }
.comment { display: flex; flex-direction: column; gap: 8px; padding: 14px 0; border-top: 1px solid var(--line); }
.comment p { margin: 0; }
.comment--hidden > p { opacity: .55; }
.comment--done { }
.comment--reply { margin-left: 22px; padding: 10px 14px; border: 0; border-left: 3px solid var(--brand-tint); background: #faf8f4; border-radius: 0 10px 10px 0; }
:target.comment { background: #fffbe9; box-shadow: -10px 0 0 #fffbe9, 10px 0 0 #fffbe9; }
.btn--start { align-self: flex-start; }
.thumb__bar .icon-btn--danger { margin-left: auto; }
.post-tabs + .row select, .row select.input--sm { width: auto; }
.filters input[type=search] { max-width: 280px; }
.w22 { width: 22%; } .w26 { width: 26%; }
.lg--facebook { background: var(--fb); } .lg--instagram { background: var(--ig); }
.filters select.input--sm, .filters input.input--sm { width: auto; max-width: 100%; }
.page__head--row .filters { align-items: center; }
.kpis { grid-template-columns: repeat(auto-fill, minmax(145px, 1fr)); }
@media (max-width: 640px) {
  .title--md { font-size: 32px; } .title--sm { font-size: 25px; } .title--xs { font-size: 19px; }
  .in-app.social .card { padding: 18px; }
}
.chg-more summary { cursor: pointer; color: var(--brand-deep); font-weight: 600; font-size: 13px; margin-top: 4px; }
.cell-changes .chg s { color: var(--muted); }

/* ---------------------------------------------------------------- Editor birdie karet */
.bzones { display: grid; grid-template-columns: repeat(auto-fit, minmax(220px, 1fr)); gap: 12px; }
.bzone { display: flex; flex-direction: column; align-items: flex-start; gap: 6px; padding: 18px; border: 2px dashed var(--line-2); border-radius: 14px; background: #fbfaf7; cursor: pointer; }
.bzone:hover, .bzone:focus-within { border-color: var(--brand); background: var(--brand-tint); }
.bzone input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.bzone small { color: var(--muted); }
.bzone.is-busy, .bimg.is-busy { opacity: .5; pointer-events: none; }
.bassign tr.is-unknown td { background: #fdf7e6; }
.bassign tr.is-dup td { background: var(--danger-bg); }
.bassign tr.is-done td { background: var(--brand-tint); }
.bassign select { width: auto; max-width: 100%; }
[data-progress] { white-space: pre-line; }
[data-progress].is-err { color: var(--danger); font-weight: 600; }
.btable td { vertical-align: top; }
.btable .bnum { width: 84px; } .btable .binput { width: 130px; }
.bimg { display: grid; grid-template-columns: 56px minmax(0, 1fr); gap: 2px 10px; align-items: start; min-width: 220px; }
.bimg__thumb { grid-row: span 3; width: 56px; height: 84px; border-radius: 6px; overflow: hidden; background: #f1efe9; display: grid; place-items: center; border: 1px solid var(--line); }
.bimg__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.bimg__empty { font-size: 11px; color: var(--danger); font-weight: 700; }
.bimg.is-new .bimg__thumb { outline: 3px solid var(--gold); }
.bimg__name { font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 11.5px; word-break: break-all; }
.bimg__act { display: flex; gap: 10px; }
.bimg__act label { cursor: pointer; }
.bimg .sbadge { justify-self: start; }
.bmap { display: flex; flex-wrap: wrap; gap: 14px; align-items: center; }
.bmap .bimg__thumb { width: 84px; height: 84px; }
.bmap .bimg { grid-template-columns: 84px minmax(0, 1fr); }
.page > *, .stack > *, .grid-side > * { min-width: 0; }
.bzone, .bimg__act label { position: relative; }   /* skryté file inputy (.sr) se nesmí vázat na celou stránku */
.bimg__act .sr { left: 0; top: 0; }

/* prohlížení obrázků (birdie karty) */
.lightbox { width: 100vw; height: 100vh; max-width: none; max-height: none; margin: 0; padding: 0; border: 0; background: rgba(10, 26, 21, .985); color: #fff; }
.lightbox[open] { display: flex; flex-direction: column; }
.lightbox::backdrop { background: rgba(10, 26, 21, .8); }
.lightbox__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 12px 18px; flex-wrap: wrap; }
.lightbox__title { display: flex; flex-direction: column; min-width: 0; }
.lightbox__title b { font-size: 16px; }
.lightbox__title small { color: #9fbdb3; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 12px; word-break: break-all; }
.lightbox__count { color: #b9d6cc; font-variant-numeric: tabular-nums; font-size: 14px; }
.lightbox__btn { background: transparent; color: #fff; border: 1px solid rgba(255,255,255,.35); border-radius: 10px; min-height: 36px; padding: 0 14px; font: inherit; font-weight: 600; cursor: pointer; }
.lightbox__btn:hover { background: rgba(255,255,255,.1); border-color: #fff; }
.lightbox__close { width: 40px; padding: 0; font-size: 16px; }
.lightbox__stage { position: relative; flex: 1; min-height: 0; display: flex; align-items: center; justify-content: center; padding: 0 64px; }
.lightbox__stage img { max-width: 100%; max-height: 100%; object-fit: contain; border-radius: 6px; box-shadow: 0 10px 40px rgba(0,0,0,.4); background: #fff; }
.lightbox__nav { position: absolute; top: 50%; transform: translateY(-50%); width: 48px; height: 72px; border: 0; border-radius: 12px; background: rgba(255,255,255,.1); color: #fff; font-size: 40px; line-height: 1; cursor: pointer; }
.lightbox__nav:hover { background: rgba(255,255,255,.22); }
.lightbox__nav--prev { left: 10px; } .lightbox__nav--next { right: 10px; }
.lightbox__strip { display: flex; gap: 6px; overflow-x: auto; padding: 10px 18px 14px; scrollbar-width: thin; }
.lightbox__thumb { flex: none; width: 44px; height: 66px; padding: 0; border: 2px solid transparent; border-radius: 6px; overflow: hidden; background: #22403a; cursor: pointer; opacity: .55; }
.lightbox__thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.lightbox__thumb:hover { opacity: .9; }
.lightbox__thumb.is-on { opacity: 1; border-color: var(--gold); }
.lightbox__thumb.is-new { box-shadow: inset 0 -4px 0 var(--gold); }
@media (max-width: 640px) { .lightbox__stage { padding: 0 8px; } .lightbox__nav { width: 38px; height: 56px; font-size: 30px; background: rgba(0,0,0,.35); } .lightbox__count { display: none; } }
.lightbox:focus { outline: none; }
.synclog__check { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; margin-top: 14px; }
.checklist { list-style: none; margin: 10px 0 0; padding: 0; display: grid; gap: 6px; }
.checklist li { padding-left: 22px; position: relative; overflow-wrap: anywhere; }
.checklist li::before { position: absolute; left: 0; font-weight: 700; }
.checklist__ok::before { content: "✓"; color: var(--brand-deep); }
.checklist__warn::before { content: "!"; color: var(--warn-ink); }
.checklist__error { color: var(--danger); }
.checklist__error::before { content: "✕"; }

/* ---------------------------------------------------------------- GolfAmore */
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.seg { display: inline-flex; flex-wrap: wrap; gap: 4px; padding: 4px; border: 1px solid var(--line); border-radius: 10px; background: var(--surface); margin-bottom: 16px; }
.seg a { padding: 6px 12px; border-radius: 7px; text-decoration: none; color: var(--ink); font-weight: 600; font-size: 14px; }
.seg a[aria-current="page"] { background: var(--night); color: #fff; }
.ga-h { margin: 28px 0 12px; }
.ga-count { margin: 12px 0; }
/* Řádek pod tabulkou (Freelo 34117419): počet záznamů vlevo, stránkování uprostřed, počet na stránku vpravo */
.ga-pagerow { display: grid; grid-template-columns: 1fr auto 1fr; align-items: center; gap: 12px; margin: 14px 0 4px; }
.ga-pagerow .ga-count { margin: 0; }
.ga-perpage { display: flex; align-items: center; justify-content: flex-end; gap: 6px; flex-wrap: wrap; }
.ga-perpage__opt { min-width: 44px; padding: 7px 10px; border: 1px solid var(--line-2); border-radius: 8px; background: var(--surface); color: var(--ink); font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; }
.ga-perpage__opt[aria-pressed="true"] { background: var(--night); border-color: var(--night); color: #fff; }
.ga-perpage__opt:focus-visible { outline: 3px solid var(--gold); outline-offset: 2px; }
@media (max-width: 760px) {
  .ga-pagerow { grid-template-columns: 1fr; justify-items: center; text-align: center; }
  .ga-perpage { justify-content: center; }
}
.ga-table .table td { padding-top: 12px; padding-bottom: 12px; }
.ga-email { word-break: break-all; }
.ga-note-cell { width: 1%; text-align: center; }
.ga-note { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 10px; color: var(--muted); opacity: .55; }
.ga-note:hover, .ga-note:focus-visible { background: var(--brand-tint); opacity: 1; }
.ga-note.has-note { color: var(--brand); opacity: 1; background: var(--brand-tint); }
.ga-resend-row { margin: 0; }
.ga-resend-row .ga-note { border: 0; background: transparent; cursor: pointer; font: inherit; padding: 0; }
.ga-resend-row .ga-note:hover, .ga-resend-row .ga-note:focus-visible { background: var(--brand-tint); }
.ga-tip { display: none; position: absolute; right: calc(100% + 8px); top: 50%; transform: translateY(-50%); z-index: 20; width: max-content; max-width: min(340px, 70vw);
  padding: 10px 12px; border-radius: 8px; background: var(--night); color: #fff; font-size: 13.5px; line-height: 1.45; text-align: left; white-space: pre-wrap; overflow-wrap: anywhere;
  max-height: 220px; overflow: hidden; box-shadow: 0 8px 24px rgba(0,0,0,.18); pointer-events: none; }
.ga-note:hover .ga-tip, .ga-note:focus-visible .ga-tip { display: block; }
@media (hover: none) { .ga-note:hover .ga-tip { display: none; } }
.ga-modal { width: min(560px, calc(100vw - 32px)); }
.ga-modal__title { font-size: 20px; margin: 0; }
.ga-modal__body { display: flex; flex-direction: column; gap: 10px; padding: 18px 24px; }
.ga-modal__body textarea.input { min-height: 140px; padding: 12px 14px; resize: vertical; }
.ga-modal__foot { display: flex; flex-wrap: wrap; gap: 10px; align-items: center; padding: 0 24px 20px; }
.ga-modal { max-height: calc(100vh - 32px); overflow: auto; }
.tag--muted { background: #e6e3dc; color: var(--muted); }
.ga-row--hidden td { color: var(--muted); }
.ga-products-info { display: grid; grid-template-columns: repeat(auto-fit, minmax(300px, 1fr)); gap: 20px; margin-top: 24px; align-items: start; }
.ga-note-text { white-space: pre-wrap; overflow-wrap: anywhere; }
.ga-note-card { margin-top: 20px; }
.ga-note-card textarea.input, .ga-form textarea.input { padding: 12px 14px; min-height: 90px; }
.ga-note-card form { display: flex; flex-direction: column; gap: 12px; }
.ga-form { display: flex; flex-direction: column; gap: 16px; }
.ga-big { margin: 6px 0 12px; } .ga-big b { font-family: var(--display); font-size: 44px; font-weight: 800; }
.ga-buy { margin-top: 20px; align-items: start; }
/* Tabulka na telefonu: každý řádek jako karta, popisky z data-label */
@media (max-width: 720px) {
  .ga-table { overflow: visible; background: transparent; border: 0; }
  .ga-table .table thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); }
  .ga-table .table, .ga-table .table tbody { display: block; }
  .ga-table .table tr { display: grid; grid-template-columns: minmax(0, 1fr) auto; gap: 2px 12px; background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius); padding: 12px 14px; margin-bottom: 10px; }
  .ga-table .table td { display: block; border: 0; padding: 2px 0; }
  .ga-table .table td.num { text-align: left; }
  .ga-table .table td::before { content: attr(data-label); display: block; font-size: 11px; letter-spacing: .08em; text-transform: uppercase; color: var(--muted); font-weight: 700; }
  .ga-table .table td.ga-note-cell { grid-column: 2; grid-row: 1 / span 2; align-self: start; }
  .ga-table .table td.ga-note-cell::before { display: none; }
  .ga-tip { display: none !important; }
}
.ga-dl { margin: 0; display: grid; gap: 0; }
.ga-dl__r { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 12px; padding: 10px 0; border-bottom: 1px solid var(--line); }
.ga-dl__r:last-child { border-bottom: 0; }
.ga-dl dt { color: var(--muted); font-size: 13.5px; font-weight: 600; } .ga-dl dd { margin: 0; overflow-wrap: anywhere; }
@media (max-width: 560px) { .ga-dl__r { grid-template-columns: minmax(0, 1fr); gap: 2px; } }
.ga-actions { display: flex; flex-direction: column; gap: 16px; }
.ga-api pre { white-space: pre-wrap; overflow-wrap: anywhere; background: var(--bg, #f6f3ee); padding: 10px; border-radius: 8px; max-height: 260px; overflow: auto; }
/* Historie pokusů o registraci kusu a neúspěšné ruční pokusy (0.2.60) */
.ga-hist { list-style: none; margin: 0; padding: 0; display: grid; gap: 10px; }
.ga-hist__i { background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--line); border-radius: var(--radius); padding: 12px 16px; }
.ga-hist__i.is-bad { border-left-color: var(--warn-ink); }
.ga-hist__i.is-ok { border-left-color: var(--brand); }
.ga-hist__i p { margin: 4px 0 0; }
.ga-hist__head { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 10px; }
.ga-hist__when { color: var(--muted); font-size: 13.5px; font-variant-numeric: tabular-nums; }
.ga-hist__err { font-size: 14px; overflow-wrap: anywhere; }
.ga-hist-tag { text-decoration: none; }
.ga-attempts-sub { margin: -4px 0 12px; max-width: 900px; }
.ga-attempts-closed { margin-top: 12px; } .ga-attempts-closed > summary { cursor: pointer; margin-bottom: 10px; }
.ga-err { font-size: 13.5px; color: var(--muted); overflow-wrap: anywhere; }
.ga-attempt-note.alert--info { background: #ecebe6; color: var(--ink); }
.ga-same ul { margin: 6px 0; padding-left: 20px; } .ga-same p { margin: 4px 0; }

/* Přihlášení: přepínač Heslo / QR kód, QR přihlášení, 2FA (Můj účet → Zabezpečení) */
.tabs { display: grid; grid-template-columns: 1fr 1fr; background: #ece7dd; border-radius: 12px; padding: 4px; gap: 4px; }
.tabs a { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 9px; font-weight: 700; font-size: 14.5px; color: var(--muted); text-decoration: none; }
.tabs a:hover { color: var(--ink); }
.tabs a.is-on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
@media (max-width: 640px) { .tabs--qr { display: none; } }   /* QR kód se skenuje mobilem – na mobilu nemá smysl */
.qrbox { display: flex; flex-direction: column; align-items: center; gap: 14px; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; }
.qrbox__code, .setup__qr { width: 220px; height: 220px; }
.qrbox__code svg, .setup__qr svg { width: 100%; height: 100%; display: block; }
.qrbox.is-ok .qrbox__code, .qrbox.is-bad .qrbox__code { opacity: .25; }
.qrbox.is-bad .timer { color: var(--danger); }
.qrnum { display: flex; align-items: center; gap: 12px; font-size: 14px; color: var(--muted); }
.qrnum--row { justify-content: space-between; }
.qrnum b { font-family: var(--display); font-size: 34px; line-height: 1; color: var(--night); background: var(--brand-tint); border-radius: 10px; padding: 6px 14px; letter-spacing: .06em; }
.timer { font-size: 13.5px; color: var(--muted); text-align: center; } .timer b { color: var(--brand-deep); }
.steps-ol { margin: 0; padding-left: 20px; display: flex; flex-direction: column; gap: 6px; font-size: 14.5px; }
.code { letter-spacing: .3em; text-align: center; font-size: 24px; font-weight: 700; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; }
.code--rec { letter-spacing: .15em; text-transform: uppercase; }
.who { display: flex; align-items: center; gap: 12px; background: var(--brand-tint); border-radius: 12px; padding: 12px 14px; }
.who > span:last-child { display: flex; flex-direction: column; line-height: 1.3; }
.who small { color: var(--muted); }
.dev { display: grid; grid-template-columns: 130px 1fr; gap: 6px 12px; font-size: 14.5px; margin: 0; }
.dev dt { color: var(--muted); } .dev dd { margin: 0; font-weight: 600; }
.setup { display: grid; grid-template-columns: 240px minmax(0, 1fr); gap: 28px; align-items: start; }
.setup__qr { width: 240px; height: 240px; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; }
.secret { background: #f3efe7; border-radius: 8px; padding: 8px 10px; letter-spacing: .08em; word-break: break-all; }
.rcodes { display: grid; grid-template-columns: repeat(5, 1fr); gap: 8px; font-family: ui-monospace, SFMono-Regular, Menlo, monospace; font-size: 14px; }
.rcodes span { background: #f3efe7; border-radius: 8px; padding: 8px; text-align: center; }
.lbl { font-size: 12px; letter-spacing: .1em; text-transform: uppercase; font-weight: 700; color: var(--muted); margin: 0; }
.tag--ok { background: var(--brand-tint); color: var(--brand-deep); }
.tag--off { background: #efeae0; color: var(--muted); }
.topbar__me { display: flex; align-items: center; gap: 12px; color: inherit; text-decoration: none; border-radius: 10px; }
.topbar__me:hover .topbar__who b { text-decoration: underline; }
@media (max-width: 760px) { .setup { grid-template-columns: minmax(0, 1fr); } .setup__qr { width: 200px; height: 200px; margin: 0 auto; } .rcodes { grid-template-columns: repeat(2, 1fr); } }
/* Kredit AI: upozornění v okně návrhu textů (Sociální sítě) */
.kr-modal-alerts { padding: 14px 24px 0; display: flex; flex-direction: column; gap: 8px; }
.kr-modal-alerts .alert { margin: 0; }

/* GolfAmore → Nastavení a Akce */
.ga-settings { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px; align-items: start; }
@media (max-width: 900px) { .ga-settings { grid-template-columns: minmax(0, 1fr); } }
.ga-setrow { display: flex; justify-content: space-between; align-items: flex-start; gap: 16px; padding: 14px 0; border-bottom: 1px solid var(--line); margin: 0; }
.ga-setrow p { margin: 3px 0 0; }
.ga-sw { flex: none; display: inline-flex; align-items: center; gap: 10px; background: none; border: 0; padding: 4px 0; font: inherit; font-weight: 700; color: var(--ink); cursor: pointer; }
.ga-sw i { width: 46px; height: 26px; border-radius: 999px; background: #c9cfcc; position: relative; transition: background .15s; }
.ga-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #fff; box-shadow: 0 1px 2px rgba(0,0,0,.25); transition: left .15s; }
.ga-sw.is-on i { background: var(--brand); } .ga-sw.is-on i::after { left: 23px; }
.ga-sw:disabled { cursor: not-allowed; opacity: .55; }
.ga-sw span { min-width: 70px; text-align: left; }
.ga-warn-text { color: var(--warn-ink); margin-top: 6px; }
.ga-fgrid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px 16px; }
@media (max-width: 560px) { .ga-fgrid { grid-template-columns: minmax(0, 1fr); } .ga-setrow { flex-direction: column; gap: 8px; } }
.ga-inline { display: inline; margin: 0 0 0 12px; }
/* GolfAmore → Objednávky (2+ karet) */
.ga-tabs { max-width: 640px; margin: 0 0 16px; grid-template-columns: repeat(4, 1fr); }
.ga-search { display: flex; flex-wrap: wrap; align-items: center; gap: 8px; margin: 0 0 14px; max-width: 640px; }
.ga-search .input { flex: 1 1 260px; min-width: 0; }
@media (max-width: 560px) { .ga-tabs { grid-template-columns: 1fr 1fr; } }
.ga-fillrow { align-items: center; }
.ga-fillrow .field { min-width: 260px; }
.ga-fillrow:has(.ga-holder) { flex-wrap: wrap; gap: 10px 16px; align-items: flex-start; }
.ga-holder { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.6fr); gap: 8px 10px; flex: 1 1 100%; }
.ga-holder .field { min-width: 0; margin: 0; }
@media (max-width: 720px) { .ga-holder { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); } .ga-holder__email { grid-column: 1 / -1; } }
.input.is-invalid { border-color: var(--danger, #b42318); box-shadow: 0 0 0 3px rgba(180, 35, 24, .12); }
@media (max-width: 720px) { .ga-fillrow .field { min-width: 0; width: 100%; } }

/* Formulářové okno (nahrání obrázku, výběr z knihovny): <dialog class="modal modal--form"> + .modal__stack */
.modal--form { width: min(640px, calc(100vw - 32px)); overflow: auto; }
.modal--wide { width: min(860px, calc(100vw - 32px)); }
.modal__stack { display: flex; flex-direction: column; gap: 14px; padding: 20px 24px 24px; }
.modal__stack .alert { margin: 0; }
.modal__foot { display: flex; flex-wrap: wrap; gap: 10px; justify-content: flex-end; }
label.dropzone { cursor: pointer; }
label.dropzone:focus-within { border-color: var(--brand); }
@media (max-width: 760px) {
  .modal--form { width: 100vw; max-width: 100vw; height: 100dvh; max-height: 100dvh; margin: 0; border-radius: 0; }
  .modal__stack { padding: 16px; }
}
/* Výběr z knihovny obrázků */
.lib-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(150px, 1fr)); gap: 12px; }
.lib-pick figure { margin: 0; display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lib-pick img { width: 100%; aspect-ratio: 1 / 1; object-fit: cover; border-radius: 10px; background: #f4f2ec; display: block; }
.lib-pick figcaption { font-size: 13px; overflow-wrap: anywhere; }
.lib-pick [hidden] { display: none; }
.lib-filter { display: flex; flex-wrap: wrap; gap: 8px; }
.lib-filter .input { flex: 1 1 160px; min-width: 0; width: auto; }
@media (max-width: 480px) { .lib-pick { grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; } }
/* Karusel na Facebooku – volba formátu (0.2.70) */
.fbc { border: 1px solid var(--line); border-radius: 12px; padding: 14px 16px; margin: 0; display: grid; gap: 10px; background: #fbfaf7; min-width: 0; }
.fbc legend { padding: 0 6px; font-size: 14px; }
.fbc__opt { display: flex; gap: 10px; align-items: flex-start; cursor: pointer; }
.fbc__opt input { accent-color: var(--brand); width: 18px; height: 18px; margin: 2px 0 0; flex: none; }
.fbc__opt span { display: flex; flex-direction: column; gap: 3px; min-width: 0; }
.fbc__opt small { color: var(--muted); font-size: 13.5px; }
.fbc__opt small.fbc__bad { color: var(--danger); font-weight: 600; }
.fbc .note { margin: 0; }

/* Vydavatelé – zálohy databází (0.2.84) */
.vd-issues { display: flex; flex-direction: column; gap: 8px; margin: 0; padding: 0; list-style: none; }
.vd-issues li { display: flex; gap: 12px; align-items: center; justify-content: space-between; flex-wrap: wrap; background: var(--surface); border: 1px solid var(--line); border-left: 4px solid var(--danger); border-radius: 10px; padding: 12px 14px; }
.vd-issues li.w { border-left-color: var(--warn-ink); }
.vd-issues b { font-size: 15px; }
.vd-issues .muted { font-size: 13px; overflow-wrap: anywhere; }
.vd-foot { margin-top: 14px; }
.vd-run { font-size: 22px !important; line-height: 1.2 !important; }
.vd-dl { display: grid; grid-template-columns: repeat(auto-fill, minmax(200px, 1fr)); gap: 12px 20px; margin: 0; }
.vd-dl dt { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); font-weight: 700; }
.vd-dl dd { margin: 2px 0 0; font-weight: 600; overflow-wrap: anywhere; }
.vd-dl__wide { grid-column: 1 / -1; }
.vd-dl__wide dd { font-weight: 400; }
.vd-set { display: grid; grid-template-columns: minmax(0, 1fr) 200px; gap: 14px 20px; align-items: center; }
.vd-set .hint { grid-column: 1 / -1; margin-top: -10px; }
.vd-form { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px 20px; }
.vd-form .field--wide { grid-column: 1 / -1; }
@media (max-width: 640px) { .vd-set, .vd-form { grid-template-columns: minmax(0, 1fr); } }
.vd-bar { display: inline-block; height: 8px; border-radius: 4px; background: var(--brand); vertical-align: middle; margin-right: 6px; }
.vd-bar.bad { background: var(--danger); }
.vd-w1 { width: 5px; } .vd-w2 { width: 10px; } .vd-w3 { width: 15px; } .vd-w4 { width: 20px; } .vd-w5 { width: 25px; } .vd-w6 { width: 30px; }
.vd-w7 { width: 35px; } .vd-w8 { width: 40px; } .vd-w9 { width: 45px; } .vd-w10 { width: 50px; } .vd-w11 { width: 55px; } .vd-w12 { width: 60px; }
.vd-bad { color: var(--danger); font-weight: 700; }
.vd-err { color: var(--danger); font-family: inherit; font-size: 12.5px; overflow-wrap: anywhere; }
.vd-script dl { margin: 0; }
.tag--bad { background: var(--danger-bg); color: var(--danger); }
.vd-narrow { max-width: 820px; }
