:root {
  color-scheme: dark;
  --ink-950: #06141b;
  --ink-925: #081920;
  --ink-900: #0a1d25;
  --ink-850: #0d242d;
  --ink-800: #112d37;
  --line: rgba(171, 205, 198, 0.16);
  --line-strong: rgba(171, 205, 198, 0.28);
  --text-strong: #eff7f3;
  --text: #cbd9d5;
  --text-muted: #829995;
  --grass: #58a985;
  --grass-bright: #79c49f;
  --grass-soft: rgba(88, 169, 133, 0.14);
  --amber: #c6a362;
  --amber-soft: rgba(198, 163, 98, 0.14);
  --danger: #c87770;
  --danger-soft: rgba(200, 119, 112, 0.14);
  --blue-soft: rgba(104, 155, 180, 0.14);
  --panel-radius: 12px;
  --focus: #a4d9bc;
  --shadow: 0 18px 42px rgba(0, 0, 0, 0.18);
  font-family:
    "PingFang SC", "Microsoft YaHei", "Noto Sans CJK SC", "Source Han Sans SC",
    system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}

* {
  box-sizing: border-box;
}

html {
  min-width: 320px;
  min-height: 100%;
  background: var(--ink-950);
}

body {
  min-width: 320px;
  min-height: 100vh;
  margin: 0;
  overflow: hidden;
  color: var(--text);
  background:
    linear-gradient(180deg, rgba(88, 169, 133, 0.025), transparent 28%),
    var(--ink-950);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

button,
a {
  -webkit-tap-highlight-color: transparent;
}

button {
  font: inherit;
}

button:focus-visible,
a:focus-visible {
  outline: 2px solid var(--focus);
  outline-offset: 3px;
}

.skip-link {
  position: fixed;
  z-index: 100;
  top: 12px;
  left: 12px;
  padding: 10px 14px;
  color: var(--ink-950);
  background: var(--text-strong);
  border-radius: 6px;
  transform: translateY(-160%);
}

.skip-link:focus {
  transform: translateY(0);
}

.dashboard-shell {
  width: 100vw;
  height: 100vh;
  min-height: 680px;
  display: grid;
  grid-template-rows: 72px 72px minmax(0, 1fr) 32px;
  gap: 12px;
  padding: 32px 48px 24px;
}

.topbar {
  position: relative;
  min-width: 0;
  display: flex;
  align-items: center;
  justify-content: flex-end;
  border-bottom: 1px solid var(--line);
}

.brand-block,
.brand-heading-row,
.topbar-actions,
.clock-date-line,
.panel-header,
.policy-item-head,
.policy-metadata,
.card-header,
.task-line,
.panel-footer,
.carousel-indicator,
.screen-footer {
  display: flex;
  align-items: center;
}

.brand-block {
  position: absolute;
  left: 50%;
  min-width: 0;
  justify-content: center;
  transform: translateX(-50%);
}

.brand-monogram {
  position: absolute;
  right: calc(100% + 16px);
  flex: 0 0 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid rgba(121, 196, 159, 0.5);
  border-radius: 9px;
  color: var(--grass-bright);
  background: rgba(88, 169, 133, 0.06);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.brand-copy {
  min-width: 0;
  text-align: center;
}

.brand-heading-row {
  position: relative;
  min-width: 0;
  justify-content: center;
}

.brand-copy h1 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(25px, 1.65vw, 32px);
  font-weight: 650;
  line-height: 1.15;
  letter-spacing: 0.04em;
  white-space: nowrap;
}

.brand-copy p {
  margin: 7px 0 0;
  color: var(--text-muted);
  font-size: 14px;
  letter-spacing: 0.12em;
  white-space: nowrap;
}

.display-badge {
  position: absolute;
  top: 50%;
  left: calc(100% + 12px);
  flex: 0 0 auto;
  padding: 4px 8px;
  border: 1px solid var(--line-strong);
  border-radius: 4px;
  color: var(--text-muted);
  font-size: 12px;
  line-height: 1;
  letter-spacing: 0.08em;
  transform: translateY(-50%);
}

.topbar-actions {
  position: relative;
  z-index: 2;
  justify-content: flex-end;
  gap: 18px;
}

.live-indicator {
  height: 34px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  padding: 0 12px;
  border: 1px solid rgba(121, 196, 159, 0.24);
  border-radius: 999px;
  color: var(--grass-bright);
  background: rgba(88, 169, 133, 0.07);
  font-size: 12px;
  white-space: nowrap;
}

.live-indicator-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--grass-bright);
  box-shadow: 0 0 0 4px rgba(121, 196, 159, 0.08);
}

.clock-block {
  min-width: 180px;
  text-align: right;
}

.clock-date-line {
  justify-content: flex-end;
  gap: 10px;
  color: var(--text-muted);
  font-size: 12px;
  font-variant-numeric: tabular-nums;
}

.clock-time {
  display: block;
  margin-top: 2px;
  color: var(--text-strong);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 28px;
  font-weight: 550;
  line-height: 1;
  letter-spacing: 0.04em;
  font-variant-numeric: tabular-nums;
}

.compute-strip {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: minmax(290px, 0.72fr) minmax(250px, 0.62fr) minmax(0, 1.66fr);
  align-items: stretch;
  overflow: hidden;
  border: 1px solid rgba(121, 196, 159, 0.22);
  border-radius: 12px;
  background:
    linear-gradient(90deg, rgba(21, 57, 65, 0.9), rgba(8, 25, 32, 0.93)),
    var(--ink-900);
  box-shadow: 0 14px 32px rgba(0, 0, 0, 0.16);
}

.compute-strip::before {
  position: absolute;
  inset: 0 auto 0 0;
  width: 3px;
  content: "";
  background: rgba(130, 153, 149, 0.48);
}

.compute-heading,
.compute-primary,
.compute-connection {
  display: flex;
  align-items: center;
}

.compute-heading {
  min-width: 0;
  gap: 16px;
  padding: 0 24px;
}

.compute-mark {
  flex: 0 0 42px;
  width: 42px;
  height: 42px;
  display: grid;
  place-items: center;
  border: 1px solid var(--line-strong);
  border-radius: 10px;
  color: var(--text-muted);
  background: rgba(255, 255, 255, 0.018);
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
}

.compute-kicker {
  margin: 0 0 4px;
  color: var(--text-muted);
  font-size: 9px;
  font-weight: 650;
  letter-spacing: 0.16em;
}

.compute-heading h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: 21px;
  font-weight: 610;
  line-height: 1.15;
  letter-spacing: 0.025em;
  white-space: nowrap;
}

.compute-primary {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0 28px;
  border-inline: 1px solid rgba(171, 205, 198, 0.11);
}

.compute-primary > span {
  color: var(--text-muted);
  font-size: 12px;
  letter-spacing: 0.08em;
  white-space: nowrap;
}

.compute-primary strong {
  overflow: hidden;
  color: var(--text);
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 30px;
  font-weight: 620;
  line-height: 1;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.compute-details {
  min-width: 0;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  align-items: center;
}

.compute-detail {
  min-width: 0;
  display: flex;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
  padding: 0 18px;
}

.compute-detail + .compute-detail {
  border-left: 1px solid rgba(171, 205, 198, 0.09);
}

.compute-detail > span:first-child {
  flex: 0 0 auto;
  color: var(--text-muted);
  font-size: 10px;
  letter-spacing: 0.08em;
}

.compute-detail strong,
.compute-detail time {
  min-width: 0;
  overflow: hidden;
  color: var(--text);
  font-size: 13px;
  font-weight: 580;
  line-height: 1.25;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

.compute-cumulative-total strong {
  font-family: ui-monospace, "SFMono-Regular", Menlo, Consolas, monospace;
  font-size: 15px;
  font-weight: 620;
}

.compute-scope-note {
  color: var(--text-muted);
  font-size: 8px;
  line-height: 1;
  letter-spacing: 0.06em;
  white-space: nowrap;
}

.compute-connection {
  gap: 7px;
  flex-direction: row;
}

.compute-connection i {
  flex: 0 0 7px;
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: var(--text-muted);
  box-shadow: 0 0 0 4px rgba(130, 153, 149, 0.07);
}

[data-compute-status="ready"]::before {
  background: var(--grass);
}

[data-compute-status="ready"] .compute-mark,
[data-compute-status="ready"] .compute-primary strong,
[data-compute-status="ready"] .compute-cumulative-total strong,
[data-compute-status="ready"] .compute-connection {
  color: var(--grass-bright);
}

[data-compute-status="ready"] .compute-connection i {
  background: var(--grass-bright);
}

[data-compute-status="stale"] .compute-connection,
[data-compute-status="stale"] .compute-primary strong,
[data-compute-status="stale"] .compute-cumulative-total strong {
  color: var(--amber);
}

[data-compute-status="stale"] .compute-connection i {
  background: var(--amber);
}

[data-compute-status="error"] .compute-connection {
  color: var(--danger);
}

[data-compute-status="error"] .compute-connection i {
  background: var(--danger);
}

.dashboard-grid {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  grid-template-rows: repeat(2, minmax(0, 1fr));
  gap: 24px;
}

.dashboard-panel {
  position: relative;
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-rows: auto minmax(0, 1fr) auto;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: var(--panel-radius);
  background: linear-gradient(180deg, rgba(17, 45, 55, 0.84), rgba(8, 25, 32, 0.94));
  box-shadow: var(--shadow);
}

.dashboard-panel::before {
  position: absolute;
  top: 0;
  left: 20px;
  width: 54px;
  height: 2px;
  content: "";
  background: var(--grass);
}

.policy-panel,
.design-panel,
.incubation-panel {
  grid-column: auto;
}

.enterprise-panel::before {
  background: var(--amber);
}

.panel-header {
  min-width: 0;
  min-height: 64px;
  justify-content: space-between;
  gap: 20px;
  padding: 17px 20px 12px;
  border-bottom: 1px solid rgba(171, 205, 198, 0.09);
}

.panel-header > div:first-child {
  min-width: 0;
}

.panel-kicker {
  margin: 0 0 4px;
  color: var(--grass-bright);
  font-size: 10px;
  font-weight: 650;
  letter-spacing: 0.18em;
}

.enterprise-panel .panel-kicker {
  color: #d1b779;
}

.panel-header h2 {
  margin: 0;
  color: var(--text-strong);
  font-size: clamp(20px, 1.25vw, 24px);
  font-weight: 620;
  line-height: 1.18;
  letter-spacing: 0.025em;
}

.panel-title-count {
  color: var(--grass-bright);
  font-weight: 580;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.enterprise-panel .panel-title-count {
  color: #d1b779;
}

.panel-content {
  min-width: 0;
  min-height: 0;
  overflow: hidden;
}

.policy-list {
  display: grid;
  grid-auto-rows: minmax(0, 1fr);
  gap: 7px;
  padding: 10px 20px 8px;
}

.policy-item {
  min-width: 0;
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  column-gap: 18px;
  align-content: center;
  padding: 10px 12px;
  border: 1px solid rgba(171, 205, 198, 0.1);
  border-radius: 8px;
  background: rgba(4, 17, 23, 0.34);
}

.policy-item:hover {
  border-color: rgba(121, 196, 159, 0.23);
  background: rgba(10, 33, 41, 0.7);
}

.policy-item-main {
  min-width: 0;
}

.policy-item-head {
  min-width: 0;
  gap: 8px;
  margin-bottom: 4px;
}

.department-tag,
.verification-pill,
.status-pill,
.subject-label {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  white-space: nowrap;
}

.department-tag {
  flex: 0 0 auto;
  padding: 2px 7px;
  border-radius: 4px;
  color: var(--grass-bright);
  background: var(--grass-soft);
  font-size: 10px;
  font-weight: 650;
}

.verification-pill {
  flex: 0 1 auto;
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
}

.policy-item h3 {
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 570;
  line-height: 1.35;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.policy-summary {
  display: -webkit-box;
  margin: 4px 0 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 1;
}

.policy-item-side {
  min-width: 210px;
  display: grid;
  align-content: center;
  justify-items: end;
  gap: 7px;
}

.policy-metadata {
  justify-content: flex-end;
  gap: 11px;
  color: var(--text-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.policy-metadata strong {
  color: var(--text);
  font-weight: 530;
}

.source-link {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: var(--grass-bright);
  font-size: 11px;
  font-weight: 560;
  text-decoration: none;
}

.source-link:hover {
  text-decoration: underline;
  text-underline-offset: 3px;
}

.table-wrap {
  position: relative;
  padding: 8px 18px 6px;
  overflow: hidden;
}

.progress-table {
  width: 100%;
  height: 100%;
  border-collapse: collapse;
  table-layout: fixed;
}

.progress-table th,
.progress-table td {
  padding: 8px 8px;
  border-bottom: 1px solid rgba(171, 205, 198, 0.09);
  text-align: left;
  vertical-align: middle;
}

.progress-table th {
  color: var(--text-muted);
  font-size: 10px;
  font-weight: 560;
  letter-spacing: 0.08em;
}

.progress-table td {
  height: 47px;
  color: var(--text);
  font-size: 12px;
}

.progress-table th:nth-child(1),
.progress-table td:nth-child(1) {
  width: 36%;
}

.progress-table th:nth-child(2),
.progress-table td:nth-child(2) {
  width: 19%;
}

.progress-table th:nth-child(3),
.progress-table td:nth-child(3) {
  width: 18%;
}

.progress-table th:nth-child(4),
.progress-table td:nth-child(4) {
  width: 27%;
}

.task-name,
.designer-name,
.region-name {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.task-name {
  color: var(--text-strong);
  font-weight: 560;
}

.designer-name {
  color: #d9e5e1;
}

.status-cell {
  display: grid;
  gap: 5px;
}

.status-pill {
  padding: 3px 7px;
  border-radius: 999px;
  color: var(--text);
  background: rgba(130, 153, 149, 0.1);
  font-size: 10px;
  line-height: 1.2;
}

.status-pill.status-success {
  color: var(--grass-bright);
  background: var(--grass-soft);
}

.status-pill.status-active {
  color: #99c6d7;
  background: var(--blue-soft);
}

.status-pill.status-warning {
  color: #d9bd82;
  background: var(--amber-soft);
}

.status-pill.status-danger {
  color: #dfa39e;
  background: var(--danger-soft);
}

.completion-row {
  display: flex;
  align-items: center;
  gap: 6px;
}

.completion-track {
  width: min(74px, 100%);
  height: 3px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.completion-bar {
  width: 0;
  height: 100%;
  border-radius: inherit;
  background: var(--grass);
}

.completion-copy {
  color: var(--text-muted);
  font-size: 9px;
  font-variant-numeric: tabular-nums;
}

.incubation-list {
  display: grid;
  grid-template-columns: minmax(0, 1fr);
  grid-auto-rows: minmax(0, 1fr);
  gap: 8px;
  padding: 10px 20px 8px;
}

.incubation-card {
  min-width: 0;
  min-height: 0;
  display: grid;
  grid-template-columns:
    minmax(92px, 0.72fr)
    minmax(130px, 1.05fr)
    minmax(116px, 0.92fr)
    minmax(188px, 1.32fr);
  align-items: center;
  gap: 12px;
  padding: 9px 12px;
  border: 1px solid rgba(171, 205, 198, 0.11);
  border-radius: 9px;
  background: rgba(4, 17, 23, 0.34);
}

.card-header {
  min-width: 0;
  align-items: flex-start;
  flex-direction: column;
  justify-content: center;
  gap: 7px;
}

.subject-label {
  min-width: 0;
  overflow: hidden;
  color: var(--grass-bright);
  font-size: 10px;
  font-weight: 600;
  text-overflow: ellipsis;
}

.enterprise-panel .subject-label {
  color: #d1b779;
}

.incubation-card h3 {
  display: -webkit-box;
  margin: 0;
  overflow: hidden;
  color: var(--text-strong);
  font-size: 14px;
  font-weight: 600;
  line-height: 1.35;
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.task-line {
  min-width: 0;
  display: grid;
  align-content: center;
  align-items: start;
  gap: 4px;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.45;
}

.task-line-label {
  flex: 0 0 auto;
  color: var(--text-muted);
}

.task-line-value {
  display: -webkit-box;
  overflow: hidden;
  color: var(--text);
  -webkit-box-orient: vertical;
  -webkit-line-clamp: 2;
}

.income-grid {
  display: grid;
  grid-template-columns: minmax(0, 0.82fr) minmax(0, 1.18fr);
}

.income-cell {
  min-width: 0;
  display: grid;
  gap: 4px;
}

.income-cell + .income-cell {
  padding-left: 12px;
  border-left: 1px solid rgba(171, 205, 198, 0.1);
}

.income-label {
  color: var(--text-muted);
  font-size: 9px;
  letter-spacing: 0.08em;
}

.income-value {
  color: var(--text-strong);
  font-size: 12px;
  font-weight: 580;
  line-height: 1.25;
  overflow-wrap: anywhere;
  font-variant-numeric: tabular-nums;
}

.income-value.is-pending {
  color: var(--amber);
  font-weight: 520;
}

.empty-state {
  min-height: 100%;
  display: grid;
  align-content: center;
  justify-items: center;
  gap: 8px;
  padding: 28px;
  color: var(--text-muted);
  text-align: center;
}

.policy-list > .empty-state,
.incubation-list > .empty-state {
  grid-column: 1 / -1;
}

.empty-state.is-hidden {
  display: none;
}

.empty-mark {
  width: 30px;
  height: 3px;
  margin-bottom: 4px;
  border-radius: 999px;
  background: var(--line-strong);
}

.empty-state h3 {
  margin: 0;
  color: var(--text);
  font-size: 14px;
  font-weight: 570;
}

.empty-state p {
  max-width: 420px;
  margin: 0;
  color: var(--text-muted);
  font-size: 11px;
  line-height: 1.55;
}

.panel-footer {
  min-width: 0;
  min-height: 38px;
  justify-content: space-between;
  gap: 12px;
  padding: 7px 14px 8px 20px;
  border-top: 1px solid rgba(171, 205, 198, 0.09);
}

.content-boundary {
  min-width: 0;
  overflow: hidden;
  color: var(--text-muted);
  font-size: 10px;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.carousel-indicator {
  flex: 0 0 auto;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  color: var(--text-muted);
  font-size: 10px;
  font-variant-numeric: tabular-nums;
  white-space: nowrap;
}

.carousel-viewport.is-rotating .policy-item,
.carousel-viewport.is-rotating .progress-table tbody tr,
.carousel-viewport.is-rotating .incubation-card {
  animation: carousel-enter 560ms cubic-bezier(0.22, 1, 0.36, 1) both;
}

.carousel-viewport.is-rotating .policy-item:nth-child(2),
.carousel-viewport.is-rotating .progress-table tbody tr:nth-child(2),
.carousel-viewport.is-rotating .incubation-card:nth-child(2) {
  animation-delay: 45ms;
}

.carousel-viewport.is-rotating .policy-item:nth-child(3),
.carousel-viewport.is-rotating .progress-table tbody tr:nth-child(3),
.carousel-viewport.is-rotating .incubation-card:nth-child(3) {
  animation-delay: 90ms;
}

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

.screen-footer {
  min-width: 0;
  justify-content: space-between;
  gap: 18px;
  color: rgba(130, 153, 149, 0.82);
  font-size: 10px;
  line-height: 1.2;
  letter-spacing: 0.04em;
}

.screen-footer > * {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.noscript-message {
  position: fixed;
  inset: 0;
  z-index: 200;
  display: grid;
  place-items: center;
  padding: 24px;
  color: var(--text-strong);
  background: var(--ink-950);
  font-size: 18px;
  text-align: center;
}

@media (max-width: 1500px), (max-height: 820px) {
  .dashboard-shell {
    grid-template-rows: 64px 60px minmax(0, 1fr) 24px;
    gap: 8px;
    padding: 16px 28px 12px;
  }

  .compute-strip {
    grid-template-columns: minmax(230px, 0.7fr) minmax(200px, 0.56fr) minmax(0, 1.74fr);
  }

  .compute-heading,
  .compute-primary {
    padding-inline: 14px;
  }

  .compute-mark {
    flex-basis: 34px;
    width: 34px;
    height: 34px;
  }

  .compute-heading h2 {
    font-size: 18px;
  }

  .compute-primary {
    gap: 4px;
  }

  .compute-primary strong {
    font-size: 24px;
  }

  .compute-detail {
    gap: 4px;
    padding-inline: 11px;
  }

  .compute-detail > span:first-child {
    font-size: 8px;
  }

  .compute-detail strong,
  .compute-detail time {
    font-size: 11px;
  }

  .compute-cumulative-total strong {
    font-size: 13px;
  }

  .dashboard-grid {
    gap: 12px;
  }

  .panel-header {
    padding: 13px 16px 10px;
  }

  .policy-list {
    padding: 7px 16px 6px;
  }

  .policy-item {
    padding: 7px 10px;
  }

  .policy-summary {
    display: none;
  }

  .incubation-list {
    padding: 10px 16px 8px;
  }

  .incubation-card {
    gap: 7px;
    padding: 11px;
  }

  .panel-footer {
    min-height: 32px;
    padding-top: 4px;
    padding-bottom: 4px;
  }
}

@media (max-width: 1120px) {
  body {
    overflow: auto;
  }

  .dashboard-shell {
    width: 100%;
    height: auto;
    min-height: 100svh;
    grid-template-rows: auto auto auto auto;
    gap: 16px;
    padding: 20px;
  }

  .topbar {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
    row-gap: 16px;
    padding-bottom: 16px;
  }

  .brand-block {
    position: relative;
    left: auto;
    grid-column: 1;
    justify-self: center;
    transform: none;
  }

  .topbar-actions {
    width: 100%;
    justify-content: center;
  }

  .compute-strip {
    min-height: 144px;
    grid-template-columns: minmax(0, 1fr) minmax(260px, 0.82fr);
  }

  .compute-heading,
  .compute-primary {
    min-height: 72px;
  }

  .compute-primary {
    border-right: 0;
  }

  .compute-details {
    min-height: 72px;
    grid-column: 1 / -1;
    border-top: 1px solid rgba(171, 205, 198, 0.09);
  }

  .dashboard-grid {
    grid-template-columns: 1fr;
    grid-template-rows: auto;
    gap: 16px;
  }

  .policy-panel,
  .design-panel,
  .incubation-panel {
    grid-column: 1;
    min-height: 470px;
  }

  .incubation-list {
    min-height: 290px;
  }

  .screen-footer {
    min-height: 32px;
  }
}

@media (max-width: 680px) {
  .dashboard-shell {
    padding: 14px 12px 18px;
  }

  .topbar {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  .brand-block,
  .brand-heading-row {
    align-items: center;
  }

  .brand-monogram {
    flex-basis: 38px;
    height: 38px;
  }

  .brand-heading-row {
    justify-content: center;
  }

  .brand-copy h1 {
    font-size: 23px;
    white-space: normal;
  }

  .brand-copy p {
    font-size: 11px;
    line-height: 1.5;
    white-space: normal;
  }

  .topbar-actions {
    width: 100%;
  }

  .compute-strip {
    grid-template-columns: minmax(0, 1fr);
  }

  .compute-heading,
  .compute-primary {
    min-height: 66px;
    padding-inline: 14px;
  }

  .compute-primary {
    border-inline: 0;
    border-top: 1px solid rgba(171, 205, 198, 0.09);
    border-bottom: 1px solid rgba(171, 205, 198, 0.09);
  }

  .compute-primary strong {
    overflow: visible;
    text-overflow: clip;
    white-space: normal;
  }

  .compute-details {
    min-height: 120px;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    border-top: 0;
  }

  .compute-detail {
    display: grid;
    min-height: 60px;
    align-content: center;
    padding: 8px 14px;
  }

  .compute-detail:nth-child(3) {
    border-left: 0;
  }

  .compute-detail:nth-child(3),
  .compute-detail:nth-child(4) {
    border-top: 1px solid rgba(171, 205, 198, 0.09);
  }

  .compute-cumulative-total strong {
    font-size: 16px;
  }

  .topbar-actions {
    justify-content: space-between;
  }

  .clock-block {
    min-width: 155px;
  }

  .clock-time {
    font-size: 24px;
  }

  .dashboard-panel,
  .policy-panel,
  .design-panel,
  .incubation-panel {
    height: 520px;
    min-height: 520px;
  }

  .panel-header {
    align-items: flex-start;
    flex-direction: column;
    gap: 9px;
    padding: 15px 14px 11px;
  }

  .panel-header h2 {
    font-size: 20px;
  }

  .policy-list {
    padding: 9px 12px;
  }

  .policy-item {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px;
  }

  .policy-item h3 {
    white-space: normal;
  }

  .policy-summary {
    display: -webkit-box;
    -webkit-line-clamp: 2;
  }

  .policy-item-side {
    min-width: 0;
    justify-items: start;
  }

  .policy-metadata {
    justify-content: flex-start;
    flex-wrap: wrap;
    white-space: normal;
  }

  .table-wrap {
    min-height: 240px;
    padding: 10px 12px;
    overflow: visible;
  }

  .progress-table,
  .progress-table tbody,
  .progress-table tr,
  .progress-table td {
    display: block;
    width: 100%;
  }

  .progress-table thead {
    position: absolute;
    width: 1px;
    height: 1px;
    overflow: hidden;
    clip: rect(0 0 0 0);
    clip-path: inset(50%);
    white-space: nowrap;
  }

  .progress-table tbody {
    display: grid;
    gap: 10px;
  }

  .progress-table tr {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 8px 11px;
    border: 1px solid rgba(171, 205, 198, 0.1);
    border-radius: 8px;
    background: rgba(4, 17, 23, 0.34);
  }

  .progress-table td,
  .progress-table td:nth-child(n) {
    min-height: 32px;
    height: auto;
    display: grid;
    width: auto;
    min-width: 0;
    grid-template-columns: minmax(0, 1fr);
    align-content: start;
    gap: 4px;
    padding: 6px 0;
    border-bottom: 1px solid rgba(171, 205, 198, 0.08);
    font-size: 12px;
  }

  .progress-table td:first-child,
  .progress-table td:last-child {
    grid-column: 1 / -1;
  }

  .progress-table td:nth-child(2) {
    padding-right: 10px;
  }

  .progress-table td:last-child {
    border-bottom: 0;
  }

  .progress-table td::before {
    content: attr(data-label);
    color: var(--text-muted);
    font-size: 10px;
  }

  .task-name,
  .designer-name,
  .region-name {
    white-space: normal;
    overflow-wrap: anywhere;
  }

  .status-cell {
    justify-items: start;
  }

  .incubation-list {
    grid-template-columns: 1fr;
    padding: 12px;
  }

  .incubation-card {
    min-height: 0;
    grid-template-columns: minmax(0, 1fr);
    grid-template-rows: auto auto minmax(0, 1fr) auto;
    align-items: start;
    gap: 7px;
    padding: 14px;
  }

  .card-header {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
  }

  .task-line {
    align-content: start;
  }

  .panel-footer {
    align-items: flex-start;
    padding: 8px 10px 9px 14px;
  }

  .content-boundary {
    white-space: normal;
  }

  .screen-footer {
    align-items: flex-start;
    flex-direction: column;
    gap: 6px;
    line-height: 1.45;
  }

  .screen-footer > * {
    white-space: normal;
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    scroll-behavior: auto !important;
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    transition-duration: 0.01ms !important;
  }
}
