.hidden { display: none !important; }

.mode-bar {
  display: flex;
  align-items: center;
  gap: 8px;
  padding: 10px 34px;
  border-bottom: 1px solid #dbe4ea;
  background: #fff;
}

.mode-bar span { margin-left: 8px; color: #687985; font-size: 13px; }
.mode-button { border: 1px solid #b8c9d4; padding: 8px 15px; background: #fff; color: #36566b; font: inherit; font-weight: 700; cursor: pointer; }
.mode-button:first-child { border-radius: 5px 0 0 5px; }
.mode-button:nth-child(2) { margin-left: -9px; border-radius: 0 5px 5px 0; }
.mode-button.active { background: #1e5d88; border-color: #1e5d88; color: #fff; }

.guided-app {
  display: grid;
  grid-template-columns: 220px minmax(560px, 1fr) 280px;
  min-height: calc(100vh - 220px);
}

.wizard-steps { padding: 30px 20px; background: #f6f9fb; border-right: 1px solid #dbe4ea; }
.wizard-step { display: grid; grid-template-columns: 28px 1fr; gap: 8px; padding: 12px 8px; color: #758792; border-left: 3px solid transparent; }
.wizard-step b { grid-row: 1 / 3; width: 24px; height: 24px; display: grid; place-items: center; border-radius: 50%; background: #dfe9ef; font-size: 12px; }
.wizard-step strong { font-size: 14px; }
.wizard-step small { font-size: 12px; }
.wizard-step.active { color: #173b58; background: #e7f1f7; border-left-color: #1e5d88; }
.wizard-step.done b { background: #16877a; color: #fff; }

.wizard-main { padding: 30px 42px; min-width: 0; }
.wizard-progress { height: 5px; background: #e4ebef; margin-bottom: 28px; }
.wizard-progress span { display: block; height: 100%; background: #16877a; transition: width .2s; }
.wizard-kicker { margin: 0 0 6px; color: #1e6a96; font-size: 13px; font-weight: 800; }
.wizard-main h2 { margin: 0 0 9px; color: #172d3b; font-size: 28px; }
.wizard-lead { margin: 0 0 25px; max-width: 720px; color: #60727e; line-height: 1.65; }

.choice-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.choice-card { position: relative; display: block; padding: 17px; border: 1px solid #c7d5de; border-radius: 7px; background: #fff; cursor: pointer; }
.choice-card:hover { border-color: #4c89ad; background: #f7fbfd; }
.choice-card.selected { border: 2px solid #1e6a96; padding: 16px; background: #eef7fc; }
.choice-card input { position: absolute; opacity: 0; }
.choice-card strong { display: block; color: #173b58; font-size: 16px; }
.choice-card small { display: block; margin-top: 5px; color: #6b7b85; line-height: 1.45; }

.wizard-form { display: grid; grid-template-columns: 1fr 1fr; gap: 16px 20px; }
.wizard-field { display: flex; flex-direction: column; gap: 7px; }
.wizard-field.full { grid-column: 1 / -1; }
.wizard-field span { font-weight: 700; color: #283f4e; }
.wizard-field input, .wizard-field select, .wizard-field textarea { width: 100%; border: 1px solid #b9c9d3; border-radius: 5px; padding: 11px 12px; background: #fffdf2; color: #1b2c37; font: inherit; }
.wizard-field .hint { font-size: 12px; color: #768791; font-weight: 400; }

.toggle-list { border-top: 1px solid #dbe4ea; }
.toggle-row { display: flex; justify-content: space-between; align-items: center; gap: 20px; padding: 14px 2px; border-bottom: 1px solid #dbe4ea; }
.toggle-row strong { display: block; }
.toggle-row small { display: block; margin-top: 4px; color: #6b7b85; }
.toggle-row select { min-width: 110px; border: 1px solid #b9c9d3; border-radius: 5px; padding: 9px 10px; background: #fff; }

.route-hero { padding: 20px 22px; border-left: 6px solid #1e6a96; background: #edf6fb; }
.route-hero span { color: #60727e; }
.route-hero strong { display: block; margin: 5px 0; color: #173b58; font-size: 28px; }
.route-hero p { margin: 0; line-height: 1.55; }
.permit-grid { display: grid; grid-template-columns: repeat(2, 1fr); gap: 10px; margin-top: 18px; }
.permit-item { padding: 13px 14px; border: 1px solid #d1dce3; background: #fff; }
.permit-item span { display: block; color: #6c7b84; font-size: 12px; }
.permit-item strong { display: block; margin-top: 4px; }
.permit-item.yes strong { color: #a54431; }
.permit-item.no strong { color: #24734f; }

.evidence-list { border-top: 1px solid #dbe4ea; }
.evidence-row { display: grid; grid-template-columns: 28px minmax(210px, 1fr) minmax(180px, .8fr); gap: 12px; align-items: center; padding: 12px 0; border-bottom: 1px solid #dbe4ea; }
.evidence-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #16877a; }
.evidence-row strong { display: block; }
.evidence-row small { display: block; color: #6b7b85; margin-top: 3px; }
.evidence-row input[type="text"] { width: 100%; border: 1px solid #b9c9d3; border-radius: 4px; padding: 9px 10px; }

.wizard-summary { padding: 30px 22px; border-left: 1px solid #dbe4ea; background: #fbfcfd; }
.wizard-summary h3 { margin: 0 0 16px; font-size: 18px; }
.mini-stat { display: flex; justify-content: space-between; padding: 10px 0; border-bottom: 1px solid #dbe4ea; color: #5f707b; }
.mini-stat strong { color: #173b58; }
.readiness-ring { width: 108px; height: 108px; margin: 22px auto 10px; border-radius: 50%; display: grid; place-items: center; background: conic-gradient(#16877a var(--score), #e3eaee 0); }
.readiness-ring div { width: 82px; height: 82px; display: grid; place-items: center; border-radius: 50%; background: #fff; color: #173b58; font-size: 21px; font-weight: 800; }
.summary-note { margin-top: 16px; padding: 11px; background: #fff2d9; color: #7b531b; line-height: 1.5; font-size: 13px; }

.wizard-actions { display: flex; justify-content: space-between; margin-top: 30px; padding-top: 20px; border-top: 1px solid #dbe4ea; }
.result-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 20px; }
.source-box { margin-top: 18px; padding: 12px 14px; border-left: 3px solid #8098a8; background: #f4f6f7; color: #5e6d76; font-size: 12px; line-height: 1.6; }
.blocker-list { margin: 15px 0 0; padding-left: 22px; line-height: 1.7; }
.blocker-list li::marker { color: #b66b12; }

@media (max-width: 1100px) {
  .guided-app { grid-template-columns: 190px 1fr; }
  .wizard-summary { grid-column: 1 / -1; border-left: 0; border-top: 1px solid #dbe4ea; }
}

@media (max-width: 760px) {
  .mode-bar { padding: 9px 18px; flex-wrap: wrap; }
  .mode-bar span { width: 100%; margin: 3px 0 0; }
  .guided-app { display: block; }
  .wizard-steps { display: flex; overflow-x: auto; padding: 8px; }
  .wizard-step { min-width: 126px; }
  .wizard-step small { display: none; }
  .wizard-main { padding: 22px 18px; }
  .choice-grid, .wizard-form, .permit-grid { grid-template-columns: 1fr; }
  .evidence-row { grid-template-columns: 28px 1fr; }
  .evidence-row input[type="text"] { grid-column: 2; }
}

@media print {
  .mode-bar, .guided-app { display: none !important; }
}
