/* 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; }
@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; }
.app:hover { transform: translateY(-2px); box-shadow: 0 10px 28px rgba(15,44,36,.12); color: var(--ink); }
.app--live { background: var(--night); border-color: var(--night); color: #fff; }
.app--live:hover { 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 .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 .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; } }

.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); }

/* 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; }

/* 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); }
