/* Welcome and activation */
.welcome-workspace { position: relative; }
.welcome-canvas { position: relative; min-height: 756px; display: grid; place-items: center; overflow: hidden; padding: 34px; }
.welcome-canvas::before { content: ''; position: absolute; width: 560px; height: 560px; border-radius: 50%; background: radial-gradient(circle, rgba(89,53,233,.15), rgba(89,53,233,0) 68%); }
.welcome-orbit { position: absolute; border: 1px solid rgba(89,53,233,.15); border-radius: 50%; }
.orbit-one { width: 590px; height: 390px; transform: rotate(-10deg); }
.orbit-two { width: 690px; height: 480px; transform: rotate(13deg); }
.welcome-card { position: relative; z-index: 2; width: min(620px, 92%); border: 1px solid rgba(255,255,255,.85); border-radius: 28px; background: rgba(255,255,255,.94); padding: 34px; box-shadow: 0 28px 80px rgba(54,35,115,.17); text-align: center; }
.welcome-mark { width: 52px; height: 52px; display: grid; place-items: center; margin: 0 auto 16px; border-radius: 17px; background: var(--navy); color: white; }
.welcome-mark .icon { width: 25px; height: 25px; }
.welcome-card h1 { max-width: 500px; margin: 10px auto; font-size: 31px; line-height: 1.12; letter-spacing: -.045em; }
.welcome-card > p { max-width: 520px; margin: 0 auto; color: var(--muted); font-size: 11px; line-height: 1.6; }
.welcome-promise { display: grid; grid-template-columns: repeat(3, 1fr); gap: 9px; margin: 25px 0 22px; text-align: left; }
.welcome-promise div { display: grid; gap: 4px; border: 1px solid var(--border-soft); border-radius: 15px; background: #fbfafd; padding: 12px; }
.welcome-promise span { color: var(--brand); font-size: 9px; font-weight: 800; }
.welcome-promise strong { font-size: 10px; }
.welcome-promise small { color: var(--muted); font-size: 8px; line-height: 1.4; }
.welcome-actions { display: flex; align-items: center; justify-content: center; gap: 12px; }
.preview-note { display: block; margin-top: 16px; color: var(--muted); font-size: 8px; }

.assistant-checklist { display: grid; gap: 8px; margin: 15px 0; }
.assistant-check { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border-soft); border-radius: 13px; padding: 9px; }
.assistant-check > span { width: 23px; height: 23px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: var(--brand-soft); color: var(--brand); font-size: 8px; font-weight: 800; }
.assistant-check > span .icon { width: 12px; height: 12px; }
.assistant-check.done > span { background: var(--success-soft); color: var(--success); }
.assistant-check div { display: grid; }
.assistant-check strong { font-size: 9px; }
.assistant-check small { color: var(--muted); font-size: 8px; }

/* Source setup */
.source-setup-screen, .agent-run-screen { min-height: 756px; }
.source-map { position: relative; height: 475px; margin: 0 24px; overflow: hidden; border: 1px solid rgba(89,53,233,.16); border-radius: 24px; background: rgba(255,255,255,.65); }
.source-lines { position: absolute; inset: 25px 3% auto; width: 94%; height: 390px; }
.source-lines path { fill: none; stroke: #c6bcea; stroke-width: 2; stroke-dasharray: 5 6; }
.source-core { position: absolute; top: 50%; left: 50%; width: 124px; height: 124px; display: grid; place-items: center; align-content: center; transform: translate(-50%,-50%); border: 7px solid rgba(233,229,249,.9); border-radius: 50%; background: var(--navy); color: white; box-shadow: 0 18px 45px rgba(6,4,31,.2); text-align: center; }
.source-core span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 9px; background: rgba(255,255,255,.12); }
.source-core strong { margin-top: 5px; font-size: 10px; }
.source-core small { color: rgba(255,255,255,.65); font-size: 7px; }
.source-position { position: absolute; width: 225px; }
.source-pos-mail { top: 54px; left: 7%; }
.source-pos-docs { bottom: 65px; left: 6%; }
.source-pos-web { top: 58px; right: 6%; }
.source-pos-add { position: absolute; right: 9%; bottom: 78px; }
.source-node { display: flex; align-items: center; gap: 10px; border: 1px solid var(--border); border-radius: 17px; background: white; padding: 12px; box-shadow: var(--shadow-soft); }
.source-node.selected { border-color: var(--brand); }
.source-node-icon { width: 34px; height: 34px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); }
.source-node > div { display: grid; flex: 1; min-width: 0; }
.source-node strong { overflow: hidden; font-size: 10px; text-overflow: ellipsis; white-space: nowrap; }
.source-node small { overflow: hidden; color: var(--muted); font-size: 8px; text-overflow: ellipsis; white-space: nowrap; }
.source-add { display: flex; align-items: center; gap: 6px; border: 1px dashed var(--brand); border-radius: 14px; background: #faf8ff; color: var(--brand); padding: 10px 13px; font-size: 9px; font-weight: 800; }
.source-add .icon { width: 14px; height: 14px; }
.setup-footer, .run-footer, .review-footer { display: flex; align-items: center; justify-content: space-between; gap: 15px; padding: 15px 24px 20px; }
.permission-summary { display: flex; align-items: center; gap: 8px; max-width: 560px; color: var(--muted); font-size: 9px; line-height: 1.45; }
.permission-summary .icon { color: var(--success); }
.assistant-fact, .assistant-priority, .assistant-change-summary { display: flex; align-items: center; gap: 9px; border: 1px solid var(--border-soft); border-radius: 13px; padding: 10px; }
.assistant-fact > div, .assistant-priority > div, .assistant-change-summary > div { display: grid; flex: 1; }
.assistant-fact strong, .assistant-priority strong, .assistant-change-summary strong { font-size: 9px; }
.assistant-fact small, .assistant-priority small, .assistant-change-summary small { color: var(--muted); font-size: 8px; }
.assistant-rule, .assistant-insight { margin-top: 10px; border-radius: 13px; background: #f5f2ff; padding: 11px; }
.assistant-rule strong, .assistant-insight strong { font-size: 9px; }
.assistant-rule p, .assistant-insight p { margin: 4px 0 0; color: var(--muted); font-size: 8px; line-height: 1.5; }

/* Agent run */
.run-layout { display: grid; grid-template-columns: minmax(0,1.35fr) minmax(250px,.8fr); gap: 12px; margin: 0 24px; }
.run-card, .emerging-library { border: 1px solid var(--border); border-radius: 22px; background: white; padding: 17px; box-shadow: var(--shadow-soft); }
.run-progress-header { display: flex; align-items: center; gap: 16px; padding-bottom: 16px; border-bottom: 1px solid var(--border-soft); }
.progress-ring { width: 76px; height: 76px; display: grid; flex: 0 0 auto; place-items: center; border-radius: 50%; background: conic-gradient(var(--brand) var(--progress), var(--brand-soft) 0); }
.progress-ring::before { content: ''; width: 58px; height: 58px; border-radius: 50%; background: white; }
.progress-ring span { position: absolute; font-size: 13px; font-weight: 800; }
.run-progress-header h2 { margin: 5px 0 3px; font-size: 16px; }
.run-progress-header p { margin: 0; color: var(--muted); font-size: 8px; }
.agent-list { display: grid; gap: 8px; padding-top: 14px; }
.agent-row { display: grid; grid-template-columns: 32px minmax(120px,1fr) minmax(80px,.8fr) 34px; align-items: center; gap: 9px; border-radius: 13px; background: #faf9fd; padding: 9px; }
.agent-status { width: 28px; height: 28px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.agent-status .icon { width: 13px; height: 13px; }
.agent-row.complete .agent-status { background: var(--success-soft); color: var(--success); }
.agent-copy { display: grid; }
.agent-copy strong { font-size: 9px; }
.agent-copy small { color: var(--muted); font-size: 7px; }
.agent-progress { height: 5px; overflow: hidden; border-radius: 999px; background: var(--brand-soft); }
.agent-progress i { display: block; width: var(--progress); height: 100%; border-radius: inherit; background: var(--brand); }
.agent-row b { color: var(--muted); font-size: 8px; text-align: right; }
.emerging-library { display: grid; align-content: start; gap: 9px; }
.emerging-item { display: flex; align-items: center; gap: 8px; border: 1px solid var(--border-soft); border-radius: 13px; padding: 9px; }
.emerging-icon { width: 29px; height: 29px; display: grid; place-items: center; border-radius: 9px; background: var(--brand-soft); color: var(--brand); }
.emerging-icon .icon { width: 14px; height: 14px; }
.emerging-item div { display: grid; flex: 1; min-width: 0; }
.emerging-item strong { overflow: hidden; font-size: 9px; text-overflow: ellipsis; white-space: nowrap; }
.emerging-item small { overflow: hidden; color: var(--muted); font-size: 7px; text-overflow: ellipsis; white-space: nowrap; }
.emerging-item b { color: var(--success); font-size: 8px; }
.research-gap { display: flex; gap: 8px; border-radius: 13px; background: var(--warning-soft); padding: 10px; color: var(--warning); }
.research-gap > div { display: grid; }
.research-gap strong { font-size: 8px; }
.research-gap small { color: #8b6b45; font-size: 7px; line-height: 1.4; }
.run-footer > span, .review-footer > span { color: var(--muted); font-size: 9px; }
.assistant-inline-action, .assistant-primary-action { width: 100%; display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-top: 10px; border-radius: 12px; padding: 9px 10px; font-size: 8px; font-weight: 800; text-align: left; }
.assistant-inline-action { border: 1px solid var(--border); background: white; color: var(--brand-dark); }
.assistant-primary-action { border: 1px solid var(--navy); background: var(--navy); color: white; }
.assistant-inline-action .icon, .assistant-primary-action .icon { width: 12px; height: 12px; }

/* Review and recovery */
.review-screen { min-height: 756px; }
.review-summary-grid { display: grid; grid-template-columns: repeat(3,1fr); gap: 9px; margin: 0 24px 11px; }
.review-summary-grid article { display: grid; grid-template-columns: 1fr auto; align-items: center; gap: 2px 9px; border: 1px solid var(--border); border-radius: 15px; background: white; padding: 11px; }
.review-summary-grid span { color: var(--muted); font-size: 8px; font-weight: 700; }
.review-summary-grid strong { grid-row: 1/3; grid-column: 2; font-size: 20px; }
.review-summary-grid small { color: var(--muted); font-size: 7px; }
.review-summary-grid .danger-card { border-color: #efb7ad; background: var(--danger-soft); }
.review-summary-grid .success-card { border-color: #bee9d9; background: var(--success-soft); }
.review-columns { display: grid; grid-template-columns: minmax(0,1.4fr) minmax(240px,.85fr); gap: 11px; margin: 0 24px; }
.candidate-list-card, .decision-card { border: 1px solid var(--border); border-radius: 18px; background: white; padding: 13px; }
.candidate-row { display: grid; grid-template-columns: 28px minmax(0,1fr) auto 24px; align-items: center; gap: 8px; margin-top: 8px; border: 1px solid var(--border-soft); border-radius: 12px; padding: 8px; }
.candidate-row.selected { border-color: var(--brand); background: #fbfaff; }
.candidate-check { width: 25px; height: 25px; display: grid; place-items: center; border-radius: 8px; background: var(--success-soft); color: var(--success); }
.candidate-row.selected .candidate-check { background: var(--brand-soft); color: var(--brand); }
.candidate-check .icon { width: 12px; height: 12px; }
.candidate-row > div { display: grid; }
.candidate-row strong { font-size: 8px; }
.candidate-row small { color: var(--muted); font-size: 7px; }
.candidate-row > button { display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); }
.candidate-row > button .icon { width: 13px; height: 13px; }
.decision-card h2 { margin: 7px 0 12px; font-size: 14px; line-height: 1.35; }
.source-comparison { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; margin-bottom: 7px; border: 1px solid var(--border-soft); border-radius: 10px; padding: 8px; }
.source-comparison span { color: var(--muted); font-size: 7px; }
.source-comparison strong { font-size: 9px; }
.source-comparison small { grid-column: 1/-1; color: var(--muted); font-size: 7px; }
.decision-card > label { display: block; margin: 10px 0 6px; color: var(--muted); font-size: 7px; font-weight: 700; }
.choice-row { display: flex; gap: 6px; }
.choice-row button { flex: 1; border: 1px solid var(--border); border-radius: 10px; background: white; padding: 7px; font-size: 8px; }
.choice-row button.selected { border-color: var(--brand); background: var(--brand-soft); color: var(--brand-dark); font-weight: 800; }
.decision-card > small { display: block; margin-top: 7px; color: var(--muted); font-size: 7px; }
.recovery-banner { display: flex; align-items: center; gap: 10px; margin: 11px 24px 0; border: 1px solid #efb7ad; border-radius: 15px; background: var(--danger-soft); padding: 10px; }
.recovery-banner.recovered { border-color: #bee9d9; background: var(--success-soft); }
.recovery-icon { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 10px; background: white; color: var(--danger); }
.recovered .recovery-icon { color: var(--success); }
.recovery-icon .icon { width: 14px; height: 14px; }
.recovery-banner > div { display: grid; flex: 1; }
.recovery-banner strong { font-size: 8px; }
.recovery-banner small { color: var(--muted); font-size: 7px; }

/* Command canvas */
.command-screen { min-height: 756px; }
.canvas-board { position: relative; height: 595px; margin: 0 20px; overflow: hidden; border: 1px solid rgba(89,53,233,.18); border-radius: 24px; background: rgba(255,255,255,.55); }
.spatial-plane { position: absolute; inset: 0; transform: scale(var(--canvas-zoom)); transform-origin: center; transition: transform 180ms ease; }
.canvas-links { position: absolute; inset: 4% 2%; width: 96%; height: 92%; }
.canvas-links path { fill: none; stroke: #c9c3d9; stroke-width: 2; stroke-dasharray: 4 6; }
.canvas-links .link-active { stroke: var(--brand); stroke-width: 2.5; }
.today-core { position: absolute; top: 50%; left: 50%; width: 180px; min-height: 165px; display: grid; justify-items: center; transform: translate(-50%,-50%); border: 1px solid rgba(89,53,233,.4); border-radius: 26px; background: white; padding: 16px; box-shadow: 0 22px 60px rgba(72,48,145,.18); text-align: center; }
.today-orb { width: 40px; height: 40px; display: grid; place-items: center; border-radius: 14px; background: var(--navy); color: white; }
.today-orb .icon { width: 20px; height: 20px; }
.today-core > small { margin-top: 6px; color: var(--brand); font-size: 7px; font-weight: 800; text-transform: uppercase; }
.today-core > strong { font-size: 13px; }
.today-core > p { margin: 4px 0 8px; color: var(--muted); font-size: 7px; line-height: 1.45; }
.today-progress { width: 100%; height: 4px; overflow: hidden; border-radius: 999px; background: var(--brand-soft); }
.today-progress i { display: block; width: 68%; height: 100%; background: var(--brand); }
.today-foot { margin-top: 5px; color: var(--muted); font-size: 6px; }
.canvas-cluster { position: absolute; width: 220px; display: grid; grid-template-columns: 34px minmax(0,1fr) auto; align-items: center; gap: 8px; border: 1px solid var(--border); border-radius: 17px; background: white; padding: 11px; box-shadow: var(--shadow-soft); text-align: left; }
.canvas-cluster:hover { border-color: var(--brand); transform: translateY(-2px); }
.canvas-cluster.attention { border-color: #e2bf87; }
.canvas-cluster.success { border-color: #b7dfd0; }
.cluster-icon { width: 34px; height: 34px; display: grid; place-items: center; border-radius: 11px; background: var(--brand-soft); color: var(--brand-dark); }
.cluster-icon .icon { width: 16px; height: 16px; }
.cluster-copy { display: grid; min-width: 0; }
.cluster-copy small { color: var(--muted); font-size: 6px; font-style: normal; font-weight: 700; text-transform: uppercase; }
.cluster-copy strong, .cluster-copy em { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.cluster-copy strong { margin: 2px 0; font-size: 8px; }
.cluster-copy em { color: var(--muted); font-size: 6px; font-style: normal; }
.cluster-inbox { top: 80px; left: 4%; }
.cluster-journey { top: 80px; right: 4%; }
.cluster-library { bottom: 65px; left: 4%; }
.cluster-tasks { right: 4%; bottom: 65px; }
.client-node { position: absolute; top: 46%; left: 10%; display: flex; align-items: center; gap: 7px; border: 1px solid var(--border); border-radius: 999px; background: white; padding: 6px 10px 6px 6px; box-shadow: var(--shadow-soft); text-align: left; }
.client-node > span { width: 27px; height: 27px; display: grid; place-items: center; border-radius: 50%; background: #f8c3f9; color: #4c2053; font-size: 7px; font-weight: 800; }
.client-node div { display: grid; }
.client-node small { color: var(--muted); font-size: 6px; }
.client-node strong { font-size: 7px; }
.canvas-controls { position: absolute; z-index: 5; top: 13px; right: 13px; display: flex; border: 1px solid var(--border); border-radius: 10px; background: white; box-shadow: var(--shadow-soft); }
.canvas-controls button { min-width: 30px; height: 29px; border: 0; border-right: 1px solid var(--border-soft); background: transparent; font-size: 8px; font-weight: 800; }
.canvas-controls button:last-child { border: 0; }
.canvas-minimap { position: absolute; z-index: 5; right: 13px; bottom: 13px; width: 72px; height: 46px; border: 1px solid var(--border); border-radius: 9px; background: rgba(255,255,255,.9); }
.canvas-minimap i, .canvas-minimap span, .canvas-minimap b { position: absolute; border-radius: 3px; background: #cbc3ec; }
.canvas-minimap i { top: 8px; left: 8px; width: 19px; height: 11px; }
.canvas-minimap span { right: 7px; top: 10px; width: 23px; height: 12px; }
.canvas-minimap b { left: 26px; bottom: 7px; width: 19px; height: 13px; background: var(--brand); }
.canvas-legend { display: flex; align-items: center; gap: 14px; padding: 9px 24px; color: var(--muted); font-size: 7px; }
.canvas-legend span { display: flex; align-items: center; gap: 5px; }
.canvas-legend i { width: 15px; height: 2px; background: #c9c3d9; }
.canvas-legend .legend-proposed { background: var(--brand); }
.canvas-legend .icon { width: 11px; height: 11px; color: var(--brand); }
.assistant-priority { margin-top: 8px; }
.assistant-priority > span { color: var(--brand); font-size: 8px; font-weight: 800; }
.assistant-priority button { display: grid; place-items: center; border: 0; background: transparent; color: var(--brand); }
.assistant-priority button .icon { width: 12px; height: 12px; }
.assistant-priority.muted { opacity: .62; }

/* Opportunity */
.opportunity-screen, .journey-screen, .approval-screen { min-height: 756px; }
.opportunity-layout { display: grid; grid-template-columns: minmax(270px,.82fr) minmax(360px,1.18fr); gap: 11px; margin: 0 24px; }
.email-context-card, .proposal-draft-card, .evidence-drawer { border: 1px solid var(--border); border-radius: 19px; background: white; box-shadow: var(--shadow-soft); }
.email-context-card { padding: 15px; }
.email-context-card > header { display: flex; align-items: center; gap: 8px; padding-bottom: 10px; border-bottom: 1px solid var(--border-soft); }
.mail-avatar { width: 31px; height: 31px; display: grid; place-items: center; border-radius: 50%; background: #f8c3f9; color: #4c2053; font-size: 8px; font-weight: 800; }
.email-context-card header div { display: grid; flex: 1; }
.email-context-card header strong { font-size: 9px; }
.email-context-card header small, .email-meta { color: var(--muted); font-size: 7px; }
.email-meta { display: flex; justify-content: space-between; padding: 9px 0 4px; }
.email-context-card h2 { margin: 8px 0 13px; font-size: 14px; }
.email-context-card > p { margin: 0 0 9px; color: #413d55; font-size: 8px; line-height: 1.6; }
.email-context-card > footer { display: flex; gap: 7px; margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--border-soft); }
.email-context-card > footer button, .email-draft button { border: 1px solid var(--border); border-radius: 999px; background: white; padding: 6px 9px; font-size: 7px; font-weight: 700; }
.proposal-draft-card { overflow: hidden; }
.proposal-draft-card > header { display: flex; align-items: flex-start; justify-content: space-between; gap: 8px; padding: 14px; }
.proposal-draft-card h2 { margin: 4px 0 0; font-size: 14px; }
.draft-summary { background: linear-gradient(125deg,#1a123d,#5c39d7); color: white; padding: 19px; }
.draft-summary span { color: #cfc7ff; font-size: 7px; font-weight: 800; letter-spacing: .1em; }
.draft-summary h3 { max-width: 370px; margin: 7px 0; font-size: 20px; line-height: 1.16; letter-spacing: -.03em; }
.draft-summary p { max-width: 450px; margin: 0; color: rgba(255,255,255,.74); font-size: 8px; line-height: 1.55; }
.draft-facts { display: grid; grid-template-columns: repeat(3,1fr); border-bottom: 1px solid var(--border-soft); }
.draft-facts div { display: grid; gap: 2px; padding: 10px 13px; border-right: 1px solid var(--border-soft); }
.draft-facts div:last-child { border: 0; }
.draft-facts small { color: var(--muted); font-size: 6px; }
.draft-facts strong { font-size: 8px; }
.draft-outline { display: grid; padding: 6px 14px; }
.draft-outline > div { display: grid; grid-template-columns: 80px 1fr auto; align-items: center; gap: 8px; padding: 9px 0; border-bottom: 1px solid var(--border-soft); }
.draft-outline > div:last-child { border: 0; }
.draft-outline > div > span { color: var(--muted); font-size: 7px; }
.draft-outline strong { font-size: 8px; }
.proposal-draft-card > footer { display: flex; justify-content: flex-end; gap: 7px; padding: 11px 14px; border-top: 1px solid var(--border-soft); }
.evidence-drawer { margin: 11px 24px 20px; padding: 12px; }
.evidence-grid { display: grid; grid-template-columns: repeat(4,1fr); gap: 7px; margin-top: 9px; }
.evidence-row { display: grid; grid-template-columns: 27px minmax(0,1fr) 12px; align-items: center; gap: 6px; border: 1px solid var(--border-soft); border-radius: 11px; padding: 7px; }
.evidence-type { width: 26px; height: 26px; display: grid; place-items: center; border-radius: 8px; background: var(--brand-soft); color: var(--brand); }
.evidence-type .icon { width: 12px; height: 12px; }
.evidence-row div { display: grid; min-width: 0; }
.evidence-row strong, .evidence-row small { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.evidence-row strong { font-size: 7px; }
.evidence-row small { color: var(--muted); font-size: 6px; }
.evidence-row > .icon { width: 10px; height: 10px; color: var(--muted); }

/* Journey */
.journey-mode-tabs { display: flex; gap: 16px; overflow-x: auto; margin: 0 24px; border-bottom: 1px solid var(--border); }
.journey-mode-tabs button { white-space: nowrap; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 8px 1px; color: var(--muted); font-size: 8px; font-weight: 700; }
.journey-mode-tabs button.active { border-color: var(--brand); color: var(--ink); }
.journey-tools { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 10px 24px; }
.journey-tools > div { display: flex; gap: 5px; }
.journey-tools > div:first-child { border: 1px solid var(--border); border-radius: 999px; background: white; padding: 3px; }
.journey-tools > div:first-child button { border: 0; border-radius: 999px; background: transparent; padding: 5px 9px; font-size: 7px; }
.journey-tools > div:first-child button.selected { background: var(--navy); color: white; }
.journey-tools > span { flex: 1; color: var(--muted); font-size: 7px; text-align: center; }
.journey-tools .secondary-button { min-height: 29px; }
.journey-canvas-layout { display: grid; grid-template-columns: minmax(370px,1.2fr) minmax(270px,.8fr); gap: 11px; margin: 0 24px 20px; }
.journey-days { height: 530px; overflow-y: auto; border: 1px solid rgba(89,53,233,.16); border-radius: 19px; padding: 18px; }
.journey-day-list { position: relative; display: grid; gap: 7px; }
.journey-day-list::before { content: ''; position: absolute; top: 20px; bottom: 20px; left: 19px; width: 2px; background: #d6cee9; }
.day-card { position: relative; display: grid; grid-template-columns: 39px minmax(0,1fr) auto; align-items: center; gap: 9px; border: 1px solid var(--border-soft); border-radius: 14px; background: rgba(255,255,255,.95); padding: 9px; }
.day-card.selected { border-color: var(--brand); box-shadow: 0 9px 24px rgba(89,53,233,.12); }
.day-card.attention { border-color: #e2bf87; }
.day-number { position: relative; z-index: 2; display: grid; place-items: center; }
.day-number span { width: 28px; height: 28px; display: grid; place-items: center; border: 3px solid white; border-radius: 50%; background: var(--brand-soft); color: var(--brand-dark); font-size: 8px; font-weight: 800; box-shadow: 0 0 0 1px var(--border); }
.day-card.attention .day-number span { background: var(--warning-soft); color: var(--warning); }
.day-copy { display: grid; }
.day-copy small { color: var(--muted); font-size: 6px; }
.day-copy strong { margin: 2px 0; font-size: 8px; }
.day-copy p { margin: 0; color: var(--muted); font-size: 7px; }
.journey-context-stack { display: grid; align-content: start; gap: 8px; }
.route-map-card, .resource-card, .next-steps-card { border: 1px solid var(--border); border-radius: 17px; background: white; padding: 11px; }
.route-map-card > header { display: flex; justify-content: space-between; gap: 8px; }
.route-map-card h2 { margin: 4px 0 0; font-size: 11px; }
.route-map-card > header > .icon { color: var(--brand); }
.abstract-map { position: relative; height: 142px; margin: 9px 0; overflow: hidden; border-radius: 13px; background: #e9f2f3; }
.abstract-map svg { width: 100%; height: 100%; }
.abstract-map .land { fill: #f4eee2; stroke: #d7cdb9; }
.abstract-map .coast { fill: none; stroke: #8bb5bd; stroke-width: 4; }
.abstract-map .route { fill: none; stroke: var(--brand); stroke-width: 3; stroke-dasharray: 5 4; }
.abstract-map circle { fill: white; stroke: var(--brand); stroke-width: 3; }
.map-label { position: absolute; border-radius: 999px; background: white; padding: 3px 5px; color: var(--ink); font-size: 6px; font-weight: 800; box-shadow: var(--shadow-soft); }
.label-naples { top: 37px; left: 35%; }.label-praiano { top: 74px; left: 58%; }.label-amalfi { right: 9%; bottom: 20px; }
.route-map-card > footer { display: flex; gap: 8px; color: var(--muted); font-size: 6px; }
.route-map-card > footer span { display: flex; align-items: center; gap: 3px; }
.route-map-card > footer .icon { width: 9px; height: 9px; }
.resource-card { display: flex; flex-wrap: wrap; gap: 5px; }
.resource-card .mini-panel-heading { width: 100%; margin-bottom: 3px; }
.resource-card > button { width: 100%; display: flex; justify-content: space-between; border: 0; background: transparent; padding: 5px 0 0; color: var(--brand); font-size: 7px; font-weight: 800; }
.resource-card > button .icon { width: 10px; height: 10px; }
.next-steps-card { display: grid; gap: 6px; }
.next-steps-card label { display: flex; align-items: center; gap: 7px; border: 1px solid var(--border-soft); border-radius: 10px; padding: 7px; }
.next-steps-card label > span { width: 19px; height: 19px; display: grid; place-items: center; border: 1px solid var(--border); border-radius: 6px; }
.next-steps-card label.done > span { border-color: var(--success); background: var(--success-soft); color: var(--success); }
.next-steps-card label > span .icon { width: 10px; height: 10px; }
.next-steps-card label div { display: grid; }
.next-steps-card label strong { font-size: 7px; }.next-steps-card label small { color: var(--muted); font-size: 6px; }
.assistant-comparison { display: grid; grid-template-columns: 1fr auto; gap: 2px 7px; margin-top: 8px; border: 1px solid var(--border-soft); border-radius: 11px; padding: 8px; }
.assistant-comparison small { color: var(--muted); font-size: 7px; }.assistant-comparison strong { font-size: 8px; }.assistant-comparison span { grid-column: 1/-1; color: var(--danger); font-size: 7px; }
.assistant-comparison.recommended { border-color: #b7dfd0; background: var(--success-soft); }.assistant-comparison.recommended span { color: var(--success); }

/* Approval */
.sent-banner { display: flex; align-items: center; gap: 10px; margin: 0 24px 10px; border: 1px solid #b7dfd0; border-radius: 15px; background: var(--success-soft); padding: 10px; }
.sent-banner > span { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 50%; background: white; color: var(--success); }
.sent-banner > span .icon { width: 15px; height: 15px; }.sent-banner > div { display: grid; flex: 1; }.sent-banner strong { font-size: 9px; }.sent-banner small { color: var(--muted); font-size: 7px; }
.approval-layout { display: grid; grid-template-columns: minmax(390px,1.2fr) minmax(280px,.8fr); gap: 11px; margin: 0 24px 22px; }
.proposal-preview, .approval-panel { border: 1px solid var(--border); border-radius: 19px; background: white; box-shadow: var(--shadow-soft); }
.proposal-preview { overflow: hidden; }
.proposal-preview > header { display: flex; align-items: center; justify-content: space-between; padding: 11px 14px; }
.preview-brand { font-size: 8px; font-weight: 800; letter-spacing: .18em; }.proposal-preview > header button { border: 0; background: transparent; color: var(--muted); font-size: 7px; }
.preview-hero { background: linear-gradient(135deg,#1a123d,#704de2); color: white; padding: 24px; }.preview-hero span { color: #d5ceff; font-size: 7px; font-weight: 800; letter-spacing: .1em; }.preview-hero h2 { max-width: 430px; margin: 8px 0; font-size: 22px; line-height: 1.15; }.preview-hero p { margin: 0; color: rgba(255,255,255,.7); font-size: 8px; }
.preview-route { display: flex; align-items: center; gap: 7px; padding: 13px 15px; border-bottom: 1px solid var(--border-soft); color: var(--muted); font-size: 6px; font-weight: 800; }.preview-route i { flex: 1; height: 1px; background: var(--border); }
.preview-days { display: grid; grid-template-columns: repeat(2,1fr); gap: 7px; padding: 12px; }.preview-days article { display: grid; gap: 2px; border: 1px solid var(--border-soft); border-radius: 10px; padding: 8px; }.preview-days span { color: var(--brand); font-size: 6px; font-weight: 800; }.preview-days strong { font-size: 8px; }.preview-days small { color: var(--muted); font-size: 6px; }
.proposal-preview > footer { display: flex; justify-content: space-between; gap: 10px; padding: 11px 14px; border-top: 1px solid var(--border-soft); color: var(--muted); font-size: 7px; }.proposal-preview > footer strong { color: var(--ink); }
.approval-panel { display: flex; flex-direction: column; overflow: hidden; }.approval-panel > section { padding: 13px; border-bottom: 1px solid var(--border-soft); }
.readiness-item { display: flex; align-items: center; gap: 7px; margin-top: 7px; }.readiness-item > span { width: 21px; height: 21px; display: grid; place-items: center; border-radius: 7px; background: var(--success-soft); color: var(--success); }.readiness-item > span .icon { width: 11px; height: 11px; }.readiness-item > div { display: grid; }.readiness-item strong { font-size: 7px; }.readiness-item small { color: var(--muted); font-size: 6px; }
.email-draft { display: grid; gap: 7px; }.email-draft > div { display: grid; grid-template-columns: 44px 1fr; gap: 5px; }.email-draft small { color: var(--muted); font-size: 6px; }.email-draft strong { font-size: 7px; }.email-draft p { margin: 2px 0; border-radius: 10px; background: #f8f7fb; padding: 9px; color: var(--muted); font-size: 7px; line-height: 1.45; }.email-draft button { width: fit-content; }
.approval-actions { display: flex; gap: 7px; margin-top: auto; padding: 13px; }.approval-actions > button { flex: 1; }
