:root {
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #1f2937;
  background: #f7f4ef;
}
* { box-sizing: border-box; }
body { margin: 0; }
.app { width: min(1100px, calc(100% - 32px)); margin: 0 auto; padding: 32px 0 56px; }
.hero { background: linear-gradient(135deg, #243b53, #486581); color: white; padding: 34px; border-radius: 28px; box-shadow: 0 18px 45px rgba(31, 41, 55, .18); }
.eyebrow { text-transform: uppercase; letter-spacing: .12em; font-weight: 700; opacity: .8; margin: 0 0 8px; }
h1 { font-size: clamp(2rem, 5vw, 4rem); line-height: 1; margin: 0 0 12px; }
.sub { font-size: 1.1rem; max-width: 680px; margin: 0; opacity: .92; }
.card { background: white; border-radius: 22px; padding: 22px; margin-top: 22px; box-shadow: 0 12px 30px rgba(31, 41, 55, .08); }
.controls { display: grid; grid-template-columns: 1.5fr .5fr auto auto; gap: 14px; align-items: end; }
label { font-weight: 700; display: grid; gap: 8px; }
input, select, textarea { width: 100%; border: 1px solid #d6d3d1; border-radius: 12px; padding: 11px 12px; font: inherit; background: #fff; }
button { border: 0; background: #e26d5c; color: white; border-radius: 12px; padding: 12px 16px; font-weight: 800; cursor: pointer; transition: transform .1s ease, opacity .1s ease; }
button:hover { transform: translateY(-1px); opacity: .94; }
button.secondary { background: #334e68; }
button.danger { background: #9f1239; }
.section-head { display: flex; justify-content: space-between; gap: 16px; align-items: center; margin-bottom: 12px; }
h2 { margin: 0; }
.table-wrap { overflow-x: auto; }
table { width: 100%; border-collapse: collapse; min-width: 760px; }
th { text-align: left; font-size: .86rem; color: #64748b; padding: 8px; }
td { padding: 8px; border-top: 1px solid #eee; }
.remove { background: #64748b; border-radius: 999px; width: 36px; height: 36px; padding: 0; font-size: 1.25rem; }
.hint { color: #64748b; margin: 10px 0 0; }
.summary-grid { display: grid; grid-template-columns: repeat(4, 1fr); gap: 16px; margin-top: 22px; }
.summary-card { background: #fff; border-radius: 20px; padding: 20px; box-shadow: 0 12px 30px rgba(31, 41, 55, .08); }
.summary-card span { color: #64748b; font-weight: 700; display: block; margin-bottom: 8px; }
.summary-card strong { font-size: 1.7rem; }
textarea { min-height: 280px; font-family: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace; font-size: .9rem; }
.actions { margin-top: 12px; display: flex; justify-content: flex-end; }
@media (max-width: 850px) {
  .controls, .summary-grid { grid-template-columns: 1fr; }
  .section-head { align-items: flex-start; flex-direction: column; }
}
