/* Kos C: sporočila in obvestila */
.sp { display: flex; flex-direction: column; gap: 4px; min-width: 0; min-height: calc(100dvh - 200px - env(safe-area-inset-bottom)); }
.sp-list { display: flex; flex-direction: column; gap: 6px; padding: 4px 0 8px; flex: 1; justify-content: flex-end; }
.sp-day { align-self: center; margin: 10px 0 2px; font-size: 12px; font-weight: 500; letter-spacing: .03em; color: var(--muted); }
.msg { display: flex; flex-direction: column; gap: 2px; max-width: 82%; min-width: 0; -webkit-touch-callout: none; -webkit-user-select: none; user-select: none; -webkit-user-drag: none; -webkit-tap-highlight-color: transparent; touch-action: pan-y; }
.msg.mine { align-self: flex-end; align-items: flex-end; }
.msg.theirs { align-self: flex-start; align-items: flex-start; }
.msg .bub { padding: 8px 14px; border-radius: 18px; white-space: pre-wrap; overflow-wrap: anywhere; line-height: 1.3; }
.msg.mine .bub { background: var(--accent); color: var(--accent-ink); border-bottom-right-radius: 6px; }
.msg.theirs .bub { background: var(--card); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg .meta { padding: 0 6px; font-size: 12px; color: var(--muted); }
.msg.pending .bub { opacity: .6; }
.msg.ctx-row { max-width: none; background: transparent; box-shadow: none; overflow: visible; }
.sp-send { position: sticky; bottom: calc(64px + env(safe-area-inset-bottom)); z-index: 4; padding: 8px 0; background: var(--bg); }
.sp-note { margin: 0; padding: 0 4px; font-size: 14px; color: var(--danger); }
.mc-send { margin-top: 4px; }
.mc-link { display: flex; flex-direction: column; gap: 2px; min-height: 44px; padding: 4px 0; color: inherit; text-decoration: none; }
.mc-top { font-size: 15px; color: var(--muted); }
.mc-top b { color: var(--fg); }
.mc-text { font-size: 18px; font-weight: 600; line-height: 1.25; overflow-wrap: anywhere; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
#mc-note:not(.hidden) { color: var(--muted); margin-top: 4px; }

/* obvestila */
.nv { display: flex; flex-direction: column; gap: 12px; }
.nv-state { margin: 0; font-size: 15px; color: var(--muted); }
.nv-state.ok { color: var(--fg); }
.nv-state.warn { color: var(--danger); }
.nv-hint { padding: 12px 14px; border-radius: 14px; background: color-mix(in srgb, var(--accent) 22%, var(--card)); font-size: 15px; }
.nv-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 56px; border-bottom: 1px solid var(--line); }
.nv-row:last-child { border-bottom: 0; }
.nv-row.off { opacity: .5; }
.nv-lbl { flex: 1; min-width: 0; }
.nv-lbl small { display: block; color: var(--muted); font-size: 13px; }
.nv-sw { position: relative; flex: none; width: 52px; height: 32px; }
.nv-sw input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; z-index: 1; }
.nv-sw i { position: absolute; inset: 0; border-radius: 999px; background: color-mix(in srgb, var(--muted) 35%, var(--card)); transition: background .15s; pointer-events: none; }
.nv-sw i::after { content: ""; position: absolute; top: 3px; left: 3px; width: 26px; height: 26px; border-radius: 50%; background: #fff; box-shadow: 0 1px 3px rgba(0,0,0,.3); transition: transform .15s; }
.nv-sw input:checked + i { background: #2bb3a3; }
.nv-sw input:checked + i::after { transform: translateX(20px); }
.nv-sw input:disabled { cursor: default; }
.nv-sw input:focus-visible + i { outline: 2px solid var(--fg); outline-offset: 2px; }
.nv-actions { display: flex; flex-direction: column; gap: 8px; }
.nv-actions .btn { width: 100%; }
@media (prefers-reduced-motion: reduce) { .nv-sw i, .nv-sw i::after { transition: none; } }
