/* Plánovač sociálních sítí – Mola Optic */
:root {
  --navy: #0B2A42; --green: #00A878; --green-d: #008f66; --sand: #E8DDC8; --sand-l: #F4EDE1; --cream: #FAF5EA; --lav: #C2AFF0;
  --muted: #6b7c8a; --line: #E8DDC8; --amber: #F2C14E; --red: #B4432F;
  --r-card: 24px; --r-btn: 12px;
  --st-idea: #E8DDC8; --st-draft: #C2AFF0; --st-review: #F2C14E; --st-approved: #00A878; --st-scheduled: #0B2A42; --st-published: #9FB0BC;
}
* { box-sizing: border-box; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; font-family: 'Outfit', system-ui, sans-serif; font-size: 15px; line-height: 1.45; color: var(--navy); background: #fff; }
h1, h2, h3 { font-weight: 700; margin: 0; line-height: 1.2; letter-spacing: -.01em; }
h1 { font-size: 26px; } h2 { font-size: 21px; } h3 { font-size: 16px; }
a { color: var(--green-d); }
p { margin: 0 0 10px; }
button, input, select, textarea { font: inherit; color: inherit; }
button { cursor: pointer; }
[hidden] { display: none !important; }
.muted { color: var(--muted); } .small, small { font-size: 13px; } .center { text-align: center; } .sp { flex: 1; }
small { color: var(--muted); font-weight: 400; }
.ic { width: 18px; height: 18px; flex: none; }
.boot { padding: 60px 20px; text-align: center; color: var(--muted); }

/* Tlačítka a formuláře */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; border: 1.5px solid transparent; border-radius: var(--r-btn); padding: 9px 16px; font-weight: 600; background: none; text-decoration: none; white-space: nowrap; transition: background .15s, border-color .15s; position: relative; }
.btn.primary { background: var(--green); color: #fff; } .btn.primary:hover { background: var(--green-d); }
.btn.dark { background: var(--navy); color: #fff; } .btn.dark:hover { background: #143a59; }
.btn.outline { border-color: var(--sand); color: var(--navy); background: #fff; } .btn.outline:hover { background: var(--cream); }
.btn.ghost { color: var(--navy); } .btn.ghost:hover { background: var(--sand-l); }
.btn.danger { background: var(--red); color: #fff; }
.btn.small { padding: 5px 10px; font-size: 13px; border-radius: 10px; } .btn.small .ic { width: 15px; height: 15px; }
.btn.block { width: 100%; } .btn.icon { padding: 9px 11px; }
.btn:disabled { opacity: .6; cursor: default; }
.btn .badge, .tabs .badge { background: var(--green); color: #fff; border-radius: 99px; font-size: 11px; font-style: normal; padding: 1px 6px; font-weight: 600; }
.icon-btn { border: 0; background: var(--sand-l); width: 36px; height: 36px; border-radius: 50%; display: inline-grid; place-items: center; color: var(--navy); flex: none; }
.icon-btn:hover { background: var(--sand); }
.filebtn { cursor: pointer; font-size: 15px; font-weight: 600; } .filebtn.small { font-size: 13px; }
input, select, textarea { width: 100%; border: 1.5px solid var(--sand); border-radius: var(--r-btn); padding: 9px 12px; background: #fff; outline: none; min-width: 0; }
input:focus, select:focus, textarea:focus { border-color: var(--green); }
input[type=checkbox], input[type=radio] { width: auto; accent-color: var(--green); }
input:disabled, input[readonly] { background: var(--sand-l); color: var(--muted); }
textarea { resize: vertical; display: block; }
label, .lbl { display: block; font-size: 13px; font-weight: 500; color: var(--muted); }
label > input, label > select, label > textarea { font-size: 15px; color: var(--navy); font-weight: 400; margin-top: 5px; display: block; }
.lbl > div { margin-top: 5px; }
.form { display: flex; flex-direction: column; gap: 14px; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; } .row3 { display: grid; grid-template-columns: 1fr 1fr 1fr; gap: 12px; }
.check { display: flex; flex-direction: row; align-items: center; gap: 8px; font-size: 14px; color: var(--navy); cursor: pointer; }
hr { border: 0; border-top: 1.5px solid var(--sand); width: 100%; margin: 4px 0; }
.alert { border-radius: 14px; padding: 10px 14px; margin: 10px 0; font-size: 14px; }
.alert.err { background: #f7e3dd; color: #7c2a1b; } .alert.ok { background: #dcf3ec; color: #045c43; }
.chip { display: inline-flex; align-items: center; gap: 5px; border: 0; border-radius: 99px; padding: 4px 11px; font-size: 13px; background: var(--sand-l); color: var(--navy); font-weight: 500; }
.chip.small { font-size: 12px; padding: 2px 9px; } .chip.ok { background: #dcf3ec; color: #045c43; } .chip .ic { width: 13px; height: 13px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chip.tag { border: 1.5px solid var(--sand); background: #fff; color: var(--muted); }
.chip.tag.on { background: color-mix(in srgb, var(--c) 45%, #fff); border-color: var(--c); color: var(--navy); }
.chip.tag button { border: 0; background: none; padding: 0; display: grid; }
.ava { width: 30px; height: 30px; border-radius: 50%; background: var(--lav); color: var(--navy); font-size: 12px; font-weight: 600; display: inline-grid; place-items: center; flex: none; }
.pill { display: inline-flex; align-items: center; border-radius: 99px; padding: 3px 11px; font-size: 12.5px; font-weight: 600; white-space: nowrap; background: var(--sand); }
.pill.st-idea { background: var(--sand); } .pill.st-draft { background: #e3d9fa; } .pill.st-review { background: #fbe7b1; }
.pill.st-approved { background: var(--green); color: #fff; } .pill.st-scheduled { background: var(--navy); color: #fff; } .pill.st-published { background: #dfe6ea; color: #40586a; }
i.st-idea { background: var(--st-idea); } i.st-draft { background: var(--st-draft); } i.st-review { background: var(--st-review); } i.st-approved { background: var(--st-approved); } i.st-scheduled { background: var(--st-scheduled); } i.st-published { background: var(--st-published); }

/* Přihlášení */
body.auth { background: var(--sand-l); min-height: 100vh; display: grid; place-items: center; padding: 20px; }
.auth-wrap { display: grid; grid-template-columns: 1fr 1fr; width: min(900px, 100%); background: #fff; border-radius: 28px; overflow: hidden; border: 1.5px solid var(--sand); }
.auth-art { background: var(--cream); position: relative; overflow: hidden; padding: 40px; display: flex; flex-direction: column; justify-content: flex-end; min-height: 460px; }
.auth-art .blob { position: absolute; } .auth-art .b1 { width: 340px; top: -70px; right: -90px; } .auth-art .b2 { width: 200px; top: 190px; left: -60px; opacity: .9; }
.auth-brand, .brand { font-weight: 700; font-size: 24px; letter-spacing: -.02em; position: relative; }
.auth-claim { font-size: 34px; font-weight: 700; line-height: 1.1; position: relative; margin: 6px 0 0; }
.auth-card { padding: 44px 40px; display: flex; flex-direction: column; gap: 12px; justify-content: center; }
.auth-card h1 { margin-bottom: 2px; }
.or { text-align: center; color: var(--muted); font-size: 13px; position: relative; } .or::before { content: ''; position: absolute; left: 0; right: 0; top: 50%; border-top: 1.5px solid var(--sand); } .or span { background: #fff; padding: 0 10px; position: relative; }
@media (max-width: 700px) { .auth-wrap { grid-template-columns: 1fr; } .auth-art { min-height: 170px; padding: 24px; } .auth-claim { font-size: 24px; } .auth-card { padding: 28px 22px; } .auth-art .b1 { width: 220px; } .auth-art .b2 { display: none; } }

/* Kostra */
#app { display: grid; grid-template-columns: 232px 1fr; min-height: 100vh; }
.side { background: var(--sand-l); padding: 26px 16px 18px; display: flex; flex-direction: column; gap: 26px; position: sticky; top: 0; height: 100vh; }
.brand { padding: 0 10px; } .brand small { display: block; font-size: 13px; letter-spacing: 0; }
.side nav { display: flex; flex-direction: column; gap: 4px; }
.nav-i { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 16px; text-decoration: none; color: var(--navy); font-weight: 500; border: 0; background: none; width: 100%; text-align: left; }
.nav-i .ico { width: 38px; height: 38px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; position: relative; flex: none; }
.nav-i:hover { background: var(--sand); } .nav-i.on { background: #fff; font-weight: 600; } .nav-i.on .ico { background: var(--navy); color: #fff; }
.nav-i .dot { position: absolute; top: 1px; right: 1px; width: 11px; height: 11px; border-radius: 50%; background: var(--green); border: 2px solid var(--sand-l); }
.side-foot { margin-top: auto; display: flex; flex-direction: column; gap: 10px; }
.me { display: flex; align-items: center; gap: 10px; padding: 10px; background: #fff; border-radius: 18px; } .me div { flex: 1; min-width: 0; line-height: 1.2; } .me b { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-weight: 600; }
.me small { display: block; }
#view { padding: 26px 30px 60px; min-width: 0; }
.top { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 16px; }
.top-l, .top-r { display: flex; align-items: center; gap: 12px; flex-wrap: wrap; } .top-r { margin-left: auto; }
.seg { display: inline-flex; background: var(--sand-l); border-radius: 14px; padding: 4px; gap: 2px; }
.seg button { border: 0; background: none; padding: 6px 13px; border-radius: 10px; font-weight: 500; display: grid; place-items: center; }
.seg button.on { background: #fff; font-weight: 600; } .seg button:hover:not(.on) { background: var(--sand); }
.filters { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 12px; padding: 12px; background: var(--sand-l); border-radius: 18px; } .filters select { width: auto; flex: 1 1 150px; }
.legend { display: flex; gap: 14px; flex-wrap: wrap; font-size: 12.5px; color: var(--muted); margin-bottom: 10px; }
.legend span, .legend-box span { display: inline-flex; align-items: center; gap: 6px; } .legend i, .legend-box i { width: 10px; height: 10px; border-radius: 50%; }

/* Kalendář – měsíc */
.month { border: 1.5px solid var(--sand); border-radius: var(--r-card); overflow: hidden; background: #fff; }
.dow { display: grid; grid-template-columns: repeat(7, 1fr); background: var(--sand-l); font-size: 12.5px; font-weight: 600; color: var(--muted); } .dow span { padding: 8px 10px; }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border-top: 1.5px solid var(--sand); }
.day { min-height: 124px; padding: 6px 0 8px; border-left: 1.5px solid var(--sand-l); cursor: pointer; min-width: 0; position: relative; } .day:first-child { border-left: 0; }
.day:hover { background: #fdfbf6; } .day.out { background: #fbf8f2; } .day.out .dnum { opacity: .45; }
.dnum { display: inline-grid; place-items: center; min-width: 26px; height: 26px; margin-left: 6px; border-radius: 50%; font-size: 13px; font-weight: 600; }
.day.today .dnum, .wday.today .wd-head b { background: var(--green); color: #fff; }
.day.drop-over, .wday.drop-over { background: #e4f6f0; box-shadow: inset 0 0 0 2px var(--green); }
.evs { display: flex; flex-direction: column; gap: 2px; margin: 3px 0 4px; }
.ev { height: 19px; font-size: 11.5px; line-height: 19px; position: relative; cursor: pointer; margin: 0 -1px; } .ev.none { visibility: hidden; }
.ev.s { margin-left: 5px; border-radius: 9px 0 0 9px; } .ev.e { margin-right: 5px; border-radius: 0 9px 9px 0; } .ev.s.e { border-radius: 9px; }
.ev b { position: absolute; left: 8px; white-space: nowrap; z-index: 2; font-weight: 600; pointer-events: none; } .ev.dark b { color: #fff; }
.cards { display: flex; flex-direction: column; gap: 4px; padding: 0 5px; }
.dots { display: none; }
.card { display: flex; align-items: center; gap: 7px; padding: 4px 8px 4px 4px; border-radius: 12px; background: var(--cream); border-left: 5px solid var(--st-idea); cursor: grab; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; min-width: 0; touch-action: manipulation; }
.card:hover { filter: brightness(.97); }
.card.st-idea { border-left-color: var(--st-idea); } .card.st-draft { border-left-color: var(--st-draft); background: #f4effd; } .card.st-review { border-left-color: var(--st-review); background: #fdf5dc; }
.card.st-approved { border-left-color: var(--st-approved); background: #e1f5ee; } .card.st-scheduled { border-left-color: var(--st-scheduled); background: #e4eaef; } .card.st-published { border-left-color: var(--st-published); background: #f1f3f4; opacity: .8; }
.th { width: 30px; height: 30px; border-radius: 8px; overflow: hidden; background: var(--sand); flex: none; display: grid; place-items: center; position: relative; color: var(--muted); }
.th img { width: 100%; height: 100%; object-fit: cover; display: block; } .th.empty .ic { width: 15px; height: 15px; }
.th.broken img { display: none; } .th.broken::after { content: '!'; font-weight: 700; color: var(--red); }
.th .vid { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; background: rgba(11, 42, 66, .25); } .th .vid .ic { width: 12px; height: 12px; fill: #fff; }
.c-body { display: flex; flex-direction: column; min-width: 0; flex: 1; gap: 1px; }
.c-meta { display: flex; align-items: center; gap: 5px; font-size: 11.5px; color: var(--muted); line-height: 1; } .c-meta .ic { width: 13px; height: 13px; } .c-meta i { display: inline-flex; align-items: center; gap: 2px; font-style: normal; }
.c-meta .ch { color: var(--navy); } .c-meta .bad { color: var(--red); } .c-meta .cm { margin-left: auto; }
.c-title { font-size: 12.5px; font-weight: 500; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; line-height: 1.25; }
.card.big { padding: 7px 10px 7px 7px; border-radius: 16px; } .card.big .th { width: 48px; height: 60px; border-radius: 10px; } .card.big .c-title { white-space: normal; font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; } .card.big .pill { align-self: flex-start; margin-top: 3px; font-size: 11px; padding: 1px 8px; } .card.big .c-body { gap: 3px; }
.drag-ghost { position: fixed; z-index: 999; pointer-events: none; opacity: .92; box-shadow: 0 10px 30px rgba(11, 42, 66, .25); margin: 0; }
.dragging { opacity: .35; } body.is-dragging { user-select: none; -webkit-user-select: none; cursor: grabbing; }
.daypanel { display: none; }

/* Kalendář – týden a seznam */
.weekview { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); border: 1.5px solid var(--sand); border-radius: var(--r-card); overflow: hidden; }
.wday { min-height: 420px; border-left: 1.5px solid var(--sand-l); padding-bottom: 12px; min-width: 0; } .wday:first-child { border-left: 0; }
.wd-head { display: flex; align-items: center; gap: 8px; padding: 10px 10px 8px; background: var(--sand-l); cursor: pointer; font-size: 13px; color: var(--muted); } .wd-head b { color: var(--navy); border-radius: 99px; padding: 1px 7px; } .wd-head i { margin-left: auto; opacity: 0; display: grid; } .wd-head:hover i { opacity: 1; }
.weekview .cards { gap: 6px; padding: 6px; } .weekview .card.big { flex-direction: column; align-items: stretch; padding: 6px; } .weekview .card.big .th { width: 100%; height: auto; aspect-ratio: 4/5; }
.listview { display: flex; flex-direction: column; gap: 10px; }
.ld { display: grid; grid-template-columns: 86px 1fr; gap: 12px; background: var(--cream); border-radius: var(--r-card); padding: 12px; border: 1.5px solid var(--sand-l); } .ld.today { border-color: var(--green); }
.ld-date { padding: 6px 4px; line-height: 1.2; } .ld-date b { display: block; font-size: 19px; } .ld-date span { font-size: 12.5px; color: var(--muted); }
.ld-items { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.lrow { display: flex; align-items: center; gap: 12px; background: #fff; border-radius: 16px; padding: 8px 12px 8px 8px; cursor: pointer; min-width: 0; } .lrow:hover { box-shadow: inset 0 0 0 1.5px var(--sand); }
.lrow .th { width: 44px; height: 54px; border-radius: 10px; } .lr-main { flex: 1; min-width: 0; display: flex; flex-direction: column; } .lr-main b { font-weight: 600; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; } .lr-main .ic { width: 14px; height: 14px; vertical-align: -2px; }
.cm { display: inline-flex; align-items: center; gap: 3px; font-style: normal; font-size: 12px; color: var(--muted); } .cm .ic { width: 14px; height: 14px; }
.empty-state { text-align: center; padding: 50px 20px; position: relative; } .empty-state .blob { width: 150px; display: block; margin: 0 auto -84px; } .empty-state h3 { position: relative; margin-bottom: 40px; font-size: 18px; }

/* Okna */
.modal-bg, .drawer-bg { position: fixed; inset: 0; background: rgba(11, 42, 66, .35); z-index: 60; }
.modal { position: fixed; z-index: 61; left: 50%; top: 50%; transform: translate(-50%, -50%); background: #fff; border-radius: 26px; padding: 26px; width: min(520px, calc(100vw - 24px)); max-height: calc(100vh - 30px); overflow: auto; display: flex; flex-direction: column; gap: 14px; }
.modal-foot { display: flex; justify-content: flex-end; gap: 8px; margin-top: 4px; }
.box { background: var(--cream); border: 1.5px solid var(--sand-l); border-radius: var(--r-card); padding: 18px; display: flex; flex-direction: column; gap: 12px; } .box.inner, .modal .box { background: var(--sand-l); border-radius: 18px; padding: 14px; }
.swatches { display: flex; gap: 8px; } .swatches label { cursor: pointer; } .swatches input { position: absolute; opacity: 0; } .swatches i { display: block; width: 28px; height: 28px; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 1.5px var(--sand); } .swatches input:checked + i { box-shadow: 0 0 0 2.5px var(--navy); }
.ev-list { display: flex; flex-direction: column; gap: 6px; max-height: 220px; overflow: auto; } .ev-row { display: flex; align-items: center; gap: 10px; } .ev-row > i { width: 12px; height: 28px; border-radius: 6px; flex: none; } .ev-row div { flex: 1; line-height: 1.2; } .ev-row small { display: block; }
.dup-list { display: flex; flex-direction: column; gap: 8px; } .dup-list .btn { justify-content: flex-start; } .ch { display: inline-grid; }
.chg { display: flex; flex-direction: column; gap: 8px; } .chg div { background: var(--cream); border-radius: 14px; padding: 9px 12px; display: flex; flex-direction: column; } .chg span { font-size: 13.5px; color: var(--muted); } .chg span b { color: var(--green-d); }
.notifs { display: flex; flex-direction: column; gap: 4px; } .notif { display: flex; gap: 10px; text-align: left; border: 0; background: none; padding: 9px 10px; border-radius: 14px; align-items: flex-start; } .notif:hover { background: var(--sand-l); } .notif i { width: 9px; height: 9px; border-radius: 50%; margin-top: 6px; flex: none; } .notif.new i { background: var(--green); } .notif.new { font-weight: 500; } .notif small { display: block; }
#toasts { position: fixed; bottom: 20px; left: 50%; transform: translateX(-50%); z-index: 200; display: flex; flex-direction: column; gap: 8px; align-items: center; pointer-events: none; width: max-content; max-width: calc(100vw - 24px); }
.toast { background: var(--navy); color: #fff; padding: 10px 18px; border-radius: 14px; font-weight: 500; font-size: 14px; } .toast.err { background: var(--red); }

/* Detail výstupu */
.drawer { position: fixed; z-index: 61; top: 0; right: 0; bottom: 0; width: min(720px, 100vw); background: #fff; display: flex; flex-direction: column; border-radius: 28px 0 0 28px; overflow: hidden; }
body.drawer-open { overflow: hidden; }
.d-head { display: flex; align-items: center; gap: 8px; padding: 14px 18px; border-bottom: 1.5px solid var(--sand-l); } .save-state { font-size: 12.5px; color: var(--muted); margin-left: 6px; }
.d-body { flex: 1; overflow: auto; padding: 18px 22px 40px; display: flex; flex-direction: column; gap: 16px; -webkit-overflow-scrolling: touch; }
.d-title { font-size: 24px; font-weight: 700; border-color: transparent; padding: 4px 8px; margin: 0 -8px; width: calc(100% + 16px); } .d-title:hover { border-color: var(--sand); }
.steps { display: flex; gap: 4px; } .step { flex: 1; border: 0; background: none; padding: 0; display: flex; flex-direction: column; gap: 5px; font-size: 11.5px; color: var(--muted); text-align: left; min-width: 0; }
.step i { height: 7px; border-radius: 99px; background: var(--sand-l); } .step span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.step.done i { background: var(--sand); } .step.cur { color: var(--navy); font-weight: 600; }
.step.cur.st-idea i { background: var(--st-idea); box-shadow: inset 0 0 0 1.5px #cbbd9f; } .step.cur.st-draft i { background: var(--st-draft); } .step.cur.st-review i { background: var(--st-review); } .step.cur.st-approved i { background: var(--st-approved); } .step.cur.st-scheduled i { background: var(--st-scheduled); } .step.cur.st-published i { background: var(--st-published); }
.act-row { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; margin-top: 12px; } .act-row:empty { display: none; } .wait { font-weight: 600; color: #8a6400; background: #fbe7b1; border-radius: 99px; padding: 6px 14px; }
.d-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.sec { background: var(--cream); border-radius: var(--r-card); padding: 16px; display: flex; flex-direction: column; gap: 12px; border: 1.5px solid var(--sand-l); }
.sec-h { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.count { font-size: 12.5px; color: var(--muted); font-variant-numeric: tabular-nums; } .count.over { color: var(--red); font-weight: 600; }
.mgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(104px, 1fr)); gap: 8px; }
.mtile { position: relative; aspect-ratio: 4/5; border-radius: 14px; overflow: hidden; background: var(--sand); cursor: pointer; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; }
.mtile img, .tile img { width: 100%; height: 100%; object-fit: cover; display: block; pointer-events: none; }
.mtile .num { position: absolute; top: 6px; left: 6px; background: rgba(11, 42, 66, .75); color: #fff; font-size: 11.5px; font-weight: 600; border-radius: 99px; min-width: 20px; height: 20px; display: grid; place-items: center; }
.mtile .vid, .tile .tt { position: absolute; top: 6px; right: 6px; color: #fff; display: grid; filter: drop-shadow(0 1px 2px rgba(0, 0, 0, .5)); } .mtile .vid { top: 50%; left: 50%; right: auto; transform: translate(-50%, -50%); } .mtile .vid .ic { width: 30px; height: 30px; fill: #fff; }
.mtile .cover, .mtile .mc { position: absolute; bottom: 6px; left: 6px; background: var(--green); color: #fff; font-size: 11px; font-weight: 600; border-radius: 99px; padding: 2px 7px; display: inline-flex; align-items: center; gap: 3px; } .mtile .mc { left: auto; right: 6px; background: var(--navy); } .mtile .cover .ic, .mtile .mc .ic { width: 11px; height: 11px; }
.mx { position: absolute; top: 5px; right: 5px; width: 24px; height: 24px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; padding: 0; opacity: 0; } .mx .ic { width: 13px; height: 13px; } .mtile:hover .mx, .tile .mx { opacity: 1; }
.brk { display: none; position: absolute; inset: 0; background: #f7e3dd; color: #7c2a1b; font-size: 12px; font-weight: 600; flex-direction: column; align-items: center; justify-content: center; gap: 4px; text-align: center; padding: 6px; } .mtile.broken .brk { display: flex; } .mtile.broken img { display: none; }
.mtile.drop-over, .tile.drop-over { outline: 3px solid var(--green); outline-offset: -3px; }
.hint { margin: 0; }
.addmedia { display: flex; gap: 8px; align-items: flex-end; } .addmedia textarea { flex: 1; font-size: 14px; }
.nlfile { display: flex; gap: 8px; flex-wrap: wrap; }
.conflict { background: #fbe7b1; border-radius: 12px; padding: 8px 12px; display: flex; gap: 8px; align-items: center; flex-wrap: wrap; font-size: 13px; color: var(--navy); font-weight: 500; margin-top: 6px; } .conflict span { flex: 1 1 200px; display: inline-flex; gap: 6px; align-items: center; }
.tabs { display: flex; gap: 4px; background: var(--sand-l); padding: 4px; border-radius: 14px; align-self: flex-start; } .tabs button { border: 0; background: none; padding: 6px 14px; border-radius: 10px; font-weight: 500; } .tabs button.on { background: #fff; font-weight: 600; }
.thread { background: #fff; border-radius: 18px; padding: 12px; margin-bottom: 8px; display: flex; flex-direction: column; gap: 10px; } .thread.resolved { opacity: .6; }
.cmt { display: flex; gap: 10px; } .cmt.reply { margin-left: 40px; } .cmt-b { flex: 1; min-width: 0; }
.cmt-h { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; } .cmt-h b { font-weight: 600; } .cmt-t { overflow-wrap: anywhere; margin: 2px 0 4px; }
.cmt-a { display: flex; gap: 12px; } .cmt-a button { border: 0; background: none; padding: 0; font-size: 12.5px; color: var(--muted); font-weight: 500; } .cmt-a button:hover { color: var(--green-d); }
.mention { background: #e3d9fa; border-radius: 6px; padding: 0 4px; font-weight: 500; }
.composer { display: flex; flex-direction: column; gap: 6px; } .comp-row { display: flex; gap: 8px; align-items: flex-end; } .comp-row textarea { flex: 1; resize: none; max-height: 160px; }
.replyto { font-size: 13px; color: var(--muted); display: inline-flex; align-items: center; gap: 6px; } .replyto button { border: 0; background: none; padding: 0; display: grid; } .replyto .ic { width: 14px; height: 14px; }
#mention-box { position: fixed; z-index: 300; background: #fff; border: 1.5px solid var(--sand); border-radius: 16px; padding: 6px; display: flex; flex-direction: column; min-width: 200px; } #mention-box button { display: flex; align-items: center; gap: 8px; border: 0; background: none; padding: 6px 8px; border-radius: 10px; text-align: left; } #mention-box button:hover { background: var(--sand-l); }
.hist { display: flex; flex-direction: column; gap: 8px; } .h-row { display: flex; gap: 12px; font-size: 13.5px; } .h-row small { flex: none; width: 86px; padding-top: 1px; } .h-row b { font-weight: 600; } .h-row i { color: var(--muted); overflow-wrap: anywhere; }

/* Náhled média */
.lb { position: fixed; inset: 0; z-index: 80; display: grid; grid-template-columns: 1fr 380px; } .lb-bg { position: absolute; inset: 0; background: rgba(11, 42, 66, .9); }
.lb-main { position: relative; display: grid; place-items: center; padding: 24px; min-height: 0; min-width: 0; } .lb-main img, .lb-main video { max-width: 100%; max-height: calc(100vh - 48px); border-radius: 16px; display: block; background: #000; }
.lb-broken { background: #f7e3dd; color: #7c2a1b; padding: 30px; border-radius: 20px; max-width: 380px; text-align: center; font-weight: 500; }
.lb-nav, .lb-x { position: absolute; width: 44px; height: 44px; border-radius: 50%; border: 0; background: rgba(255, 255, 255, .92); display: grid; place-items: center; } .lb-nav.l { left: 16px; top: 50%; } .lb-nav.r { right: 16px; top: 50%; } .lb-x { top: 16px; left: 16px; }
.lb-side { position: relative; background: #fff; padding: 18px; display: flex; flex-direction: column; gap: 10px; overflow: auto; } .lb-h { display: flex; align-items: center; gap: 8px; } .lb-links { display: flex; gap: 6px; flex-wrap: wrap; } .lb-c { flex: 1; } .lb-c .thread { background: var(--cream); } .fname { overflow-wrap: anywhere; }

/* IG feed */
.feed-wrap { display: grid; grid-template-columns: minmax(0, 430px) minmax(0, 340px); gap: 28px; align-items: start; }
.phone { border: 1.5px solid var(--sand); border-radius: 30px; overflow: hidden; background: #fff; }
.ig-head { padding: 18px 16px 12px; display: flex; flex-direction: column; gap: 10px; } .ig-top { display: flex; align-items: center; gap: 18px; }
.ig-ava { width: 76px; height: 76px; border-radius: 50%; background: var(--sand); display: grid; place-items: center; font-size: 30px; font-weight: 700; overflow: hidden; flex: none; text-transform: uppercase; box-shadow: 0 0 0 3px #fff, 0 0 0 5px var(--lav); } .ig-ava img { width: 100%; height: 100%; object-fit: cover; }
.ig-stats { display: flex; flex-direction: column; gap: 4px; font-size: 14px; } .ig-stats > b { font-size: 17px; } .ig-bio { font-size: 14px; line-height: 1.35; }
.ig-hl { display: flex; gap: 14px; overflow: auto; padding: 4px 2px; } .ig-hl span { display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11.5px; width: 62px; flex: none; text-align: center; } .ig-hl i { width: 58px; height: 58px; border-radius: 50%; background: var(--cream); border: 1.5px solid var(--sand); }
.tiles { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.tile { position: relative; aspect-ratio: 4/5; background: var(--sand-l); cursor: pointer; overflow: hidden; user-select: none; -webkit-user-select: none; -webkit-touch-callout: none; } .tile.planned { cursor: grab; }
.tile .ph { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; padding: 8px; font-size: 12px; color: var(--muted); font-weight: 500; } .tile.broken img { display: none; }
.tile .tt .ic { width: 16px; height: 16px; } .tile .tt .ic path { fill: none; }
.tl { position: absolute; left: 5px; bottom: 5px; background: rgba(255, 255, 255, .94); border-radius: 99px; padding: 2px 8px 2px 6px; font-size: 11px; font-weight: 600; display: inline-flex; align-items: center; gap: 5px; } .tl i { width: 8px; height: 8px; border-radius: 50%; }
.tl.st-idea i { background: #cbbd9f; } .tl.st-draft i { background: var(--st-draft); } .tl.st-review i { background: var(--st-review); } .tl.st-approved i { background: var(--st-approved); } .tl.st-scheduled i { background: var(--st-scheduled); }
.feed-side { display: flex; flex-direction: column; gap: 14px; } .feed-side .btn { align-self: flex-start; } .legend-box { flex-direction: row; flex-wrap: wrap; font-size: 12.5px; gap: 6px 14px; }

/* Nastavení */
.settings { display: flex; flex-direction: column; gap: 16px; max-width: 820px; }
.utable { display: flex; flex-direction: column; gap: 6px; } .urow { display: flex; align-items: center; gap: 10px; background: #fff; border-radius: 16px; padding: 8px 12px; flex-wrap: wrap; } .urow.off { opacity: .55; } .u-main { flex: 1 1 160px; min-width: 0; line-height: 1.25; } .u-main small { display: block; overflow-wrap: anywhere; } .urow select { width: auto; }
.form.inline { flex-direction: row; align-items: center; flex-wrap: wrap; } .form.inline input[name=name] { flex: 1 1 180px; width: auto; }
.checks { display: flex; gap: 8px 20px; flex-wrap: wrap; }
.gstate { display: flex; gap: 8px; align-items: center; background: #fbe7b1; border-radius: 14px; padding: 10px 14px; font-size: 14px; flex-wrap: wrap; } .gstate.ok { background: #dcf3ec; }

/* Mobil */
@media (max-width: 760px) {
  #app { display: block; padding-bottom: 76px; }
  .side { position: fixed; z-index: 50; top: auto; bottom: 0; left: 0; right: 0; height: auto; flex-direction: row; padding: 6px 8px calc(6px + env(safe-area-inset-bottom)); gap: 0; border-top: 1.5px solid var(--sand); }
  .brand, .me { display: none; } .side nav, .side-foot { flex-direction: row; flex: 3; gap: 0; margin: 0; } .side-foot { flex: 1; }
  .nav-i { flex-direction: column; gap: 2px; font-size: 11px; padding: 4px; flex: 1; align-items: center; } .nav-i.on, .nav-i:hover { background: none; } .nav-i .ico { width: 36px; height: 36px; }
  #view { padding: 16px 12px 30px; } h1 { font-size: 21px; }
  .hide-m { display: none; } .top { gap: 10px; } .top-r { margin-left: 0; width: 100%; gap: 8px; } .top-r .seg { flex: 1; } .top-r .seg button { flex: 1; padding: 6px 4px; } .top-l { width: 100%; justify-content: space-between; }
  .legend { display: none; }
  .view-month .day { min-height: 58px; padding: 4px 0; text-align: center; } .view-month .cards { display: none; } .view-month .dnum { margin: 0; }
  .view-month .dots { display: flex; gap: 3px; justify-content: center; flex-wrap: wrap; padding: 0 2px; align-items: center; } .dots i { width: 7px; height: 7px; border-radius: 50%; } .dots small { font-size: 10px; line-height: 1; }
  .view-month .day.sel { background: var(--sand-l); box-shadow: inset 0 0 0 2px var(--navy); } .ev { height: 6px; } .ev b { display: none; } .ev.s { margin-left: 3px; } .ev.e { margin-right: 3px; } .dow span { text-align: center; padding: 6px 0; }
  .daypanel { display: flex; flex-direction: column; gap: 8px; margin-top: 14px; background: var(--cream); border-radius: var(--r-card); padding: 14px; } .dp-head { display: flex; align-items: center; justify-content: space-between; } .dp-head b::first-letter { text-transform: uppercase; } .daypanel .chip { align-self: flex-start; }
  .weekview { display: flex; flex-direction: column; } .wday { min-height: 0; border-left: 0; border-top: 1.5px solid var(--sand-l); } .weekview .card.big { flex-direction: row; align-items: center; } .weekview .card.big .th { width: 48px; height: 60px; aspect-ratio: auto; } .wd-head i { opacity: 1; }
  .ld { grid-template-columns: 1fr; gap: 4px; } .ld-date { display: flex; gap: 8px; align-items: baseline; } .lrow .ava { display: none; }
  .drawer { width: 100vw; border-radius: 0; } .d-body { padding: 14px 14px 60px; } .d-grid, .row2, .row3 { grid-template-columns: 1fr; } .d-title { font-size: 21px; }
  .steps .step span { display: none; } .steps .step.cur span { display: block; overflow: visible; }
  .mx { opacity: 1; } .addmedia { flex-direction: column; align-items: stretch; }
  .lb { grid-template-columns: 1fr; grid-template-rows: minmax(0, 46vh) 1fr; } .lb-main { padding: 10px; } .lb-main img, .lb-main video { max-height: calc(46vh - 20px); } .lb-nav { width: 38px; height: 38px; }
  .feed-wrap { grid-template-columns: 1fr; } .phone { border-radius: 22px; }
  .modal { padding: 20px; border-radius: 22px; }
  #toasts { bottom: 90px; }
  input, select, textarea { font-size: 16px !important; }
}
