/* VIP Task Sheet's own rules, on top of the KPI report's unchanged styles. */
[hidden] { display: none !important; }
.sign-in { min-height: calc(100vh / var(--z, 1)); display: flex; align-items: center; justify-content: center; padding: 20px; }
.sign-card { width: 400px; max-width: 100%; display: flex; flex-direction: column; gap: 8px; padding: 28px; margin: 0; }
.sign-card .brandmark { text-align: center; margin-bottom: 12px; font-size: 20px; }
.sign-btn { margin-top: 14px; height: 42px; }

.f-label { display: flex; align-items: center; gap: 8px; font-size: 12px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); margin-bottom: 6px; }
.f-input { width: 100%; box-sizing: border-box; background: #0D0F14; color: var(--text); border: 1px solid var(--border); border-radius: 6px; padding: 9px 11px; font: inherit; font-size: 15px; line-height: 1.45; outline: none; transition: border-color .15s, box-shadow .15s; }
.f-input:focus { border-color: var(--accent-dim); box-shadow: 0 0 0 2px rgba(66,193,172,.14); }
.f-input:disabled { color: var(--text-dim); background: #0c0f14; cursor: default; }
textarea.f-input { resize: vertical; display: block; }
input.f-input, select.f-input { height: 40px; }

.top-right { display: flex; align-items: center; gap: 10px; }
.who { color: var(--text-dim); font-size: 13px; white-space: nowrap; }
.save-state { font-size: 12.5px; color: var(--text-faint); }
.save-state.busy { color: var(--amber); }
.save-state.bad { color: var(--decline); }

.totals { display: flex; align-items: center; gap: 22px; flex-wrap: wrap; padding: 14px 18px; margin-bottom: 16px; }
.total-figures { display: flex; gap: 28px; }
.total-figure b { display: block; font-family: 'Geist Mono', monospace; font-size: 24px; font-weight: 600; line-height: 1.2; color: var(--text); }
.total-figure.bad b { color: var(--decline); }
.total-figure.good b { color: var(--accent); }
.total-figure span { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-dim); }
.total-bar { flex: 1 1 240px; min-width: 200px; height: 8px; border-radius: 4px; background: #0D0F14; border: 1px solid var(--border); overflow: hidden; }
.total-bar i, .side-bar i { display: block; height: 100%; background: var(--accent); transition: width .25s; }
.total-actions { display: flex; gap: 8px; }
.btn.on { border-color: var(--accent-dim); color: var(--accent); }

.layout { display: grid; grid-template-columns: 310px minmax(0, 1fr); gap: 16px; align-items: start; }
.side { position: sticky; top: calc(var(--topbar-h, 60px) + 10px); max-height: calc(100vh / var(--z, 1) - var(--topbar-h, 60px) - 24px); overflow-y: auto; overscroll-behavior: contain; background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; padding: 8px; }
.side-title { font-size: 11.5px; font-weight: 700; letter-spacing: .05em; text-transform: uppercase; color: var(--text-faint); padding: 10px 10px 6px; }
.side-item { display: block; width: 100%; text-align: left; background: none; border: 1px solid transparent; border-radius: 8px; padding: 9px 10px; color: var(--text); cursor: pointer; font: inherit; transition: background .15s, border-color .15s; }
.side-item:hover { background: rgba(255,255,255,.04); }
.side-item.active { background: rgba(66,193,172,.09); border-color: var(--accent-dim); }
.side-row { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.side-name { font-weight: 600; font-size: 15px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-count { font-family: 'Geist Mono', monospace; font-size: 12.5px; color: var(--text-dim); white-space: nowrap; }
.side-item.done .side-count { color: var(--accent); }
.side-sub { font-size: 12px; color: var(--text-faint); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.side-bar { height: 4px; margin-top: 7px; border-radius: 2px; background: #0D0F14; overflow: hidden; }

.person-head { display: flex; justify-content: space-between; align-items: center; gap: 14px; flex-wrap: wrap; padding: 16px 18px; margin-bottom: 14px; }
.person-name { font-size: 22px; font-weight: 800; color: var(--text); }
.person-sub { font-size: 13.5px; color: var(--text-dim); }
.person-actions { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }

.task { background: var(--bg-panel); border: 1px solid var(--border); border-radius: 10px; margin-bottom: 12px; }
.task.complete { border-color: var(--accent-dim); }
.task-head { display: flex; align-items: center; gap: 12px; padding: 12px 14px; cursor: pointer; user-select: none; }
.task-num { font-family: 'Geist Mono', monospace; font-size: 13px; color: var(--text-dim); width: 24px; text-align: center; flex: none; }
.task-title { font-size: 16px; font-weight: 700; color: var(--text); flex: 1; min-width: 0; }
.task-edit { font-size: 12px; color: var(--text-faint); white-space: nowrap; }
.tag { font-size: 11.5px; font-weight: 700; letter-spacing: .03em; border-radius: 5px; padding: 3px 8px; border: 1px solid; white-space: nowrap; }
.tag.miss { color: var(--decline); border-color: rgba(242,116,108,.45); background: rgba(242,116,108,.08); }
.tag.ok { color: var(--accent); border-color: var(--accent-dim); background: rgba(66,193,172,.08); }
.move { display: flex; gap: 4px; flex: none; }
.icon-btn { width: 30px; height: 30px; display: inline-flex; align-items: center; justify-content: center; background: #0D0F14; border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); cursor: pointer; font-size: 13px; line-height: 1; padding: 0; transition: color .15s, border-color .15s; }
.icon-btn:hover:not(:disabled) { color: var(--accent); border-color: var(--accent-dim); }
.icon-btn.del:hover:not(:disabled) { color: var(--decline); border-color: var(--decline); }
.icon-btn:disabled { opacity: .35; cursor: default; }

.task-body { border-top: 1px solid var(--border); padding: 16px; display: flex; flex-direction: column; gap: 18px; }
.miss-mark { display: none; font-size: 10.5px; font-weight: 700; letter-spacing: .03em; text-transform: none; color: var(--decline); }
.is-missing > .f-label .miss-mark, .is-missing > .miss-mark { display: inline; }
.is-missing > .f-input, .is-missing > .f-pair .f-input { border-color: rgba(242,116,108,.4); }
.seg { display: inline-flex; border: 1px solid var(--border); border-radius: 6px; overflow: hidden; }
.seg button { background: #0D0F14; color: var(--text-dim); border: 0; padding: 9px 26px; font: inherit; font-size: 14px; font-weight: 600; cursor: pointer; transition: background .15s, color .15s; }
.seg button + button { border-left: 1px solid var(--border); }
.seg button.on { background: rgba(66,193,172,.14); color: var(--accent); }
.seg button:disabled { cursor: default; }
.is-missing > .seg { border-color: rgba(242,116,108,.4); }

.group-box { background: var(--bg-panel-alt); border: 1px solid var(--border); border-radius: 8px; padding: 14px; display: flex; flex-direction: column; gap: 12px; }
.group-title { display: flex; align-items: center; gap: 8px; font-size: 13px; font-weight: 700; letter-spacing: .04em; text-transform: uppercase; color: var(--text); }
.report-card { border: 1px solid var(--border); border-radius: 8px; padding: 12px; display: grid; grid-template-columns: 1fr 1fr; gap: 12px; background: var(--bg-sunk); position: relative; }
.report-card .wide { grid-column: 1 / -1; }
.report-head { display: flex; justify-content: space-between; align-items: center; grid-column: 1 / -1; font-size: 12.5px; font-weight: 700; color: var(--text-dim); }
.filter-row { display: grid; grid-template-columns: 240px minmax(0, 1fr) 30px; gap: 8px; align-items: start; }
.filter-name { height: 40px; display: flex; align-items: center; font-weight: 600; font-size: 14px; color: var(--text); padding: 0 11px; background: var(--bg-sunk); border: 1px solid var(--border); border-radius: 6px; box-sizing: border-box; }
.filter-row .miss-mark { grid-column: 2; }
.add-btn { align-self: flex-start; }
.two-col { display: grid; grid-template-columns: 1fr 1fr; gap: 16px; }
.days { display: flex; flex-wrap: wrap; gap: 6px; }
.day { background: #0D0F14; border: 1px solid var(--border); border-radius: 6px; color: var(--text-dim); padding: 8px 12px; font: inherit; font-size: 13.5px; font-weight: 600; cursor: pointer; }
.day.on { background: rgba(66,193,172,.14); border-color: var(--accent-dim); color: var(--accent); }
.day:disabled { cursor: default; }
.is-missing > .days .day { border-color: rgba(242,116,108,.4); }
.empty-note { padding: 26px; text-align: center; color: var(--text-faint); }
.add-task { display: flex; gap: 8px; margin-top: 4px; }

.add-user { display: flex; gap: 12px; align-items: flex-end; flex-wrap: wrap; margin-bottom: 16px; }
.add-field { width: 280px; max-width: 100%; }
.pass-body { display: flex; flex-direction: column; gap: 8px; }
.pass-val { font-family: 'Geist Mono', monospace; font-size: 18px; color: var(--accent); margin-bottom: 8px; word-break: break-all; }
.user-actions { display: flex; gap: 6px; justify-content: center; flex-wrap: wrap; }
#usersBody table.main { min-width: 0; }
#usersBody .f-input { height: 36px; padding: 4px 8px; max-width: 160px; margin: 0 auto; }

@media (max-width: 799px) {
  body { zoom: 1; --z: 1; }
  :root { --z: 1; }
  .topbar-inner { flex-wrap: wrap; }
  .topbar-meta { display: none; }
  .layout { grid-template-columns: 1fr; }
  .side { position: static; max-height: none; display: flex; overflow-x: auto; gap: 6px; }
  .side-title { display: none; }
  .side-item { width: 190px; flex: none; }
  .two-col, .report-card { grid-template-columns: 1fr; }
  .filter-row { grid-template-columns: minmax(0, 1fr) 30px; }
  .filter-row > :nth-child(2) { grid-column: 1 / -1; grid-row: 2; }
  .task-edit { display: none; }
  .f-input { font-size: 16px; }
  .total-figures { gap: 18px; }
  .icon-btn { width: 36px; height: 36px; }
}
@media (hover: none) { .side-item:hover { background: none; } }
