:root {
  color-scheme: light;
  --ink: #18212f;
  --muted: #647084;
  --line: #e1e7f0;
  --line-strong: #d3dce9;
  --soft: #f8fafc;
  --panel: #ffffff;
  --brand: #3b82f6;
  --brand-soft: #eaf2ff;
  --ok: #10a66e;
  --ok-soft: #e8fbf2;
  --warn: #d97706;
  --warn-soft: #fff4df;
  --bad: #e11d48;
  --bad-soft: #ffe8ef;
  --info: #7c3aed;
  --info-soft: #f1eaff;
  --cyan: #06a9c9;
  --cyan-soft: #e7faff;
  --shadow: 0 12px 30px rgba(30, 41, 59, 0.08);
}

* {
  box-sizing: border-box;
}

html {
  background: #f6f8fc;
}

body {
  margin: 0;
  background: #f6f8fc;
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  font-size: 14px;
  line-height: 1.45;
}

button,
input,
select,
textarea {
  font: inherit;
}

button {
  align-items: center;
  background: var(--brand);
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  display: inline-flex;
  font-weight: 700;
  justify-content: center;
  min-height: 34px;
  padding: 0 12px;
  white-space: nowrap;
}

button.secondary {
  background: #e7edf4;
  color: var(--ink);
}

button.danger {
  background: var(--bad-soft);
  color: var(--bad);
}

button.ghost {
  background: transparent;
  color: var(--brand);
  min-height: 28px;
  padding: 0;
}

button:disabled {
  cursor: not-allowed;
  opacity: 0.5;
}

.shell {
  min-height: 100vh;
}

.topbar {
  align-items: center;
  background: var(--panel);
  border-bottom: 1px solid var(--line);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  padding: 18px 32px;
  position: sticky;
  top: 0;
  z-index: 10;
}

.topbar h1 {
  font-size: 20px;
  letter-spacing: 0;
  line-height: 1.2;
  margin: 0 0 4px;
}

.topbar p,
.sub,
.muted {
  color: var(--muted);
}

.topbar p {
  margin: 0;
}

.userbox {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 3px;
}

.topnav {
  align-items: center;
  display: flex;
  gap: 8px;
  margin-left: auto;
}

.nav-pill {
  background: #eef3f8;
  color: var(--muted);
}

.nav-pill.active {
  background: var(--brand);
  color: #fff;
}

.content {
  margin: 0 auto;
  max-width: 1780px;
  padding: 22px 32px 40px;
}

.portfolio-hero,
.reporting-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 58%, #fff7ed 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 18px;
}

.portfolio-hero h2,
.reporting-hero h2 {
  font-size: 26px;
  line-height: 1.15;
  margin: 0 0 6px;
}

.portfolio-hero p,
.reporting-hero p {
  color: var(--muted);
  margin: 0;
}

.portfolio-date {
  background: rgba(255, 255, 255, 0.72);
  border: 1px solid #d6e6ff;
  border-radius: 8px;
  display: grid;
  gap: 4px;
  min-width: 150px;
  padding: 12px 14px;
}

.portfolio-date span {
  color: var(--muted);
}

.portfolio-date strong {
  font-size: 18px;
}

.portfolio-panel {
  margin-top: 14px;
}

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

.campus-card {
  background: #fff;
  border: 1px solid var(--line);
  border-left: 5px solid var(--ok);
  border-radius: 8px;
  box-shadow: var(--shadow);
  display: grid;
  gap: 14px;
  padding: 15px;
}

.campus-warn {
  border-left-color: #f59e0b;
}

.campus-bad {
  border-left-color: var(--bad);
}

.campus-head {
  align-items: flex-start;
  display: grid;
  gap: 12px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.campus-head h3 {
  font-size: 18px;
  margin: 0 0 5px;
}

.campus-head p {
  color: var(--muted);
  margin: 0;
}

.health-dot {
  background: var(--ok-soft);
  border-radius: 999px;
  color: var(--ok);
  font-size: 12px;
  font-weight: 750;
  padding: 6px 9px;
}

.campus-warn .health-dot {
  background: var(--warn-soft);
  color: var(--warn);
}

.campus-bad .health-dot {
  background: var(--bad-soft);
  color: var(--bad);
}

.campus-progress {
  align-items: center;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.campus-stats {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, 1fr);
}

.campus-stats span {
  background: #f8fafc;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: var(--muted);
  display: grid;
  gap: 3px;
  padding: 9px;
}

.campus-stats strong {
  color: var(--ink);
  font-size: 20px;
}

.campus-focus {
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  padding: 11px;
}

.campus-focus span {
  color: var(--muted);
}

.project-switcher {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.project-switcher label {
  align-items: center;
  color: var(--muted);
  display: flex;
  gap: 8px;
  font-weight: 700;
}

.reporting-grid {
  grid-template-columns: minmax(0, 1fr) 390px;
}

.my-task-list {
  display: grid;
  gap: 10px;
}

.my-task-card {
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1.3fr) auto minmax(210px, 0.7fr) auto;
  padding: 13px;
}

.my-task-card h3 {
  font-size: 16px;
  margin: 0 0 4px;
}

.my-task-card p {
  color: var(--muted);
  margin: 0;
}

.my-task-meta {
  align-items: flex-start;
  display: grid;
  gap: 6px;
}

.my-task-plan {
  display: grid;
  gap: 8px;
}

.my-task-plan > span {
  color: var(--muted);
}

.project-strip {
  align-items: center;
  background: linear-gradient(135deg, #ffffff 0%, #eef6ff 100%);
  border: 1px solid var(--line);
  border-radius: 8px;
  display: flex;
  gap: 18px;
  justify-content: space-between;
  margin-bottom: 14px;
  padding: 14px 18px;
}

.eyebrow {
  color: var(--brand);
  display: block;
  font-size: 12px;
  font-weight: 700;
  margin-bottom: 4px;
}

.date-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
}

.date-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.86);
  border: 1px solid #d6e6ff;
  border-radius: 999px;
  display: inline-flex;
  gap: 8px;
  min-height: 32px;
  padding: 0 12px;
}

.quick-actions {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(4, minmax(130px, 1fr));
  margin-bottom: 14px;
}

.executive-mobile {
  display: none;
}

.action-tile {
  align-items: center;
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  color: var(--ink);
  display: grid;
  gap: 9px;
  justify-items: center;
  min-height: 104px;
  padding: 14px 12px;
}

.action-tile:first-child {
  background: #eaf2ff;
  border-color: #bfd7ff;
}

.tile-icon,
.metric-icon {
  align-items: center;
  border-radius: 14px;
  display: inline-flex;
  font-weight: 800;
  justify-content: center;
}

.tile-icon {
  font-size: 20px;
  height: 44px;
  width: 44px;
}

.tile-blue .tile-icon {
  background: #dbeafe;
  color: #2563eb;
}

.tile-orange .tile-icon {
  background: #fff0da;
  color: #f59e0b;
}

.tile-pink .tile-icon {
  background: #ffe8f4;
  color: #ec4899;
}

.tile-cyan .tile-icon {
  background: #e7faff;
  color: #0891b2;
}

.date-chip span {
  color: var(--muted);
}

.metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(6, minmax(118px, 1fr));
}

.metric,
.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.metric {
  border-left: 4px solid var(--line-strong);
  align-items: center;
  display: flex;
  justify-content: space-between;
  min-height: 104px;
  padding: 14px 16px;
}

.metric .label {
  color: var(--muted);
  display: block;
  font-weight: 650;
  margin-bottom: 8px;
}

.metric strong {
  display: block;
  font-size: 32px;
  line-height: 1;
}

.metric-icon {
  background: #f1f5f9;
  color: var(--muted);
  font-size: 16px;
  height: 46px;
  width: 46px;
}

.metric-brand {
  border-left-color: var(--brand);
}

.metric-brand .metric-icon {
  background: var(--brand-soft);
  color: var(--brand);
}

.metric-ok {
  border-left-color: var(--ok);
}

.metric-ok .metric-icon {
  background: var(--ok-soft);
  color: var(--ok);
}

.metric-warn {
  border-left-color: #f59e0b;
}

.metric-warn .metric-icon {
  background: var(--warn-soft);
  color: var(--warn);
}

.metric-bad {
  border-left-color: var(--bad);
}

.metric-bad .metric-icon {
  background: var(--bad-soft);
  color: var(--bad);
}

.metric-info {
  border-left-color: var(--info);
}

.metric-info .metric-icon {
  background: var(--info-soft);
  color: var(--info);
}

.grid {
  align-items: start;
  display: grid;
  gap: 14px;
  grid-template-columns: minmax(0, 1fr) minmax(300px, 340px);
  margin-top: 14px;
}

.timeline-panel {
  margin-top: 14px;
}

.timeline-head {
  align-items: flex-start;
  display: flex;
  gap: 14px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.timeline-legend {
  color: var(--muted);
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: flex-end;
}

.timeline-legend span {
  align-items: center;
  display: inline-flex;
  gap: 6px;
}

.timeline-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 8px;
  width: 22px;
}

.legend-plan {
  background: #bfdbfe;
}

.legend-progress {
  background: var(--brand);
}

.timeline-scroll {
  overflow: auto;
  padding-bottom: 2px;
}

.timeline-grid {
  display: grid;
  grid-template-columns: 210px minmax(760px, 1fr);
  min-width: 980px;
}

.timeline-label,
.timeline-axis,
.timeline-track {
  border-bottom: 1px solid var(--line);
  min-height: 42px;
}

.timeline-axis-label {
  align-items: center;
  color: var(--muted);
  display: flex;
  font-size: 12px;
  font-weight: 700;
}

.timeline-label:not(.timeline-axis-label) {
  display: grid;
  gap: 2px;
  padding: 8px 12px 8px 0;
}

.timeline-label strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.timeline-label span {
  color: var(--muted);
  font-size: 12px;
}

.timeline-axis,
.timeline-track {
  background-image: linear-gradient(to right, rgba(148, 163, 184, 0.14) 1px, transparent 1px);
  background-size: 12.5% 100%;
  position: relative;
}

.timeline-axis {
  min-height: 38px;
}

.timeline-tick {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  position: absolute;
  top: 2px;
  transform: translateX(-50%);
  white-space: nowrap;
}

.timeline-tick-end {
  transform: translateX(-100%);
}

.timeline-marker {
  bottom: 0;
  position: absolute;
  top: 0;
  width: 0;
  z-index: 2;
}

.marker-track {
  border-left: 1px dashed rgba(100, 116, 139, 0.4);
}

.marker-axis {
  border-left: 2px solid currentColor;
  font-size: 12px;
  font-weight: 750;
  padding-left: 5px;
  white-space: nowrap;
}

.marker-warn {
  color: #f59e0b;
}

.marker-info {
  color: var(--info);
}

.marker-bad {
  color: var(--bad);
}

.timeline-bar {
  align-items: center;
  background: #dbeafe;
  border: 1px solid #93c5fd;
  border-radius: 999px;
  color: #1e3a8a;
  display: flex;
  height: 24px;
  justify-content: center;
  min-width: 32px;
  overflow: hidden;
  position: absolute;
  top: 9px;
}

.timeline-bar span {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  bottom: 0;
  left: 0;
  position: absolute;
  top: 0;
}

.timeline-bar b {
  font-size: 11px;
  position: relative;
  z-index: 1;
}

.risk-border-overdue {
  background: #ffe4e6;
  border-color: #fb7185;
}

.risk-border-due_soon {
  background: #fef3c7;
  border-color: #fbbf24;
}

.risk-border-stale {
  background: #ede9fe;
  border-color: #a78bfa;
}

.side-stack {
  display: grid;
  gap: 14px;
}

.panel {
  min-width: 0;
  padding: 16px;
}

.panel.compact {
  padding: 15px;
}

.panel h2 {
  font-size: 17px;
  line-height: 1.2;
  margin: 0 0 12px;
}

.panel-sub {
  color: var(--muted);
  margin: 5px 0 0;
}

.toolbar {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 12px;
  justify-content: space-between;
  margin-bottom: 14px;
}

.filters {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

select,
input,
textarea {
  background: #fff;
  border: 1px solid var(--line-strong);
  border-radius: 6px;
  color: var(--ink);
  min-height: 36px;
  padding: 7px 10px;
}

textarea {
  min-height: 88px;
  resize: vertical;
}

.table-wrap {
  border: 1px solid var(--line);
  border-radius: 8px;
  overflow: auto;
}

table {
  border-collapse: collapse;
  min-width: 1380px;
  table-layout: fixed;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid var(--line);
  padding: 12px 12px;
  text-align: left;
  vertical-align: middle;
}

tbody tr:last-child td {
  border-bottom: 0;
}

tbody tr:hover {
  background: #f8fbfd;
}

th {
  background: #f7f9fc;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  position: sticky;
  top: 0;
  z-index: 1;
}

th:nth-child(1),
td:nth-child(1) {
  width: 58px;
}

th:nth-child(2),
td:nth-child(2) {
  width: 286px;
}

th:nth-child(3),
td:nth-child(3) {
  width: 240px;
}

th:nth-child(4),
td:nth-child(4) {
  width: 104px;
}

th:nth-child(5),
td:nth-child(5) {
  width: 190px;
}

th:nth-child(6),
td:nth-child(6) {
  width: 132px;
}

th:nth-child(7),
td:nth-child(7) {
  width: 150px;
}

th:nth-child(8),
td:nth-child(8) {
  width: 220px;
}

td strong,
.sub {
  display: block;
}

td strong {
  font-weight: 750;
}

.seq {
  color: var(--muted);
  font-weight: 750;
}

.status-stack {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.tag {
  align-items: center;
  border-radius: 999px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  max-width: 100%;
  min-height: 25px;
  padding: 0 9px;
  white-space: nowrap;
}

.risk-overdue,
.status-blocked {
  background: var(--bad-soft);
  color: var(--bad);
}

.risk-due_soon {
  background: var(--warn-soft);
  color: var(--warn);
}

.risk-stale {
  background: var(--info-soft);
  color: var(--info);
}

.risk-normal,
.status-not_started,
.status-in_progress,
.status-completed,
.status-accepted {
  background: var(--ok-soft);
  color: var(--ok);
}

.status-not_started {
  background: #eef3f7;
  color: #526176;
}

.status-in_progress {
  background: var(--brand-soft);
  color: var(--brand);
}

.progress-cell {
  align-items: center;
  display: grid;
  gap: 7px;
  grid-template-columns: minmax(70px, 1fr) 42px;
}

.progress {
  background: #e7edf4;
  border-radius: 999px;
  height: 8px;
  overflow: hidden;
  width: 100%;
}

.progress span {
  background: var(--brand);
  display: block;
  height: 100%;
}

.actions {
  min-width: 196px;
  white-space: nowrap;
}

.actions button {
  min-height: 30px;
  padding: 0 10px;
}

.actions button + button {
  margin-left: 8px;
}

.risk-list,
.mini-list,
.phase-bars {
  display: grid;
  gap: 10px;
}

.risk-item,
.mini-item,
.empty {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 11px;
}

.risk-item {
  align-items: start;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
}

.risk-item strong,
.mini-item strong,
.empty strong {
  display: block;
}

.risk-item p {
  margin: 4px 0 0;
}

.risk-meta {
  align-items: flex-end;
  display: flex;
  flex-direction: column;
  gap: 6px;
}

.mini-item {
  display: grid;
  gap: 4px;
}

.empty {
  background: #f9fbfd;
  color: var(--muted);
  display: grid;
  gap: 4px;
}

.empty strong {
  color: var(--ink);
}

.exec-hero,
.exec-card {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
}

.exec-hero {
  align-items: center;
  border-left: 5px solid var(--ok);
  display: flex;
  gap: 14px;
  justify-content: space-between;
  padding: 16px;
}

.exec-hero h2 {
  font-size: 22px;
  line-height: 1.2;
  margin: 0 0 6px;
}

.exec-hero p,
.coordination-text {
  color: var(--muted);
  margin: 0;
}

.exec-ok {
  border-left-color: var(--ok);
}

.exec-warn {
  border-left-color: #f59e0b;
}

.exec-bad {
  border-left-color: var(--bad);
}

.countdown {
  align-items: center;
  background: var(--brand-soft);
  border-radius: 18px;
  color: var(--brand);
  display: grid;
  flex: 0 0 92px;
  height: 92px;
  justify-items: center;
}

.countdown strong {
  font-size: 32px;
  line-height: 1;
}

.countdown span {
  font-size: 12px;
  font-weight: 700;
}

.exec-metrics {
  display: grid;
  gap: 10px;
  grid-template-columns: repeat(3, 1fr);
}

.exec-metrics div {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  padding: 12px;
}

.exec-metrics span {
  color: var(--muted);
  display: block;
  margin-bottom: 6px;
}

.exec-metrics strong {
  font-size: 26px;
  line-height: 1;
}

.exec-progress {
  background: #dbeafe;
  border-radius: 999px;
  height: 10px;
  overflow: hidden;
}

.exec-progress span {
  background: linear-gradient(90deg, #60a5fa, #2563eb);
  display: block;
  height: 100%;
}

.exec-card {
  display: grid;
  gap: 12px;
  padding: 14px;
}

.exec-card-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
}

.exec-card-head h3 {
  font-size: 16px;
  margin: 0;
}

.exec-card-head span {
  background: var(--soft);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  padding: 5px 8px;
}

.exec-focus-list {
  display: grid;
  gap: 9px;
}

.exec-focus-item {
  align-items: start;
  background: #fbfdff;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) auto;
  padding: 11px;
}

.exec-focus-item strong,
.exec-focus-item span,
.exec-focus-meta small {
  display: block;
}

.exec-focus-item span,
.exec-focus-meta small {
  color: var(--muted);
}

.exec-focus-meta {
  align-items: flex-end;
  display: grid;
  gap: 6px;
  justify-items: end;
}

.phase-row {
  display: grid;
  gap: 7px;
}

.phase-head {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
  min-width: 0;
}

.phase-head strong {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.dialog {
  background: rgba(17, 24, 39, 0.42);
  display: none;
  inset: 0;
  padding: 20px;
  position: fixed;
  z-index: 20;
}

.dialog.open {
  align-items: center;
  display: flex;
  justify-content: center;
}

.dialog-card {
  background: var(--panel);
  border-radius: 8px;
  max-height: calc(100vh - 40px);
  max-width: 560px;
  overflow: auto;
  padding: 18px;
  width: 100%;
}

.dialog-card h3 {
  margin: 0 0 12px;
}

.form-grid {
  display: grid;
  gap: 10px;
}

.form-grid label {
  display: grid;
  gap: 6px;
}

.form-actions {
  display: flex;
  gap: 8px;
  justify-content: flex-end;
  margin-top: 14px;
}

.auth {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  box-shadow: var(--shadow);
  margin: 12vh auto;
  max-width: 480px;
  padding: 24px;
}

.auth h1 {
  margin: 0 0 10px;
}

.auth-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  margin-top: 18px;
}

.loading {
  color: var(--muted);
  padding: 40px;
}

@media (max-width: 1180px) {
  .metrics {
    grid-template-columns: repeat(3, minmax(118px, 1fr));
  }

  .campus-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .grid,
  .reporting-grid {
    grid-template-columns: 1fr;
  }

  .side-stack {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 820px) {
  .topbar,
  .project-strip,
  .portfolio-hero,
  .reporting-hero {
    align-items: flex-start;
    flex-direction: column;
  }

  .topnav {
    margin-left: 0;
  }

  .campus-grid {
    grid-template-columns: 1fr;
  }

  .my-task-card {
    align-items: stretch;
    grid-template-columns: 1fr;
  }

  .quick-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .timeline-head {
    display: grid;
  }

  .userbox {
    align-items: flex-start;
  }

  .side-stack {
    grid-template-columns: 1fr;
  }
}

@media (max-width: 620px) {
  .content,
  .topbar {
    padding-left: 14px;
    padding-right: 14px;
  }

  .content {
    padding-top: 14px;
  }

  .topbar {
    position: static;
  }

  .topnav {
    width: 100%;
  }

  .nav-pill {
    flex: 1;
  }

  .topbar p {
    display: none;
  }

  .portfolio-hero,
  .reporting-hero {
    padding: 15px;
  }

  .portfolio-hero h2,
  .reporting-hero h2 {
    font-size: 22px;
  }

  .portfolio-date {
    width: 100%;
  }

  .campus-stats {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .campus-stats span {
    padding: 8px;
  }

  .project-switcher {
    align-items: stretch;
    display: grid;
  }

  .project-switcher label,
  .project-switcher select {
    width: 100%;
  }

  .project-strip {
    display: none;
  }

  .executive-mobile {
    display: grid;
    gap: 12px;
    margin-bottom: 12px;
  }

  .quick-actions {
    grid-template-columns: repeat(4, minmax(0, 1fr));
    order: 3;
  }

  .action-tile {
    gap: 7px;
    min-height: 78px;
    padding: 10px 6px;
  }

  .action-tile strong {
    font-size: 12px;
  }

  .metrics {
    display: none;
  }

  .metric {
    min-height: 86px;
  }

  .metric strong {
    font-size: 26px;
  }

  .metric-icon {
    height: 40px;
    width: 40px;
  }

  .action-tile {
    min-height: 92px;
  }

  .tile-icon {
    border-radius: 12px;
    font-size: 16px;
    height: 34px;
    width: 34px;
  }

  .toolbar {
    display: grid;
  }

  .filters select {
    width: 100%;
  }

  .timeline-panel {
    margin-top: 12px;
  }

  .timeline-grid {
    grid-template-columns: 150px minmax(620px, 1fr);
    min-width: 770px;
  }

  .timeline-label:not(.timeline-axis-label) {
    padding-right: 8px;
  }

  .grid {
    margin-top: 12px;
  }
}

@media (max-width: 760px) {
  .table-wrap {
    border: 0;
    overflow: visible;
  }

  table,
  thead,
  tbody,
  tr,
  th,
  td {
    display: block;
    width: 100%;
  }

  table {
    min-width: 0;
  }

  thead {
    display: none;
  }

  tbody {
    display: grid;
    gap: 10px;
  }

  tbody tr {
    background: #fff;
    border: 1px solid var(--line);
    border-radius: 8px;
    padding: 10px 12px;
  }

  th:nth-child(n),
  td:nth-child(n) {
    width: 100%;
  }

  td {
    align-items: start;
    border-bottom: 0;
    display: grid;
    gap: 10px;
    grid-template-columns: 82px minmax(0, 1fr);
    padding: 7px 0;
  }

  td::before {
    color: var(--muted);
    content: attr(data-label);
    font-size: 12px;
    font-weight: 700;
  }

  td:nth-child(2) {
    padding-top: 2px;
  }

  .seq {
    color: var(--ink);
  }

  .status-stack {
    flex-direction: row;
    flex-wrap: wrap;
  }

  .actions {
    min-width: 0;
    white-space: normal;
  }
}
