:root {
  --navy: #07254f;
  --blue: #1759db;
  --teal: #007e8b;
  --cream: #fbf9f5;
  --white: #fff;
  --ink: #10233c;
  --muted: #53657a;
  --line: #dfe6ea;
  --danger: #a83c32;
  --success: #0a7254;
  --shadow: 0 18px 55px rgba(7, 37, 79, 0.12);
}

* { box-sizing: border-box; }

html { background: var(--cream); scroll-behavior: smooth; }

body {
  margin: 0;
  background: var(--cream);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}

a { color: inherit; }

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

:focus-visible { outline: 3px solid var(--teal); outline-offset: 3px; }

.topbar {
  position: sticky;
  z-index: 10;
  top: 0;
  display: flex;
  min-height: 74px;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 0 4vw;
  border-bottom: 1px solid rgba(7, 37, 79, .12);
  background: rgba(255, 255, 255, .96);
}

.brand { color: var(--navy); font-size: 1.25rem; font-weight: 850; text-decoration: none; }
.brand span { color: var(--blue); }

.account { display: flex; align-items: center; gap: 1rem; color: var(--muted); font-size: .9rem; }
.account strong { color: var(--ink); }

.shell { width: min(1180px, calc(100% - 2rem)); margin: 0 auto; padding: 2.5rem 0 5rem; }

.hero {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 2rem;
  align-items: end;
  padding: 2.5rem;
  border-radius: 24px;
  background: var(--navy);
  color: var(--white);
  box-shadow: var(--shadow);
}

.eyebrow {
  margin: 0 0 .7rem;
  color: #7be1dd;
  font-size: .76rem;
  font-weight: 850;
  letter-spacing: .12em;
  text-transform: uppercase;
}

h1, h2, h3, p { margin-top: 0; }
h1 { max-width: 780px; margin-bottom: .8rem; font-size: clamp(2.2rem, 5vw, 4rem); letter-spacing: -.055em; line-height: .98; }
.hero p:last-child { max-width: 760px; margin-bottom: 0; color: #dce7f4; line-height: 1.65; }

.stat {
  min-width: 180px;
  padding: 1.3rem;
  border: 1px solid rgba(255, 255, 255, .18);
  border-radius: 16px;
  background: rgba(255, 255, 255, .08);
}
.stat strong { display: block; font-size: 2rem; }
.stat span { color: #dce7f4; font-size: .86rem; }

.notice { margin: 1.2rem 0 0; padding: 1rem 1.15rem; border-radius: 10px; font-weight: 700; }
.notice-success { background: #d9f3e9; color: var(--success); }
.notice-error { background: #f8dedb; color: var(--danger); }

.jump-nav { display: flex; flex-wrap: wrap; gap: .65rem; margin: 1.25rem 0; }
.jump-nav a {
  padding: .65rem .9rem;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--white);
  color: var(--navy);
  font-size: .86rem;
  font-weight: 760;
  text-decoration: none;
}

.section {
  margin-top: 1rem;
  border: 1px solid var(--line);
  border-radius: 18px;
  background: var(--white);
  box-shadow: 0 8px 28px rgba(7, 37, 79, .055);
}

.section > summary {
  display: flex;
  cursor: pointer;
  list-style: none;
  align-items: center;
  justify-content: space-between;
  gap: 1rem;
  padding: 1.25rem 1.4rem;
  color: var(--navy);
  font-size: 1.08rem;
  font-weight: 850;
}

.section > summary::-webkit-details-marker { display: none; }
.section > summary::after { content: "+"; color: var(--blue); font-size: 1.4rem; }
.section[open] > summary::after { content: "−"; }
.section > summary small { color: var(--muted); font-size: .78rem; font-weight: 650; }

.section-body { padding: 0 1.4rem 1.4rem; }

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

.card {
  display: grid;
  align-content: start;
  gap: .85rem;
  padding: 1.2rem;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
}
.card-new { border: 2px dashed #b9c9d9; background: #f8fbff; }
.card h3 { margin-bottom: 0; color: var(--navy); }

label { display: grid; gap: .38rem; color: var(--ink); font-size: .82rem; font-weight: 760; }
input, textarea, select {
  width: 100%;
  border: 1px solid #bcc9d5;
  border-radius: 8px;
  padding: .72rem .78rem;
  background: var(--white);
  color: var(--ink);
}
textarea { min-height: 92px; resize: vertical; line-height: 1.5; }

.button {
  display: inline-flex;
  min-height: 44px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 9px;
  padding: .72rem 1rem;
  cursor: pointer;
  background: var(--blue);
  color: var(--white);
  font-weight: 800;
  text-decoration: none;
}
.button-secondary { background: var(--navy); }
.button-quiet { border: 1px solid var(--line); background: var(--white); color: var(--navy); }

.login-shell { display: grid; min-height: 100vh; place-items: center; padding: 1.5rem; background: var(--navy); }
.login-card {
  width: min(560px, 100%);
  padding: clamp(1.6rem, 5vw, 3rem);
  border-radius: 24px;
  background: var(--white);
  box-shadow: var(--shadow);
}
.login-card h1 { color: var(--navy); font-size: clamp(2.2rem, 8vw, 4.3rem); }
.login-card > p:not(.eyebrow) { color: var(--muted); line-height: 1.7; }

.footer-note { margin: 2rem 0 0; color: var(--muted); font-size: .84rem; line-height: 1.6; }

@media (max-width: 780px) {
  .account strong { display: none; }
  .hero { grid-template-columns: 1fr; padding: 1.5rem; }
  .stat { min-width: 0; }
  .grid { grid-template-columns: 1fr; }
  .section > summary { align-items: flex-start; }
}
