:root {
  --blue: #0a3a64;
  --teal: #0f9f9a;
  --ink: #1f2933;
  --muted: #657282;
  --line: #d8e2ea;
  --surface: #ffffff;
  --bg: #f5f8fa;
  --danger: #b42318;
  --warning: #b54708;
  --success: #027a48;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  color: var(--ink);
  background: var(--bg);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
a { color: inherit; }
.sidebar {
  position: fixed;
  inset: 0 auto 0 0;
  width: 248px;
  padding: 20px 16px;
  background: #082f4f;
  color: #eefaff;
}
.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  margin-bottom: 22px;
  font-weight: 800;
  text-decoration: none;
}
.brand img { width: 34px; height: 34px; }
nav { display: grid; gap: 4px; }
nav a {
  padding: 9px 10px;
  border-radius: 6px;
  color: #d9eff7;
  text-decoration: none;
}
nav a:hover { background: rgba(255,255,255,.1); }
.main { margin-left: 248px; min-height: 100vh; }
.topbar {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 16px;
  padding: 18px 26px;
  border-bottom: 1px solid var(--line);
  background: var(--surface);
}
.topbar small { display: block; color: var(--muted); margin-top: 2px; }
button, .button {
  border: 0;
  border-radius: 6px;
  padding: 9px 13px;
  color: #fff;
  background: var(--teal);
  font-weight: 700;
  cursor: pointer;
  text-decoration: none;
}
input, select, textarea {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 6px;
  padding: 9px 10px;
  font: inherit;
}
label { font-weight: 700; }
section { margin: 24px 26px; }
.auth-panel, .notice, .table-panel, .form-panel, .detail-panel {
  max-width: 1040px;
  padding: 22px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.auth-panel { max-width: 440px; }
.dashboard-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 14px;
}
.dashboard-grid article {
  min-height: 112px;
  padding: 18px;
  background: var(--surface);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.dashboard-grid span { display: block; color: var(--muted); margin-top: 12px; }
.table { width: 100%; border-collapse: collapse; background: var(--surface); }
.table th, .table td { padding: 10px 12px; border-bottom: 1px solid var(--line); text-align: left; }
.table th { color: var(--muted); font-size: 13px; text-transform: uppercase; }
.status { display: inline-block; border-radius: 999px; padding: 3px 8px; background: #e7f7f6; color: #05605c; font-weight: 700; font-size: 12px; }
.messages { margin: 16px 26px; color: var(--success); }
.disclaimer { color: var(--muted); font-size: 13px; line-height: 1.5; }
@media (max-width: 860px) {
  .sidebar { position: static; width: auto; }
  .main { margin-left: 0; }
  .dashboard-grid { grid-template-columns: 1fr; }
  .topbar { align-items: flex-start; flex-direction: column; }
}

.public-site {
  background: #f6f8f7;
}
.public-nav {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 18px;
  padding: 16px clamp(18px, 5vw, 64px);
  background: #ffffff;
  border-bottom: 1px solid var(--line);
}
.public-brand {
  display: flex;
  align-items: center;
  gap: 10px;
  color: var(--ink);
  font-weight: 800;
  text-decoration: none;
}
.public-brand img { width: 38px; height: 38px; }
.public-nav nav {
  display: flex;
  align-items: center;
  gap: 14px;
}
.public-nav nav a {
  padding: 8px 0;
  color: var(--ink);
  text-decoration: none;
}
.public-nav nav .button {
  padding: 9px 13px;
  color: #ffffff;
}
.public-hero {
  min-height: 620px;
  display: grid;
  grid-template-columns: minmax(0, 1.1fr) minmax(300px, .7fr);
  align-items: center;
  gap: clamp(24px, 5vw, 72px);
  padding: clamp(48px, 8vw, 96px) clamp(18px, 5vw, 64px);
  background:
    linear-gradient(90deg, rgba(246, 248, 247, .96), rgba(246, 248, 247, .72)),
    url("../brand/logo.377703211e63.svg") right 9% center / min(42vw, 520px) no-repeat,
    #eef6f3;
}
.public-hero__content {
  max-width: 760px;
}
.eyebrow {
  margin: 0 0 12px;
  color: #6d3f12;
  font-weight: 800;
  text-transform: uppercase;
}
.public-hero h1 {
  margin: 0;
  font-size: clamp(46px, 7vw, 84px);
  line-height: .98;
  letter-spacing: 0;
}
.lead {
  max-width: 680px;
  margin: 22px 0 0;
  color: #35424f;
  font-size: 22px;
  line-height: 1.45;
}
.public-actions {
  display: flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 18px;
  margin-top: 30px;
}
.public-actions a:not(.button) {
  color: #0a3a64;
  font-weight: 800;
  text-decoration: none;
}
.public-snapshot {
  padding: 22px;
  background: rgba(255,255,255,.9);
  border: 1px solid var(--line);
  border-radius: 8px;
}
.public-snapshot strong {
  display: block;
  margin-bottom: 14px;
  color: #6d3f12;
}
.public-snapshot dl {
  display: grid;
  gap: 14px;
  margin: 0;
}
.public-snapshot div {
  padding-bottom: 14px;
  border-bottom: 1px solid var(--line);
}
.public-snapshot div:last-child { border-bottom: 0; padding-bottom: 0; }
.public-snapshot dt { font-weight: 800; }
.public-snapshot dd { margin: 4px 0 0; color: var(--muted); }
.public-section {
  max-width: 1180px;
  margin: 0 auto;
  padding: 60px clamp(18px, 5vw, 64px);
}
.public-section h2 {
  margin: 0 0 22px;
  font-size: 32px;
}
.feature-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 16px;
}
.feature-grid article {
  min-height: 220px;
  padding: 20px;
  background: #ffffff;
  border: 1px solid var(--line);
  border-radius: 8px;
}
.feature-grid h3 { margin-top: 0; }
.feature-grid p, .public-section p {
  color: #465565;
  line-height: 1.6;
}
.public-band {
  max-width: none;
  background: #ffffff;
}
.public-band > * {
  max-width: 960px;
  margin-left: auto;
  margin-right: auto;
}
.public-contact {
  display: grid;
  gap: 12px;
  justify-items: start;
}
@media (max-width: 980px) {
  .public-hero { grid-template-columns: 1fr; min-height: auto; }
  .feature-grid { grid-template-columns: repeat(2, minmax(0, 1fr)); }
}
@media (max-width: 700px) {
  .public-nav { align-items: flex-start; flex-direction: column; }
  .public-nav nav { flex-wrap: wrap; }
  .public-hero h1 { font-size: 46px; }
  .lead { font-size: 18px; }
  .feature-grid { grid-template-columns: 1fr; }
}
