/* Náhled Emglare Workspace — úkoly ve stylu Asany, vizuál Emglare (Gotham, oranžová, tmavý panel). */
body.wk-body { margin: 0; height: 100vh; overflow: hidden; background: #fff; color: var(--ink); font-size: 13.5px; }
.wk-app { display: grid; grid-template-columns: 244px minmax(0, 1fr); height: 100vh; }
.wk-app.has-detail { grid-template-columns: 244px minmax(0, 1fr) 460px; }

/* vlastní tlačítka nemají globální oranžový styl ze style.css */
.nav-it, .ck, .tbtn, .ibtn, .grp-h, .seg button, .sg, .pb, .lp, .dt-done, .col-add, .att-x, button.lnk { box-shadow: none; transform: none !important; font-family: inherit; }

/* ---------- levý panel ---------- */
.wk-side { background: var(--ink); color: #c9ccd1; display: flex; flex-direction: column; padding: 14px 10px 12px; overflow-y: auto; min-height: 0; }
.wk-brand { display: flex; align-items: center; gap: 10px; padding: 4px 8px 16px; }
.wk-logo { width: 32px; height: 32px; border-radius: 9px; background: var(--orange); display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; }
.wk-logo img { width: 18px; height: 18px; filter: brightness(0) invert(1); }
.wk-brand b { color: #fff; font-size: 14px; display: block; letter-spacing: .01em; }
.wk-brand small { font-size: 11px; color: #8b9098; }
.beta { display: inline-block; margin-left: 4px; padding: 0 6px; border-radius: 99px; background: rgba(241,140,21,.18); color: #f5a54a; font-size: 9.5px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; vertical-align: 1px; }
.wk-nav { display: flex; flex-direction: column; gap: 2px; }
.nav-it { display: flex; align-items: center; gap: 10px; width: 100%; background: none; color: #c9ccd1; border-radius: 8px; padding: 8px 10px; font-size: 13px; font-weight: 500; text-align: left; text-decoration: none; cursor: pointer; }
.nav-it span { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.nav-it svg { flex-shrink: 0; opacity: .8; }
.nav-it em { font-style: normal; font-size: 11px; color: #8b9098; font-variant-numeric: tabular-nums; }
.nav-it:hover { background: rgba(255,255,255,.06); color: #fff; }
.nav-it.on { background: rgba(241,140,21,.16); color: #fff; }
.nav-it.on svg { color: var(--orange); opacity: 1; }
.nav-it.on em { color: #f5a54a; }
.rdot { width: 7px; height: 7px; border-radius: 50%; background: #ef4444; flex-shrink: 0; }
.side-h { margin: 18px 10px 6px; font-size: 10.5px; font-weight: 700; letter-spacing: .07em; text-transform: uppercase; color: #6f757e; }
.wk-projs { display: flex; flex-direction: column; gap: 1px; }
.nav-it.proj { padding: 7px 10px; }
.pdot { width: 9px; height: 9px; border-radius: 3px; display: inline-block; flex-shrink: 0; }
.pdot.lg { width: 14px; height: 14px; border-radius: 4px; }
.side-foot { margin-top: auto; display: flex; align-items: center; gap: 10px; padding: 14px 8px 2px; border-top: 1px solid rgba(255,255,255,.07); }
.side-foot b { color: #fff; font-size: 12.5px; display: block; font-weight: 600; }
.side-foot small { font-size: 11px; color: #8b9098; }

/* ---------- hlavní plocha ---------- */
.wk-main { display: flex; flex-direction: column; min-width: 0; min-height: 0; background: #fff; }
.wk-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 16px; flex-wrap: wrap; padding: 20px 28px 14px; border-bottom: 1px solid #eef0f2; }
.wk-title { display: flex; align-items: center; gap: 12px; min-width: 0; }
.wk-title h1 { margin: 0; font-size: 21px; font-weight: 600; letter-spacing: -.01em; }
.wk-title small { font-size: 12px; color: var(--gray); }
.wk-tools { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.seg { display: inline-flex; background: #f2f3f5; border-radius: 9px; padding: 3px; }
.seg button { display: inline-flex; align-items: center; gap: 6px; background: none; color: #5b6270; border-radius: 7px; padding: 5px 11px; font-size: 12px; font-weight: 600; }
.seg button:hover { background: rgba(255,255,255,.6); color: var(--ink); }
.seg button.on { background: #fff; color: var(--ink); box-shadow: 0 1px 3px rgba(0,0,0,.08); }
.wk-search { display: inline-flex; align-items: center; gap: 7px; height: 32px; padding: 0 10px; border: 1px solid #e3e5e8; border-radius: 9px; color: var(--gray); }
.wk-search:focus-within { border-color: var(--orange); }
.wk-search input { border: 0 !important; box-shadow: none !important; padding: 0 !important; width: 150px; font-size: 12.5px; background: transparent; }
.tbtn { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #3a4250; border: 1px solid #e2e4e8; border-radius: 8px; padding: 6px 11px; font-size: 12px; font-weight: 600; cursor: pointer; }
.tbtn:hover { border-color: #c9cdd3; background: #fafafb; }
.tbtn.on { background: var(--ink); border-color: var(--ink); color: #fff; }
.tbtn.accent { background: var(--orange-soft); border-color: transparent; color: var(--orange-dark); }
.tbtn.accent:hover { background: #fbe6cc; }
.wk-scroll { flex: 1; overflow-y: auto; padding: 14px 28px 80px; min-height: 0; }

/* ---------- rychlé zadání („jako v Poznámkách") ---------- */
.qa { position: relative; margin-bottom: 18px; }
.qa-line { display: flex; align-items: center; gap: 12px; padding: 11px 14px; border: 1px solid #e3e5e8; border-radius: 11px; background: #fff; transition: border-color .12s, box-shadow .12s; }
.qa-line:focus-within { border-color: var(--orange); box-shadow: 0 0 0 3px color-mix(in srgb, var(--orange) 14%, transparent); }
.qa-ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px dashed #c3c7ce; flex-shrink: 0; }
#qa { flex: 1; border: 0 !important; box-shadow: none !important; padding: 0 !important; font-size: 14.5px; background: transparent; min-width: 0; }
.qa-sug { position: absolute; top: 52px; left: 40px; width: 340px; max-width: calc(100% - 40px); background: #fff; border-radius: 11px; box-shadow: 0 14px 40px rgba(0,0,0,.14), 0 0 0 1px rgba(0,0,0,.06); z-index: 30; padding: 5px; }
.qa-sug[hidden] { display: none; }
.sg { display: flex; align-items: center; gap: 9px; width: 100%; background: none; color: var(--ink); border-radius: 7px; padding: 7px 9px; font-size: 13px; font-weight: 400; text-align: left; cursor: pointer; }
.sg b { font-weight: 500; }
.sg small { margin-left: auto; color: var(--gray); font-size: 11px; }
.sg.on, .sg:hover { background: #f3f4f6; }
.sg-h { padding: 6px 9px 3px; font-size: 10.5px; color: #a0a5ad; border-top: 1px solid #f1f2f4; margin-top: 3px; }
.sdot { width: 8px; height: 8px; border-radius: 2px; display: inline-block; flex-shrink: 0; }
.qa-meta { display: flex; align-items: center; flex-wrap: wrap; gap: 6px; padding: 8px 2px 0 44px; font-size: 12px; min-height: 0; }
.qa-meta:empty { display: none; }
.qa-prev { margin-right: 4px; color: var(--ink); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.qa-prev b { font-weight: 600; } .qa-prev i { color: var(--gray); }
.qa-chip { display: inline-flex; align-items: center; gap: 5px; background: #f3f4f6; border-radius: 6px; padding: 3px 8px; color: #3f4652; font-size: 11.5px; }
.qa-chip.ghost { color: var(--gray); background: #f7f8f9; }
.qa-chip .prio { background: none; padding: 0; }
.qa-enter { margin-left: auto; font-size: 11px; color: #a0a5ad; }
.qa-hint { color: #8e939b; font-size: 11.5px; line-height: 1.8; }
kbd { font: 600 10.5px/1 ui-monospace, SFMono-Regular, Menlo, monospace; background: #f3f4f6; border: 1px solid #e1e3e7; border-bottom-width: 2px; border-radius: 4px; padding: 2px 5px; color: #4b5563; }

/* ---------- seznam ---------- */
.grp { margin-bottom: 20px; }
.grp-h { display: flex; align-items: center; gap: 6px; background: none; color: var(--ink); padding: 6px 4px; font-size: 13.5px; font-weight: 600; cursor: pointer; border-radius: 6px; }
.grp-h:hover { background: #f6f7f8; }
.grp-h em { font-style: normal; font-weight: 500; color: #a0a5ad; font-size: 12px; margin-left: 2px; }
.grp-cv { display: inline-flex; color: #9aa0a8; transition: transform .15s; }
.grp-cv.col { transform: rotate(-90deg); }
.grp.danger .grp-h { color: #c02626; }
.grp.muted .grp-h { color: var(--gray); }
.grp-b { border-top: 1px solid #eef0f2; }
.tr { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 6px 10px 6px 8px; border-bottom: 1px solid #f0f1f3; cursor: pointer; position: relative; }
.tr:hover { background: #f8f9fa; }
.tr.sel { background: #fff7ec; box-shadow: inset 3px 0 0 var(--orange); }
.tr.fresh { animation: fresh 1.6s ease-out; }
@keyframes fresh { from { background: #fdefd9; } to { background: transparent; } }
.ck { width: 18px; height: 18px; border-radius: 50%; border: 1.5px solid #b9bec6; background: #fff; color: transparent; padding: 0; display: inline-flex; align-items: center; justify-content: center; flex-shrink: 0; cursor: pointer; transition: all .12s; }
.ck:hover { border-color: #1aa053; color: #1aa053; background: #fff; }
.ck.on { background: #1aa053; border-color: #1aa053; color: #fff; }
.ck.sm { width: 16px; height: 16px; }
.tt { flex: 1; min-width: 0; display: flex; align-items: center; gap: 9px; }
.tt-t { font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; min-width: 0; }
.tt-i { display: inline-flex; align-items: center; gap: 3px; color: #a0a5ad; font-size: 11.5px; flex-shrink: 0; }
.tr.done .tt-t { color: #9aa0a8; text-decoration: line-through; text-decoration-color: #c3c7ce; }
.tm { display: flex; align-items: center; gap: 8px; flex-shrink: 0; }
.due { font-size: 12px; color: #6b7280; font-weight: 500; white-space: nowrap; }
.due.soon { color: #3a4250; }
.due.today { color: #c56a0a; font-weight: 600; }
.due.over { color: #c02626; font-weight: 600; }
.prio { --pc: #2a78d6; display: inline-flex; align-items: center; gap: 4px; color: var(--pc); font-size: 11px; font-weight: 700; }
.lchip { --lc: #8a8f96; display: inline-flex; align-items: center; gap: 4px; font-size: 11px; font-weight: 600; color: color-mix(in srgb, var(--lc) 75%, #1c1e22); background: color-mix(in srgb, var(--lc) 12%, #fff); padding: 2px 8px; border-radius: 6px; white-space: nowrap; }
.lchip i { width: 6px; height: 6px; border-radius: 50%; background: var(--lc); }
.ppill { display: inline-flex; align-items: center; gap: 5px; font-size: 11.5px; color: #555c66; background: #f3f4f6; border-radius: 6px; padding: 2px 8px; max-width: 170px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ppill i { width: 7px; height: 7px; border-radius: 2px; flex-shrink: 0; }
.av { display: inline-flex; align-items: center; justify-content: center; border-radius: 50%; color: #fff; font-weight: 600; flex-shrink: 0; letter-spacing: .02em; }
.av-empty { background: transparent; border: 1.5px dashed #c3c7ce; color: #b0b5bd; }
.wk-empty { display: flex; flex-direction: column; align-items: center; gap: 8px; padding: 70px 20px; color: var(--gray); text-align: center; }
.wk-empty svg { color: var(--orange); margin-bottom: 4px; }
.wk-empty b { color: var(--ink); font-size: 15px; font-weight: 600; }
.wk-loading { display: flex; justify-content: center; padding: 80px 0; }

/* ---------- nástěnka ---------- */
.board { display: grid; grid-template-columns: repeat(3, minmax(240px, 1fr)); gap: 14px; align-items: start; }
.col { background: #f4f5f7; border-radius: 12px; padding: 10px; min-height: 180px; transition: outline-color .1s; outline: 2px dashed transparent; outline-offset: -2px; }
.col.over { outline-color: var(--orange); background: #fdf6ec; }
.col-h { display: flex; justify-content: space-between; align-items: center; padding: 2px 4px 10px; }
.col-h b { font-size: 12.5px; font-weight: 600; }
.col-h em { font-style: normal; font-size: 12px; color: #9aa0a8; }
.card { background: #fff; border-radius: 10px; padding: 10px 12px; border: 1px solid #e6e8eb; margin-bottom: 8px; cursor: grab; box-shadow: 0 1px 2px rgba(0,0,0,.03); transition: box-shadow .12s, border-color .12s; }
.card:hover { box-shadow: 0 4px 14px rgba(0,0,0,.07); }
.card.sel { border-color: var(--orange); }
.card.done { opacity: .6; } .card.done .card-t span { text-decoration: line-through; }
.card-t { display: flex; align-items: flex-start; gap: 9px; }
.card-t span { font-size: 13px; font-weight: 500; line-height: 1.35; }
.card-t .ck { margin-top: 1px; }
.card-l { display: flex; flex-wrap: wrap; gap: 4px; margin: 7px 0 0 25px; }
.card-m { display: flex; align-items: center; gap: 8px; margin-top: 9px; padding-left: 25px; }
.card-m .sp { flex: 1; }
.col-add { display: block; width: 100%; background: none; color: #8a8f96; text-align: left; padding: 7px 6px; border-radius: 7px; font-size: 12.5px; font-weight: 500; cursor: pointer; }
.col-add:hover { background: rgba(0,0,0,.04); color: var(--ink); }

/* ---------- detail ---------- */
.wk-detail { border-left: 1px solid #e8e9ec; background: #fff; display: flex; flex-direction: column; min-width: 0; min-height: 0; }
.wk-detail[hidden] { display: none; }
.dt-top { display: flex; align-items: center; gap: 8px; padding: 12px 16px; border-bottom: 1px solid #eef0f2; }
.dt-top .sp { flex: 1; }
.dt-done { display: inline-flex; align-items: center; gap: 6px; background: #fff; color: #3a4250; border: 1px solid #d7dae0; border-radius: 8px; padding: 6px 12px; font-size: 12.5px; font-weight: 600; cursor: pointer; }
.dt-done:hover { border-color: #1aa053; color: #16824a; background: #fff; }
.dt-done.on { background: #e8f6ee; border-color: #1aa053; color: #16824a; }
.ibtn { display: inline-flex; align-items: center; justify-content: center; width: 32px; height: 32px; background: none; color: #8a8f96; border-radius: 8px; padding: 0; cursor: pointer; }
.ibtn:hover { background: #f3f4f6; color: var(--ink); }
.ibtn.sm { width: 24px; height: 24px; }
.dt-body { flex: 1; overflow-y: auto; padding: 16px 22px 50px; }
.dt-title { width: 100%; border: 1px solid transparent !important; box-shadow: none !important; resize: none; overflow: hidden; font-size: 20px; font-weight: 600; line-height: 1.3; padding: 4px 8px; margin: 0 -8px; border-radius: 8px; min-height: 0; background: transparent; }
.dt-title:hover { background: #f6f7f8; }
.dt-title:focus { background: #fff; border-color: var(--orange) !important; }
.dt-code { font-size: 11.5px; color: #9aa0a8; margin: 4px 0 18px; }
.dt-fields { display: grid; grid-template-columns: 84px minmax(0, 1fr); gap: 10px 12px; align-items: center; }
.dt-fields > label { font-size: 12px; color: #8a8f96; font-weight: 500; }
.fv { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; min-width: 0; }
.fv select, .fv input[type=date] { height: 32px; padding: 4px 8px; font-size: 13px; border-radius: 8px; max-width: 100%; }
.fv select { flex: 1; min-width: 0; }
button.lnk, label.lnk { background: none; color: var(--orange-dark); padding: 0; font-size: 12px; font-weight: 600; cursor: pointer; }
button.lnk:hover { text-decoration: underline; background: none; }
.pb { --pc: #2a78d6; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #6b7280; border: 1px solid #e2e4e8; border-radius: 7px; padding: 4px 9px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.pb:hover { border-color: var(--pc); color: var(--pc); background: #fff; }
.pb.on { background: color-mix(in srgb, var(--pc) 12%, #fff); border-color: var(--pc); color: var(--pc); }
.lp { --lc: #8a8f96; display: inline-flex; align-items: center; gap: 4px; background: #fff; color: #6b7280; border: 1px solid #e2e4e8; border-radius: 7px; padding: 3px 8px; font-size: 11.5px; font-weight: 600; cursor: pointer; }
.lp i { width: 6px; height: 6px; border-radius: 50%; background: var(--lc); }
.lp:hover { border-color: var(--lc); background: #fff; color: var(--ink); }
.lp.lp-new { border-style: dashed; color: #8a8f96; }
.lp.lp-new:hover { border-color: var(--orange, #f18c15); color: var(--ink); }
.lp.on { background: color-mix(in srgb, var(--lc) 13%, #fff); border-color: color-mix(in srgb, var(--lc) 45%, #fff); color: color-mix(in srgb, var(--lc) 75%, #1c1e22); }
.dt-sec { margin-top: 24px; }
.dt-sec h5 { display: flex; align-items: center; gap: 6px; margin: 0 0 10px; font-size: 11px; font-weight: 700; letter-spacing: .06em; text-transform: uppercase; color: #8a8f96; }
.dt-sec h5 em { font-style: normal; color: #a0a5ad; font-weight: 600; letter-spacing: 0; }
.dt-desc { width: 100%; min-height: 96px; border: 1px solid transparent !important; box-shadow: none !important; background: #f7f8f9; border-radius: 10px; padding: 10px 12px; font-size: 13.5px; line-height: 1.55; resize: none; overflow: hidden; }
.dt-desc:focus { background: #fff; border-color: var(--orange) !important; }
.subs { border-top: 1px solid #f0f1f3; }
.sb { display: flex; align-items: center; gap: 10px; padding: 7px 2px; border-bottom: 1px solid #f0f1f3; font-size: 13px; }
.sb span { flex: 1; min-width: 0; }
.sb.done span { color: #9aa0a8; text-decoration: line-through; }
.sb .ibtn { opacity: 0; } .sb:hover .ibtn { opacity: 1; }
.sub-add { width: 100%; border: 0 !important; box-shadow: none !important; background: transparent; padding: 9px 2px !important; font-size: 13px; color: var(--ink); }
.atts { display: flex; flex-wrap: wrap; gap: 8px; margin-bottom: 10px; }
.att { position: relative; }
.att.img { width: 92px; height: 92px; border-radius: 10px; overflow: hidden; border: 1px solid #e6e8eb; cursor: zoom-in; background: #f4f5f7; }
.att.img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.att .ph { display: flex; align-items: center; justify-content: center; height: 100%; color: #b0b5bd; }
.lnk-a { flex: 1 1 100%; display: flex; align-items: center; gap: 10px; padding: 8px 36px 8px 11px; border: 1px solid #e6e8eb; border-radius: 10px; color: var(--ink); text-decoration: none; min-width: 0; }
.lnk-a:hover { border-color: #c9cdd3; background: #fafafb; }
.lnk-a svg { color: #8a8f96; flex-shrink: 0; }
.lnk-a span { min-width: 0; }
.lnk-a b { display: block; font-size: 12.5px; font-weight: 600; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.lnk-a small { font-size: 11px; color: var(--gray); }
.att-x { position: absolute; top: 5px; right: 5px; width: 22px; height: 22px; border-radius: 6px; background: rgba(23,25,28,.72); color: #fff; padding: 0; display: inline-flex; align-items: center; justify-content: center; opacity: 0; cursor: pointer; }
.lnk-a .att-x { top: 50%; transform: translateY(-50%) !important; background: #f1f2f4; color: #6b7280; }
.att:hover .att-x { opacity: 1; }
.drop-z { display: flex; align-items: center; justify-content: center; gap: 10px; border: 1.5px dashed #d5d8de; border-radius: 10px; padding: 14px; color: #8a8f96; font-size: 12.5px; transition: all .12s; }
.drop-z.over { border-color: var(--orange); background: var(--orange-soft); color: var(--orange-dark); }
.link-add { display: flex; gap: 8px; margin-top: 8px; }
.link-add input { flex: 1; min-width: 0; height: 34px; font-size: 12.5px; }
.dt-sec.ai { background: linear-gradient(180deg, #faf8ff, #fff); border: 1px solid #ebe5fb; border-radius: 12px; padding: 14px; }
.dt-sec.ai h5 { color: #6a4fd0; }
.demo-tag { font-size: 9.5px; letter-spacing: .04em; background: #efeafd; color: #7a62d6; padding: 1px 6px; border-radius: 99px; }
.ai-acts { display: flex; gap: 8px; flex-wrap: wrap; }
.ai-note { font-size: 12px; color: #8a8f96; margin: 10px 0 0; line-height: 1.5; }
.ai-res { margin-top: 12px; font-size: 13px; line-height: 1.5; }
.ai-res p { margin: 0 0 8px; }
.ai-est { display: inline-flex; align-items: center; gap: 6px; background: #fff; border: 1px solid #ebe5fb; border-radius: 8px; padding: 4px 10px; font-size: 12.5px; margin-bottom: 8px; }
.ai-res ul { margin: 4px 0 12px; padding-left: 18px; }
.ai-res li { margin: 3px 0; }
.ai-res li.have { color: #9aa0a8; text-decoration: line-through; }
.ai-ok { font-size: 12.5px; color: #16824a; font-weight: 600; }
.ai-load { display: flex; align-items: center; gap: 8px; color: #8a8f96; font-size: 12.5px; margin-top: 12px; }
.ai-load .spinner { width: 16px; height: 16px; border-width: 2px; }

/* ---------- modaly ---------- */
.modal-bg { position: fixed; inset: 0; background: rgba(15,16,18,.45); backdrop-filter: blur(3px); display: flex; align-items: center; justify-content: center; z-index: 60; padding: 20px; }
.modal { background: #fff; border-radius: 16px; width: 640px; max-width: 100%; max-height: 88vh; display: flex; flex-direction: column; box-shadow: 0 30px 80px rgba(0,0,0,.35); }
.m-head { display: flex; align-items: flex-start; gap: 12px; padding: 18px 20px; border-bottom: 1px solid #eef0f2; }
.m-head > svg { color: var(--orange); margin-top: 2px; flex-shrink: 0; }
.m-head > div { flex: 1; }
.m-head b { font-size: 15px; display: block; font-weight: 600; }
.m-head small { font-size: 12px; color: var(--gray); }
.m-body { padding: 16px 20px; overflow-y: auto; flex: 1; }
#nt-text { width: 100%; font-size: 13.5px; line-height: 1.55; border-radius: 10px; min-height: 150px; }
.nt-row { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin: 10px 0 14px; flex-wrap: wrap; }
.nt-list { display: flex; flex-direction: column; gap: 6px; }
.nt-it { display: flex; align-items: center; gap: 10px; padding: 6px 10px; border: 1px solid #eceef1; border-radius: 9px; }
.nt-it.off { opacity: .45; }
.nt-it input { flex: 1; min-width: 0; border: 0 !important; box-shadow: none !important; padding: 4px 2px !important; font-size: 13px; background: transparent; }
.nt-meta { display: flex; align-items: center; gap: 6px; flex-shrink: 0; }
.m-foot { display: flex; justify-content: flex-end; gap: 8px; padding: 14px 20px; border-top: 1px solid #eef0f2; }
.lightbox { position: fixed; inset: 0; background: rgba(0,0,0,.86); display: flex; align-items: center; justify-content: center; z-index: 70; cursor: zoom-out; }
.lightbox img { max-width: 92vw; max-height: 88vh; border-radius: 8px; box-shadow: 0 20px 60px rgba(0,0,0,.5); }
.lb-x { position: absolute; top: 16px; right: 16px; color: #fff; }
.lb-x:hover { background: rgba(255,255,255,.12); color: #fff; }

/* ---------- stránka bez přihlášení ---------- */
.wk-empty-page { flex: 1; display: flex; align-items: center; justify-content: center; padding: 24px; }
.wk-empty-card { text-align: center; max-width: 360px; color: var(--gray); }
.wk-empty-card svg { color: var(--orange); }
.wk-empty-card h2 { color: var(--ink); font-size: 20px; margin: 12px 0 6px; }
.btn { display: inline-block; margin-top: 14px; background: var(--orange); color: #fff; text-decoration: none; padding: 10px 20px; border-radius: 10px; font-weight: 600; }
.btn:hover { background: var(--orange-dark); }
.wk-body #msg { position: fixed; bottom: 24px; left: 50%; transform: translateX(-50%); background: var(--ink); color: #fff; padding: 10px 16px; border-radius: 10px; font-size: 13px; z-index: 100; display: none; box-shadow: 0 10px 30px rgba(0,0,0,.25); max-width: calc(100vw - 32px); }

/* ---------- menší obrazovky ---------- */
@media (max-width: 1180px) {
  .wk-app.has-detail { grid-template-columns: 220px minmax(0, 1fr); }
  .wk-app { grid-template-columns: 220px minmax(0, 1fr); }
  .wk-detail { position: fixed; top: 0; right: 0; bottom: 0; width: min(460px, 100%); z-index: 40; box-shadow: -20px 0 50px rgba(0,0,0,.16); }
}
@media (max-width: 760px) {
  .wk-app, .wk-app.has-detail { grid-template-columns: minmax(0, 1fr); }
  .wk-side { display: none; }
  .wk-head { padding: 16px 16px 12px; }
  .wk-scroll { padding: 12px 16px 80px; }
  .wk-search input { width: 100px; }
  .tm .ppill, .tm .lchip { display: none; }
  .board { grid-template-columns: minmax(0, 1fr); }
  .qa-meta { padding-left: 2px; }
  .dt-fields { grid-template-columns: 1fr; }
}

/* přepínač pohledů jen na mobilu (levý panel je skrytý) */
.wk-mnav { display: none; }
@media (max-width: 760px) {
  .wk-mnav { display: block; margin: 12px 16px 0; height: 38px; font-size: 14px; font-weight: 600; border-radius: 10px; background: #f3f4f6; border-color: transparent; }
}
