:root {
  color-scheme: light;
  --bg: #f4f6f8;
  --ink: #1d252d;
  --muted: #63707d;
  --line: #d9e0e7;
  --panel: #ffffff;
  --green: #1f8f5f;
  --blue: #2e68c5;
  --amber: #b97813;
}

* {
  box-sizing: border-box;
}

body {
  margin: 0;
  background: var(--bg);
  color: var(--ink);
  font-family: Arial, "PingFang SC", "Microsoft YaHei", sans-serif;
}

.locked {
  display: none;
}

.login-screen {
  align-items: center;
  background: #172f3f;
  display: flex;
  min-height: 100vh;
  padding: 24px;
}

.login-screen.hidden {
  display: none;
}

.login-card {
  background: #fff;
  border-radius: 8px;
  box-shadow: 0 18px 50px rgba(10, 24, 34, 0.28);
  margin: 0 auto;
  max-width: 420px;
  padding: 28px;
  width: 100%;
}

.login-card .eyebrow {
  color: #63707d;
}

.login-card h1 {
  color: #172f3f;
  margin-bottom: 22px;
}

.login-card label {
  color: #33424f;
  display: block;
  font-size: 13px;
  font-weight: 700;
  margin-bottom: 8px;
}

.password-row {
  display: grid;
  gap: 10px;
  grid-template-columns: minmax(0, 1fr) 86px;
}

.password-row input {
  border: 1px solid #cbd5dd;
  border-radius: 6px;
  font-size: 16px;
  min-height: 42px;
  padding: 8px 10px;
}

.password-row button {
  background: #172f3f;
  border: 0;
  border-radius: 6px;
  color: #fff;
  cursor: pointer;
  font-size: 14px;
  font-weight: 700;
}

.login-error {
  color: #b42318;
  font-size: 13px;
  line-height: 1.5;
  margin-top: 10px;
  min-height: 20px;
}

.page {
  margin: 0 auto;
  max-width: 1440px;
  padding: 28px;
}

.hero {
  align-items: end;
  background: #172f3f;
  border-radius: 8px;
  color: #fff;
  display: grid;
  gap: 28px;
  grid-template-columns: minmax(0, 1fr) 420px;
  padding: 30px;
}

.eyebrow {
  color: #a9c4d5;
  font-size: 13px;
  font-weight: 700;
  margin: 0 0 10px;
}

h1,
h2,
p {
  margin: 0;
}

h1 {
  font-size: 38px;
  line-height: 1.15;
}

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

.summary span {
  background: rgba(255, 255, 255, 0.08);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 6px;
  color: #c5d5df;
  display: block;
  font-size: 12px;
  font-weight: 700;
  padding: 14px;
}

.summary strong {
  color: #fff;
  display: block;
  font-size: 30px;
  margin-top: 10px;
}

.tabs {
  background: #e5ebef;
  border: 1px solid var(--line);
  border-radius: 8px;
  display: grid;
  gap: 4px;
  grid-template-columns: repeat(4, 1fr);
  margin-top: 18px;
  padding: 4px;
  position: sticky;
  top: 0;
  z-index: 5;
}

.tab {
  background: transparent;
  border: 0;
  border-radius: 6px;
  color: #33424f;
  cursor: pointer;
  font-size: 15px;
  font-weight: 700;
  min-height: 42px;
}

.tab.active {
  background: #fff;
  box-shadow: 0 1px 6px rgba(22, 38, 51, 0.12);
  color: #162637;
}

.panel {
  display: none;
  margin-top: 18px;
}

.panel.active {
  display: block;
}

.duration-summary {
  align-items: center;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  color: #33424f;
  display: flex;
  font-size: 14px;
  font-weight: 700;
  justify-content: flex-end;
  margin-bottom: 10px;
  min-height: 42px;
  padding: 10px 14px;
}

.duration-summary strong {
  color: #162637;
  font-size: 20px;
  margin: 0 4px;
}

.badge {
  border: 1px solid;
  border-radius: 4px;
  display: inline-flex;
  font-size: 12px;
  font-weight: 700;
  line-height: 1;
  padding: 7px 9px;
  white-space: nowrap;
}

.green {
  background: #e6f5ed;
  border-color: #a8d9bf;
  color: var(--green);
}

.blue {
  background: #eaf1ff;
  border-color: #b9cdf5;
  color: var(--blue);
}

.amber {
  background: #fff4db;
  border-color: #eccd86;
  color: var(--amber);
}

.table-wrap {
  background: var(--panel);
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 12px;
  overflow-x: auto;
}

table {
  border-collapse: collapse;
  min-width: 1100px;
  width: 100%;
}

th,
td {
  border-bottom: 1px solid #e7edf1;
  border-right: 1px solid #edf1f4;
  font-size: 13px;
  height: 42px;
  line-height: 1.55;
  padding: 10px 12px;
  text-align: left;
  vertical-align: middle;
  word-break: break-word;
}

th {
  background: #f3f3f3;
  color: #596875;
  font-weight: 700;
  position: sticky;
  top: 52px;
  z-index: 2;
}

.sheet-title th {
  color: #1d252d;
  font-size: 13px;
  font-weight: 700;
  height: 38px;
  text-align: center;
}

.yellow-title th {
  background: #fff56d;
}

.green-title th {
  background: #b4e500;
}

.blue-title th {
  background: #eef6ff;
}

.pending-title th {
  background: #ece7ff;
}

tbody tr:nth-child(even) td {
  background: #f8fafb;
}

tbody tr:hover td {
  background: #fbfcfd;
}

tbody tr.highlight td {
  background: #fff789;
}

.module {
  background: #f0f4f7;
  color: #24313a;
  font-weight: 700;
  min-width: 120px;
  text-align: center;
}

.feature {
  color: #1d252d;
  font-weight: 650;
  min-width: 260px;
}

.note {
  color: var(--muted);
  min-width: 320px;
}

.priority {
  color: #0046ff;
  font-weight: 700;
  text-align: center;
  width: 58px;
}

.cost-summary {
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 8px;
  margin-top: 18px;
  padding: 20px;
}

.cost-summary h2 {
  font-size: 22px;
  margin: 0 0 14px;
}

.cost-summary h3 {
  color: #33424f;
  font-size: 17px;
  margin: 0 0 10px;
}

.cost-heading {
  margin-top: 18px !important;
}

.dev-rhythm {
  background: #f8fafb;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  color: #33424f;
  font-size: 14px;
  line-height: 1.8;
  margin: 0;
  padding: 12px 18px 12px 34px;
}

.dev-rhythm li + li {
  margin-top: 4px;
}

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

.cost-grid div {
  background: #f8fafb;
  border: 1px solid #e1e8ed;
  border-radius: 6px;
  padding: 12px;
}

.cost-grid span {
  color: var(--muted);
  display: block;
  font-size: 12px;
  font-weight: 700;
}

.cost-grid strong {
  color: #172f3f;
  display: block;
  font-size: 24px;
  margin-top: 8px;
}

.cost-note {
  background: #fff8df;
  border: 1px solid #ead28b;
  border-radius: 6px;
  color: #3c4147;
  font-size: 14px;
  line-height: 1.7;
  margin-top: 14px;
  padding: 12px 14px;
}

.cost-note p + p {
  margin-top: 4px;
}

@media (max-width: 900px) {
  .page {
    padding: 14px;
  }

  .hero {
    grid-template-columns: 1fr;
    padding: 22px;
  }

  .summary,
  .tabs,
  .cost-grid {
    grid-template-columns: 1fr;
  }

  h1 {
    font-size: 30px;
  }
}
