.guide-shell, .guide-banner { background: var(--surface, #fff); border: 1px solid var(--line, #d7e4e9); border-radius: 18px; margin: 0 0 24px; color: var(--ink, #102d46); }
.guide-shell { padding: 24px; }
.guide-header, .guide-banner-top { display: flex; align-items: flex-start; justify-content: space-between; gap: 20px; }
.guide-header h1 { font-size: clamp(1.5rem, 3vw, 2rem); margin: 0 0 12px; }
.guide-header p { max-width: 65ch; line-height: 1.65; margin: 0; }
.guide-header > button { flex-shrink: 0; }
.guide-progress { display: flex; flex-wrap: wrap; align-items: center; gap: 12px; margin: 18px 0 10px; font-size: .9rem; }
.guide-progress progress { accent-color: #087e8b; height: 9px; width: min(260px, 100%); }
.guide-scope, .guide-saved { font-size: .85rem; line-height: 1.6; color: var(--muted, #526d80); }
.guide-layout { display: grid; grid-template-columns: minmax(220px, .8fr) minmax(0, 1.7fr); gap: 24px; margin-top: 22px; }
.guide-layout:not(:has(nav)) { display: block; }
.guide-layout > nav { min-width: 0; }
.nav button[data-section=guide] { --nav-icon: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='black' stroke-width='1.7'%3E%3Cpath d='m3 5 2 2 3-3M11 6h10M3 12h4M11 12h10M3 18h4M11 18h10'/%3E%3C/svg%3E"); }
.guide-steps { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.guide-steps button { width: 100%; display: flex; align-items: flex-start; gap: 10px; text-align: left; padding: 12px; border: 1px solid transparent; border-radius: 10px; background: transparent; color: inherit; font: inherit; cursor: pointer; }
.guide-steps button:hover { background: #f0f7f8; }
.guide-steps button[aria-current="step"] { background: #e9f6f5; border-color: #72abae; }
.guide-steps small { display: block; margin-top: 5px; font-size: .75rem; color: #4c6878; }
.guide-number { flex-shrink: 0; display: grid; place-items: center; width: 28px; height: 28px; border-radius: 50%; background: #102d46; color: #fff; font-size: .8rem; }
.guide-detail { min-width: 0; line-height: 1.65; }
.guide-detail h2 { margin: 0 0 12px; font-size: 1.4rem; }
.guide-detail h3 { margin: 22px 0 6px; font-size: 1rem; }
.guide-detail p { margin: 8px 0 16px; }
.guide-goal { font-size: 1.05rem; }
.guide-instructions { padding-left: 24px; }
.guide-instructions li { padding-left: 5px; margin-bottom: 14px; }
.guide-check, .guide-evidence { background: #eef8f4; border-radius: 10px; padding: 14px 18px; }
.guide-check h3 { margin-top: 0; }
.guide-check p { margin-bottom: 0; }
.guide-warning { border-left: 3px solid #b58c2e; padding: 8px 14px; background: #fcf9ef; font-size: .9rem; }
.guide-actions, .guide-controls { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; }
.guide-controls { border-top: 1px solid #d7e4e9; padding-top: 20px; margin-top: 24px; }
.guide-help { padding: 20px 0 0; display: grid; justify-items: start; gap: 8px; }
.guide-help small { color: var(--muted, #526d80); }
.guide-sources { margin-top: 20px; }
.guide-sources summary, .guide-banner > details > summary { cursor: pointer; padding: 10px 0; font-weight: 600; }
.guide-banner { padding: 16px 20px; border-left: 4px solid #087e8b; }
.guide-banner .guide-detail { max-width: 80ch; padding: 10px 0; }
.guide-banner .guide-progress { margin: 8px 0 0; }
.guide-error { color: #a32734; }
.guide-error:empty, .guide-status:empty { display: none; }
.guide-status { color: #087e8b; }
.guide-shell button, .guide-banner button, .guide-shell a.secondary, .guide-banner a.secondary { min-height: 44px; white-space: normal; }
.guide-shell :focus-visible, .guide-banner :focus-visible { outline: 3px solid #087e8b; outline-offset: 3px; }
@media (max-width: 760px) {
  .guide-shell { padding: 18px 14px; }
  .guide-layout { grid-template-columns: minmax(0, 1fr); gap: 20px; }
  .guide-steps { display: flex; overflow-x: auto; padding: 4px 4px 12px; scroll-snap-type: x proximity; }
  .guide-steps li { flex: 0 0 200px; scroll-snap-align: start; }
  .guide-header, .guide-banner-top { flex-direction: column; gap: 12px; }
  .guide-controls > button { flex: 1 1 140px; }
}
