:root {
  --bg: #f3f3f5; --panel: #fff; --ink: #16161a; --muted: #6b6b76; --line: #e3e3e8;
  --acc: #e00621; --acc-ink: #fff; --chip: #ececf0; --stage: #e9e9ee;
  --sys: -apple-system, BlinkMacSystemFont, "SF Pro Text", "Segoe UI", Roboto, Helvetica, Arial, sans-serif;
}
@media (prefers-color-scheme: dark) {
  :root { --bg: #111114; --panel: #1b1b20; --ink: #f1f1f4; --muted: #9a9aa6; --line: #2c2c34; --chip: #26262d; --stage: #0c0c0f; }
}
* { box-sizing: border-box; }
html, body { margin: 0; height: 100%; }
body { background: var(--bg); color: var(--ink); font: 14px/1.45 var(--sys); display: flex; flex-direction: column; }
button { font: inherit; color: inherit; }

/* ---------- horní lišta ---------- */
.top { display: flex; align-items: center; gap: 20px; padding: 10px 18px; background: var(--panel); border-bottom: 1px solid var(--line); position: sticky; top: 0; z-index: 20; }
.brand { display: flex; align-items: center; gap: 10px; min-width: 220px; }
.brand b { display: block; font-size: 16px; }
.brand small { color: var(--muted); font-size: 12px; }
.logo { width: 34px; height: 34px; border-radius: 9px; background: var(--acc); position: relative; flex: none; }
.logo::after { content: ""; position: absolute; inset: 6px 10px; border: 2.5px solid #fff; border-radius: 4px; }
.nets { display: flex; gap: 6px; flex-wrap: wrap; flex: 1; }
.nets button, .fmts button, .viewsw button { border: 0; background: var(--chip); padding: 7px 12px; border-radius: 999px; cursor: pointer; white-space: nowrap; }
.nets button.on, .fmts button.on, .viewsw button.on { background: var(--ink); color: var(--panel); }
.nets button:hover:not(.on), .fmts button:hover:not(.on) { background: var(--line); }
.viewsw { display: flex; background: var(--chip); border-radius: 999px; padding: 3px; }
.viewsw button { background: transparent; padding: 6px 12px; }

/* ---------- rozvržení ---------- */
.layout { flex: 1; display: grid; grid-template-columns: 330px 1fr; min-height: 0; }
.panel { background: var(--panel); border-right: 1px solid var(--line); overflow-y: auto; padding: 6px 18px 24px; }
.panel section { padding: 14px 0; border-bottom: 1px solid var(--line); }
.panel section:last-child { border: 0; }
.panel h2 { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); margin: 0 0 10px; }
.panel label { display: block; font-size: 12px; color: var(--muted); margin-bottom: 8px; }
.panel input:not([type=checkbox]):not([type=file]), .panel textarea { display: block; width: 100%; margin-top: 4px; padding: 8px 10px; border: 1px solid var(--line); border-radius: 8px; background: var(--bg); color: var(--ink); font: 14px var(--sys); resize: vertical; }
.row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.drop { border: 2px dashed var(--line); border-radius: 12px; padding: 18px 12px; text-align: center; cursor: pointer; color: var(--ink) !important; transition: .15s; }
.drop:hover, .drop.over { border-color: var(--acc); background: color-mix(in srgb, var(--acc) 6%, transparent); }
.drop b { display: block; font-size: 14px; margin-top: 6px; }
.drop small { color: var(--muted); }
.dropicon { display: inline-block; width: 30px; height: 30px; border-radius: 8px; background: var(--acc); position: relative; }
.dropicon::before, .dropicon::after { content: ""; position: absolute; background: #fff; left: 50%; top: 50%; transform: translate(-50%, -50%); }
.dropicon::before { width: 14px; height: 2.5px; } .dropicon::after { width: 2.5px; height: 14px; }
.thumbs { display: flex; gap: 6px; flex-wrap: wrap; margin-top: 10px; }
.thumb { position: relative; width: 56px; height: 56px; border-radius: 8px; overflow: hidden; background: #000; cursor: pointer; outline: 2px solid transparent; }
.thumb.on { outline-color: var(--acc); }
.thumb img, .thumb video { width: 100%; height: 100%; object-fit: cover; }
.thumb .x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; border-radius: 50%; border: 0; background: rgba(0,0,0,.7); color: #fff; font-size: 12px; line-height: 18px; padding: 0; cursor: pointer; }
.thumb .dim { position: absolute; left: 0; right: 0; bottom: 0; font-size: 9px; color: #fff; background: rgba(0,0,0,.6); text-align: center; }
.tpl { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tpl button { border: 0; padding: 0; background: #000; border-radius: 6px; overflow: hidden; cursor: pointer; aspect-ratio: 3/4; outline: 2px solid transparent; transition: .12s; }
.tpl button:hover { outline-color: var(--acc); transform: translateY(-1px); }
.tpl img { width: 100%; height: 100%; object-fit: cover; object-position: top; display: block; }
.deckgrid img[src*="/R"] { aspect-ratio: 9/16; object-fit: cover; }
.tplall { margin-top: 8px; width: 100%; border: 0; border-radius: 8px; padding: 8px; background: var(--acc); color: #fff; font-weight: 600; cursor: pointer; }
.deck { width: 100%; max-width: 1400px; }
.deck h2 { font-size: 20px; margin: 0 0 4px; }
.deck p { margin: 0 0 18px; color: var(--muted); }
.deckgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 22px; }
.deckgrid figure { margin: 0; }
.deckgrid img { width: 100%; display: block; border-radius: 6px; box-shadow: 0 6px 18px rgba(0,0,0,.25); cursor: zoom-in; }
.deckgrid figcaption { font-size: 12.5px; margin-top: 6px; display: flex; justify-content: space-between; gap: 8px; }
.deckgrid figcaption button { border: 0; background: var(--chip); border-radius: 999px; padding: 3px 10px; font-size: 12px; cursor: pointer; white-space: nowrap; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.88); display: flex; align-items: center; justify-content: center; z-index: 100; cursor: zoom-out; }
.lightbox img { max-width: 94vw; max-height: 94vh; border-radius: 6px; }
.tplall.share { background: var(--ink); color: var(--panel); margin-top: 10px; }
.tplall:disabled { opacity: .6; cursor: progress; }
.shareout, .sharebanner { margin-top: 8px; padding: 10px; border-radius: 8px; background: color-mix(in srgb, #17a34a 15%, transparent); font-size: 12.5px; }
.sharebanner { background: color-mix(in srgb, #0866ff 15%, transparent); }
.shareout input { width: 100%; margin: 6px 0; padding: 6px 8px; border: 1px solid var(--line); border-radius: 6px; background: var(--bg); color: var(--ink); font: 12px var(--sys); }
.shareout button { border: 0; border-radius: 6px; padding: 6px 10px; background: var(--acc); color: #fff; font-weight: 600; cursor: pointer; }
.shareout .err { color: #e00621; }
.linkbtn { border: 0; background: none; padding: 0; color: var(--muted); font-size: 12px; text-decoration: underline; cursor: pointer; }
.memwarn { color: #b45309; }
.privacy { font-size: 12px; color: var(--muted); margin: 10px 0 0; }
.fold { padding: 12px 0; border-bottom: 1px solid var(--line); }
.fold summary { font-size: 12px; text-transform: uppercase; letter-spacing: .06em; color: var(--muted); cursor: pointer; list-style: none; display: flex; justify-content: space-between; }
.fold summary::-webkit-details-marker { display: none; }
.fold summary::after { content: '▸'; }
.fold[open] summary::after { content: '▾'; }
.avatarpick { display: flex !important; align-items: center; gap: 10px; }
.avatarpick input { display: none; }
.avatarpick .av { width: 34px; height: 34px; cursor: pointer; }
.tg { display: flex !important; align-items: center; gap: 10px; color: var(--ink) !important; font-size: 13px !important; cursor: pointer; }
.tg input { display: none; }
.tg span { width: 34px; height: 20px; border-radius: 10px; background: var(--line); position: relative; flex: none; transition: .15s; }
.tg span::after { content: ""; position: absolute; top: 2px; left: 2px; width: 16px; height: 16px; border-radius: 50%; background: #fff; transition: .15s; box-shadow: 0 1px 2px rgba(0,0,0,.3); }
.tg input:checked + span { background: var(--acc); }
.tg input:checked + span::after { left: 16px; }
.info h3 { margin: 0 0 4px; font-size: 16px; }
.info dl { margin: 8px 0 0; display: grid; grid-template-columns: auto 1fr; gap: 4px 10px; font-size: 13px; }
.info dt { color: var(--muted); }
.info dd { margin: 0; }
.info .warn { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, #f5a524 18%, transparent); font-size: 13px; }
.info .ok { margin-top: 10px; padding: 8px 10px; border-radius: 8px; background: color-mix(in srgb, #17a34a 15%, transparent); font-size: 13px; }
.cropview { margin-top: 10px; position: relative; background: #000; border-radius: 6px; overflow: hidden; }
.cropview img, .cropview video { display: block; width: 100%; }
.cropview .keep { position: absolute; outline: 2px solid #22c55e; box-shadow: 0 0 0 999px rgba(224, 6, 33, .55); }
.cropcap { font-size: 11px; color: var(--muted); margin-top: 4px; }

/* ---------- scéna ---------- */
.stage { overflow: auto; background: var(--stage); display: flex; flex-direction: column; align-items: center; padding: 18px; gap: 14px; }
.fmts { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; }
.single { flex: 1; display: flex; align-items: flex-start; justify-content: center; width: 100%; }
.allgrid { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: 24px 18px; width: 100%; }
.cell { display: flex; flex-direction: column; align-items: center; gap: 8px; cursor: pointer; }
.cell b { font-size: 13px; } .cell small { color: var(--muted); font-size: 11px; margin-top: -6px; }
.scaler { flex: none; }
.foot { padding: 8px 18px; font-size: 11.5px; color: var(--muted); background: var(--panel); border-top: 1px solid var(--line); }

/* ---------- telefon ---------- */
.phone { width: 414px; height: 868px; padding: 12px; border-radius: 64px; background: #1c1c1e; box-shadow: 0 0 0 2px #3a3a3c inset, 0 24px 60px rgba(0,0,0,.25); transform-origin: top left; }
.screen { width: 390px; height: 844px; border-radius: 52px; overflow: hidden; position: relative; background: #fff; color: #000; font: 14px/1.3 var(--sys); user-select: none; -webkit-user-select: none; }
.screen.dk { background: #000; color: #f5f5f5; }
.island { position: absolute; top: 11px; left: 50%; transform: translateX(-50%); width: 124px; height: 36px; border-radius: 20px; background: #000; z-index: 50; }
.sbar { height: 54px; display: flex; align-items: center; justify-content: space-between; padding: 6px 34px 0 46px; font-weight: 600; font-size: 16px; position: relative; z-index: 40; }
.sbar.abs { position: absolute; left: 0; right: 0; top: 0; color: #fff; }
.sbar i { display: flex; gap: 6px; align-items: center; }
.sbar .bat { width: 25px; height: 12px; border: 1.5px solid currentColor; border-radius: 4px; position: relative; opacity: .95; }
.sbar .bat::after { content: ""; position: absolute; inset: 1.5px; right: 5px; background: currentColor; border-radius: 1.5px; }
.homebar { position: absolute; bottom: 8px; left: 50%; transform: translateX(-50%); width: 134px; height: 5px; border-radius: 3px; background: currentColor; z-index: 60; opacity: .9; }
svg.i { width: 24px; height: 24px; fill: none; stroke: currentColor; stroke-width: 1.9; stroke-linecap: round; stroke-linejoin: round; flex: none; }
svg.i.f { fill: currentColor; stroke: none; }
.av { border-radius: 50%; background: #e00621 center/cover; color: #fff; display: inline-flex; align-items: center; justify-content: center; font-weight: 800; letter-spacing: -.5px; flex: none; overflow: hidden; }
.ring { padding: 2px; border-radius: 50%; background: conic-gradient(#feda75, #fa7e1e, #d62976, #962fbf, #4f5bd5, #feda75); display: inline-flex; }
.ring > .av { box-shadow: 0 0 0 2px var(--ringbg, #fff); }
.media { position: relative; overflow: hidden; background: #111; }
.media > img, .media > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media .bgblur { position: absolute; inset: -30px; filter: blur(24px) brightness(.8); }
.media .bgblur > img, .media .bgblur > video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; display: block; }
.media .ph { position: absolute; inset: 0; display: flex; align-items: center; justify-content: center; color: #888; }
.noui .ui { display: none !important; }

/* bezpečné zóny */
.sz { position: absolute; inset: 0; pointer-events: none; z-index: 30; display: none; }
.showsafe .sz { display: block; }
.sz .blk { position: absolute; background: repeating-linear-gradient(45deg, rgba(224, 6, 33, .6) 0 7px, rgba(0, 0, 0, .35) 7px 14px); }
.sz .safebox { position: absolute; outline: 2px dashed #22c55e; }
.sz .lab { position: absolute; font: 600 10px/1.2 var(--sys); color: #fff; background: rgba(224, 6, 33, .9); padding: 2px 5px; border-radius: 3px; white-space: nowrap; }
.sz .badge { position: absolute; outline: 2px solid #f5a524; background: rgba(245, 165, 36, .25); }

/* ---------- společné prvky aplikací ---------- */
.tabbar { position: absolute; left: 0; right: 0; bottom: 0; height: 84px; display: flex; justify-content: space-around; align-items: flex-start; padding-top: 12px; z-index: 35; }
.lt .tabbar { background: #fff; border-top: .5px solid #dbdbdb; }
.dk .tabbar { background: #000; border-top: .5px solid #262626; }
.tabbar .av { width: 26px; height: 26px; font-size: 10px; }
.dots { display: flex; gap: 4px; justify-content: center; }
.dots i { width: 6px; height: 6px; border-radius: 50%; background: #c7c7c7; }
.dots i.on { background: #0095f6; }
.pill { position: absolute; top: 12px; right: 12px; background: rgba(18,18,18,.7); color: #fff; font-size: 12.5px; font-weight: 600; padding: 4px 9px; border-radius: 13px; z-index: 5; }
.navbtn { position: absolute; top: 50%; transform: translateY(-50%); width: 26px; height: 26px; border-radius: 50%; border: 0; background: rgba(255,255,255,.85); color: #000; z-index: 6; cursor: pointer; display: flex; align-items: center; justify-content: center; padding: 0; }
.navbtn.l { left: 8px; } .navbtn.r { right: 8px; }
.navbtn { opacity: 0; transition: opacity .15s; }
.media:hover .navbtn { opacity: .9; }
.navbtn svg { width: 16px; height: 16px; }
.bigheart { position: absolute; left: 50%; top: 50%; width: 96px; height: 96px; margin: -48px 0 0 -48px; color: #fff; z-index: 7; opacity: 0; pointer-events: none; filter: drop-shadow(0 2px 8px rgba(0,0,0,.4)); }
.bigheart.go { animation: pop .9s ease; }
@keyframes pop { 0% { opacity: 0; transform: scale(.3); } 15% { opacity: 1; transform: scale(1.15); } 30% { transform: scale(.95); } 70% { opacity: 1; transform: scale(1); } 100% { opacity: 0; transform: scale(1); } }
.liked { color: #ff3040 !important; }
.liked svg.i { fill: currentColor; }
.clamp2 { display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.clamp1 { display: -webkit-box; -webkit-line-clamp: 1; -webkit-box-orient: vertical; overflow: hidden; }

/* Instagram */
.ig .bar { height: 44px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.ig .word { font-family: "Billabong", "Segoe Script", "Brush Script MT", cursive; font-size: 27px; font-weight: 400; }
.ig .ph1 { display: flex; align-items: center; gap: 10px; padding: 8px 12px; height: 56px; }
.ig .ph1 .av { width: 32px; height: 32px; font-size: 12px; }
.ig .nm { font-weight: 600; font-size: 13.5px; }
.ig .sub { font-size: 12px; }
.ig .acts { display: flex; align-items: center; gap: 14px; padding: 10px 12px 6px; font-weight: 600; font-size: 13.5px; }
.ig .acts span { display: flex; align-items: center; gap: 5px; cursor: pointer; }
.ig .cap { padding: 0 12px; font-size: 13.5px; }
.ig .cap b { font-weight: 600; margin-right: 4px; }
.ig .mut { color: #737373; }
.dk .ig .mut { color: #a8a8a8; }

/* Facebook */
.fb { --fb: #0866ff; }
.fb .bar { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 12px; }
.fb .word { color: var(--fb); font-weight: 800; font-size: 29px; letter-spacing: -1px; }
.dk .fb .word { color: #fff; }
.fb .circ { width: 34px; height: 34px; border-radius: 50%; background: #e4e6eb; display: inline-flex; align-items: center; justify-content: center; margin-left: 8px; }
.dk .fb .circ { background: #3a3b3c; }
.fb .circ svg { width: 19px; height: 19px; }
.fb .sep { height: 8px; background: #c9ccd1; }
.dk .fb .sep { background: #000; }
.fb .post { background: #fff; }
.dk .fb .post { background: #242526; }
.fb .ph1 { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.fb .ph1 .av { width: 40px; height: 40px; font-size: 14px; }
.fb .nm { font-weight: 600; font-size: 15px; }
.fb .sub { color: #65676b; font-size: 13px; display: flex; align-items: center; gap: 3px; }
.fb .txt { padding: 0 12px 10px; font-size: 15px; }
.fb .cnt { display: flex; justify-content: space-between; padding: 10px 12px; color: #65676b; font-size: 14px; }
.fb .rx { display: inline-flex; margin-right: 6px; }
.fb .rx i { width: 18px; height: 18px; border-radius: 50%; border: 2px solid #fff; display: inline-block; margin-right: -5px; }
.fb .btns { display: flex; justify-content: space-around; border-top: 1px solid #ced0d4; margin: 0 12px; padding: 8px 0; color: #65676b; font-weight: 600; font-size: 14px; }
.dk .fb .btns { border-color: #3e4042; color: #b0b3b8; }
.fb .btns span { display: flex; gap: 6px; align-items: center; cursor: pointer; }
.fb .btns svg { width: 20px; height: 20px; }
.collage { display: grid; gap: 3px; }
.fb .pbar { height: 50px; display: flex; align-items: center; gap: 18px; padding: 0 14px; border-bottom: 1px solid #e4e6eb; }
.dk .fb .pbar { border-color: #3e4042; }
.fb .pbar b { font-size: 19px; font-weight: 600; display: flex; align-items: center; gap: 5px; margin-left: 4px; }
.fb .pbar .sp { flex: 1; }
.fb .pbar .oc { width: 26px; height: 26px; border: 2px solid currentColor; border-radius: 50%; display: inline-flex; align-items: center; justify-content: center; }
.fb .pbar .oc svg { width: 18px; height: 18px; }
.fb .fbv { width: 17px; height: 17px; color: #0866ff; vertical-align: -2px; }
.fb .ptabs { display: flex; gap: 6px; padding: 10px 10px 4px; font-size: 15.5px; color: #65676b; overflow: hidden; white-space: nowrap; }
.dk .fb .ptabs { color: #b0b3b8; }
.fb .ptabs span { padding: 7px 13px; border-radius: 18px; }
.fb .ptabs span.on { background: #ebf5ff; color: #0866ff; font-weight: 500; }
.dk .fb .ptabs span.on { background: #263951; color: #4599ff; }
.fb .ptitle { font-weight: 700; font-size: 18px; padding: 10px 12px 2px; }
.fb .avr { border-radius: 50%; padding: 2px; border: 2px solid #0866ff; display: inline-flex; }
.fb .avr .av { width: 34px !important; height: 34px !important; }
.fb .post .nm { display: flex; align-items: center; gap: 4px; font-size: 16px; }
.fb .post .sub { font-size: 13.5px; }
.fb .post .txt { font-size: 15.5px; line-height: 1.32; }
.fb .post .txt .g { color: #65676b; }
.dk .fb .post .txt .g { color: #b0b3b8; }
.fb .acts { display: flex; align-items: center; gap: 22px; padding: 12px 12px 12px; color: #65676b; font-size: 15px; }
.dk .fb .acts { color: #b0b3b8; }
.fb .acts span { display: flex; align-items: center; gap: 6px; cursor: pointer; }
.fb .acts span.on { color: #0866ff; }
.fb .acts svg { width: 22px; height: 22px; }
.fb .acts .rcts { margin-left: auto; gap: 0; font-size: 19px; }
.fb .acts .rcts i { width: 22px; height: 22px; border-radius: 50%; background: #0866ff; color: #fff; display: inline-flex; align-items: center; justify-content: center; margin-left: -4px; border: 2px solid #fff; }
.dk .fb .acts .rcts i { border-color: #242526; }
.fb .acts .rcts i svg { width: 12px; height: 12px; }
.fb .lbox { background: #f0f2f5; padding: 10px 12px 12px; }
.dk .fb .lbox { background: #3a3b3c; }
.fb .lbox .dom { color: #65676b; font-size: 13.5px; }
.dk .fb .lbox .dom { color: #b0b3b8; }
.fb .lbox .ttl { font-size: 16px; line-height: 1.3; margin-top: 2px; }
.fb .fbi { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; border-radius: 50%; background: #fff; color: #050505; font: italic 700 17px/32px Georgia, serif; text-align: center; box-shadow: 0 1px 3px rgba(0,0,0,.3); z-index: 5; }

/* Celoobrazovkové formáty (story, reels, TikTok, Shorts) */
.fs { position: absolute; inset: 0; background: #000; color: #fff; }
.fs .area { position: absolute; left: 0; right: 0; overflow: hidden; }
.fs .area .media { position: absolute; top: 0; left: 50%; transform: translateX(-50%); background: #111; }
.fs .shade { position: absolute; left: 0; right: 0; pointer-events: none; z-index: 2; }
.fs .shade.t { top: 0; height: 140px; background: linear-gradient(rgba(0,0,0,.45), transparent); }
.fs .shade.b { bottom: 0; height: 260px; background: linear-gradient(transparent, rgba(0,0,0,.55)); }
.rail { position: absolute; right: 8px; display: flex; flex-direction: column; align-items: center; gap: 18px; z-index: 10; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.rail span { display: flex; flex-direction: column; align-items: center; gap: 3px; font-size: 12px; font-weight: 600; cursor: pointer; }
.rail svg.i { width: 30px; height: 30px; filter: drop-shadow(0 1px 2px rgba(0,0,0,.4)); }
.btmtxt { position: absolute; left: 12px; right: 80px; z-index: 10; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.btmtxt .who { display: flex; align-items: center; gap: 8px; font-weight: 700; margin-bottom: 6px; }
.btmtxt .who .av { width: 32px; height: 32px; font-size: 11px; border: 1px solid #fff; }
.btmtxt .follow { border: 1px solid rgba(255,255,255,.8); border-radius: 8px; padding: 3px 10px; font-size: 13px; font-weight: 600; }
.btmtxt .snd { display: flex; align-items: center; gap: 6px; font-size: 13px; margin-top: 6px; }
.btmtxt .snd svg { width: 15px; height: 15px; }
.progress { position: absolute; top: 58px; left: 8px; right: 8px; display: flex; gap: 4px; z-index: 10; }
.progress i { flex: 1; height: 2.5px; border-radius: 2px; background: rgba(255,255,255,.35); overflow: hidden; }
.progress i.done { background: #fff; }
.progress i.cur::after { content: ""; display: block; height: 100%; width: 40%; background: #fff; }
.storyhead { position: absolute; top: 70px; left: 12px; right: 12px; display: flex; align-items: center; gap: 8px; z-index: 10; font-weight: 600; font-size: 14px; text-shadow: 0 1px 2px rgba(0,0,0,.5); }
.storyhead .av { width: 32px; height: 32px; font-size: 11px; }
.storyhead .t { opacity: .75; font-weight: 400; }
.storyhead .sp { flex: 1; }
.reply { position: absolute; left: 12px; right: 12px; bottom: 34px; display: flex; align-items: center; gap: 14px; z-index: 10; }
.reply .box { flex: 1; border: 1px solid rgba(255,255,255,.7); border-radius: 22px; padding: 11px 16px; font-size: 14px; color: rgba(255,255,255,.85); }
.tapzone { position: absolute; top: 120px; bottom: 120px; width: 40%; z-index: 9; cursor: pointer; }
.tapzone.l { left: 0; } .tapzone.r { right: 0; }

/* TikTok */
.tt .tabs { position: absolute; top: 58px; left: 0; right: 0; display: flex; justify-content: center; gap: 18px; font-weight: 600; font-size: 16.5px; z-index: 10; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.tt .tabs .on { border-bottom: 2.5px solid #fff; padding-bottom: 5px; }
.tt .tabs .off { opacity: .65; }
.tt .live { position: absolute; top: 60px; left: 14px; z-index: 10; font-weight: 800; font-size: 12px; border: 1.5px solid #fff; border-radius: 5px; padding: 1px 4px; }
.tt .srch { position: absolute; top: 58px; right: 14px; z-index: 10; }
.tt .avbtn { position: relative; margin-bottom: 6px; }
.tt .avbtn .av { width: 46px; height: 46px; border: 1.5px solid #fff; font-size: 15px; }
.tt .avbtn b { position: absolute; left: 50%; bottom: -9px; transform: translateX(-50%); width: 20px; height: 20px; border-radius: 50%; background: #fe2c55; display: flex; align-items: center; justify-content: center; font-size: 16px; line-height: 1; }
.tt .disc { width: 42px; height: 42px; border-radius: 50%; background: radial-gradient(#e00621 0 30%, #222 31% 100%); border: 8px solid #2b2b2b; animation: spin 5s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.tt .tabbar { background: #000; border: 0; font-size: 10px; }
.tt .tabbar span, .yt .tabbar span, .rl .tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; }
.tt .plus { width: 44px; height: 30px; border-radius: 9px; background: linear-gradient(90deg, #25f4ee 0 12%, #fff 12% 88%, #fe2c55 88%); color: #000; display: flex; align-items: center; justify-content: center; margin-top: 2px; }

/* YouTube Shorts */
.yt .sub { background: #fff; color: #000; border-radius: 16px; padding: 5px 12px; font-size: 13px; font-weight: 600; }
.yt .tabbar { background: #0f0f0f; border: 0; }
.yt .ytplus { width: 38px; height: 38px; border-radius: 50%; background: #272727; display: flex; align-items: center; justify-content: center; }

/* X */
.xx .bar { height: 50px; display: flex; align-items: center; justify-content: space-between; padding: 0 14px; }
.xx .xlogo { font: 800 26px/1 Arial, sans-serif; }
.xx .tabs2 { display: flex; border-bottom: 1px solid #eff3f4; font-weight: 600; font-size: 15px; }
.dk .xx .tabs2 { border-color: #2f3336; }
.xx .tabs2 span { flex: 1; text-align: center; padding: 12px 0; color: #536471; }
.xx .tabs2 span.on { color: inherit; }
.xx .tabs2 span.on::after { content: ""; display: block; width: 56px; height: 4px; border-radius: 2px; background: #1d9bf0; margin: 10px auto -12px; }
.xx .post { display: flex; gap: 10px; padding: 12px 14px 4px; border-bottom: 1px solid #eff3f4; }
.dk .xx .post { border-color: #2f3336; }
.xx .post .av { width: 40px; height: 40px; font-size: 14px; }
.xx .body { flex: 1; min-width: 0; }
.xx .hd { font-size: 15px; display: flex; gap: 4px; align-items: center; white-space: nowrap; overflow: hidden; }
.xx .hd b { font-weight: 700; }
.xx .hd .g { color: #536471; }
.xx .vf { width: 17px; height: 17px; color: #1d9bf0; }
.xx .txt { font-size: 15px; margin: 2px 0 10px; }
.xx .mbox { border-radius: 16px; overflow: hidden; border: 1px solid #cfd9de; }
.dk .xx .mbox { border-color: #2f3336; }
.xx .acts { display: flex; justify-content: space-between; color: #536471; font-size: 13px; padding: 10px 2px 8px; }
.xx .acts span { display: flex; gap: 4px; align-items: center; cursor: pointer; }
.xx .acts svg { width: 19px; height: 19px; }
.xgrid { display: grid; gap: 2px; }
.xx .fab { position: absolute; right: 16px; bottom: 100px; width: 56px; height: 56px; border-radius: 50%; background: #1d9bf0; color: #fff; display: flex; align-items: center; justify-content: center; box-shadow: 0 4px 12px rgba(0,0,0,.25); z-index: 30; }

/* Threads */
.th .bar { height: 50px; display: flex; align-items: center; justify-content: center; }
.th .tlogo { font: 800 30px/1 Arial, sans-serif; }
.th .post { display: flex; gap: 10px; padding: 12px 14px; }
.th .post .av { width: 36px; height: 36px; font-size: 12px; }
.th .hd { font-size: 15px; } .th .hd b { font-weight: 600; } .th .hd .g { color: #999; }
.th .txt { font-size: 15px; margin: 2px 0 10px; }
.th .row { display: flex; gap: 6px; overflow-x: auto; scrollbar-width: none; margin-right: -14px; }
.th .row .media { border-radius: 8px; flex: none; }
.th .acts { display: flex; gap: 18px; padding: 10px 0 2px; font-size: 13px; }
.th .acts span { display: flex; gap: 5px; align-items: center; cursor: pointer; }
.th .acts svg { width: 20px; height: 20px; }

/* LinkedIn */
.li { --li: #0a66c2; }
.li .bar { height: 52px; display: flex; align-items: center; gap: 10px; padding: 0 12px; }
.li .bar .av { width: 32px; height: 32px; font-size: 11px; }
.li .srch { flex: 1; background: #edf3f8; border-radius: 4px; height: 34px; display: flex; align-items: center; gap: 6px; padding: 0 10px; color: #666; font-size: 14px; }
.dk .li .srch { background: #38434f; color: #ccc; }
.li .sep { height: 8px; background: #e9e5df; }
.dk .li .sep { background: #000; }
.li .post { background: #fff; }
.dk .li .post { background: #1b1f23; }
.li .ph1 { display: flex; gap: 8px; padding: 12px 12px 8px; align-items: flex-start; }
.li .ph1 .av { width: 48px; height: 48px; border-radius: 4px; font-size: 16px; }
.li .nm { font-weight: 600; font-size: 14px; }
.li .sub { color: #666; font-size: 12px; }
.dk .li .sub { color: #aaa; }
.li .flw { color: var(--li); font-weight: 600; font-size: 15px; margin-left: auto; white-space: nowrap; }
.li .txt { padding: 0 12px 10px; font-size: 14px; }
.li .cnt { display: flex; justify-content: space-between; padding: 8px 12px; color: #666; font-size: 12px; border-bottom: 1px solid #e8e8e8; margin: 0 12px; padding-left: 0; padding-right: 0; }
.dk .li .cnt { border-color: #38434f; color: #aaa; }
.li .btns { display: flex; justify-content: space-around; padding: 6px 0 4px; color: #666; font-size: 12px; font-weight: 600; }
.dk .li .btns { color: #bbb; }
.li .btns span { display: flex; flex-direction: column; align-items: center; gap: 2px; cursor: pointer; }
.li .btns svg { width: 22px; height: 22px; }
.li .tabbar span { display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: 10px; color: #666; }

/* Mřížka profilu */
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 2px; }
.ig .prof { padding: 4px 16px 0; }
.ig .prof .top2 { display: flex; align-items: center; gap: 22px; }
.ig .prof .ring .av { width: 82px; height: 82px; font-size: 28px; }
.ig .stats { display: flex; flex: 1; justify-content: space-around; text-align: center; font-size: 13px; }
.ig .stats b { display: block; font-size: 16px; }
.ig .bio { font-size: 13.5px; margin: 10px 0; }
.ig .pbtns { display: flex; gap: 6px; margin-bottom: 10px; }
.ig .pbtns span { flex: 1; text-align: center; padding: 7px 0; border-radius: 8px; background: #efefef; font-weight: 600; font-size: 13.5px; }
.dk .ig .pbtns span { background: #262626; }
.ig .pbtns span.blue { background: #0095f6; color: #fff; }
.ig .ptabs { display: flex; justify-content: space-around; border-bottom: 1px solid #dbdbdb; }
.dk .ig .ptabs { border-color: #262626; }
.ig .ptabs span { padding: 10px 0; flex: 1; display: flex; justify-content: center; color: #8e8e8e; }
.ig .ptabs span.on { color: inherit; border-bottom: 1.5px solid currentColor; }

@media (max-width: 860px) {
  .layout { grid-template-columns: 1fr; }
  .panel { border-right: 0; border-bottom: 1px solid var(--line); }
  .top { flex-wrap: wrap; gap: 10px; }
  .brand { min-width: 0; }
}
