:root {
  --bg: #f4f7fb;
  --panel: #ffffff;
  --line: #d9e2ef;
  --text: #172033;
  --muted: #667085;
  --primary: #1769aa;
  --primary-dark: #0f4f84;
  --danger: #b42318;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--text);
  background: var(--bg);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 14px;
}

.hidden { display: none !important; }

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 24px;
}
.login-panel {
  width: min(420px, 100%);
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 28px;
  box-shadow: 0 18px 45px rgba(15, 79, 132, 0.12);
}
.login-panel h1 { margin: 0 0 6px; font-size: 28px; }
.login-panel p { margin: 0 0 24px; color: var(--muted); }
.login-form, .modal-form { display: grid; gap: 14px; }
label span { display: block; margin-bottom: 6px; color: var(--muted); font-size: 13px; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  background: #fff;
  color: var(--text);
}
input, select {
  height: 38px;
  padding: 0 10px;
}
textarea {
  min-height: 160px;
  padding: 10px;
  resize: vertical;
  font: inherit;
  line-height: 1.5;
}
select {
  appearance: none;
  -webkit-appearance: none;
  padding-right: 34px;
  background:
    linear-gradient(45deg, transparent 50%, #55708a 50%) right 15px center / 6px 6px no-repeat,
    linear-gradient(135deg, #55708a 50%, transparent 50%) right 10px center / 6px 6px no-repeat,
    linear-gradient(#f8fbff, #f8fbff) padding-box;
  border-color: #c7d7e6;
  color: #1b344d;
  font-weight: 600;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.9);
}
select:hover { border-color: #8cb9dc; background-color: #f5faff; }
select:focus, input:focus, textarea:focus {
  outline: none;
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.14);
}
button {
  height: 36px;
  border: 1px solid var(--primary);
  border-radius: 6px;
  padding: 0 14px;
  background: var(--primary);
  color: #fff;
  cursor: pointer;
}
button:hover { background: var(--primary-dark); }
button.secondary {
  background: #fff;
  color: var(--primary);
  border-color: var(--line);
}
button.secondary:hover { background: #eef6fd; }
.error { min-height: 20px; color: var(--danger); font-size: 13px; }

.app-shell { min-height: 100vh; display: grid; grid-template-columns: 316px minmax(0, 1fr); }
.sidebar {
  background: #0d2d49;
  color: #fff;
  padding: 18px;
  display: flex;
  flex-direction: column;
  gap: 20px;
  min-height: 100vh;
  position: sticky;
  top: 0;
}
.brand { display: flex; gap: 14px; align-items: center; min-height: 54px; position: relative; }
.brand-mark {
  width: 40px;
  height: 40px;
  display: grid;
  place-items: center;
  background: #2a84c6;
  border-radius: 8px;
  font-weight: 700;
  padding: 0;
  border: 0;
  text-align: center;
}
.brand-mark:hover { background: #3b95d8; }
.brand-copy { flex: 1; min-width: 0; }
.brand-title-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  min-width: 0;
}
.brand strong, .brand span { display: block; }
.brand strong {
  overflow: hidden;
  font-size: 18px;
  line-height: 1.3;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.brand span { margin-top: 4px; color: #b8cee0; font-size: 12px; }
.brand-title-row .brand-version {
  flex: 0 0 auto;
  margin-top: 0;
  padding: 1px 7px;
  border: 1px solid rgba(255,255,255,0.2);
  border-radius: 999px;
  color: #d9eaf7;
  background: rgba(255,255,255,0.08);
  font-size: 11px;
  line-height: 18px;
  white-space: nowrap;
}
.side-nav { display: grid; gap: 8px; }
.nav-group {
  display: grid;
  gap: 6px;
  padding-top: 8px;
  border-top: 1px solid rgba(255,255,255,0.12);
}
.nav-group-toggle {
  width: 100%;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  border-color: transparent;
  background: transparent;
  color: #cfe4f4;
  text-align: left;
}
.nav-group-toggle:hover { background: rgba(255,255,255,0.12); }
.nav-group-toggle b {
  width: 8px;
  height: 8px;
  border-right: 2px solid #8fb3d1;
  border-bottom: 2px solid #8fb3d1;
  transform: rotate(-45deg);
  transition: transform 0.18s ease;
}
.nav-group.open .nav-group-toggle b { transform: rotate(45deg); }
.nav-submenu {
  display: none;
  gap: 6px;
}
.nav-group.open .nav-submenu { display: grid; }
.nav-group-toggle span {
  font-size: 13px;
  font-weight: 700;
}
.nav-item {
  width: 100%;
  border-color: transparent;
  background: transparent;
  text-align: left;
}
.nav-item.active, .nav-item:hover { background: rgba(255,255,255,0.12); }
.nav-child {
  height: 34px;
  padding-left: 22px;
  color: #d7e7f3;
  font-size: 13px;
}
.nav-child::before {
  content: "";
  display: inline-block;
  width: 5px;
  height: 5px;
  margin-right: 8px;
  border-radius: 999px;
  background: #6f9fc3;
  vertical-align: middle;
}

.content { min-width: 0; overflow: hidden; padding: 22px; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  margin-bottom: 18px;
}
.topbar h2 { margin: 0 0 4px; font-size: 24px; }
.topbar p { margin: 0; color: var(--muted); }
.top-actions { display: flex; gap: 10px; align-items: center; }
.top-actions input { width: 240px; }
.user-menu-panel {
  position: absolute;
  top: 44px;
  left: 0;
  width: 168px;
  padding: 8px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 12px 32px rgba(16, 24, 40, 0.16);
  z-index: 20;
}
.brand-menu {
  top: 48px;
  left: 0;
}
.user-menu-name {
  padding: 8px;
  color: var(--muted);
  font-size: 13px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 8px;
}
.user-menu-panel button {
  width: 100%;
  background: #fff;
  color: var(--danger);
  border-color: transparent;
  text-align: left;
}
.user-menu-panel button:hover { background: #fff3f0; }

.toolbar { margin-bottom: 12px; display: flex; gap: 10px; }
.filter-toolbar {
  align-items: center;
  flex-wrap: wrap;
  gap: 10px;
  padding: 12px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.filter-field {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 0 10px;
  border: 1px solid #e2e8f0;
  border-radius: 8px;
  background: #fff;
  flex: 0 0 auto;
}
.filter-field span {
  color: #64748b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
  word-break: keep-all;
  min-width: max-content;
}
.filter-field input,
.filter-field select {
  height: 30px;
  border: 0;
  box-shadow: none;
  background-color: transparent;
}
.filter-field input:focus,
.filter-field select:focus {
  box-shadow: none;
}
input[data-date-picker] {
  cursor: pointer;
  padding-right: 30px;
  color: #111827;
  font-weight: 600;
  background:
    linear-gradient(45deg, transparent 50%, #94a3b8 50%) right 16px center / 6px 6px no-repeat,
    linear-gradient(135deg, #94a3b8 50%, transparent 50%) right 11px center / 6px 6px no-repeat,
    linear-gradient(#fff, #fff) padding-box;
}
.filter-field input[data-date-picker] {
  min-width: 118px;
  background:
    linear-gradient(45deg, transparent 50%, #94a3b8 50%) right 12px center / 6px 6px no-repeat,
    linear-gradient(135deg, #94a3b8 50%, transparent 50%) right 7px center / 6px 6px no-repeat;
}
.date-range-field input[data-date-picker] {
  min-width: 238px;
}
.people-report-toolbar .filter-field {
  border-color: #e2e8f0;
  background: #ffffff;
}
.people-report-toolbar .filter-field span {
  color: #64748b;
}
.people-report-toolbar .filter-field input,
.people-report-toolbar .filter-field select {
  color: #111827;
}
.filter-field:focus-within {
  border-color: #93c5fd;
  box-shadow: 0 0 0 3px rgba(147, 197, 253, 0.18);
}
.flatpickr-calendar {
  border: 1px solid #e5e7eb;
  border-radius: 8px;
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.12);
  font-family: inherit;
}
.flatpickr-calendar input,
.flatpickr-calendar select {
  width: auto;
  height: auto;
  border: 0;
  border-radius: 0;
  padding: 0;
  background: transparent;
  box-shadow: none;
  color: inherit;
}
.flatpickr-current-month .flatpickr-monthDropdown-months {
  appearance: auto;
  -webkit-appearance: auto;
  padding-right: 18px;
}
.flatpickr-calendar.arrowTop::before,
.flatpickr-calendar.arrowTop::after,
.flatpickr-calendar.arrowBottom::before,
.flatpickr-calendar.arrowBottom::after {
  display: none;
}
.flatpickr-months {
  border-bottom: 1px solid #f1f5f9;
}
.flatpickr-months .flatpickr-month,
.flatpickr-current-month .flatpickr-monthDropdown-months,
.flatpickr-current-month input.cur-year {
  color: #111827;
  font-size: 14px;
  font-weight: 700;
}
.flatpickr-current-month input.cur-year {
  border-radius: 6px;
}
.flatpickr-weekday {
  color: #64748b;
  font-size: 12px;
  font-weight: 700;
}
.flatpickr-day {
  border-radius: 6px;
  color: #111827;
}
.flatpickr-day:hover,
.flatpickr-day:focus {
  border-color: #dbeafe;
  background: #f8fafc;
}
.flatpickr-day.today {
  border-color: #93c5fd;
  color: #2563eb;
}
.flatpickr-day.selected,
.flatpickr-day.startRange,
.flatpickr-day.endRange,
.flatpickr-day.selected:hover,
.flatpickr-day.startRange:hover,
.flatpickr-day.endRange:hover {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}
.flatpickr-day.prevMonthDay,
.flatpickr-day.nextMonthDay,
.flatpickr-day.flatpickr-disabled {
  color: #cbd5e1;
}
.flatpickr-time {
  border-top-color: #f1f5f9;
}
.flatpickr-time input,
.flatpickr-time .flatpickr-am-pm {
  color: #111827;
  font-weight: 700;
}
.flatpickr-monthSelect-month {
  border-radius: 6px;
  color: #111827;
  font-weight: 600;
}
.flatpickr-monthSelect-month:hover,
.flatpickr-monthSelect-month:focus {
  background: #f8fafc;
}
.flatpickr-monthSelect-month.selected {
  border-color: #3b82f6;
  background: #3b82f6;
  color: #fff;
}
.week-nav {
  height: 38px;
  display: flex;
  align-items: center;
  gap: 10px;
}
.week-nav-actions {
  display: flex;
  align-items: center;
  gap: 6px;
}
.week-nav-actions button {
  height: 34px;
  padding: 0 12px;
}
.week-range-label {
  min-width: 186px;
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  padding: 0 12px;
  border: 1px solid #c7d7e6;
  border-radius: 8px;
  background: #f8fbff;
  color: #38536b;
  font-size: 13px;
  font-weight: 700;
  white-space: nowrap;
}
.search-field { min-width: 320px; }
.search-field input { width: 230px; }
.filter-select { min-width: 120px; }
.people-name-filter { width: 150px; }
.table-wrap {
  width: 100%;
  max-width: 100%;
  overflow: auto;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
table { width: 100%; border-collapse: collapse; min-width: 1280px; }
th, td {
  padding: 11px 12px;
  border-bottom: 1px solid var(--line);
  text-align: left;
  font-size: 13px;
  white-space: nowrap;
}
th { background: #e8f1fa; color: #1f344d; font-weight: 700; }
tbody tr:hover { background: #f8fbff; }
td.path { max-width: 360px; overflow: hidden; text-overflow: ellipsis; }
.doc-link {
  color: var(--primary);
  font-weight: 700;
  text-decoration: none;
}
.doc-link:hover { text-decoration: underline; }
.row-actions { display: flex; gap: 8px; }
.row-actions button {
  height: 30px;
  padding: 0 10px;
  background: #fff;
  color: var(--primary);
  border-color: #b9d8ee;
}
.row-actions button:hover { background: #eef7ff; }
.muted { color: var(--muted); }
.tag {
  display: inline-flex;
  align-items: center;
  min-height: 24px;
  padding: 0 8px;
  border-radius: 999px;
  background: #edf6ff;
  color: #175c96;
  border: 1px solid #c9e4fa;
  font-size: 12px;
  font-weight: 600;
}
.tag.group {
  background: #f0f7f1;
  color: #2c6f3d;
  border-color: #cce8d1;
}
.tag.status {
  background: #fff7e6;
  color: #9a5b00;
  border-color: #f3d19e;
}
.tag.parse {
  background: #eef4ff;
  color: #174ea6;
  border-color: #c7d7fe;
}
.tag.audit {
  background: #f4f3ff;
  color: #5925dc;
  border-color: #d9d6fe;
}
.tag.person {
  background: #f8fafc;
  color: #344054;
  border-color: #d0d5dd;
}
.tag.danger {
  background: #fff1f0;
  color: #b42318;
  border-color: #fecdca;
}
.tag.enabled {
  background: #ecfdf3;
  color: #027a48;
  border-color: #abefc6;
}
.tag.disabled {
  background: #f2f4f7;
  color: #667085;
  border-color: #d0d5dd;
}
.tag.not-started,
.inline-status-select.not-started {
  background: #f2f4f7;
  color: #475467;
  border-color: #cfd4dc;
}
.tag.rework,
.inline-status-select.rework {
  background: #fff3c4;
  color: #8a4b00;
  border-color: #f5c542;
}
.tag.done,
.inline-status-select.done {
  background: #dcfae6;
  color: #05603a;
  border-color: #75e0a7;
}
.tag.active,
.inline-status-select.active {
  background: #e0f2fe;
  color: #075985;
  border-color: #38bdf8;
}
.tag.paused,
.inline-status-select.paused {
  background: #f4f3ff;
  color: #5925dc;
  border-color: #bdb4fe;
}
.tag.empty {
  background: #f2f4f7;
  color: var(--muted);
  border-color: #e4e7ec;
  font-weight: 500;
}

.permission-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.permission-grid section {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
}
.permission-grid h3 { margin: 0 0 12px; }
.card-list { display: grid; gap: 10px; }
.meta-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 12px;
  background: #fbfdff;
}
.meta-card strong { display: block; margin-bottom: 4px; }
.meta-card span { color: var(--muted); font-size: 13px; }

.config-panel {
  max-width: 760px;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 18px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.config-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  margin-bottom: 16px;
}
.config-header h3 { margin: 0 0 6px; }
.config-header p { margin: 0; color: var(--muted); }
.config-field { display: block; }
.config-panel + .config-panel { margin-top: 16px; }
.notification-leader-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.notification-config-panel {
  border-top: 3px solid var(--primary);
  padding-top: 16px;
}
.notification-config-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.notification-toggle {
  position: relative;
  min-height: 66px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
  cursor: pointer;
}
.notification-toggle input {
  position: absolute;
  width: 1px;
  height: 1px;
  opacity: 0;
}
.switch-rail {
  width: 42px;
  height: 24px;
  flex: 0 0 42px;
  position: relative;
  margin: 0;
  border-radius: 999px;
  background: #aab7c4;
  transition: background 160ms ease;
}
.switch-rail::after {
  content: "";
  position: absolute;
  top: 3px;
  left: 3px;
  width: 18px;
  height: 18px;
  border-radius: 50%;
  background: #fff;
  box-shadow: 0 1px 3px rgba(16, 24, 40, 0.24);
  transition: transform 160ms ease;
}
.notification-toggle input:checked + .switch-rail { background: var(--primary); }
.notification-toggle input:checked + .switch-rail::after { transform: translateX(18px); }
.notification-toggle input:focus-visible + .switch-rail {
  outline: 3px solid rgba(23, 105, 170, 0.18);
  outline-offset: 2px;
}
.toggle-copy { margin: 0; }
.toggle-copy strong { display: block; margin-bottom: 4px; color: var(--text); }
.toggle-copy small { display: block; color: var(--muted); line-height: 1.4; }
.notification-chat-field { grid-column: span 1; }
.notification-action-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 16px;
  margin-top: 16px;
  padding-top: 14px;
  border-top: 1px solid var(--line);
}
.notification-action-bar strong,
.notification-action-bar span { display: block; }
.notification-action-bar span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.notification-action-bar button { flex: 0 0 auto; }
.notification-action-bar button:disabled {
  cursor: not-allowed;
  opacity: 0.55;
}
.notification-delivery-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  margin: 20px 0 10px;
}
.notification-delivery-header strong,
.notification-delivery-header span { display: block; }
.notification-delivery-header span {
  margin-top: 3px;
  color: var(--muted);
  font-size: 13px;
}
.notification-delivery-header button { flex: 0 0 auto; }
.notification-delivery-table table { min-width: 960px; }
.notification-delivery-table td.delivery-error {
  max-width: 240px;
  overflow: hidden;
  text-overflow: ellipsis;
}
.delivery-status-pending { background: #fff4d6; color: #865e00; }
.delivery-status-sending { background: #e8f1fa; color: #1f5f92; }
.delivery-status-success { background: #e5f6eb; color: #277343; }
.delivery-status-failed { background: #fde9e7; color: #a33b32; }

@media (max-width: 760px) {
  .notification-config-grid { grid-template-columns: 1fr; }
  .notification-leader-grid { grid-template-columns: 1fr; }
  .notification-action-bar { align-items: flex-start; flex-direction: column; }
  .notification-delivery-header { align-items: flex-start; flex-direction: column; }
}

dialog {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  width: min(720px, calc(100vw - 32px));
}
.wide-dialog {
  width: min(1440px, calc(100vw - 32px));
}
.review-dialog {
  width: min(806px, calc(100vw - 32px));
}
dialog::backdrop { background: rgba(16, 24, 40, 0.38); }
.modal-form { padding: 20px; }
.modal-form h3 { margin: 0 0 4px; }
.project-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 16px;
}
.project-form h3,
.project-form .form-hint,
.project-form .form-section,
.project-form .full-row {
  grid-column: 1 / -1;
}
.review-dialog-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
}
.review-dialog-header p { margin: 4px 0 0; }
.review-save-status {
  flex: 0 0 auto;
  color: var(--muted);
  font-size: 12px;
  white-space: nowrap;
}
.status-history-notice {
  margin: 0;
  color: var(--muted);
  font-size: 12px;
}
.status-history-list {
  display: grid;
  gap: 10px;
  max-height: min(560px, 65vh);
  overflow-y: auto;
}
.status-history-item {
  display: grid;
  gap: 8px;
  padding: 12px 14px;
  border: 1px solid var(--line);
  border-left: 3px solid var(--primary);
  border-radius: 8px;
  background: #f8fbff;
}
.status-history-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
}
.status-history-head time,
.status-history-item small {
  color: var(--muted);
  font-size: 12px;
}
.status-history-transition {
  display: flex;
  align-items: center;
  gap: 8px;
}
.status-history-transition span {
  padding: 3px 8px;
  border-radius: 999px;
  background: #edf6ff;
  color: #175c96;
  font-size: 13px;
  font-weight: 600;
}
.status-history-transition b { color: var(--muted); }
.review-comment-list {
  display: grid;
  gap: 10px;
}
.review-comment-row {
  position: relative;
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  align-items: start;
  gap: 10px;
  padding: 12px 38px 12px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.review-comment-fields {
  display: grid;
  gap: 8px;
}
.review-type-tags {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 6px;
  min-height: 36px;
  padding: 4px;
  border: 1px solid #c7d7e6;
  border-radius: 8px;
  background: #fff;
}
.review-type-tag {
  height: 28px;
  padding: 0 10px;
  border-color: #c7d7e6;
  background: #fff;
  color: #38536b;
  font-size: 13px;
}
.review-type-tag:hover {
  border-color: #8fb7d4;
  background: #eef7ff;
  color: #28516f;
}
.review-type-tag.selected {
  border-color: var(--primary);
  background: #e8f3fb;
  color: var(--primary);
}
.review-type-tag.selected:hover {
  border-color: var(--primary);
  background: #d9edf9;
  color: var(--primary);
}
.review-comment-row textarea {
  min-height: 70px;
  resize: vertical;
}
.review-delete-btn {
  position: absolute;
  top: 8px;
  right: 8px;
  width: 24px;
  height: 24px;
  padding: 0;
  border-color: transparent;
  border-radius: 999px;
  background: transparent;
  color: #8a4b45;
  font-size: 18px;
  line-height: 1;
}
.review-delete-btn:hover {
  background: #fff0ed;
  color: #b42318;
}
.form-section {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px 16px;
  margin: 0;
  padding: 14px;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.form-section legend {
  padding: 0 6px;
  color: #1f344d;
  font-size: 13px;
  font-weight: 700;
}
.form-hint {
  margin: 0;
  color: var(--muted);
  font-size: 13px;
}
.check-row { display: flex; gap: 8px; align-items: center; }
.check-row input { width: auto; height: auto; }
.modal-actions { display: flex; justify-content: flex-end; gap: 10px; }
.modal-actions button:first-child { background: #fff; color: var(--text); border-color: var(--line); }
.loading-overlay {
  position: fixed;
  inset: 0;
  display: grid;
  place-items: center;
  background: rgba(15, 23, 42, 0.22);
  z-index: 1000;
}
.loading-box {
  min-width: 160px;
  min-height: 92px;
  display: grid;
  place-items: center;
  gap: 10px;
  padding: 18px 22px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 48px rgba(16, 24, 40, 0.2);
  color: var(--text);
  font-weight: 700;
}
.spinner {
  width: 26px;
  height: 26px;
  border: 3px solid #d6e6f4;
  border-top-color: var(--primary);
  border-radius: 50%;
  animation: spin 0.8s linear infinite;
}
@keyframes spin { to { transform: rotate(360deg); } }
.link-button {
  height: auto;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
  color: var(--primary);
  font-weight: 600;
}
.link-button:hover { background: transparent; text-decoration: underline; }
.detail-bulk-bar {
  display: grid;
  grid-template-columns: minmax(150px, 1.1fr) 92px 92px minmax(180px, 1.4fr) auto;
  align-items: end;
  gap: 10px;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: #f8fbff;
}
.detail-bulk-bar label span {
  margin-bottom: 4px;
}
.detail-bulk-bar input,
.detail-bulk-bar select {
  height: 32px;
}
.detail-bulk-bar button {
  height: 32px;
}
.detail-bulk-value > span:last-child {
  display: block;
}
.detail-loading-cell {
  height: 180px;
  text-align: center;
  color: var(--muted);
}
.detail-table-wrap table { min-width: 1240px; }
.detail-table-wrap {
  max-height: min(72vh, 760px);
  overflow: auto;
}
.detail-table-wrap th {
  position: sticky;
  top: 0;
  z-index: 1;
}
.detail-table-wrap input {
  height: 32px;
  min-width: 120px;
}
.detail-table-wrap input[type="number"] {
  min-width: 92px;
}
.readonly-cell {
  display: inline-flex;
  align-items: center;
  min-height: 32px;
  min-width: 92px;
  padding: 0 8px;
  color: #475467;
  background: #f2f4f7;
  border: 1px solid #d0d5dd;
  border-radius: 6px;
  font-weight: 700;
}
.detail-table-wrap select {
  height: 32px;
  min-width: 120px;
  border-radius: 999px;
  font-size: 12px;
  background-color: #f8fbff;
}
.detail-table-wrap input.reason { min-width: 220px; }

.metric-strip {
  display: grid;
  grid-template-columns: repeat(4, minmax(140px, 1fr));
  gap: 12px;
  margin-bottom: 12px;
}
.metric-card {
  min-height: 78px;
  padding: 14px 16px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.metric-card span {
  display: block;
  color: var(--muted);
  font-size: 13px;
  margin-bottom: 8px;
}
.metric-card strong {
  display: block;
  font-size: 28px;
  line-height: 1;
  color: #17324d;
}
.report-shell { display: grid; gap: 16px; }
.asset-report-shell {
  display: grid;
  gap: 10px;
}
.asset-report-toolbar {
  grid-template-columns: 180px minmax(220px, 1fr) 140px repeat(3, max-content);
}
.asset-report-kpis {
  display: grid;
  grid-template-columns: repeat(4, minmax(150px, 1fr));
  gap: 8px;
}
.asset-report-kpi {
  display: grid;
  gap: 4px;
  min-height: 66px;
  padding: 9px 12px;
  border: 1px solid var(--line);
  border-left: 4px solid #47657c;
  border-radius: 8px;
  background: #fff;
}
.asset-report-kpi.good { border-left-color: #2d8a64; }
.asset-report-kpi.warn { border-left-color: #d89025; }
.asset-report-kpi.danger { border-left-color: #b42318; }
.asset-report-kpi span,
.asset-report-kpi small {
  color: var(--muted);
  font-size: 12px;
}
.asset-report-kpi strong {
  color: #17324d;
  font-size: 22px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.asset-report-chart-grid {
  display: grid;
  grid-template-columns: minmax(360px, 1.05fr) minmax(360px, 0.95fr);
  grid-template-areas:
    "flow comments"
    "groups focus";
  grid-template-rows: 280px 320px;
  gap: 10px;
  align-items: stretch;
  height: auto;
}
.asset-chart-panel,
.asset-focus-panel {
  display: grid;
  grid-template-rows: auto minmax(0, 1fr);
}
.asset-focus-panel {
  grid-template-rows: auto minmax(0, 1fr) auto;
}
.asset-focus-priority { grid-area: focus; }
.asset-flow-panel { grid-area: flow; }
.asset-comments-panel { grid-area: comments; }
.asset-producer-panel { grid-area: groups; }
.asset-report-chart-grid > section {
  min-height: 0;
}
.asset-report-chart-grid .report-panel-header.compact {
  padding: 8px 12px;
}
.asset-report-chart-grid .report-panel-header h3 {
  font-size: 15px;
  margin-bottom: 2px;
}
.asset-report-chart-grid .report-panel-header p {
  font-size: 11px;
  line-height: 1.25;
}
.asset-chart-canvas {
  height: 100%;
  min-height: 0;
  padding: 4px 8px 8px;
}
.asset-flow-panel .asset-chart-canvas {
  min-height: 0;
}
.asset-group-summary {
  height: 100%;
  min-height: 0;
  padding: 4px 8px 8px;
}
.asset-focus-list {
  display: grid;
  align-content: start;
  gap: 6px;
  padding: 8px 14px 2px;
  min-height: 0;
  overflow: auto;
}
.asset-focus-item {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(82px, 126px) 42px;
  align-items: center;
  gap: 6px;
  min-height: 44px;
  padding: 7px 0 10px;
  border-bottom: 1px solid #e7eef6;
  background: transparent;
}
.asset-focus-item:last-child { border-bottom: 0; }
.asset-focus-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
}
.asset-focus-copy strong {
  color: #17324d;
  font-size: 12px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-focus-copy span {
  color: var(--muted);
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-focus-owner {
  color: #53677d;
  font-size: 11px;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-focus-item button {
  grid-column: 3;
  height: 30px;
  width: 42px;
  min-width: 0;
  padding: 0;
  font-size: 12px;
  white-space: nowrap;
}
.asset-focus-pagination {
  padding: 6px 14px;
  border-top: 1px solid #e7eef6;
  grid-template-columns: minmax(0, 1fr) 204px;
  align-items: center;
  gap: 6px;
}
.asset-focus-pagination .report-page-size {
  display: none;
}
.asset-focus-pagination .report-page-summary {
  justify-self: start;
  font-size: 12px;
  max-width: 100%;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.asset-focus-pagination .report-page-actions {
  display: grid;
  grid-template-columns: 50px minmax(38px, 1fr) 50px;
  gap: 6px;
  justify-content: stretch;
  width: 100%;
}
.asset-focus-pagination .report-page-actions button {
  height: 30px;
  min-width: 0;
  padding: 0 6px;
  font-size: 12px;
  white-space: nowrap;
}
.asset-focus-pagination .report-page-actions span {
  min-width: 0;
  font-size: 12px;
}
.progress-report-grid {
  display: grid;
  grid-template-columns: 1fr repeat(3, minmax(210px, 1.4fr));
  gap: 14px;
  align-items: stretch;
}
.report-module {
  display: grid;
  gap: 12px;
  min-height: 168px;
  padding: 16px;
  border: 1px solid var(--line);
  border-top: 4px solid var(--primary);
  border-radius: 8px;
  background: var(--panel);
  box-shadow: 0 12px 30px rgba(15, 79, 132, 0.08);
}
.report-module.parse { border-top-color: #2a84c6; }
.report-module.production { border-top-color: #d89025; }
.report-module.audit { border-top-color: #28a06d; }
.report-module.overview {
  overflow: hidden;
  border-top-color: #17324d;
  background:
    linear-gradient(135deg, rgba(23, 105, 170, 0.12), rgba(255,255,255,0) 56%),
    #fff;
}
.report-module-title {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 10px;
}
.report-module-title h3 { margin: 0 0 4px; font-size: 16px; }
.report-module-title span { color: var(--muted); font-size: 12px; }
.report-module-total {
  align-self: end;
  display: grid;
  gap: 4px;
}
.report-module-total strong { font-size: 38px; line-height: 1; }
.report-module-total span { color: var(--muted); }
.report-overview-head {
  display: flex;
  align-items: center;
  gap: 10px;
}
.report-overview-head h3 { margin: 0 0 4px; font-size: 16px; }
.report-overview-head span { color: var(--muted); font-size: 12px; }
.report-overview-icon {
  width: 34px;
  height: 34px;
  display: grid;
  place-items: center;
  border-radius: 8px;
  background: #17324d;
  color: #fff !important;
  font-size: 13px !important;
  font-weight: 800;
}
.report-metrics { display: grid; gap: 8px; }
.report-metric {
  display: grid;
  grid-template-columns: auto 1fr auto;
  align-items: center;
  gap: 10px;
  min-height: 46px;
  padding: 8px 10px;
  border: 1px solid #e5edf6;
  border-radius: 8px;
  background: #fbfdff;
}
.report-metric-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  background: var(--primary);
}
.report-metric.parse .report-metric-dot { background: #2a84c6; }
.report-metric.production .report-metric-dot { background: #d89025; }
.report-metric.audit .report-metric-dot { background: #28a06d; }
.report-metric.rework .report-metric-dot { background: #b42318; }
.report-metric.in-progress .report-metric-dot { background: #d89025; }
.report-metric.completed .report-metric-dot { background: #28a06d; }
.report-metric span { color: var(--muted); font-size: 13px; }
.report-metric strong { font-size: 20px; }
.report-panel {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  overflow: hidden;
}
.report-panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 16px;
  border-bottom: 1px solid var(--line);
}
.report-panel-header h3 { margin: 0 0 4px; }
.report-panel-header p { margin: 0; color: var(--muted); }
.status-summary-list { display: grid; }
.status-summary-row {
  display: grid;
  grid-template-columns: 120px 1fr 72px;
  align-items: center;
  gap: 14px;
  padding: 12px 16px;
  border-bottom: 1px solid #edf2f7;
}
.status-summary-row:last-child { border-bottom: 0; }
.status-summary-row span { color: var(--muted); }
.status-summary-row strong { font-size: 18px; text-align: right; }
.status-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f8;
}
.status-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.progress-report-shell {
  display: grid;
  gap: 16px;
}
.progress-report-toolbar {
  grid-template-columns: minmax(220px, 1fr) 150px 140px auto auto;
}
.progress-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(140px, 1fr));
  gap: 12px;
}
.progress-kpi {
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 79, 132, 0.06);
}
.progress-kpi span,
.progress-kpi small { color: var(--muted); }
.progress-kpi strong {
  font-size: 28px;
  line-height: 1.1;
}
.progress-kpi.done { border-left-color: #28a06d; }
.progress-kpi.warning { border-left-color: #d89025; }
.progress-kpi.danger { border-left-color: #b42318; }

.project-overview-shell {
  --overview-navy: #16324b;
  --overview-blue: #2477ad;
  --overview-teal: #19857a;
  --overview-amber: #c47a18;
  --overview-red: #b33b31;
  display: grid;
  gap: 14px;
}
.project-overview-toolbar {
  display: grid;
  grid-template-columns: minmax(180px, 220px) minmax(150px, 180px) repeat(3, max-content);
  justify-content: start;
}
.project-overview-toolbar > button {
  justify-self: start;
}
.overview-more-filter-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
}
.overview-filter-count {
  min-width: 20px;
  height: 20px;
  padding: 0 6px;
  border-radius: 999px;
  background: var(--primary);
  color: #fff;
  font-size: 11px;
  line-height: 20px;
}
.project-overview-more-filters {
  grid-column: 1 / -1;
  display: grid;
  grid-template-columns: minmax(280px, 1.5fr) repeat(3, minmax(140px, 1fr));
  gap: 10px;
  padding-top: 12px;
  border-top: 1px solid #dce6ed;
}
.overview-context {
  position: relative;
  overflow: hidden;
  display: flex;
  align-items: center;
  gap: 13px;
  min-height: 70px;
  padding: 13px 18px;
  border: 1px solid #23465f;
  border-radius: 10px;
  background:
    linear-gradient(90deg, rgba(41, 116, 155, 0.22) 1px, transparent 1px),
    linear-gradient(rgba(41, 116, 155, 0.16) 1px, transparent 1px),
    linear-gradient(125deg, #102a3f, #183c56 68%, #145c61);
  background-size: 24px 24px, 24px 24px, auto;
  color: #fff;
  box-shadow: 0 12px 28px rgba(18, 52, 75, 0.16);
}
.overview-context::after {
  content: "";
  position: absolute;
  right: -40px;
  width: 220px;
  height: 220px;
  border: 40px solid rgba(124, 223, 207, 0.08);
  border-radius: 50%;
}
.overview-context-mark {
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border: 1px solid rgba(255,255,255,0.3);
  border-radius: 50%;
  background: rgba(255,255,255,0.1);
  color: #a8e6db;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0.08em;
}
.overview-context div { position: relative; z-index: 1; display: grid; gap: 4px; }
.overview-context strong { font-size: 16px; letter-spacing: 0.02em; }
.overview-context small { color: #c7dce8; }
.overview-kpi-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  gap: 10px;
}
.overview-kpi {
  position: relative;
  overflow: hidden;
  display: grid;
  gap: 6px;
  min-height: 112px;
  padding: 15px 16px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fff;
  color: var(--text);
  text-align: left;
  box-shadow: 0 6px 18px rgba(31, 52, 77, 0.06);
  animation: overview-rise 0.35s ease both;
}
.overview-kpi::before {
  content: "";
  position: absolute;
  inset: 0 auto 0 0;
  width: 4px;
  background: var(--overview-blue);
}
.overview-kpi:nth-child(2) { animation-delay: 0.04s; }
.overview-kpi:nth-child(3) { animation-delay: 0.08s; }
.overview-kpi:nth-child(4) { animation-delay: 0.12s; }
.overview-kpi:nth-child(5) { animation-delay: 0.16s; }
.overview-kpi:hover,
.overview-kpi:focus-visible {
  transform: translateY(-2px);
  border-color: #a8c6d9;
  background: #fff;
  color: var(--text);
  box-shadow: 0 12px 26px rgba(31, 82, 112, 0.12);
  outline: none;
}
.overview-kpi.active::before { background: var(--overview-amber); }
.overview-kpi.asset::before { background: var(--overview-teal); }
.overview-kpi.done::before { background: #23724f; }
.overview-kpi.danger::before { background: var(--overview-red); }
.overview-kpi span,
.overview-kpi small { color: var(--muted); }
.overview-kpi strong {
  color: var(--overview-navy);
  font-size: 30px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.project-overview-grid {
  display: grid;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  gap: 14px;
}
.overview-panel {
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  box-shadow: 0 8px 22px rgba(24, 57, 82, 0.06);
}
.overview-milestone-panel { grid-column: 1 / -1; }
.overview-comparison-panel { grid-column: 1 / -1; }
.overview-panel-heading {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px;
  border-bottom: 1px solid #e7eef5;
}
.overview-panel-heading h3 {
  margin: 3px 0 4px;
  color: var(--overview-navy);
  font-size: 17px;
}
.overview-panel-heading p { margin: 0; color: var(--muted); font-size: 12px; }
.overview-panel-heading select { width: 112px; min-height: 34px; }
.overview-eyebrow {
  color: var(--overview-blue);
  font-size: 10px;
  font-weight: 800;
  letter-spacing: 0.16em;
}
.overview-milestone-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(175px, 1fr));
  gap: 8px;
  padding: 14px;
}
.overview-milestone {
  position: relative;
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-height: 126px;
  padding: 12px 13px 11px;
  border: 1px solid #dce6ed;
  border-top: 3px solid var(--overview-teal);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 4px 12px rgba(19, 55, 78, 0.04);
  color: var(--text);
  text-align: left;
  transition: border-color 160ms ease, box-shadow 160ms ease, transform 160ms ease;
}
.overview-milestone.warning { border-top-color: var(--overview-amber); }
.overview-milestone.danger { border-top-color: var(--overview-red); }
.overview-milestone:hover {
  border-color: #8bb3c8;
  border-top-color: var(--overview-teal);
  background: #fff;
  box-shadow: 0 8px 18px rgba(19, 55, 78, 0.09);
  transform: translateY(-1px);
}
.overview-milestone.warning:hover { border-top-color: var(--overview-amber); }
.overview-milestone.danger:hover { border-top-color: var(--overview-red); }
.overview-milestone-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}
.overview-milestone-head b {
  color: #476579;
  font-size: 12px;
  font-weight: 800;
}
.overview-milestone-head small {
  padding: 2px 7px;
  border-radius: 99px;
  background: #e9f6f2;
  color: #217b69;
  font-size: 10px;
  font-weight: 800;
}
.overview-milestone.warning .overview-milestone-head small {
  background: #fff3df;
  color: #a86108;
}
.overview-milestone.danger .overview-milestone-head small {
  background: #ffebea;
  color: #b83a33;
}
.overview-milestone-total {
  display: flex;
  align-items: baseline;
  gap: 4px;
}
.overview-milestone-total strong {
  color: var(--overview-navy);
  font-size: 27px;
  line-height: 1;
  font-variant-numeric: tabular-nums;
}
.overview-milestone-total > span {
  color: #8aa0af;
  font-size: 13px;
  font-weight: 700;
  font-variant-numeric: tabular-nums;
}
.overview-milestone-total small {
  margin-left: 3px;
  color: var(--muted);
  font-size: 11px;
  font-weight: 600;
}
.overview-milestone-progress {
  display: flex;
  align-items: baseline;
  justify-content: space-between;
  gap: 8px;
}
.overview-milestone-remaining {
  color: #6c8190;
  font-size: 10px;
  white-space: nowrap;
}
.overview-milestone-remaining b {
  color: #405e72;
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}
.overview-milestone-track {
  overflow: hidden;
  height: 4px;
  border-radius: 99px;
  background: #e7eef3;
}
.overview-milestone-track i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--overview-teal);
}
.overview-milestone.warning .overview-milestone-track i { background: var(--overview-amber); }
.overview-milestone.danger .overview-milestone-track i { background: var(--overview-red); }
.overview-milestone-stats {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-top: auto;
  padding-top: 7px;
  border-top: 1px solid #e7eef3;
}
.overview-milestone-stats em {
  display: flex;
  align-items: baseline;
  gap: 3px;
  color: #6c8190;
  font-style: normal;
}
.overview-milestone-stats em + em {
  padding-left: 8px;
  border-left: 1px solid #e7eef3;
}
.overview-milestone-stats b {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
}
.overview-milestone-stats small { font-size: 10px; }
.overview-milestone-stats em.danger { color: var(--overview-red); }
.overview-milestone-stats em.warning { color: var(--overview-amber); }
.overview-comparison-list {
  min-width: 680px;
  padding: 4px 14px 10px;
}
.overview-comparison-panel { overflow-x: auto; }
.overview-comparison-row {
  display: grid;
  grid-template-columns:
    minmax(110px, 1fr)
    48px
    repeat(4, minmax(94px, 1fr))
    58px;
  align-items: center;
  gap: 8px;
  min-height: 58px;
  border-bottom: 1px solid #edf2f6;
}
.overview-comparison-row:last-child { border-bottom: 0; }
.overview-comparison-row > strong {
  overflow: hidden;
  color: #2d4b60;
  font-weight: 400;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.overview-comparison-row > b {
  font-weight: 400;
  font-variant-numeric: tabular-nums;
}
.overview-comparison-head {
  min-height: 34px;
  color: #718697;
  font-size: 11px;
  font-weight: 400;
  letter-spacing: 0.04em;
}
.overview-rate-cell {
  display: grid;
  grid-template-columns: 1fr 34px;
  align-items: center;
  gap: 6px;
  border-radius: 5px;
}
.overview-rate-cell[data-report-tip]:focus-visible {
  outline: 2px solid #8db8d0;
  outline-offset: 3px;
}
.overview-rate-cell > span {
  overflow: hidden;
  height: 6px;
  border-radius: 99px;
  background: #e8eff4;
}
.overview-rate-cell i { display: block; height: 100%; background: var(--overview-teal); }
.overview-rate-cell.storyboard i { background: var(--overview-blue); }
.overview-rate-cell.edit i { background: var(--overview-amber); }
.overview-rate-cell.delivery i { background: #23724f; }
.overview-rate-cell b {
  color: #4b6476;
  font-size: 11px;
  font-weight: 400;
  text-align: right;
}
.overview-risk-count {
  min-width: 36px;
  height: 28px;
  padding: 0 8px;
  border-color: #dce5eb;
  background: #f7fafc;
  color: #697f8f;
  font-weight: 400;
}
.overview-risk-count.has-risk {
  border-color: #efb3ad;
  background: #fff1f0;
  color: var(--overview-red);
}
.overview-risk-count:hover,
.overview-risk-count:focus-visible {
  border-color: #a8c6d9;
  background: #f7fafc;
  color: #476579;
}
.overview-risk-count.has-risk:hover,
.overview-risk-count.has-risk:focus-visible {
  border-color: #df8d84;
  background: #fff1f0;
  color: var(--overview-red);
}
.overview-empty {
  padding: 32px 16px;
  color: var(--muted);
  text-align: center;
}
@keyframes overview-rise {
  from { opacity: 0; transform: translateY(8px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 1180px) {
  .overview-kpi-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .overview-comparison-panel { grid-column: 1 / -1; }
  .project-overview-toolbar {
    grid-template-columns: minmax(180px, 1fr) minmax(150px, 1fr) repeat(3, max-content);
  }
}

.progress-table-wrap table {
  table-layout: fixed;
  min-width: 1574px;
}
.progress-col-number { width: 64px; }
.progress-col-project { width: 240px; }
.progress-col-progress { width: 190px; }
.progress-col-stage { width: 132px; }
.progress-col-risk { width: 104px; }
.progress-col-reason { width: 240px; }
.quality-table-wrap table {
  min-width: 1420px;
}
.quality-col-number { width: 72px; }
.quality-col-project { width: 260px; }
.quality-col-language { width: 110px; }
.quality-col-status { width: 130px; }
.quality-col-group { width: 120px; }
.quality-col-count,
.quality-col-comment { width: 110px; }
.quality-col-rate { width: 150px; }
.progress-row-number {
  color: var(--muted);
  font-variant-numeric: tabular-nums;
  font-weight: 700;
}
.report-pagination {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 18px;
  min-height: 58px;
  padding: 10px 14px;
  border-top: 1px solid var(--line);
  background: #fff;
}
.report-page-size,
.report-page-actions {
  display: flex;
  align-items: center;
  gap: 8px;
}
.report-page-size select {
  width: 72px;
  min-height: 36px;
}
.report-page-summary,
.report-page-actions span { color: var(--muted); }
.report-page-actions span {
  min-width: 64px;
  text-align: center;
  font-variant-numeric: tabular-nums;
}
.progress-cell {
  display: grid;
  gap: 6px;
}
.progress-cell span {
  color: var(--muted);
  font-size: 12px;
}
.progress-bar {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: #eef3f8;
}
.progress-bar i {
  display: block;
  height: 100%;
  border-radius: inherit;
  background: var(--primary);
}
.progress-bar.storyboard i { background: #2a84c6; }
.progress-bar.edit i { background: #28a06d; }
.progress-bar.done i { background: #28a06d; }
.progress-bar.warning i { background: #d89025; }
.progress-bar.danger i { background: #b42318; }
.stage-pill,
.risk-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 78px;
  padding: 5px 9px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  font-weight: 800;
}
.stage-pill.done,
.risk-pill.done {
  border-color: #9bd8b7;
  background: #e8f8ef;
  color: #17734b;
}
.stage-pill.active {
  border-color: #9ed2ef;
  background: #e8f4fc;
  color: #1769aa;
}
.stage-pill.warning,
.risk-pill.warning {
  border-color: #f0ca6e;
  background: #fff6db;
  color: #9a5c05;
}
.stage-pill.danger,
.risk-pill.danger {
  border-color: #f0a39c;
  background: #fff0ef;
  color: #b42318;
}
.stage-date {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
}
.report-project-links {
  display: flex;
  flex-wrap: wrap;
  gap: 4px 8px;
  align-items: center;
}
.report-project-link {
  height: auto;
  min-height: 22px;
  padding: 0;
  line-height: 1.35;
  text-align: left;
  white-space: normal;
}
.people-report-shell {
  display: grid;
  gap: 16px;
}
.report-switch {
  display: inline-flex;
  gap: 4px;
  margin: 0 0 14px;
  padding: 4px;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}
.report-switch button {
  min-width: 96px;
  padding: 8px 14px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: var(--muted);
  font-weight: 800;
  box-shadow: none;
}
.report-switch button.active {
  background: #1f344d;
  color: #fff;
}
.people-report-toolbar {
  grid-template-columns: repeat(5, minmax(120px, 1fr)) auto auto;
}
.people-kpi-grid {
  display: grid;
  grid-template-columns: repeat(5, minmax(150px, 1fr));
  gap: 12px;
}
.people-kpi {
  position: relative;
  display: grid;
  gap: 6px;
  min-height: 104px;
  padding: 14px;
  border: 1px solid var(--line);
  border-left: 4px solid var(--primary);
  border-radius: 8px;
  background: #fff;
  box-shadow: 0 10px 24px rgba(15, 79, 132, 0.06);
}
.people-kpi span,
.people-kpi small { color: var(--muted); }
.people-kpi span {
  display: flex;
  align-items: center;
  gap: 6px;
}
.people-kpi strong {
  font-size: 28px;
  line-height: 1.1;
  white-space: nowrap;
}
.kpi-info {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-grid;
  width: 16px;
  height: 16px;
  place-items: center;
  border: 1px solid #bdd4e8;
  border-radius: 999px;
  background: #f5fbff;
  color: #2777ad;
  font-size: 11px;
  font-weight: 800;
  line-height: 1;
  cursor: pointer;
}
.kpi-info:hover,
.kpi-info:focus-visible {
  border-color: #2777ad;
  background: #e9f5ff;
}
.people-kpi.blue { border-left-color: #2a84c6; }
.people-kpi.green { border-left-color: #28a06d; }
.people-kpi.yellow { border-left-color: #d89025; }
.people-kpi.red { border-left-color: #b42318; }
.people-personal-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(260px, 360px);
  gap: 16px;
  align-items: center;
  padding: 14px;
  overflow: visible;
}
.people-personal-head .filter-field {
  grid-column: 2;
  grid-row: 1;
  height: auto;
  display: grid;
  align-items: stretch;
  gap: 8px;
  padding: 8px;
  background: #fff;
}
.people-personal-head .filter-field > span {
  font-size: 12px;
  letter-spacing: 0.02em;
}
.personal-picker {
  display: grid;
  grid-template-columns: 32px minmax(0, 1fr) 32px;
  gap: 6px;
  align-items: center;
}
.personal-picker-select {
  position: relative;
  min-width: 0;
}
.personal-picker-trigger {
  position: relative;
  display: flex;
  align-items: center;
  justify-content: center;
  width: 100%;
  height: 34px;
  min-width: 0;
  padding: 0 30px;
  border: 1px solid var(--border);
  border-radius: 10px;
  background: #fff;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  font-weight: 800;
  text-align: left;
}
.personal-picker-trigger span {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  text-align: center;
}
.personal-picker-trigger i {
  position: absolute;
  right: 12px;
  width: 7px;
  height: 7px;
  border-right: 2px solid #6f86a0;
  border-bottom: 2px solid #6f86a0;
  transform: translateY(-2px) rotate(45deg);
}
.personal-picker-trigger:hover,
.personal-picker-trigger[aria-expanded="true"] {
  border-color: #8dbde5;
  background: #f8fbff;
}
.personal-picker .people-name-filter {
  width: 100%;
  min-width: 0;
}
.personal-picker-nav {
  height: 32px;
  padding: 0;
  border-radius: 999px;
  font-size: 16px;
  font-weight: 900;
  line-height: 1;
}
.personal-picker-nav:disabled {
  opacity: 0.45;
  cursor: not-allowed;
}
.personal-picker-menu {
  position: absolute;
  z-index: 40;
  top: calc(100% + 8px);
  left: 50%;
  right: auto;
  width: min(460px, calc(100vw - 56px));
  display: grid;
  gap: 8px;
  max-height: min(420px, calc(100vh - 220px));
  overflow: auto;
  padding: 8px;
  border: 1px solid var(--border);
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 14px 32px rgba(15, 45, 76, 0.16);
  transform: translateX(-50%);
}
.personal-picker-menu.hidden {
  display: none;
}
.personal-picker-menu .people-name-filter {
  height: 34px;
  padding: 0 10px;
  border: 1px solid #d4e2ef;
  border-radius: 10px;
  background: #f8fbff;
  font-size: 13px;
  box-shadow: none;
}
.personal-picker-options {
  display: grid;
  gap: 2px;
}
.personal-picker-options button {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  width: 100%;
  height: auto;
  min-height: 38px;
  padding: 7px 10px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--text);
  box-shadow: none;
  font-size: 13px;
  line-height: 1.25;
  text-align: left;
  cursor: pointer;
}
.personal-picker-options button:hover,
.personal-picker-options button.selected {
  background: #eef7ff;
}
.personal-picker-menu strong {
  overflow: hidden;
  font-size: 13px;
  font-weight: 800;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.personal-picker-menu small,
.personal-picker-empty {
  color: var(--muted);
  font-size: 11px;
  white-space: nowrap;
}
.personal-picker-empty {
  padding: 10px;
}
.people-personal-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  grid-column: 1;
  grid-row: 1;
  align-items: baseline;
  color: var(--muted);
}
.people-personal-meta strong {
  color: #172033;
  font-size: 26px;
}
.people-personal-summary {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}
.people-personal-summary .people-kpi strong {
  overflow: hidden;
  font-size: clamp(22px, 2vw, 26px);
  text-overflow: ellipsis;
}
.people-personal-summary .people-kpi small {
  white-space: nowrap;
}
.people-personal-summary .people-kpi span,
.people-personal-summary .people-kpi small {
  overflow: hidden;
  text-overflow: ellipsis;
}
.people-chart-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(280px, 1fr));
  gap: 16px;
  align-items: start;
}
.people-chart-grid.personal {
  grid-template-columns: minmax(520px, 1.18fr) minmax(360px, 0.82fr);
  align-items: stretch;
}
.people-chart-panel.wide { grid-column: 1 / -1; }
.people-chart-grid.personal .people-chart-panel.wide { grid-column: auto; }
.people-chart-panel { min-width: 0; }
.people-chart-grid.personal > .people-chart-panel {
  display: flex;
  flex-direction: column;
}
.people-chart-bars {
  display: grid;
  grid-auto-flow: column;
  grid-auto-columns: minmax(46px, 1fr);
  align-items: end;
  gap: 10px;
  min-height: 220px;
  padding: 14px 14px 12px;
  overflow-x: auto;
}
.people-chart-bars.minutes {
  grid-auto-columns: 72px;
  justify-content: start;
  scrollbar-gutter: stable;
}
.people-chart-bars.load {
  grid-auto-columns: 56px;
  justify-content: start;
  scrollbar-gutter: stable;
}
.people-chart-bars.trend {
  grid-auto-columns: minmax(46px, 1fr);
  justify-content: stretch;
  overflow-x: hidden;
}
.people-chart-bar {
  display: grid;
  grid-template-rows: 24px 140px 34px;
  align-items: end;
  justify-items: center;
  gap: 8px;
  min-width: 56px;
}
.people-chart-bar.clickable {
  cursor: pointer;
}
.people-chart-bar.clickable:hover {
  opacity: 0.85;
}
.people-chart-bar.clickable:hover .people-chart-name em {
  color: var(--primary);
  text-decoration: underline;
}
.people-chart-bar.clickable:active {
  opacity: 0.7;
}
.people-chart-bar.clickable:focus-visible,
.people-chart-bar.personal-week:focus-visible {
  outline: 2px solid var(--primary);
  outline-offset: 3px;
}
.people-chart-bar.personal-week {
  border: 0;
  background: transparent;
  box-shadow: none;
  cursor: default;
}
.people-chart-bar strong {
  max-width: 76px;
  overflow: hidden;
  color: #1f344d;
  font-size: 12px;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-chart-bar span {
  position: relative;
  width: 100%;
  overflow: hidden;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.2;
  text-align: center;
  text-overflow: ellipsis;
  white-space: nowrap;
}
.people-chart-name em {
  display: inline-block;
  max-width: calc(100% - 14px);
  overflow: hidden;
  font-style: normal;
  text-overflow: ellipsis;
  vertical-align: top;
}
.people-chart-name b {
  display: inline-block;
  margin-left: 2px;
  font-size: 11px;
  line-height: 1;
  vertical-align: top;
}
.people-chart-track {
  position: relative;
  display: flex;
  align-items: flex-end;
  justify-content: center;
  width: 28px;
  height: 140px;
  overflow: hidden;
  border-radius: 7px 7px 4px 4px;
  background: #eef3f8;
}
.people-chart-track i {
  display: block;
  width: 100%;
  min-height: 0;
  border-radius: inherit;
  transition: height 0.2s ease, filter 0.16s ease, transform 0.16s ease;
}
.people-chart-bar:hover .people-chart-track i {
  filter: brightness(1.05);
  transform: translateY(-2px);
}
.people-chart-track i.minutes { background: #2a84c6; }
.people-chart-track i.minutes.target-mid { background: #d89025; }
.people-chart-track i.minutes.target-low { background: #b42318; }
.weekly-target-line {
  position: absolute;
  right: 0;
  left: 0;
  z-index: 2;
  height: 2px;
  border-radius: 999px;
  background: #d92d20;
  box-shadow: 0 0 0 1px rgba(255, 255, 255, 0.85);
}
.people-chart-track i.idle { background: #94a3b8; }
.people-chart-track i.normal { background: #28a06d; }
.people-chart-track i.high { background: #d89025; }
.people-chart-track i.overload { background: #b42318; }
.people-chart-track.grouped {
  flex-direction: row;
  align-items: flex-end;
  justify-content: center;
  gap: 3px;
  background: transparent;
}
.people-chart-track.grouped i {
  width: 13px;
  border-radius: 6px 6px 3px 3px;
}
.people-chart-track.grouped i.storyboard { background: #2a84c6; }
.people-chart-track.grouped i.edit { background: #28a06d; }
.personal-weekly {
  grid-auto-flow: column;
  grid-auto-columns: 112px;
  grid-template-columns: initial;
  align-items: start;
  justify-content: start;
  gap: 10px;
  flex: 1;
  min-height: 284px;
  padding: 14px 14px 16px;
  overflow-x: auto;
  overflow-y: hidden;
  scrollbar-gutter: stable;
  border-top: 1px solid #e7edf5;
  background: #fff;
}
.personal-weekly .people-chart-bar {
  grid-template-rows: 24px 140px 64px;
  min-width: 112px;
  padding: 0;
  border-radius: 10px;
}
.personal-weekly .people-chart-bar strong {
  max-width: 100%;
  color: #1f344d;
  font-size: 12px;
  font-weight: 900;
}
.personal-weekly .people-chart-track {
  width: 28px;
  height: 140px;
  border-radius: 7px 7px 4px 4px;
  background: #eef3f8;
  box-shadow: none;
}
.personal-weekly .weekly-target-line {
  right: -5px;
  left: -5px;
  height: 2px;
}
.personal-weekly .people-chart-bar span {
  display: grid;
  gap: 4px;
  overflow: visible;
  text-align: center;
  white-space: normal;
}
.personal-weekly small {
  display: block;
  color: #42526a;
  font-weight: 800;
  font-size: 11px;
  line-height: 1.2;
}
.personal-weekly em {
  display: grid;
  justify-content: center;
  gap: 2px;
  overflow: visible;
  max-width: 100%;
  color: #66758a;
  font-style: normal;
  font-size: 11px;
  line-height: 1.2;
  white-space: nowrap;
}
.personal-weekly em b,
.personal-weekly em i {
  font-style: normal;
}
.personal-weekly em b {
  color: #42526a;
  font-weight: 900;
}
.personal-weekly em i {
  color: #66758a;
  font-weight: 700;
}
.personal-daily-chart {
  flex: 1;
  min-height: 0;
  padding: 0;
  border-top: 1px solid #e7edf5;
  background: linear-gradient(180deg, #fbfdff 0%, #fff 100%);
}
.personal-line-chart {
  width: min(1120px, calc(100% - 28px));
  margin: 0 auto;
  padding: 12px 0 10px;
}
.personal-line-chart svg {
  display: block;
  width: 100%;
  height: 300px;
  overflow: visible;
}
.personal-line-grid {
  stroke: #e5edf5;
  stroke-width: 1;
}
.personal-line-axis,
.personal-line-date,
.personal-line-title {
  fill: #66758a;
  font-size: 12px;
  font-weight: 800;
}
.personal-line-title {
  fill: #42526a;
}
.personal-line-path {
  fill: none;
  stroke: #2a84c6;
  stroke-width: 4;
  stroke-linecap: round;
  stroke-linejoin: round;
}
.personal-line-dot {
  fill: #fff;
  stroke: #2a84c6;
  stroke-width: 4;
  cursor: pointer;
}
.personal-line-value-pill rect {
  fill: #fff;
  stroke: #d7e6f4;
  stroke-width: 1;
}
.personal-line-value {
  fill: #176fae;
  font-size: 12px;
  font-weight: 900;
}
.linklike {
  padding: 0;
  border: 0;
  background: transparent;
  color: inherit;
  font: inherit;
  text-align: left;
  box-shadow: none;
  cursor: pointer;
  transition: opacity 0.15s ease;
}
.linklike:hover {
  opacity: 0.9;
}
.people-person-link {
  display: block;
  padding: 4px 8px;
  margin: -4px -8px;
  border-radius: 6px;
  transition: background-color 0.15s ease;
}
.people-person-link:hover {
  background-color: rgba(23, 111, 174, 0.06);
  opacity: 1;
}
.people-person-link:hover strong {
  color: var(--primary);
}
.people-person-link:active {
  background-color: rgba(23, 111, 174, 0.1);
}
.week-range {
  white-space: nowrap;
}
.result-pill {
  display: inline-flex;
  align-items: center;
  min-width: 64px;
  justify-content: center;
  padding: 5px 10px;
  border-radius: 999px;
  font-weight: 900;
  font-size: 12px;
}
.result-pill.success {
  background: #e6f5ef;
  color: #08704e;
}
.result-pill.warning {
  background: #f8ecd8;
  color: #b15f00;
}
.result-pill.danger {
  background: #f8e2e0;
  color: #b42318;
}
.result-pill.muted {
  background: #eef2f6;
  color: #64748b;
}
.chart-legend {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 800;
}
.chart-legend span {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  white-space: nowrap;
}
.chart-legend i {
  width: 9px;
  height: 9px;
  border-radius: 999px;
}
.chart-legend i.storyboard { background: #2a84c6; }
.chart-legend i.edit { background: #28a06d; }
.chart-legend i.total { background: #d97706; }
.chart-legend i.target { background: #7c6f64; }
.report-tooltip {
  position: fixed;
  z-index: 1000;
  display: none;
  width: max-content;
  max-width: 360px;
  padding: 8px 10px;
  border: 1px solid #c7d7e6;
  border-radius: 8px;
  background: #fff;
  color: #1f344d;
  box-shadow: 0 10px 24px rgba(15, 79, 132, 0.16);
  pointer-events: none;
  font-size: 12px;
  font-weight: 800;
  line-height: 1.45;
  white-space: pre-line;
}
.report-tooltip.visible { display: block; }
.duration-trend-popover {
  position: fixed;
  z-index: 1000;
  display: none;
  width: min(560px, calc(100vw - 24px));
  padding: 0;
  overflow: hidden;
  border: 1px solid #b9d5e9;
  border-radius: 14px;
  background: #fff;
  box-shadow: 0 20px 48px rgba(15, 79, 132, 0.22);
  pointer-events: none;
}
.duration-trend-popover.visible { display: block; }
.duration-trend-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 16px;
  padding: 16px 18px 14px;
  border-bottom: 1px solid #d6e5f1;
  background: linear-gradient(135deg, #eef7fd 0%, #fff 72%);
}
.duration-trend-header > div {
  display: grid;
  gap: 3px;
}
.duration-trend-kicker {
  color: #1769aa;
  font-size: 10px;
  font-weight: 900;
  letter-spacing: 0.12em;
}
.duration-trend-header strong {
  display: flex;
  align-items: center;
  gap: 7px;
  color: #18324c;
  font-size: 18px;
}
.duration-trend-header strong em {
  padding: 2px 6px;
  border-radius: 999px;
  background: #fff0d6;
  color: #a65d00;
  font-size: 10px;
  font-style: normal;
  font-weight: 900;
}
.duration-trend-header small {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
}
.duration-trend-summary {
  display: grid;
  grid-template-columns: 1.15fr repeat(3, 1fr);
  margin: 14px 16px 10px;
  overflow: hidden;
  border: 1px solid #d8e6f0;
  border-radius: 10px;
  background: #f8fbfd;
}
.duration-trend-summary.without-target { grid-template-columns: 1.15fr repeat(2, 1fr); }
.duration-trend-summary > div {
  min-width: 0;
  padding: 10px 12px;
  border-left: 1px solid #d8e6f0;
}
.duration-trend-summary > div:first-child { border-left: 0; }
.duration-trend-summary span {
  display: block;
  margin-bottom: 3px;
  color: #6c7f92;
  font-size: 10px;
  font-weight: 800;
}
.duration-trend-summary strong {
  display: block;
  color: #1e344d;
  font-size: 16px;
  font-variant-numeric: tabular-nums;
}
.duration-summary-total { background: #edf7fe; }
.duration-summary-total strong { color: #1769aa; }
.duration-summary-target small {
  display: block;
  margin-top: 2px;
  font-size: 10px;
  font-weight: 900;
}
.duration-summary-target small.ahead { color: #168457; }
.duration-summary-target small.behind { color: #b54708; }
.duration-trend-chart-head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 3px 18px 0;
}
.duration-trend-chart-head > strong {
  color: #334b63;
  font-size: 12px;
}
.duration-trend-chart {
  padding: 0 12px 10px;
}
.duration-trend-legend {
  justify-content: flex-start;
  margin: 0;
}
.duration-trend-popover svg {
  display: block;
  width: 100%;
  height: auto;
  overflow: visible;
}
.trend-grid-line { stroke: #e5edf5; stroke-width: 1; }
.trend-axis-line { stroke: #a9bacb; stroke-width: 1; }
.trend-axis-label,
.trend-axis-title {
  fill: #68798d;
  font-size: 10px;
  font-weight: 700;
}
.duration-trend-line {
  fill: none;
  stroke-linecap: round;
  stroke-linejoin: round;
  stroke-width: 2.5;
}
.duration-trend-line.storyboard { stroke: #2a84c6; }
.duration-trend-line.edit { stroke: #28a06d; }
.duration-trend-line.total { stroke: #d97706; stroke-width: 3; stroke-dasharray: 7 5; }
.trend-dot { stroke: #fff; stroke-width: 1.25; }
.trend-dot.storyboard { fill: #2a84c6; }
.trend-dot.edit { fill: #28a06d; }
.trend-dot.total { fill: #d97706; }
.trend-value-label {
  font-size: 9px;
  font-weight: 800;
  paint-order: stroke;
  stroke: #fff;
  stroke-linejoin: round;
  stroke-width: 3px;
}
.trend-value-label.storyboard { fill: #176fae; }
.trend-value-label.edit { fill: #168457; }
.trend-value-label.total { fill: #b45309; }

@media (max-width: 520px) {
  .project-overview-toolbar { grid-template-columns: 1fr; }
  .overview-kpi-grid,
  .overview-milestone-grid { grid-template-columns: 1fr; }
  .overview-context { align-items: flex-start; }
  .duration-trend-header { padding: 14px; }
  .duration-trend-summary,
  .duration-trend-summary.without-target {
    grid-template-columns: repeat(2, 1fr);
    margin: 12px 14px 8px;
  }
  .duration-trend-summary > div:nth-child(3) {
    border-top: 1px solid #d8e6f0;
    border-left: 0;
  }
  .duration-trend-summary > div:nth-child(4) { border-top: 1px solid #d8e6f0; }
  .duration-trend-chart-head { align-items: flex-start; padding-inline: 14px; }
  .duration-trend-legend { gap: 6px; }
  .duration-trend-chart { padding-inline: 6px; }
}

.people-main-panel { min-width: 0; }
.report-panel-header.compact { padding: 14px; }
.people-table-wrap table {
  table-layout: fixed;
  min-width: 1180px;
}
.people-table-wrap th:nth-child(1),
.people-table-wrap td:nth-child(1) { width: 120px; }
.people-table-wrap th:nth-child(10),
.people-table-wrap td:nth-child(10) { width: 126px; }
.people-table-wrap th:nth-child(11),
.people-table-wrap td:nth-child(11) { width: 180px; }
.muted-mini {
  margin-top: 4px;
  color: var(--muted);
  font-size: 12px;
}
.load-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 92px;
  padding: 5px 10px;
  border: 1px solid #cbd5e1;
  border-radius: 999px;
  background: #f8fafc;
  color: #475569;
  font-weight: 800;
  font-size: 12px;
}
.load-pill.normal { border-color: #9bd8b7; background: #e8f8ef; color: #17734b; }
.load-pill.high { border-color: #f0ca6e; background: #fff6db; color: #9a5c05; }
.load-pill.overload { border-color: #f0a39c; background: #fff0ef; color: #b42318; }
.empty-cell,
.empty-side {
  padding: 18px;
  color: var(--muted);
  text-align: center;
}
.empty-state {
  display: grid;
  place-items: center;
  min-height: 280px;
  padding: 32px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  text-align: center;
}
.empty-state h3 { margin: 0 0 8px; font-size: 20px; }
.empty-state p { margin: 0; color: var(--muted); }
.project-table-wrap {
  position: relative;
  max-width: 100%;
}
.project-list-shell .project-table-wrap {
  border-radius: 8px 8px 0 0;
}
.project-pagination {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.project-table-wrap table {
  table-layout: fixed;
  width: 100%;
  min-width: 1700px;
}
.project-col-code { width: 150px; }
.project-col-title { width: 230px; }
.project-col-language { width: 96px; }
.project-col-status { width: 136px; }
.project-col-group { width: 120px; }
.project-col-localized { width: 220px; }
.project-col-count { width: 70px; }
.project-col-duration { width: 80px; }
.project-col-date { width: 120px; }
.project-col-doc { width: 130px; }
.project-col-action { width: 132px; }
.project-table-wrap th:nth-child(1),
.project-table-wrap td:nth-child(1),
.project-table-wrap th:nth-child(2),
.project-table-wrap td:nth-child(2) {
  position: sticky;
  background: #fff;
}
.project-table-wrap th:nth-child(1),
.project-table-wrap th:nth-child(2) {
  background: #e8f1fa;
  z-index: 4;
}
.project-table-wrap td:nth-child(1) {
  left: 0;
  z-index: 3;
}
.project-table-wrap th:nth-child(1) {
  left: 0;
  z-index: 5;
}
.project-table-wrap td:nth-child(2) {
  left: 150px;
  z-index: 3;
  box-shadow: 10px 0 14px -14px rgba(16, 24, 40, 0.48);
}
.project-table-wrap th:nth-child(2) {
  left: 150px;
  z-index: 5;
  box-shadow: 10px 0 14px -14px rgba(16, 24, 40, 0.48);
}
.project-table-wrap tbody tr:hover td:nth-child(1),
.project-table-wrap tbody tr:hover td:nth-child(2) {
  background: #f8fbff;
}
.project-table-wrap td:nth-child(1),
.project-table-wrap td:nth-child(2),
.project-table-wrap td:nth-child(6),
.project-table-wrap td:nth-child(13) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.project-table-wrap td.path {
  max-width: 130px;
}
.project-table-wrap .doc-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-toolbar {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fbff 100%);
}
.asset-table-wrap {
  position: relative;
  max-width: 100%;
}
.asset-list-shell .asset-table-wrap {
  border-radius: 8px 8px 0 0;
}
.asset-pagination {
  border: 1px solid var(--line);
  border-top: 0;
  border-radius: 0 0 8px 8px;
  box-shadow: 0 1px 2px rgba(16, 24, 40, 0.04);
}
.asset-table-wrap table {
  table-layout: fixed;
  width: 100%;
  min-width: 1640px;
}
.asset-col-code { width: 132px; }
.asset-col-title { width: 230px; }
.asset-col-language { width: 100px; }
.asset-col-doc { width: 128px; }
.asset-col-status { width: 128px; }
.asset-col-people { width: 168px; }
.asset-col-tt { width: 128px; }
.asset-col-action { width: 190px; }
.asset-table-wrap th:nth-child(1),
.asset-table-wrap td:nth-child(1),
.asset-table-wrap th:nth-child(2),
.asset-table-wrap td:nth-child(2) {
  position: sticky;
  background: #fff;
}
.asset-table-wrap th:nth-child(1),
.asset-table-wrap th:nth-child(2) {
  background: #e8f1fa;
  z-index: 4;
}
.asset-table-wrap td:nth-child(1) {
  left: 0;
  z-index: 3;
}
.asset-table-wrap th:nth-child(1) {
  left: 0;
  z-index: 5;
}
.asset-table-wrap td:nth-child(2) {
  left: 132px;
  z-index: 3;
  box-shadow: 10px 0 14px -14px rgba(16, 24, 40, 0.48);
}
.asset-table-wrap th:nth-child(2) {
  left: 132px;
  z-index: 5;
  box-shadow: 10px 0 14px -14px rgba(16, 24, 40, 0.48);
}
.asset-table-wrap tbody tr:hover td:nth-child(1),
.asset-table-wrap tbody tr:hover td:nth-child(2) {
  background: #f8fbff;
}
.asset-table-wrap td:nth-child(1),
.asset-table-wrap td:nth-child(2),
.asset-table-wrap td:nth-child(3) {
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-table-wrap td.path {
  max-width: 128px;
}
.asset-table-wrap .doc-link {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}
.asset-table-wrap .people-tags {
  width: 144px;
  max-width: 144px;
  max-height: 56px;
  overflow: hidden;
}
.inline-status-select {
  min-width: 112px;
  height: 30px;
  padding-left: 8px;
  padding-right: 28px;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 700;
}
.inline-status-select.is-saving {
  opacity: 0.62;
  cursor: wait;
}
.asset-title {
  font-weight: 700;
  color: #172033;
}
.asset-subtitle {
  margin-top: 3px;
  color: var(--muted);
  font-size: 12px;
}
.people-tags {
  max-width: 260px;
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  white-space: normal;
}
.native-multi-select { display: none; }
.multi-picker {
  position: relative;
  min-height: 38px;
}
.multi-picker-control {
  min-height: 38px;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 5px 9px;
  border: 1px solid #c7d7e6;
  border-radius: 6px;
  background: #fff;
  cursor: text;
}
.multi-picker.open .multi-picker-control {
  border-color: var(--primary);
  box-shadow: 0 0 0 3px rgba(23, 105, 170, 0.14);
}
.multi-picker-tags {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}
.multi-picker-tag {
  height: 26px;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  padding: 0 8px;
  border: 1px solid #c9e4fa;
  border-radius: 999px;
  background: #edf6ff;
  color: #175c96;
  font-size: 12px;
  font-weight: 700;
}
.multi-picker-tag:hover { background: #dff0ff; }
.multi-picker-tag b {
  color: #55708a;
  font-size: 14px;
  line-height: 1;
}
.multi-picker-input {
  min-width: 120px;
  flex: 1;
  height: 26px;
  padding: 0;
  border: 0;
  box-shadow: none;
}
.multi-picker-input:focus { box-shadow: none; }
.multi-picker-menu {
  display: none;
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  max-height: 260px;
  overflow: auto;
  padding: 6px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: 0 18px 36px rgba(16, 24, 40, 0.18);
  z-index: 50;
}
.multi-picker.open .multi-picker-menu { display: grid; gap: 4px; }
.multi-picker-option {
  width: 100%;
  height: auto;
  min-height: 38px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  padding: 8px 10px;
  border: 0;
  border-radius: 6px;
  background: #fff;
  color: var(--text);
  text-align: left;
}
.multi-picker-option:hover,
.multi-picker-option.selected {
  background: #f2f6fb;
}
.multi-picker-option.selected::before {
  content: "✓";
  color: var(--primary);
  font-weight: 800;
}
.multi-picker-option span { flex: 1; font-weight: 700; }
.multi-picker-option small { color: var(--muted); }
.multi-picker-empty {
  padding: 10px;
  color: var(--muted);
}

@media (max-width: 1220px) {
  .asset-report-chart-grid {
    grid-template-columns: minmax(300px, 1fr) minmax(300px, 1fr);
    grid-template-areas:
      "flow comments"
      "groups focus";
    grid-template-rows: 280px 320px;
  }
}

@media (max-width: 860px) {
  .app-shell { grid-template-columns: 1fr; }
  .sidebar { position: static; min-height: auto; }
  .topbar { align-items: stretch; flex-direction: column; }
  .top-actions { align-items: stretch; }
  .top-actions input { width: 100%; }
  .permission-grid { grid-template-columns: 1fr; }
  .metric-strip { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .progress-report-grid { grid-template-columns: 1fr; }
  .asset-report-kpis,
  .asset-report-chart-grid,
  .asset-focus-item { grid-template-columns: 1fr; }
  .asset-report-chart-grid {
    grid-template-areas:
      "flow"
      "comments"
      "groups"
      "focus";
    grid-template-rows: none;
    height: auto;
    min-height: 0;
  }
  .asset-focus-pagination {
    grid-template-columns: 1fr;
  }
  .asset-report-chart-grid > section {
    height: auto;
    min-height: 260px;
  }
  .asset-focus-owner {
    grid-column: 1;
  }
  .asset-focus-item button {
    grid-column: 1;
    justify-self: start;
  }
  .asset-chart-canvas,
  .asset-flow-panel .asset-chart-canvas { min-height: 220px; }
  .overview-kpi-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-overview-toolbar { grid-template-columns: repeat(2, minmax(0, 1fr)); }
  .project-overview-toolbar > button { min-width: 0; }
  .project-overview-more-filters { grid-template-columns: 1fr; }
  .status-summary-row { grid-template-columns: 88px 1fr 52px; }
  .progress-report-toolbar,
  .progress-kpi-grid,
  .asset-report-toolbar,
  .people-report-toolbar,
  .people-kpi-grid,
  .people-chart-grid { grid-template-columns: 1fr; }
  .people-personal-head { grid-template-columns: 1fr; }
  .people-personal-head .filter-field,
  .people-personal-meta {
    grid-column: 1;
    grid-row: auto;
  }
  .people-chart-grid.personal { grid-template-columns: 1fr; }
  .people-chart-grid.personal .people-chart-panel.wide { grid-column: 1 / -1; }
  .people-personal-summary { grid-template-columns: 1fr; }
  .personal-weekly {
    padding: 14px;
  }
  .personal-line-chart { width: min(100% - 20px, 1120px); }
  .people-chart-bars.trend {
    grid-auto-columns: minmax(36px, 1fr);
    gap: 4px;
    padding: 12px 8px 10px;
  }
  .people-chart-bars.trend .people-chart-bar { min-width: 36px; }
  .people-chart-bars.trend .people-chart-bar strong {
    max-width: 100%;
    font-size: 11px;
  }
  .people-chart-bars.trend .people-chart-track { width: 24px; }
  .report-pagination {
    align-items: stretch;
    flex-direction: column;
    gap: 10px;
  }
  .report-page-actions { justify-content: space-between; }
}

@media (min-width: 521px) and (max-width: 760px) {
  .overview-milestone-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
