/* Týčko Social – barvy a typografie podle design systému Týčko */
:root {
  --brand: #268068;
  --brand-deep: #0d5542;
  --brand-tint: #e3f0ec;
  --ink: #1f1f1f;
  --graphite: #3d3d3d;
  --muted: #5f6663;
  --surface: #ffffff;
  --surface-alt: #f4f7f5;
  --line: #d9e2de;
  --highlight: #f4c542;
  --warning-ink: #8a5a00;
  --warning-bg: #fdf6dd;
  --danger: #a3171c;
  --danger-bg: #fbe9e9;
  --radius-sm: 8px;
  --radius-md: 16px;
  --font: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", sans-serif;
}

* { box-sizing: border-box; }
body { margin: 0; background: var(--surface-alt); color: var(--ink); font-family: var(--font); font-size: 15px; line-height: 1.5; }
a { color: var(--brand); }
a:hover { color: var(--brand-deep); }
h1 { margin: 0; font-size: 32px; line-height: 38px; font-weight: 800; }
h2 { margin: 0; font-size: 20px; font-weight: 800; }
p { margin: 0; }

.shell { display: flex; flex-wrap: wrap; min-height: 100vh; }
.nav { flex: 1 1 240px; max-width: 100%; background: var(--surface); border-right: 1px solid var(--line); padding: 24px 16px; display: flex; flex-direction: column; gap: 24px; }
.nav__logo { height: 32px; width: auto; align-self: flex-start; margin-left: 8px; }
.nav__links { display: flex; flex-direction: column; gap: 4px; font-weight: 600; }
.nav__links a { text-decoration: none; color: var(--graphite); border-radius: var(--radius-sm); padding: 12px; }
.nav__links a[aria-current="page"] { color: var(--brand-deep); background: var(--brand-tint); }
.nav__links a.is-soon { color: var(--muted); }
.nav__foot { margin-top: auto; display: flex; flex-direction: column; gap: 8px; font-size: 13px; color: var(--muted); padding: 0 8px; }
.main { flex: 999 1 560px; min-width: 0; padding: 32px 40px; display: flex; flex-direction: column; gap: 24px; }
@media (max-width: 640px) { .main { padding: 24px 16px; } }

.page-head { display: flex; flex-wrap: wrap; gap: 16px; justify-content: space-between; align-items: flex-end; }
.sub { color: var(--muted); font-size: 14px; }
.card { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 24px; display: flex; flex-direction: column; gap: 16px; }
.grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(260px, 1fr)); gap: 16px; }

.field { display: flex; flex-direction: column; gap: 6px; }
.field label { font-size: 14px; font-weight: 700; }
.field .hint { font-size: 12px; color: var(--muted); line-height: 17px; }
.input { height: 46px; border: 1px solid var(--line); border-radius: 10px; padding: 0 14px; font: inherit; font-size: 15px; background: var(--surface); width: 100%; }
textarea.input { height: auto; padding: 12px 14px; line-height: 20px; }
.input:focus, .btn:focus-visible, a:focus-visible { outline: 3px solid var(--highlight); outline-offset: 1px; }

.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; height: 46px; 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); color: #fff; }
.btn--ghost { background: var(--surface); color: var(--brand-deep); }
.btn--ghost:hover { background: var(--brand-tint); color: var(--brand-deep); }
.btn--small { height: 38px; padding: 0 14px; font-size: 14px; }

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

.badge { display: inline-block; font-size: 12px; font-weight: 700; border-radius: 999px; padding: 4px 10px; }
.badge--ok { background: var(--brand-tint); color: var(--brand-deep); }
.badge--warn { background: var(--warning-bg); color: var(--warning-ink); }
.badge--off { background: #eef0ef; color: var(--graphite); }

.kpis { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 14px; }
.kpi { background: var(--surface); border: 1px solid var(--line); border-radius: 14px; padding: 18px; display: flex; flex-direction: column; gap: 6px; }
.kpi__label { font-size: 13px; font-weight: 700; color: var(--muted); }
.kpi__value { font-size: 30px; line-height: 36px; font-weight: 800; }

.account { border: 1px solid var(--line); border-radius: 12px; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.account.is-off { opacity: .65; }
.account__row { display: flex; flex-wrap: wrap; gap: 8px 16px; font-size: 14px; }

.login { min-height: 100vh; display: flex; align-items: center; justify-content: center; padding: 24px 16px; }
.login .card { width: 100%; max-width: 420px; }
.check { display: flex; gap: 8px; align-items: center; font-size: 14px; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
code { font-size: 13px; background: var(--surface-alt); border-radius: 4px; padding: 1px 5px; }

/* Fáze 2: kampaně, průvodce, kalendář */
.steps { list-style: none; margin: 0; padding: 0; display: flex; flex-wrap: wrap; gap: 8px; }
.steps a { display: flex; align-items: center; gap: 10px; border-radius: 999px; padding: 8px 16px 8px 8px; font-size: 14px; font-weight: 600; text-decoration: none; color: var(--graphite); background: var(--surface); border: 1px solid var(--line); }
.steps a span { width: 26px; height: 26px; border-radius: 999px; background: #eef2f0; display: flex; align-items: center; justify-content: center; font-weight: 700; }
.steps a.is-done { background: var(--brand-tint); color: var(--brand-deep); border-color: var(--brand-tint); }
.steps a.is-done span { background: var(--brand); color: #fff; }
.steps a[aria-current="step"] { background: var(--brand); color: #fff; border-color: var(--brand); font-weight: 700; }
.steps a[aria-current="step"] span { background: #fff; color: var(--brand-deep); }

.layout-2 { display: flex; flex-wrap: wrap; gap: 24px; align-items: flex-start; }
.layout-2 > .col-main { flex: 999 1 560px; min-width: 0; display: flex; flex-direction: column; gap: 20px; }
.layout-2 > .col-side { flex: 1 1 320px; min-width: 0; display: flex; flex-direction: column; gap: 16px; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; justify-content: flex-end; }
.inline { display: inline; }
.row { display: flex; flex-wrap: wrap; gap: 12px; align-items: center; }
.kv { display: flex; justify-content: space-between; gap: 12px; font-size: 14px; }
.kv span:first-child { color: var(--muted); }

.table-wrap { background: var(--surface); border: 1px solid var(--line); border-radius: var(--radius-md); overflow-x: auto; }
table.table { width: 100%; min-width: 760px; border-collapse: collapse; font-size: 15px; }
.table th { text-align: left; color: var(--muted); font-size: 12px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; padding: 12px 16px; border-bottom: 1px solid var(--line); }
.table td { padding: 14px 16px; border-bottom: 1px solid #eef2f0; vertical-align: top; }
.table tr:last-child td { border-bottom: none; }

.status { display: inline-block; font-size: 12px; font-weight: 700; padding: 5px 11px; border-radius: 999px; background: #eef0ef; color: var(--graphite); white-space: nowrap; }
.status--ready { background: var(--highlight); color: var(--ink); }
.status--scheduled { background: var(--brand-tint); color: var(--brand-deep); }
.status--running, .status--published { background: var(--brand); color: #fff; }
.status--failed { background: var(--danger-bg); color: var(--danger); }

.choice { display: grid; grid-template-columns: repeat(auto-fit, minmax(200px, 1fr)); gap: 12px; }
.choice label { display: flex; gap: 10px; align-items: flex-start; border: 1px solid var(--line); border-radius: 12px; padding: 14px; font-size: 14px; cursor: pointer; }
.choice label:has(input:checked) { border: 2px solid var(--brand); background: var(--brand-tint); padding: 13px; }
.choice small { display: block; color: var(--muted); }
.choice input { margin-top: 3px; }

.post-tabs { display: flex; flex-wrap: wrap; gap: 8px; }
.post-tabs a { text-decoration: none; border: 1px solid var(--line); background: var(--surface); color: var(--graphite); border-radius: 10px; padding: 8px 14px; font-size: 14px; font-weight: 600; }
.post-tabs a[aria-current="true"] { border: 2px solid var(--brand); background: var(--brand-tint); color: var(--brand-deep); padding: 7px 13px; }

.dropzone { border: 2px dashed var(--brand); background: #f4faf7; border-radius: 14px; padding: 24px; display: flex; flex-direction: column; align-items: center; gap: 10px; text-align: center; }
.dropzone.is-over { background: var(--brand-tint); }
.spec { display: grid; grid-template-columns: repeat(auto-fit, minmax(160px, 1fr)); gap: 10px; background: var(--surface-alt); border-radius: 12px; padding: 14px 16px; font-size: 13px; line-height: 18px; }
.thumbs { display: grid; grid-template-columns: repeat(auto-fill, minmax(170px, 1fr)); gap: 14px; }
.thumb { margin: 0; display: flex; flex-direction: column; gap: 8px; }
.thumb.is-dragging { opacity: .4; }
.thumb__img { position: relative; border-radius: 10px; border: 1px solid var(--line); overflow: hidden; background: #f8f5f0; }
.thumb__img img { width: 100%; height: auto; display: block; }
.thumb__img.is-error { border: 2px solid var(--danger); }
.thumb__no { position: absolute; left: 8px; top: 8px; background: var(--ink); color: #fff; font-size: 12px; font-weight: 700; border-radius: 6px; padding: 3px 8px; }
.thumb__bar { display: flex; gap: 6px; align-items: center; }
.icon-btn { width: 36px; height: 36px; border: 1px solid var(--line); background: var(--surface); border-radius: 8px; font: inherit; font-weight: 800; cursor: pointer; }
.icon-btn:disabled { background: var(--surface-alt); color: #9aa6a1; cursor: default; }
.icon-btn--danger { color: var(--danger); margin-left: auto; }
.handle { cursor: grab; color: var(--muted); font-size: 18px; user-select: none; }
.note { font-size: 12px; line-height: 16px; font-weight: 700; }
.note--ok { color: var(--brand-deep); }
.note--warning { color: var(--warning-ink); }
.note--error { color: var(--danger); }
.counter { font-size: 12px; color: var(--muted); }

.cal { overflow-x: auto; }
.cal__grid { min-width: 700px; display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; }
.cal__dow { font-size: 12px; font-weight: 700; color: var(--muted); padding: 4px 6px; }
.cal__day { min-height: 108px; border-radius: 10px; padding: 6px; display: flex; flex-direction: column; gap: 4px; background: var(--surface); border: 1px solid #eef2f0; }
.cal__day.is-out { background: #f7f8f8; }
.cal__day.is-out .cal__num { color: #9aa6a1; }
.cal__day.is-period { background: #f4faf7; border-color: #bcd9cf; }
.cal__day.is-today { outline: 2px solid var(--brand); }
.cal__num { font-size: 13px; font-weight: 700; }
.chip { display: block; text-decoration: none; border-radius: 6px; padding: 5px 6px; font-size: 11px; line-height: 14px; font-weight: 700; background: #eef0ef; color: var(--graphite); }
.chip--mine { background: var(--brand); color: #fff; }
.chip--paid { background: var(--highlight); color: var(--ink); }
.legend { display: flex; flex-wrap: wrap; gap: 14px; font-size: 13px; font-weight: 600; color: var(--graphite); }
.legend i { display: inline-block; width: 12px; height: 12px; border-radius: 3px; margin-right: 6px; vertical-align: -1px; }

.issues { display: flex; flex-direction: column; }
.issue { display: flex; gap: 12px; align-items: flex-start; padding: 10px 0; border-top: 1px solid #eef2f0; font-size: 14px; }
.issue:first-child { border-top: none; }
.issue b.mark { width: 14px; flex-shrink: 0; }
.issue--ok b.mark { color: var(--brand-deep); }
.issue--warning b.mark { color: var(--warning-ink); }
.issue--error { background: var(--danger-bg); border-radius: 10px; padding: 10px 12px; border-top: none; margin-top: 4px; }
.issue--error b.mark { color: var(--danger); }
.timeline-row { display: flex; gap: 16px; align-items: center; padding: 12px 0; border-top: 1px solid #eef2f0; flex-wrap: wrap; }
.timeline-row img { width: 64px; height: 80px; object-fit: cover; border-radius: 8px; }
.launch { background: var(--brand-deep); color: #fff; border-radius: var(--radius-md); padding: 22px; display: flex; flex-direction: column; gap: 14px; }
.launch .btn { background: #fff; color: var(--brand-deep); border-color: #fff; }
.launch .btn:disabled { background: #9fc3b7; border-color: #9fc3b7; cursor: not-allowed; }
.launch .hint { color: var(--brand-tint); font-size: 12px; }
