/* v4 journey. Same InspectAhead palette and reading typography. */
.site-header{max-width:1260px;min-height:76px;padding:14px 0;gap:16px}
.header-actions{margin-left:auto;display:flex;gap:4px;align-items:center}
.header-actions button{border-color:transparent;background:transparent;padding:10px 12px}
.owner-marker{font-size:.75rem;border:1px solid var(--line);border-radius:20px;padding:3px 8px;color:var(--muted)}
#breadcrumb{max-width:1260px;margin:0 auto;display:flex;align-items:center;justify-content:space-between;gap:12px;min-height:0}
#breadcrumb:not(:empty){padding-top:6px;min-height:50px}
#breadcrumb .text-button{font-size:.875rem;text-decoration:none}
#breadcrumb .text-button:first-child{font-weight:650}
#sync-notice{max-width:1260px;margin:10px auto;padding:14px 18px}
#sync-notice .actions{margin-top:8px}
#main{min-height:65vh}
.journey-page{max-width:1000px;margin:0 auto;padding:48px 0 30px}
.journey-page>h1{font-size:2.65rem;line-height:1.2;margin-bottom:14px}
.journey-page>p{color:var(--muted);font-size:1.05rem;line-height:1.75;max-width:720px}
.journey-page>.actions{margin-top:30px;gap:12px}
.signin-page{width:100%;max-width:460px;margin:0 auto;padding:50px 0 40px}
.signin-page h1{font-size:2.7rem;margin:14px 0 18px}
.signin-page>p:not(.eyebrow){font-size:1rem;line-height:1.7;color:var(--muted)}
#signin-form{margin-top:26px;display:grid;gap:10px}
#signin-form input{width:100%;min-width:0;min-height:48px;font-size:16px;background:var(--surface);border:1px solid var(--line);border-radius:5px;padding:10px 12px}
#signin-form .field-label{margin:8px 0 0}
#signin-form>button{margin-top:12px;min-height:48px}
.password-row{display:flex;gap:8px}
.password-row>button{min-width:82px;flex-shrink:0}
#signin-error{color:var(--signal);font-size:.9375rem;line-height:1.6}
.owner-entry{border-top:1px solid var(--line);padding-top:18px;margin-top:28px;text-align:center}
.owner-entry button{font-size:.8125rem}
.welcome-page{max-width:760px}
.welcome-page .welcome-thanks{font-size:1.25rem;color:var(--ink);line-height:1.75;margin-bottom:18px}
.illustration{width:100px;height:100px;border-radius:24px;background:var(--green-soft);display:grid;place-items:center;color:var(--field);margin-bottom:26px}
.journey-icon{width:64px;height:64px;flex-shrink:0;color:var(--field)}
.choice-cards{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:24px;margin-top:32px}
.choice-card{padding:30px;text-align:left;border:1px solid var(--line);border-radius:14px;min-height:245px;display:grid;grid-template-columns:1fr auto;align-content:start;gap:24px;background:var(--surface);box-shadow:var(--shadow)}
.choice-card>.journey-icon{grid-column:1;width:66px;height:66px;background:var(--green-soft);border-radius:15px;padding:9px}
.choice-card>span:not(.card-arrow){grid-column:1/-1;display:block}
.choice-card strong{display:block;font:400 1.85rem/1.25 Georgia,"Times New Roman",serif;color:var(--ink);margin-bottom:10px;letter-spacing:-.02em}
.choice-card span span{display:block;font-size:1rem;color:var(--muted);font-weight:400;line-height:1.65}
.choice-card .card-arrow{grid-column:2;grid-row:1;color:var(--field);font-size:1.6rem;align-self:center}
.choice-card.api510>.journey-icon{color:var(--steel);background:var(--blue-soft)}
.choice-card:hover:not(:disabled){transform:translateY(-2px);border-color:var(--field);background:var(--surface)}
.resume-strip{display:flex;align-items:center;justify-content:space-between;gap:16px;flex-wrap:wrap;border-top:1px solid var(--line);margin-top:28px;padding-top:20px;font-size:.9375rem}
.tutorial-page{max-width:740px}
.step-caption{font-size:.875rem!important;margin-bottom:18px}
.tutorial-visual{display:flex;align-items:center;gap:28px;min-height:175px;background:var(--green-soft);padding:28px;border-radius:14px;margin-bottom:28px}
.tutorial-visual>.journey-icon{width:82px;height:82px}
.tutorial-visual>div{flex:1;min-width:0}
.sample-line{display:block;height:8px;max-width:280px;border-radius:8px;background:var(--field);opacity:.25;margin-bottom:12px}
.sample-line.short{max-width:180px}
.sample-pill{display:block;line-height:1.6;font-size:.875rem;margin-top:18px;color:var(--field)}
.back-to-hub{margin-top:12px;max-width:1080px;margin-left:auto;margin-right:auto}
.back-to-hub .text-button{font-size:.875rem}
.review-page{padding-top:14px}
.review-page .task-title{margin-bottom:16px}
.review-choices{display:flex;gap:10px;flex-wrap:wrap;margin:18px 0 26px}
.review-choices button{min-height:48px;font-size:.9375rem}
.review-choices .good{color:var(--field)}
.review-choices .flag{color:var(--signal)}
.review-choices .selected.good{background:var(--green-soft);border:2px solid var(--field)}
.review-choices .selected.flag{background:var(--signal-soft);border:2px solid var(--signal)}
.problem-panel{padding:18px;background:var(--surface);border:1px solid var(--line);border-radius:8px;margin-bottom:24px}
.problem-panel legend{float:none;margin-bottom:14px}
.current-answer{font-size:1rem;line-height:1.6;background:var(--soft);padding:12px 16px;border-radius:6px;margin-bottom:16px}
.source-comment-grid h2{font:600 1.1rem/1.5 -apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;letter-spacing:0;margin-bottom:12px}
.review-page .review-submit{position:sticky;bottom:0;background:var(--paper);padding:14px 0;margin-top:18px;z-index:3}
.proposal-workspace{padding-top:12px}
.proposal-workspace .proposal-steps{margin-top:6px}
.work-page{max-width:1000px}.work-page h1{margin-bottom:26px}
#help-dialog{max-width:610px;width:calc(100% - 32px);max-height:calc(100dvh - 32px);overflow:auto;border:1px solid var(--line);border-radius:12px;background:var(--surface);color:var(--ink);padding:28px}
#help-dialog::backdrop{background:#10191599}
.dialog-title{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-bottom:18px}
.dialog-title h2{font-size:1.8rem}
.dialog-title button{font-size:1.4rem}
#help-dialog p{font-size:1rem;line-height:1.75;margin:16px 0}
.site-footer{display:flex;flex-wrap:wrap;align-items:center;gap:20px;max-width:1260px;margin:36px auto 0;padding:20px 0;font-size:.875rem}
.site-footer>span{margin-right:auto}
.site-footer button{font-size:.875rem}
@media(max-width:1320px){.site-header,#breadcrumb{margin-left:28px;margin-right:28px}.site-footer,#sync-notice{margin-left:28px;margin-right:28px}}
@media(max-width:760px){
 .site-header{padding:10px 0;min-height:65px;margin:0 18px;gap:8px}
 .brand-name{display:none}.brand-mark{width:36px;height:38px}
 .header-actions{gap:0}.header-actions button{padding:10px;min-width:44px}
 #breadcrumb{margin:0 18px}#breadcrumb:not(:empty){min-height:48px;padding-top:2px}
 #breadcrumb .text-button{font-size:.8125rem}
 #sync-notice{margin:10px 18px}
 .journey-page{padding:28px 0 20px}
 .journey-page>h1{font-size:2rem;margin-bottom:12px}
 .journey-page>p{font-size:1rem;line-height:1.7}
 .signin-page{padding:30px 0 24px;max-width:420px}
 .signin-page h1{font-size:2.25rem}
 .welcome-page .welcome-thanks{font-size:1.125rem;line-height:1.75}
 .illustration{width:76px;height:76px;margin-bottom:22px;border-radius:18px}
 .illustration .journey-icon{width:52px;height:52px}
 .choice-cards{grid-template-columns:1fr;gap:16px;margin-top:24px}
 .choice-card{display:grid;grid-template-columns:64px minmax(0,1fr) 18px;gap:14px;padding:22px 18px;min-height:148px;align-content:center;align-items:center;border-radius:12px}
 .choice-card>.journey-icon{grid-column:1;grid-row:1;width:60px;height:60px;padding:7px}
 .choice-card>span:not(.card-arrow){grid-column:2;grid-row:1}
 .choice-card .card-arrow{grid-column:3;grid-row:1;font-size:1.3rem}
 .choice-card strong{font-size:1.5rem;margin-bottom:6px;line-height:1.3}
 .choice-card span span{font-size:.9375rem;line-height:1.55}
 .hub-cards .choice-card{min-height:176px}
 .resume-strip{display:block;margin-top:22px;padding-top:16px}.resume-strip .actions{margin-top:10px}
 .tutorial-visual{min-height:150px;padding:22px 18px;gap:18px;margin-bottom:24px}
 .tutorial-visual>.journey-icon{width:64px;height:64px}
 .tutorial-page>.actions{gap:10px;flex-wrap:wrap}
 .tutorial-page>.actions .text-button{flex-basis:100%}
 .back-to-hub{margin-top:4px}
 .review-page .task-title h1{font-size:1.85rem}
 .review-choices{display:grid;grid-template-columns:1fr 1.35fr;gap:8px;margin:14px 0 22px}
 .review-choices button{font-size:.875rem;padding:10px 8px;min-height:48px}
 .review-choices button:last-child{grid-column:1/-1;justify-self:start;min-width:80px}
 .review-page .review-submit{flex-direction:row;align-items:center;gap:8px}
 .review-page .review-submit button{width:auto;font-size:.875rem;padding:10px 12px}
 .review-page .review-submit .primary{flex:1}
 .problem-panel{padding:14px}.problem-panel .tag-grid{grid-template-columns:1fr}
 .site-footer{margin:30px 18px 0;display:flex;gap:8px 20px;padding:16px 0}
 .site-footer>span{flex-basis:100%;margin:0}
 #help-dialog{padding:22px}
}
