/* NVC užduočių užsakymai */
.nvcu {
  --nv-bg: #f6f7f9; --nv-card: #fff; --nv-ink: #1c2230; --nv-mute: #667085; --nv-line: #e3e6ec;
  --nv-acc: #3b5bdb; --nv-acc-soft: #edf1ff; --nv-ok: #12805c; --nv-ok-soft: #e6f6ef;
  --nv-warn: #b25e09; --nv-warn-soft: #fff4e5; --nv-bad: #c92a2a; --nv-bad-soft: #fff0f0;
  --u1: #8a94a6; --u2: #3b82f6; --u3: #f08c00; --u4: #e03131;
  --r: 10px;
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;
  font-size: 15px; line-height: 1.45; color: var(--nv-ink); box-sizing: border-box;
}
.nvcu *, .nvcu *::before, .nvcu *::after { box-sizing: inherit; }
.nvcu h2, .nvcu h3, .nvcu h4 { margin: 0; line-height: 1.25; color: var(--nv-ink); }
.nvcu button { font: inherit; cursor: pointer; }
.nvcu small { color: var(--nv-mute); font-size: 12.5px; }
.nvcu code { background: var(--nv-bg); padding: 1px 6px; border-radius: 4px; }
#nvcu-app { max-width: 1200px; margin: 0 auto; }
.nvcu-mode-admin { margin-top: 16px !important; }
.nvcu-loading, .nvcu-empty { padding: 28px; text-align: center; color: var(--nv-mute); background: var(--nv-card); border: 1px dashed var(--nv-line); border-radius: var(--r); }

/* Header */
.nvcu-head { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; margin-bottom: 14px; }
.nvcu-head h2 { font-size: 24px; }
.nvcu-sub { color: var(--nv-mute); }

/* Buttons */
.nvcu-btn { border: 1px solid var(--nv-line); background: var(--nv-card); color: var(--nv-ink); padding: 9px 16px; border-radius: 8px; font-weight: 600; transition: .15s; line-height: 1.2; }
.nvcu-btn:hover { border-color: var(--nv-acc); color: var(--nv-acc); }
.nvcu-btn.primary { background: var(--nv-acc); color: #fff; border-color: var(--nv-acc); }
.nvcu-btn.primary:hover { filter: brightness(1.08); color: #fff; }
.nvcu-btn.ghost { background: transparent; }
.nvcu-btn.danger { color: var(--nv-bad); border-color: #f3c4c4; background: transparent; }
.nvcu-btn.danger:hover { background: var(--nv-bad-soft); }
.nvcu-btn.sm { padding: 6px 12px; font-size: 13px; }
.nvcu-btn:disabled { opacity: .6; cursor: wait; }
.nvcu-icon { border: 1px solid var(--nv-line); background: var(--nv-card); width: 30px; height: 30px; border-radius: 7px; display: inline-flex; align-items: center; justify-content: center; color: var(--nv-mute); padding: 0; font-size: 13px; }
.nvcu-icon:hover { color: var(--nv-acc); border-color: var(--nv-acc); }
.nvcu-link { background: none; border: 0; color: var(--nv-acc); padding: 0; font-weight: 600; margin-left: auto; }

/* Availability */
.nvcu-avail { background: var(--nv-card); border: 1px solid var(--nv-line); border-left: 5px solid var(--nv-ok); border-radius: var(--r); padding: 14px 16px; display: flex; flex-wrap: wrap; gap: 14px 24px; justify-content: space-between; align-items: center; margin-bottom: 14px; }
.nvcu-avail.a-busy { border-left-color: var(--u3); }
.nvcu-avail.a-away { border-left-color: var(--nv-bad); }
.nvcu-avail-main { display: flex; gap: 10px; align-items: flex-start; }
.nvcu-avail-main .msg { color: var(--nv-mute); font-size: 14px; white-space: pre-wrap; }
.nvcu .pulse { width: 11px; height: 11px; border-radius: 50%; background: var(--nv-ok); margin-top: 5px; flex: none; box-shadow: 0 0 0 0 rgba(18,128,92,.5); animation: nvcuPulse 2s infinite; }
.a-busy .pulse { background: var(--u3); animation: none; }
.a-away .pulse { background: var(--nv-bad); animation: none; }
@keyframes nvcuPulse { 70% { box-shadow: 0 0 0 8px rgba(18,128,92,0); } 100% { box-shadow: 0 0 0 0 rgba(18,128,92,0); } }
.nvcu-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.nvcu-stats div { display: flex; flex-direction: column; }
.nvcu-stats b { font-size: 18px; }
.nvcu-stats span { font-size: 12px; color: var(--nv-mute); }
.nvcu-stats .bad b { color: var(--nv-bad); }

/* Tabs + toolbar */
.nvcu-tabs { display: flex; gap: 4px; border-bottom: 1px solid var(--nv-line); margin-bottom: 14px; overflow-x: auto; }
.nvcu-tabs button { background: none; border: 0; border-bottom: 3px solid transparent; padding: 9px 14px; font-weight: 600; color: var(--nv-mute); white-space: nowrap; }
.nvcu-tabs button.on { color: var(--nv-acc); border-bottom-color: var(--nv-acc); }
.nvcu-toolbar { display: flex; gap: 8px; margin-bottom: 12px; flex-wrap: wrap; }
.nvcu-search { flex: 1 1 240px; }
.nvcu input[type=text], .nvcu input[type=search], .nvcu input[type=url], .nvcu input[type=email], .nvcu input[type=date], .nvcu input[type=number], .nvcu input[type=password], .nvcu select, .nvcu textarea {
  width: 100%; max-width: 100%; border: 1px solid var(--nv-line); border-radius: 8px; padding: 8px 10px; font: inherit; color: var(--nv-ink); background: #fff; min-height: 38px; box-shadow: none; margin: 0;
}
.nvcu input:focus, .nvcu select:focus, .nvcu textarea:focus { outline: 2px solid var(--nv-acc-soft); border-color: var(--nv-acc); }
.nvcu-toolbar select { width: auto; }

/* Layout */
.nvcu-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 18px; align-items: start; }
.nvcu-list { display: flex; flex-direction: column; gap: 10px; }
.nvcu-aside { display: flex; flex-direction: column; gap: 14px; position: sticky; top: 40px; }
@media (max-width: 900px) { .nvcu-layout { grid-template-columns: 1fr; } .nvcu-aside { position: static; order: -1; } .nvcu-help { display: none; } }

/* Cards */
.nvcu-card { display: flex; gap: 12px; align-items: flex-start; background: var(--nv-card); border: 1px solid var(--nv-line); border-left: 4px solid var(--u2); border-radius: var(--r); padding: 12px 14px; cursor: pointer; transition: .15s; }
.nvcu-card:hover, .nvcu-card:focus { box-shadow: 0 3px 14px rgba(20,30,60,.08); outline: none; border-color: #cfd5e1; }
.nvcu-card.u1 { border-left-color: var(--u1); } .nvcu-card.u2 { border-left-color: var(--u2); }
.nvcu-card.u3 { border-left-color: var(--u3); } .nvcu-card.u4 { border-left-color: var(--u4); }
.nvcu-card.is-late { background: linear-gradient(90deg, var(--nv-bad-soft), #fff 40%); }
.nvcu-card.is-new .nvcu-pos { background: var(--nv-acc); color: #fff; }
.nvcu-pos { flex: none; width: 34px; height: 34px; border-radius: 50%; background: var(--nv-bg); display: flex; align-items: center; justify-content: center; font-weight: 700; color: var(--nv-mute); }
.nvcu-card-main { flex: 1; min-width: 0; }
.nvcu-card-top { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nvcu-card-top h3 { font-size: 16px; margin-right: 4px; word-break: break-word; }
.nvcu-meta { color: var(--nv-mute); font-size: 13px; margin: 3px 0 7px; }
.nvcu-extra-n { color: #7048e8; font-weight: 600; }
.nvcu-chips { display: flex; gap: 6px; flex-wrap: wrap; align-items: center; }
.nvcu-card-admin { display: flex; gap: 4px; align-items: center; flex: none; }
.nvcu-card-admin select { width: auto; min-height: 30px; padding: 3px 6px; font-size: 13px; }
@media (max-width: 600px) { .nvcu-card { flex-wrap: wrap; } .nvcu-card-admin { width: 100%; justify-content: flex-end; } .nvcu-pos { width: 28px; height: 28px; font-size: 13px; } }

/* Badges & chips */
.nvcu-badge { font-size: 11.5px; font-weight: 700; padding: 2px 8px; border-radius: 99px; text-transform: uppercase; letter-spacing: .02em; white-space: nowrap; }
.nvcu-badge.urg.u1 { background: #eef0f4; color: #4b5565; } .nvcu-badge.urg.u2 { background: #e7f0ff; color: #1d4ed8; }
.nvcu-badge.urg.u3 { background: #fff1db; color: #a35200; } .nvcu-badge.urg.u4 { background: #ffe3e3; color: #b42318; }
.nvcu-badge.st { background: var(--nv-bg); color: var(--nv-mute); }
.nvcu-badge.st-nauja { background: var(--nv-acc-soft); color: var(--nv-acc); }
.nvcu-badge.st-vykdoma { background: #e9e3ff; color: #5f3dc4; }
.nvcu-badge.st-laukia { background: var(--nv-warn-soft); color: var(--nv-warn); }
.nvcu-badge.st-testuojama { background: #e3fafc; color: #0b7285; }
.nvcu-badge.st-atlikta { background: var(--nv-ok-soft); color: var(--nv-ok); }
.nvcu-badge.st-atsaukta { background: #f1f3f5; color: #868e96; text-decoration: line-through; }
.nvcu-badge.admin { background: #ede9fe; color: #6d28d9; text-transform: none; }
.nvcu-chip { font-size: 12.5px; padding: 3px 9px; border-radius: 6px; background: var(--nv-bg); color: var(--nv-ink); white-space: nowrap; text-decoration: none; border: 1px solid transparent; }
.nvcu-chip.late, .nvcu .late { color: var(--nv-bad); font-weight: 600; }
.nvcu-chip.late { background: var(--nv-bad-soft); }
.nvcu-chip.soon, .nvcu .soon { color: var(--nv-warn); font-weight: 600; }
.nvcu-chip.soon { background: var(--nv-warn-soft); }
.nvcu-chip.ok { background: var(--nv-ok-soft); color: var(--nv-ok); }
.nvcu-chip.doc { background: #e8f0fe; color: #1a56c4; }
.nvcu-chip.doc:hover { border-color: #1a56c4; }
.nvcu-chip.extra { background: #f3efff; color: #6741d9; white-space: normal; }

/* Difficulty meter */
.nvcu-diff { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; }
.nvcu-diff.none { color: var(--nv-mute); font-style: italic; }
.nvcu-diff .bars { display: inline-flex; gap: 2px; align-items: flex-end; height: 14px; }
.nvcu-diff .bars i { width: 5px; background: #dde1e8; border-radius: 2px; }
.nvcu-diff .bars i:nth-child(1) { height: 5px; } .nvcu-diff .bars i:nth-child(2) { height: 7px; } .nvcu-diff .bars i:nth-child(3) { height: 9px; }
.nvcu-diff .bars i:nth-child(4) { height: 11px; } .nvcu-diff .bars i:nth-child(5) { height: 14px; }
.nvcu-diff.d1 .on, .nvcu-diff.d2 .on { background: #40c057; }
.nvcu-diff.d3 .on { background: #fab005; }
.nvcu-diff.d4 .on { background: #fd7e14; }
.nvcu-diff.d5 .on { background: #e03131; }

/* Progress */
.nvcu-prog { display: inline-flex; align-items: center; gap: 6px; font-size: 12.5px; color: var(--nv-mute); }
.nvcu-prog .bar { width: 60px; height: 6px; background: #e9ecef; border-radius: 3px; overflow: hidden; }
.nvcu-prog .bar i { display: block; height: 100%; background: var(--nv-ok); }

/* Calendar */
.nvcu-cal, .nvcu-help { background: var(--nv-card); border: 1px solid var(--nv-line); border-radius: var(--r); padding: 12px; }
.nvcu-cal-head { display: flex; justify-content: space-between; align-items: center; margin-bottom: 8px; }
.nvcu-cal-grid { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
.nvcu-cal-grid .wd { text-align: center; font-size: 11px; color: var(--nv-mute); font-weight: 600; padding: 2px 0; }
.nvcu-day { border: 1px solid transparent; background: none; border-radius: 7px; aspect-ratio: 1 / 1; min-height: 32px; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; padding: 0; font-size: 13px; color: var(--nv-ink); }
.nvcu-day:hover { background: var(--nv-bg); }
.nvcu-day.out { color: #c1c7d0; }
.nvcu-day.today { font-weight: 800; color: var(--nv-acc); border-color: var(--nv-acc); }
.nvcu-day.sel { background: var(--nv-acc-soft); }
.nvcu-day .dots { display: flex; gap: 2px; height: 5px; }
.nvcu i.w, .nvcu i.dl, .nvcu i.ok { display: inline-block; width: 5px; height: 5px; border-radius: 50%; }
.nvcu i.w { background: #748ffc; } .nvcu i.ok { background: #40c057; }
.nvcu i.dl.u1 { background: var(--u1); } .nvcu i.dl.u2 { background: var(--u2); } .nvcu i.dl.u3 { background: var(--u3); } .nvcu i.dl.u4 { background: var(--u4); }
.nvcu-cal-legend { display: flex; gap: 10px; flex-wrap: wrap; font-size: 12px; color: var(--nv-mute); margin-top: 8px; align-items: center; }
.nvcu-cal-legend i { margin-right: 4px; }
.nvcu-cal-day { margin-top: 10px; border-top: 1px solid var(--nv-line); padding-top: 8px; }
.nvcu-cal-day .h { font-weight: 700; font-size: 13px; margin-bottom: 4px; }
.nvcu-cal-day ul { list-style: none; margin: 0; padding: 0; }
.nvcu-cal-day li { font-size: 13px; padding: 5px 6px; border-radius: 6px; cursor: pointer; }
.nvcu-cal-day li:hover { background: var(--nv-bg); }
.nvcu-cal-day li.empty { color: var(--nv-mute); cursor: default; }
.nvcu-cal-day .t { font-size: 11px; font-weight: 700; text-transform: uppercase; padding: 1px 6px; border-radius: 4px; margin-right: 4px; }
.ev-work .t { background: #edf2ff; color: #4263eb; } .ev-deadline .t { background: var(--nv-bad-soft); color: var(--nv-bad); } .ev-done .t { background: var(--nv-ok-soft); color: var(--nv-ok); }
.nvcu-help h4 { font-size: 13px; margin-bottom: 8px; }
.nvcu-help div { margin-bottom: 7px; font-size: 13px; line-height: 1.3; }

/* Modal */
body.nvcu-noscroll { overflow: hidden; }
.nvcu-modal-wrap { position: fixed; inset: 0; background: rgba(15,20,35,.45); z-index: 100000; display: flex; align-items: flex-start; justify-content: center; padding: 5vh 12px; overflow-y: auto; }
.nvcu-modal { background: var(--nv-card); border-radius: 14px; width: 100%; max-width: 560px; position: relative; box-shadow: 0 20px 60px rgba(0,0,0,.25); animation: nvcuIn .18s ease-out; }
.nvcu-modal.wide { max-width: 760px; }
.nvcu-modal-body { padding: 24px; }
.nvcu-modal-body > h2 { font-size: 21px; margin-bottom: 8px; padding-right: 30px; }
.nvcu-x { position: absolute; top: 12px; right: 12px; border: 0; background: var(--nv-bg); width: 34px; height: 34px; border-radius: 50%; font-size: 20px; color: var(--nv-mute); }
@keyframes nvcuIn { from { transform: translateY(10px); opacity: 0; } }
@media (max-width: 600px) { .nvcu-modal-wrap { padding: 0; } .nvcu-modal { border-radius: 0; min-height: 100%; } .nvcu-modal-body { padding: 18px 14px 30px; } }

/* Detail */
.nvcu-detail-head { padding-right: 34px; margin-bottom: 12px; }
.nvcu-detail-head h2 { font-size: 21px; }
.nvcu-detail h3 { font-size: 15px; margin: 18px 0 8px; }
.nvcu-kvs { display: grid; grid-template-columns: 1fr 1fr; gap: 1px; background: var(--nv-line); border: 1px solid var(--nv-line); border-radius: var(--r); overflow: hidden; }
.nvcu-kvs .kv { background: var(--nv-card); padding: 9px 12px; }
.nvcu-kvs .kv > span { display: block; font-size: 11.5px; text-transform: uppercase; letter-spacing: .03em; color: var(--nv-mute); font-weight: 600; margin-bottom: 2px; }
@media (max-width: 600px) { .nvcu-kvs { grid-template-columns: 1fr; } }
.nvcu-doc { display: block; margin-top: 12px; padding: 11px 14px; border-radius: var(--r); background: #e8f0fe; color: #1a56c4; font-weight: 600; text-decoration: none; }
.nvcu-doc:hover { background: #dbe7fd; }
.nvcu-subs-view { list-style: none; margin: 0; padding: 0; border: 1px solid var(--nv-line); border-radius: var(--r); }
.nvcu-subs-view li { display: flex; justify-content: space-between; gap: 10px; padding: 9px 12px; border-top: 1px solid var(--nv-line); flex-wrap: wrap; }
.nvcu-subs-view li:first-child { border-top: 0; }
.nvcu-subs-view li.empty { color: var(--nv-mute); }
.nvcu-subs-view label { display: flex; gap: 9px; align-items: flex-start; flex: 1 1 260px; margin: 0; }
.nvcu-subs-view input { margin-top: 3px; width: 17px; height: 17px; flex: none; }
.nvcu-subs-view li.done .txt { text-decoration: line-through; color: var(--nv-mute); }
.nvcu-subs-view .side { display: flex; gap: 5px; flex-wrap: wrap; }
.nvcu-pre { white-space: pre-wrap; background: var(--nv-bg); border-radius: var(--r); padding: 10px 12px; word-break: break-word; }
.nvcu-pre.admin { background: #f3efff; }
.nvcu-warn { background: var(--nv-warn-soft); color: #8a4a06; border-radius: var(--r); padding: 10px 12px; margin: 8px 0 12px; font-size: 14px; }
.nvcu-actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 18px; }
.nvcu-actions.center { justify-content: center; }

/* Forms */
.nvcu-form { display: flex; flex-direction: column; gap: 13px; }
.nvcu-form label { display: flex; flex-direction: column; gap: 4px; font-weight: 600; font-size: 14px; margin: 0; }
.nvcu-form label.check { flex-direction: row; align-items: center; gap: 8px; font-weight: 500; }
.nvcu-form label small { font-weight: 400; }
.nvcu-form fieldset { border: 1px solid var(--nv-line); border-radius: var(--r); padding: 10px 12px 12px; margin: 0; min-width: 0; }
.nvcu-form fieldset legend { font-weight: 700; font-size: 14px; padding: 0 6px; }
.nvcu-form fieldset.admin-only { background: #faf8ff; border-color: #d9cffc; }
.nvcu-form .row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
@media (max-width: 600px) { .nvcu-form .row2 { grid-template-columns: 1fr; } }
.nvcu-hint { color: var(--nv-mute); font-size: 13.5px; margin: 0 0 12px; }
.nvcu-hp { position: absolute !important; left: -9999px !important; height: 0; width: 0; opacity: 0; }
.nvcu-editing-as { background: var(--nv-acc-soft); color: var(--nv-acc); padding: 7px 12px; border-radius: 8px; font-size: 14px; margin-bottom: 14px; }
.nvcu-urg-pick { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
@media (max-width: 600px) { .nvcu-urg-pick { grid-template-columns: 1fr 1fr; } }
.nvcu-urg-pick label { position: relative; cursor: pointer; font-weight: 400; }
.nvcu-urg-pick input { position: absolute; opacity: 0; }
.nvcu-urg-pick span { display: flex; flex-direction: column; border: 2px solid var(--nv-line); border-radius: 8px; padding: 7px 9px; height: 100%; }
.nvcu-urg-pick small { font-size: 11.5px; }
.nvcu-urg-pick label.u1 input:checked + span { border-color: var(--u1); background: #f4f5f7; }
.nvcu-urg-pick label.u2 input:checked + span { border-color: var(--u2); background: #eef4ff; }
.nvcu-urg-pick label.u3 input:checked + span { border-color: var(--u3); background: #fff6e8; }
.nvcu-urg-pick label.u4 input:checked + span { border-color: var(--u4); background: #fff0f0; }
.nvcu-urg-pick input:focus-visible + span { outline: 2px solid var(--nv-acc); }
.nvcu-subs-edit { display: flex; flex-direction: column; gap: 6px; margin-bottom: 8px; }
.nvcu-sub-row { display: flex; gap: 6px; align-items: center; }
.nvcu-sub-row .sub-text { flex: 1; }
.nvcu-sub-row .sub-hours { width: 78px; flex: none; }
.nvcu-sub-row .sub-done { width: 18px; height: 18px; flex: none; }
.nvcu-sub-row .handle, .nvcu-sub-row .lock { color: var(--nv-mute); width: 30px; text-align: center; flex: none; font-size: 13px; }
.nvcu-sub-row .handle { width: 12px; }
.nvcu-sub-row.done .sub-text { text-decoration: line-through; color: var(--nv-mute); }
.nvcu-days { display: flex; gap: 6px; flex-wrap: wrap; }
.nvcu-days label { flex-direction: row; align-items: center; gap: 5px; font-weight: 500; background: var(--nv-bg); padding: 5px 10px; border-radius: 6px; }
.nvcu-settings { background: var(--nv-card); border: 1px solid var(--nv-line); border-radius: var(--r); padding: 20px; max-width: 720px; }
.nvcu-settings h3 { font-size: 16px; margin-top: 6px; }

/* History */
.nvcu-hist { list-style: none; margin: 0; padding: 0; }
.nvcu-hist li { display: grid; grid-template-columns: 150px 1fr; gap: 10px; padding: 8px 0; border-bottom: 1px solid var(--nv-line); font-size: 14px; word-break: break-word; }
.nvcu-hist time { color: var(--nv-mute); font-size: 13px; }
@media (max-width: 600px) { .nvcu-hist li { grid-template-columns: 1fr; gap: 2px; } }

/* Misc */
.nvcu-success { text-align: center; padding: 10px 0; }
.nvcu-success .big { width: 64px; height: 64px; border-radius: 50%; background: var(--nv-ok-soft); color: var(--nv-ok); font-size: 34px; display: flex; align-items: center; justify-content: center; margin: 0 auto 12px; }
.nvcu-success h2 { margin-bottom: 10px; }
.nvcu-gate { max-width: 420px; margin: 30px auto; background: var(--nv-card); border: 1px solid var(--nv-line); border-radius: 14px; padding: 24px; text-align: center; }
.nvcu-gate h2 { font-size: 19px; margin-bottom: 8px; }
.nvcu-toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 20px); opacity: 0; background: #1c2230; color: #fff; padding: 10px 18px; border-radius: 10px; z-index: 100001; transition: .25s; max-width: 90vw; font-size: 14px; }
.nvcu-toast.show { opacity: 1; transform: translate(-50%, 0); }
.nvcu-toast.bad { background: var(--nv-bad); }

/* Instrukcija */
.nvcu-head-btns { display: flex; gap: 8px; flex-wrap: wrap; }
.nvcu-btn.ghost.on { background: var(--nv-acc-soft); border-color: var(--nv-acc); color: var(--nv-acc); }
.nvcu-intro { position: relative; background: linear-gradient(135deg, #f1f4ff, #fbfcff); border: 1px solid #cdd7fb; border-radius: var(--r); padding: 16px 44px 12px 18px; margin-bottom: 14px; }
.nvcu-intro h3 { font-size: 16px; margin-bottom: 8px; color: var(--nv-acc); }
.nvcu-intro ol { margin: 0 0 8px; padding-left: 20px; }
.nvcu-intro li { margin-bottom: 6px; font-size: 14.5px; }
.nvcu-intro li::marker { font-weight: 700; color: var(--nv-acc); }
.nvcu-intro .nvcu-hint { margin: 0; }
.nvcu-x.sm { width: 28px; height: 28px; font-size: 17px; top: 10px; right: 10px; background: #fff; }

/* „?“ ženkliukas ir paaiškinimai */
.nvcu-q { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #e4e8f1; color: #4b5565; font-size: 11px; font-weight: 800; line-height: 1; cursor: help; vertical-align: 1px; margin-left: 3px; text-transform: none; letter-spacing: 0; user-select: none; flex: none; }
.nvcu-q:hover, .nvcu-q:focus { background: var(--nv-acc); color: #fff; outline: none; }
.nvcu-q.static { cursor: default; }
.nvcu [data-tip]:not(.nvcu-q):not(button):not(a):not(label):not(.nvcu-pos) { cursor: help; }
.nvcu-tooltip { position: fixed; left: 0; top: 0; z-index: 100003; max-width: min(300px, calc(100vw - 16px)); background: #1c2230; color: #fff; font-size: 13px; line-height: 1.4; font-weight: 400; padding: 8px 11px; border-radius: 8px; box-shadow: 0 6px 20px rgba(0,0,0,.2); pointer-events: none; opacity: 0; transform: translateY(4px); transition: opacity .12s, transform .12s; white-space: normal; text-align: left; }
.nvcu-tooltip.below { transform: translateY(-4px); }
.nvcu-tooltip.show { opacity: 1; transform: none; }
.nvcu-form label > span, .nvcu-form legend { display: inline-flex; align-items: center; gap: 2px; flex-wrap: wrap; }
.nvcu-kvs .kv > span .nvcu-q { vertical-align: 0; }

/* v1.2 – valdymas, planas, kalendorius */
.nvcu-count { display: inline-block; min-width: 18px; padding: 0 5px; border-radius: 9px; background: var(--nv-bad); color: #fff; font-size: 11px; line-height: 18px; text-align: center; margin-left: 3px; }
.nvcu-tri { display: flex; flex-direction: column; background: var(--nv-card); border: 1px solid var(--nv-line); border-radius: var(--r); overflow: hidden; }
.nvcu-tri-row { display: grid; grid-template-columns: 30px minmax(160px, 1fr) 82px 118px 84px 130px 92px 66px; gap: 10px; align-items: center; padding: 9px 12px; border-top: 1px solid var(--nv-line); border-left: 4px solid var(--u2); }
.nvcu-tri-row.u1 { border-left-color: var(--u1); } .nvcu-tri-row.u3 { border-left-color: var(--u3); } .nvcu-tri-row.u4 { border-left-color: var(--u4); }
.nvcu-tri-row.head { border-top: 0; border-left-color: transparent; background: var(--nv-bg); font-size: 12px; font-weight: 700; color: var(--nv-mute); text-transform: uppercase; letter-spacing: .02em; }
.nvcu-tri-row.unrated { background: #fffbeb; }
.nvcu-tri-row.is-late .c-end { color: var(--nv-bad); }
.nvcu-tri-row .c-pos { font-weight: 700; color: var(--nv-mute); text-align: center; }
.nvcu-tri-row .c-title a { font-weight: 700; color: var(--nv-ink); text-decoration: none; word-break: break-word; }
.nvcu-tri-row .c-title a:hover { color: var(--nv-acc); }
.nvcu-tri-row .nvcu-meta { margin: 2px 0 0; }
.nvcu-tri-row select { min-height: 32px; padding: 4px 6px; font-size: 13px; }
.nvcu-tri-row .c-hours { display: flex; align-items: center; gap: 4px; }
.nvcu-tri-row .c-hours input { min-height: 32px; padding: 4px 6px; width: 62px; }
.nvcu-tri-row .c-hours small { display: none; }
.nvcu-tri-row .c-end { font-size: 13px; }
.nvcu-tri-row .c-move { display: flex; gap: 3px; }
.nvcu-diffpick { display: inline-flex; gap: 3px; align-items: flex-end; height: 24px; }
.nvcu-diffpick button { width: 16px; border: 1px solid #cfd5e1; background: #eef0f4; border-radius: 3px; padding: 0; transition: .1s; }
.nvcu-diffpick button:nth-child(1) { height: 10px; } .nvcu-diffpick button:nth-child(2) { height: 13px; } .nvcu-diffpick button:nth-child(3) { height: 16px; }
.nvcu-diffpick button:nth-child(4) { height: 20px; } .nvcu-diffpick button:nth-child(5) { height: 24px; }
.nvcu-diffpick button:hover { border-color: var(--nv-acc); background: var(--nv-acc-soft); }
.nvcu-diffpick button.on.d1, .nvcu-diffpick button.on.d2 { background: #40c057; border-color: #37b24d; }
.nvcu-diffpick button.on.d3 { background: #fab005; border-color: #f59f00; }
.nvcu-diffpick button.on.d4 { background: #fd7e14; border-color: #f76707; }
.nvcu-diffpick button.on.d5 { background: #e03131; border-color: #c92a2a; }
.nvcu-diffpick + small { display: block; font-size: 11.5px; }
@media (max-width: 1100px) {
  .nvcu-tri-row { grid-template-columns: 26px 1fr auto; grid-template-areas: "pos title move" "pos diff hours" "pos status end"; row-gap: 6px; }
  .nvcu-tri-row.head { display: none; }
  .nvcu-tri-row .c-pos { grid-area: pos; align-self: start; } .nvcu-tri-row .c-title { grid-area: title; }
  .nvcu-tri-row .c-urg { display: none; } .nvcu-tri-row .c-diff { grid-area: diff; } .nvcu-tri-row .c-hours { grid-area: hours; justify-content: flex-end; }
  .nvcu-tri-row .c-status { grid-area: status; } .nvcu-tri-row .c-end { grid-area: end; text-align: right; } .nvcu-tri-row .c-move { grid-area: move; }
  .nvcu-tri-row .c-hours small { display: inline; }
}

.nvcu-day.fr-1 { background: #eef3ff; }
.nvcu-day.fr-2 { background: #d9e6ff; }
.nvcu-day.fr-ov { background: #ece4ff; box-shadow: inset 0 0 0 1px #9775fa; }
.nvcu-day.fr-1:hover, .nvcu-day.fr-2:hover, .nvcu-day.fr-ov:hover { filter: brightness(.96); }
.nvcu-day.sel { box-shadow: inset 0 0 0 2px var(--nv-acc); }
.nvcu i.fr1, .nvcu i.fr2, .nvcu i.frov { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; }
.nvcu i.fr1 { background: #eef3ff; border: 1px solid #c5d3f8; } .nvcu i.fr2 { background: #d9e6ff; border: 1px solid #a9c1f5; } .nvcu i.frov { background: #ece4ff; border: 1px solid #9775fa; }
.nvcu-cal-legend.admin { margin-top: 4px; }
.nvcu-day-plan { background: var(--nv-bg); border-radius: 8px; padding: 8px; margin: 4px 0 6px; font-size: 13px; }
.nvcu-day-plan .mode { font-weight: 600; margin-bottom: 4px; }
.nvcu-day-plan ul.blocks { list-style: none; margin: 0 0 6px; padding: 0; }
.nvcu-day-plan .ov { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; }
.nvcu-day-plan .ov label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; flex: 1 1 110px; margin: 0; }
.nvcu-day-plan .ov input { min-height: 32px; padding: 4px 8px; }
.ev-block .t { background: #e5dbff; color: #5f3dc4; }
.nvcu-form .row3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 12px; }
@media (max-width: 700px) { .nvcu-form .row3 { grid-template-columns: 1fr; } }
.nvcu input[type=time] { width: 100%; border: 1px solid var(--nv-line); border-radius: 8px; padding: 8px 10px; font: inherit; min-height: 38px; background: #fff; }
.nvcu-inline { display: flex; gap: 8px; align-items: center; flex-wrap: wrap; }
.nvcu-sync { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.nvcu-sync > div { background: var(--nv-bg); border-radius: var(--r); padding: 12px; display: flex; flex-direction: column; gap: 8px; font-size: 14px; }
@media (max-width: 800px) { .nvcu-sync { grid-template-columns: 1fr; } }
.nvcu-copy { display: flex; gap: 6px; }
.nvcu textarea.mono, .nvcu-copy input { font-family: ui-monospace, SFMono-Regular, Menlo, Consolas, monospace; font-size: 12px; }
.nvcu-link.inline { margin: 0; font-size: inherit; }
.nvcu-howto { padding-left: 18px; margin: -6px 0 4px; }
.nvcu-howto li { margin-bottom: 4px; }

/* Importas */
.nvcu-imp-help { font-size: 13.5px; color: var(--nv-mute); }
.nvcu-imp-help summary { cursor: pointer; font-weight: 600; color: var(--nv-acc); }
.nvcu-imp-help p { margin: 6px 0; }
.nvcu-imp-table { max-height: 50vh; overflow: auto; border: 1px solid var(--nv-line); border-radius: var(--r); }
.nvcu-imp-table table { width: 100%; border-collapse: collapse; font-size: 13px; }
.nvcu-imp-table th, .nvcu-imp-table td { padding: 6px 8px; border-bottom: 1px solid var(--nv-line); text-align: left; vertical-align: top; }
.nvcu-imp-table th { background: var(--nv-bg); position: sticky; top: 0; }
.nvcu-imp-table tr.skip td { color: var(--nv-mute); text-decoration: line-through; }
.nvcu-imp-table tr.skip td:last-child { text-decoration: none; }
.nvcu input[type=datetime-local], .nvcu input[type=file] { width: 100%; border: 1px solid var(--nv-line); border-radius: 8px; padding: 8px 10px; font: inherit; min-height: 38px; background: #fff; }

/* Failai */
.nvcu-files { display: grid; grid-template-columns: repeat(auto-fill, minmax(220px, 1fr)); gap: 8px; margin-bottom: 8px; }
.nvcu-file { display: flex; gap: 10px; align-items: center; border: 1px solid var(--nv-line); border-radius: var(--r); padding: 8px; background: var(--nv-card); min-width: 0; }
.nvcu-file .thumb, .nvcu-file .icon { flex: none; width: 56px; height: 56px; border-radius: 6px; overflow: hidden; display: flex; align-items: center; justify-content: center; background: var(--nv-bg); font-size: 28px; text-decoration: none; }
.nvcu-file .thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nvcu-file .meta { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nvcu-file .name { font-weight: 600; font-size: 13.5px; color: var(--nv-ink); text-decoration: none; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcu-file .name:hover { color: var(--nv-acc); }
.nvcu-file small { font-size: 11.5px; }
.nvcu-drop { display: flex !important; flex-direction: column; align-items: center; gap: 4px; text-align: center; border: 2px dashed #cfd5e1; border-radius: var(--r); padding: 14px; cursor: pointer; font-weight: 400 !important; font-size: 14px; color: var(--nv-mute); background: #fbfcfe; transition: .15s; position: relative; }
.nvcu-drop:hover, .nvcu-drop:focus, .nvcu-drop.over { border-color: var(--nv-acc); background: var(--nv-acc-soft); color: var(--nv-acc); outline: none; }
.nvcu-drop b { color: var(--nv-acc); }
.nvcu-drop kbd { font: 11px ui-monospace, monospace; background: #fff; border: 1px solid var(--nv-line); border-radius: 4px; padding: 0 4px; }
.nvcu-up-progress { width: 100%; height: 5px; background: #e9ecef; border-radius: 3px; overflow: hidden; margin-top: 6px; }
.nvcu-up-progress i { display: block; height: 100%; width: 0; background: var(--nv-acc); transition: width .2s; }
.nvcu-pending { list-style: none; margin: 0 0 8px; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nvcu-pending li { display: flex; align-items: center; gap: 6px; font-size: 13.5px; background: var(--nv-bg); border-radius: 6px; padding: 4px 4px 4px 8px; }
.nvcu-pending li button { margin-left: auto; width: 24px; height: 24px; }

/* v1.4.1 – užduočių eilutės: tekstas visada platus, trukmė siaura (stipresnis selektorius nei bendros .nvcu input taisyklės ir WP admin stiliai) */
.nvcu .nvcu-sub-row { display: flex; align-items: center; gap: 6px; flex-wrap: nowrap; }
.nvcu .nvcu-sub-row input.sub-text { flex: 1 1 auto; width: auto; min-width: 0; }
.nvcu .nvcu-sub-row input.sub-done { flex: 0 0 18px; width: 18px; height: 18px; min-height: 0; margin: 0; }
.nvcu .nvcu-sub-row > .nvcu-icon, .nvcu .nvcu-sub-row > .lock { flex: 0 0 30px; }
.nvcu .nvcu-dur { display: inline-flex; flex: 0 0 auto; align-items: stretch; border: 1px solid var(--nv-line); border-radius: 8px; overflow: hidden; background: #fff; }
.nvcu .nvcu-dur:focus-within { border-color: var(--nv-acc); }
.nvcu .nvcu-dur input.dur-val { width: 64px; min-width: 0; border: 0; border-radius: 0; padding: 6px 6px 6px 8px; min-height: 36px; text-align: right; box-shadow: none; outline: none; -moz-appearance: textfield; }
.nvcu .nvcu-dur input.dur-val::-webkit-outer-spin-button, .nvcu .nvcu-dur input.dur-val::-webkit-inner-spin-button { -webkit-appearance: none; margin: 0; }
.nvcu .nvcu-dur select.dur-unit { width: auto; min-width: 0; border: 0; border-left: 1px solid var(--nv-line); border-radius: 0; padding: 0 22px 0 8px; min-height: 36px; font-size: 13px; background-color: var(--nv-bg); box-shadow: none; outline: none; }
.nvcu label > .nvcu-dur { align-self: flex-start; }
.nvcu-tri-row .c-hours .nvcu-dur input.dur-val { width: 52px; min-height: 32px; }
.nvcu-tri-row .c-hours .nvcu-dur select.dur-unit { min-height: 32px; }
.nvcu-tri-row { grid-template-columns: 30px minmax(160px, 1fr) 82px 118px 118px 130px 92px 66px; }
@media (max-width: 600px) {
  .nvcu .nvcu-sub-row { flex-wrap: wrap; }
  .nvcu .nvcu-sub-row input.sub-text { flex-basis: calc(100% - 70px); }
  .nvcu .nvcu-sub-row .nvcu-dur { margin-left: 24px; }
}

/* ===== v1.5 – Valdymo lentelė (perdaryta) ===== */
.nvcu-list { container-type: inline-size; container-name: nvlist; }
.nvcu-tri { overflow: visible; }
.nvcu-tri-item { border-top: 1px solid var(--nv-line); border-left: 4px solid var(--u2); background: var(--nv-card); }
.nvcu-tri-item.u1 { border-left-color: var(--u1); } .nvcu-tri-item.u3 { border-left-color: var(--u3); } .nvcu-tri-item.u4 { border-left-color: var(--u4); }
.nvcu-tri-item.unrated { background: #fffcf0; }
.nvcu-tri-item.is-late .c-end > span { color: var(--nv-bad); font-weight: 600; }
.nvcu .nvcu-tri-row, .nvcu .nvcu-tri-item .nvcu-tri-row {
  display: grid; align-items: center; gap: 12px; padding: 12px 14px; border: 0;
  grid-template-columns: 26px minmax(170px, 1fr) 86px 112px 132px 132px 104px 30px;
}
.nvcu .nvcu-tri-row.head { border-left: 4px solid transparent; padding-top: 10px; padding-bottom: 10px; }
.nvcu-tri-row .c-title a { font-size: 15px; line-height: 1.3; }
.nvcu-tri-row .c-hours { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; }
.nvcu-tri-row .c-hours .sum b { font-size: 15px; }
.nvcu-tri-row .c-hours .sum small { display: block; font-size: 11.5px; color: var(--nv-mute); }
.nvcu-tri-row .c-hours > small { display: block; font-size: 11.5px; color: var(--nv-mute); }
.nvcu .nvcu-tri-row .c-hours .nvcu-dur input.dur-val { width: 46px; min-height: 32px; }
.nvcu .nvcu-tri-row .c-hours .nvcu-dur select.dur-unit { min-height: 32px; padding-right: 18px; }
.nvcu .nvcu-tri-row select.nvcu-status-sel { width: 100%; }
.nvcu-tri-row .c-end { display: flex; flex-direction: column; font-size: 13.5px; line-height: 1.3; }
.nvcu-tri-row .c-end small { font-size: 11.5px; color: var(--nv-mute); }
.nvcu-tri-row .c-move { display: flex; flex-direction: column; gap: 3px; }
.nvcu-tri-row .c-move .nvcu-icon { width: 28px; height: 24px; font-size: 10px; }
.nvcu-tri-row .c-move .nvcu-icon:disabled { opacity: .3; cursor: default; }
.nvcu-link.sm { margin: 0; font-size: 12.5px; font-weight: 600; }
.nvcu-tri-subs { margin: 0 14px 12px 52px; border: 1px solid var(--nv-line); border-radius: var(--r); background: #fafbfd; }
.nvcu-tri-subs .tri-sub { display: flex; align-items: center; gap: 10px; padding: 7px 10px; border-bottom: 1px solid var(--nv-line); }
.nvcu-tri-subs .tri-sub .txt { flex: 1; min-width: 0; font-size: 14px; }
.nvcu-tri-subs .tri-sub.done .txt { text-decoration: line-through; color: var(--nv-mute); }
.nvcu-tri-subs .tri-sub input.ts-done { width: 17px; height: 17px; flex: none; margin: 0; }
.nvcu .nvcu-tri-subs .nvcu-dur input.dur-val { width: 50px; min-height: 30px; }
.nvcu .nvcu-tri-subs .nvcu-dur select.dur-unit { min-height: 30px; }
.nvcu-tri-subs .tri-sub-foot { display: flex; justify-content: space-between; gap: 10px; flex-wrap: wrap; padding: 8px 10px; font-size: 13.5px; }
.nvcu-tri-subs .tri-sub-foot small { color: var(--nv-mute); }

/* Siauresnė lentelė (pvz., nešiojamas kompiuteris su kalendoriumi šone) */
@container nvlist (max-width: 940px) {
  .nvcu .nvcu-tri-row, .nvcu .nvcu-tri-item .nvcu-tri-row {
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    grid-template-areas: "pos title title move" "pos diff hours hours" "pos status end end";
    row-gap: 10px;
  }
  .nvcu .nvcu-tri-row.head { display: none; }
  .nvcu-tri-row .c-pos { grid-area: pos; align-self: start; padding-top: 2px; }
  .nvcu-tri-row .c-title { grid-area: title; }
  .nvcu-tri-row .c-urg { display: none; }
  .nvcu-tri-row .c-diff { grid-area: diff; }
  .nvcu-tri-row .c-hours { grid-area: hours; align-items: flex-end; text-align: right; }
  .nvcu-tri-row .c-status { grid-area: status; max-width: 200px; }
  .nvcu-tri-row .c-end { grid-area: end; align-items: flex-end; text-align: right; }
  .nvcu-tri-row .c-end::before { content: "Preliminari pabaiga"; font-size: 11px; color: var(--nv-mute); text-transform: uppercase; letter-spacing: .02em; }
  .nvcu-tri-row .c-move { grid-area: move; flex-direction: row; align-self: start; }
  .nvcu-tri-subs { margin-left: 40px; }
}
@container nvlist (max-width: 480px) {
  .nvcu-tri-subs { margin: 0 10px 10px; }
  .nvcu-tri-subs .tri-sub { flex-wrap: wrap; }
  .nvcu-tri-subs .tri-sub .nvcu-dur { margin-left: 27px; }
}
/* senų taisyklių neutralizavimas */
@media (max-width: 1100px) {
  .nvcu .nvcu-tri-row.head { display: none; }
}

/* ===== Dienos planas po kalendoriumi ===== */
.nvcu .nvcu-day-plan { background: #f4f1ff; border: 1px solid #ddd3fd; border-radius: 10px; padding: 10px 12px; margin: 6px 0 8px; font-size: 13.5px; }
.nvcu .nvcu-day-plan.empty { background: var(--nv-bg); border-color: var(--nv-line); }
.nvcu-day-plan .plan-sum { display: flex; align-items: center; gap: 10px; line-height: 1.25; color: var(--nv-ink); }
.nvcu-day-plan .plan-sum .big { font-size: 22px; font-weight: 800; color: #5f3dc4; white-space: nowrap; }
.nvcu-day-plan.empty .plan-sum { font-weight: 600; color: var(--nv-mute); }
.nvcu-day-plan .why { color: var(--nv-mute); font-size: 12.5px; margin: 6px 0 0; line-height: 1.35; }
.nvcu-day-plan .lbl { margin: 10px 0 4px; font-size: 11.5px; font-weight: 700; text-transform: uppercase; letter-spacing: .03em; color: #5f3dc4; display: flex; align-items: center; gap: 4px; }
.nvcu .nvcu-day-plan ul.blocks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nvcu-day-plan ul.blocks li { display: grid; grid-template-columns: auto auto 1fr; gap: 2px 8px; align-items: baseline; background: #fff; border-radius: 7px; padding: 6px 8px; cursor: pointer; border: 1px solid transparent; }
.nvcu-day-plan ul.blocks li:hover { border-color: #b197fc; }
.nvcu-day-plan ul.blocks .time { font-weight: 700; font-variant-numeric: tabular-nums; }
.nvcu-day-plan ul.blocks .dur { font-size: 12px; color: #5f3dc4; background: #ede7ff; border-radius: 4px; padding: 0 5px; }
.nvcu-day-plan ul.blocks .ttl { grid-column: 1 / -1; font-size: 13px; color: var(--nv-ink); }
.nvcu-day-plan details.ov { margin-top: 10px; }
.nvcu-day-plan details.ov summary { cursor: pointer; font-size: 12.5px; font-weight: 600; color: var(--nv-acc); }
.nvcu-day-plan .ov-row { display: flex; gap: 6px; align-items: flex-end; flex-wrap: wrap; margin-top: 6px; }
.nvcu-day-plan .ov-row label { display: flex; flex-direction: column; gap: 2px; font-size: 12px; font-weight: 600; flex: 1 1 120px; margin: 0; }
.nvcu .nvcu-day-plan .ov-row input { min-height: 32px; padding: 4px 8px; }
.nvcu-cal-day li.ev-work .t { background: #edf2ff; color: #4263eb; }

/* v1.5 – tikslesnis išdėstymas be skubos stulpelio */
.nvcu .nvcu-tri-row, .nvcu .nvcu-tri-item .nvcu-tri-row { grid-template-columns: 24px minmax(170px, 1fr) 108px 128px 128px 108px 28px; gap: 10px; }
.nvcu-tri-row .nvcu-meta .nvcu-badge { font-size: 10.5px; padding: 1px 6px; margin-right: 2px; vertical-align: 1px; }
.nvcu-tri-subs .tri-sub .nvcu-chip.extra { flex: none; }
@container nvlist (max-width: 940px) {
  .nvcu .nvcu-tri-row, .nvcu .nvcu-tri-item .nvcu-tri-row { grid-template-columns: 24px minmax(170px, 1fr) 108px 128px 128px 108px 28px; grid-template-areas: none; row-gap: 0; }
  .nvcu .nvcu-tri-row.head { display: grid; }
  .nvcu-tri-row .c-pos, .nvcu-tri-row .c-title, .nvcu-tri-row .c-diff, .nvcu-tri-row .c-hours, .nvcu-tri-row .c-status, .nvcu-tri-row .c-end, .nvcu-tri-row .c-move { grid-area: auto; }
  .nvcu-tri-row .c-hours { align-items: flex-start; text-align: left; }
  .nvcu-tri-row .c-end { align-items: flex-start; text-align: left; }
  .nvcu-tri-row .c-end::before { content: none; }
  .nvcu-tri-row .c-move { flex-direction: column; align-self: center; }
  .nvcu-tri-row .c-status { max-width: none; }
  .nvcu-tri-subs { margin-left: 46px; }
}
@container nvlist (max-width: 760px) {
  .nvcu .nvcu-tri-row, .nvcu .nvcu-tri-item .nvcu-tri-row {
    grid-template-columns: 24px minmax(0, 1fr) auto auto;
    grid-template-areas: "pos title title move" "pos diff hours hours" "pos status end end";
    row-gap: 10px;
  }
  .nvcu .nvcu-tri-row.head { display: none; }
  .nvcu-tri-row .c-pos { grid-area: pos; align-self: start; padding-top: 2px; }
  .nvcu-tri-row .c-title { grid-area: title; }
  .nvcu-tri-row .c-diff { grid-area: diff; }
  .nvcu-tri-row .c-hours { grid-area: hours; align-items: flex-end; text-align: right; }
  .nvcu-tri-row .c-status { grid-area: status; max-width: 200px; }
  .nvcu-tri-row .c-end { grid-area: end; align-items: flex-end; text-align: right; }
  .nvcu-tri-row .c-end::before { content: "Preliminari pabaiga"; font-size: 11px; color: var(--nv-mute); text-transform: uppercase; letter-spacing: .02em; }
  .nvcu-tri-row .c-move { grid-area: move; flex-direction: row; align-self: start; }
  .nvcu-tri-subs { margin-left: 40px; }
}
@media (max-width: 1100px) { .nvcu .nvcu-tri-row.head { display: grid; } }
@container nvlist (max-width: 760px) { .nvcu .nvcu-tri-row.head { display: none !important; } }

/* ===== v1.6 – komentarai prie užduočių ===== */
.nvcu .nvcu-excl { display: inline-flex; align-items: center; justify-content: center; width: 17px; height: 17px; border-radius: 50%; background: #f59f00; color: #fff; font-size: 11.5px; font-weight: 900; line-height: 1; margin-left: 5px; vertical-align: 2px; flex: none; box-shadow: 0 0 0 2px #fff4e0; animation: nvcuNudge 2.4s ease-in-out infinite; }
@keyframes nvcuNudge { 0%, 85%, 100% { transform: none; } 90% { transform: rotate(-12deg) scale(1.1); } 95% { transform: rotate(12deg) scale(1.1); } }
@media (prefers-reduced-motion: reduce) { .nvcu .nvcu-excl { animation: none; } }
.nvcu-tabs .nvcu-excl { margin-left: 4px; }
.nvcu-chip.warn { background: #fff4e0; color: #a35200; font-weight: 600; }

.nvcu-subs-view li { flex-wrap: wrap; }
.nvcu-thread { flex: 1 1 100%; margin: 2px 0 0 26px; min-width: 0; }
.nvcu-thread .cm-start { background: none; border: 0; padding: 2px 0; color: var(--nv-mute); font-size: 12.5px; font-weight: 600; }
.nvcu-thread .cm-start:hover { color: var(--nv-acc); }
.nvcu-thread .cm-last { width: 100%; display: flex; align-items: center; gap: 8px; text-align: left; background: var(--nv-bg); border: 1px solid transparent; border-radius: 8px; padding: 6px 8px; font-size: 13px; color: var(--nv-ink); min-width: 0; }
.nvcu-thread .cm-last:hover { border-color: #cfd5e1; }
.nvcu-thread .cm-last.unresolved { background: #fff8eb; border-color: #ffd8a8; }
.nvcu-thread .cm-last .nvcu-excl { margin-left: 0; }
.nvcu-thread .cm-ok { width: 17px; height: 17px; border-radius: 50%; background: var(--nv-ok-soft); color: var(--nv-ok); font-size: 11px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; }
.nvcu-thread .cm-prev { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.nvcu-thread .cm-meta { flex: none; font-size: 11.5px; color: var(--nv-mute); white-space: nowrap; }
.nvcu-thread .cm-clip { color: var(--nv-mute); }
.nvcu .av { width: 30px; height: 30px; border-radius: 50%; background: #dbe4ff; color: #3b5bdb; font-size: 11.5px; font-weight: 800; display: inline-flex; align-items: center; justify-content: center; flex: none; letter-spacing: .02em; }
.nvcu .av.sm { width: 22px; height: 22px; font-size: 9.5px; }
.nvcu .cm.admin .av { background: #e5dbff; color: #6741d9; }
.nvcu-thread .cm-list { border-left: 2px solid var(--nv-line); margin: 6px 0 4px 10px; padding: 4px 0 2px 12px; display: flex; flex-direction: column; gap: 10px; }
.nvcu-thread.unresolved .cm-list { border-left-color: #ffc078; }
.nvcu .cm { display: flex; gap: 8px; align-items: flex-start; }
.nvcu .cm-main { flex: 1; min-width: 0; background: #fff; border: 1px solid var(--nv-line); border-radius: 4px 10px 10px 10px; padding: 7px 10px; }
.nvcu .cm.admin .cm-main { background: #faf8ff; border-color: #e5dbff; }
.nvcu .cm-head { display: flex; align-items: center; gap: 6px; flex-wrap: wrap; font-size: 12.5px; }
.nvcu .cm-head time { color: var(--nv-mute); font-size: 11.5px; }
.nvcu .cm-head .nvcu-badge { font-size: 10px; padding: 1px 6px; }
.nvcu .cm-del { margin-left: auto; background: none; border: 0; color: var(--nv-mute); font-size: 16px; line-height: 1; padding: 0 2px; opacity: .5; }
.nvcu .cm-del:hover { color: var(--nv-bad); opacity: 1; }
.nvcu .cm-body { white-space: pre-wrap; word-break: break-word; font-size: 14px; margin-top: 3px; }
.nvcu .cm-files { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 6px; }
.nvcu .cm-img { display: block; width: 120px; height: 84px; border-radius: 6px; overflow: hidden; border: 1px solid var(--nv-line); background: var(--nv-bg); }
.nvcu .cm-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.nvcu .cm-file { font-size: 12.5px; background: var(--nv-bg); border-radius: 6px; padding: 4px 8px; text-decoration: none; color: var(--nv-ink); }
.nvcu .cm-resolved { font-size: 12px; color: var(--nv-ok); font-weight: 600; }
.nvcu .cm-compose { display: flex; flex-direction: column; gap: 6px; }
.nvcu .cm-compose textarea.cm-text { min-height: 54px; font-size: 14px; resize: vertical; }
.nvcu .cm-compose .cm-actions { display: flex; gap: 6px; justify-content: flex-end; flex-wrap: wrap; align-items: center; }
.nvcu .cm-compose .cm-attach { margin-right: auto; cursor: pointer; padding: 5px 10px; }
.nvcu .cm-pend { display: flex; flex-wrap: wrap; gap: 6px; }
.nvcu .cm-pend span { font-size: 12.5px; background: var(--nv-bg); border-radius: 6px; padding: 3px 4px 3px 8px; display: inline-flex; align-items: center; gap: 4px; }
.nvcu .cm-pend button { border: 0; background: none; color: var(--nv-mute); font-size: 15px; padding: 0 4px; }
.nvcu-cm-mini { flex: none; border: 1px solid var(--nv-line); background: #fff; border-radius: 12px; font-size: 12px; padding: 2px 8px; color: var(--nv-mute); }
.nvcu-cm-mini:hover { border-color: var(--nv-acc); color: var(--nv-acc); }
.nvcu-cm-mini.open { background: #fff4e0; border-color: #ffc078; color: #a35200; font-weight: 700; }
@media (max-width: 600px) { .nvcu-thread { margin-left: 0; } .nvcu-thread .cm-meta { display: none; } .nvcu .cm-img { width: 96px; height: 70px; } }
.nvcu .nvcu-subs-view .cm-compose label.cm-attach { flex: 0 0 auto; display: inline-flex; align-items: center; gap: 4px; margin: 0 auto 0 0; font-weight: 600; }

/* ===== v1.7 – savaitės valandos, šventės, darbo žurnalas ===== */
.nvcu-cal-grid.with-weeks { grid-template-columns: repeat(7, 1fr) 40px; }
.nvcu-cal-grid .wd.wk { color: #5f3dc4; }
.nvcu .wk-sum { display: flex; align-items: baseline; justify-content: center; font-size: 11px; line-height: 1; border-radius: 6px; margin: 4px 0 4px 3px; background: var(--nv-bg); color: var(--nv-mute); cursor: help; font-variant-numeric: tabular-nums; align-self: center; padding: 7px 2px; }
.nvcu .wk-sum b { font-size: 12.5px; color: var(--nv-ink); }
.nvcu .wk-sum i { font-style: normal; font-size: 10px; }
.nvcu .wk-sum.none { background: none; }
.nvcu .wk-sum.future b { color: #748ffc; font-weight: 600; }
.nvcu .wk-sum.cur { background: #e7f0ff; box-shadow: inset 0 0 0 1px #a5c0f7; }
.nvcu .wk-sum.ok { background: var(--nv-ok-soft); } .nvcu .wk-sum.ok b { color: var(--nv-ok); }
.nvcu .wk-sum.under { background: #f1f3f5; }
.nvcu .wk-sum.over { background: #fff4e0; } .nvcu .wk-sum.over b { color: #c25700; }
.nvcu-day.hol > span:first-child { color: #e03131; font-weight: 700; }
.nvcu-day.hol { background-image: radial-gradient(circle at 85% 18%, #ff8787 0 2.5px, transparent 3px); }
.nvcu-day.worked > span:first-child { text-decoration: underline; text-decoration-color: #40c057; text-decoration-thickness: 2px; text-underline-offset: 3px; }
.nvcu i.hl { display: inline-block; width: 6px; height: 6px; border-radius: 50%; background: #ff8787; }
.hol-tag { font-weight: 600; color: #e03131; font-size: 12px; }

.nvcu-week { margin-top: 10px; border: 1px solid #cdd7fb; background: linear-gradient(180deg, #f5f7ff, #fff); border-radius: 10px; padding: 10px 12px; font-size: 13px; }
.nvcu-week .wk-head { display: flex; align-items: center; gap: 4px; }
.nvcu-week .wk-head .wk-num { margin-left: auto; color: var(--nv-mute); }
.nvcu-week .wk-head .wk-num b { font-size: 17px; color: var(--nv-ink); }
.nvcu-week .wk-bar { display: flex; height: 8px; border-radius: 4px; background: #e9ecef; overflow: hidden; margin: 8px 0; }
.nvcu-week .wk-bar i { display: block; height: 100%; }
.nvcu-week .wk-bar i.w { background: #40c057; } .nvcu-week .wk-bar i.o { background: #fab005; }
.nvcu-week .wk-bar i.p { background: repeating-linear-gradient(45deg, #91a7ff 0 4px, #bac8ff 4px 8px); }
.nvcu-week .wk-rows > div { display: flex; justify-content: space-between; gap: 8px; padding: 2px 0; }
.nvcu-week .wk-rows span { color: var(--nv-mute); }
.nvcu-week .wk-rows b.ok { color: var(--nv-ok); }
.nvcu-week .wk-rows .hol b { color: #e03131; font-weight: 600; text-align: right; }
.nvcu-week .wk-rows .bank b { color: #b25e09; } .nvcu-week .wk-rows .over b { color: #c25700; }
.nvcu-week .wk-bank { margin-top: 6px; background: #fff4e0; color: #8a4a06; border-radius: 6px; padding: 5px 8px; font-size: 12.5px; }
.nvcu-week .wk-timer { display: flex; gap: 6px; align-items: center; flex-wrap: wrap; margin-top: 8px; }
.nvcu-week .wk-timer .run { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: #c92a2a; }
.nvcu-week .wk-timer .run b { font-variant-numeric: tabular-nums; }

.nvcu-log { border-top: 1px dashed #cfd5e1; margin-top: 8px; padding-top: 8px; font-size: 13px; }
.nvcu-day-plan > .nvcu-log:first-child { border-top: 0; margin-top: 0; padding-top: 0; }
.nvcu-cal-day > .nvcu-log { border: 1px solid var(--nv-line); background: var(--nv-bg); border-radius: 10px; padding: 10px 12px; margin: 6px 0 8px; }
.nvcu-log ul { list-style: none; margin: 6px 0; padding: 0; display: flex; flex-direction: column; gap: 3px; }
.nvcu-log li { display: flex; align-items: center; gap: 6px; background: #fff; border-radius: 6px; padding: 4px 6px; cursor: default; }
.nvcu-log li .src { width: 16px; text-align: center; color: var(--nv-mute); }
.nvcu-log li .d { font-weight: 700; white-space: nowrap; font-variant-numeric: tabular-nums; }
.nvcu-log li .t { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--nv-mute); }
.nvcu-log .nvcu-btn.wide { width: 100%; margin: 4px 0; }
.nvcu .nvcu-log .lg-add { display: flex; gap: 6px; align-items: center; margin-top: 6px; flex-wrap: wrap; }
.nvcu .nvcu-log .lg-add select.lg-job { flex: 1 1 100px; width: auto; min-width: 0; min-height: 32px; font-size: 12.5px; padding: 3px 6px; }
.nvcu .nvcu-log .nvcu-dur input.dur-val { width: 44px; min-height: 32px; }
.nvcu .nvcu-log .nvcu-dur select.dur-unit { min-height: 32px; }
.nvcu-tri-row .c-move .nvcu-icon.tm { font-size: 11px; }
.nvcu-tri-row .c-move .nvcu-icon.tm.on { background: #ffe3e3; border-color: #ffa8a8; color: #c92a2a; animation: nvcuPulseR 1.6s infinite; }
@keyframes nvcuPulseR { 50% { box-shadow: 0 0 0 4px rgba(250, 82, 82, .15); } }
/* v1.7 – platesnis šoninis stulpelis ir kompaktiškas savaitės langelis */
.nvcu-layout { grid-template-columns: minmax(0, 1fr) 336px; }
@media (max-width: 900px) { .nvcu-layout { grid-template-columns: 1fr; } }
.nvcu-cal-grid.with-weeks { grid-template-columns: repeat(7, minmax(0, 1fr)) 42px; gap: 2px; }
.nvcu .wk-sum { flex-direction: column; align-items: center; gap: 2px; padding: 4px 1px; margin: 2px 0 2px 4px; }
.nvcu .wk-sum b { font-size: 13px; }
.nvcu .wk-sum i { font-size: 9.5px; white-space: nowrap; }
.nvcu-log li .lt { flex: 1; min-width: 0; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; color: var(--nv-mute); }
.nvcu .nvcu-log .lg-add select.lg-job { flex: 1 1 100%; }
.nvcu .nvcu-log .lg-add .nvcu-btn { margin-left: auto; }

/* v1.7.1 – minimalesnis dienos žurnalas, „Atlikta“ vietoj termino */
.nvcu .nvcu-log { font-size: 12.5px; }
.nvcu .nvcu-log .lg-head { color: var(--nv-mute); display: flex; align-items: center; gap: 4px; }
.nvcu .nvcu-log .lg-head b { color: var(--nv-ink); font-size: 13.5px; }
.nvcu .nvcu-log ul { gap: 0; margin: 4px 0; }
.nvcu .nvcu-log li { background: none; border-radius: 0; padding: 3px 0; border-bottom: 1px dotted #dee2e6; gap: 6px; }
.nvcu .nvcu-log li:last-child { border-bottom: 0; }
.nvcu .nvcu-log li .src { width: 12px; font-size: 11px; }
.nvcu .nvcu-log li.auto .src { color: var(--nv-ok); font-weight: 800; }
.nvcu .nvcu-log li .lt { color: var(--nv-ink); }
.nvcu .nvcu-log li .d { font-weight: 600; color: var(--nv-mute); font-size: 12px; }
.nvcu .nvcu-log li .cm-del { margin-left: 0; font-size: 14px; }
.nvcu .nvcu-log .lg-add { flex-wrap: nowrap; gap: 4px; margin-top: 4px; }
.nvcu .nvcu-log .lg-add input.lg-note { flex: 1 1 auto; min-width: 0; width: auto; min-height: 30px; padding: 3px 8px; font-size: 12.5px; }
.nvcu .nvcu-log .nvcu-dur input.dur-val { width: 34px; min-height: 30px; padding: 3px 4px; }
.nvcu .nvcu-log .nvcu-dur select.dur-unit { min-height: 30px; padding: 0 16px 0 5px; font-size: 12px; }
.nvcu .nvcu-log .lg-plus { flex: 0 0 30px; height: 30px; font-size: 16px; font-weight: 700; color: var(--nv-acc); }
.nvcu-cal-day > .nvcu-log { padding: 8px 10px; }
.nvcu .done-txt { color: var(--nv-ok); font-weight: 700; }
.nvcu-worked-line { font-size: 13px; color: var(--nv-mute); background: var(--nv-bg); border-radius: 8px; padding: 6px 10px; margin: 4px 0 6px; }
.nvcu-worked-line b { color: var(--nv-ink); }

/* v1.9 – nepasiekiamos dienos */
.nvcu-day.away { background-image: repeating-linear-gradient(135deg, rgba(134,142,150,.16) 0 4px, transparent 4px 8px) !important; color: #868e96; }
.nvcu-day.away > span:first-child { text-decoration: line-through; text-decoration-color: #adb5bd; }
.nvcu i.aw { display: inline-block; width: 10px; height: 10px; border-radius: 3px; vertical-align: -1px; background: repeating-linear-gradient(135deg, #ced4da 0 2px, #fff 2px 4px); border: 1px solid #ced4da; }
.away-tag { font-weight: 600; color: #495057; font-size: 12px; background: #f1f3f5; border-radius: 4px; padding: 1px 6px; }
.nvcu-awaycard { margin-top: 10px; border: 1px solid var(--nv-line); border-radius: 10px; padding: 10px 12px; font-size: 13px; background: #fff; }
.nvcu-awaycard .aw-head { display: flex; align-items: center; gap: 4px; margin-bottom: 6px; }
.nvcu-awaycard ul { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 4px; }
.nvcu-awaycard li { display: flex; align-items: flex-start; gap: 8px; padding: 6px 8px; background: var(--nv-bg); border-radius: 8px; }
.nvcu-awaycard li.now { background: #fff4e0; box-shadow: inset 3px 0 0 #f59f00; }
.nvcu-awaycard li .ic { font-size: 16px; line-height: 1.2; width: 20px; text-align: center; flex: none; }
.nvcu-awaycard li > div { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.nvcu-awaycard li small { color: var(--nv-mute); font-size: 12px; }
.nvcu-awaycard li .nvcu-badge { font-size: 10px; padding: 1px 6px; margin-left: 4px; }
.nvcu-awaycard .aw-empty { color: var(--nv-mute); margin: 0; font-size: 12.5px; }
.nvcu-awaycard .aw-add { margin-top: 8px; }
.nvcu-awaycard .aw-add summary { cursor: pointer; color: var(--nv-acc); font-weight: 600; font-size: 12.5px; }
.nvcu .nvcu-awaycard .aw-form { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; margin-top: 8px; align-items: end; }
.nvcu .nvcu-awaycard .aw-form label { display: flex; flex-direction: column; gap: 2px; font-size: 11.5px; font-weight: 600; margin: 0; }
.nvcu .nvcu-awaycard .aw-form label.w { grid-column: 1 / -1; }
.nvcu .nvcu-awaycard .aw-form input, .nvcu .nvcu-awaycard .aw-form select { min-height: 32px; padding: 3px 8px; font-size: 12.5px; }
.nvcu .nvcu-awaycard .aw-form .nvcu-btn { grid-column: 1 / -1; }
