:root {
  --bg: #f2f5f8;
  --panel: #ffffff;
  --text: #1f2937;
  --muted: #6b7280;
  --line: #d1d5db;
  --brand: #0f766e;
  --brand-soft: #ccfbf1;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  font-family: "Segoe UI", Tahoma, sans-serif;
  background: linear-gradient(180deg, #eaf3f6 0%, var(--bg) 45%);
  color: var(--text);
}

body.reports-page {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.14), transparent 28%),
    radial-gradient(circle at top right, rgba(245, 158, 11, 0.12), transparent 22%),
    linear-gradient(180deg, #f4f7fb 0%, #eef3f8 55%, #f6f8fb 100%);
}

body.login-page {
  background:
    radial-gradient(circle at top left, rgba(14, 165, 233, 0.14), transparent 26%),
    radial-gradient(circle at bottom right, rgba(37, 99, 235, 0.16), transparent 24%),
    linear-gradient(135deg, #f4f8fb 0%, #edf4fb 48%, #f7fafc 100%);
}

.login-shell {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 28px;
}

.login-layout {
  width: min(1180px, 100%);
  display: grid;
  grid-template-columns: minmax(0, 1.05fr) minmax(360px, 420px);
  gap: 24px;
  align-items: stretch;
}

.login-intro {
  position: relative;
  overflow: hidden;
  padding: 36px;
  border-radius: 28px;
  background:
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.28), transparent 30%),
    linear-gradient(145deg, #081429 0%, #102a43 44%, #164e63 100%);
  color: #f8fafc;
  box-shadow: 0 28px 60px rgba(15, 23, 42, 0.18);
}

.login-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.14);
  color: #dbeafe;
  font-size: 12px;
  letter-spacing: 0.12em;
  text-transform: uppercase;
}

.login-intro h1 {
  margin: 18px 0 12px;
  font-size: clamp(38px, 5vw, 62px);
  line-height: 0.98;
  letter-spacing: -0.05em;
  max-width: 10ch;
}

.login-intro-copy {
  margin: 0;
  max-width: 56ch;
  color: rgba(226, 232, 240, 0.9);
  font-size: 18px;
  line-height: 1.6;
}

.login-intro-grid {
  margin-top: 28px;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 14px;
}

.login-intro-card {
  min-height: 156px;
  padding: 18px;
  border-radius: 22px;
  display: grid;
  align-content: start;
  gap: 10px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.login-intro-card strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.login-intro-card span {
  color: rgba(226, 232, 240, 0.84);
  font-size: 14px;
  line-height: 1.55;
}

.login-panel {
  width: 100%;
  max-width: 420px;
  min-width: 0;
  padding: 28px;
  border-radius: 28px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 28%);
  box-shadow: 0 24px 54px rgba(15, 23, 42, 0.12);
  overflow: hidden;
}

.login-brand-lockup {
  display: flex;
  justify-content: flex-start;
  margin-bottom: 20px;
}

.login-brand-lockup img {
  width: min(100%, 220px);
  height: auto;
  display: block;
}

.login-panel-kicker {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: #e0f2fe;
  color: #0f4f68;
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.login-panel h2 {
  margin: 0 0 8px;
  font-size: 34px;
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.login-panel-copy {
  margin: 0;
  color: #64748b;
  line-height: 1.6;
}

.login-panel .login-form {
  margin-top: 20px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  width: 100%;
  min-width: 0;
}

.login-panel .login-form > label,
.login-panel .login-form > button {
  grid-column: 1 / -1;
  width: 100%;
  min-width: 0;
}

.login-panel .progress-form label {
  display: grid;
  gap: 8px;
  color: #334155;
  font-weight: 600;
}

.login-panel .progress-form input {
  width: 100%;
  max-width: 100%;
  min-height: 52px;
  padding: 0 16px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.98);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
}

.login-panel .progress-form button {
  width: 100%;
  max-width: 100%;
  min-height: 54px;
  border-radius: 16px;
  background: linear-gradient(135deg, #0f766e 0%, #164e63 100%);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 16px 30px rgba(15, 118, 110, 0.2);
}

.login-panel .progress-form button:hover {
  background: linear-gradient(135deg, #115e59 0%, #0f4f68 100%);
}

.login-form-meta {
  margin-top: 14px;
  display: flex;
  align-items: center;
  gap: 10px;
}

.login-status {
  margin: 12px 0 0;
  min-height: 22px;
  font-size: 14px;
  line-height: 1.5;
}

.login-status.info,
.login-status.pending {
  color: #475569;
}

.login-status.error {
  color: #b91c1c;
}

.login-form button[disabled] {
  opacity: 0.7;
  cursor: wait;
}

@media (max-width: 960px) {
  .login-layout {
    grid-template-columns: 1fr;
  }

  .login-intro {
    padding: 28px;
  }

  .login-intro-grid {
    grid-template-columns: 1fr;
  }

  .login-panel {
    max-width: 100%;
  }
}

@media (max-width: 640px) {
  .login-shell {
    padding: 16px;
  }

  .login-intro {
    padding: 22px;
    border-radius: 22px;
  }

  .login-intro h1 {
    font-size: clamp(30px, 11vw, 44px);
  }

  .login-intro-copy {
    font-size: 15px;
  }

  .login-panel {
    padding: 22px;
    border-radius: 22px;
  }

  .login-panel h2 {
    font-size: 28px;
  }
}

.topbar {
  padding: 20px 16px;
  border-bottom: 1px solid var(--line);
  background: #fff;
}

.topbar h1 {
  margin: 0;
  font-size: 24px;
}

.topbar p {
  margin: 6px 0 0;
  color: var(--muted);
}

.company-banner {
  margin-top: 12px;
  display: flex;
  align-items: center;
  gap: 12px;
}

.topbar-row {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 12px;
  flex-wrap: wrap;
}

.user-badge {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
}

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

.company-logo-badge {
  width: 52px;
  height: 52px;
  border-radius: 14px;
  display: grid;
  place-items: center;
  background: var(--brand-soft);
  color: var(--brand);
  font-weight: 700;
  border: 1px solid #99f6e4;
  overflow: hidden;
}

.company-logo-badge img {
  width: 100%;
  height: 100%;
  object-fit: contain;
  display: block;
}

.layout {
  display: grid;
  grid-template-columns: 1fr;
  gap: 14px;
  padding: 14px;
}

.panel {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
}

.reports-hero {
  padding: 28px 20px 22px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(135deg, #0f172a 0%, #10263f 42%, #0f766e 140%);
  color: #f8fafc;
}

.reports-hero-head {
  display: flex;
  justify-content: space-between;
  gap: 20px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.reports-hero-copy {
  max-width: 760px;
}

.reports-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 28px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #cbd5e1;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.reports-hero h1 {
  margin: 12px 0 10px;
  font-size: clamp(28px, 5vw, 42px);
  line-height: 1.05;
  letter-spacing: -0.03em;
}

.reports-hero p {
  margin: 0;
  color: rgba(226, 232, 240, 0.86);
}

.reports-hero-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
  justify-content: flex-end;
  align-items: flex-start;
}

.app-brand-corner {
  flex: 0 0 100%;
  display: grid;
  justify-items: end;
  gap: 8px;
  justify-content: flex-end;
}

.app-brand-corner img {
  width: min(28vw, 180px);
  height: auto;
  display: block;
}

.brand-logout-link {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 7px 12px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.28);
  color: #f8fafc;
  text-decoration: none;
  font-size: 12px;
  font-weight: 600;
  letter-spacing: 0.01em;
  transition: background 140ms ease, border-color 140ms ease, transform 140ms ease;
}

.brand-logout-link:hover {
  background: rgba(15, 23, 42, 0.4);
  border-color: rgba(255, 255, 255, 0.24);
  transform: translateY(-1px);
}

.hero-primary {
  background: linear-gradient(135deg, #f59e0b 0%, #f97316 100%);
  border-color: rgba(249, 115, 22, 0.8);
  color: #fff;
  box-shadow: 0 10px 24px rgba(249, 115, 22, 0.28);
}

.hero-ghost {
  background: rgba(255, 255, 255, 0.08);
  border-color: rgba(255, 255, 255, 0.16);
  color: #f8fafc;
}

.report-filter-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 14px;
}

.report-chip {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.1);
  color: #e2e8f0;
  font-size: 12px;
}

.report-chip.is-action {
  cursor: pointer;
  font: inherit;
  appearance: none;
}

.report-chip-remove {
  display: inline-grid;
  place-items: center;
  width: 18px;
  height: 18px;
  border-radius: 999px;
  background: rgba(15, 23, 42, 0.22);
  font-size: 11px;
  font-weight: 700;
  line-height: 1;
}

.reports-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
  margin-top: 22px;
}

.hero-stat-card {
  padding: 16px 18px;
  border-radius: 18px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(8px);
  display: grid;
  gap: 8px;
}

.hero-stat-card span {
  color: #cbd5e1;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.hero-stat-card strong {
  font-size: clamp(20px, 3vw, 28px);
  letter-spacing: -0.03em;
}

.panel h2 {
  margin: 0 0 12px;
  font-size: 18px;
}

.reports-layout {
  gap: 18px;
  padding: 18px;
}

.reports-page .report-panel {
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  box-shadow: 0 16px 40px rgba(15, 23, 42, 0.05);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
}

.reports-page .report-panel h2 {
  margin-bottom: 14px;
  font-size: 19px;
  letter-spacing: -0.02em;
}

.report-filter-panel {
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 35%);
}

.panel.wide {
  overflow-x: auto;
}

.project-list {
  display: flex;
  flex-direction: column;
  gap: 8px;
}

.steps {
  display: grid;
  gap: 10px;
  margin-bottom: 12px;
}

.steps h3 {
  margin: 0 0 8px;
  font-size: 15px;
}

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

.step-btn {
  border: 1px solid var(--line);
  background: #fff;
  border-radius: 999px;
  padding: 8px 12px;
  cursor: pointer;
}

.step-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.progress-form {
  display: grid;
  grid-template-columns: 1fr;
  gap: 10px;
}

.progress-form label {
  display: grid;
  gap: 6px;
  font-size: 14px;
}

.progress-form input,
.progress-form select,
.progress-form button {
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
}

.select-combobox-input {
  width: 100%;
  padding: 10px;
  border: 1px solid var(--line);
  border-radius: 8px;
  font: inherit;
  background: #fff;
}

.select-combobox-hidden {
  display: none;
}

.select-combobox {
  position: relative;
}

.select-combobox-dropdown {
  position: absolute;
  top: calc(100% + 4px);
  left: 0;
  right: 0;
  z-index: 20;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 10px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.08);
  max-height: 220px;
  overflow-y: auto;
}

.select-combobox-dropdown.upward {
  top: auto;
  bottom: calc(100% + 4px);
}

.select-combobox-option,
.select-combobox-empty {
  width: 100%;
  padding: 10px;
  text-align: left;
  border: 0;
  background: #fff;
  font: inherit;
}

.select-combobox-option {
  cursor: pointer;
}

.select-combobox-option:hover,
.select-combobox-option.active {
  background: var(--brand-soft);
}

.select-combobox-option.create {
  color: var(--brand);
  font-weight: 600;
}

.select-combobox-empty {
  color: var(--muted);
}

.progress-form button {
  background: var(--brand);
  color: #fff;
  border-color: var(--brand);
  cursor: pointer;
}

.project-btn {
  border: 1px solid var(--line);
  background: #fff;
  color: var(--text);
  border-radius: 10px;
  padding: 10px;
  text-align: left;
  cursor: pointer;
}

.project-btn.active {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.dashboard-layout {
  grid-template-columns: 1fr;
}

.dashboard-cards {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 10px;
}

.dashboard-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
  display: grid;
  gap: 8px;
}

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

.dashboard-card strong {
  font-size: 22px;
}

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

.dashboard-actions.compact {
  margin-top: 12px;
}

.dashboard-actions.bottom-actions {
  justify-content: flex-end;
  margin-top: 16px;
}

.action-card {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 48px;
  padding: 11px 16px;
  border-radius: 12px;
  border: 1px solid var(--line);
  text-decoration: none;
  color: var(--text);
  background: #fff;
  font-size: 14px;
  font-weight: 600;
  line-height: 1.2;
}

.action-card.small {
  min-height: 40px;
  padding: 8px 12px;
  font-size: 13px;
}

.action-card:hover {
  border-color: var(--brand);
  background: var(--brand-soft);
}

.dashboard-projects {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(260px, 1fr));
  gap: 12px;
}

.project-overview-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  padding: 14px;
  background: #fff;
}

.selected-card {
  border-color: var(--brand);
  box-shadow: inset 0 0 0 1px var(--brand);
}

.analysis-toolbar {
  display: flex;
  flex-wrap: wrap;
  align-items: flex-end;
  gap: 10px;
  margin-bottom: 12px;
}

.reports-page .analysis-toolbar {
  padding-top: 8px;
  border-top: 1px solid rgba(148, 163, 184, 0.14);
}

.reports-page .analysis-toolbar label {
  display: grid;
  gap: 6px;
  min-width: 220px;
  flex: 0 1 240px;
}

.reports-page .analysis-toolbar input {
  min-height: 56px;
  padding: 0 14px;
  border-radius: 14px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.92);
  font: inherit;
}

.reports-page .analysis-toolbar button {
  width: auto;
  min-width: 220px;
  min-height: 56px;
  padding: 0 18px;
  flex: 0 0 auto;
}

.reports-page .analysis-toolbar .empty {
  flex: 1 1 100%;
  margin: 0;
}

.toggle-row {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  font-size: 14px;
}

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

.legend-item {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  padding: 4px 10px;
  border-radius: 999px;
  border: 1px solid var(--line);
  font-size: 12px;
  background: #fff;
}

.legend-item.critical_behind {
  border-color: #dc2626;
  color: #dc2626;
  background: #fef2f2;
}

.legend-item.behind {
  border-color: #ea580c;
  color: #ea580c;
  background: #fff7ed;
}

.legend-item.on_track {
  border-color: #0f766e;
  color: #0f766e;
  background: #ecfdf5;
}

.legend-item.ahead {
  border-color: #15803d;
  color: #15803d;
  background: #f0fdf4;
}

.legend-item.unmatched {
  border-color: #a16207;
  color: #a16207;
  background: #fefce8;
}

.legend-item.mapping_conflict {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f5f3ff;
}

.gantt-shell {
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: linear-gradient(180deg, #f8fafc 0%, #ffffff 100%);
}

.gantt-grid {
  display: grid;
  grid-template-columns: 320px max-content;
  align-items: stretch;
  gap: 0;
  min-width: max-content;
}

.gantt-sidebar-header {
  position: sticky;
  left: 0;
  top: 0;
  z-index: 7;
  font-weight: 700;
  padding: 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #f8fafc;
}

.gantt-timeline-header {
  position: sticky;
  top: 0;
  z-index: 6;
  background: #f8fafc;
  border-bottom: 1px solid var(--line);
}

.gantt-week-row,
.gantt-day-row {
  display: grid;
}

.gantt-week-cell {
  font-size: 11px;
  color: #334155;
  text-align: center;
  padding: 8px 4px;
  border-right: 1px solid #e2e8f0;
  border-bottom: 1px solid var(--line);
  background: #eef2f7;
}

.gantt-date-cell {
  font-size: 11px;
  color: var(--muted);
  text-align: center;
  padding: 10px 0;
  border-right: 1px solid #eef2f7;
  background: #ffffff;
}

.gantt-date-cell.is-weekend,
.gantt-track-cell.is-weekend {
  background: #f8fafc;
}

.gantt-task-label {
  position: sticky;
  left: 0;
  z-index: 5;
  display: flex;
  align-items: flex-start;
  gap: 10px;
  min-height: 72px;
  height: 72px;
  padding: 14px 16px;
  border-right: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-sizing: border-box;
  overflow: hidden;
}

.gantt-task-label.is-alt {
  background: #fbfdff;
}

.gantt-task-copy {
  display: grid;
  gap: 3px;
  min-width: 0;
  width: 100%;
}

.gantt-task-copy strong {
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.gantt-task-copy span {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.35;
  display: -webkit-box;
  -webkit-line-clamp: 2;
  -webkit-box-orient: vertical;
  overflow: hidden;
}

.gantt-task-copy small {
  color: #475569;
  font-size: 12px;
}

.gantt-status-dot {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
  margin-top: 6px;
}

.gantt-status-dot.status-critical_behind {
  background: #dc2626;
}

.gantt-status-dot.status-behind {
  background: #ea580c;
}

.gantt-status-dot.status-ahead {
  background: #15803d;
}

.gantt-status-dot.status-on_track {
  background: #0f766e;
}

.gantt-status-dot.status-not_started {
  background: #64748b;
}

.gantt-status-dot.status-unmatched {
  background: #a16207;
}

.gantt-status-dot.status-mapping_conflict {
  background: #7c3aed;
}

.gantt-task-row {
  position: relative;
  height: 72px;
  min-height: 72px;
  border-bottom: 1px solid var(--line);
  background: #ffffff;
  box-sizing: border-box;
}

.gantt-task-row.is-alt {
  background: #fbfdff;
}

.gantt-track-grid {
  position: absolute;
  inset: 0;
  display: grid;
}

.gantt-track-cell {
  border-right: 1px solid #eef2f7;
}

.gantt-bar {
  position: absolute;
  border-radius: 999px;
  pointer-events: none;
}

.gantt-bar.planned {
  top: 30px;
  height: 10px;
  background: #d7dee7;
}

.gantt-bar.actual {
  top: 23px;
  height: 24px;
  background: var(--brand);
  opacity: 0.98;
  box-shadow: 0 4px 12px rgba(15, 118, 110, 0.18);
}

.gantt-bar.actual.completed {
  background: #166534;
  box-shadow: 0 4px 12px rgba(22, 101, 52, 0.22);
}

.gantt-bar.actual.status-critical_behind {
  background: #dc2626;
  box-shadow: 0 4px 12px rgba(220, 38, 38, 0.18);
}

.gantt-bar.actual.status-behind {
  background: #ea580c;
  box-shadow: 0 4px 12px rgba(234, 88, 12, 0.18);
}

.gantt-bar.actual.status-ahead {
  background: #15803d;
  box-shadow: 0 4px 12px rgba(21, 128, 61, 0.18);
}

.gantt-bar.actual.status-on_track {
  background: #0f766e;
}

.gantt-bar.actual.status-not_started {
  background: #64748b;
}

.gantt-bar.actual.status-unmatched {
  background: #a16207;
  box-shadow: 0 4px 12px rgba(161, 98, 7, 0.18);
}

.gantt-bar.actual.status-mapping_conflict {
  background: #7c3aed;
  box-shadow: 0 4px 12px rgba(124, 58, 237, 0.18);
}

.gantt-complete-marker {
  position: absolute;
  top: 16px;
  bottom: 16px;
  width: 3px;
  border-radius: 999px;
  background: #166534;
  transform: translateX(-50%);
  z-index: 3;
}

.gantt-complete-label {
  position: absolute;
  top: 6px;
  transform: translateX(-50%);
  font-size: 10px;
  color: #166534;
  white-space: nowrap;
  font-weight: 700;
  background: #ecfdf5;
  border: 1px solid #bbf7d0;
  border-radius: 999px;
  padding: 2px 6px;
  z-index: 4;
}

.gantt-today-line {
  position: absolute;
  top: 0;
  bottom: 0;
  width: 2px;
  background: #ef4444;
  opacity: 0.75;
  z-index: 2;
}

.summary-item {
  display: flex;
  justify-content: space-between;
  border-bottom: 1px dashed var(--line);
  padding: 8px 0;
}

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

.report-summary-panel .summary {
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
}

.reports-page .summary.empty {
  display: block;
}

.report-kpi-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 16px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 8px;
}

.report-kpi-card span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.report-kpi-card strong {
  font-size: 28px;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.report-kpi-card small {
  color: #64748b;
  font-size: 12px;
  line-height: 1.45;
}

.report-kpi-card.accent {
  background: linear-gradient(180deg, #eff6ff 0%, #ffffff 100%);
  border-color: rgba(29, 78, 216, 0.16);
}

.report-kpi-card.strong {
  background: linear-gradient(135deg, #0f766e 0%, #0f4f68 100%);
  border-color: rgba(15, 118, 110, 0.3);
}

.report-kpi-card.strong span,
.report-kpi-card.strong strong,
.report-kpi-card.strong small {
  color: #f8fafc;
}

.reports-page .summary .summary-item {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 14px;
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  display: grid;
  gap: 6px;
}

.reports-page .summary .summary-item span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.reports-page .summary .summary-item strong {
  font-size: 24px;
  letter-spacing: -0.03em;
}

.summary-item:last-child {
  border-bottom: 0;
}

.report-btn {
  margin-top: 10px;
  width: 100%;
  padding: 10px;
  border-radius: 8px;
  border: 1px solid var(--brand);
  background: var(--brand);
  color: #fff;
  cursor: pointer;
}

.pie-canvas {
  display: block;
  margin-top: 10px;
  width: 100%;
  max-width: 320px;
  height: auto;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
}

.chart-grid {
  display: grid;
  gap: 16px;
}

.chart-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 18px;
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 35%);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.8);
}

.chart-legend {
  display: grid;
  gap: 6px;
  margin-top: 12px;
}

.chart-legend-item {
  display: flex;
  align-items: center;
  gap: 8px;
  color: var(--muted);
  font-size: 13px;
}

.chart-swatch {
  width: 10px;
  height: 10px;
  border-radius: 999px;
  flex: 0 0 auto;
}

.empty {
  color: var(--muted);
}

.line-card {
  border: 1px solid var(--line);
  border-radius: 10px;
  padding: 10px;
  margin-bottom: 10px;
}

.reports-page .line-card {
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  padding: 14px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.line-card.status-critical_behind {
  border-color: #dc2626;
  background: #fff5f5;
}

.line-card.status-behind {
  border-color: #ea580c;
  background: #fff7ed;
}

.line-card.status-ahead {
  border-color: #15803d;
  background: #f0fdf4;
}

.line-card.status-unmatched {
  border-color: #a16207;
  background: #fefce8;
}

.line-card.status-mapping_conflict {
  border-color: #7c3aed;
  background: #f5f3ff;
}

.line-head {
  display: flex;
  justify-content: space-between;
  gap: 8px;
  flex-wrap: wrap;
}

.line-meta {
  color: var(--muted);
  font-size: 14px;
}

.reports-page .progress-form {
  grid-template-columns: repeat(auto-fit, minmax(170px, 1fr));
  gap: 12px;
}

.reports-page .progress-form input,
.reports-page .progress-form select,
.reports-page .progress-form button,
.reports-page .select-combobox-input {
  min-height: 46px;
  border-radius: 12px;
  border-color: rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.92);
}

.reports-page .progress-form button,
.reports-page #generateDailyReportButton {
  background: linear-gradient(135deg, #0f766e 0%, #0f4f68 100%);
  border-color: rgba(15, 118, 110, 0.3);
  color: #fff;
  box-shadow: 0 10px 24px rgba(15, 118, 110, 0.16);
}

.reports-page .pie-canvas {
  max-width: 100%;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.atama-list {
  margin-top: 10px;
  display: grid;
  gap: 8px;
}

.atama-item {
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 8px;
  background: #f8fafc;
}

.badge {
  display: inline-block;
  border-radius: 999px;
  padding: 2px 8px;
  font-size: 12px;
  border: 1px solid var(--line);
}

.badge.active {
  border-color: #15803d;
  color: #15803d;
}

.badge.closed {
  border-color: #b45309;
  color: #b45309;
}

.badge.critical_behind {
  border-color: #dc2626;
  color: #dc2626;
  background: #fff5f5;
}

.badge.behind {
  border-color: #ea580c;
  color: #ea580c;
  background: #fff7ed;
}

.badge.ahead {
  border-color: #15803d;
  color: #15803d;
  background: #f0fdf4;
}

.badge.on_track {
  border-color: #0f766e;
  color: #0f766e;
  background: #ecfdf5;
}

.badge.not_started {
  border-color: #475569;
  color: #475569;
  background: #f8fafc;
}

.badge.unmatched {
  border-color: #a16207;
  color: #a16207;
  background: #fefce8;
}

.badge.mapping_conflict {
  border-color: #7c3aed;
  color: #7c3aed;
  background: #f5f3ff;
}

@media (min-width: 980px) {
  .work-schedules-layout {
    grid-template-columns: 340px minmax(0, 1fr);
  }

  .work-schedules-rail-panel {
    position: sticky;
    top: 18px;
  }

  .work-schedules-import-grid {
    grid-template-columns: 1.05fr 1.15fr 0.9fr;
  }

  .layout {
    grid-template-columns: 320px 1fr;
  }

  .dashboard-layout {
    grid-template-columns: 1fr 1fr;
  }

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

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

  .progress-form {
    grid-template-columns: repeat(4, minmax(160px, 1fr));
  }

  .panel.wide {
    grid-column: 1 / -1;
  }
}

body.dashboard-page {
  background:
    radial-gradient(circle at top left, rgba(15, 118, 110, 0.18), transparent 26%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.16), transparent 22%),
    linear-gradient(180deg, #eef3f9 0%, #f5f8fc 48%, #eef4f8 100%);
}

.dashboard-page .dashboard-hero {
  padding: 30px 22px 24px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.14);
  background:
    linear-gradient(135deg, #0f172a 0%, #13253c 36%, #0f4f68 100%);
  color: #f8fafc;
  position: relative;
  overflow: hidden;
}

.dashboard-page .dashboard-hero::before {
  content: "";
  position: absolute;
  inset: -120px auto auto -80px;
  width: 320px;
  height: 320px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 72%);
  pointer-events: none;
}

.dashboard-page .dashboard-hero::after {
  content: "";
  position: absolute;
  inset: auto -110px -140px auto;
  width: 340px;
  height: 340px;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(249, 115, 22, 0.22) 0%, rgba(249, 115, 22, 0) 70%);
  pointer-events: none;
}

.dashboard-page .dashboard-hero-head,
.dashboard-page .dashboard-hero-stats {
  position: relative;
  z-index: 1;
}

.dashboard-page .dashboard-hero-head {
  position: relative;
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 24px;
  flex-wrap: wrap;
}

.dashboard-page .dashboard-hero-copy {
  max-width: 780px;
  display: grid;
  gap: 12px;
  padding-right: min(24vw, 180px);
}

.dashboard-page .dashboard-eyebrow {
  display: inline-flex;
  align-items: center;
  min-height: 30px;
  width: fit-content;
  padding: 4px 12px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #dbe5f0;
  font-size: 12px;
  letter-spacing: 0.1em;
  text-transform: uppercase;
}

.dashboard-page .dashboard-hero h1 {
  margin: 0;
  font-size: clamp(24px, 4vw, 34px);
  line-height: 1.02;
  letter-spacing: -0.04em;
}

.dashboard-page .dashboard-hero p {
  margin: 0;
  max-width: 680px;
  color: rgba(226, 232, 240, 0.84);
  font-size: 15px;
  line-height: 1.55;
}

.dashboard-page .dashboard-company-row {
  display: flex;
  align-items: center;
  gap: 14px;
  flex-wrap: wrap;
  margin-top: 4px;
}

.dashboard-page .dashboard-company-row strong {
  display: block;
  font-size: 17px;
  color: #dbe5f0;
}

.dashboard-page .dashboard-company-switcher {
  max-width: 340px;
  display: grid;
  gap: 8px;
  margin-top: 6px;
}

.dashboard-page .dashboard-company-switcher label {
  color: #e2e8f0;
  font-size: 12px;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.dashboard-page .dashboard-company-switcher select {
  min-height: 46px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.1);
  color: #f8fafc;
  padding: 0 14px;
}

.dashboard-page .dashboard-company-switcher select option {
  color: #0f172a;
}

.dashboard-page .dashboard-company-switcher small {
  color: rgba(203, 213, 225, 0.8);
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-page .dashboard-hero-side {
  min-width: 280px;
  display: grid;
  gap: 14px;
  justify-items: end;
  padding-top: 104px;
  margin-left: auto;
}

.dashboard-page .dashboard-brand-corner {
  position: absolute;
  top: 0;
  right: 0;
  z-index: 2;
  display: grid;
  justify-items: end;
  gap: 8px;
}

.dashboard-page .dashboard-brand-corner img {
  width: min(24vw, 170px);
  height: auto;
  display: block;
}

.dashboard-page .dashboard-user-badge {
  min-width: 240px;
  padding: 14px 16px;
  border-radius: 18px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

.dashboard-page .dashboard-user-badge strong {
  font-size: 16px;
}

.dashboard-page .dashboard-user-badge span {
  color: #cbd5e1;
}

.dashboard-page .dashboard-hero-actions {
  display: flex;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 10px;
}

.dashboard-page .dashboard-hero-actions .action-card {
  min-width: 132px;
  border-radius: 14px;
}

.dashboard-page .dashboard-hero-stats {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
  margin-top: 24px;
}

.dashboard-page .dashboard-project-toolbar {
  position: relative;
  z-index: 1;
  margin-top: 18px;
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 16px;
  flex-wrap: wrap;
  padding: 16px 18px;
  border-radius: 20px;
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.12);
  backdrop-filter: blur(10px);
}

.dashboard-page .dashboard-project-filter {
  min-width: min(100%, 340px);
  display: grid;
  gap: 8px;
}

.dashboard-page .dashboard-project-filter label {
  color: #e2e8f0;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.dashboard-page .dashboard-project-filter select {
  min-height: 48px;
  padding: 12px 14px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(15, 23, 42, 0.22);
  color: #f8fafc;
  font: inherit;
}

.dashboard-page .dashboard-project-filter option {
  color: #0f172a;
}

.dashboard-page .dashboard-project-filter small {
  color: rgba(203, 213, 225, 0.8);
  font-size: 12px;
  line-height: 1.4;
}

.dashboard-page .dashboard-project-quick-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.dashboard-page .hero-stat-card {
  border-radius: 20px;
  background: linear-gradient(180deg, rgba(255,255,255,0.12) 0%, rgba(255,255,255,0.06) 100%);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.06);
}

.dashboard-page .hero-stat-card strong {
  color: #ffffff;
}

.dashboard-page .dashboard-page-layout {
  grid-template-columns: minmax(0, 1fr);
  gap: 20px;
  padding: 20px;
}

.dashboard-page .dashboard-panel {
  border-radius: 22px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  box-shadow: 0 18px 44px rgba(15, 23, 42, 0.06);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 34%);
  padding: 18px;
}

.dashboard-page .dashboard-panel h2 {
  margin-bottom: 16px;
  font-size: 20px;
  letter-spacing: -0.02em;
}

.dashboard-page .executive-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.dashboard-page .critical-project-grid {
  display: grid;
  gap: 14px;
  grid-template-columns: repeat(auto-fit, minmax(240px, 1fr));
}

.dashboard-page .critical-project-card {
  border: 1px solid rgba(249, 115, 22, 0.22);
  border-radius: 18px;
  padding: 16px;
  background:
    linear-gradient(180deg, #fff7ed 0%, #ffffff 100%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.12), transparent 42%);
  box-shadow: 0 14px 30px rgba(249, 115, 22, 0.08);
  display: grid;
  gap: 12px;
}

.dashboard-page .critical-project-metrics {
  display: grid;
  gap: 8px;
  color: #7c2d12;
  font-size: 13px;
}

.dashboard-page .critical-project-metrics strong {
  color: #0f172a;
}

.dashboard-page .executive-grid .report-kpi-card {
  min-height: 156px;
  border-radius: 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,0.7);
}

.dashboard-page .executive-grid .report-kpi-card strong {
  font-size: 30px;
}

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

.dashboard-page .dashboard-chart-grid .chart-card {
  min-height: 100%;
}

.dashboard-page .dashboard-bar-canvas {
  display: block;
  width: 100%;
  height: auto;
  min-height: 320px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-page .line-list {
  display: grid;
  gap: 12px;
}

.dashboard-page .line-list.empty {
  display: block;
}

.dashboard-page .line-card {
  margin-bottom: 0;
}

.dashboard-page .dashboard-shortcuts {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 12px;
}

.dashboard-page .dashboard-shortcuts .action-card {
  min-height: 56px;
  justify-content: flex-start;
  padding: 14px 16px;
  border-radius: 16px;
  font-weight: 600;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.dashboard-page .dashboard-shortcuts .action-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 12px 28px rgba(15, 118, 110, 0.1);
}

.dashboard-page .action-card.is-disabled,
.dashboard-page .action-card[aria-disabled="true"] {
  pointer-events: none;
  opacity: 0.45;
  border-color: rgba(148, 163, 184, 0.18);
  background: rgba(255, 255, 255, 0.08);
  box-shadow: none;
}

.dashboard-page .dashboard-project-grid {
  display: grid;
  gap: 14px;
}

.dashboard-page .project-premium-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 20px;
  padding: 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 38%);
  box-shadow: 0 16px 36px rgba(15, 23, 42, 0.05);
  display: grid;
  gap: 16px;
}

.dashboard-page .project-premium-card.is-focused {
  border-color: rgba(245, 158, 11, 0.44);
  box-shadow:
    0 18px 38px rgba(15, 23, 42, 0.06),
    0 0 0 2px rgba(245, 158, 11, 0.16);
}

.dashboard-page .project-premium-card .line-head {
  align-items: flex-start;
}

.dashboard-page .project-premium-card .line-head strong {
  font-size: 18px;
  letter-spacing: -0.02em;
}

.dashboard-page .project-progress-strip {
  position: relative;
  height: 10px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.dashboard-page .project-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #0f766e 0%, #0f4f68 100%);
  box-shadow: 0 4px 16px rgba(15, 118, 110, 0.22);
}

.dashboard-page .project-metric-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}

.dashboard-page .project-metric {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 12px 14px;
  background: rgba(255, 255, 255, 0.74);
  display: grid;
  gap: 6px;
}

.dashboard-page .project-metric span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-page .project-metric strong {
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.dashboard-page .project-block-progress-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 12px;
}

.dashboard-page .project-block-progress-title {
  display: grid;
  gap: 4px;
}

.dashboard-page .project-block-progress-title span {
  color: #0f172a;
  font-size: 13px;
  font-weight: 700;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.dashboard-page .project-block-progress-title small {
  color: #64748b;
  line-height: 1.4;
}

.dashboard-page .project-block-progress-list {
  display: grid;
  gap: 10px;
}

.dashboard-page .project-block-progress-row {
  display: grid;
  gap: 6px;
}

.dashboard-page .project-block-progress-head {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 10px;
  color: #334155;
  font-size: 13px;
}

.dashboard-page .project-block-progress-head strong {
  color: #0f172a;
  font-size: 13px;
}

.dashboard-page .project-block-progress-track {
  position: relative;
  height: 8px;
  border-radius: 999px;
  background: #e2e8f0;
  overflow: hidden;
}

.dashboard-page .project-block-progress-fill {
  position: absolute;
  inset: 0 auto 0 0;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8 0%, #0f766e 100%);
}

.dashboard-page .project-block-progress-empty {
  color: #64748b;
  font-size: 13px;
}

.dashboard-page .project-trend-card {
  border: 1px solid rgba(148, 163, 184, 0.14);
  border-radius: 16px;
  padding: 14px;
  background: rgba(255, 255, 255, 0.76);
  display: grid;
  gap: 12px;
}

.dashboard-page .project-trend-chart {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: 8px;
  min-height: 86px;
}

.dashboard-page .project-trend-bar-wrap {
  flex: 1 1 0;
  display: grid;
  gap: 6px;
  justify-items: center;
}

.dashboard-page .project-trend-bar {
  width: 100%;
  max-width: 20px;
  min-height: 14px;
  border-radius: 999px 999px 8px 8px;
  background: linear-gradient(180deg, #1d4ed8 0%, #0f766e 100%);
  box-shadow: 0 10px 18px rgba(29, 78, 216, 0.14);
}

.dashboard-page .project-trend-bar-wrap span {
  color: #64748b;
  font-size: 11px;
  line-height: 1;
}

.dashboard-page .project-trend-empty {
  color: #64748b;
  font-size: 13px;
}

.dashboard-page .dashboard-actions.compact {
  margin-top: 0;
}

.dashboard-page .dashboard-actions.compact .focus-project-btn {
  cursor: pointer;
}

.dashboard-page .dashboard-actions.compact .action-card.small {
  border-radius: 14px;
}

@media (min-width: 900px) {
  .dashboard-page .dashboard-chart-grid {
    grid-template-columns: 1.02fr 1.35fr 1.02fr;
    align-items: stretch;
  }

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

@media (min-width: 1240px) {
  .dashboard-page .dashboard-page-layout {
    grid-template-columns: repeat(12, minmax(0, 1fr));
  }

  .dashboard-page .dashboard-panel {
    grid-column: span 12;
  }

  .dashboard-page .dashboard-panel:not(.wide):nth-of-type(3),
  .dashboard-page .dashboard-panel:not(.wide):nth-of-type(4) {
    grid-column: span 6;
  }

  .dashboard-page .dashboard-project-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 720px) {
  .dashboard-page .dashboard-hero {
    padding: 24px 16px 18px;
  }

  .dashboard-page .dashboard-hero-copy {
    padding-right: min(42vw, 180px);
  }

  .dashboard-page .dashboard-hero-side {
    width: 100%;
    padding-top: 108px;
  }

  .dashboard-page .dashboard-page-layout {
    padding: 16px;
  }

  .dashboard-page .dashboard-hero-actions {
    justify-content: flex-start;
  }

  .dashboard-page .dashboard-project-toolbar {
    padding: 14px;
  }

  .dashboard-page .dashboard-project-quick-actions {
    width: 100%;
  }

  .dashboard-page .dashboard-project-quick-actions .action-card {
    flex: 1 1 100%;
  }

  .dashboard-page .dashboard-project-grid,
  .dashboard-page .project-metric-grid,
  .dashboard-page .dashboard-shortcuts {
    grid-template-columns: 1fr;
  }
}

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

.report-panel-copy {
  margin: 6px 0 0;
  color: #64748b;
  line-height: 1.5;
}

.reports-page .progress-form button.secondary {
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  border-color: rgba(148, 163, 184, 0.24);
  box-shadow: none;
}

.puantaj-block-list {
  display: grid;
  gap: 16px;
}

.puantaj-block-section {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #fbfdff 100%);
  overflow: hidden;
}

.puantaj-block-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-end;
  gap: 12px;
  padding: 16px 18px;
  border-bottom: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.96) 0%, rgba(255, 255, 255, 0.96) 100%);
  flex-wrap: wrap;
}

.puantaj-block-head h3 {
  margin: 0;
  font-size: 18px;
  letter-spacing: -0.02em;
}

.puantaj-block-head p {
  margin: 4px 0 0;
  color: #64748b;
  font-size: 13px;
}

.puantaj-block-totals {
  display: flex;
  gap: 12px;
  flex-wrap: wrap;
  color: #334155;
  font-size: 13px;
}

.puantaj-table-wrap {
  overflow-x: auto;
}

.puantaj-table {
  width: 100%;
  border-collapse: collapse;
  min-width: 820px;
}

.puantaj-table th,
.puantaj-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.96);
  text-align: left;
  font-size: 13px;
}

.puantaj-table th {
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.puantaj-table tbody tr:nth-child(even) {
  background: rgba(248, 250, 252, 0.76);
}

.puantaj-entry-panel .progress-form {
  align-items: end;
}

.puantaj-page .puantaj-entry-panel,
.puantaj-page .puantaj-summary-panel {
  min-width: 0;
  align-self: start;
}

.puantaj-page .puantaj-entry-panel .progress-form {
  grid-template-columns: 1fr;
}

.puantaj-summary-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
  align-items: stretch;
}

.puantaj-summary-grid .report-kpi-card {
  min-height: 144px;
  height: 100%;
}

.puantaj-summary-grid .report-kpi-card strong {
  font-size: clamp(24px, 2.8vw, 32px);
}

.puantaj-summary-grid .report-kpi-card small {
  max-width: 28ch;
}

.progress-page .progress-layout {
  gap: 20px;
}

.progress-page .progress-hero {
  background:
    linear-gradient(135deg, #0f172a 0%, #12304b 46%, #1d4ed8 130%);
}

.progress-page .reports-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.progress-page .reports-hero-copy {
  min-width: 0;
}

.progress-page .reports-hero-actions {
  width: min(360px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: end;
  justify-items: end;
  align-content: start;
  gap: 10px;
}

.progress-page .app-brand-corner {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 4px;
}

.progress-page .app-brand-corner img {
  width: min(24vw, 156px);
}

.progress-page .reports-hero-actions .action-card {
  width: max-content;
  min-width: 152px;
  justify-content: center;
}

.progress-page .progress-project-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 14px;
}

.progress-page .progress-project-card {
  min-height: 128px;
  padding: 18px 16px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background:
    linear-gradient(180deg, rgba(255, 255, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.07), transparent 30%);
  display: grid;
  gap: 10px;
  text-align: left;
  cursor: pointer;
  transition: transform 140ms ease, box-shadow 140ms ease, border-color 140ms ease;
}

.progress-page .progress-project-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.08);
}

.progress-page .progress-project-card.active {
  border-color: rgba(29, 78, 216, 0.45);
  box-shadow: 0 18px 34px rgba(29, 78, 216, 0.12);
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.96) 100%),
    radial-gradient(circle at top right, rgba(29, 78, 216, 0.12), transparent 32%);
}

.progress-page .progress-project-card-title {
  font-size: 17px;
  font-weight: 700;
  color: #0f172a;
  letter-spacing: -0.02em;
}

.progress-page .progress-project-card-meta {
  color: #475569;
  font-size: 13px;
}

.progress-page .progress-project-card-note {
  color: #0f766e;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
  font-weight: 700;
}

.project-info-page .reports-hero-copy {
  max-width: 860px;
}

.project-info-layout {
  grid-template-columns: minmax(0, 1.3fr) minmax(320px, 0.86fr);
  align-items: start;
}

.project-info-form-panel,
.project-info-summary-panel {
  min-width: 0;
}

.project-info-summary-panel {
  position: sticky;
  top: 18px;
}

.project-info-form {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-info-project-select,
.project-info-submit-row {
  grid-column: 1 / -1;
}

.project-info-submit-row {
  display: flex;
  justify-content: flex-start;
}

.project-info-submit-row button {
  min-width: 240px;
}

.project-info-summary-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 14px;
}

.project-info-summary-card,
.project-info-note-card {
  border-radius: 20px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at top right, rgba(14, 165, 233, 0.08), transparent 30%);
  padding: 18px;
}

.project-info-summary-card {
  display: grid;
  gap: 10px;
  min-height: 128px;
}

.project-info-summary-card span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.08em;
}

.project-info-summary-card strong {
  font-size: 24px;
  letter-spacing: -0.03em;
  line-height: 1.15;
  color: #0f172a;
}

.project-info-note-card {
  margin-top: 14px;
}

.project-info-note-card strong {
  display: block;
  margin-bottom: 10px;
  font-size: 16px;
  color: #0f172a;
}

.project-info-note-card p {
  margin: 0;
  color: #475569;
  line-height: 1.6;
}

.project-info-note-card.soft {
  background:
    linear-gradient(180deg, rgba(239, 246, 255, 0.9) 0%, rgba(255, 255, 255, 0.96) 100%),
    radial-gradient(circle at top right, rgba(59, 130, 246, 0.12), transparent 30%);
}

.project-info-status {
  margin: 16px 0 0;
  min-height: 22px;
  font-size: 14px;
  line-height: 1.5;
}

.project-info-status.info,
.project-info-status.pending {
  color: #475569;
}

.project-info-status.error {
  color: #b91c1c;
}

.progress-page .progress-summary-panel,
.progress-page .progress-quick-report-panel {
  min-height: 100%;
}

.progress-page .progress-flow-panel {
  overflow: visible;
}

.progress-page .progress-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1.7fr) minmax(300px, 0.95fr);
  gap: 18px;
  align-items: start;
}

.progress-page .progress-step-stack {
  display: grid;
  gap: 14px;
  margin-bottom: 0;
}

.progress-page .progress-step-toolbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}

.progress-page .progress-step-actions {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-page .progress-step-actions button {
  min-width: 110px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(255, 255, 255, 0.94);
  color: #0f172a;
}

.progress-page .progress-step-actions button:disabled {
  opacity: 0.5;
  cursor: not-allowed;
}

.progress-page .progress-step-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 16px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  display: grid;
  gap: 12px;
  scroll-margin-top: 24px;
}

.progress-page .progress-step-card.is-hidden {
  display: none;
}

.progress-page .progress-step-card.is-current {
  border-color: rgba(29, 78, 216, 0.22);
  box-shadow: 0 14px 28px rgba(29, 78, 216, 0.08);
}

.progress-page .progress-step-card.is-complete {
  border-color: rgba(15, 118, 110, 0.22);
}

.progress-page .progress-step-head {
  display: flex;
  align-items: center;
  gap: 10px;
}

.progress-page .progress-step-head > div {
  display: grid;
  gap: 4px;
}

.progress-page .progress-step-head span {
  width: 30px;
  height: 30px;
  display: grid;
  place-items: center;
  border-radius: 999px;
  background: linear-gradient(135deg, #1d4ed8 0%, #0f766e 100%);
  color: #fff;
  font-size: 13px;
  font-weight: 700;
}

.progress-page .progress-step-head h3 {
  margin: 0;
  font-size: 16px;
  letter-spacing: -0.02em;
}

.progress-page .progress-step-meta {
  margin: 0;
  color: #475569;
  font-size: 13px;
  line-height: 1.45;
}

.progress-page .progress-step-select-hidden {
  display: none;
}

.progress-page .progress-selection-path {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.progress-page .progress-selection-path.empty {
  display: block;
}

.progress-page .progress-selection-pill {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, rgba(255,255,255,0.96) 0%, rgba(248,250,252,0.96) 100%);
  appearance: none;
  text-align: left;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.progress-page .progress-selection-pill:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.28);
  box-shadow: 0 12px 22px rgba(15, 23, 42, 0.06);
}

.progress-page .progress-selection-pill small {
  color: #64748b;
  font-size: 11px;
  text-transform: uppercase;
  letter-spacing: 0.06em;
}

.progress-page .progress-selection-pill strong {
  color: #0f172a;
  font-size: 13px;
}

.progress-page .progress-step-options {
  display: grid;
  gap: 10px;
}

.progress-page .progress-step-options.empty {
  padding: 14px;
  border-radius: 14px;
  border: 1px dashed rgba(148, 163, 184, 0.26);
  color: #64748b;
  background: rgba(248, 250, 252, 0.7);
}

.progress-page .progress-step-options-primary {
  grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
}

.progress-page .progress-step-options-compact {
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
}

.progress-page .progress-step-option {
  width: 100%;
  text-align: left;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  color: #0f172a;
  padding: 14px 16px;
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.progress-page .progress-step-option:hover {
  transform: translateY(-1px);
  box-shadow: 0 14px 24px rgba(15, 23, 42, 0.06);
  border-color: rgba(15, 118, 110, 0.28);
}

.progress-page .progress-step-option.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.96) 0%, rgba(240, 253, 250, 0.96) 100%);
  box-shadow: 0 16px 28px rgba(15, 118, 110, 0.1);
}

.progress-page .progress-step-option strong {
  display: block;
  font-size: 14px;
  line-height: 1.45;
}

.progress-page .progress-step-option.is-primary {
  min-height: 64px;
}

.progress-page .progress-step-option.is-compact {
  min-height: 56px;
  padding: 12px 14px;
}

.progress-page .progress-entry-aside {
  display: grid;
  gap: 16px;
  position: sticky;
  top: 18px;
}

.progress-page .progress-selection-card,
.progress-page .progress-form-card,
.progress-page .progress-recent-card {
  border: 1px solid rgba(148, 163, 184, 0.18);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.9);
}

.progress-page .progress-form-card .progress-form {
  grid-template-columns: 1fr;
}

.progress-page #selectionInfo {
  line-height: 1.7;
}

.progress-page .progress-selection-body {
  display: grid;
  gap: 4px;
  color: #334155;
}

.progress-page .progress-kpi-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 10px;
  margin-top: 14px;
}

.progress-page .progress-kpi-card {
  display: grid;
  gap: 4px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(248, 250, 252, 0.92) 0%, rgba(255, 255, 255, 0.98) 100%);
}

.progress-page .progress-kpi-card span,
.progress-page .progress-kpi-card small {
  color: #64748b;
  font-size: 12px;
}

.progress-page .progress-kpi-card strong {
  color: #0f172a;
  font-size: 18px;
  letter-spacing: -0.03em;
}

.progress-page .progress-kpi-card.negative {
  border-color: rgba(220, 38, 38, 0.22);
  background: linear-gradient(180deg, rgba(254, 242, 242, 0.96) 0%, rgba(255, 255, 255, 0.98) 100%);
}

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

.progress-page .input-suffix {
  min-width: 56px;
  padding: 12px 14px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.2);
  background: rgba(241, 245, 249, 0.92);
  text-align: center;
  font-weight: 700;
  color: #0f172a;
}

.progress-page .progress-day-summary {
  display: grid;
  gap: 6px;
  padding: 14px 16px;
  border-radius: 16px;
  border: 1px solid rgba(29, 78, 216, 0.14);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.96) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.progress-page .progress-day-summary span,
.progress-page .progress-day-summary small {
  color: #475569;
}

.progress-page .progress-day-summary strong {
  color: #0f172a;
  font-size: 24px;
  letter-spacing: -0.03em;
}

.progress-page .progress-photo-field {
  gap: 8px;
}

.progress-page .progress-photo-field small {
  color: #64748b;
  font-size: 12px;
}

.progress-page .progress-photo-preview {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(140px, 1fr));
  gap: 12px;
}

.progress-page .progress-photo-preview.empty {
  padding: 16px;
  border: 1px dashed rgba(148, 163, 184, 0.28);
  border-radius: 14px;
  color: #64748b;
}

.progress-page .progress-photo-thumb {
  display: grid;
  gap: 10px;
  padding: 10px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.progress-page .progress-photo-thumb img {
  width: 100%;
  height: 120px;
  object-fit: cover;
  border-radius: 12px;
  background: #e2e8f0;
}

.progress-page .progress-photo-thumb-copy {
  display: grid;
  gap: 2px;
}

.progress-page .progress-photo-thumb-copy strong {
  font-size: 13px;
  color: #0f172a;
}

.progress-page .progress-photo-thumb-copy span {
  font-size: 12px;
  color: #64748b;
}

.progress-page .progress-photo-remove {
  border: 1px solid rgba(220, 38, 38, 0.18);
  background: rgba(254, 242, 242, 0.96);
  color: #991b1b;
}

.progress-page .progress-recent-list {
  display: grid;
  gap: 12px;
}

.progress-page .progress-recent-item {
  display: grid;
  gap: 10px;
  padding: 14px;
  border-radius: 16px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 250, 252, 0.96) 100%);
}

.progress-page .progress-recent-head,
.progress-page .progress-recent-meta,
.progress-page .line-progress-row {
  display: flex;
  justify-content: space-between;
  gap: 12px;
  flex-wrap: wrap;
}

.progress-page .progress-recent-head strong,
.progress-page .progress-recent-head span {
  color: #0f172a;
}

.progress-page .progress-recent-meta,
.progress-page .progress-recent-note,
.progress-page .line-progress-row {
  color: #64748b;
  font-size: 13px;
}

.progress-page .progress-recent-note {
  margin: 0;
}

.progress-page .progress-recent-photos {
  display: flex;
  gap: 10px;
  flex-wrap: wrap;
}

.progress-page .progress-recent-photo {
  width: 76px;
  height: 76px;
  border-radius: 12px;
  overflow: hidden;
  border: 1px solid rgba(148, 163, 184, 0.18);
  background: #e2e8f0;
}

.progress-page .progress-recent-photo img {
  width: 100%;
  height: 100%;
  object-fit: cover;
  display: block;
}

.progress-page .line-list {
  display: grid;
  gap: 12px;
}

.progress-page .line-card {
  padding: 16px;
}

.work-schedules-page .reports-hero-copy {
  max-width: 880px;
}

.work-schedules-page .reports-hero-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: start;
  gap: 24px;
}

.work-schedules-page .reports-hero-actions {
  width: min(340px, 100%);
  display: grid;
  grid-template-columns: repeat(2, minmax(0, max-content));
  justify-content: end;
  justify-items: end;
  align-content: start;
  gap: 10px;
}

.work-schedules-page .app-brand-corner {
  grid-column: 1 / -1;
  width: 100%;
  margin-bottom: 4px;
}

.work-schedules-page .app-brand-corner img {
  width: min(24vw, 156px);
}

.work-schedules-page .reports-hero-actions .action-card {
  width: max-content;
  min-width: 152px;
  justify-content: center;
}

.work-schedules-layout {
  align-items: start;
}

.work-schedules-gantt-panel {
  display: grid;
  gap: 16px;
}

.work-schedules-gantt-panel .panel-head {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-start;
  flex-wrap: wrap;
}

.work-schedules-gantt-tools {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}

.work-schedules-gantt-panel .gantt-shell {
  min-height: 340px;
}

.work-schedules-gantt-meta {
  margin: 0;
  color: #475569;
  line-height: 1.5;
}

.work-schedules-toolbar-panel {
  display: grid;
  gap: 18px;
}

.work-schedules-toolbar-form {
  align-items: end;
}

.work-schedules-context-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.work-schedules-context-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 16px 18px;
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 34%);
  display: grid;
  gap: 8px;
}

.work-schedules-context-card span {
  color: #64748b;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-schedules-context-card strong {
  font-size: 20px;
  letter-spacing: -0.03em;
  color: #0f172a;
}

.work-schedules-context-card small {
  color: #64748b;
  line-height: 1.45;
}

.work-schedules-toolbar-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
}

.work-schedules-toolbar-actions form {
  margin: 0;
}

.work-schedules-toolbar-actions .action-card {
  min-height: 44px;
  cursor: pointer;
}

.work-schedules-rail-panel {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.work-schedules-rail-tools {
  display: grid;
  gap: 12px;
}

.work-schedules-search-label {
  display: grid;
  gap: 6px;
  font-size: 13px;
  color: #475569;
}

.work-schedules-search-label input {
  min-height: 44px;
  padding: 10px 12px;
  border-radius: 12px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: rgba(255, 255, 255, 0.96);
  font: inherit;
}

.work-schedules-filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-schedules-filter-chip {
  min-height: 34px;
  padding: 8px 12px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
  transition: transform 120ms ease, border-color 120ms ease, box-shadow 120ms ease;
}

.work-schedules-filter-chip:hover {
  transform: translateY(-1px);
  border-color: rgba(15, 118, 110, 0.3);
  box-shadow: 0 10px 20px rgba(15, 23, 42, 0.06);
}

.work-schedules-filter-chip.active {
  border-color: rgba(15, 118, 110, 0.34);
  background: linear-gradient(135deg, rgba(204, 251, 241, 0.96) 0%, rgba(240, 253, 250, 0.96) 100%);
  color: #0f172a;
}

.work-schedules-rail-meta {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-schedules-rail-list {
  display: grid;
  gap: 12px;
}

.work-schedules-rail-card {
  cursor: pointer;
  transition: transform 120ms ease, box-shadow 120ms ease, border-color 120ms ease;
}

.work-schedules-rail-card:hover {
  transform: translateY(-1px);
  box-shadow: 0 16px 30px rgba(15, 23, 42, 0.06);
}

.work-schedules-main-column {
  display: grid;
  gap: 18px;
  min-width: 0;
}

.work-schedules-insight-panel,
.work-schedules-tabs-panel {
  min-width: 0;
}

.work-schedules-kpi-grid {
  grid-template-columns: repeat(auto-fit, minmax(200px, 1fr));
}

.work-schedules-overview-notes {
  display: grid;
  gap: 10px;
  margin-top: 16px;
  padding: 16px 18px;
  border-radius: 18px;
  border: 1px solid rgba(148, 163, 184, 0.16);
  background:
    linear-gradient(180deg, rgba(255,255,255,0.98) 0%, rgba(248,250,252,0.98) 100%),
    radial-gradient(circle at top right, rgba(249, 115, 22, 0.08), transparent 34%);
}

.work-schedules-overview-notes p {
  margin: 0;
  color: #334155;
  line-height: 1.6;
}

.work-schedules-overview-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(220px, 1fr));
  gap: 12px;
}

.work-schedules-tab-header {
  display: flex;
  justify-content: flex-start;
  gap: 16px;
  flex-wrap: wrap;
  align-items: center;
  margin-bottom: 16px;
}

.work-schedules-tab-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

.work-schedules-tab {
  min-height: 38px;
  padding: 8px 14px;
  border-radius: 999px;
  border: 1px solid rgba(148, 163, 184, 0.22);
  background: #fff;
  color: #334155;
  font: inherit;
  cursor: pointer;
}

.work-schedules-tab.active {
  border-color: rgba(29, 78, 216, 0.28);
  background: linear-gradient(135deg, rgba(239, 246, 255, 0.98) 0%, rgba(255, 255, 255, 0.98) 100%);
  color: #0f172a;
}

.work-schedules-tab-panel {
  display: none;
}

.work-schedules-tab-panel.is-active {
  display: block;
}

.work-schedules-table-wrap {
  overflow: auto;
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.work-schedules-table {
  width: 100%;
  min-width: 980px;
  border-collapse: collapse;
}

.work-schedules-table th,
.work-schedules-table td {
  padding: 12px 14px;
  border-bottom: 1px solid rgba(226, 232, 240, 0.88);
  vertical-align: top;
  text-align: left;
}

.work-schedules-table th {
  position: sticky;
  top: 0;
  z-index: 2;
  background: #f8fafc;
  color: #475569;
  font-size: 12px;
  text-transform: uppercase;
  letter-spacing: 0.05em;
}

.work-schedules-table tbody tr:hover {
  background: rgba(15, 118, 110, 0.04);
}

.work-schedules-table td strong {
  display: block;
  margin-bottom: 4px;
}

.work-schedules-import-grid {
  display: grid;
  gap: 16px;
}

.work-schedules-import-card {
  border: 1px solid rgba(148, 163, 184, 0.16);
  border-radius: 18px;
  padding: 18px;
  background: linear-gradient(180deg, #ffffff 0%, #f8fafc 100%);
}

.work-schedules-import-form {
  grid-template-columns: 1fr;
}

.work-schedules-import-summary {
  background:
    linear-gradient(180deg, #ffffff 0%, #f8fafc 100%),
    radial-gradient(circle at top right, rgba(15, 118, 110, 0.08), transparent 34%);
}

@media (max-width: 1024px) {
  .project-info-layout {
    grid-template-columns: 1fr;
  }

  .project-info-summary-panel {
    position: static;
  }

  .work-schedules-layout {
    grid-template-columns: 1fr;
  }

  .work-schedules-rail-panel {
    position: static;
  }

  .progress-page .progress-workspace {
    grid-template-columns: 1fr;
  }

  .progress-page .progress-entry-aside {
    position: static;
  }

  .progress-page .reports-hero-head {
    grid-template-columns: 1fr;
  }

  .progress-page .reports-hero-actions {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    justify-content: stretch;
    justify-items: stretch;
  }

  .progress-page .reports-hero-actions .action-card {
    width: 100%;
  }

  .progress-page .app-brand-corner {
    justify-content: flex-start;
  }

  .work-schedules-page .reports-hero-head {
    grid-template-columns: 1fr;
  }

  .work-schedules-page .reports-hero-actions {
    width: 100%;
    grid-template-columns: repeat(auto-fit, minmax(160px, 1fr));
    justify-content: stretch;
    justify-items: stretch;
  }

  .work-schedules-page .reports-hero-actions .action-card {
    width: 100%;
  }

  .work-schedules-page .app-brand-corner {
    justify-content: flex-start;
  }

  .reports-page .reports-hero-head {
    position: relative;
    padding-top: 8px;
  }

  .reports-page .reports-hero-actions {
    padding-top: 104px;
  }

  .reports-page .app-brand-corner {
    position: absolute;
    top: 0;
    right: 0;
    width: auto;
    margin: 0;
    justify-content: flex-end;
    z-index: 2;
  }

  .reports-page .app-brand-corner img {
    width: min(38vw, 156px);
  }
}

@media (max-width: 720px) {
  .project-info-form,
  .project-info-summary-grid {
    grid-template-columns: 1fr;
  }

  .project-info-submit-row button {
    width: 100%;
    min-width: 0;
  }

  .progress-page .reports-hero-copy {
    padding-right: min(44vw, 176px);
  }

  .progress-page .reports-eyebrow {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .progress-page .reports-hero h1 {
    font-size: clamp(22px, 7vw, 30px);
    line-height: 1.04;
  }

  .progress-page .reports-hero p {
    font-size: 13px;
    line-height: 1.45;
  }

  .progress-page .reports-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 92px;
  }

  .progress-page .reports-hero-actions .action-card {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
  }

  .progress-page .app-brand-corner img {
    width: min(34vw, 132px);
  }

  .progress-page .brand-logout-link {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .reports-page:not(.progress-page):not(.puantaj-page):not(.work-schedules-page) .reports-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 92px;
  }

  .reports-page:not(.progress-page):not(.puantaj-page):not(.work-schedules-page) .reports-hero-actions .action-card {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 8px;
    font-size: 12px;
    line-height: 1.15;
    text-align: center;
  }

  .reports-page .reports-hero-actions .action-card,
  .dashboard-page .dashboard-hero-actions .action-card {
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.15;
  }

  .reports-page .brand-logout-link,
  .dashboard-page .brand-logout-link {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .puantaj-page .reports-eyebrow {
    min-height: 24px;
    padding: 3px 8px;
    font-size: 11px;
    letter-spacing: 0.06em;
  }

  .puantaj-page .reports-hero h1 {
    font-size: clamp(22px, 7vw, 28px);
    line-height: 1.04;
  }

  .puantaj-page .reports-hero p {
    font-size: 13px;
    line-height: 1.45;
  }

  .puantaj-page .reports-hero-actions {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    gap: 8px;
    padding-top: 92px;
  }

  .puantaj-page .reports-hero-actions .action-card {
    width: 100%;
    min-width: 0;
    min-height: 44px;
    padding: 9px 10px;
    font-size: 13px;
    line-height: 1.15;
    text-align: center;
  }

  .puantaj-page .app-brand-corner img {
    width: min(34vw, 132px);
  }

  .puantaj-page .brand-logout-link {
    min-height: 32px;
    padding: 5px 10px;
    font-size: 12px;
  }

  .puantaj-summary-grid {
    grid-template-columns: 1fr;
  }

  .work-schedules-context-grid,
  .work-schedules-overview-grid {
    grid-template-columns: 1fr;
  }

  .work-schedules-gantt-panel .panel-head {
    align-items: stretch;
  }

  .work-schedules-tab-header {
    align-items: stretch;
  }

  .work-schedules-tab-bar {
    width: 100%;
  }

  .work-schedules-tab {
    flex: 1 1 calc(50% - 8px);
    justify-content: center;
  }

  .work-schedules-toolbar-actions {
    display: grid;
    grid-template-columns: 1fr;
  }

  .work-schedules-toolbar-actions form {
    width: 100%;
  }

  .work-schedules-toolbar-actions .action-card {
    width: 100%;
  }

  .progress-page .progress-kpi-grid {
    grid-template-columns: 1fr;
  }

  .progress-page .progress-step-toolbar,
  .progress-page .progress-step-actions {
    width: 100%;
  }

  .progress-page .progress-step-actions button {
    flex: 1 1 calc(50% - 6px);
  }

  .progress-page .progress-recent-head,
  .progress-page .progress-recent-meta,
  .progress-page .line-progress-row {
    flex-direction: column;
    align-items: flex-start;
  }

  .progress-page .progress-step-actions {
    justify-content: stretch;
  }

  .progress-page .progress-step-options-primary,
  .progress-page .progress-step-options-compact {
    grid-template-columns: 1fr;
  }

  .progress-page .progress-project-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
  }

  .progress-page .progress-project-card {
    min-height: 104px;
    padding: 14px 12px;
    border-radius: 16px;
    gap: 8px;
  }

  .progress-page .progress-project-card-title {
    font-size: 15px;
  }

  .progress-page .progress-project-card-meta {
    font-size: 12px;
  }

  .progress-page .progress-project-card-note {
    font-size: 11px;
  }
}
