.app-shell { min-height: 100vh; }
.topbar {
  position: sticky; top: 0; z-index: 30;
  display: flex; align-items: center; justify-content: space-between;
  min-height: 72px; padding: 12px clamp(18px,4vw,56px);
  background: rgba(255,255,255,.96); border-bottom: 1px solid var(--line);
  backdrop-filter: blur(12px);
}
.brand { display: flex; align-items: center; gap: 13px; }
.brand-mark { width: 42px; height: 42px; display: grid; place-items: center; border-radius: 13px; background: var(--blue-900); color: white; font-family: var(--serif); font-weight: 700; font-size: 18px; }
.brand-copy strong { display: block; letter-spacing: .08em; }
.brand-copy small { color: var(--muted); }
.top-actions { display: flex; align-items: center; gap: 9px; flex-wrap: wrap; justify-content: flex-end; }
.status-pill { padding: 8px 12px; border-radius: 999px; background: var(--blue-100); color: var(--blue-900); font-size: 13px; font-weight: 700; }
.status-pill.unsaved { background: #FFF4DA; color: #73500A; }
.btn { border: 1px solid transparent; border-radius: 11px; padding: 10px 16px; font-weight: 700; transition: .18s ease; display: inline-flex; align-items: center; justify-content: center; gap: 8px; }
.btn:hover { transform: translateY(-1px); }
.btn:disabled { opacity: .5; cursor: not-allowed; transform: none; }
.btn-primary { background: var(--blue-800); color: white; box-shadow: 0 8px 20px rgba(30,78,140,.18); }
.btn-primary:hover { background: var(--blue-900); }
.btn-secondary { background: white; border-color: var(--line); color: var(--blue-900); }
.btn-ghost { background: transparent; color: var(--blue-900); }
.btn-danger { background: #FFF0F0; color: var(--danger); border-color: #F0CACA; }
.page { width: min(1240px, calc(100% - 36px)); margin: 0 auto; padding: 34px 0 70px; }
.hero { display: grid; grid-template-columns: minmax(0,1.2fr) minmax(320px,.8fr); gap: 32px; align-items: stretch; }
.hero-card, .panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); box-shadow: var(--shadow); }
.hero-main { padding: clamp(28px,5vw,62px); position: relative; overflow: hidden; }
.hero-main::after { content:""; position:absolute; width:330px; height:330px; border-radius:50%; background: radial-gradient(circle,rgba(40,101,168,.18),transparent 68%); right:-110px; bottom:-150px; }
.eyebrow { color: var(--blue-700); font-weight: 800; letter-spacing: .09em; text-transform: uppercase; font-size: 12px; }
.hero h1 { font-family: var(--serif); font-size: clamp(42px,7vw,82px); margin: 8px 0 4px; color: var(--blue-900); letter-spacing: -.035em; }
.hero-subtitle { font-family: var(--serif); font-size: clamp(18px,2vw,25px); line-height: 1.35; max-width: 760px; margin: 0 0 18px; }
.hero-copy { color: var(--muted); line-height: 1.7; max-width: 720px; }
.hero-side { padding: 28px; display: flex; flex-direction: column; gap: 18px; }
.notice { border-left: 4px solid var(--blue-700); background: var(--blue-050); padding: 17px 18px; border-radius: 10px; color: #34435A; line-height: 1.55; }
.notice strong { color: var(--blue-900); }
.mini-list { display: grid; gap: 10px; }
.mini-item { display: flex; align-items: flex-start; gap: 10px; color: var(--muted); }
.mini-icon { width: 25px; height: 25px; border-radius: 8px; background: var(--blue-100); color: var(--blue-900); display:grid; place-items:center; font-weight: 900; flex: 0 0 auto; }
.section-head { display: flex; align-items: flex-end; justify-content: space-between; gap: 20px; margin-bottom: 22px; }
.section-head h1, .section-head h2 { font-family: var(--serif); margin: 0; color: var(--blue-900); }
.section-head p { color: var(--muted); margin: 7px 0 0; }
.breadcrumbs { display: flex; gap: 7px; flex-wrap: wrap; margin-bottom: 22px; color: var(--muted); font-size: 13px; }
.breadcrumbs span { padding: 7px 11px; border-radius: 999px; background: white; border: 1px solid var(--line); }
.breadcrumbs .active { color: white; background: var(--blue-900); border-color: var(--blue-900); }
.grid { display: grid; gap: 18px; }
.service-grid { grid-template-columns: repeat(auto-fit,minmax(235px,1fr)); }
.pop-grid { grid-template-columns: repeat(auto-fit,minmax(300px,1fr)); }
.choice-card { background: white; border: 1px solid var(--line); border-radius: 16px; padding: 21px; text-align: left; transition: .18s; min-height: 145px; display: flex; flex-direction: column; gap: 9px; }
.choice-card:hover { border-color: #A9C4E3; box-shadow: 0 14px 30px rgba(22,58,104,.10); transform: translateY(-2px); }
.choice-card.selected { border: 2px solid var(--blue-700); background: var(--blue-050); }
.choice-card h3 { margin: 0; font-size: 18px; color: var(--blue-900); }
.choice-card p { margin: 0; color: var(--muted); line-height: 1.45; }
.badge-row { display: flex; flex-wrap: wrap; gap: 7px; margin-top: auto; }
.badge { padding: 6px 9px; border-radius: 999px; background: var(--blue-100); color: var(--blue-900); font-size: 12px; font-weight: 700; }
.form-layout { display: grid; grid-template-columns: minmax(0,1.15fr) minmax(420px,.85fr); gap: 24px; align-items: start; }
.form-panel { background: white; border: 1px solid var(--line); border-radius: var(--radius); padding: 24px; box-shadow: var(--shadow); }
.preview-panel { position: sticky; top: 92px; background: #E9EDF2; border: 1px solid #D4DBE3; border-radius: var(--radius); padding: 18px; max-height: calc(100vh - 112px); overflow: auto; }
.group-nav { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 22px; }
.group-tab { border: 1px solid var(--line); background: white; color: var(--muted); border-radius: 999px; padding: 9px 13px; font-weight: 700; }
.group-tab.active { background: var(--blue-900); color: white; border-color: var(--blue-900); }
.question-card { border: 1px solid var(--line); border-radius: 15px; padding: 20px; margin-bottom: 16px; background: #FFF; }
.question-card.missing { border-color: #E6B1B1; box-shadow: 0 0 0 3px rgba(184,71,71,.07); }
.question-number { color: var(--blue-700); font-weight: 800; font-size: 12px; letter-spacing: .06em; text-transform: uppercase; }
.question-card h3 { margin: 5px 0 6px; font-size: 18px; }
.question-help { margin: 0 0 14px; color: var(--muted); font-size: 14px; line-height: 1.5; }
.field, .textarea, .select { width: 100%; border: 1px solid #C9D4DF; border-radius: 10px; background: white; color: var(--ink); padding: 11px 12px; outline: none; }
.field:focus, .textarea:focus, .select:focus { border-color: var(--blue-700); box-shadow: 0 0 0 3px rgba(40,101,168,.12); }
.textarea { min-height: 110px; resize: vertical; }
.chips { display: flex; flex-wrap: wrap; gap: 9px; }
.chip { border: 1px solid #C8D5E3; background: white; color: #31445C; padding: 9px 12px; border-radius: 999px; font-weight: 650; }
.chip:hover { border-color: var(--blue-700); }
.chip.selected { background: var(--blue-900); color: white; border-color: var(--blue-900); }
.more-wrap { margin-top: 11px; }
.custom-add { display: grid; grid-template-columns: minmax(0,1fr) auto; gap: 9px; margin-top: 13px; }
.custom-list { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 10px; }
.custom-tag { display: inline-flex; align-items: center; gap: 7px; padding: 7px 9px; border-radius: 9px; background: var(--blue-100); color: var(--blue-900); font-size: 13px; }
.custom-tag button { border: 0; background: transparent; color: var(--danger); font-weight: 900; padding: 0; }
.suggestion-row { display: flex; gap: 8px; flex-wrap: wrap; margin-bottom: 11px; }
.suggestion-btn { border: 1px dashed #9CB9D8; color: var(--blue-900); background: var(--blue-050); border-radius: 9px; padding: 8px 10px; font-size: 13px; }
.date-field { display: grid; grid-template-columns: 1fr 44px; }
.date-field .field { border-radius: 10px 0 0 10px; }
.calendar-btn { border: 1px solid #C9D4DF; border-left: 0; background: var(--blue-050); color: var(--blue-900); border-radius: 0 10px 10px 0; display: grid; place-items: center; }
.calendar-btn svg { width: 20px; height: 20px; }
.form-grid { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 16px; }
.form-field label { display: block; font-weight: 750; margin-bottom: 7px; }
.form-field.full { grid-column: 1/-1; }
.form-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-top: 20px; }
.review-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 16px; }
.review-col { background: white; border: 1px solid var(--line); border-radius: 15px; padding: 18px; }
.review-col h3 { margin: 0 0 12px; }
.review-item { width: 100%; text-align: left; border: 0; background: #F7F9FC; border-radius: 10px; padding: 11px; margin: 7px 0; color: var(--ink); }
.review-item.blocker { border-left: 4px solid var(--danger); }
.review-item.warning { border-left: 4px solid var(--warning); }
.review-item.complete { border-left: 4px solid var(--success); }
.empty-state { color: var(--muted); padding: 12px 0; }
.preview-toolbar { display:flex; align-items:center; justify-content:space-between; gap:10px; margin-bottom:12px; }
.preview-toolbar strong { color: var(--blue-900); }
.device-lock { position: fixed; inset: 0; z-index: 9999; background: var(--background); display:grid; place-items:center; padding:24px; }
.device-lock-card { max-width: 560px; background:white; border:1px solid var(--line); border-radius:20px; box-shadow:var(--shadow); padding:32px; text-align:center; }
.device-lock-card h1 { font-family:var(--serif); color:var(--blue-900); }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 50; background: #14263B; color: white; padding: 13px 16px; border-radius: 11px; box-shadow: var(--shadow); max-width: 380px; }
.modal-backdrop { position:fixed; inset:0; z-index:60; background:rgba(13,26,42,.55); display:grid; place-items:center; padding:22px; }
.modal { width:min(650px,100%); background:white; border-radius:18px; box-shadow:0 25px 70px rgba(0,0,0,.25); padding:24px; }
.modal h2 { margin-top:0; font-family:var(--serif); color:var(--blue-900); }
@media (max-width: 1050px) { .hero, .form-layout { grid-template-columns: 1fr; } .preview-panel { position: static; max-height: none; } }
@media (max-width: 760px) { .page { width:min(100% - 22px,1240px); padding-top:22px; } .topbar { padding:10px 12px; } .brand-copy small { display:none; } .form-grid, .review-grid { grid-template-columns:1fr; } .top-actions .hide-small { display:none; } }
