:root {
  color-scheme: dark;
  --bg: #07101b;
  --panel: rgba(14, 24, 37, 0.92);
  --panel-soft: rgba(21, 34, 50, 0.95);
  --line: rgba(143, 172, 207, 0.16);
  --text: #f6f8fb;
  --muted: #9fb0c7;
  --blue: #2f9cff;
  --cyan: #29d3ff;
  --green: #4ade80;
  --mint: #5eead4;
  --yellow: #facc15;
  --orange: #fb923c;
  --purple: #c084fc;
  --red: #ff6b6b;
}

* {
  box-sizing: border-box;
}

html {
  scroll-behavior: smooth;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background:
    radial-gradient(circle at 78% 0%, rgba(47, 156, 255, 0.12), transparent 28%),
    radial-gradient(circle at 18% 10%, rgba(94, 234, 212, 0.08), transparent 26%),
    var(--bg);
  color: var(--text);
}

button,
select {
  font: inherit;
}

.app-shell {
  display: grid;
  grid-template-columns: 230px minmax(0, 1fr);
  min-height: 100vh;
}

.sidebar {
  position: sticky;
  top: 0;
  display: flex;
  flex-direction: column;
  height: 100vh;
  overflow-y: auto;
  padding: 28px 22px;
  border-right: 1px solid var(--line);
  background: rgba(5, 13, 23, 0.94);
  box-shadow: 18px 0 54px rgba(0, 0, 0, 0.28);
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  margin-bottom: 42px;
}

.brand-mark {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 8px;
  background: linear-gradient(135deg, var(--blue), var(--mint));
  color: #071019;
  font-weight: 900;
}

.brand strong,
.brand small {
  display: block;
}

.brand small,
.eyebrow,
.metric span,
.progress-card span,
.sidebar-panel span {
  color: var(--muted);
}

.nav {
  display: grid;
  gap: 8px;
}

.nav a {
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 11px 12px;
  border: 1px solid transparent;
  border-radius: 8px;
  color: var(--muted);
  text-decoration: none;
}

.nav a.active,
.nav a:hover {
  border-color: rgba(47, 156, 255, 0.48);
  background: rgba(47, 156, 255, 0.12);
  color: #dff1ff;
}

.nav-icon {
  display: inline-grid;
  place-items: center;
  width: 24px;
  height: 24px;
  border: 1px solid var(--line);
  border-radius: 7px;
  color: var(--blue);
  font-size: 11px;
  font-weight: 800;
}

.sidebar-panel {
  margin-top: 24px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.sidebar-panel strong {
  display: block;
  margin-top: 6px;
  font-size: 13px;
}

main {
  width: min(1500px, 100%);
  margin: 0 auto;
  padding: 24px 34px 36px;
}

.topbar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px;
  margin-bottom: 24px;
}

.eyebrow {
  margin: 0 0 6px;
  font-size: 12px;
  font-weight: 800;
  letter-spacing: 0;
  text-transform: uppercase;
}

h1,
h2,
h3,
p {
  margin-top: 0;
}

h1 {
  margin-bottom: 0;
  font-size: 30px;
}

h2 {
  max-width: 700px;
  margin-bottom: 10px;
  font-size: 38px;
  line-height: 1.05;
}

h3 {
  margin-bottom: 0;
  font-size: 18px;
}

.project-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  margin-bottom: 18px;
}

.project-identity {
  display: flex;
  min-width: 0;
  align-items: center;
  gap: 18px;
}

.project-photo {
  position: relative;
  flex: 0 0 150px;
  width: 150px;
  height: 78px;
  overflow: hidden;
  border: 1px solid rgba(47, 156, 255, 0.24);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(47, 156, 255, 0.32), rgba(94, 234, 212, 0.14)),
    radial-gradient(circle at 70% 20%, rgba(250, 204, 21, 0.18), transparent 34%),
    var(--panel-soft);
  background-size: cover;
  background-position: center;
  box-shadow: 0 20px 48px rgba(0, 0, 0, 0.28);
}

.project-photo::after {
  content: "OBRA";
  position: absolute;
  right: 10px;
  bottom: 8px;
  color: rgba(255, 255, 255, 0.78);
  font-size: 11px;
  font-weight: 900;
}

.project-photo.has-photo::after {
  content: "";
}

.project-address {
  margin: 6px 0 0;
  color: var(--text);
  font-size: 14px;
}

.header-actions {
  display: flex;
  align-items: center;
  justify-content: flex-end;
  gap: 10px;
}

.update-card {
  display: grid;
  gap: 3px;
  min-height: 42px;
  padding: 7px 12px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.update-card span,
.update-card strong {
  white-space: nowrap;
}

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

.update-card strong {
  font-size: 13px;
}

.toolbar {
  display: flex;
  align-items: center;
  gap: 10px;
}

select,
button {
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
  color: var(--text);
}

select {
  padding: 0 42px 0 12px;
}

button {
  padding: 0 16px;
  cursor: pointer;
}

button:hover {
  border-color: rgba(64, 168, 255, 0.55);
}

.secondary-button {
  background: rgba(255, 255, 255, 0.04);
}

.danger-button {
  border-color: rgba(255, 107, 107, 0.45);
  background: rgba(255, 107, 107, 0.12);
  color: #ffd5d5;
}

.danger-button:disabled {
  cursor: not-allowed;
  opacity: 0.45;
}

.hero {
  display: grid;
  grid-template-columns: 1fr 340px;
  gap: 24px;
  min-height: 280px;
  align-items: end;
  padding: 30px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(64, 168, 255, 0.18), rgba(93, 227, 162, 0.09)),
    radial-gradient(circle at 80% 20%, rgba(246, 200, 95, 0.12), transparent 30%),
    var(--panel);
}

.hero-copy p {
  max-width: 660px;
  color: var(--muted);
  font-size: 16px;
}

.status-pill {
  display: inline-flex;
  margin-bottom: 24px;
  padding: 8px 10px;
  border: 1px solid rgba(93, 227, 162, 0.35);
  border-radius: 8px;
  background: rgba(93, 227, 162, 0.09);
  color: var(--green);
  font-size: 13px;
  font-weight: 700;
}

.status-pill.green,
.status-metric[data-tone="green"] {
  border-color: rgba(93, 227, 162, 0.35);
  color: var(--green);
}

.status-pill.yellow,
.status-metric[data-tone="yellow"] {
  border-color: rgba(246, 200, 95, 0.42);
  color: var(--yellow);
}

.status-pill.red,
.status-metric[data-tone="red"] {
  border-color: rgba(255, 107, 107, 0.45);
  color: var(--red);
}

.status-pill.blue,
.status-metric[data-tone="blue"] {
  border-color: rgba(64, 168, 255, 0.42);
  color: var(--blue);
}

.progress-card {
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(13, 16, 23, 0.72);
}

.progress-card strong {
  display: block;
  margin: 14px 0;
  font-size: 48px;
}

.progress-track,
.bar-track {
  height: 8px;
  overflow: hidden;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
}

.progress-fill,
.bar-fill {
  height: 100%;
  border-radius: inherit;
  background: linear-gradient(90deg, var(--blue), var(--green));
}

.metrics-grid,
.content-grid {
  display: grid;
  gap: 16px;
  margin-top: 16px;
}

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

.kpi-grid {
  display: grid;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  gap: 16px;
  margin-top: 16px;
}

.content-grid {
  grid-template-columns: minmax(0, 1.55fr) minmax(320px, 0.9fr);
}

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

.metric {
  padding: 18px;
}

.metric strong {
  display: block;
  margin-top: 8px;
  font-size: 24px;
}

.metric small {
  display: block;
  margin-top: 8px;
  color: var(--muted);
  line-height: 1.35;
}

.executive-dashboard {
  display: grid;
  gap: 16px;
}

.page-section.hidden-page {
  display: none !important;
}

.module-page {
  min-height: 520px;
}

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

.premium-card {
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(150deg, rgba(255, 255, 255, 0.045), rgba(255, 255, 255, 0.015)),
    rgba(12, 22, 34, 0.88);
  box-shadow: 0 18px 46px rgba(0, 0, 0, 0.24);
  padding: 18px;
}

.card-title {
  display: flex;
  align-items: center;
  gap: 10px;
  margin-bottom: 16px;
}

.card-title strong {
  font-size: 14px;
}

.card-icon {
  display: inline-grid;
  place-items: center;
  width: 28px;
  height: 28px;
  border: 1px solid currentColor;
  border-radius: 8px;
  font-size: 11px;
  font-weight: 900;
}

.card-icon.green { color: var(--green); }
.card-icon.blue { color: var(--blue); }
.card-icon.white { color: var(--text); }
.card-icon.orange { color: var(--orange); }
.card-icon.purple { color: var(--purple); }

.health-card {
  min-width: 210px;
}

.gauge-wrap {
  display: grid;
  justify-items: center;
  gap: 8px;
}

.health-gauge {
  --score: 0;
  display: grid;
  place-items: center;
  width: 128px;
  height: 128px;
  border-radius: 50%;
  background:
    radial-gradient(circle at center, #0d1724 0 54%, transparent 55%),
    conic-gradient(var(--green) 0 calc(var(--score) * 1%), var(--yellow) 0 78%, var(--red) 0 100%);
  box-shadow: inset 0 0 0 1px rgba(255, 255, 255, 0.05);
}

.health-gauge strong {
  font-size: 34px;
}

.health-label {
  color: var(--green);
  font-weight: 800;
}

.ring-row {
  display: flex;
  align-items: center;
  gap: 18px;
}

.ring-row strong {
  display: block;
  font-size: 30px;
}

.ring-row span {
  color: var(--muted);
  font-size: 13px;
}

.donut-ring {
  --value: 0;
  position: relative;
  width: 78px;
  height: 78px;
  flex: 0 0 78px;
  border-radius: 50%;
  background: conic-gradient(var(--blue) calc(var(--value) * 1%), rgba(148, 163, 184, 0.22) 0);
}

.donut-ring::after {
  content: "";
  position: absolute;
  inset: 12px;
  border-radius: 50%;
  background: #0e1825;
}

.green-ring {
  background: conic-gradient(var(--green) calc(var(--value) * 1%), rgba(148, 163, 184, 0.22) 0);
}

.blue-ring {
  background: conic-gradient(var(--blue) calc(var(--value) * 1%), rgba(148, 163, 184, 0.22) 0);
}

.deadline-list {
  display: grid;
  gap: 11px;
  color: var(--muted);
  font-size: 14px;
}

.deadline-list strong,
.deadline-card small strong {
  color: var(--text);
}

.deadline-list span:last-child strong {
  color: var(--blue);
  font-size: 18px;
}

.deadline-card small {
  display: block;
  margin-top: 10px;
  color: var(--muted);
}

.big-number {
  display: block;
  margin: 24px 0 20px;
  font-size: 34px;
}

.accent-orange .big-number,
.accent-orange a {
  color: var(--orange);
}

.accent-purple .big-number,
.accent-purple a {
  color: var(--purple);
}

.premium-card a {
  color: var(--blue);
  text-decoration: none;
  font-weight: 700;
}

.dashboard-main-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.55fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
  gap: 16px;
}

.dashboard-focus-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.15fr) minmax(0, 1fr) minmax(0, 1fr);
  gap: 16px;
}

.dashboard-bottom-grid {
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 1fr) minmax(0, 1fr) minmax(0, 1.35fr);
  gap: 16px;
}

.schedule-panel {
  min-height: 390px;
}

.schedule-table {
  display: grid;
  gap: 0;
}

.schedule-head,
.schedule-line {
  display: grid;
  grid-template-columns: minmax(190px, 1.35fr) 105px 86px 86px minmax(118px, 0.8fr);
  gap: 14px;
  align-items: center;
}

.schedule-head {
  padding: 0 0 10px;
  border-bottom: 1px solid var(--line);
  color: var(--muted);
  font-size: 12px;
  text-transform: uppercase;
}

.schedule-line {
  min-height: 32px;
  border-bottom: 1px solid rgba(143, 172, 207, 0.1);
  font-size: 13px;
}

.stage-name {
  display: flex;
  align-items: center;
  gap: 10px;
}

.stage-name span {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 999px;
  background: rgba(148, 163, 184, 0.22);
  color: var(--text);
  font-size: 11px;
  font-weight: 800;
}

.stage-status {
  width: fit-content;
  padding: 5px 9px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  border-radius: 999px;
  color: var(--muted);
  font-size: 12px;
}

.stage-status.done {
  color: var(--green);
  border-color: rgba(74, 222, 128, 0.3);
}

.stage-status.active {
  color: var(--blue);
  border-color: rgba(47, 156, 255, 0.36);
}

.stage-status.late {
  color: var(--red);
  border-color: rgba(255, 107, 107, 0.36);
}

.stage-status.pending {
  color: var(--yellow);
  border-color: rgba(250, 204, 21, 0.34);
}

.activity-list {
  display: grid;
  gap: 18px;
}

.activity-row {
  display: grid;
  grid-template-columns: 22px 1fr auto;
  align-items: start;
  gap: 10px;
  padding: 9px 0;
}

.activity-row strong,
.activity-row small {
  display: block;
}

.activity-row small,
.activity-row time {
  color: var(--muted);
  font-size: 12px;
}

.check-dot {
  display: inline-grid;
  place-items: center;
  width: 20px;
  height: 20px;
  border: 1px solid rgba(148, 163, 184, 0.42);
  border-radius: 50%;
}

.check-dot::after {
  content: "";
  width: 6px;
  height: 6px;
  border-radius: 50%;
  background: var(--green);
}

.weekly-card .executive-text {
  padding: 18px;
  border: 1px solid rgba(143, 172, 207, 0.12);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.035);
}

.weekly-stats {
  display: grid;
  grid-template-columns: repeat(3, 1fr);
  gap: 0;
  margin-top: 16px;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 8px;
}

.weekly-stats div {
  display: grid;
  gap: 8px;
  padding: 15px;
  border-right: 1px solid var(--line);
}

.weekly-stats div:last-child {
  border-right: 0;
}

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

.weekly-stats strong {
  font-size: 26px;
}

.finance-summary {
  display: grid;
  gap: 10px;
}

.finance-row {
  display: grid;
  grid-template-columns: 12px 1fr auto;
  align-items: center;
  gap: 10px;
  color: var(--muted);
  font-size: 13px;
}

.finance-row strong {
  color: var(--text);
}

.legend-dot {
  width: 8px;
  height: 8px;
  border-radius: 50%;
  background: var(--blue);
}

.legend-dot.cyan { background: var(--cyan); }
.legend-dot.green { background: var(--green); }
.legend-dot.mint { background: var(--mint); }
.legend-dot.yellow { background: var(--yellow); }

@media (max-width: 1500px) {
  .top-cards {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .dashboard-main-grid,
  .dashboard-focus-grid,
  .dashboard-bottom-grid {
    grid-template-columns: 1fr;
  }

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

.panel {
  min-height: 320px;
  padding: 20px;
}

.panel.large {
  min-height: 360px;
}

.wide-panel {
  margin-top: 16px;
}

.panel-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  margin-bottom: 18px;
}

.bar-list,
.work-list,
.compact-list,
.timeline,
.answer-grid,
.finance-list,
.schedule-list {
  display: grid;
  gap: 13px;
}

.answer-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-top: 18px;
}

.executive-text {
  margin-bottom: 0;
  color: var(--text);
  font-size: 16px;
  line-height: 1.65;
}

.answer-card,
.finance-card,
.schedule-item,
.next-block {
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.answer-card,
.finance-card {
  padding: 14px;
}

.answer-card span,
.finance-card span,
.next-block small,
.gallery-card span {
  color: var(--muted);
  font-size: 13px;
}

.answer-card strong,
.finance-card strong {
  display: block;
  margin-top: 8px;
  line-height: 1.35;
}

.finance-list {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin-bottom: 18px;
}

.chart-list {
  margin-top: 16px;
}

.next-block {
  display: grid;
  gap: 10px;
  padding: 13px;
}

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

.schedule-item {
  display: grid;
  gap: 12px;
  padding: 15px;
}

.schedule-item small {
  color: var(--muted);
}

.schedule-progress {
  display: grid;
  grid-template-columns: 1fr auto;
  align-items: center;
  gap: 10px;
}

.tag {
  display: inline-flex;
  width: fit-content;
  padding: 6px 9px;
  border: 1px solid rgba(64, 168, 255, 0.32);
  border-radius: 8px;
  color: var(--blue);
  background: rgba(64, 168, 255, 0.08);
  font-size: 12px;
  font-weight: 700;
}

.bar-row {
  display: grid;
  gap: 8px;
}

.bar-label {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  color: var(--muted);
  font-size: 14px;
}

.bar-label strong {
  color: var(--text);
  font-weight: 700;
}

.work-card,
.list-row,
.timeline-item {
  padding: 13px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel-soft);
}

.work-card header,
.list-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 14px;
}

.work-card small,
.list-row small,
.timeline-item small {
  color: var(--muted);
}

.work-card .progress-track {
  margin-top: 12px;
}

.timeline-item {
  display: grid;
  gap: 6px;
}

.timeline-item strong {
  font-size: 15px;
}

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

.gallery-card {
  position: relative;
  display: flex;
  align-items: flex-end;
  min-height: 92px;
  overflow: hidden;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background:
    linear-gradient(135deg, rgba(64, 168, 255, 0.16), rgba(93, 227, 162, 0.08)),
    var(--panel-soft);
  background-position: center;
  background-size: cover;
}

.gallery-card.has-image {
  min-height: 112px;
}

.gallery-card div {
  position: relative;
  z-index: 1;
}

.gallery-card strong {
  display: block;
  margin: 6px 0 4px;
  font-size: 13px;
  line-height: 1.25;
}

.gallery-card a,
.list-row a {
  color: var(--green);
  text-decoration: none;
  font-weight: 700;
}

.empty {
  padding: 22px;
  border: 1px dashed var(--line);
  border-radius: 8px;
  color: var(--muted);
  background: rgba(255, 255, 255, 0.03);
}

.hidden {
  display: none !important;
}

.admin-modal {
  width: min(440px, calc(100vw - 32px));
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0;
  background: var(--panel);
  color: var(--text);
}

.admin-modal::backdrop {
  background: rgba(0, 0, 0, 0.62);
  backdrop-filter: blur(6px);
}

.admin-login-card {
  position: relative;
  display: grid;
  gap: 14px;
  padding: 26px;
}

.admin-login-card p {
  color: var(--muted);
}

.admin-login-card input,
.manager-form input,
.manager-form textarea {
  width: 100%;
  min-height: 42px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 10px 12px;
  background: var(--panel-soft);
  color: var(--text);
  font: inherit;
}

.admin-login-card small {
  min-height: 18px;
  color: var(--yellow);
}

.modal-close {
  position: absolute;
  top: 12px;
  right: 12px;
  min-height: 32px;
  width: 32px;
  padding: 0;
}

.manager-panel {
  margin-top: 16px;
  padding: 20px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: var(--panel);
}

.manager-toolbar {
  display: flex;
  gap: 10px;
  margin-bottom: 16px;
}

.manager-help {
  margin-bottom: 16px;
  padding: 14px 16px;
  border: 1px solid rgba(47, 156, 255, 0.24);
  border-radius: 8px;
  background: rgba(47, 156, 255, 0.08);
}

.manager-help strong {
  display: block;
  margin-bottom: 6px;
}

.manager-help p {
  margin: 0;
  color: var(--muted);
  line-height: 1.55;
}

.manager-grid {
  display: grid;
  grid-template-columns: minmax(260px, 0.75fr) minmax(0, 1.35fr);
  gap: 16px;
}

.record-list {
  display: grid;
  align-content: start;
  max-height: 700px;
  overflow: auto;
  gap: 8px;
  padding-right: 4px;
}

.record-item {
  display: grid;
  justify-items: start;
  gap: 5px;
  width: 100%;
  min-height: auto;
  padding: 12px;
  text-align: left;
  background: var(--panel-soft);
}

.record-item.active {
  border-color: rgba(93, 227, 162, 0.62);
  background: rgba(93, 227, 162, 0.11);
}

.record-item span,
.form-title small,
.manager-form label span,
.admin-status {
  color: var(--muted);
  font-size: 13px;
}

.manager-form {
  display: grid;
  gap: 16px;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 8px;
  background: rgba(255, 255, 255, 0.03);
}

.form-title {
  display: grid;
  gap: 4px;
}

.form-fields {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

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

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

.checkbox-field {
  align-content: end;
}

.checkbox-field input {
  width: 22px;
  min-height: 22px;
}

.form-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.admin-status {
  min-height: 18px;
  margin: 14px 0 0;
}

.admin-status.error {
  color: var(--red);
}

@media (max-width: 980px) {
  .app-shell {
    grid-template-columns: 1fr;
  }

  .sidebar {
    position: static;
    height: auto;
  }

  .sidebar-panel {
    position: static;
    margin-top: 20px;
  }

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

  .hero,
  .content-grid,
  .metrics-grid,
  .kpi-grid,
  .schedule-list,
  .top-cards,
  .dashboard-main-grid,
  .dashboard-focus-grid,
  .dashboard-bottom-grid,
  .manager-grid,
  .form-fields {
    grid-template-columns: 1fr;
  }

  .project-header,
  .header-actions {
    align-items: stretch;
    flex-direction: column;
  }

  .project-identity {
    align-items: flex-start;
  }

  .schedule-head {
    display: none;
  }

  .schedule-line {
    grid-template-columns: 1fr;
    gap: 8px;
    padding: 12px 0;
  }
}

@media (max-width: 620px) {
  main {
    padding: 18px;
  }

  .topbar,
  .toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  h1 {
    font-size: 24px;
  }

  h2 {
    font-size: 30px;
  }

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

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

  .answer-grid,
  .finance-list {
    grid-template-columns: 1fr;
  }
}
