.journey-entry{display:flex;align-items:center;justify-content:space-between;gap:24px;padding:20px 24px;background:#eaf1fa;border:1px solid #cbdaf0;border-radius:12px;margin-bottom:22px}.journey-entry h2{font-size:18px;margin:0 0 8px}.journey-entry p{max-width:70ch;margin:0;line-height:1.65;color:#344a69}.journey-entry .button{flex-shrink:0}.journey-note{font-size:13px;line-height:1.7;color:#34445b;margin:12px 0 22px}.journey-summary{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:16px;padding:20px 0}.journey-summary>div{min-width:0}.journey-summary span{display:block;font-size:12px;color:#58667c;margin-bottom:7px}.journey-summary strong{display:block;font-size:18px;line-height:1.4;font-variant-numeric:tabular-nums;overflow-wrap:normal}.journey-summary strong .button{font-size:12px;margin:0 4px 5px 0}.journey-actions{display:flex;flex-wrap:wrap;gap:9px;margin:10px 0 14px}.lead-switch{display:flex;align-items:center;gap:12px;margin-bottom:24px}.lead-switch label{font-weight:600;white-space:nowrap}.lead-switch select{max-width:600px;min-width:0;flex:1;padding:10px 12px;border:1px solid #cbd5e3;border-radius:8px;background:#fff;font:inherit;min-height:44px;color:#17243b}.journey-steps{display:flex;flex-wrap:wrap;list-style:none;padding:0;margin:4px 0 20px;gap:14px 20px}.journey-steps li{display:flex;align-items:center;gap:7px;font-size:12px;color:#52637e}.journey-steps li>span{display:grid;place-items:center;border:1px solid #c4cfde;border-radius:50%;width:24px;height:24px;font-size:11px}.journey-steps .done{color:#166552}.journey-steps .done>span{background:#e7f5ef;border-color:#92c6b5}.journey-steps .current{font-weight:700;color:#1858ac}.journey-steps .current>span{background:#1858ac;border-color:#1858ac;color:#fff}.project-summary{border-bottom:1px solid #dce3ee;grid-template-columns:repeat(3,minmax(0,1fr))}.project-milestones{display:flex;flex-wrap:wrap;gap:16px 32px;padding:18px 0}.project-milestones>div{min-width:135px}.project-milestones strong,.project-milestones span{display:block}.project-milestones span{font-size:12px;color:#576881;margin-top:7px}.quote-lines{display:grid;gap:20px;padding:18px 0}.quote-line{margin:0;border:1px solid #d7e0ed;border-radius:10px;padding:18px;min-width:0}.quote-line legend{font-size:13px;font-weight:700;padding:0 8px}.quote-line input,.quote-line textarea{min-width:0;min-height:44px}.quote-line textarea{min-height:76px;resize:vertical;line-height:1.55}.quote-line-values{display:grid;grid-template-columns:1fr 1fr 1.4fr auto;align-items:center;gap:16px}.quote-line-values button{margin-top:10px}.quotation-fields{padding:18px 0}.quotation-fields textarea{min-height:62px}.quote-editor-footer{padding:4px 0 24px}.quote-editor-footer [role=alert]{color:#9b2734;line-height:1.6}.quotation-preview iframe{display:block;width:100%;height:min(72vh,760px);border:1px solid #d7e0ed;border-radius:8px}.paid-note{color:#166552;font-weight:600}#dialog:has(.quotation-preview){width:min(980px,calc(100vw - 30px))}.journey-actions .button:disabled{opacity:.55;cursor:not-allowed}.journey-summary,.quote-line{font-variant-numeric:tabular-nums}
@media(max-width:800px){.journey-entry{align-items:flex-start;flex-direction:column;padding:20px}.journey-summary,.project-summary{grid-template-columns:repeat(2,minmax(0,1fr))}.lead-switch{flex-wrap:wrap;gap:8px}.lead-switch label{width:100%}.lead-switch select{flex-basis:100%;width:100%}.quote-line-values{grid-template-columns:repeat(2,minmax(0,1fr))}.journey-steps{gap:10px 12px}.journey-entry .button{max-width:100%;white-space:normal}.journey-summary strong{font-size:16px}.project-milestones{gap:18px 24px}#dialog:has(.quotation-preview){width:calc(100vw - 20px)}.quotation-preview iframe{height:64vh}}
@media(max-width:360px){.journey-summary,.project-summary{grid-template-columns:minmax(0,1fr);gap:18px}.quote-line-values{grid-template-columns:minmax(0,1fr);gap:2px}.quote-line{padding:13px}.journey-entry{padding:16px}.journey-entry h2{font-size:17px}.journey-actions .button{white-space:normal}.project-milestones{display:grid;grid-template-columns:minmax(0,1fr)}.project-milestones>div{min-width:0}}

.lead-mobile-list,.journey-job-list{display:none}.journey-summary .wide-amount{grid-column:1/-1}.record-topline{display:flex;align-items:flex-start;justify-content:space-between;gap:12px}.record-topline strong{max-width:30ch;line-height:1.6}
@media(max-width:800px){.journey-lead-table,.journey-job-table{display:none}.lead-mobile-list,.journey-job-list{display:block}.lead-mobile-list article,.journey-job-list article{padding:20px 0;border-bottom:1px solid #e2e8f0}.lead-mobile-list article:last-child,.journey-job-list article:last-child{border-bottom:0}.lead-mobile-list p,.journey-job-list p{line-height:1.7;margin:8px 0 12px;overflow-wrap:break-word}.journey-job-list .button,.lead-mobile-list .button{min-height:44px}.record-topline .badge{flex-shrink:0}}

/* Projects inherit the Blastline operating workspace; records remain browser-local. */
.project-register,.project-milestone-track,.task-filters,.project-task-list,.project-cost-mobile,.project-ledger-empty,.project-empty{margin-left:20px;margin-right:20px}
@media(max-width:480px){.project-register,.project-milestone-track,.task-filters,.project-task-list,.project-cost-mobile,.project-ledger-empty,.project-empty{margin-left:20px;margin-right:20px}}
.project-overview{display:grid;grid-template-columns:minmax(0,1.5fr) minmax(280px,1fr);border:1px solid var(--line,#e2e8f0);border-radius:12px;background:#fff;margin:0 0 22px;overflow:hidden}.project-overview-plan,.project-overview-cost{padding:24px}.project-overview-cost{border-left:1px solid #e2e8f0;background:#f8fafc}.project-overview h2{font-size:18px;margin:0}.project-stage{display:flex;justify-content:space-between;align-items:center;gap:14px}.project-progress{margin:20px 0}.project-progress>div{display:flex;align-items:baseline;justify-content:space-between;gap:12px;margin-bottom:10px}.project-progress strong{font-size:15px}.project-progress span{font-size:12px;color:#52637e}.project-progress progress{appearance:none;display:block;border:0;width:100%;height:8px;border-radius:4px;overflow:hidden;background:#dfe8f4;color:#1858ac}.project-progress progress::-webkit-progress-bar{background:#dfe8f4;border-radius:4px}.project-progress progress::-webkit-progress-value{background:#1858ac;border-radius:4px}.project-progress progress::-moz-progress-bar{background:#1858ac;border-radius:4px}.project-meta,.task-meta{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px 20px;margin:0}.project-meta>div:last-child{grid-column:1/-1}.project-meta dt,.task-meta dt{font-size:11px;color:#58667c;margin-bottom:5px}.project-meta dd,.task-meta dd{margin:0;font-size:12px;line-height:1.65;overflow-wrap:anywhere}.project-budget{margin:14px 0 0}.project-budget>div{display:flex;justify-content:space-between;gap:18px;padding:12px 0;border-bottom:1px solid #e2e8f0}.project-budget>div:last-child{border-bottom:0;font-weight:700}.project-budget dt{font-size:12px}.project-budget dd{margin:0;font-size:14px;white-space:nowrap;font-variant-numeric:tabular-nums}.project-overview-cost>p{font-size:12px;line-height:1.7;margin:14px 0 0}.over-budget{color:#962b37}.project-register-row{display:grid;grid-template-columns:minmax(0,1fr) minmax(260px,.6fr);gap:36px;padding:26px 0;border-bottom:1px solid #e2e8f0}.project-register-row:last-child{border:0}.project-register-title>.record-topline>strong{font-size:16px;max-width:38ch}.project-register-title>p{font-size:12px;line-height:1.7;margin:8px 0}.project-register-title .project-meta{margin-top:18px}.project-register-title .project-meta>div:last-child{grid-column:auto}.project-register-title .project-progress{margin-bottom:0}.project-register-cost>.button{margin-top:18px}.project-register-cost .project-budget{margin-top:0}.project-empty{padding:20px 0 8px}.project-empty h3{margin:0 0 10px;font-size:16px}.project-empty p{max-width:65ch;line-height:1.7;margin:0}.project-empty .journey-actions{margin-top:22px}.project-milestone-track{display:grid;grid-template-columns:repeat(5,minmax(0,1fr));list-style:none;margin:0;padding:22px 0;gap:16px}.project-milestone-track li{display:flex;gap:10px;border-top:2px solid #dce3ee;padding-top:14px;min-width:0}.milestone-index{display:grid;place-items:center;flex:none;width:24px;height:24px;border:1px solid #b3c0d3;border-radius:50%;color:#52637e;font-size:11px}.project-milestone-track strong{display:block;font-size:12px;line-height:1.6}.project-milestone-track li>div>span{display:block;color:#58667c;font-size:11px;line-height:1.7;margin-top:5px}.project-milestone-track .done{border-top-color:#258269}.project-milestone-track .done .milestone-index{color:#166552;background:#e7f5ef;border-color:#92c6b5}.project-milestone-track .current{border-top-color:#1858ac}.project-milestone-track .current .milestone-index{color:#fff;background:#1858ac;border-color:#1858ac}.task-filters{display:flex;flex-wrap:wrap;gap:8px;padding:18px 0;border-bottom:1px solid #e2e8f0}.task-filters .button{background:transparent;border-color:transparent;color:#344a69}.task-filters .button span{margin-left:6px;font-size:11px}.task-filters .button.selected{background:#eaf1fa;border-color:#cbdaf0;color:#1858ac}.project-task{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:12px 22px;padding:24px 0;border-bottom:1px solid #e2e8f0}.project-task:last-child{border-bottom:0}.task-title{display:flex;align-items:center;flex-wrap:wrap;gap:10px;grid-column:1/-1}.task-title h3{font-size:14px;line-height:1.6;margin:0}.task-state{font-size:11px;font-weight:600;padding:4px 8px;border-radius:5px;background:#f1f4f8;color:#52637e}.task-state.ready{background:#eaf1fa;color:#1858ac}.task-state.done{background:#e7f5ef;color:#166552}.task-content{min-width:0}.task-meta{grid-template-columns:140px 120px minmax(0,1fr)}.task-controls{display:flex;align-items:start;gap:8px}.task-controls .button:disabled{opacity:.55;cursor:not-allowed}.task-blocker,.task-ready{font-size:12px;line-height:1.7;margin:13px 0 0;color:#58667c}.task-ready{color:#1858ac}.task-recorded{font-size:12px;line-height:1.7;color:#166552;padding-top:12px}.task-record{margin-top:12px;font-size:12px;line-height:1.7;color:#52637e}.task-record summary{cursor:pointer;min-height:44px;padding:12px 0;box-sizing:border-box;display:list-item}.task-record summary:focus-visible{outline:3px solid #1858ac;outline-offset:3px}.task-record p{max-width:70ch;margin:8px 0 0}.task-empty,.project-ledger-empty{padding:22px 0;margin:0;color:#58667c;font-size:13px;line-height:1.7}.project-cost-mobile{display:none}
@media(max-width:1100px){.task-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.task-meta>div:last-child{grid-column:1/-1}.project-task{grid-template-columns:minmax(0,1fr)}.task-controls{margin-top:2px}.project-milestone-track{grid-template-columns:repeat(3,minmax(0,1fr))}.project-overview{grid-template-columns:minmax(0,1fr)}.project-overview-cost{border-left:0;border-top:1px solid #e2e8f0}.project-overview-cost .project-budget{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.project-overview-cost .project-budget>div{display:block;border:0;padding:0}.project-overview-cost .project-budget dd{margin-top:8px}}
@media(max-width:800px){.project-register-row{grid-template-columns:minmax(0,1fr);gap:22px}.project-register-cost{border-top:1px solid #e2e8f0;padding-top:10px}.project-register-cost>.button{width:100%}.project-overview-plan,.project-overview-cost{padding:20px}.project-milestone-track{grid-template-columns:repeat(2,minmax(0,1fr));gap:20px}.project-cost-table{display:none}.project-cost-mobile{display:block}.project-cost-mobile article{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:10px;padding:18px 0;border-bottom:1px solid #e2e8f0}.project-cost-mobile article:last-child{border:0}.project-cost-mobile strong{font-size:12px;line-height:1.7}.project-cost-mobile span{font-size:13px;white-space:nowrap;font-variant-numeric:tabular-nums}.project-cost-mobile p{grid-column:1/-1;margin:0;font-size:11px;line-height:1.7;color:#58667c}.task-filters{gap:4px}.task-filters .button{padding:10px 11px}.project-task{padding:22px 0}}
@media(max-width:480px){.project-overview-cost .project-budget{display:block}.project-overview-cost .project-budget>div{display:flex;border-bottom:1px solid #e2e8f0;padding:12px 0}.project-overview-cost .project-budget>div:last-child{border:0}.project-overview-cost .project-budget dd{margin:0}.project-progress>div{align-items:flex-start;flex-direction:column;gap:5px}.project-stage{align-items:flex-start}.project-stage h2{font-size:17px}.project-meta,.task-meta{gap:12px}.task-meta{grid-template-columns:repeat(2,minmax(0,1fr))}.task-title{align-items:flex-start;flex-direction:column;gap:7px}.task-controls .button{flex:1}.task-controls{width:100%}.project-register-title>.record-topline{flex-direction:column;gap:8px}.project-register-title .project-meta>div:last-child{grid-column:1/-1}.project-milestone-track{grid-template-columns:minmax(0,1fr);gap:0;padding:10px 0}.project-milestone-track li{padding:16px 0;border-top:0;border-bottom:1px solid #e2e8f0}.project-milestone-track li:last-child{border:0}.project-cost-mobile article{grid-template-columns:minmax(0,1fr)}.project-cost-mobile p{grid-column:auto}.project-cost-mobile span{font-weight:600}}

/* Screenshot-confirmed panel alignment and invoice prerequisite feedback. */
#main .panel>.journey-summary,#main .panel>.journey-actions,#main .panel>p.muted,#main .panel>.lead-mobile-list,#main .panel>.journey-job-list{margin-left:20px;margin-right:20px}#main .panel>.button{margin:0 20px 20px}.journey-timeline>div{padding-left:20px;padding-right:20px}.journey-timeline>p{padding:0 20px 20px}.project-milestone-track{margin-left:20px;margin-right:20px}.pending-projects{margin:0 20px}.pending-projects article{display:flex;align-items:center;justify-content:space-between;gap:20px;padding:20px 0;border-bottom:1px solid #e2e8f0}.pending-projects article:last-child{border:0}.pending-projects .button{flex:none}.project-register-note{margin-top:-4px}.invoice-readiness{margin:20px;padding:20px 0 0;border-top:1px solid #e2e8f0}.invoice-readiness h3{font-size:14px;margin:0 0 10px}.invoice-readiness>p{font-size:12px;line-height:1.7;margin:0 0 12px;color:#344a69}.invoice-readiness ul{list-style:none;padding:0;margin:0}.invoice-readiness li{display:flex;align-items:center;justify-content:space-between;gap:18px;border-top:1px solid #e2e8f0;padding:14px 0}.invoice-readiness li:last-child{padding-bottom:0}.invoice-readiness li>div{min-width:0}.invoice-readiness strong,.invoice-readiness li span{display:block;font-size:12px;line-height:1.7}.invoice-readiness li span{font-size:11px;color:#58667c;margin-top:4px}.invoice-readiness .button{flex:none}.invoice-readiness:focus{outline:3px solid #1858ac;outline-offset:3px}
@media(max-width:480px){#main .panel>.journey-summary,#main .panel>.journey-actions,#main .panel>p.muted,#main .panel>.lead-mobile-list,#main .panel>.journey-job-list{margin-left:20px;margin-right:20px}.journey-timeline>div{padding-left:20px;padding-right:20px}.journey-timeline>p{padding:0 20px 16px}.project-milestone-track{margin-left:20px;margin-right:20px}.pending-projects{margin:0 20px}.pending-projects article{align-items:stretch;flex-direction:column;gap:12px}.invoice-readiness{margin:20px;padding:16px 0 0}.invoice-readiness li{align-items:stretch;flex-direction:column;gap:12px}.invoice-readiness .button{align-self:flex-start}.invoice-readiness strong,.invoice-readiness li span{overflow-wrap:anywhere}}
