/* ── Work shell frame (Darwin backend + Organisatie backend) ───────────── */

body.v2 .work-shell {
  background:
    radial-gradient(ellipse at 0% 0%, rgba(255, 252, 246, 0.5) 0%, transparent 50%),
    radial-gradient(ellipse at 100% 100%, rgba(223, 204, 187, 0.2) 0%, transparent 50%),
    var(--c-bg);
  min-height: calc(100vh - 56px);
  display: grid;
  grid-template-columns: 260px 1fr;
}

body.v2 .work-sidebar {
  background: rgba(255, 255, 255, 0.55);
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border-right: 1px solid rgba(26, 25, 25, 0.06);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

body.v2 .work-sidebar-brand {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 4px 8px 14px;
  border-bottom: 1px solid rgba(26, 25, 25, 0.05);
}

body.v2 .work-sidebar-logo {
  width: 40px;
  height: 40px;
  border-radius: 11px;
  object-fit: cover;
  background: var(--c-surface);
  flex-shrink: 0;
}

body.v2 .work-sidebar-brand-text {
  min-width: 0;
  overflow: hidden;
}

body.v2 .work-sidebar-brand-label {
  font-size: 10px;
  font-weight: 600;
  color: var(--c-text-3);
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

body.v2 .work-sidebar-brand-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
  margin-top: 1px;
}

body.v2 .work-nav-section { margin-bottom: 4px; }

body.v2 .work-nav-title {
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.1em;
  text-transform: uppercase;
  color: var(--c-text-3);
  padding: 8px 12px 6px;
}

body.v2 .work-nav-item {
  display: flex;
  align-items: center;
  gap: 11px;
  padding: 9px 12px;
  border-radius: 10px;
  color: var(--c-text-2);
  font-size: 13px;
  font-weight: 500;
  letter-spacing: -0.005em;
  cursor: pointer;
  margin-bottom: 2px;
  transition: background 150ms, color 150ms;
}

body.v2 .work-nav-item:hover {
  background: rgba(26, 25, 25, 0.04);
  color: var(--c-text);
}

body.v2 .work-nav-item.active {
  background: var(--brand-taupe);
  color: var(--brand-black);
  font-weight: 600;
  box-shadow: 0 2px 6px rgba(179, 155, 136, 0.25);
}

body.v2 .work-nav-item svg {
  width: 16px;
  height: 16px;
  stroke: currentColor;
  stroke-width: 1.7;
  fill: none;
}

body.v2 .work-nav-count {
  margin-left: auto;
  font-size: 11px;
  color: var(--c-text-3);
  font-weight: 500;
}

body.v2 .work-nav-item.active .work-nav-count {
  color: rgba(26, 25, 25, 0.6);
}

body.v2 .work-nav-count.urgent {
  background: var(--st-critical-bg);
  color: var(--st-critical);
  padding: 1px 7px;
  border-radius: 99px;
  font-weight: 600;
}

body.v2 .work-sidebar-footer {
  margin-top: auto;
  padding: 12px 8px;
  border-top: 1px solid rgba(26, 25, 25, 0.05);
  display: flex;
  align-items: center;
  gap: 10px;
  font-size: 12px;
}

body.v2 .work-user-avatar {
  width: 42px;
  height: 42px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-sand), var(--brand-taupe));
  display: flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 14px;
  color: var(--brand-black);
  flex-shrink: 0;
}

body.v2 .work-main {
  padding: 28px 36px 48px;
  overflow-y: auto;
  max-width: 1280px;
}

body.v2 .work-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 24px;
  gap: 16px;
}

body.v2 .work-title {
  font-size: 26px;
  font-weight: 700;
  letter-spacing: -0.028em;
  color: var(--c-text);
  margin-bottom: 4px;
  line-height: 1.15;
}

body.v2 .work-sub {
  font-size: 13px;
  color: var(--c-text-2);
  font-weight: 500;
}

body.v2 .work-head-actions {
  display: flex;
  gap: 8px;
  flex-shrink: 0;
}

/* ── F-59 Optie B: mobile-nav drawer ──────────────────────────────── */
body.v2 .work-nav-toggle {
  display: none;
  position: fixed;
  top: 64px;
  left: 12px;
  z-index: 110;
  background: rgba(255, 255, 255, 0.85);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  width: 40px;
  height: 40px;
  cursor: pointer;
  font-size: 18px;
  align-items: center;
  justify-content: center;
  font-family: inherit;
  color: var(--c-text);
  box-shadow: var(--sh-sm);
  padding: 0;
  line-height: 1;
}
body.v2 .work-nav-toggle:hover { background: rgba(255, 255, 255, 0.95); }
body.v2 .work-nav-toggle:active { transform: scale(0.96); }
body.v2 .work-shell.nav-open .work-nav-toggle { display: none; }

body.v2 .work-nav-backdrop {
  display: none;
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 25, 0.25);
  -webkit-backdrop-filter: blur(6px) saturate(120%);
  backdrop-filter: blur(6px) saturate(120%);
  z-index: 95;
  opacity: 0;
  transition: opacity 200ms;
  pointer-events: none;
}
body.v2 .work-shell.nav-open .work-nav-backdrop {
  display: block;
  opacity: 1;
  pointer-events: auto;
}

@media (max-width: 1200px) {
  body.v2 .work-shell { grid-template-columns: 1fr; }
  body.v2 .work-nav-toggle { display: inline-flex; }
  body.v2 .work-sidebar {
    position: fixed;
    top: 56px;
    left: 0;
    bottom: 0;
    width: 280px;
    z-index: 100;
    transform: translateX(-100%);
    transition: transform 220ms ease;
    border-right: 1px solid var(--c-border);
    box-shadow: 0 12px 48px rgba(26, 25, 25, 0.18);
  }
  body.v2 .work-shell.nav-open .work-sidebar {
    transform: translateX(0);
  }
  body.v2 .work-main {
    padding-top: 60px;
  }
}

/* ── CTA buttons ────────────────────────────────────────────────────────── */
body.v2 .work-cta {
  background: var(--brand-taupe);
  color: var(--brand-black);
  padding: 9px 18px;
  border-radius: 10px;
  font-size: 13px;
  font-weight: 600;
  letter-spacing: -0.005em;
  box-shadow: 0 2px 6px rgba(179,155,136,0.3);
  transition: transform 150ms, box-shadow 150ms;
  border: none;
  cursor: pointer;
  font-family: inherit;
}
body.v2 .work-cta:hover { box-shadow: 0 4px 10px rgba(179,155,136,0.35); }
body.v2 .work-cta:active { transform: scale(0.98); }

body.v2 .work-cta-secondary {
  background: rgba(255,255,255,0.6);
  color: var(--c-text);
  padding: 8px 16px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 500;
  border: 1px solid rgba(26,25,25,0.08);
  transition: background 150ms;
  cursor: pointer;
  font-family: inherit;
}
body.v2 .work-cta-secondary:hover { background: rgba(255,255,255,0.9); }

body.v2 .work-cta-danger {
  background: var(--st-critical-bg);
  color: var(--st-critical);
  padding: 8px 14px;
  border-radius: 10px;
  font-size: 12.5px;
  font-weight: 600;
  border: 1px solid transparent;
  cursor: pointer;
  font-family: inherit;
  transition: background 150ms;
}
body.v2 .work-cta-danger:hover { background: rgba(200, 90, 90, 0.22); }

/* ── Panels ─────────────────────────────────────────────────────────────── */
body.v2 .work-panel {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  overflow: hidden;
  margin-bottom: 20px;
  box-shadow: var(--sh-sm);
}

body.v2 .work-panel-head {
  padding: 16px 20px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 14px;
}

body.v2 .work-panel-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

body.v2 .work-panel-sub {
  font-size: 12px;
  color: var(--c-text-2);
  margin-top: 2px;
}

body.v2 .work-panel-body { padding: 20px; }

/* ── Forms ──────────────────────────────────────────────────────────────── */
body.v2 .work-form-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 16px;
}

body.v2 .work-form-full { grid-column: 1 / -1; }

body.v2 .work-label {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--c-text-2);
  letter-spacing: -0.005em;
  margin-bottom: 6px;
  display: block;
}

body.v2 .work-input,
body.v2 .work-select,
body.v2 .work-textarea {
  width: 100%;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 13.5px;
  color: var(--c-text);
  outline: none;
  transition: border-color 150ms, background 150ms;
  font-family: inherit;
  box-sizing: border-box;
}

body.v2 .work-input:focus,
body.v2 .work-select:focus,
body.v2 .work-textarea:focus {
  border-color: var(--brand-taupe);
  background: var(--c-surface);
}

body.v2 .work-input::placeholder { color: var(--c-text-3); }

body.v2 .work-textarea {
  min-height: 80px;
  resize: vertical;
  font-family: inherit;
}

body.v2 .work-input.mono { font-family: 'JetBrains Mono', monospace; }

/* ── Chips (filter + toggle) ────────────────────────────────────────────── */
body.v2 .work-chip {
  padding: 6px 13px;
  border-radius: 99px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-size: 12px;
  font-weight: 500;
  color: var(--c-text-2);
  cursor: pointer;
  transition: all 150ms;
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

body.v2 .work-chip:hover {
  border-color: var(--c-border-strong);
  color: var(--c-text);
}

body.v2 .work-chip.active {
  background: var(--brand-taupe);
  border-color: var(--brand-taupe);
  color: var(--brand-black);
  font-weight: 600;
}

/* ── Sub-tabs ───────────────────────────────────────────────────────────── */
body.v2 .work-subtabs {
  display: flex;
  gap: 4px;
  background: rgba(255,255,255,0.55);
  padding: 4px;
  border-radius: 10px;
  border: 1px solid rgba(26,25,25,0.06);
  width: fit-content;
  flex-wrap: wrap;
  margin-bottom: 24px;
}

body.v2 .work-subtab {
  padding: 7px 14px;
  border-radius: 7px;
  font-size: 12.5px;
  color: var(--c-text-2);
  font-weight: 500;
  letter-spacing: -0.005em;
  white-space: nowrap;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}

body.v2 .work-subtab:hover { color: var(--c-text); }

body.v2 .work-subtab.active {
  background: var(--brand-taupe);
  color: var(--brand-black);
  font-weight: 600;
}

/* ── Entity cards ───────────────────────────────────────────────────────── */
body.v2 .work-ent-list { display: grid; gap: 10px; }

body.v2 .work-ent-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 16px 18px;
  box-shadow: var(--sh-sm);
  transition: box-shadow 150ms;
}

body.v2 .work-ent-card:hover { box-shadow: var(--sh-md); }

body.v2 .work-ent-card.selected {
  border-color: var(--brand-taupe);
  box-shadow: 0 2px 10px rgba(179, 155, 136, 0.22);
}

body.v2 .work-ent-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

body.v2 .work-ent-title-row {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 4px;
  flex-wrap: wrap;
}

body.v2 .work-ent-title {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.012em;
}

body.v2 .work-ent-meta {
  font-size: 12px;
  color: var(--c-text-2);
  font-weight: 500;
  line-height: 1.5;
}

body.v2 .work-ent-tags {
  display: flex;
  gap: 6px;
  margin-top: 12px;
  flex-wrap: wrap;
}

body.v2 .work-ent-tag {
  padding: 3px 10px;
  border-radius: 99px;
  background: var(--c-surface-2);
  border: 1px solid var(--c-border);
  font-size: 10.5px;
  color: var(--c-text-2);
  font-weight: 500;
}

body.v2 .work-ent-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  flex-shrink: 0;
}

body.v2 .work-ent-action {
  padding: 6px 12px;
  border-radius: 8px;
  font-size: 11.5px;
  font-weight: 500;
  background: rgba(26,25,25,0.04);
  color: var(--c-text);
  border: 1px solid transparent;
  transition: background 120ms;
  cursor: pointer;
  font-family: inherit;
}

body.v2 .work-ent-action:hover { background: rgba(26,25,25,0.07); }

/* ── Badges ─────────────────────────────────────────────────────────────── */
body.v2 .work-badge {
  padding: 3px 10px;
  border-radius: 99px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.01em;
  display: inline-flex;
  align-items: center;
}

body.v2 .work-badge.active    { background: var(--st-resolved-bg);  color: var(--st-resolved); }
body.v2 .work-badge.renewal   { background: var(--st-critical-bg);  color: var(--st-critical); }
body.v2 .work-badge.expiring  { background: var(--st-submitted-bg); color: var(--st-submitted); }
body.v2 .work-badge.info      { background: var(--st-scheduled-bg); color: var(--st-scheduled); }
body.v2 .work-badge.muted     { background: rgba(26,25,25,0.06);    color: var(--c-text-2); }

/* ── Table ──────────────────────────────────────────────────────────────── */
body.v2 .work-table {
  width: 100%;
  border-collapse: collapse;
}

body.v2 .work-table thead th {
  text-align: left;
  padding: 12px 20px;
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.08em;
  text-transform: uppercase;
  color: var(--c-text-3);
  border-bottom: 1px solid var(--c-border);
  background: var(--c-surface-2);
}

body.v2 .work-table tbody td {
  padding: 14px 20px;
  font-size: 13px;
  color: var(--c-text);
  border-bottom: 1px solid var(--c-border);
  vertical-align: middle;
}

body.v2 .work-table tbody tr:last-child td { border-bottom: none; }

body.v2 .work-table tbody tr { transition: background 100ms; }

body.v2 .work-table tbody tr:hover { background: rgba(26,25,25,0.02); }

body.v2 .work-table-wrap { overflow-x: auto; }

/* ── Toggle switch ──────────────────────────────────────────────────────── */
body.v2 .work-toggle {
  width: 40px;
  height: 22px;
  background: rgba(26,25,25,0.12);
  border-radius: 99px;
  position: relative;
  cursor: pointer;
  transition: background 180ms;
  border: 1px solid rgba(26,25,25,0.08);
  display: inline-block;
  flex-shrink: 0;
}

body.v2 .work-toggle::after {
  content: '';
  position: absolute;
  top: 1px;
  left: 1px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: white;
  transition: transform 180ms;
  box-shadow: 0 1px 3px rgba(26,25,25,0.2);
}

body.v2 .work-toggle.on {
  background: var(--brand-taupe);
  border-color: var(--brand-taupe);
}
body.v2 .work-toggle.on::after { transform: translateX(18px); }

/* ── Empty state ────────────────────────────────────────────────────────── */
body.v2 .work-empty {
  padding: 44px 20px;
  text-align: center;
  color: var(--c-text-3);
  font-size: 13px;
  font-weight: 500;
  background: var(--c-surface);
  border: 1px dashed var(--c-border);
  border-radius: 14px;
}

/* ── Avatar (tabel) ─────────────────────────────────────────────────────── */
body.v2 .work-avatar-sm {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, var(--brand-sand), var(--brand-taupe));
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 600;
  font-size: 11px;
  color: var(--brand-black);
  flex-shrink: 0;
}

/* ── File icon (docs) ───────────────────────────────────────────────────── */
body.v2 .work-file-ico {
  width: 36px;
  height: 36px;
  border-radius: 9px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 9.5px;
  font-weight: 700;
  letter-spacing: 0.02em;
  flex-shrink: 0;
}

/* ── Modal ──────────────────────────────────────────────────────────────── */
body.v2 .v2-modal-backdrop {
  position: fixed;
  inset: 0;
  background: rgba(26, 25, 25, 0.45);
  backdrop-filter: blur(6px);
  -webkit-backdrop-filter: blur(6px);
  z-index: 1000;
  display: flex;
  align-items: center;
  justify-content: center;
  padding: 24px;
  animation: v2ModalFadeIn 160ms ease-out;
}

@keyframes v2ModalFadeIn {
  from { opacity: 0; }
  to   { opacity: 1; }
}

body.v2 .v2-modal {
  background: var(--c-surface);
  border-radius: var(--r-lg);
  box-shadow: var(--sh-lg);
  width: 100%;
  max-width: 600px;
  max-height: calc(100vh - 48px);
  display: flex;
  flex-direction: column;
  animation: v2ModalSlideIn 200ms cubic-bezier(0.2, 0.9, 0.3, 1);
  overflow: hidden;
}

body.v2 .v2-modal.wide { max-width: 760px; }

@keyframes v2ModalSlideIn {
  from { opacity: 0; transform: translateY(12px) scale(0.98); }
  to   { opacity: 1; transform: translateY(0) scale(1); }
}

body.v2 .v2-modal-head {
  padding: 20px 24px 16px;
  border-bottom: 1px solid var(--c-border);
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 14px;
}

body.v2 .v2-modal-title {
  font-size: 17px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.015em;
  line-height: 1.25;
}

body.v2 .v2-modal-sub {
  font-size: 12.5px;
  color: var(--c-text-2);
  font-weight: 500;
  margin-top: 3px;
}

body.v2 .v2-modal-close {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  background: transparent;
  border: none;
  cursor: pointer;
  color: var(--c-text-3);
  font-size: 18px;
  line-height: 1;
  transition: background 120ms, color 120ms;
  flex-shrink: 0;
  font-family: inherit;
}

body.v2 .v2-modal-close:hover {
  background: rgba(26, 25, 25, 0.06);
  color: var(--c-text);
}

body.v2 .v2-modal-body {
  padding: 20px 24px;
  overflow-y: auto;
  flex: 1;
}

body.v2 .v2-modal-foot {
  padding: 14px 24px;
  border-top: 1px solid var(--c-border);
  display: flex;
  justify-content: flex-end;
  gap: 8px;
  background: var(--c-surface-2);
}

body.v2 .v2-modal-feedback {
  font-size: 12px;
  margin-top: 12px;
  padding: 10px 12px;
  border-radius: 8px;
  display: none;
}
body.v2 .v2-modal-feedback.error   { display: block; background: var(--st-critical-bg); color: var(--st-critical); }
body.v2 .v2-modal-feedback.success { display: block; background: var(--st-resolved-bg); color: var(--st-resolved); }
body.v2 .v2-modal-feedback.info    { display: block; background: var(--c-surface-2); color: var(--c-text-2); }

/* ── Doc-picker row ─────────────────────────────────────────────────────── */
body.v2 .work-file-row {
  display: flex;
  align-items: center;
  gap: 10px;
  background: var(--c-surface-2);
  border: 1px dashed var(--c-border);
  border-radius: 10px;
  padding: 10px 12px;
  font-size: 12px;
  color: var(--c-text-2);
}

body.v2 .work-file-row input[type=file] { display: none; }

body.v2 .work-file-row label.work-cta-secondary {
  cursor: pointer;
  margin-right: 4px;
}

/* ── Toast ──────────────────────────────────────────────────────── */
body.v2 .v2-toast-container {
  position: fixed;
  right: 20px;
  bottom: 20px;
  z-index: 2000;
  display: flex;
  flex-direction: column;
  gap: 8px;
  pointer-events: none;
}

body.v2 .v2-toast {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 12px;
  padding: 12px 18px 12px 14px;
  box-shadow: var(--sh-lg);
  font-size: 13px;
  font-weight: 500;
  color: var(--c-text);
  max-width: 360px;
  display: flex;
  align-items: center;
  gap: 10px;
  pointer-events: auto;
  animation: v2ToastSlide 220ms cubic-bezier(0.2, 0.9, 0.3, 1);
}

body.v2 .v2-toast.closing { animation: v2ToastOut 180ms ease-in forwards; }

body.v2 .v2-toast .dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
}

body.v2 .v2-toast.success { border-color: rgba(126, 168, 133, 0.35); }
body.v2 .v2-toast.success .dot { background: var(--st-resolved); }
body.v2 .v2-toast.error   { border-color: rgba(200, 90, 90, 0.35); }
body.v2 .v2-toast.error .dot   { background: var(--st-critical); }
body.v2 .v2-toast.info    { border-color: rgba(137, 163, 181, 0.35); }
body.v2 .v2-toast.info .dot    { background: var(--st-scheduled); }
body.v2 .v2-toast.warning { border-color: rgba(201, 160, 99, 0.4); }
body.v2 .v2-toast.warning .dot { background: #c9a063; }

/* F-117: action + close-buttons in toast */
body.v2 .v2-toast .v2-toast-msg { flex: 1; }
body.v2 .v2-toast .v2-toast-action {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--brand-taupe-deep);
  cursor: pointer;
  padding: 4px 6px;
  margin-left: 4px;
  border-radius: 6px;
}
body.v2 .v2-toast .v2-toast-action:hover {
  background: var(--brand-ivory);
}
body.v2 .v2-toast .v2-toast-close {
  background: transparent;
  border: none;
  font-size: 18px;
  line-height: 1;
  color: var(--c-text-3);
  cursor: pointer;
  padding: 2px 6px;
  margin-left: 2px;
  border-radius: 6px;
}
body.v2 .v2-toast .v2-toast-close:hover {
  background: var(--brand-ivory);
  color: var(--c-text);
}

/* F-118: date-range-filter-component (dwDateRange) */
body.v2 .dw-dr-wrap {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 12px;
}
body.v2 .dw-dr-chips {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 4px;
  background: var(--c-surface);
  border: 1px solid var(--c-border-strong);
  border-radius: 10px;
  padding: 3px;
}
body.v2 .dw-dr-chip {
  background: transparent;
  border: none;
  font-family: inherit;
  font-size: 12.5px;
  font-weight: 500;
  color: var(--c-text-2);
  padding: 6px 12px;
  border-radius: 7px;
  cursor: pointer;
  transition: background 120ms, color 120ms;
}
body.v2 .dw-dr-chip:hover {
  background: var(--brand-ivory);
  color: var(--c-text);
}
body.v2 .dw-dr-chip.active {
  background: var(--brand-black);
  color: #fff;
}
body.v2 .dw-dr-custom {
  display: inline-flex;
  align-items: center;
  gap: 6px;
}
body.v2 .dw-dr-input {
  border: 1px solid var(--c-border-strong);
  border-radius: 8px;
  padding: 6px 10px;
  font-family: inherit;
  font-size: 12.5px;
  background: var(--c-surface);
  color: var(--c-text);
}
body.v2 .dw-dr-input:focus {
  outline: none;
  border-color: var(--brand-taupe);
}
body.v2 .dw-dr-sep {
  font-size: 12px;
  color: var(--c-text-3);
}

@keyframes v2ToastSlide {
  from { opacity: 0; transform: translateY(14px); }
  to   { opacity: 1; transform: translateY(0); }
}

@keyframes v2ToastOut {
  from { opacity: 1; transform: translateY(0); }
  to   { opacity: 0; transform: translateY(12px); }
}

/* ── Spinner (inline sync indicator) ───────────────────────────── */
body.v2 .v2-spinner {
  display: inline-block;
  width: 13px;
  height: 13px;
  border: 2px solid rgba(26, 25, 25, 0.18);
  border-top-color: var(--brand-black);
  border-radius: 50%;
  animation: v2Spin 0.7s linear infinite;
  vertical-align: -2px;
  margin-right: 6px;
}

@keyframes v2Spin {
  to { transform: rotate(360deg); }
}

body.v2 .work-cta[disabled] {
  opacity: 0.65;
  cursor: default;
  pointer-events: none;
}

/* ── KPI grid (work-kpi) ────────────────────────────────────────────────── */
body.v2 .work-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, 1fr);
  gap: 12px;
  margin-bottom: 24px;
}

@media (max-width: 1200px) {
  body.v2 .work-kpi-grid { grid-template-columns: 1fr 1fr; }
}

@media (max-width: 900px) {
  body.v2 .work-kpi-grid { grid-template-columns: 1fr; }
}

body.v2 .work-kpi {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--sh-sm);
  transition: transform 150ms, box-shadow 150ms;
}

body.v2 .work-kpi:hover {
  box-shadow: var(--sh-md);
  transform: translateY(-1px);
}

body.v2 .work-kpi-label {
  font-size: 10.5px;
  font-weight: 600;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  margin-bottom: 10px;
}

body.v2 .work-kpi-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 30px;
  font-weight: 700;
  letter-spacing: -0.02em;
  color: var(--c-text);
  line-height: 1;
}

body.v2 .work-kpi-value.submitted { color: var(--st-submitted); }
body.v2 .work-kpi-value.picked    { color: var(--st-picked); }
body.v2 .work-kpi-value.scheduled { color: var(--st-scheduled); }
body.v2 .work-kpi-value.resolved  { color: var(--st-resolved); }
body.v2 .work-kpi-value.critical  { color: var(--st-critical); }

body.v2 .work-kpi-foot {
  font-size: 11.5px;
  color: var(--c-text-2);
  margin-top: 6px;
  font-weight: 500;
}

/* ── Row-between (header + action inline) ────────────────────────────── */
body.v2 .row-between {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
}

/* ── Project-card grid (work-loc-*) ──────────────────────────────────── */
body.v2 .work-loc-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(320px, 1fr));
  gap: 14px;
}

body.v2 .work-loc-card {
  background: var(--c-surface);
  border: 1px solid var(--c-border);
  border-radius: 14px;
  padding: 18px;
  box-shadow: var(--sh-sm);
  cursor: pointer;
  transition: transform 150ms, box-shadow 150ms;
}

body.v2 .work-loc-card:hover {
  transform: translateY(-2px);
  box-shadow: var(--sh-md);
}

body.v2 .work-loc-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  margin-bottom: 10px;
  gap: 10px;
}

body.v2 .work-loc-name {
  font-size: 15px;
  font-weight: 600;
  color: var(--c-text);
  letter-spacing: -0.012em;
}

body.v2 .work-loc-city {
  font-size: 12px;
  color: var(--c-text-2);
  margin-top: 2px;
}

body.v2 .work-loc-stats {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 12px;
  padding-top: 12px;
  margin-top: 12px;
  border-top: 1px solid var(--c-border);
}

body.v2 .work-loc-stat-label {
  font-size: 10px;
  letter-spacing: 0.06em;
  text-transform: uppercase;
  color: var(--c-text-3);
  font-weight: 600;
  margin-bottom: 3px;
}

body.v2 .work-loc-stat-value {
  font-family: 'JetBrains Mono', monospace;
  font-size: 16px;
  font-weight: 700;
  color: var(--c-text);
  letter-spacing: -0.01em;
}

body.v2 .work-loc-stat-value.ok   { color: var(--st-resolved); }
body.v2 .work-loc-stat-value.warn { color: var(--st-submitted); }
