@charset "UTF-8";
.manager-pulse:not(.pbi-kpi-strip) {
  display: grid;
  grid-template-columns: minmax(210px, 1.7fr) repeat(3, minmax(100px, 1fr));
  gap: 1px;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  background: var(--line);
  overflow: hidden;
  margin: 0 0 14px;
  box-shadow: var(--shadow-xs);
}

.manager-pulse:not(.pbi-kpi-strip) > * {
  background: var(--surface-card, var(--surface));
  padding: 11px 16px;
  min-width: 0;
  transition: background var(--duration-fast);
}

.pulse-main > strong {
  display: block;
  font-size: 20px;
  font-weight: 750;
  color: var(--accent);
  line-height: 1.2;
  margin: 2px 0 5px;
  letter-spacing: -0.02em;
  font-variant-numeric: tabular-nums;
}

.pulse-main > strong small {
  font-size: 14px;
  font-weight: 550;
  margin-left: 2px;
}

.pulse-main p {
  font-size: 11px;
  margin: 6px 0 0;
  color: var(--muted);
}

.pulse-track {
  height: 5px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.pulse-track span {
  display: block;
  height: 100%;
  background: var(--accent);
  border-radius: inherit;
  transition: width 200ms var(--ease);
}

.pulse-metric {
  display: flex;
  flex-direction: column;
  gap: 3px;
  justify-content: center;
  align-items: flex-start;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
}

.pulse-metric.is-clickable {
  cursor: pointer;
  border-radius: var(--radius-md);
  padding: 4px 8px;
  margin: 0;
  transition: var(--duration-fast);
  transition-property: background-color, transform;
}

.pulse-metric.is-clickable:hover {
  background: var(--surface-hover);
  transform: translateY(-1px);
}

.pulse-metric .status-dot {
  width: 8px;
  height: 8px;
}

.pulse-metric strong {
  font-size: 24px;
  font-weight: 700;
  line-height: 1.2;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.025em;
}

.pulse-metric > span:last-child {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
}

.approval-metric {
  text-align: left;
  cursor: pointer;
  transition: var(--duration-fast);
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
}

.approval-metric:hover {
  background: var(--accent-soft);
}

.approval-metric strong {
  color: var(--accent);
}

.section-heading {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 12px;
}

.section-heading h2 {
  font-size: 16px;
  margin: 2px 0 4px;
  font-weight: 650;
}

.section-heading p {
  font-size: 12px;
  color: var(--muted);
  margin: 0;
}

.section-heading .control {
  min-width: 160px;
}

.count-chip {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: var(--accent-soft);
  color: var(--accent);
  padding: 2px 8px;
  margin-left: 6px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 650;
  vertical-align: middle;
}

.overview-hero {
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 20px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}

.overview-hero .overview-hero-header {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}

.overview-hero .overview-hero-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--accent);
  letter-spacing: 0.05em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.overview-hero .overview-hero-title {
  font-size: 17px;
  font-weight: 750;
  margin: 0;
  color: var(--fg);
  letter-spacing: -0.02em;
}

.overview-hero .overview-hero-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  font-size: 11.5px;
  font-weight: 600;
}

.approval-queue {
  padding: 16px 20px;
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  margin-bottom: 20px;
  scroll-margin-top: 90px;
  box-shadow: var(--shadow-xs);
  display: block;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 480px) {
  .approval-queue {
    padding: 14px 10px;
  }
}
.approval-queue[data-empty=true] {
  display: block;
}

.approval-queue .approval-heading-controls {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px;
}

.approval-queue .approval-scope-switch {
  display: inline-flex;
  align-items: center;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  padding: 2px;
  gap: 2px;
}

.approval-queue .approval-scope-switch .scope-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 28px;
  min-width: 28px;
  border-radius: var(--radius-sm);
  border: none;
  font-size: 11.5px;
  font-weight: 550;
  padding: 4px 10px;
  background: transparent;
  color: #475569;
  cursor: pointer;
  transition: var(--duration-fast);
  white-space: nowrap;
}

.approval-queue .approval-scope-switch .scope-btn:hover {
  color: var(--fg);
}

.approval-queue .approval-scope-switch .scope-btn.active {
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.approval-hub-tabs {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 2px;
  margin: 12px 0 16px;
  padding: 3px;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  max-width: 100%;
  box-sizing: border-box;
}

.approval-hub-tabs .approval-tab {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: var(--radius-sm);
  font-size: 12px;
  font-weight: 550;
  color: #475569;
  background: transparent;
  border: none;
  cursor: pointer;
  transition: color var(--duration-fast), background-color var(--duration-fast), border-color var(--duration-fast), box-shadow var(--duration-fast);
  max-width: 100%;
}

.approval-hub-tabs .approval-tab:hover {
  color: var(--fg);
}

.approval-hub-tabs .approval-tab.active {
  background: var(--surface);
  color: var(--fg);
  font-weight: 600;
  box-shadow: 0 1px 2px rgba(0, 0, 0, 0.06);
}

.approval-hub-tabs .approval-tab.active .tab-badge {
  background: var(--bg-subtle);
  color: var(--fg);
}

.approval-hub-tabs .approval-tab .tab-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 16px;
  height: 16px;
  padding: 0 4px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  background: var(--line-subtle);
  color: inherit;
}

.approval-queue-list {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(100%, 320px), 1fr));
  gap: 12px;
  margin-top: 10px;
  max-width: 100%;
  box-sizing: border-box;
}

@media (max-width: 650px) {
  .approval-queue-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.approval-card-item {
  display: flex;
  min-width: 0;
  max-width: 100%;
}

.approval-card,
.approval-preview {
  display: flex;
  flex-direction: column;
  text-align: left;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  box-sizing: border-box;
  padding: 13px 15px;
  border: 1px solid var(--line);
  background: var(--surface-card, var(--surface));
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: var(--duration-fast);
  transition-property: color, background-color, border-color, box-shadow, transform;
  cursor: pointer;
}

.approval-card:hover,
.approval-preview:hover {
  background: var(--surface-hover);
  border-color: var(--line-strong, #cbd5e1);
  box-shadow: var(--shadow-sm);
  transform: translateY(-1px);
}

.approval-preview.is-delete {
  border-left: 4px solid var(--danger);
}

.approval-preview.is-delete:hover {
  border-color: var(--danger);
  box-shadow: var(--glass-specular), 0 8px 24px rgba(239, 68, 68, 0.14);
}

.approval-preview.is-timeline {
  border-left: 4px solid var(--accent);
}

.approval-preview .approval-card-header {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 12px;
  width: 100%;
}

.approval-preview .approval-card-types {
  flex: 1;
  min-width: 0;
}

.approval-preview .approval-kind-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  color: var(--accent);
}

.approval-preview .approval-kind-badge.delete {
  color: var(--danger);
}

.approval-preview .approval-kind-badge.timeline {
  color: var(--accent);
}

.approval-preview .approval-time {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.approval-preview .approval-status-pill {
  padding: 3px 8px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 650;
}

.approval-preview .approval-status-pill.pending {
  background: var(--warning-bg);
  color: #92400e;
  border: 1px solid var(--warning-border);
}

.approval-preview .approval-card-body {
  flex: 1;
  min-width: 0;
  margin-bottom: 12px;
}

.approval-preview .approval-task-title {
  display: block;
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.4;
  margin-bottom: 6px;
  overflow-wrap: anywhere;
}

.approval-preview .approval-requester {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11.5px;
  color: var(--muted);
  margin-bottom: 8px;
}

.approval-preview .approval-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: var(--accent-soft);
  color: var(--accent);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.approval-preview .approval-diff-box {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  background: var(--bg-subtle);
  border: 1px dashed var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 8px 10px;
  margin: 8px 0;
}

.approval-preview .approval-diff-box .diff-col {
  min-width: 0;
  font-size: 11px;
}

.approval-preview .approval-diff-box .diff-col.diff-before {
  text-align: left;
}

.approval-preview .approval-diff-box .diff-col.diff-after {
  text-align: right;
}

.approval-preview .approval-diff-box .diff-label {
  display: block;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
}

.approval-preview .approval-diff-box .diff-val {
  font-weight: 650;
  color: var(--fg);
}

.approval-preview .approval-diff-box .diff-val.highlight {
  color: var(--accent);
  font-weight: 750;
}

.approval-preview .approval-diff-box .diff-arrow {
  color: var(--muted);
  font-weight: bold;
}

.approval-preview .approval-delete-alert {
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-md);
  color: var(--danger);
  font-size: 11.5px;
  font-weight: 550;
  margin: 8px 0;
}

.approval-preview .approval-delete-alert .alert-icon {
  font-size: 14px;
}

.approval-preview .approval-reason-snippet {
  font-size: 11.5px;
  line-height: 1.4;
  color: var(--fg-muted);
  background: rgba(15, 23, 42, 0.02);
  border-left: 2px solid var(--accent-border);
  padding: 6px 8px;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  margin-top: 6px;
}

.approval-preview .approval-reason-snippet .reason-prefix {
  font-weight: 650;
  margin-right: 4px;
}

.approval-preview .approval-reason-snippet .reason-text {
  font-style: italic;
}

.approval-preview .approval-card-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
  width: 100%;
}

.approval-preview .approval-action-cta {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  font-weight: 700;
  color: var(--accent);
}

.request-symbol {
  width: 36px;
  height: 36px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  background: var(--accent-soft);
  color: var(--accent);
  flex-shrink: 0;
}

.request-symbol.delete {
  background: var(--danger-bg);
  color: var(--danger);
}

.deliverable-review-card {
  padding: 16px;
  border: 1px solid var(--line-subtle);
  background: var(--glass-surface);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.deliverable-review-card .deliverable-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deliverable-review-card .deliverable-badge {
  padding: 2px 8px;
  background: var(--accent-soft);
  color: var(--accent);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 650;
}

.deliverable-review-card .deliverable-employee {
  font-size: 11.5px;
  color: var(--muted);
  font-weight: 550;
}

.deliverable-review-card .deliverable-card-body {
  flex: 1;
  min-width: 0;
}

.deliverable-review-card .deliverable-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--fg);
  line-height: 1.35;
}

.deliverable-review-card .deliverable-output {
  font-size: 11.5px;
  color: var(--muted);
  margin: 2px 0 0;
}

.deliverable-review-card .deliverable-meta {
  display: flex;
  gap: 12px;
  font-size: 11px;
  color: var(--muted);
  margin-top: 4px;
}

.deliverable-review-card .deliverable-card-actions {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid var(--line-subtle);
}

.deliverable-review-summary {
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-lg);
  padding: 14px 16px;
  margin-bottom: 16px;
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.deliverable-review-summary .review-task-heading .review-title {
  display: block;
  font-size: 15px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.35;
}

.deliverable-review-summary .review-task-heading .review-meta-row {
  display: flex;
  flex-wrap: wrap;
  gap: 14px;
  font-size: 12px;
  color: var(--muted);
  margin-top: 4px;
}

.deliverable-review-summary .review-task-heading .review-meta-row span,
.deliverable-review-summary .review-task-heading .review-meta-row .review-person,
.deliverable-review-summary .review-task-heading .review-meta-row .review-program {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.deliverable-review-summary .review-date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.deliverable-review-summary .review-date-chips .review-date-chip {
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 6px 10px;
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 120px;
}

.deliverable-review-summary .review-date-chips .review-date-chip .chip-lbl {
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  text-transform: uppercase;
  font-weight: 600;
}

.deliverable-review-summary .review-date-chips .review-date-chip .chip-val {
  font-size: 12px;
  font-weight: 650;
  color: var(--fg);
}

.deliverable-review-summary .review-date-chips .review-date-chip.is-early {
  border-color: rgba(16, 185, 129, 0.4);
  background: rgba(16, 185, 129, 0.06);
}

.deliverable-review-summary .review-date-chips .review-date-chip.is-early .chip-val {
  color: #047857;
}

.deliverable-review-summary .review-date-chips .review-date-chip.is-on-time {
  border-color: rgba(99, 102, 241, 0.4);
  background: rgba(99, 102, 241, 0.06);
}

.deliverable-review-summary .review-date-chips .review-date-chip.is-on-time .chip-val {
  color: var(--accent);
}

.deliverable-review-summary .review-date-chips .review-date-chip.is-late {
  border-color: rgba(239, 68, 68, 0.4);
  background: rgba(239, 68, 68, 0.06);
}

.deliverable-review-summary .review-date-chips .review-date-chip.is-late .chip-val {
  color: var(--danger);
}

.deliverable-review-summary .review-output-box {
  background: var(--surface);
  border: 1px dashed var(--line-subtle);
  border-radius: var(--radius-md);
  padding: 10px 12px;
}

.deliverable-review-summary .review-output-box .output-box-lbl {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.deliverable-review-summary .review-output-box .output-box-text {
  font-size: 13px;
  color: var(--fg);
  margin: 0;
  line-height: 1.4;
}

.deliverable-review-summary .review-output-box .output-box-text .text-muted {
  color: var(--muted);
  font-style: italic;
}

.deliverable-review-summary .review-output-box .output-box-link {
  margin-top: 8px;
}

.deliverable-review-summary .review-output-box .sender-proposal-card {
  margin-top: 10px;
  padding: 12px 14px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-md);
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-card-header .proposal-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-card-header .proposal-time {
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-stat-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-stat-row .proposal-stat {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 12.5px;
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-stat-row .proposal-stat .stat-lbl {
  color: var(--muted);
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-stat-row .proposal-stat .stat-val {
  font-weight: 700;
  padding: 2px 8px;
  border-radius: var(--radius-sm);
  background: var(--surface);
  border: 1px solid var(--border);
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-stat-row .proposal-stat .stat-val.has-quality {
  color: var(--accent);
  background: rgba(99, 102, 241, 0.1);
  border-color: rgba(99, 102, 241, 0.3);
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-stat-row .proposal-stat .stat-val.no-quality {
  color: var(--muted);
  font-weight: 500;
  font-style: italic;
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-note-box {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px dashed rgba(99, 102, 241, 0.18);
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-note-box .note-lbl {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 2px;
}

.deliverable-review-summary .review-output-box .sender-proposal-card .proposal-note-box .note-text {
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.4;
  margin: 0;
  font-style: italic;
}

.deliverable-eval-form .eval-decision-status {
  margin: 8px 0 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  font-size: 12.5px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  transition: background-color 0.2s ease, border-color 0.2s ease, color 0.2s ease, box-shadow 0.2s ease;
}

.deliverable-eval-form .eval-decision-status.is-agreed {
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.25);
  color: #047857;
  font-weight: 600;
}

.deliverable-eval-form .eval-decision-status.is-changed {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.28);
  color: #92400e;
  font-weight: 600;
}

.deliverable-eval-form .eval-decision-status.is-neutral {
  background: var(--bg-subtle);
  border: 1px solid var(--border);
  color: var(--muted);
}

.deliverable-eval-form .eval-decision-status .btn-reset-proposed {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
  background: transparent;
  border: none;
  cursor: pointer;
  padding: 3px 8px;
  border-radius: var(--radius-sm);
  text-decoration: underline;
}

.deliverable-eval-form .eval-decision-status .btn-reset-proposed:hover {
  background: var(--accent-soft);
}

.deliverable-eval-form .quality-select-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 540px) {
  .deliverable-eval-form .quality-select-cards {
    grid-template-columns: 1fr;
  }
}
.deliverable-eval-form .quality-select-cards .quality-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.deliverable-eval-form .quality-select-cards .quality-card input[type=radio] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.deliverable-eval-form .quality-select-cards .quality-card .quality-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.deliverable-eval-form .quality-select-cards .quality-card .quality-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
}

.deliverable-eval-form .quality-select-cards .quality-card .quality-score {
  font-size: 11px;
  color: var(--muted);
}

.deliverable-eval-form .quality-select-cards .quality-card:hover {
  border-color: var(--accent);
  background: var(--bg-subtle);
}

.deliverable-eval-form .quality-select-cards .quality-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.deliverable-eval-form .quality-select-cards .quality-card.is-selected .quality-name {
  color: var(--accent);
}

.deliverable-eval-form .quality-select-cards .quality-card.is-selected .quality-score {
  color: var(--accent);
  font-weight: 600;
}

.deliverable-eval-form .kpi-live-calc-box {
  margin-top: 14px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
}

.deliverable-eval-form .kpi-live-calc-box .kpi-calc-details {
  min-width: 0;
}

.deliverable-eval-form .kpi-live-calc-box .kpi-calc-details .kpi-calc-label {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 750;
  color: var(--accent);
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 2px;
}

.deliverable-eval-form .kpi-live-calc-box .kpi-calc-details .kpi-calc-formula {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.35;
}

.deliverable-eval-form .kpi-live-calc-box .kpi-calc-details .kpi-calc-formula strong {
  color: var(--fg);
  font-weight: 700;
}

.deliverable-eval-form .kpi-live-calc-box .kpi-calc-result {
  display: flex;
  align-items: baseline;
  gap: 4px;
  flex-shrink: 0;
}

.deliverable-eval-form .kpi-live-calc-box .kpi-calc-result .kpi-total-points {
  font-size: 26px;
  font-weight: 800;
  color: var(--accent);
  line-height: 1;
}

.deliverable-eval-form .kpi-live-calc-box .kpi-calc-result .kpi-pts-unit {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
}

.deliverable-eval-form .btn-rework {
  color: var(--danger);
  border-color: rgba(239, 68, 68, 0.3);
}

.deliverable-eval-form .btn-rework:hover {
  background: rgba(239, 68, 68, 0.08);
  border-color: var(--danger);
}

.deliverable-eval-form .btn-accept {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  background-color: #4338ca;
  color: #ffffff;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.3);
}

.deliverable-eval-form .btn-accept:hover {
  filter: brightness(1.06);
}

.deliverable-eval-form .excel-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 14px 0 4px;
  margin-top: 16px;
  border-top: 1px solid var(--line-subtle);
  z-index: 5;
}

.task-review-banner {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 16px;
  border-radius: var(--radius-lg);
  margin-top: 14px;
}

.task-review-banner .review-banner-icon {
  font-size: 20px;
  flex-shrink: 0;
}

.task-review-banner .review-banner-text {
  flex: 1;
  min-width: 0;
}

.task-review-banner .review-banner-text strong {
  display: block;
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
  line-height: 1.3;
}

.task-review-banner .review-banner-text p {
  margin: 2px 0 0;
  font-size: 11.5px;
  color: var(--muted);
  line-height: 1.3;
}

.task-review-banner .btn-review-task {
  flex-shrink: 0;
}

.task-review-banner.awaiting {
  background: rgba(245, 158, 11, 0.08);
  border: 1.5px solid rgba(245, 158, 11, 0.35);
}

.task-review-banner.awaiting strong {
  color: #b45309;
}

.task-review-banner.approved {
  background: rgba(16, 185, 129, 0.08);
  border: 1.5px solid rgba(16, 185, 129, 0.35);
}

.task-review-banner.approved strong {
  color: #047857;
}

.submission-form .quality-select-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 6px;
}

@media (max-width: 540px) {
  .submission-form .quality-select-cards {
    grid-template-columns: 1fr;
  }
}
.submission-form .quality-select-cards .quality-card {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 10px 12px;
  border: 1.5px solid var(--border);
  border-radius: var(--radius-lg);
  background: var(--surface);
  cursor: pointer;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease, color 0.18s ease;
}

.submission-form .quality-select-cards .quality-card input[type=radio] {
  accent-color: var(--accent);
  width: 16px;
  height: 16px;
  margin: 0;
  cursor: pointer;
}

.submission-form .quality-select-cards .quality-card .quality-card-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.submission-form .quality-select-cards .quality-card .quality-name {
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
}

.submission-form .quality-select-cards .quality-card .quality-score {
  font-size: 11px;
  color: var(--muted);
}

.submission-form .quality-select-cards .quality-card:hover {
  border-color: var(--accent);
  background: var(--bg-subtle);
}

.submission-form .quality-select-cards .quality-card.is-selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.submission-form .quality-select-cards .quality-card.is-selected .quality-name {
  color: var(--accent);
}

.submission-form .quality-select-cards .quality-card.is-selected .quality-score {
  color: var(--accent);
  font-weight: 600;
}

.submission-form .excel-modal-footer {
  display: flex;
  justify-content: flex-end;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
  position: sticky;
  bottom: 0;
  background: var(--surface);
  padding: 14px 0 4px;
  margin-top: 16px;
  border-top: 1px solid var(--line-subtle);
  z-index: 5;
}

.btn-submit-deliverable {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  background-color: #4338ca;
  color: #ffffff !important;
  font-weight: 600;
  box-shadow: 0 2px 8px rgba(67, 56, 202, 0.3);
  display: inline-flex;
  align-items: center;
  gap: 6px;
}

.btn-submit-deliverable:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.approval-history-card {
  padding: 14px 16px;
  border: 1px solid var(--line-subtle);
  background: var(--bg-subtle);
  border-radius: var(--radius-lg);
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.approval-history-card.approved {
  border-left: 3px solid var(--success);
}

.approval-history-card.rejected {
  border-left: 3px solid var(--danger);
}

.approval-history-card.stale {
  border-left: 3px solid var(--muted);
}

.approval-history-card .history-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.approval-history-card .history-status-badge {
  font-size: 11px;
  font-weight: 700;
}

.approval-history-card .history-status-badge.approved {
  color: var(--success);
}

.approval-history-card .history-status-badge.rejected {
  color: var(--danger);
}

.approval-history-card .history-status-badge.stale {
  color: var(--muted);
}

.approval-history-card .history-time {
  font-size: 11px;
  color: var(--muted);
}

.approval-history-card .history-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
}

.approval-history-card .history-meta {
  font-size: 11.5px;
  color: var(--muted);
  margin: 0;
}

.approval-history-card .history-note {
  font-size: 11.5px;
  font-style: italic;
  background: rgba(15, 23, 42, 0.03);
  padding: 5px 8px;
  border-radius: var(--radius-sm);
  color: var(--fg-muted);
}

.approval-history-card .history-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-top: 6px;
  padding-top: 6px;
  border-top: 1px solid var(--line-subtle);
}

.approval-history-card .history-footer small {
  font-size: 11px;
  color: var(--muted);
}

.empty-queue {
  margin: 0;
  padding: 18px;
  color: var(--muted);
  font-size: 13px;
  text-align: center;
  background: var(--bg-subtle);
  border: 1px dashed var(--line-subtle);
  border-radius: var(--radius-lg);
  width: 100%;
}

.wbs-projects-section {
  margin-bottom: 24px;
}

.wbs-projects-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(235px, 1fr));
  gap: 10px;
}

.wbs-project-card {
  padding: 13px 15px;
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: 11px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  transition: border-color 140ms cubic-bezier(0.16, 1, 0.3, 1), background-color 140ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 140ms cubic-bezier(0.16, 1, 0.3, 1), transform 140ms cubic-bezier(0.16, 1, 0.3, 1);
}

@media (hover: hover) and (pointer: fine) {
  .wbs-project-card:hover {
    border-color: var(--line-strong, #cbd5e1);
    background: var(--surface-hover);
    box-shadow: 0 4px 14px -3px rgba(15, 23, 42, 0.07);
    transform: translateY(-1px);
  }
}
.wbs-project-card .project-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.wbs-project-card .project-title {
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.wbs-project-card .project-task-count {
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  background: var(--bg-subtle);
  padding: 2px 7px;
  border-radius: 999px;
  font-weight: 550;
  white-space: nowrap;
}

.wbs-project-card .project-progress-track {
  height: 5px;
  background: var(--bg-subtle);
  border-radius: 999px;
  overflow: hidden;
  margin: 8px 0;
}

.wbs-project-card .project-progress-fill {
  display: block;
  height: 100%;
  background: linear-gradient(90deg, #4338ca, #4f46e5);
  border-radius: 999px;
  transition: width 240ms ease;
}

.wbs-project-card .project-card-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 12px;
  color: var(--muted);
  font-weight: 500;
}

.project-rate-text {
  font-variant-numeric: tabular-nums;
  font-weight: 600;
  color: var(--fg-subtle);
}

.wbs-project-card .project-pill-late {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #b91c1c;
  font-size: 11.5px;
  font-weight: 600;
}

.wbs-project-card .project-dot-late {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #ef4444;
  display: inline-block;
}

.wbs-project-card .project-pill-ontime {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #047857;
  font-size: 11.5px;
  font-weight: 500;
}

.wbs-project-card .project-dot-ontime {
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: #10b981;
  display: inline-block;
}

.wbs-empty-state {
  padding: 24px;
  background: var(--surface);
  border: 1px dashed var(--line);
  border-radius: var(--radius-xl);
  text-align: center;
  color: var(--muted);
  font-size: 13px;
  line-height: 1.6;
}

.team-workload-section {
  margin-bottom: 24px;
}

.team-workload-section .reset-person-btn {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--accent);
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-full);
  padding: 3px 10px;
  cursor: pointer;
  margin-left: 8px;
  max-width: 100%;
  white-space: normal;
  vertical-align: middle;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

@media (max-width: 640px) {
  .team-workload-section .reset-person-btn,
  .reset-person-btn {
    margin-left: 0;
    margin-top: 4px;
  }
}
.team-workload-section .reset-person-btn:hover {
  background: var(--accent);
  color: #ffffff;
}

.avatar-filter-btn {
  background: none;
  border: none;
  padding: 0;
  margin: 0;
  cursor: pointer;
  border-radius: 50%;
  display: inline-flex;
  transition: transform 0.15s ease, box-shadow 0.15s ease;
  outline-offset: 2px;
}

.avatar-filter-btn:hover {
  transform: translateY(-2px) scale(1.06);
}

.avatar-filter-btn.is-active {
  box-shadow: 0 0 0 2.5px var(--accent);
}

.workload-summary-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
  margin-bottom: 16px;
}

.workload-kpi-card {
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 13px 15px;
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast);
}

@media (hover: hover) and (pointer: fine) {
  .workload-kpi-card:hover {
    transform: translateY(-1px);
    border-color: #cbd5e1;
    box-shadow: var(--shadow-sm);
  }
}
.workload-kpi-card .kpi-icon-box {
  width: 38px;
  height: 38px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  border: 1px solid transparent;
}

.workload-kpi-card .kpi-icon-box.icon-indigo {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #2563eb;
}

.workload-kpi-card .kpi-icon-box.icon-blue {
  background: #eff6ff;
  border-color: #bfdbfe;
  color: #1d4ed8;
}

.workload-kpi-card .kpi-icon-box.icon-amber {
  background: #fffbeb;
  border-color: #fde68a;
  color: #b45309;
}

.workload-kpi-card .kpi-icon-box.icon-emerald {
  background: #f0fdf4;
  border-color: #bbf7d0;
  color: #15803d;
}

.workload-kpi-card strong {
  font-variant-numeric: tabular-nums;
}

.workload-kpi-card .kpi-icon-box svg {
  width: 18px;
  height: 18px;
}

.workload-kpi-card .kpi-content {
  flex: 1;
  min-width: 0;
}

.workload-kpi-card .kpi-meta-lbl {
  display: block;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  margin-bottom: 2px;
}

.workload-kpi-card .kpi-main-val {
  display: block;
  font-size: 17px;
  font-weight: 750;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
  line-height: 1.25;
}

.workload-kpi-card .kpi-main-val small {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  margin-left: 3px;
}

.workload-kpi-card .kpi-sub-desc {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workload-dashboard-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.65fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 1040px) {
  .workload-dashboard-layout {
    grid-template-columns: 1fr;
  }
}
.workload-roster-column {
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px 18px;
  box-shadow: var(--shadow-xs);
}

.roster-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 10px;
  padding-bottom: 12px;
  margin-bottom: 12px;
  border-bottom: 1px solid var(--line-subtle);
}

.roster-header .roster-title {
  font-size: 14px;
  font-weight: 700;
  color: var(--fg);
  margin: 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.team-workload-section .section-sub-summary {
  margin: 3px 0 0;
  font-size: 12.5px;
  color: var(--muted);
  font-weight: 450;
}

.roster-legend,
.roster-header .roster-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
}

.roster-legend .legend-item,
.roster-header .legend-item {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11.5px;
  font-weight: 550;
  color: var(--muted);
}

.roster-legend .legend-item .legend-dot,
.roster-header .legend-item .legend-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
}

.roster-legend .legend-item.is-done .legend-dot,
.roster-header .legend-item.is-done .legend-dot {
  background: #10b981;
}

.roster-legend .legend-item.is-progress .legend-dot,
.roster-header .legend-item.is-progress .legend-dot {
  background: #3b82f6;
}

.roster-legend .legend-item.is-review .legend-dot,
.roster-header .legend-item.is-review .legend-dot {
  background: #8b5cf6;
}

.roster-legend .legend-item.is-late .legend-dot,
.roster-header .legend-item.is-late .legend-dot {
  background: #ef4444;
}

.workload-member-list {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

@media (max-width: 1100px) {
  .workload-member-list {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  .workload-member-list {
    grid-template-columns: minmax(0, 1fr);
  }
}
.reset-person-btn {
  margin-left: 8px;
  font-size: 11.5px;
  vertical-align: middle;
}

.workload-member-card, .team-member-card {
  min-width: 0;
  max-width: 100%;
  padding: 13px 15px;
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-md);
  box-shadow: var(--shadow-xs);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), border-color var(--duration-fast);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

@media (hover: hover) and (pointer: fine) {
  .workload-member-card:hover, .team-member-card:hover {
    transform: translateY(-1px);
    border-color: var(--line-strong, #cbd5e1);
    box-shadow: var(--shadow-sm);
  }
}
.workload-member-card.selected, .team-member-card.selected {
  border-color: var(--accent);
  background: var(--accent-soft);
  box-shadow: 0 0 0 1px var(--accent);
}

.workload-member-card .member-top-row, .team-member-card .member-top-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 8px;
}

.workload-member-card .member-profile, .team-member-card .member-profile {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  flex: 1;
}

.workload-member-card .member-avatar, .team-member-card .member-avatar {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-sm);
  background: #eff6ff;
  border: 1px solid var(--accent-border);
  color: var(--accent);
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.workload-member-card .member-info, .team-member-card .member-info {
  min-width: 0;
  flex: 1;
}

.workload-member-card .member-name, .team-member-card .member-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg);
  line-height: 1.25;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workload-member-card .member-role, .team-member-card .member-role {
  display: block;
  font-size: 11px;
  line-height: 1.25;
  color: var(--muted);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workload-member-card .member-badges, .team-member-card .member-badges {
  display: flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
}

.workload-member-card .member-kpi-chip, .team-member-card .member-kpi-chip {
  font-size: 11px;
  font-weight: 700;
  color: #6d28d9;
  background: #faf5ff;
  border: 1px solid #e9d5ff;
  border-radius: 4px;
  padding: 1.5px 6px;
  font-variant-numeric: tabular-nums;
}

.workload-member-card .workload-share-badge, .team-member-card .workload-share-badge {
  font-size: 11px;
  font-weight: 600;
  color: #475569;
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 1.5px 6px;
  border-radius: 4px;
  font-variant-numeric: tabular-nums;
}

.workload-member-card .workload-share-badge.is-zero, .team-member-card .workload-share-badge.is-zero {
  color: #475569;
  background: var(--bg-subtle);
  border-color: var(--line-subtle);
}

.workload-member-card .workload-progress-area, .team-member-card .workload-progress-area {
  margin-bottom: 8px;
}

.workload-member-card .workload-stacked-track, .team-member-card .workload-stacked-track, .roster-mini-track, .workload-stacked-track {
  display: flex !important;
  width: 100%;
  min-width: 60px;
  height: 5px !important;
  background: var(--bg-subtle) !important;
  border-radius: 999px !important;
  overflow: hidden !important;
  margin-bottom: 2px;
}

.track-seg {
  height: 100% !important;
  min-height: 5px !important;
  flex-shrink: 0 !important;
  display: block !important;
  transition: width 200ms var(--ease);
}

.track-seg.is-done {
  background: var(--chart-done, #059669) !important;
}

.track-seg.is-progress {
  background: var(--chart-good, #2563eb) !important;
}

.track-seg.is-review {
  background: var(--chart-warn, #d97706) !important;
}

.track-seg.is-late {
  background: var(--chart-late, #dc2626) !important;
}

.workload-member-card .workload-empty-track, .team-member-card .workload-empty-track {
  padding: 4px 8px;
  background: var(--bg-subtle);
  border: 1px dashed var(--line);
  border-radius: 4px;
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  text-align: center;
}

.workload-member-card .member-bottom-metrics, .team-member-card .member-bottom-metrics {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 6px;
  border-top: 1px solid var(--line-subtle);
  padding-top: 8px;
  margin-top: 2px;
}

.workload-member-card .metric-item, .team-member-card .metric-item {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.workload-member-card .metric-item .stat-lbl, .team-member-card .metric-item .stat-lbl {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.25;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.02em;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workload-member-card .metric-item .stat-val, .team-member-card .metric-item .stat-val {
  font-weight: 700;
  font-size: 12px;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.workload-member-card .metric-item .stat-danger, .team-member-card .metric-item .stat-danger {
  color: #b91c1c;
  font-weight: 750;
  font-size: 12px;
  white-space: nowrap;
}

.workload-member-card .metric-item .stat-ok, .team-member-card .metric-item .stat-ok {
  color: var(--muted);
  font-size: 12px;
  font-weight: 600;
}

.workload-member-card .metric-item .stat-kpi, .team-member-card .metric-item .stat-kpi {
  color: #6d28d9;
  font-weight: 750;
  font-size: 12px;
  white-space: nowrap;
}

.team-cards-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(min(300px, 100%), 1fr));
  gap: 12px;
  margin-bottom: 14px;
}

.workload-analytics-column {
  display: flex;
  flex-direction: column;
  gap: 14px;
}

.workload-analytics-card {
  padding: 16px 18px;
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
}

.workload-analytics-card .analytics-title {
  font-size: 13.5px;
  font-weight: 700;
  color: var(--fg);
  margin: 0 0 2px 0;
  display: flex;
  align-items: center;
  gap: 6px;
}

.workload-analytics-card .analytics-sub {
  font-size: 11px;
  color: var(--muted);
  margin: 0 0 12px 0;
}

.share-bars-list {
  display: flex;
  flex-direction: column;
  gap: 9px;
}

.share-bar-item .share-item-meta {
  display: flex;
  align-items: center;
  justify-content: space-between;
  font-size: 11.5px;
  margin-bottom: 4px;
}

.share-bar-item .share-item-meta .share-name {
  font-weight: 650;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  max-width: 170px;
}

.share-bar-item .share-item-meta .share-percent {
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--muted);
}

.share-bar-item .share-item-meta .share-percent.is-high {
  color: #b91c1c;
}

.share-bar-item .share-item-meta .share-percent.is-med {
  color: #b45309;
}

.share-bar-item .share-bar-track {
  height: 6px;
  background: rgba(0, 0, 0, 0.05);
  border-radius: var(--radius-full);
  overflow: hidden;
}

.share-bar-item .share-bar-fill {
  height: 100%;
  border-radius: inherit;
  transition: width 240ms var(--ease);
}

.share-bar-item .share-bar-fill.bar-danger {
  background: linear-gradient(90deg, #f87171, #ef4444);
}

.share-bar-item .share-bar-fill.bar-warning {
  background: linear-gradient(90deg, #fbbf24, #f59e0b);
}

.share-bar-item .share-bar-fill.bar-accent {
  background: linear-gradient(90deg, #818cf8, #6366f1);
}

.capacity-health-grid {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.capacity-health-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 7px 10px;
  border-radius: 8px;
  background: rgba(0, 0, 0, 0.02);
  font-size: 12px;
}

.capacity-health-row .health-left {
  display: flex;
  align-items: center;
  gap: 8px;
}

.capacity-health-row .health-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
}

.capacity-health-row .health-dot.is-danger {
  background: #ef4444;
}

.capacity-health-row .health-dot.is-warning {
  background: #f59e0b;
}

.capacity-health-row .health-dot.is-success {
  background: #10b981;
}

.capacity-health-row .health-dot.is-neutral {
  background: #94a3b8;
}

.capacity-health-row .health-lbl {
  color: var(--fg);
  font-weight: 550;
}

.capacity-health-row .health-count {
  font-weight: 750;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}

.pulse-kpi {
  color: var(--accent);
}

.kpi-metric strong {
  color: var(--accent);
}

.weight-workspace {
  margin-bottom: 16px;
}

.weight-legend {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  margin: 10px 0 14px;
}

.legend-filter {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 4px 11px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 550;
  color: #475569;
  background: rgba(15, 23, 42, 0.04);
  border: 1px solid rgba(15, 23, 42, 0.12);
  cursor: pointer;
  transition: var(--duration-fast);
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
  line-height: 1.3;
}

.legend-filter:hover {
  background: rgba(15, 23, 42, 0.08);
  color: var(--fg);
}

.legend-filter.active {
  background: var(--surface);
  color: var(--fg);
  font-weight: 650;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.08), 0 0 0 1px rgba(15, 23, 42, 0.1);
  border-color: transparent;
}

.weight-grid {
  position: relative;
  height: 320px;
  min-width: 0;
  background: var(--surface);
  border-radius: var(--radius-xl, 14px);
  isolation: isolate;
  border: none;
  box-shadow: 0 0 0 1px var(--line), var(--shadow-sm);
  overflow: hidden;
  padding: 2px;
}

.weight-grid > .empty-state {
  position: absolute;
  inset: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  flex-direction: column;
}

.weight-card {
  --card-bg: rgba(248, 250, 252, 0.95);
  --card-tone: var(--fg-subtle);
  --card-border: rgba(226, 232, 240, 0.85);
  position: absolute;
  min-width: 0;
  padding: 0;
  border-radius: var(--radius-md);
  background: var(--card-bg);
  color: var(--card-tone);
  border: 1px solid var(--card-border);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03), inset 0 1px 0 rgba(255, 255, 255, 0.85);
  transition: transform var(--duration-fast), box-shadow var(--duration-fast), filter var(--duration-fast);
  overflow: hidden;
}

.weight-card.tone-progress {
  --card-bg: #f0f9ff;
  --card-tone: #0369a1;
  --card-border: #bae6fd;
}

.weight-card.tone-done {
  --card-bg: #ecfdf5;
  --card-tone: #047857;
  --card-border: #a7f3d0;
}

.weight-card.tone-wait {
  --card-bg: #fffbeb;
  --card-tone: #92400e;
  --card-border: #fde68a;
}

.weight-card.tone-late {
  --card-bg: #fff1f2;
  --card-tone: #be123c;
  --card-border: #fecdd3;
}

.weight-card:hover, .weight-card:focus-within {
  transform: translateY(-1px) scale(1.008);
  box-shadow: 0 6px 18px rgba(15, 23, 42, 0.09), 0 0 0 1.5px var(--card-tone);
  z-index: 5;
}

.market-tile {
  width: 100%;
  height: 100%;
  padding: 8px 10px;
  border-radius: var(--radius-md);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 4px;
  color: inherit;
  text-align: left;
  overflow: hidden;
  background: transparent;
  border: none;
  cursor: pointer;
}

.market-tile:focus-visible {
  outline: 2px solid var(--card-tone);
  outline-offset: -2px;
}

.market-tile-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  min-width: 0;
  font-size: 11px;
}

.tile-person {
  min-width: 0;
  white-space: nowrap;
  text-overflow: ellipsis;
  overflow: hidden;
  font-weight: 600;
  opacity: 0.8;
  letter-spacing: -0.01em;
}

.tile-weight {
  font-size: 11px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
  padding: 1.5px 5px;
  border-radius: var(--radius-xs);
  background: rgba(0, 0, 0, 0.05);
  letter-spacing: -0.01em;
}

.tile-title {
  font-size: 13px;
  font-weight: 650;
  line-height: 1.35;
  letter-spacing: -0.015em;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
  overflow-wrap: anywhere;
  color: var(--fg);
}

.tile-short {
  display: none;
}

.tile-status {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  min-width: 0;
  white-space: nowrap;
  opacity: 0.9;
}

.tile-status .icon {
  width: 11.5px;
  height: 11.5px;
  flex-shrink: 0;
}

.tile-status > span:first-of-type {
  overflow: hidden;
  text-overflow: ellipsis;
}

.tile-pending {
  display: flex;
  margin-left: auto;
}

.weight-card[data-density=compact] .market-tile {
  padding: 6px 7px;
  gap: 3px;
}

.weight-card[data-density=compact] .tile-title {
  font-size: 12px;
  line-height: 1.25;
  -webkit-line-clamp: 2;
}

.weight-card[data-density=compact] .market-tile-top, .weight-card[data-density=compact] .tile-weight, .weight-card[data-density=compact] .tile-status {
  font-size: 11px;
}

.weight-card[data-density=tiny] .market-tile {
  padding: 4px 6px;
  gap: 2px;
  justify-content: center;
}

.weight-card[data-density=tiny] .tile-person, .weight-card[data-density=tiny] .tile-status {
  display: none;
}

.weight-card[data-density=tiny] .market-tile-top {
  justify-content: flex-end;
  margin-bottom: -2px;
}

.weight-card[data-density=tiny] .tile-title {
  font-size: 11px;
  font-weight: 600;
  line-height: 1.2;
  -webkit-line-clamp: 1;
}

.weight-card[data-density=tiny] .tile-weight {
  font-size: 11px;
  padding: 1px 3px;
}

.weight-card[data-density=micro] .market-tile {
  padding: 2px;
  gap: 0;
  text-align: center;
  align-items: center;
  justify-content: center;
}

.weight-card[data-density=micro] .market-tile-top, .weight-card[data-density=micro] .tile-title, .weight-card[data-density=micro] .tile-status {
  display: none;
}

.weight-card[data-density=micro] .tile-short {
  display: block;
  font-size: 11px;
  font-weight: 750;
  max-width: 100%;
  overflow: hidden;
  white-space: nowrap;
  opacity: 0.85;
}

.market-peek {
  position: fixed;
  z-index: 35;
  width: min(320px, 100vw - 24px);
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-xl);
}

.market-peek-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  font-size: 12px;
  margin-bottom: 10px;
}

.market-peek h3 {
  font-size: 14px;
  font-weight: 650;
  overflow-wrap: anywhere;
}

.market-peek p {
  margin: 8px 0 0;
  font-size: 12px;
}

.market-peek-note {
  display: -webkit-box;
  -webkit-line-clamp: 3;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: pre-wrap;
}

.market-peek-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 14px;
}

.pending-chip {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 4px 8px;
  border: 1px solid var(--accent-border);
  border-radius: var(--radius-sm);
  color: var(--accent);
  background: var(--accent-soft);
  font-size: 11px;
  font-weight: 550;
  white-space: nowrap;
}

.pending-chip .icon {
  width: 12px;
  height: 12px;
}

#main-content:has(.market-map) {
  padding-top: 22px;
}

#main-content:has(.market-map) .page-heading {
  margin-bottom: 15px;
}

#main-content:has(.market-map) .page-heading h1 {
  font-size: 24px;
}

#main-content:has(.market-map) .page-heading p {
  margin-top: 5px;
  font-size: 13px;
}

#main-content:has(.market-map) .toolbar {
  padding: 10px 14px;
  gap: 10px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

#main-content:has(.market-map) .toolbar input, #main-content:has(.market-map) .toolbar select {
  min-height: 34px;
  padding-block: 6px;
}

#main-content:has(.market-map) .toolbar .control.search {
  margin-left: auto;
}

.score-details {
  padding: 16px 20px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
}

.score-details > summary {
  cursor: pointer;
  font-size: 13px;
  font-weight: 650;
  color: var(--fg);
}

.score-details > summary span {
  font-weight: 400;
  color: var(--muted);
  margin-left: 10px;
}

.score-details .dashboard-grid {
  margin-bottom: 0;
}

.approval-banner {
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  padding: 14px;
  border-radius: var(--radius-lg);
  margin: 8px 0 16px;
  font-size: 13px;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 7px;
}

.approval-banner strong {
  color: var(--accent);
  font-weight: 650;
}

.approval-banner span {
  color: var(--fg-subtle);
}

.timeline-request-control {
  margin: 14px 0 0;
  border-top: 1px solid var(--line);
  padding-top: 14px;
}

.timeline-request-control p {
  font-size: 12px;
  line-height: 1.65;
  color: var(--muted);
  margin: 0 0 12px;
}

#timeline-request-reason {
  margin-top: 15px;
}

#timeline-request-reason label, #timeline-request-reason #delete-reason-field label {
  display: block;
  font-size: 13px;
  font-weight: 550;
  margin: 7px 0;
  color: var(--fg-subtle);
}

.progress-entry.event-reminder {
  background: var(--warning-bg);
  border-color: var(--warning-border);
}

.progress-entry.event-approval {
  background: var(--accent-soft);
  border-color: var(--accent-border);
}

.progress-entry.event-transition {
  display: block;
  position: relative;
  overflow: hidden;
  padding: 0;
  border-radius: var(--radius-xl);
  background: var(--glass-surface, rgba(255, 255, 255, 0.72));
  backdrop-filter: blur(20px) saturate(180%);
  -webkit-backdrop-filter: blur(20px) saturate(180%);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.85), 0 8px 24px -4px rgba(30, 41, 59, 0.06), 0 2px 6px -1px rgba(30, 41, 59, 0.04);
  transition: transform 180ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 180ms cubic-bezier(0.16, 1, 0.3, 1);
}

.progress-entry.event-transition:hover {
  transform: translateY(-1px);
  box-shadow: inset 0 1px 0 rgb(255, 255, 255), 0 12px 30px -4px rgba(30, 41, 59, 0.09), 0 4px 10px -2px rgba(30, 41, 59, 0.05);
}

.progress-entry.event-transition.theme-indigo {
  border-left: 4px solid #4338ca;
  background: #f8fafc;
}

.progress-entry.event-transition.theme-sky {
  border-left: 4px solid #0284c7;
  background: #f0f9ff;
}

.progress-entry.event-transition.theme-emerald {
  border-left: 4px solid #059669;
  background: #ecfdf5;
}

.progress-entry.event-transition.theme-amber {
  border-left: 4px solid #d97706;
  background: #fffbeb;
}

.trans-v2-card {
  padding: 14px 16px;
  display: flex;
  flex-direction: column;
  gap: 11px;
}

.trans-v2-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
}

.trans-v2-action {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trans-v2-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  letter-spacing: -0.01em;
  background: rgba(15, 23, 42, 0.06);
  color: var(--fg);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.trans-v2-badge .icon {
  width: 12px;
  height: 12px;
  stroke-width: 2.2;
}

.trans-v2-flow {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trans-status-pill {
  display: inline-flex;
  align-items: center;
  padding: 2.5px 8px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
  line-height: 1.3;
}

.trans-status-pill.doing {
  background: rgba(2, 132, 199, 0.12);
  color: #0369a1;
  border: 1px solid rgba(2, 132, 199, 0.25);
}

.trans-status-pill.done {
  background: rgba(5, 150, 105, 0.12);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.trans-status-pill.late {
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
  border: 1px solid rgba(225, 29, 72, 0.22);
}

.trans-arrow-icon {
  color: var(--muted);
  opacity: 0.7;
}

.trans-timing-pill {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 3px 9px;
  border-radius: var(--radius-sm);
  font-size: 11px;
  font-weight: 500;
  line-height: 1.3;
  font-variant-numeric: tabular-nums;
  background: rgba(255, 255, 255, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.95);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  color: var(--fg);
  white-space: nowrap;
}

.trans-timing-pill .icon {
  width: 12px;
  height: 12px;
  flex-shrink: 0;
}

.trans-timing-pill .trans-timing-body {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-wrap: nowrap;
}

.trans-timing-pill strong {
  font-weight: 650;
  color: var(--fg);
}

.trans-timing-pill .trans-timing-old {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
}

.trans-timing-pill .trans-timing-dot {
  color: #475569;
  font-weight: 700;
  margin: 0 2px;
}

.trans-timing-pill .trans-timing-countdown {
  color: #0369a1;
  font-weight: 600;
}

.trans-timing-pill .trans-timing-ontime,
.trans-timing-pill .trans-timing-early {
  color: #047857;
  font-weight: 600;
}

.trans-timing-pill .trans-timing-late {
  color: #92400e;
  font-weight: 600;
}

.trans-timing-pill .trans-timing-overdue {
  color: #be123c;
  font-weight: 600;
}

.trans-timing-pill.timing-sky {
  background: #f0f9ff;
  border-color: #bae6fd;
}

.trans-timing-pill.timing-sky .icon {
  color: #0369a1;
}

.trans-timing-pill.timing-emerald {
  background: #ecfdf5;
  border-color: #a7f3d0;
}

.trans-timing-pill.timing-emerald .icon {
  color: #047857;
}

.trans-timing-pill.timing-amber {
  background: #fffbeb;
  border-color: #fde68a;
}

.trans-timing-pill.timing-amber .icon {
  color: #b45309;
}

.trans-timing-pill.timing-rose {
  background: #fff1f2;
  border-color: #fecdd3;
}

.trans-timing-pill.timing-rose .icon {
  color: #be123c;
}

.trans-v2-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
  gap: 8px;
}

.trans-v2-metric {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-lg);
  background: rgba(255, 255, 255, 0.55);
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.6);
}

.trans-v2-metric .metric-icon {
  width: 28px;
  height: 28px;
  border-radius: var(--radius-md);
  display: grid;
  place-items: center;
  flex-shrink: 0;
  background: rgba(15, 23, 42, 0.05);
  color: var(--fg-subtle);
}

.trans-v2-metric .metric-icon .icon {
  width: 14px;
  height: 14px;
}

.trans-v2-metric.metric-date .metric-icon {
  background: rgba(59, 130, 246, 0.12);
  color: #2563eb;
}

.trans-v2-metric.metric-countdown .metric-icon {
  background: rgba(2, 132, 199, 0.12);
  color: #0284c7;
}

.trans-v2-metric.metric-overdue .metric-icon {
  background: rgba(225, 29, 72, 0.1);
  color: #e11d48;
}

.trans-v2-metric.metric-ontime .metric-icon, .trans-v2-metric.metric-early .metric-icon {
  background: rgba(5, 150, 105, 0.12);
  color: #059669;
}

.trans-v2-metric .metric-content {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.trans-v2-metric .metric-label {
  font-size: 11px;
  font-weight: 600;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  line-height: 1.2;
}

.trans-v2-metric .metric-val {
  font-size: 12px;
  color: var(--fg);
  line-height: 1.4;
  font-variant-numeric: tabular-nums;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.trans-v2-metric .metric-val strong {
  font-weight: 650;
}

.trans-v2-metric .metric-val small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 400;
  margin-left: 3px;
}

.trans-v2-note {
  display: flex;
  align-items: stretch;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(241, 245, 249, 0.7);
  border: 1px solid rgba(226, 232, 240, 0.75);
}

.trans-v2-note .note-quote-bar {
  width: 3px;
  border-radius: 999px;
  background: #6366f1;
  flex-shrink: 0;
}

.trans-v2-note .note-body {
  display: flex;
  flex-direction: column;
  gap: 2px;
  min-width: 0;
}

.trans-v2-note .note-eyebrow {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.trans-v2-note .note-eyebrow .icon {
  width: 10px;
  height: 10px;
}

.trans-v2-note .note-text {
  margin: 0;
  font-size: 13px;
  font-style: italic;
  color: var(--fg);
  line-height: 1.5;
  word-break: break-word;
}

.trans-v2-footer {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(226, 232, 240, 0.65);
}

.trans-v2-author {
  display: inline-flex;
  align-items: center;
  gap: 7px;
}

.trans-avatar-circle {
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4338ca 0%, #1d4ed8 100%);
  background-color: #4338ca;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: grid;
  place-items: center;
  box-shadow: 0 1px 3px rgba(67, 56, 202, 0.25);
  flex-shrink: 0;
}

.trans-author-meta {
  display: inline-flex;
  align-items: center;
  gap: 5px;
}

.trans-author-name {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg);
  letter-spacing: -0.01em;
}

.trans-role-chip {
  padding: 1px 6px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  background: rgba(15, 23, 42, 0.06);
  color: var(--fg-subtle);
  border: 1px solid rgba(15, 23, 42, 0.08);
}

.trans-role-chip.role-manager {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border-color: rgba(99, 102, 241, 0.25);
}

.trans-role-chip.role-deputy {
  background: rgba(14, 165, 233, 0.1);
  color: #0369a1;
  border-color: rgba(14, 165, 233, 0.25);
}

.trans-clean-info {
  font-size: 12.5px;
  line-height: 1.6;
  color: var(--fg);
  padding: 4px 0;
  white-space: pre-wrap;
}

.trans-deliverable-body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding: 4px 0;
}

.trans-deliverable-output {
  display: flex;
  align-items: baseline;
  gap: 6px;
  font-size: 13px;
  color: var(--fg);
  line-height: 1.5;
}

.trans-deliverable-output .deliverable-label {
  font-size: 12px;
  font-weight: 500;
  color: var(--muted);
  flex-shrink: 0;
}

.trans-deliverable-output .deliverable-value {
  font-weight: 600;
  color: var(--fg);
  word-break: break-word;
}

.trans-deliverable-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

.trans-meta-tag {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm, 6px);
  font-size: 11.5px;
  line-height: 1.2;
  border: 1px solid var(--line);
  background: var(--bg-subtle, rgba(0, 0, 0, 0.02));
  color: var(--fg-subtle);
}

.trans-meta-tag .icon {
  width: 12px;
  height: 12px;
}

.trans-meta-tag strong {
  color: var(--fg);
  font-weight: 600;
}

.trans-meta-tag.tag-quality {
  background: rgba(99, 102, 241, 0.08);
  border-color: rgba(99, 102, 241, 0.2);
  color: #4338ca;
}

.trans-meta-tag.tag-quality strong {
  color: #3730a3;
}

.trans-meta-tag.tag-quality .icon {
  color: #4338ca;
}

.trans-meta-tag.tag-date {
  background: rgba(16, 185, 129, 0.08);
  border-color: rgba(16, 185, 129, 0.2);
  color: #047857;
}

.trans-meta-tag.tag-date strong {
  color: #065f46;
}

.trans-meta-tag.tag-date .icon {
  color: #047857;
}

.trans-meta-tag.tag-link {
  background: rgba(59, 130, 246, 0.08);
  border-color: rgba(59, 130, 246, 0.2);
  color: #1d4ed8;
  text-decoration: none;
  font-weight: 600;
}

.trans-meta-tag.tag-link:hover {
  background: rgba(59, 130, 246, 0.15);
  text-decoration: underline;
}

.trans-v2-stamp {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  color: var(--muted);
  font-variant-numeric: tabular-nums;
}

.trans-v2-stamp .audit-time {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.trans-v2-stamp .audit-time .icon-lock {
  width: 11px;
  height: 11px;
  color: var(--muted);
  opacity: 0.7;
}

.trans-v2-stamp .audit-time .progress-time {
  margin: 0;
  font-size: 11px;
  color: var(--muted);
}

.audit-lock-badge {
  display: inline-flex;
  align-items: center;
  gap: 3px;
  padding: 2px 6px;
  border-radius: var(--radius-xs);
  font-size: 11px;
  font-weight: 600;
  background: #f1f5f9;
  color: #475569;
  border: 1px solid #cbd5e1;
}

.audit-lock-badge .icon {
  width: 10px;
  height: 10px;
}

.progress-event-label {
  display: block;
  color: var(--fg-subtle);
  font-size: 11px;
  font-weight: 600;
  margin: 8px 0 4px;
}

.request-review > h3 {
  font-size: 20px;
  line-height: 1.45;
  margin: 14px 0 6px;
  overflow-wrap: anywhere;
  font-weight: 650;
}

.request-review > p {
  color: var(--muted);
  font-size: 13px;
}

.request-state {
  display: inline-block;
  padding: 4px 10px;
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  background: var(--bg-subtle);
  color: var(--muted);
}

.request-state.pending {
  background: var(--accent-soft);
  color: var(--accent);
  border: 1px solid var(--accent-border);
}

.request-state.approved {
  background: var(--success-bg);
  color: var(--success);
  border: 1px solid var(--success-border);
}

.request-state.rejected {
  background: var(--danger-bg);
  color: var(--danger);
  border: 1px solid var(--danger-border);
}

.request-reason {
  background: var(--bg-subtle);
  border: 1px solid var(--line);
  padding: 16px 18px;
  margin: 18px 0;
  border-radius: var(--radius-lg);
}

.request-reason p {
  margin: 6px 0 0;
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--fg);
  line-height: 1.6;
}

.change-table {
  min-width: 400px;
  font-size: 13px;
  margin-bottom: 18px;
}

.change-table th, .change-table td {
  padding: 12px 10px;
}

.change-table td:last-child {
  color: var(--accent);
  font-weight: 650;
}

.deletion-warning {
  padding: 14px 16px;
  background: var(--danger-bg);
  border: 1px solid var(--danger-border);
  border-radius: var(--radius-lg);
  color: var(--danger) !important;
  font-size: 13px;
  font-weight: 500;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: flex-end;
  margin: 18px 0 13px;
}

.inbox-filters {
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  align-items: flex-end;
  padding: 16px 0 0;
}

.inbox-filters .control {
  flex: 1;
  min-width: 140px;
}

.inbox-filters > .button {
  min-height: 38px;
}

.notification-card {
  padding: 18px 20px;
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  background: var(--surface);
  margin-bottom: 12px;
  box-shadow: var(--shadow-xs);
  transition: var(--duration-fast);
  transition-property: color, background-color, border-color, box-shadow, transform, opacity;
}

.notification-card.unread {
  background: var(--accent-soft);
  border-color: var(--accent-border);
  box-shadow: inset 3px 0 0 var(--accent), var(--shadow-xs);
}

.notification-card h3 {
  font-size: 13.5px;
  line-height: 1.5;
  margin: 0 0 6px;
  overflow-wrap: anywhere;
}

.notification-card > p {
  font-size: 13px;
  white-space: pre-wrap;
  overflow-wrap: anywhere;
  color: var(--fg-subtle);
  margin: 0 0 14px;
  line-height: 1.6;
}

.notification-heading {
  display: flex;
  flex-wrap: wrap;
  justify-content: space-between;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.notification-heading time {
  font-size: 11px;
  color: var(--muted);
}

.notification-type {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 650;
  color: var(--accent);
  text-transform: uppercase;
  letter-spacing: 0.04em;
}

.notification-type .icon {
  width: 14px;
  height: 14px;
}

.notification-card.kind-reminder .notification-type {
  color: var(--warning);
}

.notification-meta {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  font-size: 11px;
  color: var(--muted);
}

.notification-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 7px;
}

.notification-empty {
  padding: 48px 20px;
  text-align: center;
  color: var(--muted);
}

.notification-empty strong {
  color: var(--fg);
  font-size: 16px;
}

.notification-empty p {
  font-size: 13px;
}

@media (max-width: 1100px) {
  .manager-pulse:not(.pbi-kpi-strip) {
    grid-template-columns: minmax(180px, 1.5fr) repeat(3, minmax(80px, 1fr));
  }
  .manager-pulse:not(.pbi-kpi-strip) > * {
    padding: 11px 13px;
  }
}
@media (max-width: 800px) {
  .manager-pulse:not(.pbi-kpi-strip) {
    grid-template-columns: minmax(170px, 1.4fr) repeat(3, minmax(65px, 1fr));
  }
  .pulse-main > strong {
    font-size: 24px;
  }
  .pulse-metric strong {
    font-size: 24px;
  }
  .approval-preview > .pending-chip {
    display: none;
  }
}
@media (max-width: 650px) {
  .manager-pulse:not(.pbi-kpi-strip) {
    margin-top: 10px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
  .manager-pulse:not(.pbi-kpi-strip) > * {
    padding: 10px 12px;
  }
  .pulse-main > .eyebrow {
    font-size: 11px;
    letter-spacing: 0.8px;
    margin-bottom: 2px;
  }
  .pulse-main p {
    font-size: 11px;
  }
  .pulse-metric {
    flex-direction: row;
    flex-wrap: wrap;
    justify-content: flex-start;
    align-items: center;
    gap: 6px;
  }
  .pulse-metric > span:last-child {
    flex-basis: 100%;
    font-size: 11px;
  }
  .approval-queue {
    padding: 13px;
  }
  .approval-queue[data-empty=true] {
    align-items: flex-start;
    flex-direction: column;
    gap: 5px;
  }
  .approval-queue-list {
    grid-template-columns: minmax(0, 1fr);
  }
  .section-heading h2 {
    font-size: 16px;
  }
  .section-heading .control {
    width: 100%;
  }
  #main-content:has(.market-map) {
    padding-top: 17px;
  }
  #main-content:has(.market-map) .page-heading h1 {
    font-size: 24px;
  }
  #main-content:has(.market-map) .page-heading p {
    display: none;
  }
  #main-content:has(.market-map) .toolbar .control.search {
    margin-left: 0;
    max-width: none;
  }
  .market-tile {
    padding: 8px;
  }
  .tile-title {
    font-size: 13px;
  }
  .score-details > summary span {
    display: block;
    margin: 7px 0 0;
  }
  .notification-card {
    padding: 15px;
  }
  .inbox-filters > .button {
    width: 100%;
  }
}
@media (prefers-reduced-motion: reduce) {
  .weight-card, .pulse-track span, .approval-preview, .approval-metric {
    transition: none !important;
  }
}
.view-toggle-group {
  display: inline-flex;
  align-items: center;
  gap: 2px;
  background: rgba(15, 23, 42, 0.06);
  padding: 3px;
  border-radius: var(--radius-lg, 10px);
  border: 1px solid var(--line-subtle);
}

.view-toggle-group .view-toggle-btn {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 5px 11px;
  font-size: 12px;
  font-weight: 600;
  color: #475569;
  background: transparent;
  border: none;
  border-radius: var(--radius-md, 7px);
  cursor: pointer;
  transition: color 160ms ease, background-color 160ms ease, box-shadow 160ms ease;
  white-space: nowrap;
}

.view-toggle-group .view-toggle-btn .icon {
  width: 14px;
  height: 14px;
  color: currentColor;
}

.view-toggle-group .view-toggle-btn:hover {
  color: var(--text);
  background: rgba(255, 255, 255, 0.6);
}

.view-toggle-group .view-toggle-btn.active {
  background: var(--surface);
  color: var(--accent);
  font-weight: 700;
  box-shadow: 0 1px 3px rgba(0, 0, 0, 0.08);
}

.approval-view-toggle {
  margin-right: 4px;
}

.roster-header-right {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
}

.roster-view-toggle {
  flex-shrink: 0;
}

.wbs-view-toggle {
  flex-shrink: 0;
}

.approval-queue-list.is-table-mode {
  display: block;
  gap: 0;
}

.approval-table-wrap {
  width: 100%;
  max-width: 100%;
  max-height: 368px;
  box-sizing: border-box;
  overflow: auto;
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  margin-top: 6px;
}

.approval-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.approval-table thead tr {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.approval-table thead tr th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-subtle);
  padding: 8px 7px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  color: var(--muted);
  white-space: nowrap;
  box-shadow: inset 0 -1px 0 var(--line);
}

.approval-table tbody tr.approval-row {
  transition: background 120ms ease;
  border-bottom: 1px solid var(--line-subtle);
}

.approval-table tbody tr.approval-row:last-child {
  border-bottom: none;
}

.approval-table tbody tr.approval-row:hover {
  background: var(--surface-hover);
}

.approval-table tbody tr.approval-row.is-deliverable,
.approval-table tbody tr.approval-row.is-request,
.approval-table tbody tr.approval-row.is-history,
.approval-table tbody tr.approval-row.is-timeline {
  border-left: 2px solid transparent;
}

.approval-table tbody tr.approval-row.is-delete {
  border-left: 2px solid #ef4444;
  background: rgba(239, 68, 68, 0.02);
}

.approval-table tbody tr.approval-row.is-delete:hover {
  background: rgba(239, 68, 68, 0.05);
}

.approval-table tbody tr.approval-row td {
  padding: 8px 7px;
  vertical-align: middle;
}

.approval-table .col-stt {
  width: 32px;
  text-align: center;
  font-weight: 600;
  color: var(--muted);
}

.approval-table .col-type {
  white-space: nowrap;
}

.approval-table .col-title {
  width: 100%;
  min-width: 180px;
  max-width: 310px;
}

.approval-table .col-person {
  white-space: nowrap;
}

.approval-table .col-dates {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.approval-table .col-status {
  white-space: nowrap;
}

.approval-table .col-evidence {
  white-space: nowrap;
}

.approval-table .col-action {
  white-space: nowrap;
  text-align: right;
}

.approval-table .approval-type-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  padding: 3px 8px;
  border-radius: 999px;
  white-space: nowrap;
}

.approval-table .approval-type-pill.deliverable {
  background: #fef3c7;
  color: #92400e;
}

.approval-table .approval-type-pill.deliverable .pill-dot {
  width: 6px;
  height: 6px;
  border-radius: 999px;
  background: #d97706;
}

.approval-table .approval-type-pill.timeline {
  background: #e0e7ff;
  color: #3730a3;
}

.approval-table .approval-type-pill.delete {
  background: #fee2e2;
  color: #b91c1c;
}

.approval-table .approval-type-pill .icon {
  width: 12px;
  height: 12px;
}

.approval-table .row-title-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

@media (max-width: 640px) {
  .approval-table .row-title-wrap {
    flex-wrap: wrap;
  }
}
.approval-table .row-title-wrap .row-platform-badge {
  display: inline-flex;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  background: #eef2ff;
  color: #4338ca;
  padding: 1px 6px;
  border-radius: 4px;
  letter-spacing: 0.02em;
}

.approval-table .row-title-wrap .row-task-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text);
  line-height: 1.35;
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.approval-table .row-sub-meta {
  display: flex;
  align-items: center;
  gap: 6px;
  margin-top: 2px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.approval-table .row-meta-sep {
  color: #cbd5e1;
  flex-shrink: 0;
  font-size: 11px;
}

.approval-table .row-output-hint {
  font-size: 11.5px;
  color: var(--muted);
  min-width: 0;
  display: -webkit-box;
  -webkit-line-clamp: 1;
  -webkit-box-orient: vertical;
  overflow: hidden;
  white-space: normal;
}

.approval-table .row-proposal-hint {
  font-size: 11px;
  color: #92400e;
  font-weight: 600;
  flex-shrink: 0;
  white-space: nowrap;
}

.approval-table .row-diff-snippet {
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 2px;
}

.approval-table .row-diff-snippet .highlight {
  color: #4338ca;
  font-weight: 700;
}

.approval-table .row-reason-hint {
  font-size: 11px;
  color: var(--muted);
  font-style: italic;
  margin-top: 2px;
}

.approval-table .row-person-info {
  display: flex;
  align-items: center;
  gap: 8px;
}

.approval-table .row-person-info .row-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  background-color: #4338ca;
  color: #ffffff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.approval-table .row-person-info .row-name {
  font-weight: 600;
  font-size: 12.5px;
  color: var(--text);
}

.approval-table .row-dates-wrap {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
}

.approval-table .row-dates-wrap .date-due {
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.approval-table .row-dates-wrap .date-due .icon {
  width: 12px;
  height: 12px;
}

.approval-table .row-dates-wrap .date-done {
  color: var(--text);
  font-weight: 600;
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.approval-table .row-dates-wrap .date-done .icon {
  width: 12px;
  height: 12px;
}

.approval-table .row-link-btn {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4338ca;
  text-decoration: none;
  padding: 3px 8px;
  border-radius: 6px;
  background: rgba(99, 102, 241, 0.08);
  transition: background 150ms ease;
}

.approval-table .row-link-btn .icon {
  width: 12px;
  height: 12px;
}

.approval-table .row-link-btn:hover {
  background: rgba(99, 102, 241, 0.16);
  text-decoration: underline;
}

.approval-table .btn-review-deliverable {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  min-height: 28px;
  font-size: 12px;
  font-weight: 600;
  padding: 5px 12px;
  border-radius: var(--radius-md, 7px);
  white-space: nowrap;
}

.approval-table .btn-review-deliverable .icon {
  width: 13px;
  height: 13px;
}

.roster-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-top: 10px;
}

.roster-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.roster-table thead tr {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.roster-table thead tr th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.roster-table tbody tr.roster-row {
  transition: background 120ms ease;
  border-bottom: 1px solid var(--line-subtle);
}

.roster-table tbody tr.roster-row:last-child {
  border-bottom: none;
}

.roster-table tbody tr.roster-row:hover {
  background: var(--bg-subtle);
}

.roster-table tbody tr.roster-row.is-selected {
  background: #eff6ff;
  outline: 1px solid #bfdbfe;
}

.roster-table tbody tr.roster-row td {
  padding: 10px 14px;
  vertical-align: middle;
}

.roster-table .col-rank {
  width: 50px;
  text-align: center;
}

.roster-table .col-member {
  min-width: 180px;
}

.roster-table .col-kpi {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.roster-table .col-workload, .roster-table .col-done, .roster-table .col-doing, .roster-table .col-waiting, .roster-table .col-late {
  text-align: center;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.roster-table .col-progress {
  min-width: 140px;
}

.roster-table .col-action {
  text-align: right;
  white-space: nowrap;
}

.roster-table .rank-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 28px;
  height: 28px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 800;
  background: #f1f5f9;
  color: #475569;
}

.roster-table .rank-badge.is-first {
  background: #fef3c7;
  color: #78350f;
  border: 1px solid #f59e0b;
  box-shadow: 0 2px 6px rgba(245, 158, 11, 0.2);
}

.roster-table .rank-badge.is-second {
  background: #e2e8f0;
  color: #1e293b;
  border: 1px solid #94a3b8;
}

.roster-table .rank-badge.is-third {
  background: #ffedd5;
  color: #7c2d12;
  border: 1px solid #f97316;
}

.roster-table .roster-member-cell {
  display: flex;
  align-items: center;
  gap: 10px;
}

.roster-table .roster-member-cell .member-avatar {
  width: 32px;
  height: 32px;
  border-radius: 999px;
  background: linear-gradient(135deg, #4338ca, #6d28d9);
  background-color: #4338ca;
  color: #fff;
  font-size: 11px;
  font-weight: 700;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex-shrink: 0;
}

.roster-table .roster-member-cell .member-meta {
  display: flex;
  flex-direction: column;
}

.roster-table .roster-member-cell .member-meta .member-name {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.roster-table .roster-member-cell .member-meta .member-role {
  font-size: 11px;
  color: var(--muted);
}

.roster-table .roster-kpi-badge {
  display: inline-flex;
  padding: 3px 8px;
  border-radius: 6px;
  font-size: 12px;
  font-weight: 800;
  background: #ede9fe;
  color: #6d28d9;
}

.roster-table .roster-stat-num {
  font-weight: 700;
  font-size: 14px;
  color: var(--text);
}

.roster-table .roster-mini-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: var(--line);
  display: flex;
  overflow: hidden;
  margin-bottom: 2px;
}

.roster-table .btn-roster-filter {
  font-size: 11.5px;
  font-weight: 600;
}

.wbs-projects-table-wrap {
  width: 100%;
  max-width: 100%;
  box-sizing: border-box;
  overflow-x: auto;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  box-shadow: var(--shadow-xs);
  margin-top: 10px;
}

.wbs-projects-table {
  width: 100%;
  border-collapse: collapse;
  font-size: 13px;
  text-align: left;
}

.wbs-projects-table thead tr {
  background: var(--bg-subtle);
  border-bottom: 1px solid var(--line);
}

.wbs-projects-table thead tr th {
  padding: 10px 14px;
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--muted);
  white-space: nowrap;
}

.wbs-projects-table tbody tr.wbs-project-row {
  transition: background 120ms ease;
  border-bottom: 1px solid var(--line-subtle);
}

.wbs-projects-table tbody tr.wbs-project-row:last-child {
  border-bottom: none;
}

.wbs-projects-table tbody tr.wbs-project-row:hover {
  background: var(--bg-subtle);
}

.wbs-projects-table tbody tr.wbs-project-row td {
  padding: 10px 14px;
  vertical-align: middle;
}

.wbs-projects-table .col-stt {
  width: 44px;
  text-align: center;
  color: var(--muted);
  font-weight: 600;
}

.wbs-projects-table .col-project {
  min-width: 220px;
}

.wbs-projects-table .col-workload {
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.wbs-projects-table .col-progress {
  min-width: 160px;
}

.wbs-projects-table .col-status {
  white-space: nowrap;
}

.wbs-projects-table .col-rate {
  width: 60px;
  text-align: right;
  font-variant-numeric: tabular-nums;
}

.wbs-projects-table .wbs-project-cell {
  display: flex;
  align-items: center;
  gap: 8px;
}

.wbs-projects-table .wbs-project-cell .wbs-project-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 26px;
  height: 26px;
  border-radius: 6px;
  font-size: 11px;
  font-weight: 800;
  background: #e0e7ff;
  color: #3730a3;
  flex-shrink: 0;
}

.wbs-projects-table .wbs-project-cell .project-title {
  font-weight: 700;
  font-size: 13px;
  color: var(--text);
}

.wbs-projects-table .wbs-progress-cell .wbs-table-track {
  width: 100%;
  height: 7px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.wbs-projects-table .wbs-progress-cell .wbs-table-track .wbs-table-fill {
  height: 100%;
  background: linear-gradient(90deg, #6366f1, #10b981);
  border-radius: 999px;
  transition: width 300ms ease;
}

.wbs-projects-table .wbs-status-cell {
  font-size: 11.5px;
  font-weight: 600;
}

.wbs-projects-table .wbs-status-cell.is-late {
  color: #b91c1c;
}

.wbs-projects-table .wbs-status-cell.is-ok {
  color: #047857;
}

.wbs-projects-table .rate-num {
  font-weight: 700;
  color: var(--text);
}

.deliverable-review-card {
  padding: 14px 16px;
  border: 1px solid var(--line-subtle);
  background: var(--glass-surface);
  backdrop-filter: blur(12px);
  -webkit-backdrop-filter: blur(12px);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 10px;
  transition: background-color 0.2s var(--ease), border-color 0.2s var(--ease), box-shadow 0.2s var(--ease), transform 0.2s var(--ease);
}

@media (hover: hover) and (pointer: fine) {
  .deliverable-review-card:hover {
    background: var(--surface);
    border-color: rgba(99, 102, 241, 0.3);
    box-shadow: 0 8px 24px -4px rgba(99, 102, 241, 0.1);
    transform: translateY(-2px);
  }
}
.deliverable-review-card .deliverable-card-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.deliverable-review-card .deliverable-badge {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 2.5px 8px;
  background: rgba(99, 102, 241, 0.08);
  color: var(--accent);
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: var(--radius-full);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.01em;
}

.deliverable-review-card .deliverable-badge .badge-dot {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: var(--accent);
  box-shadow: 0 0 6px var(--accent);
}

.deliverable-review-card .deliverable-employee {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px;
  color: var(--fg-subtle, var(--muted));
  font-weight: 550;
}

.deliverable-review-card .deliverable-user-avatar {
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4338ca;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.deliverable-review-card .deliverable-user-name {
  max-width: 140px;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.deliverable-review-card .deliverable-card-body {
  flex: 1;
  min-width: 0;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.deliverable-review-card .deliverable-title {
  font-size: 13.5px;
  font-weight: 650;
  color: var(--fg);
  line-height: 1.4;
  letter-spacing: -0.01em;
}

.deliverable-review-card .deliverable-proposal-row {
  display: flex;
  align-items: center;
  gap: 6px;
  margin: 2px 0;
}

.deliverable-review-card .deliverable-proposal-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-size: 11px;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  padding: 1.5px 7px;
  border-radius: var(--radius-sm);
  font-weight: 600;
}

.deliverable-review-card .deliverable-proposal-time {
  font-size: 11px;
  color: var(--muted);
}

.deliverable-review-card .deliverable-output {
  font-size: 12px;
  color: var(--muted);
  line-height: 1.4;
  margin: 2px 0 0;
}

.deliverable-review-card .deliverable-note {
  font-size: 11.5px;
  color: var(--muted);
  font-style: italic;
  margin: 2px 0 4px;
  line-height: 1.4;
}

.deliverable-review-card .deliverable-meta {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px 10px;
  font-size: 11.5px;
  color: var(--muted);
  margin-top: 4px;
}

.deliverable-review-card .deliverable-meta .meta-item {
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.deliverable-review-card .deliverable-meta .meta-item .icon {
  width: 12px;
  height: 12px;
  color: var(--muted);
}

.deliverable-review-card .deliverable-meta .meta-sep {
  color: #475569;
  font-weight: 400;
}

.deliverable-review-card .deliverable-timeliness-pill {
  padding: 1.5px 7px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
}

.deliverable-review-card .deliverable-timeliness-pill.ontime {
  background: rgba(5, 150, 105, 0.09);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.deliverable-review-card .deliverable-timeliness-pill.early {
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.deliverable-review-card .deliverable-timeliness-pill.late {
  background: rgba(220, 38, 38, 0.09);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

/* FOOTER & BUTTON REFINEMENT */
.deliverable-review-card .deliverable-card-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-top: 6px;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
}

.deliverable-review-card .deliverable-actions-left {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
}

.deliverable-review-card .deliverable-actions-right {
  display: flex;
  align-items: center;
  margin-left: auto;
}

.deliverable-review-card .btn-deliverable-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 28px;
  padding: 0 9px;
  font-size: 11.5px;
  font-weight: 550;
  color: #475569;
  border: 1px solid #94a3b8;
  background: transparent;
  border-radius: var(--radius-md);
  text-decoration: none;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.deliverable-review-card .btn-deliverable-link .icon {
  width: 12px;
  height: 12px;
}

.deliverable-review-card .btn-deliverable-link:hover {
  background: var(--surface-hover);
  color: var(--accent);
  border-color: rgba(99, 102, 241, 0.3);
}

/* THE REFINED BUTTON: Sleek, compact, high-craft, not bulky */
.deliverable-review-card .btn-review-deliverable {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 5px;
  height: 29px;
  padding: 0 11px;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: -0.01em;
  color: #ffffff;
  background: var(--accent-btn, #2563eb);
  background-color: var(--accent-btn, #2563eb);
  border: 1px solid var(--accent-btn, #2563eb);
  border-radius: var(--radius-md);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(9, 9, 11, 0.14);
  cursor: pointer;
  white-space: nowrap;
  transition: background-color 0.16s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.16s cubic-bezier(0.16, 1, 0.3, 1), transform 0.16s cubic-bezier(0.16, 1, 0.3, 1);
}

.deliverable-review-card .btn-review-deliverable .icon {
  width: 13px;
  height: 13px;
  stroke-width: 2.2;
}

.deliverable-review-card .btn-review-deliverable:hover {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  box-shadow: 0 3px 10px rgba(79, 70, 229, 0.32), inset 0 1px 0 rgba(255, 255, 255, 0.3);
  transform: translateY(-1px);
}

.deliverable-review-card .btn-review-deliverable:active {
  transform: scale(0.97);
  box-shadow: 0 1px 2px rgba(79, 70, 229, 0.2);
}

.quality-select-cards,
.deliverable-eval-form .quality-select-cards,
.submission-form .quality-select-cards {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 8px;
}

@media (max-width: 600px) {
  .quality-select-cards,
  .deliverable-eval-form .quality-select-cards,
  .submission-form .quality-select-cards {
    grid-template-columns: 1fr;
  }
}
.quality-card {
  display: flex;
  flex-direction: column;
  gap: 6px;
  padding: 11px 13px;
  border: 1.5px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  border-radius: var(--radius-lg, 12px);
  background: var(--surface, #ffffff);
  cursor: pointer;
  position: relative;
  transition: border-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), background-color 0.2s cubic-bezier(0.16, 1, 0.3, 1), box-shadow 0.2s cubic-bezier(0.16, 1, 0.3, 1), transform 0.2s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.04);
}

@media (hover: hover) and (pointer: fine) {
  .quality-card:hover {
    border-color: rgba(99, 102, 241, 0.4);
    background: var(--bg-subtle, #f8fafc);
    transform: translateY(-1px);
    box-shadow: 0 4px 12px rgba(15, 23, 42, 0.06);
  }
}
.quality-card:has(input[type=radio]:focus-visible) {
  outline: 2px solid var(--accent);
  outline-offset: 2px;
}

.quality-card-top {
  display: flex;
  align-items: center;
  gap: 8px;
}

.quality-radio-custom {
  position: relative;
  width: 17px;
  height: 17px;
  flex-shrink: 0;
}

.quality-radio-custom input[type=radio] {
  position: absolute;
  opacity: 0;
  width: 100%;
  height: 100%;
  margin: 0;
  cursor: pointer;
  z-index: 2;
}

.quality-radio-custom .radio-circle {
  display: block;
  width: 17px;
  height: 17px;
  border-radius: 50%;
  border: 1.8px solid #64748b;
  background: var(--input-bg, var(--surface));
  transition: border-color 0.16s ease, background-color 0.16s ease, box-shadow 0.16s ease;
  position: relative;
  box-sizing: border-box;
}

.quality-radio-custom input[type=radio]:checked + .radio-circle {
  border-color: var(--card-accent, #4338ca);
  background: var(--card-accent, #4338ca);
}

.quality-radio-custom input[type=radio]:checked + .radio-circle::after {
  content: "";
  position: absolute;
  top: 50%;
  left: 50%;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #ffffff;
  transform: translate(-50%, -50%);
}

.quality-title-wrap {
  display: flex;
  flex-direction: column;
  gap: 1px;
  flex: 1;
  min-width: 0;
}

.quality-title-wrap .quality-name {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg, #0f172a);
  letter-spacing: -0.01em;
}

.quality-title-wrap .quality-tagline {
  font-size: 11px;
  color: #475569;
  line-height: 1.25;
}

.quality-score-badge {
  padding: 2.5px 7px;
  border-radius: var(--radius-full, 999px);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
  letter-spacing: -0.01em;
  background: rgba(15, 23, 42, 0.05);
  color: var(--fg-subtle, #334155);
  font-variant-numeric: tabular-nums;
}

.quality-card-conditions {
  display: flex;
  flex-direction: column;
  gap: 3.5px;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.025);
  border-radius: var(--radius-md, 7px);
  border: 1px solid rgba(15, 23, 42, 0.04);
}

.quality-card-conditions .condition-item {
  display: flex;
  align-items: flex-start;
  gap: 5px;
  font-size: 11px;
  line-height: 1.4;
  color: var(--fg-subtle, #334155);
}

.quality-card-conditions .condition-item .cond-dot {
  color: var(--card-accent, #4338ca);
  font-weight: 700;
  line-height: 1;
  font-size: 12px;
}

.quality-card-group-rubric {
  display: flex;
  flex-direction: column;
  gap: 1.5px;
  padding: 2px 8px;
  background: rgba(99, 102, 241, 0.05);
  border-left: 2.5px solid var(--card-accent, #4338ca);
  border-radius: 0 var(--radius-sm, 5px) var(--radius-sm, 5px) 0;
  font-size: 11px;
  line-height: 1.35;
}

.quality-card-group-rubric > summary.group-rubric-summary {
  display: flex;
  align-items: center;
  gap: 5px;
  min-height: 24px;
  padding: 3px 0;
  cursor: pointer;
  list-style: none;
  min-width: 0;
  max-width: 100%;
}

.quality-card-group-rubric > summary.group-rubric-summary::-webkit-details-marker {
  display: none;
}

.quality-card-group-rubric > summary.group-rubric-summary .group-rubric-peek {
  flex: 1 1 0%;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.quality-card-group-rubric .group-rubric-badge {
  font-weight: 700;
  color: var(--card-accent, #4338ca);
}

.quality-card-group-rubric .group-rubric-content {
  color: var(--fg-subtle, #334155);
  font-style: italic;
}

.quality-card.tier-excellent {
  --card-accent: #047857;
}

.quality-card.tier-excellent .quality-score-badge {
  background: var(--success-bg);
  color: var(--success);
}

.quality-card.tier-excellent.is-selected {
  border-color: var(--success);
  background: var(--success-bg);
  box-shadow: 0 0 0 1px var(--success);
}

.quality-card.tier-good {
  --card-accent: #1d4ed8;
}

.quality-card.tier-good .quality-score-badge {
  background: rgba(37, 99, 235, 0.1);
  color: #1d4ed8;
}

.quality-card.tier-good.is-selected {
  border-color: #1d4ed8;
  background: rgba(37, 99, 235, 0.04);
  box-shadow: 0 0 0 1px #1d4ed8, 0 4px 12px rgba(37, 99, 235, 0.1);
}

.quality-card.tier-fair {
  --card-accent: #92400e;
}

.quality-card.tier-fair .quality-score-badge {
  background: rgba(217, 119, 6, 0.1);
  color: #92400e;
}

.quality-card.tier-fair.is-selected {
  border-color: #b45309;
  background: rgba(217, 119, 6, 0.04);
  box-shadow: 0 0 0 1px #b45309, 0 4px 12px rgba(217, 119, 6, 0.1);
}

.quality-card.tier-poor {
  --card-accent: #be123c;
}

.quality-card.tier-poor .quality-score-badge {
  background: rgba(225, 29, 72, 0.1);
  color: #be123c;
}

.quality-card.tier-poor.is-selected {
  border-color: #e11d48;
  background: rgba(225, 29, 72, 0.04);
  box-shadow: 0 0 0 1px #e11d48, 0 4px 12px rgba(225, 29, 72, 0.1);
}

@media (prefers-reduced-motion: reduce) {
  .weight-card, .pulse-track span, .approval-preview, .approval-metric {
    transition: none !important;
  }
}
/* ==========================================================================
   UI/UX PRO MAX & TASTE UPGRADE (Task Detail Drawer & Inspector Redesign)
   ========================================================================== */
/* --- Live Pulsing Beacon Animation --- */
@keyframes pulse-beacon {
  0%, 100% {
    transform: scale(1);
    opacity: 0.85;
  }
  50% {
    transform: scale(2.2);
    opacity: 0;
  }
}
.live-pulse-beacon {
  display: inline-block;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  position: relative;
  flex-shrink: 0;
}

.live-pulse-beacon::before {
  content: "";
  position: absolute;
  inset: -2px;
  border-radius: 50%;
  background: inherit;
  opacity: 0.75;
  animation: pulse-beacon 2s cubic-bezier(0.4, 0, 0.6, 1) infinite;
}

.live-pulse-beacon.amber {
  background: #d97706;
}

.live-pulse-beacon.emerald {
  background: #059669;
}

.live-pulse-beacon.blue {
  background: #2563eb;
}

.live-pulse-beacon.rose {
  background: #dc2626;
}

.live-pulse-beacon.indigo {
  background: #4f46e5;
}

/* --- Breadcrumbs Trail --- */
.task-overview-breadcrumbs {
  display: flex !important;
  flex-direction: row !important;
  align-items: center !important;
  justify-content: flex-start !important;
  flex-wrap: wrap !important;
  gap: 4px 6px !important;
  font-size: 11px !important;
  color: var(--muted, #64748b) !important;
  margin: 0 0 4px 0 !important;
  width: 100% !important;
  text-align: left !important;
}

.task-overview-breadcrumbs .bc-item {
  display: inline-flex !important;
  align-items: center;
  gap: 3.5px;
  padding: 1.5px 6.5px;
  border-radius: var(--radius-sm, 6px);
  background: rgba(15, 23, 42, 0.04);
  font-weight: 550;
  font-size: 11px;
  color: var(--fg-subtle, #334155);
  line-height: 1.35;
}

.task-overview-breadcrumbs .bc-item .icon {
  width: 11px;
  height: 11px;
  color: inherit;
}

.task-overview-breadcrumbs .bc-item.bc-prog {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.18);
  font-weight: 600;
}

.task-overview-breadcrumbs .bc-item.bc-group {
  background: rgba(5, 150, 105, 0.08);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.18);
  font-weight: 600;
}

.task-overview-breadcrumbs .bc-sep {
  color: #475569;
  font-size: 11px;
  font-weight: 600;
  user-select: none;
  display: inline-block !important;
  margin: 0 1px;
}

/* --- Header Status & Assignee Bar --- */
.task-overview-header-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  margin-bottom: 2px;
}

.task-overview-header-row .task-status-pill-wrap {
  display: flex;
  align-items: center;
  gap: 6px;
  flex-wrap: wrap;
}

.task-status-badge-v2 {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: 999px;
  font-size: 11.5px;
  font-weight: 650;
  letter-spacing: -0.01em;
}

.task-status-badge-v2.status-awaiting {
  background: rgba(245, 158, 11, 0.1);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.32);
}

.task-status-badge-v2.status-done {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.32);
}

.task-status-badge-v2.status-progress {
  background: rgba(59, 130, 246, 0.09);
  color: #1d4ed8;
  border: 1px solid rgba(59, 130, 246, 0.28);
}

.task-status-badge-v2.status-late {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.32);
}

.task-partner-chip {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 3px 9px;
  border-radius: 999px;
  background: rgba(245, 158, 11, 0.08);
  color: #92400e;
  border: 1px solid rgba(245, 158, 11, 0.22);
  font-size: 11px;
  font-weight: 600;
}

.task-partner-chip .icon {
  width: 12px;
  height: 12px;
}

.task-assignee-chip-v2 {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  padding: 3px 10px 3px 4px;
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  border-radius: 999px;
  font-size: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
}

.task-assignee-chip-v2 .assignee-avatar {
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  background-color: #4338ca;
  color: #ffffff;
  font-size: 11px;
  line-height: 1.25;
  font-weight: 700;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.task-assignee-chip-v2 .assignee-name {
  font-weight: 600;
  color: var(--fg, #0f172a);
}

.task-assignee-chip-v2 .assignee-role {
  font-size: 11px;
  color: #475569;
  background: rgba(15, 23, 42, 0.05);
  padding: 1px 5px;
  border-radius: 4px;
}

/* --- Task Title --- */
.task-overview-title-v2 {
  font-size: 19px;
  font-weight: 700;
  line-height: 1.35;
  color: var(--fg, #0f172a);
  letter-spacing: -0.022em;
  margin: 2px 0 0;
}

/* --- Timeline Inspector Card --- */
.task-timeline-inspector {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 7px 12px;
  border-radius: var(--radius-md, 8px);
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--line-subtle, #e2e8f0);
}

.task-timeline-inspector .timeline-dates-group {
  display: flex;
  align-items: center;
  gap: 10px;
  flex-wrap: wrap;
}

.task-timeline-inspector .timeline-date-block {
  display: flex;
  align-items: center;
  gap: 6px;
}

.task-timeline-inspector .timeline-date-block .timeline-label {
  font-size: 11px;
  font-weight: 600;
  color: var(--muted, #64748b);
  letter-spacing: 0;
  text-transform: none;
}

.task-timeline-inspector .timeline-date-block .timeline-val {
  font-size: 13px;
  font-weight: 700;
  color: var(--fg, #0f172a);
  font-variant-numeric: tabular-nums;
}

.task-timeline-inspector .timeline-arrow-sep {
  color: #475569;
  display: flex;
  align-items: center;
}

.task-timeline-inspector .timeliness-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 9px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  font-variant-numeric: tabular-nums;
  margin-left: auto;
}

.task-timeline-inspector .timeliness-live-pill.is-early {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
  box-shadow: 0 0 12px rgba(16, 185, 129, 0.15);
}

.task-timeline-inspector .timeliness-live-pill.is-ontime {
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.task-timeline-inspector .timeliness-live-pill.is-late {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
  box-shadow: 0 0 12px rgba(239, 68, 68, 0.15);
}

.task-timeline-inspector .timeliness-live-pill.is-remaining {
  background: rgba(99, 102, 241, 0.08);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.2);
}

.task-timeline-inspector .timeliness-live-pill.is-overdue {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

.task-timeline-inspector .timeliness-live-pill .pts-tag {
  background: #334155;
  color: #ffffff;
  padding: 1px 5px;
  border-radius: 4px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.task-timeline-inspector .timeliness-live-pill.is-early .pts-tag {
  background: #047857;
}

.task-timeline-inspector .timeliness-live-pill.is-ontime .pts-tag {
  background: #1d4ed8;
}

.task-timeline-inspector .timeliness-live-pill.is-late .pts-tag,
.task-timeline-inspector .timeliness-live-pill.is-overdue .pts-tag {
  background: #b91c1c;
}

.task-timeline-inspector .timeliness-live-pill.is-remaining .pts-tag {
  background: #4338ca;
}

/* --- Hero Decision & Acceptance Card --- */
.task-review-hero {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 12px;
  border-radius: var(--radius-md, 8px);
  backdrop-filter: blur(16px);
  -webkit-backdrop-filter: blur(16px);
}

.task-review-hero.hero-awaiting {
  background: #fffbeb;
  border: 1.5px solid rgba(245, 158, 11, 0.35);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px -4px rgba(245, 158, 11, 0.12);
}

.task-review-hero.hero-approved {
  background: #ecfdf5;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px -4px rgba(16, 185, 129, 0.12);
}

.task-review-hero.hero-rework {
  background: #fef2f2;
  border: 1.5px solid rgba(239, 68, 68, 0.35);
  box-shadow: inset 0 1px 1px 0 rgba(255, 255, 255, 0.9), 0 8px 24px -4px rgba(239, 68, 68, 0.12);
}

.task-review-hero .hero-left {
  flex: 1;
  min-width: 0;
}

.task-review-hero .hero-eyebrow {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.task-review-hero .hero-eyebrow.amber {
  color: #92400e;
}

.task-review-hero .hero-eyebrow.emerald {
  color: #047857;
}

.task-review-hero .hero-proposal-info {
  margin-top: 4px;
  display: flex;
  flex-direction: column;
  gap: 2px;
}

.task-review-hero .proposal-quality-tag {
  font-size: 13.5px;
  color: var(--fg, #0f172a);
  font-weight: 550;
}

.task-review-hero .proposal-quality-tag strong {
  color: #92400e;
  font-weight: 700;
}

.task-review-hero .proposal-note-quote {
  margin: 4px 0 2px;
  font-size: 12px;
  font-style: italic;
  color: var(--fg-subtle, #334155);
}

.task-review-hero .proposal-sub {
  font-size: 11.5px;
  color: var(--muted, #64748b);
}

.task-review-hero .approved-score-title {
  font-size: 14.5px;
  font-weight: 700;
  color: #047857;
  font-variant-numeric: tabular-nums;
}

.task-review-hero .approved-score-sub {
  font-size: 11.5px;
  color: var(--muted, #64748b);
  display: block;
  margin-top: 2px;
}

.task-review-hero .btn-hero-action {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  height: 32px;
  padding: 0 13px;
  border-radius: var(--radius-md, 8px);
  font-size: 12px;
  font-weight: 650;
  cursor: pointer;
  transition: color 160ms cubic-bezier(0.16, 1, 0.3, 1), background-color 160ms cubic-bezier(0.16, 1, 0.3, 1), border-color 160ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 160ms cubic-bezier(0.16, 1, 0.3, 1), transform 160ms cubic-bezier(0.16, 1, 0.3, 1);
  flex-shrink: 0;
}

.task-review-hero .btn-hero-action .icon {
  width: 14px;
  height: 14px;
}

.task-review-hero .btn-hero-action.primary {
  background: linear-gradient(135deg, #4338ca 0%, #4f46e5 100%);
  background-color: #4338ca;
  color: #ffffff;
  border: 0;
  box-shadow: 0 4px 14px rgba(79, 70, 229, 0.35), inset 0 1px 0 rgba(255, 255, 255, 0.3);
}

.task-review-hero .btn-hero-action.primary:hover {
  transform: translateY(-1.5px);
  box-shadow: 0 6px 20px rgba(79, 70, 229, 0.45);
}

.task-review-hero .btn-hero-action.primary:active {
  transform: scale(0.975);
}

.task-review-hero .btn-hero-action.secondary {
  background: #ffffff;
  color: var(--fg, #0f172a);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  box-shadow: 0 2px 6px rgba(15, 23, 42, 0.04);
}

.task-review-hero .btn-hero-action.secondary:hover {
  background: var(--surface-hover, #ffffff);
  border-color: var(--accent, #4f46e5);
  color: var(--accent, #4f46e5);
  transform: translateY(-1px);
}

.task-review-hero .btn-hero-action.secondary:active {
  transform: scale(0.975);
}

/* --- Deliverable Output & Attachment Cards --- */
.task-output-card {
  padding: 8px 12px;
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.75);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.task-output-card .card-eyebrow {
  display: block;
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
  margin-bottom: 3px;
}

.task-output-card .output-text {
  margin: 0;
  white-space: pre-wrap;
  word-break: break-word;
  font-size: 12.5px;
  color: var(--fg, #0f172a);
  line-height: 1.45;
}

.task-attachment-card-v2 {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 6px 12px;
  border-radius: var(--radius-md, 8px);
  background: rgba(255, 255, 255, 0.85);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.task-attachment-card-v2 .attachment-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
}

.task-attachment-card-v2 .attachment-icon-wrap {
  width: 32px;
  height: 32px;
  border-radius: 8px;
  display: grid;
  place-items: center;
  flex-shrink: 0;
}

.task-attachment-card-v2 .attachment-icon-wrap.drive {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
}

.task-attachment-card-v2 .attachment-icon-wrap.figma {
  background: rgba(244, 63, 94, 0.1);
  color: #be123c;
}

.task-attachment-card-v2 .attachment-icon-wrap.file {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
}

.task-attachment-card-v2 .attachment-icon-wrap.link {
  background: rgba(59, 130, 246, 0.1);
  color: #1d4ed8;
}

.task-attachment-card-v2 .attachment-icon-wrap .icon {
  width: 16px;
  height: 16px;
}

.task-attachment-card-v2 .attachment-info {
  display: flex;
  flex-direction: column;
  gap: 1px;
  min-width: 0;
}

.task-attachment-card-v2 .attachment-tag {
  font-size: 11px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
  color: #475569;
}

.task-attachment-card-v2 .attachment-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-attachment-card-v2 .btn-attachment-open {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 30px;
  padding: 0 11px;
  border-radius: 7px;
  font-size: 11.5px;
  font-weight: 600;
  color: #4338ca;
  background: rgba(99, 102, 241, 0.08);
  border: 1px solid rgba(99, 102, 241, 0.2);
  text-decoration: none;
  cursor: pointer;
  transition: color 140ms ease, background-color 140ms ease, border-color 140ms ease, box-shadow 140ms ease;
  flex-shrink: 0;
}

.task-attachment-card-v2 .btn-attachment-open .icon {
  width: 11px;
  height: 11px;
}

.task-attachment-card-v2 .btn-attachment-open:hover {
  background: #4338ca;
  color: #ffffff;
  border-color: #4338ca;
}

/* --- Task Overview Action Bar --- */
.task-overview-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 8px;
  padding: 10px 12px;
  background: #f8fafc;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  margin-top: 6px;
}

.task-overview-action-bar .action-bar-left .period-info {
  font-size: 12px;
  font-weight: 550;
  color: #334155;
}

.task-overview-action-bar .action-bar-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.task-overview-action-bar .btn-action-primary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 32px;
  padding: 0 12px;
  border-radius: var(--radius-md, 7px);
  font-size: 12px;
  font-weight: 600;
  background: #2563eb;
  color: #ffffff;
  border: 1px solid #2563eb;
  box-shadow: 0 1px 2px rgba(37, 99, 235, 0.2);
  cursor: pointer;
  transition: background-color 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1), transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.task-overview-action-bar .btn-action-primary:hover {
  background: #1d4ed8;
  border-color: #1d4ed8;
  transform: translateY(-1px);
  box-shadow: 0 4px 10px rgba(37, 99, 235, 0.25);
}

.task-overview-action-bar .btn-action-primary:active {
  transform: scale(0.98);
}

.task-overview-action-bar .btn-action-secondary {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  height: 31px;
  padding: 0 12px;
  border-radius: var(--radius-md, 7px);
  font-size: 11.5px;
  font-weight: 600;
  background: #ffffff;
  color: var(--fg-subtle, #334155);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  cursor: pointer;
  transition: color 150ms cubic-bezier(0.16, 1, 0.3, 1), background-color 150ms cubic-bezier(0.16, 1, 0.3, 1), border-color 150ms cubic-bezier(0.16, 1, 0.3, 1), box-shadow 150ms cubic-bezier(0.16, 1, 0.3, 1), transform 150ms cubic-bezier(0.16, 1, 0.3, 1);
}

.task-overview-action-bar .btn-action-secondary:hover {
  border-color: var(--accent, #4f46e5);
  color: var(--accent, #4f46e5);
  background: var(--bg-subtle, #f8fafc);
  transform: translateY(-1px);
}

.task-overview-action-bar .btn-action-secondary:active {
  transform: scale(0.98);
}

.task-overview-action-bar .btn-action-secondary .icon,
.task-overview-action-bar .btn-action-primary .icon {
  width: 13px;
  height: 13px;
}

/* ====================================================================
   UNIFIED MASTER DELIVERABLE ACCEPTANCE DIALOG (BẢN NGHIỆM THU ĐỒNG BỘ)
   Standardized across Kanban, Task Overview, Task Table & Approval Center
   ==================================================================== */
/* --- Calm Action Inbox & Split Dashboard Lists (v6 Simplification) --- */
.wbs-view-toggle,
.roster-view-toggle,
.team-workload-section .section-sub-summary,
.approval-hub-tabs.is-calm-tabs,
.approval-hub-tabs .approval-tab.is-zero-tab {
  display: none !important;
}

.approval-view-toggle {
  max-width: 100%;
}

.approval-queue {
  padding: 14px 18px;
  margin-bottom: 16px;
}

.approval-queue.is-calm {
  padding: 12px 16px;
}

.approval-queue .section-heading {
  margin-bottom: 8px;
}

.approval-queue .section-heading h2 {
  font-size: 14.5px;
  margin: 0;
  font-weight: 650;
}

.approval-hub-tabs {
  margin: 0;
  padding: 2px;
}

.approval-table-wrap {
  max-height: 300px;
  margin-top: 4px;
}

.approval-table thead tr th {
  padding: 8px 12px;
}

.approval-table tbody tr.approval-row td {
  padding: 8px 12px;
}

.approval-table .col-title {
  width: auto;
  min-width: 200px;
  max-width: 560px;
}

.approval-table .row-meta-sep,
.approval-table .text-muted {
  color: #475569;
  font-size: 11.5px;
}

.approval-table .row-link-btn {
  white-space: nowrap;
  flex-shrink: 0;
}

.approval-table .deliverable-timeliness-pill {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  line-height: 1.3;
  white-space: nowrap;
}

.approval-table .deliverable-timeliness-pill.ontime {
  background: rgba(5, 150, 105, 0.09);
  color: #047857;
  border: 1px solid rgba(5, 150, 105, 0.25);
}

.approval-table .deliverable-timeliness-pill.early {
  background: rgba(37, 99, 235, 0.09);
  color: #1d4ed8;
  border: 1px solid rgba(37, 99, 235, 0.25);
}

.approval-table .deliverable-timeliness-pill.late {
  background: rgba(220, 38, 38, 0.09);
  color: #b91c1c;
  border: 1px solid rgba(220, 38, 38, 0.25);
}

.approval-table .history-status-badge {
  display: inline-flex;
  align-items: center;
  padding: 2px 8px;
  border-radius: 999px;
  font-size: 11px;
  font-weight: 650;
  white-space: nowrap;
  background: #f1f5f9;
  color: #334155;
}

.approval-table .history-status-badge.approved {
  background: #ecfdf5;
  color: #047857;
}

.approval-table .history-status-badge.rejected {
  background: #fef2f2;
  color: #b91c1c;
}

.approval-table .history-status-badge.stale {
  background: #f1f5f9;
  color: #475569;
}

.empty-queue.is-compact {
  display: flex;
  flex-direction: row;
  align-items: center;
  justify-content: flex-start;
  gap: 10px;
  padding: 8px 12px;
  margin-top: 6px;
  text-align: left;
  min-height: 0;
  border-radius: var(--radius-md, 8px);
  background: rgba(16, 185, 129, 0.05);
  border: 1px solid rgba(16, 185, 129, 0.2);
}

.empty-queue.is-compact .empty-icon {
  width: 24px;
  height: 24px;
  min-width: 24px;
  margin: 0;
  border-radius: 50%;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  background: rgba(16, 185, 129, 0.14);
  color: #047857;
}

.empty-queue.is-compact strong {
  font-size: 13px;
  font-weight: 650;
  color: #065f46;
}

.empty-queue.is-compact span {
  font-size: 12px;
  color: #475569;
}

.dashboard-split-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.08fr) minmax(0, 1fr);
  gap: 16px;
  align-items: start;
}

@media (max-width: 960px) {
  .dashboard-split-grid {
    grid-template-columns: minmax(0, 1fr);
  }
}
.dashboard-split-grid .wbs-projects-section,
.dashboard-split-grid .team-workload-section {
  margin-bottom: 0;
  min-width: 0;
}

.dashboard-split-grid .section-heading {
  margin-bottom: 8px;
}

.dashboard-split-grid .section-heading h2 {
  font-size: 14.5px;
  margin: 0;
  font-weight: 650;
  color: var(--fg);
}

#dashboard-wbs-grid.wbs-projects-grid,
.dashboard-split-grid .workload-member-list {
  display: flex;
  flex-direction: column;
  gap: 0;
  background: var(--surface-card, var(--surface));
  border: 1px solid var(--line);
  border-radius: 12px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  max-height: 380px;
  overflow-y: auto;
  overflow-x: hidden;
}

#dashboard-wbs-grid .wbs-project-card {
  display: grid;
  grid-template-columns: minmax(110px, 1.35fr) minmax(56px, 0.8fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-subtle);
  border-radius: 0;
  background: var(--surface-card, var(--surface));
  box-shadow: none;
  cursor: pointer;
  min-width: 0;
  transition: background-color 120ms ease;
}

#dashboard-wbs-grid .wbs-project-card:last-child {
  border-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  #dashboard-wbs-grid .wbs-project-card:hover {
    background: var(--surface-hover);
    border-color: var(--line-subtle);
    box-shadow: none;
    transform: none;
  }
}
.project-row-left {
  min-width: 0;
  display: flex;
  align-items: center;
}

.project-card-head-right {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.project-title-btn {
  appearance: none;
  background: transparent;
  border: 0;
  padding: 3px 6px;
  margin: -3px -6px;
  min-height: 28px;
  min-width: 0;
  max-width: 100%;
  border-radius: var(--radius-sm, 6px);
  font-family: inherit;
  font-size: inherit;
  font-weight: 600;
  color: var(--fg, #0f172a);
  text-align: left;
  cursor: pointer;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  transition: color 0.15s ease, background-color 0.15s ease;
}

.project-title-btn:hover {
  color: var(--accent, #4338ca);
  background: rgba(99, 102, 241, 0.07);
}

#dashboard-wbs-grid .wbs-project-card .project-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

#dashboard-wbs-grid .wbs-project-card .project-progress-track {
  margin: 0;
  height: 5px;
  min-width: 44px;
}

.project-row-right {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 8px;
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

#dashboard-wbs-grid .wbs-project-card .project-rate-text {
  font-size: 12px;
  font-weight: 600;
  color: var(--fg-subtle);
  min-width: 34px;
  text-align: right;
}

.btn-project-wbs {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 4px;
  width: 26px;
  height: 26px;
  min-width: 26px;
  min-height: 26px;
  padding: 0;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  font-size: 11.5px;
  font-weight: 600;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease;
}

.btn-project-wbs .icon {
  width: 13px;
  height: 13px;
}

.btn-project-wbs:hover {
  border-color: var(--accent-border);
  background: var(--accent-soft);
  color: var(--accent);
}

.dashboard-split-grid .workload-member-card,
.dashboard-split-grid .team-member-card {
  display: grid;
  grid-template-columns: minmax(120px, 1.3fr) minmax(70px, 0.9fr) auto;
  align-items: center;
  gap: 10px;
  padding: 8px 14px;
  border: 0;
  border-bottom: 1px solid var(--line-subtle);
  border-radius: 0;
  background: var(--surface-card, var(--surface));
  box-shadow: none;
  cursor: pointer;
  min-width: 0;
  transition: background-color 120ms ease;
}

.dashboard-split-grid .workload-member-card:last-child,
.dashboard-split-grid .team-member-card:last-child {
  border-bottom: 0;
}

@media (hover: hover) and (pointer: fine) {
  .dashboard-split-grid .workload-member-card:hover,
  .dashboard-split-grid .team-member-card:hover {
    background: var(--surface-hover);
    border-color: var(--line-subtle);
    box-shadow: none;
    transform: none;
  }
}
.dashboard-split-grid .workload-member-card.selected,
.dashboard-split-grid .team-member-card.selected {
  background: var(--accent-soft);
  box-shadow: inset 3px 0 0 var(--accent);
}

.member-row-left {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
}

.dashboard-split-grid .member-row-left .member-avatar {
  width: 26px;
  height: 26px;
  border-radius: 999px;
  font-size: 11px;
  background: var(--accent-soft);
  border: 1px solid var(--accent-border);
  color: var(--accent);
}

.dashboard-split-grid .member-row-left .member-name {
  font-size: 13px;
  font-weight: 600;
  color: var(--fg);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.member-row-mid {
  display: flex;
  align-items: center;
  gap: 8px;
  min-width: 0;
  font-variant-numeric: tabular-nums;
}

.member-row-mid .workload-stacked-track {
  flex: 1 1 auto;
  min-width: 40px !important;
  margin-bottom: 0 !important;
}

.member-row-mid .stat-val {
  font-size: 11.5px;
  font-weight: 600;
  color: var(--fg-subtle);
  white-space: nowrap;
  flex-shrink: 0;
}

.member-row-right {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  min-width: 48px;
  font-variant-numeric: tabular-nums;
}

.member-row-right .stat-danger {
  font-size: 11.5px;
  font-weight: 700;
  color: #b91c1c;
  background: #fef2f2;
  border: 1px solid #fecaca;
  padding: 1.5px 7px;
  border-radius: 999px;
  white-space: nowrap;
}

.member-row-right .stat-kpi {
  font-size: 12px;
  font-weight: 700;
  color: #4338ca;
  white-space: nowrap;
}

.member-row-right .stat-ok {
  font-size: 11.5px;
  font-weight: 600;
  color: #475569;
  white-space: nowrap;
}

.wbs-row-actions {
  display: inline-flex;
  align-items: center;
  justify-content: flex-end;
  gap: 6px;
  flex-wrap: nowrap;
}

@media (max-width: 650px) {
  .pulse-metric {
    align-content: center;
  }
  .empty-queue.is-compact {
    flex-wrap: wrap;
    gap: 8px;
  }
  .btn-project-wbs {
    width: 32px;
    height: 32px;
    min-width: 32px;
    min-height: 32px;
  }
}
@media (max-width: 540px) {
  #dashboard-wbs-grid .wbs-project-card {
    grid-template-columns: minmax(0, 1fr) auto;
    gap: 8px;
    padding: 8px 10px;
  }
  #dashboard-wbs-grid .wbs-project-card .project-progress-track {
    display: none;
  }
  .dashboard-split-grid .workload-member-card,
  .dashboard-split-grid .team-member-card {
    grid-template-columns: minmax(0, 1.25fr) minmax(44px, 0.7fr) auto;
    gap: 6px;
    padding: 8px 10px;
  }
  .member-row-mid .workload-stacked-track {
    min-width: 24px !important;
  }
}
/* ==========================================================================
   HOLISTIC V13 APPROVAL HUB & CHANGE REVIEW POLISH
   ========================================================================== */
.approval-table-wrap {
  max-height: 322px;
}

.approval-table .col-status {
  font-variant-numeric: tabular-nums;
  font-size: 12px;
  color: #475569;
}

.approval-table .row-diff-snippet {
  white-space: nowrap;
  flex-shrink: 0;
  margin-top: 0;
  font-variant-numeric: tabular-nums;
}

.request-review .table-wrap {
  margin: 0 0 16px;
  border: 1px solid var(--line);
  border-radius: 10px;
  overflow: hidden;
  background: var(--surface-card, var(--surface));
}

.request-review .change-table {
  width: 100%;
  min-width: 0;
  margin: 0;
  border-collapse: collapse;
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}

.request-review .change-table thead th {
  background: var(--bg-subtle);
  color: var(--muted);
  font-size: 11px;
  font-weight: 650;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 10px 14px;
  text-align: left;
  border-bottom: 1px solid var(--line);
}

.request-review .change-table tbody th,
.request-review .change-table tbody td {
  padding: 11px 14px;
  text-align: left;
  vertical-align: middle;
  border-bottom: none;
}

.request-review .change-table tbody th {
  font-weight: 600;
  color: var(--fg);
}

.review-footer-btn {
  flex-shrink: 0;
}

@media (max-width: 960px) and (min-width: 641px) {
  .approval-table {
    min-width: 0 !important;
    width: 100%;
    table-layout: fixed;
  }
  .approval-table thead tr th,
  .approval-table tbody tr.approval-row td {
    padding: 8px 8px;
  }
  .approval-table .col-title {
    width: auto;
    min-width: 0 !important;
    max-width: none;
  }
  .approval-table .col-person {
    width: 148px;
  }
  .approval-table .col-status {
    width: 112px;
  }
  .approval-table .col-action {
    width: 112px;
  }
}
@media (max-width: 640px) {
  .approval-table-wrap {
    max-height: 380px;
    overflow-x: hidden;
  }
  .approval-table,
  .approval-table tbody {
    display: block;
    width: 100%;
    min-width: 0 !important;
  }
  .approval-table thead {
    display: none;
  }
  .approval-table tbody tr.approval-row {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    grid-template-areas: "title title" "person action" "status action";
    gap: 4px 10px;
    padding: 10px 12px;
    align-items: center;
  }
  .approval-table tbody tr.approval-row td {
    padding: 0;
    border: none;
    max-width: 100%;
  }
  .approval-table tbody tr.approval-row td.col-title {
    grid-area: title;
    min-width: 0;
    max-width: 100%;
    margin-bottom: 4px;
  }
  .approval-table tbody tr.approval-row td.col-person {
    grid-area: person;
  }
  .approval-table tbody tr.approval-row td.col-status {
    grid-area: status;
    font-size: 11.5px;
  }
  .approval-table tbody tr.approval-row td.col-action {
    grid-area: action;
    align-self: center;
  }
  .approval-table .row-sub-meta {
    flex-wrap: wrap;
    row-gap: 2px;
  }
}
.workflow-stepper {
  display: flex;
  align-items: center;
  gap: 0;
  padding: 14px 0 18px;
  margin: 0 0 16px;
  border-bottom: 1px solid var(--line-subtle);
  overflow-x: auto;
  -webkit-overflow-scrolling: touch;
}

.stepper-step {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
  min-width: 64px;
  position: relative;
}

.stepper-dot {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  border: 2px solid var(--line);
  background: var(--surface);
  color: var(--muted);
  transition: all var(--duration-normal) var(--ease);
  z-index: 1;
}
.stepper-step.completed .stepper-dot {
  background: var(--success);
  border-color: var(--success);
  color: #ffffff;
}
.stepper-step.active .stepper-dot {
  background: var(--accent);
  border-color: var(--accent);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(37, 99, 235, 0.15);
}
.stepper-step.error .stepper-dot {
  background: var(--danger);
  border-color: var(--danger);
  color: #ffffff;
  box-shadow: 0 0 0 4px rgba(185, 28, 28, 0.12);
}

.stepper-label {
  font-size: 11px;
  font-weight: 500;
  color: var(--muted);
  text-align: center;
  white-space: nowrap;
}
.stepper-step.completed .stepper-label {
  color: var(--success);
}
.stepper-step.active .stepper-label {
  color: var(--accent);
  font-weight: 600;
}
.stepper-step.error .stepper-label {
  color: var(--danger);
  font-weight: 600;
}

.stepper-connector {
  flex: 1;
  height: 2px;
  background: var(--line);
  min-width: 20px;
  margin: 0 -2px;
  margin-bottom: 20px;
  transition: background var(--duration-normal);
}
.stepper-connector.completed {
  background: var(--success);
}

@media (max-width: 520px) {
  .workflow-stepper {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 8px 10px;
    overflow-x: visible;
    padding: 10px 0 12px;
  }
  .workflow-stepper .stepper-connector {
    display: none;
  }
  .workflow-stepper .stepper-step {
    flex-direction: row;
    align-items: center;
    justify-content: flex-start;
    gap: 8px;
    min-width: 0;
    padding: 6px 8px;
    background: var(--bg-subtle);
    border-radius: var(--radius-sm, 6px);
  }
  .workflow-stepper .stepper-label {
    white-space: normal;
    text-align: left;
    line-height: 1.3;
  }
}
.employee-dashboard {
  max-width: 100%;
  margin: 0 auto;
}

.emp-overview-top {
  display: grid;
  grid-template-columns: 200px minmax(0, 1fr);
  align-items: center;
  gap: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg, 12px);
  padding: 16px;
  margin-bottom: 16px;
  box-shadow: var(--shadow-xs);
}
.emp-overview-top .emp-progress-ring {
  padding: 4px 0;
}
.emp-overview-top .emp-stats-grid {
  margin-bottom: 0;
}
@media (max-width: 679px) {
  .emp-overview-top {
    grid-template-columns: 1fr;
  }
}

.emp-progress-hero {
  display: flex;
  flex-direction: column;
  align-items: center;
  padding: 24px 16px;
  margin-bottom: 16px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow-sm);
  text-align: center;
}
.emp-progress-hero .hero-label {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin-bottom: 12px;
}
.emp-progress-hero .hero-stats {
  display: flex;
  gap: 20px;
  margin-top: 16px;
}
.emp-progress-hero .hero-stats .hero-stat {
  text-align: center;
}
.emp-progress-hero .hero-stats .hero-stat strong {
  display: block;
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
}
.emp-progress-hero .hero-stats .hero-stat span {
  font-size: 11px;
  color: var(--muted);
}
.emp-progress-hero .hero-stats .hero-stat.is-late strong {
  color: var(--danger);
}
.emp-progress-hero .hero-stats .hero-stat.is-done strong {
  color: var(--success);
}

.emp-summary-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(130px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.emp-summary-card {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px;
  box-shadow: var(--shadow-xs);
}
.emp-summary-card .emp-card-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}
.emp-summary-card .emp-card-value {
  font-size: 20px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  margin: 4px 0 0;
}

.emp-activity-timeline {
  background: var(--surface-card, #ffffff);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  box-shadow: var(--shadow-xs);
}
.emp-activity-timeline h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.timeline-item {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-subtle);
}
.timeline-item:last-child {
  border-bottom: none;
}
.timeline-item .timeline-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--accent);
  flex-shrink: 0;
  margin-top: 5px;
}
.timeline-item .timeline-content {
  flex: 1;
  min-width: 0;
}
.timeline-item .timeline-content .timeline-title {
  font-size: 13px;
  font-weight: 500;
  color: var(--fg);
}
.timeline-item .timeline-content .timeline-time {
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

.emp-progress-ring {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 8px;
  padding: 20px 0;
}

.emp-stats-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(100px, 1fr));
  gap: 10px;
  margin-bottom: 16px;
}

.emp-stat-card {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 12px 14px;
  text-align: center;
  box-shadow: var(--shadow-xs);
}
.emp-stat-card strong {
  display: block;
  font-size: 22px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  color: var(--fg);
  line-height: 1.3;
}
.emp-stat-card span {
  font-size: 11px;
  color: var(--muted);
  font-weight: 500;
}

.emp-section {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: var(--radius-lg);
  padding: 16px;
  margin-bottom: 14px;
  box-shadow: var(--shadow-xs);
}
.emp-section h3 {
  font-size: 12px;
  font-weight: 600;
  color: var(--muted);
  text-transform: uppercase;
  letter-spacing: 0.04em;
  margin: 0 0 12px;
}

.emp-timeline {
  list-style: none;
  margin: 0;
  padding: 0;
}
.emp-timeline li {
  display: flex;
  gap: 10px;
  padding: 8px 0;
  border-bottom: 1px solid var(--line-subtle);
  align-items: flex-start;
  font-size: 13px;
  color: var(--fg);
}
.emp-timeline li:last-child {
  border-bottom: none;
}
.emp-timeline .tl-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  flex-shrink: 0;
  margin-top: 5px;
}
.emp-timeline .tl-date {
  display: block;
  font-size: 11px;
  color: var(--muted);
  margin-top: 2px;
}

@media screen {
  :root[data-theme=dark] #task-overview {
    color: var(--fg);
  }
  :root[data-theme=dark] .task-overview-breadcrumbs {
    color: var(--muted) !important;
  }
  :root[data-theme=dark] .task-overview-breadcrumbs .bc-item {
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .task-overview-breadcrumbs .bc-item.bc-prog {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
  }
  :root[data-theme=dark] .task-overview-breadcrumbs .bc-item.bc-group {
    background: rgba(16, 185, 129, 0.15);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .task-overview-breadcrumbs .bc-item.bc-step {
    color: #a5b4fc;
  }
  :root[data-theme=dark] .task-overview-breadcrumbs .bc-sep {
    color: var(--muted);
  }
  :root[data-theme=dark] .task-status-badge-v2.status-awaiting {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
  }
  :root[data-theme=dark] .task-status-badge-v2.status-done {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .task-status-badge-v2.status-progress {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
  }
  :root[data-theme=dark] .task-status-badge-v2.status-late {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
  }
  :root[data-theme=dark] .task-partner-chip {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.32);
    color: #fcd34d;
  }
  :root[data-theme=dark] .task-assignee-chip-v2 {
    background: var(--bg-subtle);
    border-color: var(--line);
    box-shadow: none;
    color: var(--fg);
  }
  :root[data-theme=dark] .task-assignee-chip-v2 .assignee-name {
    color: var(--fg);
  }
  :root[data-theme=dark] .task-assignee-chip-v2 .assignee-role {
    background: var(--surface-card);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .task-meta-grid-v2 > * {
    background: var(--bg-subtle);
    border-color: var(--line);
    color: var(--fg);
  }
  :root[data-theme=dark] .task-timeline-inspector {
    background: var(--bg-subtle);
    border-color: var(--line);
  }
  :root[data-theme=dark] .task-timeline-inspector .timeline-arrow-sep {
    color: var(--muted);
  }
  :root[data-theme=dark] .task-timeline-inspector .timeliness-live-pill.is-early {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
    box-shadow: none;
  }
  :root[data-theme=dark] .task-timeline-inspector .timeliness-live-pill.is-ontime {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
  }
  :root[data-theme=dark] .task-timeline-inspector .timeliness-live-pill.is-late, :root[data-theme=dark] .task-timeline-inspector .timeliness-live-pill.is-overdue {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
    box-shadow: none;
  }
  :root[data-theme=dark] .task-timeline-inspector .timeliness-live-pill.is-remaining {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #a5b4fc;
  }
  :root[data-theme=dark] .task-review-hero {
    background: var(--bg-subtle);
    border: 1px solid var(--line);
    box-shadow: none;
    color: var(--fg);
  }
  :root[data-theme=dark] .task-review-hero.hero-awaiting {
    background: rgba(245, 158, 11, 0.12);
    border-color: rgba(251, 191, 36, 0.35);
    box-shadow: none;
  }
  :root[data-theme=dark] .task-review-hero.hero-approved {
    background: rgba(16, 185, 129, 0.12);
    border-color: rgba(52, 211, 153, 0.35);
    box-shadow: none;
  }
  :root[data-theme=dark] .task-review-hero.hero-rework {
    background: rgba(239, 68, 68, 0.12);
    border-color: rgba(248, 113, 113, 0.35);
    box-shadow: none;
  }
  :root[data-theme=dark] .task-review-hero .hero-eyebrow.amber,
  :root[data-theme=dark] .task-review-hero .proposal-quality-tag strong {
    color: #fcd34d;
  }
  :root[data-theme=dark] .task-review-hero .hero-eyebrow.emerald,
  :root[data-theme=dark] .task-review-hero .approved-score-title {
    color: #6ee7b7;
  }
  :root[data-theme=dark] .task-review-hero .hero-eyebrow.rose,
  :root[data-theme=dark] .task-review-hero .hero-eyebrow.rework {
    color: #fca5a5;
  }
  :root[data-theme=dark] .task-review-hero .proposal-quality-tag {
    color: var(--fg);
  }
  :root[data-theme=dark] .task-review-hero .proposal-note-quote,
  :root[data-theme=dark] .task-review-hero .proposal-sub,
  :root[data-theme=dark] .task-review-hero .approved-score-sub {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .task-review-hero .btn-hero-action.secondary,
  :root[data-theme=dark] .btn-hero-action.secondary {
    background: var(--surface-card);
    color: var(--fg);
    border-color: var(--line);
    box-shadow: none;
  }
  :root[data-theme=dark] .task-review-hero .btn-hero-action.secondary:hover,
  :root[data-theme=dark] .btn-hero-action.secondary:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
  }
  :root[data-theme=dark] .task-review-hero .btn-hero-action.secondary.btn-revert-deliverable,
  :root[data-theme=dark] .btn-hero-action.secondary.btn-revert-deliverable {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
  }
  :root[data-theme=dark] .task-review-hero .btn-hero-action.secondary.btn-revert-deliverable:hover,
  :root[data-theme=dark] .btn-hero-action.secondary.btn-revert-deliverable:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #f87171;
    color: #fee2e2;
  }
  :root[data-theme=dark] .task-output-card {
    background: var(--bg-subtle);
    border-color: var(--line);
    box-shadow: none;
    color: var(--fg);
  }
  :root[data-theme=dark] .task-output-card .card-eyebrow {
    color: var(--muted);
  }
  :root[data-theme=dark] .task-output-card .output-text {
    color: var(--fg);
  }
  :root[data-theme=dark] .task-attachment-card-v2 {
    background: var(--bg-subtle);
    border-color: var(--line);
    box-shadow: none;
    color: var(--fg);
  }
  :root[data-theme=dark] .task-attachment-card-v2 .attachment-tag {
    color: var(--muted);
  }
  :root[data-theme=dark] .task-attachment-card-v2 .attachment-title {
    color: var(--fg);
  }
  :root[data-theme=dark] .task-attachment-card-v2 .attachment-icon-wrap.drive {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .task-attachment-card-v2 .attachment-icon-wrap.figma {
    background: rgba(244, 63, 94, 0.16);
    color: #fda4af;
  }
  :root[data-theme=dark] .task-attachment-card-v2 .attachment-icon-wrap.file {
    background: rgba(99, 102, 241, 0.18);
    color: #a5b4fc;
  }
  :root[data-theme=dark] .task-attachment-card-v2 .attachment-icon-wrap.link {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
  }
  :root[data-theme=dark] .task-attachment-card-v2 .btn-attachment-open {
    background: var(--accent-soft);
    border-color: var(--accent-border);
    color: var(--accent);
  }
  :root[data-theme=dark] .task-attachment-card-v2 .btn-attachment-open:hover {
    background: #2563eb;
    border-color: #3b82f6;
    color: #ffffff;
  }
  :root[data-theme=dark] .task-overview-action-bar {
    background: var(--bg-subtle);
    border-color: var(--line);
  }
  :root[data-theme=dark] .task-overview-action-bar .action-bar-left .period-info {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .task-overview-action-bar .btn-action-secondary {
    background: var(--surface-card);
    color: var(--fg);
    border-color: var(--line);
  }
  :root[data-theme=dark] .task-overview-action-bar .btn-action-secondary:hover {
    background: var(--surface-hover);
    border-color: var(--accent);
    color: var(--accent);
  }
  :root[data-theme=dark] .task-overview-action-bar .btn-action-secondary.btn-overview-report {
    color: #a5b4fc;
    border-color: rgba(129, 140, 248, 0.35);
  }
  :root[data-theme=dark] .task-overview-action-bar .btn-action-secondary.btn-overview-report:hover {
    background: rgba(99, 102, 241, 0.18);
    border-color: #818cf8;
    color: #c7d2fe;
  }
  :root[data-theme=dark] .progress-entry.event-transition {
    background: var(--bg-subtle);
    border-color: var(--line);
    box-shadow: var(--shadow-xs);
  }
  :root[data-theme=dark] .progress-entry.event-transition:hover {
    box-shadow: var(--shadow-sm);
  }
  :root[data-theme=dark] .progress-entry.event-transition.theme-indigo {
    background: var(--bg-subtle);
    border-left-color: #818cf8;
  }
  :root[data-theme=dark] .progress-entry.event-transition.theme-sky {
    background: var(--bg-subtle);
    border-left-color: #38bdf8;
  }
  :root[data-theme=dark] .progress-entry.event-transition.theme-emerald {
    background: var(--bg-subtle);
    border-left-color: #34d399;
  }
  :root[data-theme=dark] .progress-entry.event-transition.theme-amber {
    background: var(--bg-subtle);
    border-left-color: #fbbf24;
  }
  :root[data-theme=dark] .trans-v2-card {
    background: transparent;
    color: var(--fg);
  }
  :root[data-theme=dark] .trans-v2-badge {
    background: var(--surface-card);
    border-color: var(--line);
    color: var(--fg);
  }
  :root[data-theme=dark] .trans-status-pill.doing {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
  }
  :root[data-theme=dark] .trans-status-pill.done {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .trans-status-pill.late {
    background: rgba(244, 63, 94, 0.16);
    border-color: rgba(251, 113, 133, 0.35);
    color: #fda4af;
  }
  :root[data-theme=dark] .trans-timing-pill {
    background: var(--surface-card);
    border-color: var(--line);
    color: var(--fg);
    box-shadow: none;
  }
  :root[data-theme=dark] .trans-timing-pill strong {
    color: var(--fg);
  }
  :root[data-theme=dark] .trans-timing-pill .trans-timing-dot {
    color: var(--muted);
  }
  :root[data-theme=dark] .trans-timing-pill .trans-timing-countdown {
    color: #7dd3fc;
  }
  :root[data-theme=dark] .trans-timing-pill .trans-timing-ontime,
  :root[data-theme=dark] .trans-timing-pill .trans-timing-early {
    color: #6ee7b7;
  }
  :root[data-theme=dark] .trans-timing-pill .trans-timing-late {
    color: #fcd34d;
  }
  :root[data-theme=dark] .trans-timing-pill .trans-timing-overdue {
    color: #fda4af;
  }
  :root[data-theme=dark] .trans-timing-pill.timing-sky {
    background: rgba(14, 165, 233, 0.14);
    border-color: rgba(56, 189, 248, 0.32);
  }
  :root[data-theme=dark] .trans-timing-pill.timing-sky .icon {
    color: #7dd3fc;
  }
  :root[data-theme=dark] .trans-timing-pill.timing-emerald {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.32);
  }
  :root[data-theme=dark] .trans-timing-pill.timing-emerald .icon {
    color: #6ee7b7;
  }
  :root[data-theme=dark] .trans-timing-pill.timing-amber {
    background: rgba(245, 158, 11, 0.14);
    border-color: rgba(251, 191, 36, 0.32);
  }
  :root[data-theme=dark] .trans-timing-pill.timing-amber .icon {
    color: #fcd34d;
  }
  :root[data-theme=dark] .trans-timing-pill.timing-rose {
    background: rgba(244, 63, 94, 0.14);
    border-color: rgba(251, 113, 133, 0.32);
  }
  :root[data-theme=dark] .trans-timing-pill.timing-rose .icon {
    color: #fda4af;
  }
  :root[data-theme=dark] .trans-v2-metric {
    background: var(--surface-card);
    border-color: var(--line);
    box-shadow: none;
  }
  :root[data-theme=dark] .trans-v2-metric .metric-icon {
    background: var(--bg-subtle);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .trans-v2-metric.metric-date .metric-icon {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
  }
  :root[data-theme=dark] .trans-v2-metric.metric-countdown .metric-icon {
    background: rgba(14, 165, 233, 0.18);
    color: #7dd3fc;
  }
  :root[data-theme=dark] .trans-v2-metric.metric-overdue .metric-icon {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
  }
  :root[data-theme=dark] .trans-v2-metric.metric-ontime .metric-icon, :root[data-theme=dark] .trans-v2-metric.metric-early .metric-icon {
    background: rgba(16, 185, 129, 0.18);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .trans-v2-metric .metric-val {
    color: var(--fg);
  }
  :root[data-theme=dark] .trans-v2-note {
    background: var(--surface-card);
    border-color: var(--line);
  }
  :root[data-theme=dark] .trans-v2-note .note-quote-bar {
    background: #818cf8;
  }
  :root[data-theme=dark] .trans-v2-note .note-eyebrow {
    color: var(--muted);
  }
  :root[data-theme=dark] .trans-v2-note .note-text {
    color: var(--fg);
  }
  :root[data-theme=dark] .trans-v2-footer {
    border-top-color: var(--line-subtle);
  }
  :root[data-theme=dark] .trans-role-chip {
    background: var(--surface-card);
    border-color: var(--line);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .trans-role-chip.role-manager {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #a5b4fc;
  }
  :root[data-theme=dark] .trans-role-chip.role-deputy {
    background: rgba(14, 165, 233, 0.18);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
  }
  :root[data-theme=dark] .trans-meta-tag {
    background: var(--surface-card);
    border-color: var(--line);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .trans-meta-tag.tag-quality {
    background: rgba(99, 102, 241, 0.16);
    border-color: rgba(129, 140, 248, 0.35);
    color: #a5b4fc;
  }
  :root[data-theme=dark] .trans-meta-tag.tag-quality strong,
  :root[data-theme=dark] .trans-meta-tag.tag-quality .icon {
    color: #c7d2fe;
  }
  :root[data-theme=dark] .trans-meta-tag.tag-date {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .trans-meta-tag.tag-date strong,
  :root[data-theme=dark] .trans-meta-tag.tag-date .icon {
    color: #a7f3d0;
  }
  :root[data-theme=dark] .trans-meta-tag.tag-link {
    background: rgba(59, 130, 246, 0.16);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
  }
  :root[data-theme=dark] .audit-lock-badge {
    background: var(--surface-card);
    border-color: var(--line);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] #approval-queue,
  :root[data-theme=dark] .approval-queue {
    background: var(--surface-card);
    border-color: var(--line);
    color: var(--fg);
  }
  :root[data-theme=dark] #approval-queue .approval-scope-switch,
  :root[data-theme=dark] .approval-queue .approval-scope-switch {
    background: var(--bg-subtle);
    border-color: var(--line);
  }
  :root[data-theme=dark] #approval-queue .approval-scope-switch .scope-btn,
  :root[data-theme=dark] .approval-queue .approval-scope-switch .scope-btn {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] #approval-queue .approval-scope-switch .scope-btn:hover,
  :root[data-theme=dark] .approval-queue .approval-scope-switch .scope-btn:hover {
    color: var(--fg);
  }
  :root[data-theme=dark] #approval-queue .approval-scope-switch .scope-btn.active,
  :root[data-theme=dark] .approval-queue .approval-scope-switch .scope-btn.active {
    background: var(--surface-card);
    color: var(--fg);
  }
  :root[data-theme=dark] .approval-hub-tabs {
    background: var(--bg-subtle);
    border-color: var(--line);
  }
  :root[data-theme=dark] .approval-hub-tabs .approval-tab {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .approval-hub-tabs .approval-tab:hover {
    color: var(--fg);
  }
  :root[data-theme=dark] .approval-hub-tabs .approval-tab .tab-badge {
    background: rgba(255, 255, 255, 0.08);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .approval-hub-tabs .approval-tab.active {
    background: var(--surface-card);
    color: var(--fg);
  }
  :root[data-theme=dark] .approval-hub-tabs .approval-tab.active .tab-badge {
    background: var(--bg-subtle);
    color: var(--fg);
  }
  :root[data-theme=dark] .view-toggle-group {
    background: var(--bg-subtle);
    border-color: var(--line);
  }
  :root[data-theme=dark] .view-toggle-group .view-toggle-btn {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .view-toggle-group .view-toggle-btn:hover {
    color: var(--fg);
    background: var(--surface-hover);
  }
  :root[data-theme=dark] .view-toggle-group .view-toggle-btn.active {
    background: var(--surface-card);
    color: var(--accent);
  }
  :root[data-theme=dark] .approval-preview .approval-status-pill.pending {
    color: #fcd34d;
  }
  :root[data-theme=dark] .approval-preview .approval-reason-snippet {
    background: var(--bg-subtle);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .approval-table tbody tr.approval-row td {
    color: var(--fg);
  }
  :root[data-theme=dark] .approval-table tbody tr.approval-row.is-delete {
    background: rgba(239, 68, 68, 0.08);
  }
  :root[data-theme=dark] .approval-table tbody tr.approval-row.is-delete:hover {
    background: rgba(239, 68, 68, 0.14);
  }
  :root[data-theme=dark] .approval-table .col-status {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .approval-table .row-meta-sep,
  :root[data-theme=dark] .approval-table .text-muted {
    color: var(--muted);
  }
  :root[data-theme=dark] .approval-table .approval-type-pill.deliverable {
    background: rgba(245, 158, 11, 0.16);
    color: #fcd34d;
  }
  :root[data-theme=dark] .approval-table .approval-type-pill.deliverable .pill-dot {
    background: #fbbf24;
  }
  :root[data-theme=dark] .approval-table .approval-type-pill.timeline {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
  }
  :root[data-theme=dark] .approval-table .approval-type-pill.delete {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
  }
  :root[data-theme=dark] .approval-table .row-title-wrap .row-platform-badge {
    background: rgba(99, 102, 241, 0.18);
    color: #c7d2fe;
  }
  :root[data-theme=dark] .approval-table .row-proposal-hint {
    color: #fcd34d;
  }
  :root[data-theme=dark] .approval-table .row-diff-snippet .highlight {
    color: var(--accent);
  }
  :root[data-theme=dark] .approval-table .row-link-btn {
    background: var(--accent-soft);
    color: var(--accent);
  }
  :root[data-theme=dark] .approval-table .row-link-btn:hover {
    background: var(--accent-soft-hover);
  }
  :root[data-theme=dark] .approval-table .deliverable-timeliness-pill.ontime {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .approval-table .deliverable-timeliness-pill.early {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
  }
  :root[data-theme=dark] .approval-table .deliverable-timeliness-pill.late {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
  }
  :root[data-theme=dark] .approval-table .history-status-badge {
    background: var(--bg-subtle);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .approval-table .history-status-badge.approved {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .approval-table .history-status-badge.rejected {
    background: rgba(239, 68, 68, 0.16);
    color: #fca5a5;
  }
  :root[data-theme=dark] .approval-table .history-status-badge.stale {
    background: var(--bg-subtle);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .empty-queue.is-compact {
    background: rgba(16, 185, 129, 0.1);
    border-color: rgba(52, 211, 153, 0.28);
  }
  :root[data-theme=dark] .empty-queue.is-compact .empty-icon {
    background: rgba(16, 185, 129, 0.2);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .empty-queue.is-compact strong {
    color: #6ee7b7;
  }
  :root[data-theme=dark] .empty-queue.is-compact span {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .deliverable-review-card .deliverable-proposal-chip {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
  }
  :root[data-theme=dark] .deliverable-review-card .deliverable-meta .meta-sep {
    color: var(--muted);
  }
  :root[data-theme=dark] .deliverable-review-card .deliverable-timeliness-pill.ontime {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .deliverable-review-card .deliverable-timeliness-pill.early {
    background: rgba(59, 130, 246, 0.18);
    border-color: rgba(96, 165, 250, 0.35);
    color: #93c5fd;
  }
  :root[data-theme=dark] .deliverable-review-card .deliverable-timeliness-pill.late {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
  }
  :root[data-theme=dark] .deliverable-review-card .btn-deliverable-link {
    color: var(--fg-subtle);
    border-color: var(--line-strong);
  }
  :root[data-theme=dark] .deliverable-review-card .btn-deliverable-link:hover {
    color: var(--accent);
    border-color: var(--accent-border);
  }
  :root[data-theme=dark] .roster-table-wrap {
    background: var(--surface-card);
  }
  :root[data-theme=dark] .roster-table tbody tr.roster-row.is-selected {
    background: var(--accent-soft);
    outline-color: var(--accent-border);
  }
  :root[data-theme=dark] .roster-table .rank-badge {
    background: var(--bg-subtle);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .roster-table .rank-badge.is-first {
    background: rgba(245, 158, 11, 0.18);
    color: #fcd34d;
  }
  :root[data-theme=dark] .roster-table .rank-badge.is-second {
    background: rgba(148, 163, 184, 0.2);
    color: #e2e8f0;
  }
  :root[data-theme=dark] .roster-table .rank-badge.is-third {
    background: rgba(249, 115, 22, 0.18);
    color: #fdba74;
  }
  :root[data-theme=dark] .roster-table .roster-kpi-badge {
    background: rgba(139, 92, 246, 0.2);
    color: #ddd6fe;
  }
  :root[data-theme=dark] .wbs-projects-table .wbs-project-cell .wbs-project-badge {
    background: rgba(99, 102, 241, 0.2);
    color: #c7d2fe;
  }
  :root[data-theme=dark] .wbs-projects-table .wbs-progress-cell .wbs-table-track {
    background: var(--line);
  }
  :root[data-theme=dark] .wbs-projects-table .wbs-status-cell.is-late {
    color: #fca5a5;
  }
  :root[data-theme=dark] .wbs-projects-table .wbs-status-cell.is-ok {
    color: #6ee7b7;
  }
  :root[data-theme=dark] .member-row-right .stat-danger {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
  }
  :root[data-theme=dark] .member-row-right .stat-kpi {
    color: var(--accent);
  }
  :root[data-theme=dark] .member-row-right .stat-ok {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .wbs-project-card .project-pill-late {
    background: rgba(239, 68, 68, 0.18);
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.35);
  }
  :root[data-theme=dark] .quality-card .quality-tagline {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .quality-card .quality-radio-custom input[type=radio]:checked + .radio-circle::after {
    background: var(--bg-subtle);
  }
  :root[data-theme=dark] .quality-card.tier-excellent {
    --card-accent: #34d399;
  }
  :root[data-theme=dark] .quality-card.tier-excellent .quality-score-badge {
    background: var(--success-bg);
    color: var(--success);
  }
  :root[data-theme=dark] .quality-card.tier-excellent.is-selected {
    background: var(--success-bg);
    border-color: var(--success);
  }
  :root[data-theme=dark] .quality-card.tier-good {
    --card-accent: #93c5fd;
  }
  :root[data-theme=dark] .quality-card.tier-good .quality-score-badge {
    background: rgba(59, 130, 246, 0.2);
    color: #bfdbfe;
  }
  :root[data-theme=dark] .quality-card.tier-good.is-selected {
    background: rgba(59, 130, 246, 0.12);
    border-color: #60a5fa;
  }
  :root[data-theme=dark] .quality-card.tier-fair {
    --card-accent: #fcd34d;
  }
  :root[data-theme=dark] .quality-card.tier-fair .quality-score-badge {
    background: rgba(245, 158, 11, 0.2);
    color: #fde68a;
  }
  :root[data-theme=dark] .quality-card.tier-fair.is-selected {
    background: rgba(245, 158, 11, 0.12);
    border-color: #fbbf24;
  }
  :root[data-theme=dark] .quality-card.tier-poor {
    --card-accent: #fda4af;
  }
  :root[data-theme=dark] .quality-card.tier-poor .quality-score-badge {
    background: rgba(244, 63, 94, 0.2);
    color: #fecdd3;
  }
  :root[data-theme=dark] .quality-card.tier-poor.is-selected {
    background: rgba(244, 63, 94, 0.12);
    border-color: #fb7185;
  }
}
section.manager-pulse.pbi-kpi-strip,
.manager-pulse.pbi-kpi-strip {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 10px;
  margin: 0 0 10px;
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  border-radius: 0;
  box-shadow: none !important;
  overflow: visible;
}
section.manager-pulse.pbi-kpi-strip.is-emp-strip,
.manager-pulse.pbi-kpi-strip.is-emp-strip {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}
@media (max-width: 1180px) {
  section.manager-pulse.pbi-kpi-strip,
  .manager-pulse.pbi-kpi-strip {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
  section.manager-pulse.pbi-kpi-strip.is-emp-strip,
  .manager-pulse.pbi-kpi-strip.is-emp-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 680px) {
  section.manager-pulse.pbi-kpi-strip, section.manager-pulse.pbi-kpi-strip.is-emp-strip,
  .manager-pulse.pbi-kpi-strip,
  .manager-pulse.pbi-kpi-strip.is-emp-strip {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}
@media (max-width: 400px) {
  section.manager-pulse.pbi-kpi-strip, section.manager-pulse.pbi-kpi-strip.is-emp-strip,
  .manager-pulse.pbi-kpi-strip,
  .manager-pulse.pbi-kpi-strip.is-emp-strip {
    grid-template-columns: 1fr;
  }
}

#approval-queue.pbi-tile,
.approval-queue.pbi-tile {
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 12px 14px;
  margin: 0 0 10px;
  scroll-margin-top: 90px;
  box-shadow: 0 1px 2px rgba(15, 23, 42, 0.03);
  display: flex;
  flex-direction: column;
  gap: 10px;
  min-width: 0;
  box-sizing: border-box;
}
#approval-queue.pbi-tile.is-calm,
.approval-queue.pbi-tile.is-calm {
  padding: 12px 14px;
}
@media (max-width: 650px) {
  #approval-queue.pbi-tile,
  .approval-queue.pbi-tile {
    padding: 10px 12px;
  }
}
#approval-queue.pbi-tile > .section-heading,
#approval-queue.pbi-tile > .pbi-tile-head,
.approval-queue.pbi-tile > .section-heading,
.approval-queue.pbi-tile > .pbi-tile-head {
  margin: 0;
  padding-bottom: 8px;
  border-bottom: 1px solid var(--line-subtle, var(--line));
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}
#approval-queue.pbi-tile > .section-heading h2,
#approval-queue.pbi-tile > .section-heading h3,
#approval-queue.pbi-tile > .pbi-tile-head h2,
#approval-queue.pbi-tile > .pbi-tile-head h3,
.approval-queue.pbi-tile > .section-heading h2,
.approval-queue.pbi-tile > .section-heading h3,
.approval-queue.pbi-tile > .pbi-tile-head h2,
.approval-queue.pbi-tile > .pbi-tile-head h3 {
  margin: 0;
  font-size: 11.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.04em;
  color: var(--fg);
  line-height: 1.3;
}
#approval-queue.pbi-tile > .section-heading .count-chip,
#approval-queue.pbi-tile > .pbi-tile-head .count-chip,
.approval-queue.pbi-tile > .section-heading .count-chip,
.approval-queue.pbi-tile > .pbi-tile-head .count-chip {
  border-radius: 4px;
  padding: 1px 6px;
  font-size: 10.5px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
  margin-left: 5px;
}
#approval-queue.pbi-tile .approval-heading-controls,
.approval-queue.pbi-tile .approval-heading-controls {
  gap: 6px;
}
#approval-queue.pbi-tile .approval-scope-switch,
#approval-queue.pbi-tile .view-toggle-group,
#approval-queue.pbi-tile .approval-hub-tabs,
.approval-queue.pbi-tile .approval-scope-switch,
.approval-queue.pbi-tile .view-toggle-group,
.approval-queue.pbi-tile .approval-hub-tabs {
  border-radius: 4px;
  margin: 0;
  padding: 2px;
}
#approval-queue.pbi-tile .approval-scope-switch .scope-btn,
#approval-queue.pbi-tile .view-toggle-group .view-toggle-btn,
#approval-queue.pbi-tile .approval-hub-tabs .approval-tab,
.approval-queue.pbi-tile .approval-scope-switch .scope-btn,
.approval-queue.pbi-tile .view-toggle-group .view-toggle-btn,
.approval-queue.pbi-tile .approval-hub-tabs .approval-tab {
  border-radius: 3px;
  min-height: 24px;
  padding: 3px 8px;
  font-size: 11.5px;
}
#approval-queue.pbi-tile .approval-queue-list,
.approval-queue.pbi-tile .approval-queue-list {
  margin-top: 0;
  gap: 10px;
}
#approval-queue.pbi-tile .approval-table-wrap,
.approval-queue.pbi-tile .approval-table-wrap {
  margin-top: 0;
  max-height: 268px;
  overflow: auto;
  border-radius: 4px;
  border: 1px solid var(--line-subtle, var(--line));
  box-shadow: none;
}
#approval-queue.pbi-tile .approval-table thead tr th,
.approval-queue.pbi-tile .approval-table thead tr th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: var(--bg-subtle);
  font-size: 10.5px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.03em;
  padding: 6px 10px;
}
#approval-queue.pbi-tile .approval-table .row-person-info .row-avatar,
.approval-queue.pbi-tile .approval-table .row-person-info .row-avatar {
  width: 22px;
  height: 22px;
  border-radius: 4px;
  background: rgba(37, 99, 235, 0.11);
  border: 1px solid rgba(37, 99, 235, 0.24);
  color: var(--pbi-primary, #2563eb);
  font-size: 10.5px;
  font-weight: 700;
}
#approval-queue.pbi-tile .approval-card,
#approval-queue.pbi-tile .approval-preview,
#approval-queue.pbi-tile .deliverable-review-card,
.approval-queue.pbi-tile .approval-card,
.approval-queue.pbi-tile .approval-preview,
.approval-queue.pbi-tile .deliverable-review-card {
  border-radius: 6px;
  box-shadow: none;
}
#approval-queue.pbi-tile .empty-queue.is-compact,
.approval-queue.pbi-tile .empty-queue.is-compact {
  border-radius: 4px;
  margin: 0;
}

.pbi-grid-12 #approval-queue.pbi-tile,
.pbi-grid-12 > .approval-queue.pbi-tile {
  margin: 0;
}

@media screen {
  :root[data-theme=dark] #approval-queue.pbi-tile,
  :root[data-theme=dark] .approval-queue.pbi-tile {
    background: var(--surface);
    border-color: var(--line);
    color: var(--fg);
    box-shadow: var(--shadow-xs);
  }
  :root[data-theme=dark] #approval-queue.pbi-tile > .section-heading,
  :root[data-theme=dark] #approval-queue.pbi-tile > .pbi-tile-head,
  :root[data-theme=dark] .approval-queue.pbi-tile > .section-heading,
  :root[data-theme=dark] .approval-queue.pbi-tile > .pbi-tile-head {
    border-bottom-color: var(--line);
  }
  :root[data-theme=dark] #approval-queue.pbi-tile > .section-heading h2,
  :root[data-theme=dark] #approval-queue.pbi-tile > .section-heading h3,
  :root[data-theme=dark] #approval-queue.pbi-tile > .pbi-tile-head h2,
  :root[data-theme=dark] #approval-queue.pbi-tile > .pbi-tile-head h3,
  :root[data-theme=dark] .approval-queue.pbi-tile > .section-heading h2,
  :root[data-theme=dark] .approval-queue.pbi-tile > .section-heading h3,
  :root[data-theme=dark] .approval-queue.pbi-tile > .pbi-tile-head h2,
  :root[data-theme=dark] .approval-queue.pbi-tile > .pbi-tile-head h3 {
    color: var(--fg);
  }
  :root[data-theme=dark] #approval-queue.pbi-tile .approval-scope-switch,
  :root[data-theme=dark] #approval-queue.pbi-tile .view-toggle-group,
  :root[data-theme=dark] #approval-queue.pbi-tile .approval-hub-tabs,
  :root[data-theme=dark] .approval-queue.pbi-tile .approval-scope-switch,
  :root[data-theme=dark] .approval-queue.pbi-tile .view-toggle-group,
  :root[data-theme=dark] .approval-queue.pbi-tile .approval-hub-tabs {
    background: var(--bg-subtle);
    border-color: var(--line);
  }
  :root[data-theme=dark] #approval-queue.pbi-tile .approval-table-wrap,
  :root[data-theme=dark] .approval-queue.pbi-tile .approval-table-wrap {
    background: var(--surface);
    border-color: var(--line);
  }
  :root[data-theme=dark] #approval-queue.pbi-tile .approval-table thead tr,
  :root[data-theme=dark] #approval-queue.pbi-tile .approval-table thead tr th,
  :root[data-theme=dark] .approval-queue.pbi-tile .approval-table thead tr,
  :root[data-theme=dark] .approval-queue.pbi-tile .approval-table thead tr th {
    background: var(--bg-subtle);
    color: var(--muted);
    border-color: var(--line);
  }
}
@media print {
  #approval-queue.pbi-tile,
  .approval-queue.pbi-tile {
    background: #ffffff !important;
    border-color: #cbd5e1 !important;
    box-shadow: none !important;
    break-inside: avoid;
    page-break-inside: avoid;
  }
  #approval-queue.pbi-tile .approval-table-wrap,
  .approval-queue.pbi-tile .approval-table-wrap {
    max-height: none !important;
    overflow: visible !important;
  }
}
.deliverable-master-dialog {
  max-width: min(880px, 100vw - 24px) !important;
  width: min(880px, 100vw - 24px) !important;
  border-radius: 16px !important;
  border: 1px solid var(--line) !important;
  box-shadow: var(--shadow-xl) !important;
  background: var(--surface-card, var(--surface)) !important;
  color: var(--fg, #0f172a);
}

.deliverable-master-dialog .excel-modal-inner {
  padding: 20px 26px 0 !important;
  gap: 14px !important;
}

.deliverable-modal-header {
  border-bottom: 1.5px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  padding-bottom: 16px;
  margin-bottom: 16px;
}

.deliverable-modal-body {
  background: transparent;
  color: var(--fg);
}

.deliverable-modal-eyebrow {
  color: var(--accent, #4338ca);
  font-weight: 750;
  letter-spacing: 0.05em;
  font-size: 11px;
}

.deliverable-modal-title {
  font-size: 20px;
  font-weight: 750;
  color: var(--fg, #0f172a);
  margin: 4px 0 2px;
  letter-spacing: -0.02em;
}

.deliverable-modal-desc {
  font-size: 13px;
  color: var(--muted, #475569);
  margin: 0;
}

/* 1. Official Header Banner */
.deliverable-official-header {
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  border-radius: var(--radius-xl, 14px);
  padding: 10px 16px;
  margin-bottom: 12px;
  position: relative;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.03);
}

.official-header-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  margin-bottom: 6px;
}

.official-header-top:last-child,
.deliverable-official-header:not(:has(.official-doc-title:not(:empty), .official-doc-subtitle:not(:empty))) .official-header-top {
  margin-bottom: 0;
}

.official-org-mark {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #475569);
  letter-spacing: 0.03em;
}

.official-org-mark .org-badge {
  color: #4338ca;
  background: #eef2ff;
  padding: 2px 8px;
  border-radius: var(--radius-sm, 6px);
  border: 1px solid #c7d2fe;
}

.official-org-mark .org-sep {
  color: #475569;
}

.official-org-mark .org-doc-code {
  color: #475569;
  font-variant-numeric: tabular-nums;
  font-weight: 600;
}

.official-seal {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 10px;
  border-radius: var(--radius-full, 999px);
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
  text-transform: uppercase;
}

.official-seal.seal-awaiting {
  background: #fffbeb;
  color: #92400e;
  border: 1.5px solid #fde68a;
  box-shadow: 0 0 10px rgba(245, 158, 11, 0.12);
}

.official-seal.seal-approved {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1.5px solid rgba(16, 185, 129, 0.35);
  box-shadow: 0 0 10px rgba(16, 185, 129, 0.12);
}

.official-seal.seal-submitting {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border: 1.5px solid rgba(99, 102, 241, 0.35);
  box-shadow: 0 0 10px rgba(99, 102, 241, 0.12);
}

.official-doc-title {
  font-size: 17px;
  font-weight: 750;
  color: var(--fg, #0f172a);
  margin: 0 0 2px;
  letter-spacing: -0.015em;
}

.official-doc-subtitle {
  font-size: 12.5px;
  color: var(--muted, #64748b);
  margin: 0;
  line-height: 1.4;
}

.official-doc-title:empty,
.official-doc-subtitle:empty,
.deliverable-modal-desc:empty,
.field-help-sub:empty,
.attachment-guide:empty {
  display: none;
  margin: 0;
}

/* Sections Common */
.deliverable-section {
  background: var(--surface, #ffffff);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  border-radius: var(--radius-xl, 14px);
  padding: 14px 16px;
  margin-bottom: 14px;
  transition: border-color 0.2s ease, background-color 0.2s ease, box-shadow 0.2s ease;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.02);
}

.deliverable-section:hover {
  border-color: rgba(99, 102, 241, 0.25);
}

.section-badge-title {
  display: flex;
  align-items: center;
  gap: 8px;
  margin-bottom: 12px;
}

.section-step-num {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 20px;
  height: 20px;
  border-radius: 50%;
  background: #4338ca;
  color: #ffffff;
  font-size: 11px;
  font-weight: 750;
  line-height: 1;
}

.section-badge-title :is(h3, h4) {
  font-size: 12.5px;
  font-weight: 750;
  color: var(--fg, #0f172a);
  margin: 0;
  letter-spacing: 0.02em;
  text-transform: uppercase;
}

.section-badge-right {
  margin-left: auto;
  font-size: 11px;
  color: var(--muted, #475569);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

/* Scope Section */
.deliverable-task-hero {
  margin-bottom: 12px;
}

.deliverable-main-title {
  font-size: 15.5px;
  font-weight: 750;
  color: var(--fg, #0f172a);
  margin: 0 0 8px;
  line-height: 1.4;
  letter-spacing: -0.015em;
}

.task-tags-grid {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
}

.meta-pill {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  padding: 3px 8px;
  border-radius: var(--radius-sm, 6px);
  font-size: 11.5px;
  line-height: 1.35;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  color: var(--fg-subtle, #334155);
}

.meta-pill strong {
  color: var(--fg, #0f172a);
}

.meta-pill.project-pill {
  background: #eef2ff;
  border-color: #c7d2fe;
  color: #4338ca;
}

.meta-pill.group-pill {
  background: #f0f9ff;
  border-color: #bae6fd;
  color: #0369a1;
}

.deliverable-info-cards-row {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
}

@media (max-width: 700px) {
  .deliverable-info-cards-row {
    grid-template-columns: 1fr;
  }
}
.info-card {
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  border-radius: var(--radius-md, 8px);
  padding: 9px 12px;
  display: flex;
  flex-direction: column;
  gap: 4px;
}

.info-card-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #475569);
  text-transform: uppercase;
  letter-spacing: 0.03em;
}

.person-flex {
  display: flex;
  align-items: center;
  gap: 8px;
}

.person-avatar {
  width: 28px;
  height: 28px;
  border-radius: 50%;
  background: linear-gradient(135deg, #4338ca 0%, #6d28d9 100%);
  background-color: #4338ca;
  color: #ffffff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 11px;
  font-weight: 750;
  flex-shrink: 0;
}

.person-detail {
  min-width: 0;
}

.person-name {
  display: block;
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg, #0f172a);
  line-height: 1.25;
}

.person-role {
  display: block;
  font-size: 11px;
  color: var(--muted, #64748b);
  line-height: 1.2;
}

.partner-sub {
  margin-top: 4px;
  padding-top: 4px;
  border-top: 1px dashed var(--line-subtle);
  font-size: 11px;
  color: var(--muted);
  display: inline-flex;
  align-items: center;
  gap: 4px;
}

.timeline-row {
  display: flex;
  flex-direction: column;
  gap: 2px;
  font-size: 11.5px;
  color: var(--fg-subtle);
}

.timeline-row small {
  color: var(--muted);
  font-size: 11px;
  line-height: 1.3;
}

.due-highlight {
  color: #92400e;
  font-weight: 700;
}

.execution-val-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  flex-wrap: wrap;
}

.completed-val {
  font-size: 12.5px;
  font-weight: 700;
  color: var(--fg);
  font-variant-numeric: tabular-nums;
}

.timeliness-pill, .timeliness-live-pill {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  padding: 2.5px 8px;
  border-radius: var(--radius-full, 999px);
  font-size: 11px;
  font-weight: 700;
  white-space: nowrap;
}

.timeliness-pill.is-early, .timeliness-live-pill.is-early {
  background: rgba(16, 185, 129, 0.1);
  color: #047857;
  border: 1px solid rgba(16, 185, 129, 0.3);
}

.timeliness-pill.is-ontime, .timeliness-live-pill.is-ontime {
  background: rgba(99, 102, 241, 0.1);
  color: #4338ca;
  border: 1px solid rgba(99, 102, 241, 0.3);
}

.timeliness-pill.is-late, .timeliness-live-pill.is-late {
  background: rgba(239, 68, 68, 0.1);
  color: #b91c1c;
  border: 1px solid rgba(239, 68, 68, 0.3);
}

/* Output Section */
.deliverable-output-section {
  border-color: rgba(99, 102, 241, 0.2);
  background: var(--surface-card, var(--surface));
}

.output-presentation-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.output-content-lead {
  display: flex;
  align-items: flex-start;
  gap: 10px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--line-subtle, rgba(226, 232, 240, 0.8));
  border-radius: var(--radius-lg, 10px);
  padding: 12px 14px;
}

.output-content-lead .lead-icon {
  color: var(--accent, #6366f1);
  flex-shrink: 0;
  margin-top: 1px;
}

.output-text-wrap {
  flex: 1;
  min-width: 0;
}

.output-lead-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #64748b);
  text-transform: uppercase;
  letter-spacing: 0.03em;
  margin-bottom: 4px;
}

.output-full-text {
  font-size: 13.5px;
  line-height: 1.55;
  color: var(--fg, #0f172a);
  font-weight: 500;
  white-space: pre-wrap;
}

.output-full-text.is-empty {
  color: var(--muted);
  font-style: italic;
}

.output-proof-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 12px;
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  border-radius: var(--radius-lg, 10px);
  padding: 10px 14px;
}

.proof-card-left {
  display: flex;
  align-items: center;
  gap: 10px;
  min-width: 0;
  flex: 1;
}

.proof-icon {
  width: 34px;
  height: 34px;
  border-radius: var(--radius-md, 8px);
  background: var(--surface);
  border: 1px solid var(--line-subtle);
  display: flex;
  align-items: center;
  justify-content: center;
  color: #4338ca;
  flex-shrink: 0;
  box-shadow: 0 1px 3px rgba(15, 23, 42, 0.06);
}

.proof-icon.drive {
  color: #0369a1;
  background: rgba(2, 132, 199, 0.08);
}

.proof-icon.figma {
  color: #6d28d9;
  background: rgba(168, 85, 247, 0.08);
}

.proof-icon.pdf {
  color: #be123c;
  background: rgba(225, 29, 72, 0.08);
}

.proof-icon.excel {
  color: #047857;
  background: rgba(5, 150, 105, 0.08);
}

.proof-icon.word {
  color: #1d4ed8;
  background: rgba(37, 99, 235, 0.08);
}

.proof-info {
  min-width: 0;
  flex: 1;
}

.proof-tag {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: #4338ca;
  letter-spacing: 0.04em;
  text-transform: uppercase;
}

.proof-name {
  display: block;
  font-size: 13px;
  font-weight: 700;
  color: var(--fg, #0f172a);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-url-peek {
  display: block;
  font-size: 11px;
  color: var(--muted, #475569);
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.proof-card-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
  flex-shrink: 0;
}

.btn-copy-proof {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 28px;
  padding: 5px 10px;
  border-radius: var(--radius-md, 7px);
  font-size: 11.5px;
  font-weight: 600;
  background: var(--surface, #ffffff);
  border: 1px solid var(--border);
  color: var(--fg-subtle);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-copy-proof:hover {
  background: var(--bg-subtle);
  border-color: var(--accent);
  color: var(--accent);
}

.btn-open-proof {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 6px 14px;
  border-radius: var(--radius-md, 7px);
  font-size: 12px;
  font-weight: 700;
  background: var(--accent-btn, #2563eb);
  background-color: var(--accent-btn, #2563eb);
  color: #ffffff !important;
  text-decoration: none;
  box-shadow: 0 1px 2px rgba(9, 9, 11, 0.14);
  transition: background-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.btn-open-proof:hover {
  transform: translateY(-1px);
  filter: brightness(1.08);
  box-shadow: 0 4px 12px var(--accent-glow);
}

.output-no-proof-notice {
  font-size: 12px;
  color: var(--muted);
  font-style: italic;
  padding: 8px 12px;
  background: var(--bg-subtle);
  border-radius: var(--radius-md);
  border: 1px dashed var(--line-subtle);
}

/* Self-Eval Section */
.deliverable-self-eval-section {
  border-color: rgba(168, 85, 247, 0.25);
  background: var(--surface-card, var(--surface));
}

.self-eval-display-card {
  display: flex;
  flex-direction: column;
  gap: 10px;
}

.self-eval-hero-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
  padding-bottom: 8px;
  border-bottom: 1px solid rgba(168, 85, 247, 0.15);
}

.self-eval-person-lead {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-avatar {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: linear-gradient(135deg, #5b21b6 0%, #6d28d9 100%);
  background-color: #6d28d9;
  color: #ffffff;
  font-size: 12px;
  font-weight: 750;
  display: flex;
  align-items: center;
  justify-content: center;
}

.eval-person-info .eval-name {
  display: block;
  font-size: 13px;
  font-weight: 750;
  color: var(--fg);
}

.eval-person-info .eval-date-tag {
  display: block;
  font-size: 11px;
  color: var(--muted);
}

.self-eval-quality-badge-wrap {
  display: flex;
  align-items: center;
  gap: 8px;
}

.eval-quality-label {
  font-size: 11px;
  color: var(--muted);
  font-weight: 600;
}

.eval-quality-badge {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 4px 12px;
  border-radius: var(--radius-full, 999px);
  background: rgba(168, 85, 247, 0.1);
  border: 1.5px solid rgba(168, 85, 247, 0.35);
}

.eval-quality-badge .star-icon {
  font-size: 14px;
}

.eval-quality-badge .quality-tier-name {
  font-size: 13px;
  font-weight: 750;
  color: #7e22ce;
}

.eval-quality-badge .quality-score-pill {
  font-size: 11px;
  font-weight: 750;
  padding: 1px 6px;
  border-radius: var(--radius-full);
  background: #7e22ce;
  color: #ffffff;
}

.self-eval-criteria-peek {
  background: rgba(168, 85, 247, 0.04);
  border: 1px solid rgba(168, 85, 247, 0.15);
  border-radius: var(--radius-md, 8px);
  padding: 8px 12px;
}

.self-eval-criteria-peek .criteria-tagline {
  display: block;
  font-size: 11.5px;
  font-weight: 700;
  color: #7e22ce;
  margin-bottom: 4px;
}

.self-eval-criteria-peek .criteria-bullets {
  margin: 0;
  padding-left: 0;
  list-style: none;
  font-size: 11.5px;
  color: var(--fg-subtle);
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.self-eval-note-container {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px dashed rgba(168, 85, 247, 0.25);
  border-radius: var(--radius-md, 8px);
  padding: 9px 12px;
}

.self-eval-note-container .note-quote-icon {
  font-size: 22px;
  line-height: 1;
  font-family: Georgia, serif;
  color: #6d28d9;
  font-weight: 700;
  margin-top: -2px;
}

.self-eval-note-container .note-quote-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #475569);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.self-eval-note-container .note-quote-text {
  margin: 0;
  font-size: 12.5px;
  color: var(--fg);
  line-height: 1.45;
  font-style: italic;
}

/* Leader Scoring Section */
.deliverable-leader-scoring-section {
  border-color: rgba(99, 102, 241, 0.3);
  box-shadow: 0 4px 20px rgba(99, 102, 241, 0.06);
}

.form-row-group-weight {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 12px;
  align-items: flex-end;
  margin-bottom: 12px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 560px) {
  .form-row-group-weight {
    grid-template-columns: minmax(0, 1fr);
  }
}
.decision-comparison-bar {
  padding: 8px 12px;
  border-radius: var(--radius-md, 8px);
  font-size: 12px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  flex-wrap: wrap;
  margin-bottom: 8px;
}

.decision-comparison-bar.is-agreed {
  background: rgba(16, 185, 129, 0.09);
  border: 1px solid rgba(16, 185, 129, 0.28);
  color: #047857;
  font-weight: 600;
}

.decision-comparison-bar.is-changed {
  background: rgba(245, 158, 11, 0.1);
  border: 1px solid rgba(245, 158, 11, 0.3);
  color: #92400e;
  font-weight: 600;
}

.decision-comparison-bar.is-neutral {
  background: var(--bg-subtle);
  border: 1px solid var(--line-subtle);
  color: var(--muted);
}

.decision-comparison-bar .btn-reset-proposed {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  background: transparent;
  border: none;
  color: var(--accent);
  text-decoration: underline;
  cursor: pointer;
  font-size: 11.5px;
  font-weight: 700;
  padding: 3px 8px;
}

.unified-kpi-calc-box {
  margin-top: 14px;
  padding: 14px 18px;
  border-radius: var(--radius-lg, 12px);
  background: var(--accent-soft);
  border: 1.5px solid var(--accent-border);
  display: flex;
  align-items: center;
  justify-content: space-between;
  flex-wrap: wrap;
  gap: 16px;
  box-shadow: 0 4px 14px rgba(99, 102, 241, 0.06);
}

.kpi-formula-col {
  min-width: 0;
  flex: 1;
}

.kpi-calc-badge {
  display: inline-block;
  font-size: 11px;
  font-weight: 750;
  color: #4338ca;
  letter-spacing: 0.04em;
  text-transform: uppercase;
  margin-bottom: 3px;
}

.kpi-calc-formula-text {
  font-size: 13.5px;
  color: var(--fg, #0f172a);
  font-weight: 600;
  line-height: 1.4;
}

.kpi-calc-formula-text strong {
  color: #4338ca;
  font-weight: 750;
}

.kpi-calc-desc {
  display: block;
  font-size: 11px;
  color: var(--muted, #475569);
  margin-top: 2px;
}

.kpi-score-badge-col {
  display: flex;
  flex-direction: column;
  align-items: flex-end;
  flex-shrink: 0;
}

.kpi-score-big {
  font-size: 32px;
  font-weight: 850;
  color: #4338ca;
  line-height: 1;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.03em;
}

@media screen {
  :root[data-theme=dark] .eval-quality-badge .quality-tier-name,
  :root[data-theme=dark] .self-eval-criteria-peek .criteria-tagline,
  :root[data-theme=dark] .self-eval-note-container .note-quote-icon {
    color: #d8b4fe;
  }
  :root[data-theme=dark] .decision-comparison-bar.is-agreed {
    color: #6ee7b7;
  }
  :root[data-theme=dark] .decision-comparison-bar.is-changed {
    color: #fcd34d;
  }
  :root[data-theme=dark] .kpi-calc-badge,
  :root[data-theme=dark] .kpi-calc-formula-text strong,
  :root[data-theme=dark] .kpi-score-big {
    color: var(--accent);
  }
}
.kpi-score-unit {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted, #475569);
  letter-spacing: 0.05em;
  margin-top: 2px;
}

/* Certificate (View Mode) */
.deliverable-certificate-section {
  border-color: rgba(16, 185, 129, 0.3);
  background: var(--surface-card, var(--surface));
}

.official-result-card {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.result-card-top {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  flex-wrap: wrap;
}

.result-quality-block .result-lbl {
  display: block;
  font-size: 11px;
  font-weight: 650;
  color: var(--muted);
  text-transform: uppercase;
}

.result-quality-val {
  display: block;
  font-size: 18px;
  font-weight: 800;
  color: #047857;
  margin: 2px 0 1px;
}

.result-tier-desc {
  font-size: 11.5px;
  color: var(--muted);
}

.result-score-block {
  text-align: right;
}

.result-score-lbl {
  display: block;
  font-size: 11px;
  font-weight: 750;
  color: #047857;
  letter-spacing: 0.04em;
}

.result-score-number {
  font-size: 36px;
  font-weight: 850;
  color: #047857;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}

.result-score-unit {
  font-size: 11px;
  font-weight: 750;
  color: var(--muted);
  margin-left: 2px;
}

.result-formula-bar {
  padding: 8px 12px;
  border-radius: var(--radius-md);
  background: rgba(16, 185, 129, 0.08);
  border: 1px solid rgba(16, 185, 129, 0.2);
  font-size: 12px;
  color: #065f46;
}

.result-meta-footer {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 10px;
  border-top: 1px solid var(--line-subtle);
}

.approver-info {
  font-size: 12px;
  color: var(--fg-subtle);
}

.approver-info .meta-lbl {
  color: var(--muted);
  margin-right: 4px;
}

.leader-feedback-quote {
  background: var(--bg-subtle);
  border-left: 3px solid #059669;
  border-radius: 0 var(--radius-sm) var(--radius-sm) 0;
  padding: 8px 12px;
  font-size: 12.5px;
  color: var(--fg);
}

.leader-feedback-quote .feedback-lbl {
  display: block;
  font-size: 11px;
  font-weight: 700;
  color: var(--muted, #475569);
  text-transform: uppercase;
  margin-bottom: 2px;
}

.leader-feedback-quote p {
  margin: 0;
  font-style: italic;
}

/* Modal Footer */
.deliverable-modal-footer {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  flex-wrap: wrap;
  padding: 14px 0 20px;
  margin-top: 12px;
  border-top: 1.5px solid var(--line-subtle, rgba(226, 232, 240, 0.85));
  position: sticky;
  bottom: 0;
  background: var(--surface, #ffffff);
  z-index: 8;
}

@media (max-width: 540px) {
  .deliverable-master-dialog .excel-modal-inner {
    padding: 16px 16px 0 !important;
  }
  .deliverable-modal-footer {
    gap: 8px;
    padding: 12px 0 16px;
  }
  .deliverable-modal-footer .button {
    padding: 0 10px;
    font-size: 12.5px;
    flex: 1 1 auto;
    justify-content: center;
  }
}
.deliverable-modal-footer .btn-dialog-back {
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border);
  color: var(--fg-subtle);
  font-weight: 600;
}

.deliverable-modal-footer .btn-dialog-back:hover {
  background: var(--border);
  color: var(--fg);
}

.deliverable-modal-footer .btn-rework-action {
  color: #b91c1c !important;
  border-color: rgba(185, 28, 28, 0.35) !important;
  background: rgba(185, 28, 28, 0.06) !important;
  font-weight: 650;
}

.deliverable-modal-footer .btn-rework-action:hover {
  background: rgba(185, 28, 28, 0.12) !important;
  border-color: #b91c1c !important;
}

.deliverable-modal-footer .btn-accept-action,
#unified-accept-btn {
  background: var(--accent-btn, #2563eb) !important;
  background-color: var(--accent-btn, #2563eb) !important;
  border-color: var(--accent-btn, #2563eb) !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(9, 9, 11, 0.14) !important;
}

.deliverable-modal-footer .btn-accept-action:hover,
#unified-accept-btn:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

.deliverable-modal-footer .btn-dialog-submit {
  background: linear-gradient(135deg, #075985 0%, #0369a1 100%) !important;
  background-color: #0369a1 !important;
  color: #ffffff !important;
  font-weight: 700;
  box-shadow: 0 4px 14px rgba(3, 105, 161, 0.35) !important;
}

.deliverable-modal-footer .btn-dialog-submit:hover {
  filter: brightness(1.06);
  transform: translateY(-1px);
}

/* Quick table action buttons for tasks view */
.btn-table-review {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
  font-weight: 700;
  background: #fef3c7;
  border: 1px solid #fde68a;
  color: #92400e;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-table-review:hover {
  background: #fde68a;
  border-color: #b45309;
  transform: translateY(-1px);
}

.btn-table-certificate {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  min-height: 26px;
  padding: 3px 8px;
  border-radius: var(--radius-sm, 6px);
  font-size: 11px;
  font-weight: 700;
  background: #d1fae5;
  border: 1px solid #a7f3d0;
  color: #047857;
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease, transform 0.15s ease;
}

.btn-table-certificate:hover {
  background: rgba(16, 185, 129, 0.2);
  border-color: #047857;
  transform: translateY(-1px);
}

/* ====================================================================
   ADDITIONAL MODAL & OVERVIEW COVERAGE CLASSES
   ==================================================================== */
.unified-deliverable-modal-root {
  display: flex;
  flex-direction: column;
  gap: 0;
}

.deliverable-scope-section {
  border-color: rgba(99, 102, 241, 0.18);
}

.assignee-card {
  border-left: 3px solid var(--accent, #6366f1);
}

.timeline-card {
  border-left: 3px solid #f59e0b;
}

.execution-card {
  border-left: 3px solid #10b981;
}

.execution-card.is-late {
  border-left-color: #ef4444;
}

.wbs-pill {
  background: rgba(139, 92, 247, 0.09);
  border-color: rgba(139, 92, 247, 0.24);
  color: #6d28d9;
}

.step-pill {
  background: rgba(16, 185, 129, 0.09);
  border-color: rgba(16, 185, 129, 0.24);
  color: #047857;
}

.seal-icon {
  font-size: 13px;
  line-height: 1;
}

.seal-text {
  font-size: 11px;
  font-weight: 750;
  letter-spacing: 0.03em;
}

.form-field-group {
  display: flex;
  flex-direction: column;
  gap: 6px;
  margin-bottom: 12px;
}

.field-label-bold {
  font-size: 12px;
  font-weight: 700;
  color: var(--fg, #0f172a);
  letter-spacing: -0.01em;
}

.unified-textarea {
  width: 100%;
  padding: 8px 12px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--input-border, var(--line));
  background-color: var(--input-bg, var(--surface));
  color: var(--fg, #0f172a);
  font-family: inherit;
  font-size: 13px;
  line-height: 1.5;
  resize: vertical;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.unified-textarea:focus,
.unified-textarea:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 0;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.unified-input {
  width: 100%;
  padding: 7px 11px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--input-border, var(--line));
  background-color: var(--input-bg, var(--surface));
  color: var(--fg, #0f172a);
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.unified-input:focus,
.unified-input:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 0;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.unified-select {
  width: 100%;
  max-width: 100%;
  min-width: 0;
  padding: 7px 32px 7px 11px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--input-border, var(--line));
  background-color: var(--input-bg, var(--surface));
  color: var(--fg, #0f172a);
  font-family: inherit;
  font-size: 13px;
  box-sizing: border-box;
  transition: border-color 0.15s ease, box-shadow 0.15s ease;
}

.unified-select:focus,
.unified-select:focus-visible {
  outline: 2px solid var(--accent, #2563eb);
  outline-offset: 0;
  border-color: var(--accent, #2563eb);
  box-shadow: 0 0 0 3px rgba(37, 99, 235, 0.15);
}

.attachment-label-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 4px;
}

.attachment-action-row {
  display: flex;
  align-items: center;
  gap: 8px;
}

.attachment-url-wrap {
  position: relative;
  flex: 1;
  display: flex;
  align-items: center;
}

.attachment-url-wrap .url-lead-icon {
  position: absolute;
  left: 10px;
  display: inline-flex;
  align-items: center;
  color: var(--muted, #64748b);
  pointer-events: none;
}

.attachment-url-wrap .url-lead-icon .icon {
  width: 14px;
  height: 14px;
}

.attachment-url-wrap .unified-input,
#unified-output-url {
  padding-left: 36px !important;
}

.btn-unified-attach {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  min-height: 28px;
  padding: 7px 12px;
  border-radius: var(--radius-md, 8px);
  border: 1px solid var(--border, #cbd5e1);
  background: var(--bg-subtle, #f8fafc);
  color: var(--fg-subtle, #334155);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  white-space: nowrap;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-unified-attach:hover {
  background: var(--surface, #ffffff);
  border-color: var(--accent, #6366f1);
  color: var(--accent, #6366f1);
}

.unified-attach-preview-box {
  margin-top: 8px;
}

.self-eval-interactive-box {
  display: flex;
  flex-direction: column;
  gap: 12px;
}

.self-eval-date-picker-row {
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.date-picker-flex {
  display: flex;
  align-items: center;
  gap: 10px;
}

.date-picker-flex .unified-input {
  max-width: 200px;
}

.timeliness-live-preview {
  display: inline-flex;
  align-items: center;
}

.quality-tier-selection-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.unified-note-presets {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 6px;
}

.presets-lbl {
  font-size: 11px;
  font-weight: 650;
  color: var(--muted, #64748b);
}

.leader-eval-fields {
  display: flex;
  flex-direction: column;
  gap: 12px;
  min-width: 0;
  max-width: 100%;
}

.group-select-field {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
}

.group-select-field details {
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
}

.custom-weight-field {
  width: 140px;
  max-width: 100%;
}

@media (max-width: 560px) {
  .custom-weight-field {
    width: 100%;
  }
}
.leader-decision-area {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.note-quote-body {
  flex: 1;
  min-width: 0;
}

.meta-date {
  font-size: 11.5px;
  color: var(--muted, #64748b);
  margin-left: 4px;
}

.bc-stage {
  color: var(--fg-subtle, #475569);
  font-weight: 500;
}

.bc-step {
  color: #4338ca;
  font-weight: 600;
}

.pill-beacon {
  display: inline-block;
  line-height: 1;
}

.hero-right {
  display: flex;
  align-items: center;
  gap: 8px;
  flex-wrap: wrap;
}

.btn-revert-deliverable {
  color: #b91c1c;
  border-color: rgba(185, 28, 28, 0.3);
}

.btn-revert-deliverable:hover {
  background: rgba(185, 28, 28, 0.08);
  border-color: #b91c1c;
}

.attachment-card-right {
  display: flex;
  align-items: center;
  flex-shrink: 0;
}

.btn-note-preset {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  background: var(--bg-subtle, #f8fafc);
  border: 1px solid var(--border, #cbd5e1);
  border-radius: var(--radius-sm, 6px);
  padding: 4px 10px;
  font-size: 11px;
  color: var(--fg-subtle, #334155);
  cursor: pointer;
  transition: color 0.15s ease, background-color 0.15s ease, border-color 0.15s ease, box-shadow 0.15s ease;
}

.btn-note-preset:hover {
  background: var(--surface, #ffffff);
  border-color: var(--accent, #2563eb);
  color: var(--accent, #2563eb);
}

.group-rubric-summary {
  display: flex;
  align-items: center;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
  overflow: hidden;
  box-sizing: border-box;
  cursor: pointer;
  font-size: 11px;
  color: var(--muted, #475569);
  list-style: none;
}

.group-rubric-summary::-webkit-details-marker {
  display: none;
}

.group-rubric-peek {
  flex: 1 1 0%;
  min-width: 0;
  max-width: 100%;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  font-style: italic;
}

.rubric-toggle-arrow {
  flex-shrink: 0;
  font-size: 11px;
  color: var(--muted, #475569);
  transition: transform 0.2s ease;
}

details[open] .rubric-toggle-arrow {
  transform: rotate(180deg);
}

.group-rubric-full {
  margin: 6px 0 0;
  padding: 6px 8px;
  background: rgba(15, 23, 42, 0.03);
  border-radius: var(--radius-sm, 4px);
  font-size: 11px;
  line-height: 1.4;
  color: var(--fg-subtle);
  font-style: italic;
}

.attachment-guide {
  font-size: 11px;
  color: var(--muted, #64748b);
}

.field-help-sub {
  font-size: 11px;
  color: var(--muted, #64748b);
  margin: 2px 0 6px;
}

.output-proof-stack {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  max-width: 100%;
}

@media (max-width: 480px) {
  .output-proof-card {
    padding: 10px;
    gap: 8px;
  }
  .output-proof-card .proof-card-left {
    flex: 1 1 100%;
  }
  .output-proof-card .proof-card-actions {
    width: 100%;
    justify-content: flex-end;
  }
}
.unified-attach-preview-box {
  flex-direction: column;
  align-items: stretch;
  gap: 6px;
}

.unified-attach-preview-box .attachment-preview-card {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 9px 12px;
  border-radius: var(--radius-md, 8px);
  background: var(--surface, #ffffff);
  border: 1px solid var(--line, #e2e8f0);
}

.unified-attach-preview-box .attachment-preview-card .preview-name {
  flex: 1 1 auto;
  min-width: 0;
  font-size: 12.5px;
  font-weight: 600;
  color: var(--fg, #0f172a);
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.unified-attach-preview-box .attachment-preview-card .preview-type-badge {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  flex-shrink: 0;
  font-size: 11px;
  font-weight: 650;
  padding: 2px 7px;
  border-radius: var(--radius-xs, 5px);
  background: var(--bg-subtle, #f1f5f9);
  color: #334155;
}

.unified-attach-preview-box .attachment-preview-card .preview-actions {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex-shrink: 0;
}

.unified-attach-preview-box .attachment-preview-card .btn-preview-open {
  display: inline-flex;
  align-items: center;
  gap: 4px;
  color: #4338ca;
  text-decoration: none;
  font-size: 12px;
  font-weight: 650;
}

.deliverable-review-card .deliverable-actions-left,
.approval-table .row-sub-meta {
  flex-wrap: wrap;
}

@media screen {
  :root[data-theme=dark] .official-org-mark .org-badge {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
  }
  :root[data-theme=dark] .official-org-mark .org-sep,
  :root[data-theme=dark] .official-org-mark .org-doc-code {
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .official-seal.seal-awaiting {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
    box-shadow: none;
  }
  :root[data-theme=dark] .official-seal.seal-approved {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
    box-shadow: none;
  }
  :root[data-theme=dark] .official-seal.seal-submitting {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
    box-shadow: none;
  }
  :root[data-theme=dark] .meta-pill {
    background: var(--bg-subtle);
    border-color: var(--line);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .meta-pill.project-pill {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #c7d2fe;
  }
  :root[data-theme=dark] .meta-pill.group-pill {
    background: rgba(14, 165, 233, 0.16);
    border-color: rgba(56, 189, 248, 0.35);
    color: #7dd3fc;
  }
  :root[data-theme=dark] .wbs-pill {
    background: rgba(139, 92, 246, 0.18);
    border-color: rgba(167, 139, 250, 0.35);
    color: #ddd6fe;
  }
  :root[data-theme=dark] .step-pill {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .info-card,
  :root[data-theme=dark] .certificate-meta-box {
    background: var(--bg-subtle);
    border-color: var(--line);
    color: var(--fg);
  }
  :root[data-theme=dark] .due-highlight {
    color: #fcd34d;
  }
  :root[data-theme=dark] .timeliness-pill.is-early,
  :root[data-theme=dark] .timeliness-live-pill.is-early {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .timeliness-pill.is-ontime,
  :root[data-theme=dark] .timeliness-live-pill.is-ontime {
    background: rgba(99, 102, 241, 0.18);
    border-color: rgba(129, 140, 248, 0.35);
    color: #a5b4fc;
  }
  :root[data-theme=dark] .timeliness-pill.is-late,
  :root[data-theme=dark] .timeliness-live-pill.is-late {
    background: rgba(239, 68, 68, 0.16);
    border-color: rgba(248, 113, 113, 0.35);
    color: #fca5a5;
  }
  :root[data-theme=dark] .proof-icon {
    color: #a5b4fc;
  }
  :root[data-theme=dark] .proof-icon.drive {
    background: rgba(14, 165, 233, 0.16);
    color: #7dd3fc;
  }
  :root[data-theme=dark] .proof-icon.figma {
    background: rgba(168, 85, 247, 0.18);
    color: #d8b4fe;
  }
  :root[data-theme=dark] .proof-icon.pdf {
    background: rgba(244, 63, 94, 0.18);
    color: #fda4af;
  }
  :root[data-theme=dark] .proof-icon.excel {
    background: rgba(16, 185, 129, 0.16);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .proof-icon.word {
    background: rgba(59, 130, 246, 0.18);
    color: #93c5fd;
  }
  :root[data-theme=dark] .proof-tag {
    color: #a5b4fc;
  }
  :root[data-theme=dark] .result-quality-val,
  :root[data-theme=dark] .result-score-lbl,
  :root[data-theme=dark] .result-score-number {
    color: #6ee7b7;
  }
  :root[data-theme=dark] .result-formula-bar {
    background: rgba(16, 185, 129, 0.14);
    border-color: rgba(52, 211, 153, 0.32);
    color: #a7f3d0;
  }
  :root[data-theme=dark] .result-formula-bar strong {
    color: #ecfdf5;
  }
  :root[data-theme=dark] .deliverable-modal-footer .btn-rework-action {
    color: #fca5a5 !important;
    border-color: rgba(248, 113, 113, 0.4) !important;
    background: rgba(239, 68, 68, 0.14) !important;
  }
  :root[data-theme=dark] .deliverable-modal-footer .btn-rework-action:hover {
    background: rgba(239, 68, 68, 0.24) !important;
    border-color: #f87171 !important;
    color: #fee2e2 !important;
  }
  :root[data-theme=dark] .btn-table-review {
    background: rgba(245, 158, 11, 0.16);
    border-color: rgba(251, 191, 36, 0.35);
    color: #fcd34d;
  }
  :root[data-theme=dark] .btn-table-review:hover {
    background: rgba(245, 158, 11, 0.26);
    border-color: #fbbf24;
  }
  :root[data-theme=dark] .btn-table-certificate {
    background: rgba(16, 185, 129, 0.16);
    border-color: rgba(52, 211, 153, 0.35);
    color: #6ee7b7;
  }
  :root[data-theme=dark] .btn-table-certificate:hover {
    background: rgba(16, 185, 129, 0.26);
    border-color: #34d399;
  }
  :root[data-theme=dark] .bc-step {
    color: #a5b4fc;
  }
  :root[data-theme=dark] .btn-revert-deliverable {
    color: #fca5a5;
    border-color: rgba(248, 113, 113, 0.4);
  }
  :root[data-theme=dark] .btn-revert-deliverable:hover {
    background: rgba(239, 68, 68, 0.18);
    border-color: #f87171;
  }
  :root[data-theme=dark] .group-rubric-full {
    background: var(--bg-subtle);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .unified-attach-preview-box .attachment-preview-card {
    background: var(--bg-subtle);
    border-color: var(--line);
  }
  :root[data-theme=dark] .unified-attach-preview-box .attachment-preview-card .preview-name {
    color: var(--fg);
  }
  :root[data-theme=dark] .unified-attach-preview-box .attachment-preview-card .preview-type-badge {
    background: var(--surface-card);
    color: var(--fg-subtle);
  }
  :root[data-theme=dark] .unified-attach-preview-box .attachment-preview-card .btn-preview-open {
    color: var(--accent);
  }
}
@media screen {
  html,
  body {
    background: var(--bg) !important;
    background-image: none !important;
    color: var(--fg);
    -webkit-font-smoothing: antialiased;
    -moz-osx-font-smoothing: grayscale;
  }
  select,
  select.form-select,
  select.wbs-select-field,
  select.unified-select,
  .control select,
  .toolbar select,
  #filter-toolbar .control select,
  .wbs-toolbar select,
  .wbs-toolbar .wbs-filter-wrap select,
  .proposal-grade-select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 10px center !important;
    background-size: 12px 12px !important;
    padding-right: 30px !important;
  }
  .sort-control select {
    -webkit-appearance: none !important;
    -moz-appearance: none !important;
    appearance: none !important;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23475569' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
    background-repeat: no-repeat !important;
    background-position: right 7px center !important;
    background-size: 11px 11px !important;
    padding: 0 24px 0 8px !important;
  }
  :root[data-theme=dark] select,
  :root[data-theme=dark] select.form-select,
  :root[data-theme=dark] select.wbs-select-field,
  :root[data-theme=dark] select.unified-select,
  :root[data-theme=dark] .control select,
  :root[data-theme=dark] .toolbar select,
  :root[data-theme=dark] #filter-toolbar .control select,
  :root[data-theme=dark] .wbs-toolbar select,
  :root[data-theme=dark] .wbs-toolbar .wbs-filter-wrap select,
  :root[data-theme=dark] .proposal-grade-select,
  :root[data-theme=dark] .sort-control select {
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23a1a1aa' stroke-width='2.2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpolyline points='6 9 12 15 18 9'/%3E%3C/svg%3E") !important;
  }
  select::-ms-expand,
  select::picker-icon {
    display: none !important;
  }
  button:focus-visible,
  a:focus-visible,
  summary:focus-visible,
  input:focus-visible,
  select:focus-visible,
  textarea:focus-visible,
  [tabindex]:focus-visible {
    outline: 2px solid var(--focus-ring) !important;
    outline-offset: 2px !important;
  }
  #task-summary .summary-card:focus-visible,
  .status-tabs .status-tab:focus-visible,
  .pbi-matrix-table .pbi-matrix-trigger:focus-visible {
    outline-offset: -2px !important;
  }
  .team-search-box:has(input:focus-visible),
  .criteria-search-box:has(input:focus-visible),
  .wbs-search-wrap:has(input:focus-visible) {
    outline: 2px solid var(--focus-ring) !important;
    outline-offset: 1px !important;
    border-color: var(--focus-ring) !important;
  }
  .team-search-box input:focus-visible,
  .criteria-search-box input:focus-visible,
  .wbs-search-wrap input:focus-visible,
  .palette-input-row .palette-input:focus-visible {
    outline: none !important;
    box-shadow: none !important;
  }
}
@media screen {
  .sidebar {
    background: var(--sidebar-bg, #f1f5f9) !important;
    backdrop-filter: none;
    -webkit-backdrop-filter: none;
    box-shadow: none !important;
  }
}
@media screen and (min-width: 651px) {
  .sidebar {
    border-right: 1px solid var(--line) !important;
  }
}
@media screen and (max-width: 650px) {
  .sidebar {
    background: var(--glass-surface-modal) !important;
    border-right: 0 !important;
    border-top: 1px solid var(--line) !important;
  }
}
@media screen {
  .sidebar .brand .brand-mark {
    background: linear-gradient(180deg, #3b82f6 0%, #2563eb 100%) !important;
    color: #ffffff !important;
    border: 1px solid #1d4ed8 !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.28), 0 1px 3px rgba(37, 99, 235, 0.2) !important;
  }
  .sidebar .workspace-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .sidebar .sidebar-search {
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--muted) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .sidebar .sidebar-search:hover {
    background: var(--surface) !important;
    border-color: var(--border-hover) !important;
    color: var(--fg) !important;
  }
  .sidebar .sidebar-search kbd {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
  }
  .sidebar nav .nav {
    border-radius: 7px;
    color: var(--muted) !important;
    transition: background-color 120ms var(--ease), color 120ms var(--ease), box-shadow 120ms var(--ease);
  }
  .sidebar nav .nav:hover:not(.active) {
    background: rgba(15, 23, 42, 0.045) !important;
    color: var(--fg) !important;
  }
  .sidebar nav .nav.active {
    background: var(--nav-active-bg, #ffffff) !important;
    color: var(--fg) !important;
    font-weight: 600 !important;
    box-shadow: var(--nav-active-shadow) !important;
  }
  .sidebar nav .nav.active::before {
    display: none !important;
  }
  .sidebar nav .nav.active .icon {
    color: var(--nav-active-icon, #2563eb) !important;
  }
  .sidebar nav .nav.active .nav-count {
    background: var(--accent-soft) !important;
    color: var(--accent) !important;
    border-color: var(--accent-border) !important;
  }
  .sidebar nav .nav .nav-count {
    background: var(--surface) !important;
    color: var(--muted) !important;
    border: 1px solid var(--line) !important;
    font-variant-numeric: tabular-nums;
  }
  .sidebar .team-pulse {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
  }
  .sidebar .team-pulse .pulse-track {
    background: var(--line) !important;
  }
  .sidebar .team-pulse .pulse-track > span {
    background: var(--accent-btn, #2563eb) !important;
  }
  :root[data-theme=dark] .sidebar {
    background: var(--glass-surface) !important;
  }
  :root[data-theme=dark] .sidebar .brand .brand-mark {
    background: #fafafa !important;
    color: #09090b !important;
    border-color: #e4e4e7 !important;
    box-shadow: none !important;
  }
  :root[data-theme=dark] .sidebar .workspace-card,
  :root[data-theme=dark] .sidebar .sidebar-search,
  :root[data-theme=dark] .sidebar .team-pulse {
    background: var(--bg-subtle) !important;
    box-shadow: none !important;
  }
  :root[data-theme=dark] .sidebar .sidebar-search kbd {
    background: var(--surface) !important;
  }
  :root[data-theme=dark] .sidebar nav .nav:hover:not(.active) {
    background: var(--surface-hover) !important;
  }
  :root[data-theme=dark] .sidebar nav .nav .nav-count {
    background: var(--bg-subtle) !important;
  }
  :root[data-theme=dark] .sidebar nav .nav.active .nav-count {
    background: var(--surface) !important;
    color: var(--fg) !important;
    border-color: var(--line-strong) !important;
  }
  .topbar {
    background: var(--glass-surface) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-bottom: 1px solid var(--line) !important;
  }
  .topbar .topbar-crumb {
    color: var(--muted) !important;
  }
  .topbar .topbar-crumb #topbar-view-label {
    color: var(--fg) !important;
    font-weight: 600;
  }
  .topbar .topbar-theme-btn {
    width: 34px !important;
    height: 34px !important;
    min-width: 34px !important;
    min-height: 34px !important;
    padding: 0 !important;
    border-radius: 8px !important;
    display: inline-grid !important;
    place-items: center !important;
    background: var(--surface) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg-subtle) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .topbar .topbar-theme-btn .icon {
    width: 15px !important;
    height: 15px !important;
  }
  .topbar .topbar-theme-btn:hover {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
    color: var(--fg) !important;
  }
  .topbar #reminder-toggle,
  .topbar .inbox-button,
  .topbar .profile-menu > summary {
    background: var(--surface) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .topbar #reminder-toggle:hover,
  .topbar .inbox-button:hover,
  .topbar .profile-menu > summary:hover {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
  }
  .topbar #reminder-count {
    background: var(--bg-subtle) !important;
    color: var(--fg-subtle) !important;
    border: 1px solid var(--line) !important;
  }
  .topbar .profile-role-tag {
    background: var(--bg-subtle) !important;
    color: var(--fg-subtle) !important;
    border: 1px solid var(--line) !important;
    font-weight: 600 !important;
  }
}
@media screen {
  input:not([type=checkbox]):not([type=radio]):not([type=range]),
  select,
  textarea {
    background-color: var(--input-bg) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg) !important;
    box-shadow: var(--control-shadow);
  }
  input:not([type=checkbox]):not([type=radio]):not([type=range]):hover:not(:disabled):not(:focus),
  select:hover:not(:disabled):not(:focus),
  textarea:hover:not(:disabled):not(:focus) {
    border-color: var(--border-hover) !important;
  }
  input:not([type=checkbox]):not([type=radio]):not([type=range])::placeholder,
  select::placeholder,
  textarea::placeholder {
    color: var(--placeholder) !important;
  }
  .team-search-box,
  .criteria-search-box,
  .wbs-search-wrap,
  .palette-input-row,
  .wbs-cascader-search-wrap {
    background: var(--input-bg) !important;
    border: 1px solid var(--border-control) !important;
    box-shadow: var(--control-shadow);
  }
  .team-search-box:hover:not(:focus-within),
  .criteria-search-box:hover:not(:focus-within),
  .wbs-search-wrap:hover:not(:focus-within),
  .palette-input-row:hover:not(:focus-within),
  .wbs-cascader-search-wrap:hover:not(:focus-within) {
    border-color: var(--border-hover) !important;
  }
  .wbs-filter-trigger:not(.is-filtered),
  #btn-toggle-all-month:not(.is-active),
  .evaluation-toolbar .btn-toggle-all-month:not(.is-active) {
    background: var(--surface) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg-subtle) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .wbs-filter-trigger:not(.is-filtered):hover,
  #btn-toggle-all-month:not(.is-active):hover,
  .evaluation-toolbar .btn-toggle-all-month:not(.is-active):hover {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
    color: var(--fg) !important;
  }
  :is(.team-search-box, .criteria-search-box, .wbs-search-wrap, .palette-input-row, .wbs-cascader-search-wrap) input:not([type=checkbox]):not([type=radio]):not([type=range]) {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
  }
  .button,
  .btn-secondary {
    background: var(--surface) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg) !important;
    box-shadow: var(--control-shadow);
    transition: background-color 120ms var(--ease), border-color 120ms var(--ease), transform 120ms var(--ease);
  }
  .button:hover:not(:disabled),
  .btn-secondary:hover:not(:disabled) {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
  }
  .button:active:not(:disabled),
  .btn-secondary:active:not(:disabled) {
    transform: scale(0.985);
  }
  .button:disabled,
  .btn-secondary:disabled {
    background: var(--bg-subtle) !important;
    border-color: var(--line) !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.72 !important;
  }
  .button.primary,
  #primary-action.button.primary {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.1) 0%, rgba(255, 255, 255, 0) 100%), var(--accent-btn, #2563eb) !important;
    border: 1px solid #1d4ed8 !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.24), 0 1px 2px rgba(37, 99, 235, 0.2) !important;
  }
  .button.primary:hover:not(:disabled),
  #primary-action.button.primary:hover:not(:disabled) {
    background: linear-gradient(180deg, rgba(255, 255, 255, 0.12) 0%, rgba(255, 255, 255, 0) 100%), var(--accent-btn-hover, #1d4ed8) !important;
    border-color: #1e40af !important;
  }
  .button.primary:disabled,
  #primary-action.button.primary:disabled {
    background: var(--bg-subtle) !important;
    border-color: var(--line) !important;
    color: var(--muted) !important;
    box-shadow: none !important;
    cursor: not-allowed;
    opacity: 0.72 !important;
  }
  .btn-excel,
  .button.btn-excel,
  .heading-actions .btn-excel {
    background: var(--surface) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .btn-excel .icon,
  .btn-excel svg,
  .button.btn-excel .icon,
  .button.btn-excel svg,
  .heading-actions .btn-excel .icon,
  .heading-actions .btn-excel svg {
    color: var(--success) !important;
  }
  .btn-excel:hover:not(:disabled),
  .button.btn-excel:hover:not(:disabled),
  .heading-actions .btn-excel:hover:not(:disabled) {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
  }
  .wbs-platform-actions .btn-wbs-assign.button.primary,
  .employee-card .btn-assign.button.primary,
  .employee-table .btn-assign.button.primary {
    background: var(--surface) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .wbs-platform-actions .btn-wbs-assign.button.primary:hover:not(:disabled),
  .employee-card .btn-assign.button.primary:hover:not(:disabled),
  .employee-table .btn-assign.button.primary:hover:not(:disabled) {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
    color: var(--fg) !important;
  }
  .view-switch,
  .wbs-view-toggle,
  .employee-view-toggle,
  .report-week-nav {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
  }
  .view-option.active,
  .view-option[aria-pressed=true],
  .view-toggle-btn.active,
  .view-toggle-btn[aria-pressed=true],
  .report-week-nav .week-nav-btn.active {
    background: var(--surface) !important;
    color: var(--fg) !important;
    border-color: var(--line-strong) !important;
    box-shadow: var(--shadow-xs) !important;
  }
}
@media screen {
  .avatar,
  .task-person .avatar,
  .task-card .avatar,
  .employee-avatar,
  .account-user-avatar,
  .assignee-avatar,
  #editor .assignee-avatar,
  .row-avatar,
  .eval-avatar,
  .person-avatar,
  .approval-user-avatar,
  .deliverable-user-avatar {
    border-radius: 6px !important;
    font-weight: 600 !important;
    letter-spacing: 0.01em;
    background: var(--bg-subtle) !important;
    color: var(--fg-subtle) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
  }
  :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-0 {
    background: #eff6ff !important;
    border-color: #dbeafe !important;
    color: #1d4ed8 !important;
  }
  :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-1 {
    background: #ecfdf5 !important;
    border-color: #d1fae5 !important;
    color: #047857 !important;
  }
  :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-2 {
    background: #fffbeb !important;
    border-color: #fde68a !important;
    color: #b45309 !important;
  }
  :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-3 {
    background: #fff1f2 !important;
    border-color: #ffe4e6 !important;
    color: #be123c !important;
  }
  :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-4 {
    background: #f0fdfa !important;
    border-color: #ccfbf1 !important;
    color: #0f766e !important;
  }
  :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-5 {
    background: #f0f9ff !important;
    border-color: #bae6fd !important;
    color: #0369a1 !important;
  }
  :root[data-theme=dark] :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-0 {
    background: rgba(59, 130, 246, 0.16) !important;
    border-color: rgba(96, 165, 250, 0.28) !important;
    color: #93c5fd !important;
  }
  :root[data-theme=dark] :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-1 {
    background: rgba(16, 185, 129, 0.15) !important;
    border-color: rgba(52, 211, 153, 0.28) !important;
    color: #6ee7b7 !important;
  }
  :root[data-theme=dark] :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-2 {
    background: rgba(245, 158, 11, 0.15) !important;
    border-color: rgba(251, 191, 36, 0.28) !important;
    color: #fcd34d !important;
  }
  :root[data-theme=dark] :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-3 {
    background: rgba(244, 63, 94, 0.15) !important;
    border-color: rgba(251, 113, 133, 0.28) !important;
    color: #fda4af !important;
  }
  :root[data-theme=dark] :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-4 {
    background: rgba(20, 184, 166, 0.15) !important;
    border-color: rgba(45, 212, 191, 0.28) !important;
    color: #5eead4 !important;
  }
  :root[data-theme=dark] :is(.avatar, #editor .assignee-avatar, .row-avatar, .employee-avatar, .account-user-avatar, .assignee-avatar, .eval-avatar, .person-avatar, .approval-user-avatar, .deliverable-user-avatar).tone-5 {
    background: rgba(14, 165, 233, 0.15) !important;
    border-color: rgba(56, 189, 248, 0.28) !important;
    color: #7dd3fc !important;
  }
}
@media screen {
  .pill,
  .pill-interactive,
  .task-row .pill,
  .task-row .pill-interactive {
    border-radius: 999px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    box-shadow: none !important;
    transition: filter 120ms var(--ease);
  }
  .pill.done,
  .pill-interactive.done,
  .task-row .pill.done,
  .task-row .pill-interactive.done {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success) !important;
  }
  .pill.progress,
  .pill-interactive.progress,
  .task-row .pill.progress,
  .task-row .pill-interactive.progress {
    background: var(--info-bg) !important;
    border: 1px solid var(--info-border) !important;
    color: var(--info) !important;
  }
  .pill.wait,
  .pill-interactive.wait,
  .task-row .pill.wait,
  .task-row .pill-interactive.wait {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning) !important;
  }
  .pill.late,
  .pill-interactive.late,
  .task-row .pill.late,
  .task-row .pill-interactive.late {
    background: var(--danger-bg) !important;
    border: 1px solid var(--danger-border) !important;
    color: var(--danger) !important;
  }
  .pill.neutral,
  .pill-interactive.neutral,
  .task-row .pill.neutral,
  .task-row .pill-interactive.neutral {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .pill:hover,
  .pill-interactive:hover,
  .task-row .pill:hover,
  .task-row .pill-interactive:hover {
    filter: brightness(1.05);
  }
  .task-state,
  .task-card .task-state,
  .task-row .task-state {
    border-radius: 6px !important;
    box-shadow: none !important;
  }
  .task-state.done,
  .task-card .task-state.done,
  .task-row .task-state.done {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success) !important;
  }
  .task-state.progress,
  .task-card .task-state.progress,
  .task-row .task-state.progress {
    background: var(--info-bg) !important;
    border: 1px solid var(--info-border) !important;
    color: var(--info) !important;
  }
  .task-state.wait,
  .task-card .task-state.wait,
  .task-row .task-state.wait {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning) !important;
  }
  .task-state.late,
  .task-card .task-state.late,
  .task-row .task-state.late {
    background: var(--danger-bg) !important;
    border: 1px solid var(--danger-border) !important;
    color: var(--danger) !important;
  }
}
@media screen {
  #task-summary {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-xs) !important;
    overflow: hidden;
  }
  #task-summary .summary-card {
    background: transparent !important;
    border-right: 1px solid var(--line) !important;
    transition: background-color 120ms var(--ease);
  }
  #task-summary .summary-card:last-child {
    border-right: 0 !important;
  }
  #task-summary .summary-card:hover {
    background: var(--surface-hover) !important;
  }
  #task-summary .summary-card .summary-label {
    color: var(--muted) !important;
    font-weight: 500 !important;
  }
  #task-summary .summary-card .summary-value {
    color: var(--fg) !important;
    font-variant-numeric: tabular-nums;
  }
  #task-summary .summary-card.done .summary-value {
    color: var(--success) !important;
  }
  #task-summary .summary-card.late .summary-value {
    color: var(--danger) !important;
  }
  #task-summary .summary-card.is-active-filter {
    background: var(--surface) !important;
    box-shadow: inset 0 -2px 0 var(--accent) !important;
  }
  #task-summary .summary-card.is-active-filter .summary-label {
    color: var(--fg) !important;
    font-weight: 600 !important;
  }
  #task-summary .summary-card.is-active-filter .summary-value {
    color: var(--fg) !important;
  }
  #task-summary .summary-card.is-active-filter.done .summary-value {
    color: var(--success) !important;
  }
  #task-summary .summary-card.is-active-filter.late .summary-value {
    color: var(--danger) !important;
  }
  :root[data-theme=dark] #task-summary button.summary-card.is-active-filter,
  #task-summary button.summary-card.is-active-filter {
    background: var(--surface) !important;
    border-color: var(--line) !important;
    box-shadow: inset 0 -2px 0 var(--accent) !important;
  }
  :root[data-theme=dark] #task-summary button.summary-card.is-active-filter .summary-label,
  :root[data-theme=dark] #task-summary button.summary-card.is-active-filter .summary-value,
  #task-summary button.summary-card.is-active-filter .summary-label,
  #task-summary button.summary-card.is-active-filter .summary-value {
    color: var(--fg) !important;
  }
  :root[data-theme=dark] #task-summary button.summary-card.is-active-filter.done .summary-value,
  #task-summary button.summary-card.is-active-filter.done .summary-value {
    color: var(--success) !important;
  }
  :root[data-theme=dark] #task-summary button.summary-card.is-active-filter.late .summary-value,
  #task-summary button.summary-card.is-active-filter.late .summary-value {
    color: var(--danger) !important;
  }
  .task-viewbar .status-tabs .status-tab {
    color: var(--muted) !important;
  }
  .task-viewbar .status-tabs .status-tab > span:last-child {
    background: var(--bg-subtle) !important;
    color: var(--muted) !important;
    border: 1px solid var(--line) !important;
    font-variant-numeric: tabular-nums;
  }
  .task-viewbar .status-tabs .status-tab:hover {
    color: var(--fg) !important;
  }
  .task-viewbar .status-tabs .status-tab.active {
    color: var(--fg) !important;
    font-weight: 600 !important;
    box-shadow: inset 0 -2px 0 var(--accent) !important;
  }
  .task-viewbar .status-tabs .status-tab.active > span:last-child {
    background: var(--surface-active) !important;
    color: var(--fg) !important;
    border-color: var(--line-strong) !important;
  }
  .quick-filter,
  .list-meta .quick-filter,
  .task-viewbar .quick-filter {
    background: var(--surface) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg-subtle) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .quick-filter:hover,
  .list-meta .quick-filter:hover,
  .task-viewbar .quick-filter:hover {
    background: var(--surface-hover) !important;
    border-color: var(--border-hover) !important;
    color: var(--fg) !important;
  }
  .quick-filter.active, .quick-filter[aria-pressed=true],
  .list-meta .quick-filter.active,
  .list-meta .quick-filter[aria-pressed=true],
  .task-viewbar .quick-filter.active,
  .task-viewbar .quick-filter[aria-pressed=true] {
    background: var(--danger-bg) !important;
    border-color: var(--danger-border) !important;
    color: var(--danger) !important;
    box-shadow: none !important;
  }
  .wbs-filter-trigger:not(.is-filtered),
  #filter-toolbar .wbs-filter-trigger:not(.is-filtered),
  #btn-toggle-all-month:not(.is-active),
  .btn-toggle-all-month:not(.is-active) {
    border-color: var(--border-control) !important;
    box-shadow: var(--control-shadow) !important;
  }
  .wbs-filter-trigger:not(.is-filtered) .wbs-trigger-icon,
  #filter-toolbar .wbs-filter-trigger:not(.is-filtered) .wbs-trigger-icon,
  #btn-toggle-all-month:not(.is-active) .wbs-trigger-icon,
  .btn-toggle-all-month:not(.is-active) .wbs-trigger-icon {
    color: var(--muted) !important;
  }
  .task-columns {
    background: var(--thead-bg, #f8fafc) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
    padding: 8px 14px 6px !important;
  }
  .task-columns > span {
    white-space: nowrap !important;
  }
  .task-group {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .task-group .task-group-heading {
    background: var(--thead-bg, #f8fafc) !important;
    border-bottom: 1px solid var(--line) !important;
    padding: 8px 14px !important;
  }
  .task-group .task-group-toggle > span {
    background: var(--surface) !important;
    color: var(--muted) !important;
    border: 1px solid var(--line) !important;
  }
  input.bulk-checkbox,
  .bulk-checkbox,
  .task-columns .bulk-checkbox,
  .task-row .bulk-checkbox,
  .task-row .bulk-checkbox:not(:checked) {
    background-color: var(--input-bg) !important;
    border: 1.5px solid var(--checkbox-border, #64748b) !important;
    opacity: 1 !important;
  }
  input.bulk-checkbox:hover:not(:checked),
  .bulk-checkbox:hover:not(:checked),
  .task-columns .bulk-checkbox:hover:not(:checked),
  .task-row .bulk-checkbox:hover:not(:checked),
  .task-row .bulk-checkbox:not(:checked):hover:not(:checked) {
    border-color: var(--accent-btn, #2563eb) !important;
    box-shadow: 0 0 0 2.5px var(--accent-soft) !important;
  }
  input.bulk-checkbox:checked,
  .bulk-checkbox:checked,
  .task-columns .bulk-checkbox:checked,
  .task-row .bulk-checkbox:checked,
  .task-row .bulk-checkbox:not(:checked):checked {
    background-color: var(--accent-btn, #2563eb) !important;
    border-color: var(--accent-btn, #2563eb) !important;
  }
  .bulk-action-bar .bulk-badge {
    background: var(--accent-btn, #2563eb) !important;
    box-shadow: none !important;
  }
  .task-row {
    background: var(--surface) !important;
    border-bottom: 1px solid var(--line-subtle) !important;
    padding: 10px 14px !important;
    transition: background-color 100ms var(--ease);
  }
  .task-row:hover {
    background: var(--surface-hover) !important;
  }
  .task-row.is-bulk-selected {
    background: var(--accent-soft) !important;
  }
  .task-row .task-title {
    color: var(--fg) !important;
    font-weight: 600 !important;
  }
  .task-row .task-title:hover {
    color: var(--fg) !important;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 3px;
  }
  .task-row .task-sub {
    display: flex !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 0 !important;
    margin-top: 3px !important;
    min-width: 0;
    overflow: hidden;
  }
  .task-row .task-sub .task-meta-seg {
    display: inline-flex !important;
    align-items: center !important;
    gap: 3px !important;
    background: transparent !important;
    border: 0 !important;
    border-radius: 0 !important;
    padding: 0 !important;
    box-shadow: none !important;
    font-size: 11.5px !important;
    font-weight: 400 !important;
    line-height: 1.35 !important;
    color: var(--muted) !important;
    white-space: nowrap;
    flex-shrink: 0;
  }
  .task-row .task-sub .task-meta-seg .icon,
  .task-row .task-sub .task-meta-seg svg {
    width: 12px !important;
    height: 12px !important;
    color: currentColor !important;
    flex-shrink: 0;
  }
  .task-row .task-sub .task-meta-seg + .task-meta-seg::before {
    content: "·";
    margin: 0 5px;
    color: var(--muted-light);
    font-weight: 400;
    text-decoration: none !important;
    display: inline-block;
  }
  .task-row .task-sub .task-wbs-pill.task-meta-seg {
    display: block !important;
    flex: 0 1 auto !important;
    min-width: 48px;
    max-width: 114px;
    font-weight: 600 !important;
    color: var(--fg-subtle) !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .task-row .task-sub .task-meta-seg:is(a, button),
  .task-row .task-sub .task-link-badge.task-meta-seg,
  .task-row .task-sub .btn-table-certificate.task-meta-seg {
    display: inline-flex !important;
    align-items: center !important;
    min-height: 24px !important;
    color: var(--fg-subtle) !important;
    font-weight: 500 !important;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
    text-underline-offset: 2px;
    cursor: pointer;
  }
  .task-row .task-sub .task-meta-seg:is(a, button):hover,
  .task-row .task-sub .task-link-badge.task-meta-seg:hover,
  .task-row .task-sub .btn-table-certificate.task-meta-seg:hover {
    color: var(--fg) !important;
    text-decoration-color: var(--fg);
  }
  .task-row .task-sub .task-output.task-meta-seg {
    display: block !important;
    flex: 0 1 auto !important;
    min-width: 48px !important;
    max-width: none !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
    color: var(--muted) !important;
  }
  .task-row .task-sub .task-meta-action {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    height: 24px !important;
    min-height: 24px !important;
    padding: 0 7px !important;
    margin-left: 8px !important;
    border-radius: 5px !important;
    font-size: 11.5px !important;
    font-weight: 600 !important;
    white-space: nowrap;
    flex-shrink: 0;
    box-shadow: none !important;
  }
  .task-row .task-sub .task-meta-action.btn-table-submit {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--border-control) !important;
    color: var(--fg-subtle) !important;
  }
  .task-row .task-sub .task-meta-action.btn-table-submit:hover {
    background: var(--surface-active) !important;
    color: var(--fg) !important;
  }
  .task-row .task-sub .task-meta-action.btn-table-review {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning) !important;
  }
  .task-row .task-date {
    color: var(--fg) !important;
  }
  .task-row .task-date small {
    color: var(--muted) !important;
  }
  .task-row .task-date.late {
    color: var(--fg) !important;
  }
  .task-row .task-date.late .icon,
  .task-row .task-date.late svg {
    color: var(--muted) !important;
  }
  .task-row .task-date.late small {
    color: var(--danger) !important;
    font-weight: 600 !important;
  }
  .task-row .task-row-actions {
    opacity: 1 !important;
    gap: 3px !important;
  }
  .task-row .task-row-actions .btn-row-open {
    opacity: 0.72 !important;
  }
  .task-row .task-row-actions .btn-row-action,
  .task-row .task-row-actions .btn-row-open {
    width: 26px !important;
    height: 26px !important;
    min-width: 26px !important;
    min-height: 26px !important;
    border-radius: 6px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--muted) !important;
  }
  .task-row .task-row-actions .btn-row-action:hover, .task-row .task-row-actions .btn-row-action:focus-visible,
  .task-row .task-row-actions .btn-row-open:hover,
  .task-row .task-row-actions .btn-row-open:focus-visible {
    opacity: 1 !important;
    background: var(--surface-active) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg) !important;
  }
}
@media screen and (hover: hover) {
  .task-row:not(:hover):not(:focus-within):not(.is-bulk-selected) .task-row-actions .btn-row-action:not(.btn-row-open) {
    opacity: 0 !important;
    pointer-events: none;
  }
}
@media screen {
  .task-row:is(:hover, :focus-within, .is-bulk-selected) .task-row-actions .btn-row-open {
    opacity: 1 !important;
  }
}
@media screen and (min-width: 1120px) and (max-width: 1360px) {
  .task-columns,
  .task-row {
    grid-template-columns: minmax(0, 1fr) 136px 116px 124px 48px 84px !important;
    gap: 10px !important;
  }
}
@media screen and (max-width: 1360px) {
  .board {
    padding: 10px !important;
    gap: 8px !important;
  }
}
@media screen {
  .board .board-column {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
  }
}
@media screen and (max-width: 1360px) {
  .board .board-column {
    padding: 8px !important;
  }
}
@media screen {
  .board .task-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-left: 1px solid var(--line) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-xs) !important;
    transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
  }
  .board .task-card.tone-late {
    border-left: 1px solid var(--line) !important;
  }
  .board .task-card.tone-late .task-date.late {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg) !important;
  }
  .board .task-card.tone-late .task-date.late .icon,
  .board .task-card.tone-late .task-date.late svg {
    color: var(--muted) !important;
  }
  .board .task-card.tone-late .task-date.late small {
    color: var(--danger) !important;
    font-weight: 600 !important;
  }
}
@media screen and (max-width: 1360px) {
  .board .task-card {
    padding: 10px !important;
  }
}
@media screen {
  .board .task-card:hover {
    border-color: var(--line-strong) !important;
    box-shadow: var(--shadow-card-hover) !important;
  }
  .board .task-card:hover .card-eyebrow-right .btn-card-reminder {
    opacity: 1;
  }
  .board .task-card .task-title {
    color: var(--fg) !important;
  }
  .board .task-card .task-title:hover {
    color: var(--fg) !important;
    text-decoration: underline;
    text-decoration-color: var(--line-strong);
  }
  .board .task-card .card-eyebrow-row {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
  }
  .board .task-card .card-eyebrow-left {
    min-width: 0;
    flex: 1 1 auto;
    overflow: hidden;
  }
  .board .task-card .card-wbs-tag {
    display: inline-block !important;
    vertical-align: middle;
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
    max-width: 130px !important;
    overflow: hidden !important;
    text-overflow: ellipsis !important;
    white-space: nowrap !important;
  }
  .board .task-card .card-reference {
    color: var(--muted) !important;
    background: transparent !important;
  }
  .board .task-card .card-eyebrow-right {
    display: inline-flex !important;
    align-items: center !important;
    gap: 4px !important;
    flex-shrink: 0;
  }
  .board .task-card .card-eyebrow-right .btn-card-reminder {
    width: 24px !important;
    height: 24px !important;
    min-width: 24px !important;
    min-height: 24px !important;
    padding: 0 !important;
    border-radius: 5px !important;
    background: transparent !important;
    border: 1px solid transparent !important;
    color: var(--muted) !important;
    opacity: 0.72;
  }
  .board .task-card .card-eyebrow-right .btn-card-reminder span {
    display: none !important;
  }
  .board .task-card .card-eyebrow-right .btn-card-reminder:hover, .board .task-card .card-eyebrow-right .btn-card-reminder:focus-visible {
    opacity: 1;
    background: var(--surface-active) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg) !important;
  }
  .board .task-card .task-card-link,
  .board .task-card .card-subtasks .subtask-header span {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .board .task-card .task-card-link .icon,
  .board .task-card .task-card-link svg,
  .board .task-card .card-subtasks .subtask-header span .icon,
  .board .task-card .card-subtasks .subtask-header span svg {
    color: var(--fg-subtle) !important;
  }
  .board .task-card .card-footer {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 6px !important;
    flex-wrap: nowrap !important;
  }
  .board .task-card .card-footer .task-person {
    flex: 1 1 auto !important;
    min-width: 0 !important;
  }
  .board .task-card .card-footer .task-person span:last-child {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
    color: var(--fg-subtle) !important;
  }
  .board .task-card .card-footer .card-footer-actions {
    flex-shrink: 0;
  }
  .board .task-card .btn-table-submit {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--fg) !important;
    padding: 2px 8px !important;
  }
  .board .task-card .btn-table-review {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning) !important;
    padding: 2px 8px !important;
  }
  .board .task-card .btn-table-certificate {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg) !important;
    padding: 2px 8px !important;
  }
}
@media screen {
  .wbs-hero-grid {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .wbs-hero-grid .wbs-hero-card {
    background: transparent !important;
    border-right-color: var(--line) !important;
  }
  .wbs-hero-grid .wbs-hero-card .wbs-hero-icon {
    background: var(--bg-subtle) !important;
    color: var(--fg-subtle) !important;
    border: 1px solid var(--line) !important;
  }
  .wbs-platform-block,
  .wbs-platform-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .wbs-platform-block .wbs-platform-header,
  .wbs-platform-card .wbs-platform-header {
    background: transparent !important;
  }
  .wbs-platform-block .wbs-platform-header .wbs-platform-title,
  .wbs-platform-block .wbs-platform-header .wbs-platform-title-area:hover .wbs-platform-title,
  .wbs-platform-card .wbs-platform-header .wbs-platform-title,
  .wbs-platform-card .wbs-platform-header .wbs-platform-title-area:hover .wbs-platform-title {
    color: var(--fg) !important;
  }
  .wbs-platform-block .wbs-platform-mark,
  .wbs-platform-block .wbs-platform-mark[class*=tone-],
  .wbs-platform-card .wbs-platform-mark,
  .wbs-platform-card .wbs-platform-mark[class*=tone-] {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
    box-shadow: none !important;
  }
  .wbs-platform-block .wbs-platform-subtags .wbs-chip-stages,
  .wbs-platform-block .wbs-platform-subtags .wbs-chip-details,
  .wbs-platform-block .wbs-platform-subtags .wbs-chip-live,
  .wbs-platform-card .wbs-platform-subtags .wbs-chip-stages,
  .wbs-platform-card .wbs-platform-subtags .wbs-chip-details,
  .wbs-platform-card .wbs-platform-subtags .wbs-chip-live {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
    box-shadow: none !important;
  }
  .wbs-platform-block .wbs-platform-subtags .wbs-chip-live.has-tasks,
  .wbs-platform-card .wbs-platform-subtags .wbs-chip-live.has-tasks {
    color: var(--fg-subtle) !important;
  }
  .wbs-platform-block .wbs-platform-subtags .wbs-chip-live.has-tasks .icon,
  .wbs-platform-block .wbs-platform-subtags .wbs-chip-live.has-tasks svg,
  .wbs-platform-card .wbs-platform-subtags .wbs-chip-live.has-tasks .icon,
  .wbs-platform-card .wbs-platform-subtags .wbs-chip-live.has-tasks svg {
    color: var(--fg-subtle) !important;
  }
  .wbs-platform-block .wbs-row-num,
  .wbs-platform-block .wbs-stage-num,
  .wbs-platform-block .wbs-stage-count-badge,
  .wbs-platform-card .wbs-row-num,
  .wbs-platform-card .wbs-stage-num,
  .wbs-platform-card .wbs-stage-count-badge {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .wbs-platform-block .wbs-matrix-chip,
  .wbs-platform-block .wbs-step-chip,
  .wbs-platform-block .wbs-step-pill,
  .wbs-platform-card .wbs-matrix-chip,
  .wbs-platform-card .wbs-step-chip,
  .wbs-platform-card .wbs-step-pill {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .wbs-platform-block .wbs-matrix-chip:hover,
  .wbs-platform-block .wbs-step-chip:hover,
  .wbs-platform-block .wbs-step-pill:hover,
  .wbs-platform-card .wbs-matrix-chip:hover,
  .wbs-platform-card .wbs-step-chip:hover,
  .wbs-platform-card .wbs-step-pill:hover {
    background: var(--surface-hover) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg) !important;
  }
  .wbs-platform-block .wbs-matrix-chip::before,
  .wbs-platform-block .wbs-matrix-chip .wbs-chip-dot,
  .wbs-platform-block .wbs-matrix-chip .step-dot,
  .wbs-platform-block .wbs-step-chip::before,
  .wbs-platform-block .wbs-step-chip .wbs-chip-dot,
  .wbs-platform-block .wbs-step-chip .step-dot,
  .wbs-platform-block .wbs-step-pill::before,
  .wbs-platform-block .wbs-step-pill .wbs-chip-dot,
  .wbs-platform-block .wbs-step-pill .step-dot,
  .wbs-platform-card .wbs-matrix-chip::before,
  .wbs-platform-card .wbs-matrix-chip .wbs-chip-dot,
  .wbs-platform-card .wbs-matrix-chip .step-dot,
  .wbs-platform-card .wbs-step-chip::before,
  .wbs-platform-card .wbs-step-chip .wbs-chip-dot,
  .wbs-platform-card .wbs-step-chip .step-dot,
  .wbs-platform-card .wbs-step-pill::before,
  .wbs-platform-card .wbs-step-pill .wbs-chip-dot,
  .wbs-platform-card .wbs-step-pill .step-dot {
    background: var(--muted-light) !important;
    color: var(--muted-light) !important;
  }
}
@media screen {
  .team-summary-bar {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .team-summary-bar .summary-icon,
  .team-summary-bar .summary-metric .metric-icon,
  .team-summary-bar .team-stat-card .stat-icon-box {
    background: var(--bg-subtle) !important;
    color: var(--fg-subtle) !important;
    border: 1px solid var(--line) !important;
  }
}
@media screen and (min-width: 1100px) {
  .team-directory-toolbar {
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 8px !important;
  }
  .team-directory-toolbar .team-role-tabs {
    flex-wrap: nowrap !important;
    flex-shrink: 0;
  }
  .team-directory-toolbar .team-role-tabs .team-tab {
    padding: 4px 8px !important;
    white-space: nowrap;
  }
  .team-directory-toolbar .team-toolbar-actions {
    flex-wrap: nowrap !important;
    flex: 1 1 auto;
    justify-content: flex-end;
    min-width: 0;
    gap: 8px !important;
  }
  .team-directory-toolbar .team-search-box {
    flex: 0 1 200px !important;
    width: 200px !important;
    min-width: 140px !important;
  }
  .team-directory-toolbar .team-view-toggle .view-toggle-btn,
  .team-directory-toolbar #btn-quick-add-account {
    white-space: nowrap;
    flex-shrink: 0;
  }
}
@media screen {
  .employee-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 10px !important;
    box-shadow: var(--shadow-xs) !important;
    transition: border-color 120ms var(--ease), box-shadow 120ms var(--ease);
  }
  .employee-card:hover {
    border-color: var(--line-strong) !important;
    box-shadow: var(--shadow-card-hover) !important;
  }
  .employee-card .employee-status-dot {
    border-color: var(--surface) !important;
  }
  .employee-card .employee-role-badge {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .employee-card .employee-card-account-strip,
  .employee-card .employee-workload-box,
  .employee-card .workload-empty {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
  }
  .employee-card .account-handle,
  .employee-card .employee-acc-pill,
  .employee-card .acc-uname,
  .employee-card .employee-account-tag {
    color: var(--fg-subtle) !important;
    background: transparent !important;
    border: 0 !important;
  }
  .employee-card .employee-acc-status.is-active {
    color: var(--muted) !important;
  }
  .employee-card .workload-rate-badge,
  .employee-card .workload-kpi-badge {
    background: var(--surface) !important;
    color: var(--fg) !important;
    border: 1px solid var(--line) !important;
  }
  .employee-card .workload-status-chip.is-late {
    background: var(--danger-bg) !important;
    border: 1px solid var(--danger-border) !important;
    color: var(--danger) !important;
  }
  .employee-card .workload-status-chip.is-done {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success) !important;
  }
  .employee-card .workload-status-chip.is-progress {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
}
@media screen and (min-width: 1024px) {
  .criteria-hero-grid {
    grid-template-columns: minmax(0, 1.15fr) minmax(0, 0.78fr) minmax(0, 1.17fr) !important;
    gap: 12px !important;
  }
}
@media screen {
  .criteria-hero-card {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .criteria-hero-card .hero-formula-box {
    padding: 8px 10px !important;
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg) !important;
  }
  .criteria-hero-card .hero-formula-box code {
    font-size: 12px !important;
    letter-spacing: -0.01em;
    white-space: nowrap !important;
    color: var(--fg) !important;
  }
  .criteria-hero-card .hero-pill {
    display: flex !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px !important;
    padding: 5px 9px !important;
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg) !important;
  }
  .criteria-hero-card .hero-pill > strong {
    min-width: 0;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
    color: var(--fg) !important;
    font-weight: 500 !important;
  }
  .criteria-hero-card .hero-pill > span {
    flex-shrink: 0;
    white-space: nowrap;
    font-variant-numeric: tabular-nums;
    font-weight: 700 !important;
    color: var(--fg) !important;
  }
  .criteria-hero-card .hero-pill.pill-emerald > span, .criteria-hero-card .hero-pill.pill-emerald > span strong, .criteria-hero-card .hero-pill.pill-early > span, .criteria-hero-card .hero-pill.pill-exc > span {
    color: var(--success) !important;
  }
  .criteria-hero-card .hero-pill.pill-indigo > span, .criteria-hero-card .hero-pill.pill-indigo > span strong, .criteria-hero-card .hero-pill.pill-ontime > span, .criteria-hero-card .hero-pill.pill-good > span {
    color: var(--accent) !important;
  }
  .criteria-hero-card .hero-pill.pill-amber > span, .criteria-hero-card .hero-pill.pill-amber > span strong, .criteria-hero-card .hero-pill.pill-late > span, .criteria-hero-card .hero-pill.pill-fair > span {
    color: var(--warning) !important;
  }
  .criteria-hero-card .hero-pill.pill-rose > span, .criteria-hero-card .hero-pill.pill-rose > span strong, .criteria-hero-card .hero-pill.pill-poor > span {
    color: var(--danger) !important;
  }
  .criteria-item {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    border-radius: 8px !important;
  }
  .criteria-item .criteria-item-summary:hover {
    background: var(--surface-hover) !important;
  }
  .criteria-item .group-number,
  .criteria-item .criteria-pill,
  .criteria-item .criteria-pill.pill-weight {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .criteria-item .criteria-pill.pill-weight {
    color: var(--fg) !important;
    font-weight: 600 !important;
  }
}
@media screen {
  .evaluation-card-sheet {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-sm) !important;
  }
  .evaluation-card-sheet .eval-dept-badge,
  .evaluation-card-sheet .eval-group-tag,
  .evaluation-card-sheet .eval-hero-header .eval-hero-brand .brand-badge {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .evaluation-card-sheet .eval-source-strip .icon {
    color: var(--muted) !important;
  }
  .evaluation-card-sheet .eval-grade-badge.grade-a3,
  .evaluation-card-sheet .eval-grade-badge.grade-a3 .grade-letter {
    color: var(--fg) !important;
  }
  .evaluation-card-sheet .grade-chip.grade-a3 {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--fg) !important;
  }
  .eval-chart-card {
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
    background: var(--thead-bg, #f8fafc) !important;
    border: 1px solid var(--line) !important;
  }
  .eval-chart-card #eval-radar-slot,
  .eval-chart-card #eval-grade-chart-slot {
    flex: 1 1 auto;
    display: flex;
    flex-direction: column;
    justify-content: flex-start !important;
  }
  .eval-chart-card .chart-radar-box {
    flex: 1 1 auto;
    width: 100%;
    align-items: center !important;
  }
}
@media screen and (min-width: 1081px) {
  .eval-chart-card .chart-radar-box {
    grid-template-columns: 200px minmax(0, 1fr) !important;
    gap: 14px !important;
  }
}
@media screen {
  .eval-chart-card .radar-bar-track {
    background: var(--line) !important;
  }
  .eval-chart-card .radar-bar-track .is-ldp {
    background: var(--accent-btn, #2563eb) !important;
  }
  .eval-chart-card .radar-bar-track .is-ldb {
    background: var(--success) !important;
  }
}
@media screen {
  dialog[open] {
    box-shadow: var(--shadow-modal) !important;
  }
  dialog::backdrop,
  .command-palette-dialog::backdrop {
    background: rgba(9, 9, 11, 0.36) !important;
  }
  :root[data-theme=dark] dialog::backdrop,
  :root[data-theme=dark] .command-palette-dialog::backdrop {
    background: rgba(0, 0, 0, 0.62) !important;
  }
  #editor {
    background: var(--surface) !important;
    border-left: 1px solid var(--line) !important;
  }
  #editor .dialog-heading,
  #editor .dialog-actions {
    background: var(--glass-surface-elevated) !important;
    backdrop-filter: blur(16px) saturate(140%);
    -webkit-backdrop-filter: blur(16px) saturate(140%);
    border-color: var(--line) !important;
  }
  #editor .task-overview-breadcrumbs .bc-item,
  #editor .task-overview-breadcrumbs .bc-prog,
  #editor .task-overview-breadcrumbs .bc-stage,
  #editor .task-overview-breadcrumbs .bc-step,
  #editor .task-overview-breadcrumbs .bc-group,
  #editor .task-overview-breadcrumbs .wbs-crumb,
  #editor .task-overview-breadcrumbs .wbs-crumb-group,
  #editor .task-wbs-breadcrumbs .bc-item,
  #editor .task-wbs-breadcrumbs .bc-prog,
  #editor .task-wbs-breadcrumbs .bc-stage,
  #editor .task-wbs-breadcrumbs .bc-step,
  #editor .task-wbs-breadcrumbs .bc-group,
  #editor .task-wbs-breadcrumbs .wbs-crumb,
  #editor .task-wbs-breadcrumbs .wbs-crumb-group {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
    box-shadow: none !important;
  }
  #editor .task-overview-breadcrumbs .bc-prog,
  #editor .task-overview-breadcrumbs .wbs-crumb:first-child,
  #editor .task-wbs-breadcrumbs .bc-prog,
  #editor .task-wbs-breadcrumbs .wbs-crumb:first-child {
    color: var(--fg) !important;
    font-weight: 600 !important;
  }
  #editor .task-overview-breadcrumbs .bc-sep,
  #editor .task-wbs-breadcrumbs .bc-sep {
    color: var(--muted-light) !important;
  }
  #editor .task-partner-chip,
  #editor .task-assignee-chip-v2 {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
    box-shadow: none !important;
  }
  #editor .task-partner-chip .assignee-name,
  #editor .task-assignee-chip-v2 .assignee-name {
    color: var(--fg) !important;
  }
  #editor .task-partner-chip .assignee-role,
  #editor .task-assignee-chip-v2 .assignee-role {
    color: var(--muted) !important;
  }
  #editor .task-status-badge-v2.status-done, #editor .task-status-badge-v2.is-done {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success) !important;
  }
  #editor .task-status-badge-v2.status-late, #editor .task-status-badge-v2.is-late {
    background: var(--danger-bg) !important;
    border: 1px solid var(--danger-border) !important;
    color: var(--danger) !important;
  }
  #editor .task-status-badge-v2.status-awaiting, #editor .task-status-badge-v2.is-review {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning) !important;
  }
  #editor .task-status-badge-v2.status-progress, #editor .task-status-badge-v2.is-progress {
    background: var(--info-bg) !important;
    border: 1px solid var(--info-border) !important;
    color: var(--info) !important;
  }
  #editor .task-lifecycle-stepper {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
  }
  #editor .task-lifecycle-stepper .lifecycle-step {
    color: var(--muted) !important;
  }
  #editor .task-lifecycle-stepper .lifecycle-step .step-dot {
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--muted) !important;
  }
  #editor .task-lifecycle-stepper .lifecycle-step.is-current {
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--fg) !important;
  }
  #editor .task-lifecycle-stepper .lifecycle-step.is-current .step-dot {
    background: var(--accent-btn, #2563eb) !important;
    border-color: var(--accent-btn, #2563eb) !important;
    color: #ffffff !important;
  }
  #editor .task-lifecycle-stepper .lifecycle-step.is-done {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  #editor .task-lifecycle-stepper .lifecycle-step.is-done .step-dot {
    background: var(--success-bg) !important;
    border-color: var(--success-border) !important;
    color: var(--success) !important;
  }
  #editor .timeliness-live-pill {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  #editor .timeliness-live-pill .pts-tag {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg) !important;
  }
  #editor .task-subtasks-section .subtasks-header h3 .icon,
  #editor .task-subtasks-section .subtasks-header .icon {
    color: var(--muted) !important;
  }
  #editor .task-subtasks-section .subtask-count-badge,
  #editor .task-subtasks-section .subtask-pct {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  #editor .task-timeline-inspector,
  #editor .task-overview-action-bar,
  #editor .task-output-card,
  #editor .task-attachment-card-v2 {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    box-shadow: none !important;
  }
  #editor .task-attachment-card-v2 .attachment-icon-wrap {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  #editor .task-attachment-card-v2 .btn-attachment-open {
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--fg) !important;
  }
  #editor .btn-action-primary,
  #editor .btn-hero-action.primary {
    background: var(--accent-btn, #2563eb) !important;
    border: 1px solid var(--accent-btn, #2563eb) !important;
    color: #ffffff !important;
    box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.18), 0 1px 2px rgba(9, 9, 11, 0.14) !important;
  }
  #editor .btn-action-primary:hover:not(:disabled),
  #editor .btn-hero-action.primary:hover:not(:disabled) {
    background: var(--accent-btn-hover, #1d4ed8) !important;
    border-color: var(--accent-btn-hover, #1d4ed8) !important;
  }
  #editor .btn-action-secondary,
  #editor .btn-hero-action.secondary {
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important;
    color: var(--fg) !important;
    box-shadow: none !important;
  }
  #editor .btn-action-secondary:hover:not(:disabled),
  #editor .btn-hero-action.secondary:hover:not(:disabled) {
    background: var(--surface-hover) !important;
  }
}
@media screen {
  .pbi-kpi-card,
  section.manager-pulse.pbi-kpi-strip > .pbi-kpi-card,
  .pbi-tile,
  #approval-queue.pbi-tile,
  .approval-queue.pbi-tile,
  .report-sheet {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .report-sheet .report-brand {
    color: var(--muted) !important;
  }
  .report-sheet .report-emp-name {
    color: var(--fg) !important;
  }
  .pbi-kpi-card,
  section.manager-pulse.pbi-kpi-strip > .pbi-kpi-card {
    border-top: 1px solid var(--line) !important;
  }
  .pbi-kpi-actions.is-split-callout button,
  .pbi-kpi-actions.is-split-callout a,
  .pbi-kpi-actions.is-split-callout .pbi-kpi-action {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .pbi-kpi-actions.is-split-callout button strong,
  .pbi-kpi-actions.is-split-callout a strong,
  .pbi-kpi-actions.is-split-callout .pbi-kpi-action strong {
    color: var(--fg) !important;
  }
  .pbi-kpi-actions.is-split-callout button:hover,
  .pbi-kpi-actions.is-split-callout a:hover,
  .pbi-kpi-actions.is-split-callout .pbi-kpi-action:hover {
    background: var(--surface-hover) !important;
    border-color: var(--line-strong) !important;
  }
  .pbi-kpi-actions.is-split-callout button.is-late strong, .pbi-kpi-actions.is-split-callout button[data-pulse-due=late] strong,
  .pbi-kpi-actions.is-split-callout a.is-late strong,
  .pbi-kpi-actions.is-split-callout a[data-pulse-due=late] strong,
  .pbi-kpi-actions.is-split-callout .pbi-kpi-action.is-late strong,
  .pbi-kpi-actions.is-split-callout .pbi-kpi-action[data-pulse-due=late] strong {
    color: var(--danger) !important;
  }
  .pbi-kpi-actions.is-split-callout button#jump-approvals strong, .pbi-kpi-actions.is-split-callout button.is-warning strong,
  .pbi-kpi-actions.is-split-callout a#jump-approvals strong,
  .pbi-kpi-actions.is-split-callout a.is-warning strong,
  .pbi-kpi-actions.is-split-callout .pbi-kpi-action#jump-approvals strong,
  .pbi-kpi-actions.is-split-callout .pbi-kpi-action.is-warning strong {
    color: var(--warning) !important;
  }
  .pbi-slicer-bar {
    background: var(--surface) !important;
    border: 1px solid var(--accent-border) !important;
    border-left: 3px solid var(--accent) !important;
    box-shadow: var(--shadow-xs) !important;
  }
  .pbi-slicer-bar .pbi-slicer-chip {
    background: var(--accent-soft) !important;
    border-color: var(--accent-border) !important;
    color: var(--accent) !important;
  }
  .pbi-slicer-bar .pbi-slicer-clear {
    background: var(--bg-subtle) !important;
    border-color: var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .pbi-slicer-bar .pbi-slicer-drill {
    color: var(--accent) !important;
  }
  .pbi-q-cell {
    background: var(--thead-bg, #f8fafc) !important;
    border-color: var(--line) !important;
  }
  .pbi-kpi-track,
  .pbi-hbar-track,
  .pbi-status-mini-bar {
    background: var(--bg-subtle) !important;
    border: 0 !important;
    border-radius: 4px !important;
  }
  .pbi-kpi-track > span,
  .pbi-hbar-fill {
    background: var(--pbi-bar, #2563eb) !important;
  }
  .pbi-databar {
    background: #f1f5f9 !important;
    border: 0 !important;
    box-shadow: none !important;
    border-radius: 4px !important;
    height: 19px !important;
  }
  :root[data-theme=dark] .pbi-databar {
    background: rgba(255, 255, 255, 0.06) !important;
  }
  .pbi-databar-fill {
    background: linear-gradient(90deg, rgba(59, 130, 246, 0.1) 0%, rgba(37, 99, 235, 0.22) 100%) !important;
    border-right: 2px solid #3b82f6 !important;
    border-radius: 4px 0 0 4px !important;
  }
  .pbi-databar-fill[style*="width:0%"], .pbi-databar-fill[style*="width: 0%"] {
    opacity: 0 !important;
    border-right: 0 !important;
  }
  :root[data-theme=dark] .pbi-databar-fill {
    background: linear-gradient(90deg, rgba(96, 165, 250, 0.14) 0%, rgba(96, 165, 250, 0.26) 100%) !important;
    border-right-color: #60a5fa !important;
  }
  .pbi-matrix-scroll,
  #approval-queue.pbi-tile .approval-table-wrap {
    border-color: var(--line) !important;
  }
  .pbi-matrix-table thead th,
  .pbi-matrix-table tfoot td,
  .pbi-matrix-table tfoot th {
    background: var(--thead-bg, #f8fafc) !important;
    border-color: var(--line) !important;
    color: var(--muted) !important;
  }
  .pbi-matrix-table tfoot td,
  .pbi-matrix-table tfoot th {
    color: var(--fg) !important;
  }
  .pbi-matrix-table tbody tr.pbi-matrix-row:hover td {
    background: var(--surface-hover) !important;
  }
  .pbi-matrix-table tbody tr.pbi-matrix-row.is-active td {
    background: var(--accent-soft) !important;
  }
  .pbi-matrix-table tbody tr.pbi-matrix-row.is-active td:first-child {
    box-shadow: inset 3px 0 0 var(--accent) !important;
  }
  .pbi-matrix-table tbody tr.pbi-matrix-row.is-active .pbi-databar-fill {
    background: var(--accent-soft-hover) !important;
    border-right-color: var(--accent) !important;
  }
  #approval-queue.pbi-tile .approval-table thead tr th {
    background: var(--thead-bg, #f8fafc) !important;
    color: var(--muted) !important;
  }
}
@media screen {
  body.is-loading {
    cursor: progress;
  }
  .network-error-banner {
    background: var(--surface);
    border: 1px solid var(--line);
    border-radius: 12px;
    color: var(--fg);
    box-shadow: var(--shadow-sm);
  }
  .donut-seg,
  .qt-seg,
  .vcol-seg {
    transition: opacity 150ms var(--ease);
  }
  .radar-svg {
    display: block;
    max-width: 210px !important;
    width: 100%;
    height: auto;
    margin: 0 auto;
  }
  .eval-draft-notice {
    border: 1px solid var(--accent-border);
    background: var(--accent-soft) !important;
    color: var(--fg) !important;
  }
  .eval-grade-exec-box {
    display: flex;
    flex-direction: column;
    gap: 12px;
  }
  .eval-grade-donut-row {
    display: flex;
    align-items: center;
    gap: 14px;
    padding-bottom: 10px;
    border-bottom: 1px dashed var(--line);
  }
  .eval-grade-legend {
    margin-top: 0;
    justify-content: flex-start;
  }
  .eval-top-contributors {
    display: flex;
    flex-direction: column;
    gap: 6px;
  }
  .eval-subhead {
    font-size: 11.5px;
    font-weight: 600;
    color: var(--muted);
  }
  .eval-contrib-row {
    align-items: center;
  }
  .eval-personal-placeholder,
  .proposal-reason-readonly {
    color: var(--fg-subtle);
    font-size: 12.5px;
  }
  .quality-card-main {
    display: flex;
    flex-direction: column;
    gap: 4px;
    min-width: 0;
  }
  .wbs-tree-unassigned {
    opacity: 0.92;
  }
}
@media screen {
  .subtask-add-btn,
  .mobile-fab-create:not([hidden]),
  .filter-toggle-count,
  .dr-day.is-start,
  .dr-day.is-end,
  .stepper-step.active .stepper-dot,
  .btn-stage-add:hover {
    background: var(--accent-btn, #2563eb) !important;
    border-color: var(--accent-btn, #2563eb) !important;
    color: #ffffff !important;
  }
  .subtask-add-btn:hover:not(:disabled),
  .mobile-fab-create:not([hidden]):hover:not(:disabled) {
    background: var(--accent-btn-hover, #1d4ed8) !important;
    border-color: var(--accent-btn-hover, #1d4ed8) !important;
    color: #ffffff !important;
  }
  .wbs-creation-flow .wbs-input-group .title-preset-toggle,
  .title-preset-toggle {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .wbs-creation-flow .wbs-input-group .title-preset-toggle:hover, .wbs-creation-flow .wbs-input-group .title-preset-toggle[aria-expanded=true],
  .title-preset-toggle:hover,
  .title-preset-toggle[aria-expanded=true] {
    background: var(--surface-active) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg) !important;
  }
  #command-palette-dialog,
  .command-palette-dialog {
    background: var(--surface) !important;
    border: 1px solid var(--line-strong) !important;
  }
  #command-palette-dialog .palette-input-row,
  .command-palette-dialog .palette-input-row {
    border-bottom: 1px solid var(--line) !important;
  }
  .palette-item:hover,
  .palette-item.is-active {
    background: var(--surface-hover) !important;
  }
  .palette-item:hover .palette-item-icon,
  .palette-item.is-active .palette-item-icon {
    background: var(--surface) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg) !important;
  }
  .palette-item:hover .palette-item-subtitle,
  .palette-item.is-active .palette-item-subtitle {
    color: var(--muted) !important;
  }
  .palette-item .palette-item-badge.badge-done {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success) !important;
  }
  .palette-item .palette-item-badge.badge-progress {
    background: var(--info-bg) !important;
    border: 1px solid var(--info-border) !important;
    color: var(--info) !important;
  }
  .palette-item .palette-item-badge.badge-late {
    background: var(--danger-bg) !important;
    border: 1px solid var(--danger-border) !important;
    color: var(--danger) !important;
  }
  .palette-item .palette-item-badge.badge-open {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .report-table .week-summary-row {
    background: var(--bg-subtle) !important;
  }
  .report-table .week-summary-row .stat-chip {
    background: var(--surface) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .report-table .week-summary-row .stat-chip.done {
    background: var(--success-bg) !important;
    border-color: var(--success-border) !important;
    color: var(--success) !important;
  }
  .report-table .week-summary-row .stat-chip.points {
    background: var(--surface) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg-subtle) !important;
  }
  .report-table .week-summary-row .stat-chip.points strong {
    color: var(--fg) !important;
  }
  .report-table .report-status-cell .status-badge.badge-done {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success) !important;
  }
  .report-table .report-status-cell .status-badge.badge-late {
    background: var(--danger-bg) !important;
    border: 1px solid var(--danger-border) !important;
    color: var(--danger) !important;
  }
  .report-table .report-status-cell .status-badge.badge-progress {
    background: var(--info-bg) !important;
    border: 1px solid var(--info-border) !important;
    color: var(--info) !important;
  }
  .report-table .report-status-cell .status-badge.badge-progress .badge-dot {
    background: var(--info) !important;
  }
  .report-table .report-status-cell .status-badge.badge-waiting {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning) !important;
  }
  .report-table .report-weight-cell .group-code-pill,
  .report-table .report-wbs-crumb,
  .report-table .report-task-cell .report-wbs-tag,
  .report-table .report-deliverable-cell .deliverable-link {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .report-table .report-weight-cell .group-code-pill .tag-prog,
  .report-table .report-weight-cell .group-code-pill .tag-sep,
  .report-table .report-weight-cell .group-code-pill .tag-stage,
  .report-table .report-wbs-crumb .tag-prog,
  .report-table .report-wbs-crumb .tag-sep,
  .report-table .report-wbs-crumb .tag-stage,
  .report-table .report-task-cell .report-wbs-tag .tag-prog,
  .report-table .report-task-cell .report-wbs-tag .tag-sep,
  .report-table .report-task-cell .report-wbs-tag .tag-stage,
  .report-table .report-deliverable-cell .deliverable-link .tag-prog,
  .report-table .report-deliverable-cell .deliverable-link .tag-sep,
  .report-table .report-deliverable-cell .deliverable-link .tag-stage {
    color: inherit !important;
  }
  .report-table .deliverable-icon {
    color: var(--muted) !important;
  }
  .report-table .fill-progress {
    background: var(--accent-btn, #2563eb) !important;
  }
  .report-table .report-deliverable-box {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
  }
  .report-table .report-eval-cell .eval-pill.eval-excellent {
    background: var(--success-bg) !important;
    border: 1px solid var(--success-border) !important;
    color: var(--success) !important;
  }
  .report-table .report-eval-cell .eval-pill.eval-good {
    background: var(--info-bg) !important;
    border: 1px solid var(--info-border) !important;
    color: var(--info) !important;
  }
  .report-table .report-eval-cell .eval-pill.eval-fair {
    background: var(--warning-bg) !important;
    border: 1px solid var(--warning-border) !important;
    color: var(--warning) !important;
  }
  .report-table .report-eval-cell .eval-pill.eval-poor {
    background: var(--danger-bg) !important;
    border: 1px solid var(--danger-border) !important;
    color: var(--danger) !important;
  }
  .report-table .report-eval-cell .eval-pill.eval-empty {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--muted) !important;
  }
  .btn-task-journal {
    background: var(--bg-subtle) !important;
    border: 1px solid var(--line) !important;
    color: var(--fg-subtle) !important;
    box-shadow: none !important;
  }
  .btn-task-journal:hover {
    background: var(--surface-active) !important;
    border-color: var(--line-strong) !important;
    color: var(--fg) !important;
  }
  .btn-task-journal .journal-badge {
    background: var(--accent-btn, #2563eb) !important;
    color: #ffffff !important;
    border-color: var(--surface) !important;
  }
  dialog.task-journal-dialog {
    background: var(--surface) !important;
    border-color: var(--line) !important;
  }
  dialog.task-journal-dialog .eyebrow {
    color: var(--muted) !important;
  }
  dialog.task-journal-dialog .journal-meta-chip.is-late {
    background: var(--danger-bg) !important;
    border-color: var(--danger-border) !important;
    color: var(--danger) !important;
  }
  dialog.task-journal-dialog .journal-timeline::before {
    background: var(--line) !important;
  }
  dialog.task-journal-dialog .journal-entry-dot {
    background: var(--surface) !important;
    border-color: var(--accent) !important;
    box-shadow: 0 0 0 2px var(--accent-soft) !important;
  }
  dialog.task-journal-dialog .journal-entry.kind-late .journal-entry-dot,
  dialog.task-journal-dialog .journal-entry.kind-reminder .journal-entry-dot {
    border-color: var(--danger) !important;
    box-shadow: 0 0 0 2px var(--danger-bg) !important;
  }
  dialog.task-journal-dialog .journal-entry.kind-transition .journal-entry-dot {
    border-color: var(--warning) !important;
    box-shadow: 0 0 0 2px var(--warning-bg) !important;
  }
  dialog.task-journal-dialog .journal-entry.kind-approval .journal-entry-dot {
    border-color: var(--success) !important;
    box-shadow: 0 0 0 2px var(--success-bg) !important;
  }
  dialog.task-journal-dialog .journal-card-tag.tag-late {
    background: var(--danger-bg) !important;
    color: var(--danger) !important;
  }
  dialog.task-journal-dialog .journal-card-tag.tag-reminder {
    background: var(--warning-bg) !important;
    color: var(--warning) !important;
  }
  dialog.task-journal-dialog .journal-card-tag.tag-approval {
    background: var(--success-bg) !important;
    color: var(--success) !important;
  }
  .deliverable-self-eval-section {
    background: var(--surface) !important;
    border-color: var(--line) !important;
  }
  .deliverable-self-eval-section .self-eval-hero-row {
    border-bottom-color: var(--line) !important;
  }
  .deliverable-self-eval-section .eval-avatar {
    border-radius: 6px !important;
  }
  .deliverable-self-eval-section .eval-quality-badge {
    background: var(--accent-soft) !important;
    border-color: var(--accent-border) !important;
  }
  .deliverable-self-eval-section .eval-quality-badge .quality-tier-name {
    color: var(--accent) !important;
  }
  .deliverable-self-eval-section .eval-quality-badge .quality-score-pill {
    background: var(--accent-btn, #2563eb) !important;
    color: #ffffff !important;
  }
  .deliverable-self-eval-section .self-eval-criteria-peek {
    background: var(--bg-subtle) !important;
    border-color: var(--line) !important;
  }
  .deliverable-self-eval-section .self-eval-criteria-peek .criteria-tagline {
    color: var(--fg) !important;
  }
  .deliverable-self-eval-section .self-eval-note-container {
    background: var(--bg-subtle) !important;
    border-color: var(--line-strong) !important;
  }
  .deliverable-self-eval-section .self-eval-note-container .note-quote-icon {
    color: var(--muted) !important;
  }
  .card-subtasks .subtask-track,
  .task-subtasks-section .subtask-track {
    background: var(--line-strong) !important;
  }
  .card-subtasks .subtask-track .subtask-fill,
  .task-subtasks-section .subtask-track .subtask-fill {
    background: var(--accent-btn, #2563eb) !important;
  }
  .track-seg.is-review {
    background: var(--chart-warn, #d97706) !important;
  }
  .treemap-tile.is-dimmed {
    opacity: 1 !important;
  }
  .treemap-tile.is-dimmed .treemap-title,
  .treemap-tile.is-dimmed .treemap-share,
  .treemap-tile.is-dimmed .treemap-tile-meta span {
    color: var(--muted) !important;
  }
  .treemap-tile.is-dimmed .treemap-mini-bar {
    opacity: 0.32 !important;
  }
}
@media screen and (pointer: coarse) {
  .icon-button,
  #topbar-theme-toggle,
  .topbar .topbar-theme-btn,
  .picker-head-close,
  #close-palette-btn,
  #close-editor,
  .unified-modal-close,
  .task-row .task-row-actions :is(button, .btn-row-action, .btn-row-open),
  .pbi-row-btn {
    width: 44px !important;
    height: 44px !important;
    min-width: 44px !important;
    min-height: 44px !important;
  }
}
@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
    scroll-behavior: auto !important;
  }
}
