/* ────────────────────────────────────────────────────────────────────────────
   team.css — klepet, delovni čas in naloge.
   ──────────────────────────────────────────────────────────────────────────── */
.gap12 { gap: 12px; } .mt12 { margin-top: 12px; }
.ic.xs { width: 13px; height: 13px; vertical-align: -2px; }
.badge.hidden { display: none; }
.navlist .badge, .more-list .badge { margin-left: auto; }
.more-list .badge + svg { margin-left: 6px; }
.topchat { position: relative; }

/* Celozaslonski pogled (klepet): brez odmikov in brez drsnika glavnega dela. */
.main.full { padding: 0; overflow: hidden; display: flex; }
.main.full > .inner { max-width: none; width: 100%; height: 100%; margin: 0; display: flex; }

/* ══════════ KLEPET ══════════ */
.chat { display: grid; grid-template-columns: 360px minmax(0, 1fr); width: 100%; height: 100%; min-height: 0; background: var(--bg2); }
.ch-side { display: flex; flex-direction: column; min-height: 0; border-right: 1px solid var(--line); background: var(--bg2); }
.ch-side-head { display: flex; align-items: center; gap: 8px; padding: 12px 12px 8px; }
.ch-me { border: 0; padding: 0; background: none; cursor: pointer; border-radius: 50%; flex: none; }
.ch-search { position: relative; flex: 1 1 auto; min-width: 0; }
.ch-search svg { position: absolute; left: 11px; top: 50%; transform: translateY(-50%); width: 16px; height: 16px; color: var(--mut); pointer-events: none; }
.ch-search input { padding-left: 34px; min-height: 40px; border-radius: 999px; background: var(--card2); border-color: transparent; }
.ch-filters { display: flex; gap: 6px; padding: 0 12px 10px; overflow-x: auto; scrollbar-width: none; }
.ch-filters::-webkit-scrollbar { display: none; }
.ch-filters button {
  border: 1px solid var(--line2); background: var(--card); color: var(--ink2); border-radius: 999px;
  padding: 5px 12px; font: inherit; font-size: 13px; font-weight: 600; cursor: pointer; white-space: nowrap;
}
.ch-filters button.on { background: var(--brand-soft); border-color: transparent; color: var(--brand); }
.ch-filters button span { font-size: 11px; background: var(--brand); color: #fff; border-radius: 999px; padding: 0 6px; margin-left: 2px; }
.ch-list { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 0 6px 10px; }
.ch-sec { font-size: 11px; text-transform: uppercase; letter-spacing: .06em; color: var(--mut); font-weight: 700; padding: 12px 10px 4px; }
.ch-row {
  display: flex; align-items: center; gap: 11px; width: 100%; padding: 9px 10px; border: 0; border-radius: 12px;
  background: transparent; color: var(--ink); font: inherit; text-align: left; cursor: pointer; position: relative;
  -webkit-tap-highlight-color: transparent;
}
.ch-row:hover { background: var(--card2); }
.ch-row.on { background: var(--brand-soft); }
.ch-row-main { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.ch-row-top, .ch-row-bot { display: flex; align-items: center; gap: 6px; min-width: 0; }
.ch-row-top b { flex: 1 1 auto; font-size: 15px; font-weight: 600; }
.ch-row-top small { color: var(--mut); font-size: 12px; flex: none; }
.ch-row-bot { color: var(--mut); font-size: 13.5px; }
.ch-row-bot > span { flex: 1 1 auto; }
.ch-row-bot i { color: var(--mut); display: inline-flex; }
.ch-row.unread .ch-row-top b { font-weight: 800; }
.ch-row.unread .ch-row-top small { color: var(--brand); font-weight: 700; }
.ch-row.unread .ch-row-bot > span { color: var(--ink2); }
.ch-badge { min-width: 20px; height: 20px; border-radius: 10px; background: var(--brand); color: #fff; font-style: normal; font-size: 11.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; padding: 0 6px; flex: none; }
.ch-badge:empty { min-width: 12px; width: 12px; height: 12px; padding: 0; }
.ch-badge.mut { background: var(--mut); }
.ch-at { font-style: normal; font-weight: 800; color: #fff; background: var(--brand); border-radius: 50%; width: 20px; height: 20px; display: inline-flex; align-items: center; justify-content: center; font-size: 12px; flex: none; }
.ch-row-more { opacity: 0; display: inline-flex; padding: 4px; border-radius: 8px; color: var(--mut); flex: none; }
.ch-row:hover .ch-row-more { opacity: 1; }
.ch-row-more:hover { background: var(--line); }
.ch-row-more svg { width: 18px; height: 18px; }
@media (pointer: coarse) { .ch-row-more { display: none; } }
.ch-row.hit .ch-hit { white-space: normal; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-row mark { background: var(--warn-soft); color: inherit; border-radius: 3px; }

.ch-av { border-radius: 50%; flex: none; display: inline-flex; align-items: center; justify-content: center; color: #fff; font-weight: 700; overflow: hidden; background: var(--brand); line-height: 1; }
.ch-av img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-av.grp svg { width: 50%; height: 50%; }

/* Pogovor */
.ch-conv { position: relative; display: flex; flex-direction: column; min-width: 0; min-height: 0; background: var(--bg); }
.ch-conv::before {
  content: ''; position: absolute; inset: 0; pointer-events: none; opacity: .5;
  background-image: radial-gradient(var(--line) 1px, transparent 1px); background-size: 18px 18px;
}
.ch-conv > * { position: relative; }
.ch-empty { margin: auto; text-align: center; color: var(--mut); padding: 30px; max-width: 360px; }
.ch-empty svg { width: 56px; height: 56px; color: var(--brand); opacity: .5; margin-bottom: 10px; }
.ch-empty h3 { color: var(--ink); margin: 0 0 6px; }
.ch-head {
  flex: none; display: flex; align-items: center; gap: 6px; padding: 8px 10px; min-height: 58px;
  background: var(--bg2); border-bottom: 1px solid var(--line); z-index: 2;
}
.ch-head-who { display: flex; align-items: center; gap: 10px; min-width: 0; border: 0; background: none; color: inherit; font: inherit; cursor: pointer; text-align: left; padding: 4px 6px; border-radius: 10px; }
.ch-head-who:hover { background: var(--card2); }
.ch-head-t { display: flex; flex-direction: column; min-width: 0; }
.ch-head-t b { font-size: 15.5px; }
.ch-head-t small { color: var(--mut); font-size: 12.5px; }
.ch-back { display: none; }
.ch-typing { color: var(--brand); font-weight: 600; }
.ch-typing i { display: inline-block; width: 4px; height: 4px; border-radius: 50%; background: currentColor; margin-left: 2px; animation: chdot 1.2s infinite; }
.ch-typing i:nth-child(2) { animation-delay: .2s; } .ch-typing i:nth-child(3) { animation-delay: .4s; }
@keyframes chdot { 0%, 60%, 100% { opacity: .2; } 30% { opacity: 1; } }

.ch-scroll { flex: 1 1 auto; overflow-y: auto; min-height: 0; padding: 10px 14px 6px; overscroll-behavior: contain; }
.ch-older { text-align: center; padding: 6px 0 10px; min-height: 24px; }
.ch-msgs { display: flex; flex-direction: column; max-width: 860px; margin: 0 auto; }
.ch-hello { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 40px 10px; text-align: center; }
.ch-day { text-align: center; margin: 12px 0 8px; }
.ch-day span { display: inline-block; background: var(--bg2); border: 1px solid var(--line); color: var(--ink2); border-radius: 8px; padding: 3px 10px; font-size: 12px; font-weight: 600; box-shadow: 0 1px 2px rgba(0,0,0,.04); }
.ch-unread-line { text-align: center; margin: 8px 0; border-top: 1px solid var(--brand-soft); position: relative; }
.ch-unread-line span { position: relative; top: -10px; background: var(--brand); color: #fff; font-size: 11.5px; font-weight: 700; padding: 2px 10px; border-radius: 999px; }
.ch-sys { text-align: center; color: var(--mut); font-size: 12.5px; margin: 6px auto; max-width: 80%; background: var(--card2); padding: 4px 12px; border-radius: 10px; width: fit-content; }
.ch-item { display: flex; flex-direction: column; }
.ch-item.gs { margin-top: 6px; }
.ch-item.flash .ch-bub { animation: chflash 1.4s; }
@keyframes chflash { 0%, 60% { box-shadow: 0 0 0 3px var(--yellow); } 100% { box-shadow: none; } }
.ch-line { display: flex; align-items: flex-end; gap: 6px; margin: 1px 0; max-width: 100%; }
.ch-item.own .ch-line { flex-direction: row-reverse; }
.ch-line.swipe-ok .ch-bub { box-shadow: -6px 0 0 var(--brand-soft); }
.ch-av-slot { width: 30px; flex: none; }
.ch-bwrap { display: flex; flex-direction: column; max-width: min(76%, 560px); min-width: 0; }
.ch-item.own .ch-bwrap { align-items: flex-end; }
.ch-bub {
  position: relative; background: var(--card); color: var(--ink); border-radius: 16px; padding: 7px 10px 6px;
  box-shadow: 0 1px 1.5px rgba(18, 18, 35, .08); min-width: 64px; max-width: 100%; overflow-wrap: anywhere;
}
.ch-item.other.ge .ch-bub { border-bottom-left-radius: 5px; }
.ch-item.own .ch-bub { background: linear-gradient(135deg, #0aa3e6, var(--brand)); color: #fff; }
.ch-item.own.ge .ch-bub { border-bottom-right-radius: 5px; }
html[data-theme='dark'] .ch-item.own .ch-bub { background: linear-gradient(135deg, #1590c7, #0a78ad); }
.ch-item.pending .ch-bub { opacity: .78; border: 1.5px dashed rgba(255,255,255,.6); }
.ch-from { font-size: 12.5px; font-weight: 700; margin-bottom: 2px; }
.ch-text { white-space: pre-wrap; font-size: 15px; line-height: 1.4; }
.ch-text.big { font-size: 38px; line-height: 1.15; }
.ch-text a { color: inherit; text-decoration: underline; }
.ch-item.other .ch-text a { color: var(--brand); }
.ch-ment { font-weight: 700; color: var(--brand); }
.ch-ment.own { color: #fff; background: rgba(255,255,255,.2); border-radius: 4px; padding: 0 2px; }
.ch-meta { float: right; display: inline-flex; align-items: center; gap: 4px; margin: 6px 0 -3px 10px; font-size: 11px; opacity: .72; white-space: nowrap; }
.ch-meta em { font-style: italic; }
.ch-tick { display: inline-flex; }
.ch-tick.all { color: #b8f0ff; opacity: 1; }
.ch-item.other .ch-tick.all { color: var(--brand); }
.ch-bub.media { padding: 3px; }
.ch-bub.media .ch-meta { position: absolute; right: 8px; bottom: 7px; margin: 0; background: rgba(0,0,0,.45); color: #fff; padding: 1px 6px; border-radius: 8px; opacity: 1; }
.ch-photo { display: block; padding: 0; border: 0; background: var(--card2); border-radius: 13px; overflow: hidden; cursor: zoom-in; max-width: 100%; }
.ch-photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.ch-video { display: block; width: 300px; max-width: 100%; border-radius: 13px; background: #000; max-height: 420px; }
.ch-bub:not(.media) .ch-photo, .ch-bub:not(.media) .ch-video { margin: 2px -6px 6px; max-width: calc(100% + 12px); }
.ch-quote {
  border-left: 3px solid var(--brand); background: rgba(0, 153, 222, .08); border-radius: 8px; padding: 5px 8px; margin-bottom: 5px;
  cursor: pointer; display: flex; flex-direction: column; font-size: 13px; max-width: 100%;
}
.ch-item.own .ch-quote { border-left-color: #fff; background: rgba(255,255,255,.18); }
.ch-quote b { font-size: 12.5px; }
.ch-quote span { opacity: .85; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-doc { display: flex; align-items: center; gap: 10px; padding: 8px 10px; border-radius: 10px; background: rgba(0,0,0,.05); color: inherit; min-width: 220px; text-decoration: none; margin-bottom: 4px; }
.ch-item.own .ch-doc { background: rgba(255,255,255,.18); }
.ch-doc > svg { width: 26px; height: 26px; flex: none; }
.ch-doc span { flex: 1 1 auto; min-width: 0; display: flex; flex-direction: column; }
.ch-doc b { font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-doc small { opacity: .75; font-size: 12px; }
.ch-client { display: flex; align-items: center; gap: 10px; border: 0; border-radius: 10px; padding: 9px 10px; background: rgba(0,0,0,.05); color: inherit; font: inherit; text-align: left; cursor: pointer; min-width: 230px; margin-bottom: 4px; }
.ch-item.own .ch-client { background: rgba(255,255,255,.18); }
.ch-client > svg:first-child { width: 28px; height: 28px; padding: 5px; border-radius: 50%; background: var(--brand-soft); color: var(--brand); flex: none; }
.ch-item.own .ch-client > svg:first-child { background: rgba(255,255,255,.25); color: #fff; }
.ch-client span { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.ch-client small { opacity: .75; font-size: 11.5px; text-transform: uppercase; letter-spacing: .04em; font-weight: 700; }
.ch-client em { font-style: normal; opacity: .8; font-size: 12.5px; }
.ch-lpc { display: flex; gap: 8px; border-radius: 10px; overflow: hidden; background: rgba(0,0,0,.05); color: inherit; text-decoration: none; margin-bottom: 5px; max-width: 360px; }
.ch-item.own .ch-lpc { background: rgba(255,255,255,.16); }
.ch-lpc img { width: 76px; height: 76px; object-fit: cover; flex: none; }
.ch-lpc.wide { flex-direction: column; }
.ch-lpc.wide img { width: 100%; height: auto; aspect-ratio: 16/9; }
.ch-lpc span { display: flex; flex-direction: column; gap: 2px; padding: 7px 9px; min-width: 0; }
.ch-lpc b { font-size: 13.5px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-lpc small { font-size: 12px; opacity: .8; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.ch-lpc em { font-style: normal; font-size: 11.5px; opacity: .7; }
.ch-voice { display: flex; align-items: center; gap: 8px; min-width: 230px; padding: 2px 0; }
.ch-vplay { width: 38px; height: 38px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; }
.ch-item.own .ch-vplay { background: #fff; color: var(--brand); }
.ch-vplay svg { width: 17px; height: 17px; fill: currentColor; }
.ch-wave { flex: 1 1 auto; display: flex; align-items: center; gap: 2px; height: 30px; cursor: pointer; }
.ch-wave i { flex: 1 1 0; background: currentColor; opacity: .35; border-radius: 2px; min-height: 3px; }
.ch-wave i.on { opacity: 1; }
.ch-vtime { font-size: 12px; opacity: .8; min-width: 32px; font-variant-numeric: tabular-nums; }
.ch-vspeed { border: 0; background: rgba(0,0,0,.08); color: inherit; border-radius: 8px; font: inherit; font-size: 11.5px; font-weight: 700; padding: 2px 6px; cursor: pointer; }
.ch-item.own .ch-vspeed { background: rgba(255,255,255,.22); }
.ch-poll { min-width: 240px; display: flex; flex-direction: column; gap: 6px; padding-bottom: 2px; }
.ch-poll-q { font-weight: 700; font-size: 15px; }
.ch-item.own .ch-poll .mut { color: rgba(255,255,255,.8); }
.ch-popt { position: relative; display: flex; align-items: center; gap: 8px; border: 1px solid rgba(0,0,0,.1); background: rgba(0,0,0,.03); color: inherit; border-radius: 10px; padding: 8px 10px; font: inherit; cursor: pointer; text-align: left; overflow: hidden; }
.ch-item.own .ch-popt { border-color: rgba(255,255,255,.35); background: rgba(255,255,255,.1); }
.ch-popt i { position: absolute; left: 0; top: 0; bottom: 0; background: var(--brand-soft); z-index: 0; transition: width .3s; }
.ch-item.own .ch-popt i { background: rgba(255,255,255,.22); }
.ch-popt > span, .ch-popt > b { position: relative; z-index: 1; }
.ch-plbl { flex: 1 1 auto; }
.ch-pchk { width: 20px; height: 20px; border-radius: 50%; border: 2px solid currentColor; display: inline-flex; align-items: center; justify-content: center; flex: none; opacity: .7; }
.ch-popt.on .ch-pchk { background: var(--brand); border-color: var(--brand); color: #fff; opacity: 1; }
.ch-item.own .ch-popt.on .ch-pchk { background: #fff; border-color: #fff; color: var(--brand); }
.ch-pwho { border: 0; background: none; color: inherit; font: inherit; font-size: 12.5px; text-decoration: underline; opacity: .8; cursor: pointer; text-align: left; padding: 0; }
.ch-reacts { display: flex; gap: 4px; flex-wrap: wrap; margin: -5px 6px 2px; position: relative; z-index: 1; }
.ch-reacts button { border: 1px solid var(--line2); background: var(--bg2); border-radius: 999px; padding: 1px 7px; font-size: 14px; cursor: pointer; display: inline-flex; align-items: center; gap: 3px; box-shadow: 0 1px 2px rgba(0,0,0,.08); }
.ch-reacts button b { font-size: 11.5px; color: var(--ink2); }
.ch-reacts button.mine { border-color: var(--brand); background: var(--brand-soft); }
.ch-schedinfo { font-size: 11.5px; color: var(--mut); margin-top: 3px; display: flex; align-items: center; gap: 4px; }
.ch-act { opacity: 0; border: 0; background: var(--bg2); color: var(--mut); width: 28px; height: 28px; border-radius: 50%; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; align-self: center; box-shadow: 0 1px 3px rgba(0,0,0,.12); }
.ch-act svg { width: 16px; height: 16px; }
.ch-line:hover .ch-act { opacity: 1; }
@media (pointer: coarse) { .ch-act { display: none; } }
.ch-down { position: absolute; right: 18px; bottom: 96px; width: 42px; height: 42px; border-radius: 50%; border: 1px solid var(--line2); background: var(--bg2); color: var(--ink2); display: flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: 0 4px 14px rgba(0,0,0,.15); z-index: 3; }
.ch-down.hidden { display: none; }
.ch-down svg { width: 19px; height: 19px; }
.ch-down em:not(:empty) { position: absolute; top: -6px; right: -4px; background: var(--brand); color: #fff; font-style: normal; font-size: 11px; font-weight: 700; border-radius: 9px; min-width: 18px; height: 18px; display: flex; align-items: center; justify-content: center; padding: 0 5px; }
.ch-drop { position: absolute; inset: 58px 0 0; z-index: 5; background: rgba(0, 153, 222, .12); border: 3px dashed var(--brand); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 8px; color: var(--brand); pointer-events: none; }
.ch-drop.hidden { display: none; }
.ch-drop svg { width: 40px; height: 40px; }

/* Vnos */
.ch-compose { flex: none; background: var(--bg2); border-top: 1px solid var(--line); padding: 8px 10px max(8px, var(--safe-bottom)); z-index: 2; }
.ch-compose .hidden { display: none !important; }
.ch-inrow { display: flex; align-items: flex-end; gap: 6px; max-width: 900px; margin: 0 auto; }
.ch-inrow > .btn { flex: none; height: 42px; }
.ch-inwrap { flex: 1 1 auto; position: relative; min-width: 0; }
textarea.ch-in { min-height: 42px; max-height: 150px; resize: none; border-radius: 21px; padding: 10px 40px 10px 14px; line-height: 1.35; overflow-y: auto; display: block; background: var(--card2); border-color: transparent; }
.ch-emo-btn { position: absolute; right: 6px; bottom: 6px; width: 30px; height: 30px; border: 0; background: none; color: var(--mut); border-radius: 50%; cursor: pointer; display: flex; align-items: center; justify-content: center; }
.ch-emo-btn svg { width: 20px; height: 20px; }
@media (pointer: coarse) { .ch-emo-btn { display: none; } textarea.ch-in { padding-right: 14px; } }
.ch-send { border-radius: 50% !important; width: 42px !important; }
.ch-send svg { width: 18px; height: 18px; }
.ch-ctx, .ch-lp { display: flex; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto 8px; padding: 7px 10px; background: var(--card2); border-left: 3px solid var(--brand); border-radius: 10px; }
.ch-ctx > svg { width: 18px; height: 18px; color: var(--brand); flex: none; }
.ch-ctx span, .ch-lp span { display: flex; flex-direction: column; min-width: 0; flex: 1 1 auto; }
.ch-ctx b { font-size: 13px; color: var(--brand); }
.ch-ctx small, .ch-lp small { color: var(--mut); font-size: 12.5px; }
.ch-lp img { width: 46px; height: 46px; object-fit: cover; border-radius: 6px; flex: none; }
.ch-lp b { font-size: 13.5px; }
.ch-pend { display: flex; gap: 8px; overflow-x: auto; max-width: 900px; margin: 0 auto 8px; padding-bottom: 2px; align-items: center; }
.ch-pi { position: relative; width: 74px; height: 74px; border-radius: 12px; overflow: hidden; background: var(--card2); border: 1px solid var(--line); flex: none; }
.ch-pi img { width: 100%; height: 100%; object-fit: cover; }
.ch-pi-ic { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; gap: 4px; padding: 6px; color: var(--ink2); }
.ch-pi-ic svg { width: 24px; height: 24px; }
.ch-pi-ic small { font-size: 10.5px; max-width: 100%; }
.ch-pi-prog { position: absolute; left: 6px; right: 6px; bottom: 6px; height: 5px; border-radius: 3px; background: rgba(0,0,0,.25); overflow: hidden; }
.ch-pi-prog i { display: block; height: 100%; background: var(--brand); transition: width .2s; }
.ch-pi.err { border-color: var(--bad); cursor: pointer; }
.ch-pi-err { position: absolute; inset: 0; background: rgba(214, 58, 82, .75); color: #fff; display: flex; flex-direction: column; align-items: center; justify-content: center; font-size: 11.5px; font-weight: 700; gap: 2px; }
.ch-pi-err svg { width: 18px; height: 18px; }
.ch-pi-x { position: absolute; top: 3px; right: 3px; width: 22px; height: 22px; border-radius: 50%; border: 0; background: rgba(0,0,0,.6); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; padding: 0; }
.ch-pi-x svg { width: 13px; height: 13px; }
.ch-pi-clear { border: 0; background: none; color: var(--mut); font: inherit; font-size: 12.5px; cursor: pointer; text-decoration: underline; flex: none; }
.ch-ment-pop { position: absolute; left: 50px; bottom: calc(100% - 2px); background: var(--bg2); border: 1px solid var(--line2); border-radius: 12px; box-shadow: 0 10px 28px rgba(10, 14, 24, .18); padding: 5px; min-width: 240px; z-index: 6; }
.ch-ment-pop button { display: flex; align-items: center; gap: 8px; width: 100%; padding: 7px 8px; border: 0; background: none; border-radius: 8px; color: var(--ink); font: inherit; font-size: 14px; cursor: pointer; text-align: left; }
.ch-ment-pop button.on, .ch-ment-pop button:hover { background: var(--brand-soft); }
.ch-recbar { display: flex; align-items: center; gap: 10px; max-width: 900px; margin: 0 auto; min-height: 42px; }
.ch-recdot { width: 11px; height: 11px; border-radius: 50%; background: var(--bad); animation: chrec 1s infinite; }
@keyframes chrec { 50% { opacity: .25; } }
.ch-recbar b { font-variant-numeric: tabular-nums; }

/* Lebdeči meni in spodnji list */
.ch-pop { position: fixed; z-index: 400; min-width: 220px; max-width: 300px; background: var(--bg2); border: 1px solid var(--line2); border-radius: 14px; box-shadow: 0 16px 40px rgba(10, 14, 24, .22); padding: 6px; animation: pop .12s ease-out; }
.ch-pop button, .ch-sheet .modal-body > button { display: flex; align-items: center; gap: 10px; width: 100%; padding: 9px 10px; border: 0; background: none; border-radius: 9px; color: var(--ink); font: inherit; font-size: 14.5px; cursor: pointer; text-align: left; }
.ch-pop button:hover, .ch-sheet .modal-body > button:active { background: var(--card2); }
.ch-pop button svg, .ch-sheet .modal-body > button svg { width: 18px; height: 18px; color: var(--mut); flex: none; }
.ch-pop button.danger, .ch-sheet button.danger { color: var(--bad); }
.ch-pop button.danger svg, .ch-sheet button.danger svg { color: var(--bad); }
.ch-pop-title { font-size: 11.5px; text-transform: uppercase; letter-spacing: .05em; color: var(--mut); font-weight: 700; padding: 6px 10px 4px; }
.ch-pop-react { display: flex; gap: 2px; padding: 2px 2px 6px; border-bottom: 1px solid var(--line); margin-bottom: 4px; justify-content: space-between; }
.ch-pop .ch-pop-react button, .ch-sheet .ch-pop-react button { width: 38px; height: 38px; padding: 0; justify-content: center; font-size: 22px; border-radius: 50%; }
.ch-pop-react button.on { background: var(--brand-soft) !important; }
.ch-pop-react svg { width: 18px; height: 18px; }
.ch-sheet { align-self: flex-end; }
.ch-sheet .modal-body { padding: 10px; }
.ch-emojis { display: grid; grid-template-columns: repeat(8, 1fr); gap: 2px; max-width: 320px; max-height: 260px; overflow-y: auto; }
.ch-emojis.inline { position: static; max-width: none; box-shadow: none; border: 0; padding: 0; animation: none; }
.ch-pop.ch-emojis button, .ch-emojis button { width: 36px; height: 36px; padding: 0; font-size: 21px; justify-content: center; border: 0; background: none; border-radius: 8px; cursor: pointer; }
.ch-emojis button:hover { background: var(--card2); }

/* Ljudje (izbirniki, info) */
.ch-people { display: flex; flex-direction: column; gap: 2px; max-height: 46vh; overflow-y: auto; }
.ch-person { display: flex; align-items: center; gap: 10px; padding: 7px 8px; border: 0; border-radius: 10px; background: none; color: var(--ink); font: inherit; text-align: left; cursor: pointer; width: 100%; }
.ch-person:hover { background: var(--card2); }
.ch-person.static { cursor: default; }
.ch-person.static:hover { background: none; }
.ch-person > span:not(.ch-av):not(.chip) { flex: 1 1 auto; display: flex; flex-direction: column; min-width: 0; }
.ch-person small { color: var(--mut); font-size: 12.5px; }
.ch-person.sel input { flex: none; }
.ch-emo-big { font-size: 22px; }
.ch-info-head { display: flex; gap: 14px; align-items: center; }
.ch-info-head h3 { margin: 0 0 2px; }
.ch-gifs { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 6px; max-height: 55vh; overflow-y: auto; }
.ch-gifs button { border: 0; padding: 0; border-radius: 8px; overflow: hidden; aspect-ratio: 1; background: var(--card2); cursor: pointer; }
.ch-gifs img { width: 100%; height: 100%; object-fit: cover; display: block; }

/* Pregledovalnik fotografij */
.ch-viewer { position: relative; width: 100vw; height: var(--vvh, 100dvh); background: rgba(5, 8, 14, .96); display: flex; align-items: center; justify-content: center; outline: none; }
.ch-viewer img { max-width: 94vw; max-height: calc(var(--vvh, 100dvh) - 90px); object-fit: contain; }
.ch-vbar { position: absolute; top: 0; left: 0; right: 0; display: flex; align-items: center; gap: 8px; padding: max(10px, var(--safe-top)) 12px 10px; color: #fff; font-size: 14px; }
.ch-vbar .btn { --btn-ink: #fff; }
.ch-vnav { position: absolute; top: 50%; transform: translateY(-50%); width: 46px; height: 46px; border-radius: 50%; border: 0; background: rgba(255,255,255,.14); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; }
.ch-vnav.l { left: 12px; } .ch-vnav.r { right: 12px; }
.ch-vnav svg { width: 22px; height: 22px; }
.overlay:has(> .ch-viewer) { padding: 0; }

/* Telefon: en stolpec naenkrat, v odprtem pogovoru brez spodnje navigacije */
@media (max-width: 860px) {
  .chat { grid-template-columns: minmax(0, 1fr); }
  .chat[data-mode="conv"] .ch-side { display: none; }
  .chat:not([data-mode="conv"]) .ch-conv { display: none; }
  .ch-side { border-right: 0; }
  .ch-back { display: inline-flex; }
  .ch-bwrap { max-width: 84%; }
  .ch-scroll { padding: 8px 8px 4px; }
  html.ch-conv-open .bottomnav, html.ch-conv-open .topbar { display: none; }
  .ch-head { padding-top: max(8px, var(--safe-top)); }
  .ch-down { bottom: 84px; right: 12px; }
}

/* ══════════ DELOVNI ČAS ══════════ */
.team-cards { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1.3fr); gap: 16px; }
@media (max-width: 900px) { .team-cards { grid-template-columns: minmax(0, 1fr); } }
.wt-grid { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: 16px; align-items: start; }
@media (max-width: 860px) { .wt-grid { grid-template-columns: minmax(0, 1fr); } }
.wt-card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 16px; box-shadow: var(--shadow); }
.wt-card.run { border-color: var(--green-d); box-shadow: 0 0 0 3px var(--ok-soft), var(--shadow); }
.wt-top { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.wt-top b { font-size: 15.5px; }
.wt-live { display: inline-block; width: 9px; height: 9px; border-radius: 50%; background: var(--green-d); box-shadow: 0 0 0 0 rgba(47,168,92,.6); animation: wtpulse 1.6s infinite; margin-right: 4px; vertical-align: 1px; }
@keyframes wtpulse { 70% { box-shadow: 0 0 0 8px rgba(47,168,92,0); } 100% { box-shadow: 0 0 0 0 rgba(47,168,92,0); } }
.wt-clock { font-family: 'Barlow Semi Condensed', 'Barlow', sans-serif; font-size: 46px; font-weight: 700; letter-spacing: .01em; font-variant-numeric: tabular-nums; margin: 6px 0 8px; color: var(--ink); }
.wt-cats { display: flex; flex-wrap: wrap; gap: 6px; }
.wt-cats button { border: 1px solid var(--line2); background: var(--card2); color: var(--ink2); border-radius: 10px; padding: 9px 12px; font: inherit; font-weight: 600; font-size: 14px; cursor: pointer; min-height: 42px; }
.wt-cats button small { color: var(--brand); font-weight: 700; }
.wt-cats button.on { background: var(--brand); border-color: var(--brand); color: #fff; }
.wt-cats button.on small { color: #fff; }
.wt-mini { display: flex; gap: 10px; align-items: center; padding: 7px 0; border-bottom: 1px solid var(--line); font-size: 14px; }
.wt-mini b { flex: none; font-variant-numeric: tabular-nums; }
.wt-mini span.truncate { flex: 1 1 auto; color: var(--ink2); }
.wt-mini span:last-child { flex: none; color: var(--mut); }
.wt-sumline { display: flex; justify-content: space-between; padding-top: 8px; font-size: 14px; }
.wt-monthnav { align-items: center; gap: 8px; }
.wt-month { font-size: 17px; min-width: 150px; text-align: center; text-transform: capitalize; }
.wt-v small { display: block; color: var(--brand); font-size: 11px; }
.wt-day { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 4px 14px 6px; margin-bottom: 10px; box-shadow: var(--shadow); }
.wt-dhead { display: flex; align-items: center; gap: 8px; padding: 9px 0 7px; border-bottom: 1px solid var(--line2); flex-wrap: wrap; }
.wt-dhead > b:first-child { text-transform: capitalize; }
.wt-dhead > span:nth-child(2) { color: var(--mut); font-size: 13.5px; }
.wt-entry {
  display: grid; grid-template-columns: 112px minmax(0, 210px) minmax(0, 1fr) 100px 18px; gap: 10px; align-items: center;
  width: 100%; padding: 9px 0; border: 0; border-bottom: 1px solid var(--line); background: none; color: inherit; font: inherit; text-align: left; cursor: pointer;
}
.wt-entry:last-child { border-bottom: 0; }
.wt-entry:hover .wt-ed { color: var(--brand); }
.wt-time { font-weight: 700; font-variant-numeric: tabular-nums; }
.wt-cat { display: flex; gap: 4px; flex-wrap: wrap; }
.wt-note { color: var(--ink2); font-size: 13.5px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.wt-dur { text-align: right; font-weight: 600; font-variant-numeric: tabular-nums; }
.wt-ed { width: 16px; height: 16px; color: var(--mut); }
.wt-entry.running .wt-time { color: var(--green-d); }
@media (max-width: 760px) {
  .wt-entry { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: 't d' 'c c' 'n n'; gap: 4px 10px; }
  .wt-time { grid-area: t; } .wt-dur { grid-area: d; } .wt-cat { grid-area: c; } .wt-note { grid-area: n; white-space: normal; }
  .wt-ed { display: none; }
  .wt-clock { font-size: 40px; }
}
.wt-team tr.click { cursor: pointer; }
.wt-team tr.click:hover td { background: var(--card2); }
.wt-total td { border-top: 2px solid var(--line2); }
@media (max-width: 760px) { .wt-total { background: var(--brand-soft) !important; } .wt-total td:empty, .wt-total td[data-label=""]:not(:first-child) { display: none; } }

/* ══════════ NALOGE ══════════ */
.tk-group { margin-bottom: 18px; }
.tk-group h2 { font-size: 14px; text-transform: uppercase; letter-spacing: .05em; color: var(--ink2); margin: 0 0 8px; }
.tk-group h2 span { font-size: 12px; background: var(--card2); border-radius: 999px; padding: 1px 8px; margin-left: 4px; color: var(--mut); }
.tk-list { display: flex; flex-direction: column; gap: 8px; }
.tk-row { display: flex; align-items: center; gap: 12px; background: var(--card); border: 1px solid var(--line); border-left: 4px solid var(--line2); border-radius: var(--r); padding: 11px 14px; cursor: pointer; transition: border-color .15s; }
.tk-row:hover { border-color: var(--brand); border-left-color: var(--brand); }
.tk-row.prio-visoka { border-left-color: var(--bad); }
.tk-row.prio-nizka { border-left-color: var(--green); }
.tk-row.done { opacity: .62; }
.tk-row.done .tk-title { text-decoration: line-through; }
.tk-list.compact .tk-row { padding: 8px 10px; box-shadow: none; }
.tk-chk { width: 28px; height: 28px; border-radius: 50%; border: 2px solid var(--line2); background: var(--card); color: #fff; display: flex; align-items: center; justify-content: center; cursor: pointer; flex: none; padding: 0; transition: background .15s, border-color .15s; }
.tk-chk:hover { border-color: var(--green-d); }
.tk-chk.on { background: var(--green-d); border-color: var(--green-d); }
.tk-chk svg { width: 16px; height: 16px; }
.tk-chk.sm { width: 22px; height: 22px; }
.tk-chk.sm svg { width: 13px; height: 13px; }
.tk-main { flex: 1 1 auto; min-width: 0; }
.tk-title { font-weight: 600; font-size: 15px; }
.tk-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-top: 4px; }
.tk-side { display: flex; flex-direction: column; align-items: flex-end; gap: 3px; flex: none; }
.tk-people { display: flex; }
.tk-pp { width: 26px; height: 26px; border-radius: 50%; background: var(--card2); border: 2px solid var(--card); color: var(--ink2); font-size: 10.5px; font-weight: 700; display: inline-flex; align-items: center; justify-content: center; margin-left: -7px; }
.tk-pp:first-child { margin-left: 0; }
.tk-pp.done { background: var(--ok-soft); color: var(--ok); }
.tk-pp.more { background: var(--line); }
.tk-pick { display: grid; grid-template-columns: repeat(auto-fill, minmax(190px, 1fr)); gap: 6px; max-height: 260px; overflow-y: auto; }
.tk-pick label { display: grid; grid-template-columns: 20px minmax(0, 1fr); column-gap: 8px; align-items: center; padding: 7px 9px; border: 1px solid var(--line); border-radius: 10px; cursor: pointer; background: var(--card2); }
.tk-pick label.on { border-color: var(--brand); background: var(--brand-soft); }
.tk-pick input { grid-row: span 2; }
.tk-pick span { font-weight: 600; font-size: 14px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.tk-pick small { color: var(--mut); font-size: 12px; }
.tk-files { display: flex; flex-wrap: wrap; gap: 6px; }
.tk-files .x.sm { width: 18px; height: 18px; padding: 0; }
.tk-dgrid { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); gap: 18px; }
@media (max-width: 760px) { .tk-dgrid { grid-template-columns: minmax(0, 1fr); } }
.tk-desc { white-space: pre-wrap; line-height: 1.5; background: var(--card2); border-radius: var(--r-sm); padding: 12px; overflow-wrap: anywhere; }
.tk-notes { display: flex; flex-direction: column; gap: 8px; margin-bottom: 10px; }
.tk-note { background: var(--card2); border-radius: 10px; padding: 8px 10px; }
.tk-ntext { white-space: pre-wrap; font-size: 14px; margin-top: 2px; overflow-wrap: anywhere; }
.tk-asg { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; max-height: 320px; overflow-y: auto; }
.tk-arow { display: flex; align-items: center; gap: 8px; padding: 4px 0; font-size: 14px; }
.tk-arow.done span.grow { color: var(--mut); }
.tk-flist { display: flex; flex-direction: column; gap: 4px; margin-top: 6px; }
.tk-file { display: flex; align-items: center; gap: 6px; }
.tk-file a { flex: 1 1 auto; display: flex; align-items: center; gap: 8px; min-width: 0; padding: 6px 8px; border-radius: 8px; background: var(--card); color: var(--ink); }
.tk-file a:hover { background: var(--brand-soft); }
.tk-file a > svg { width: 20px; height: 20px; color: var(--brand); flex: none; }
.tk-file a span { display: flex; flex-direction: column; min-width: 0; }
.tk-file small { color: var(--mut); font-size: 12px; }
.tk-detail .card.flat { padding: 12px; }

/* ── Delovni čas: barve kategorij, tedenski obračun, vnos za teden (#381) ── */
.wt-dot { display: inline-block; width: 9px; height: 9px; border-radius: 50%; margin-right: 6px; vertical-align: 0; flex: none; }
.wt-cats button.on .wt-dot { box-shadow: 0 0 0 2px #fff; }
.wt-swatches { display: flex; flex-wrap: wrap; gap: 5px; max-width: 220px; }
.wt-swatches button { width: 20px; height: 20px; border-radius: 50%; border: 2px solid transparent; padding: 0; cursor: pointer; box-shadow: inset 0 0 0 1px rgba(0,0,0,.12); }
.wt-swatches button.on { border-color: var(--ink); box-shadow: 0 0 0 2px var(--card) inset; }

.wt-wk-wrap { overflow-x: auto; -webkit-overflow-scrolling: touch; margin: 0 -4px; }
.wt-wk { width: 100%; border-collapse: collapse; font-size: 14px; font-variant-numeric: tabular-nums; }
.wt-wk th, .wt-wk td { padding: 8px 9px; border-bottom: 1px solid var(--line); white-space: nowrap; text-align: left; }
.wt-wk thead th { white-space: normal; min-width: 64px; line-height: 1.25; font-size: 12px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .03em; vertical-align: bottom; }
.wt-wk thead th small { color: var(--brand); text-transform: none; }
.wt-wk .num { text-align: right; }
.wt-wk tbody th { font-weight: 600; }
.wt-wk tr.cur td, .wt-wk tr.cur th { background: var(--brand-soft); }
.wt-wk tfoot th, .wt-wk tfoot td { border-top: 2px solid var(--line2); border-bottom: 0; font-weight: 700; }
.wt-diff.neg { color: var(--bad); }
.wt-diff.pos { color: var(--green-d); }

.wt-wm .modal-body { padding-top: 12px; }
.wt-wm-nav { align-items: center; gap: 8px; margin-bottom: 10px; }
.wt-wm-nav b { font-size: 15.5px; min-width: 190px; text-align: center; font-variant-numeric: tabular-nums; }
.wt-wm-exist { background: var(--card2); border-radius: var(--r-sm); padding: 8px 12px; margin-bottom: 12px; font-size: 13.5px; display: flex; flex-direction: column; gap: 5px; }
.wt-wm-exist b { display: inline-block; min-width: 64px; text-transform: capitalize; }
.wt-wm-head, .wt-wm-row { display: grid; grid-template-columns: 112px 78px 78px minmax(150px, 1.1fr) minmax(0, 1fr) 84px; gap: 6px; align-items: center; }
.wt-wm-head { font-size: 12px; font-weight: 600; color: var(--ink2); text-transform: uppercase; letter-spacing: .03em; padding: 0 0 4px 10px; }
.wt-wm-row { padding: 4px 0 4px 8px; border-left: 4px solid var(--c, var(--line2)); border-radius: 4px; margin-bottom: 4px; }
.wt-wm-row.err { background: var(--bad-soft, rgba(220,60,60,.1)); }
.wt-wm-row label { display: block; margin: 0; min-width: 0; }
.wt-wm-row input, .wt-wm-row select { width: 100%; padding: 8px 9px; min-height: 40px; }
.wt-wm-row input[data-f="start"], .wt-wm-row input[data-f="end"] { text-align: center; font-variant-numeric: tabular-nums; }
.wt-wm-l { display: none; }
.wt-wm-end { display: flex; align-items: center; justify-content: flex-end; gap: 2px; }
.wt-wm-dur { font-size: 13px; color: var(--ink2); font-variant-numeric: tabular-nums; }
.wt-wm-sum { font-size: 14px; color: var(--ink2); align-self: center; }
@media (max-width: 760px) {
  .wt-wm-head { display: none; }
  .wt-wm-row { grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); grid-template-areas: 'd d' 's e' 'c c' 'n n' 'x x'; gap: 6px 8px; padding: 10px 0 10px 10px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
  .wt-wm-row > :nth-child(1) { grid-area: d; } .wt-wm-row > :nth-child(2) { grid-area: s; } .wt-wm-row > :nth-child(3) { grid-area: e; }
  .wt-wm-cat { grid-area: c; } .wt-wm-note { grid-area: n; } .wt-wm-end { grid-area: x; }
  .wt-wm-l { display: block; font-size: 12px; color: var(--mut); margin-bottom: 2px; }
  .wt-wm-nav b { min-width: 0; flex: 1 1 auto; }
  .wt-wm .modal-foot { flex-wrap: wrap; }
  .wt-wm-sum { flex: 1 0 100%; }
}
.wt-wk .nw { white-space: nowrap; }

/* ── Delovni čas: pregled Mesec / Teden / Dan (#392) ── */
.wt-period button { min-width: 64px; }
.wt-split { margin-left: 10px; }
.wt-split button { padding: 5px 10px; font-size: 13px; }
.card-head.wrap { flex-wrap: wrap; row-gap: 8px; }
.wt-dlink { padding: 2px 6px; margin-left: -6px; gap: 6px; font-weight: 600; text-transform: capitalize; }
.wt-dlink span { font-weight: 400; color: var(--mut); text-transform: none; }
.wt-dhead .wt-dlink b { text-transform: capitalize; }
.wt-wk tr.wkend th, .wt-wk tr.wkend td { color: var(--mut); }
.wt-wk tr.fut th, .wt-wk tr.fut td { opacity: .55; }
.wt-wk tbody th .chip { font-weight: 500; font-size: 11.5px; }
.wt-dd tbody tr.click { cursor: pointer; }
.wt-dd tbody tr.click:hover td { background: var(--card2); }
.wt-dd .wt-note-c { white-space: normal; color: var(--ink2); min-width: 160px; }
.wt-dd-norm th, .wt-dd-norm td { border-top: 0 !important; font-weight: 600; color: var(--ink2); }
@media (max-width: 640px) {
  .wt-period { order: -1; flex: 1 0 100%; }
  .wt-period button { flex: 1; }
  .wt-month { min-width: 0; flex: 1 1 auto; font-size: 15.5px; }
  .wt-split { margin-left: 0; }
}
