:root {
  color-scheme: light;
  --ink: #14213d;
  --muted: #5b6472;
  --brand: #0b5cad;
  --accent: #f59e0b;
  --bg: #f6f8fb;
  --card: #ffffff;
  --border: #d9e2ec;
  --error: #b42318;
  --ok: #067647;
}

* { box-sizing: border-box; }
body {
  margin: 0;
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  background: var(--bg);
  color: var(--ink);
}
.shell, .admin { width: min(980px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.hero { margin-bottom: 20px; }
.eyebrow { color: var(--brand); font-weight: 800; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 5vw, 3.4rem); margin: 0 0 10px; }
h2 { font-size: 1.05rem; margin: 0 0 14px; }
p { color: var(--muted); line-height: 1.55; }
.card { background: var(--card); border: 1px solid var(--border); border-radius: 18px; padding: 22px; box-shadow: 0 12px 30px rgba(20, 33, 61, .07); }
section { padding: 18px 0; border-top: 1px solid var(--border); }
section:first-child { border-top: 0; padding-top: 0; }
.grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
label { display: grid; gap: 7px; font-weight: 650; font-size: .92rem; }
input, select, textarea {
  width: 100%;
  border: 1px solid var(--border);
  border-radius: 10px;
  padding: 11px 12px;
  font: inherit;
  background: #fff;
  color: var(--ink);
}
textarea { resize: vertical; }
.actions { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 18px; }
button {
  border: 0;
  border-radius: 999px;
  padding: 12px 18px;
  font: inherit;
  font-weight: 800;
  cursor: pointer;
  background: var(--brand);
  color: #fff;
}
button#calculate { background: #e8f1fb; color: var(--brand); }
button:disabled { opacity: .6; cursor: wait; }
.quote, .message { display: none; border-radius: 12px; padding: 14px; margin-top: 16px; line-height: 1.5; }
.quote.show { display: block; background: #eef6ff; border: 1px solid #bfd9f5; }
.message.show { display: block; background: #fff1f0; border: 1px solid #f3b8b3; color: var(--error); }
.message.ok { background: #ecfdf3; border-color: #abefc6; color: var(--ok); }
.fine { font-size: .9rem; }
.table-wrap { overflow-x: auto; background: #fff; border: 1px solid var(--border); border-radius: 14px; }
table { border-collapse: collapse; width: 100%; min-width: 1100px; font-size: .9rem; }
th, td { border-bottom: 1px solid var(--border); padding: 10px; text-align: left; vertical-align: top; }
th { background: #eef4fb; }
.filter { display: flex; gap: 12px; align-items: end; margin: 16px 0; }
@media (max-width: 720px) {
  .grid { grid-template-columns: 1fr; }
  .card { padding: 16px; }
  .actions button { width: 100%; }
}
