:root {
  --bg: #edf5f7;
  --card: #ffffff;
  --ink: #102532;
  --muted: #627582;
  --line: #d7e4e8;
  --primary: #0b6585;
  --primary-dark: #084c64;
  --danger: #b42318;
  --danger-bg: #fff0ed;
  --soft: #f6fbfc;
  --accent: #ccecf4;
  --shadow: 0 18px 50px rgba(16, 37, 50, 0.08);
}

* { box-sizing: border-box; }
html { scrollbar-gutter: stable; }
body {
  margin: 0;
  background: radial-gradient(circle at top left, #d9f4fb, transparent 35rem), var(--bg);
  color: var(--ink);
  font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
}
button, input, select, textarea { font: inherit; }
button { cursor: pointer; }
.shell { width: min(1180px, calc(100% - 32px)); margin: 0 auto; padding: 28px 0 64px; }
.topbar { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin-bottom: 22px; }
.brand h1 { margin: 0; font-size: clamp(28px, 4vw, 44px); letter-spacing: -0.04em; }
.eyebrow { margin: 0 0 6px; color: var(--primary); text-transform: uppercase; font-weight: 800; letter-spacing: 0.16em; font-size: 12px; }
.muted { color: var(--muted); }
.panel { background: rgba(255,255,255,0.94); border: 1px solid var(--line); border-radius: 24px; padding: 22px; box-shadow: var(--shadow); }
.center-panel { min-height: 58vh; display: grid; place-items: center; text-align: center; }
.grid { display: grid; grid-template-columns: 280px 1fr; gap: 18px; align-items: start; }
.nav { position: sticky; top: 18px; display: grid; gap: 10px; }
.nav button { text-align: left; border: 1px solid transparent; background: transparent; border-radius: 16px; padding: 12px 14px; color: var(--ink); }
.nav button.active { background: var(--accent); border-color: #a3d9e6; font-weight: 800; }
.stack { display: grid; gap: 16px; }
.row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.space-between { justify-content: space-between; }
.card { border: 1px solid var(--line); background: var(--card); border-radius: 18px; padding: 16px; }
.card h2, .card h3 { margin: 0 0 10px; }
.list { display: grid; gap: 10px; }
.item { border: 1px solid var(--line); border-radius: 16px; padding: 14px; background: var(--soft); }
.item-title { font-weight: 850; }
.item-meta { color: var(--muted); font-size: 13px; margin-top: 4px; }
.actions { display: flex; gap: 8px; flex-wrap: wrap; margin-top: 12px; }
.form-grid { display: grid; gap: 12px; }
.two { grid-template-columns: repeat(2, minmax(0, 1fr)); }
.three { grid-template-columns: repeat(3, minmax(0, 1fr)); }
label { display: grid; gap: 6px; font-weight: 750; color: var(--ink); }
.field-help { color: var(--muted); font-size: 13px; font-weight: 500; margin-top: -2px; }
.form-grid > .actions { margin-top: 0; }
input, select, textarea {
  width: 100%; border: 1px solid var(--line); border-radius: 12px; padding: 10px 12px; background: white; color: var(--ink);
}
textarea { min-height: 110px; resize: vertical; }
.checkline { display: flex; align-items: center; gap: 8px; font-weight: 700; }
.checkline input { width: auto; }
.btn { border: 0; border-radius: 999px; padding: 10px 14px; background: var(--primary); color: white; font-weight: 850; }
.btn:hover { background: var(--primary-dark); }
.btn.secondary { background: #e5f1f4; color: var(--ink); }
.btn.danger { background: var(--danger-bg); color: var(--danger); }
.btn.ghost { background: transparent; color: var(--primary); padding-inline: 6px; }
.notice { display: flex; align-items: center; justify-content: space-between; gap: 12px; border: 1px solid #a3d9e6; background: #eefaff; color: #16495b; border-radius: 16px; padding: 14px; margin-bottom: 16px; }
.notice button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; border: 0; background: transparent; color: inherit; font-size: 22px; line-height: 1; padding: 0; transform: translateY(-1px); }
.error { border-color: #ffc9c2; background: var(--danger-bg); color: var(--danger); }
.tabs { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 16px; }
.tab { border: 1px solid var(--line); background: white; border-radius: 999px; padding: 9px 12px; font-weight: 800; }
.tab.active { background: var(--ink); color: white; }
.alternative-row { display: grid; grid-template-columns: auto 56px 1fr auto; gap: 8px; align-items: center; margin-bottom: 8px; }
.alternative-row input[type='radio'] { width: auto; }
.badge { display: inline-flex; align-items: center; border-radius: 999px; padding: 3px 8px; background: #e9f5ec; color: #1f6b35; font-size: 12px; font-weight: 850; }
.badge.locked { background: #f6ece9; color: #9a3412; }
.empty { border: 1px dashed var(--line); border-radius: 16px; padding: 20px; text-align: center; color: var(--muted); }
.hidden { display: none !important; }
@media (max-width: 860px) {
  .grid, .two, .three { grid-template-columns: 1fr; }
  .nav { position: static; }
  .topbar { align-items: flex-start; flex-direction: column; }
}

.form-error { border: 1px solid #ffc9c2; background: var(--danger-bg); color: var(--danger); border-radius: 12px; padding: 10px 12px; font-weight: 750; }
