:root {
  --bg: #f8f9fb; --surface: #fff; --ink: #272d32; --muted: #777f88;
  --line: #e7eaee; --green: #1E5043; --green-dark: #193C36; --green-soft: #DCE6DB;
}
* { box-sizing: border-box; letter-spacing: 0; }
body { margin: 0; min-width: 320px; background: var(--bg); color: var(--ink); font: 14px/1.5 Inter, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; -webkit-font-smoothing: antialiased; }
button, textarea, select, input { font: inherit; }
button { cursor: pointer; color: inherit; }
button, a, input, select, textarea { -webkit-tap-highlight-color: transparent; }
button:disabled { cursor: default; }
button, a { touch-action: manipulation; }
button:focus-visible, a:focus-visible { outline: 3px solid #90bba9; outline-offset: 4px; }
svg.lucide { width: 18px; height: 18px; flex-shrink: 0; stroke-width: 1.7; }
h1, h2, h3, p { margin: 0; overflow-wrap: anywhere; }
.hidden { display: none !important; }
.app-shell { min-height: 100vh; display: grid; grid-template-columns: 240px minmax(0, 1fr); }

.sidebar { display: flex; flex-direction: column; background: var(--surface); border-right: 1px solid var(--line); min-width: 0; position: sticky; top: 0; height: 100vh; }
.brand { height: 88px; min-height: 88px; padding: 0 26px; display: flex; align-items: center; gap: 10px; text-decoration: none; color: var(--ink); font-weight: 700; font-size: 17px; white-space: nowrap; }
.brand > span:last-child { display: flex; align-items: center; gap: 6px; }
.brand-mark { width: 33px; height: 35px; display: grid; place-items: center; background: var(--green-dark); border-radius: 7px; color: #fff; }
.brand-mark svg { width: 21px; height: 21px; }
.brand-ai { font-size: 10px; font-weight: 600; color: var(--green); background: var(--green-soft); padding: 1px 4px; border-radius: 3px; }
.sidebar-body { padding: 12px 16px 24px; overflow-y: auto; flex: 1; }
.workspace-name { display: flex; align-items: center; gap: 8px; padding: 10px 8px 25px; font-size: 12px; font-weight: 600; }
.workspace-name svg { color: #8b929a; width: 17px; }
.draft-tag { margin-left: auto; font-size: 10px; background: #f2f3f5; color: var(--muted); padding: 2px 6px; border-radius: 4px; font-weight: 500; }
.sidebar-section-label, .package-list h2 { font-size: 10px; color: #9298a0; font-weight: 600; margin: 0 12px 14px; }
.step-nav { display: grid; gap: 7px; }
.step-link { width: 100%; display: flex; align-items: center; gap: 12px; min-height: 43px; padding: 10px 12px; border: 0; border-radius: 6px; background: transparent; color: #717981; text-align: left; font-size: 13px; }
.step-link svg { width: 17px; height: 17px; color: #90979e; }
.step-link .step-number { margin-left: auto; font-size: 10px; font-variant-numeric: tabular-nums; color: #a5aab1; }
.step-link.active { color: #27664f; background: var(--green-soft); font-weight: 600; }
.step-link.active svg, .step-link.active .step-number { color: #367b5d; }
.step-link.complete > svg { color: var(--green); }
.step-link:hover:not(.active) { background: #f6f7f8; color: var(--ink); }
.step-link:disabled { opacity: .5; }
.package-list { margin: 38px 10px 0; padding-top: 23px; border-top: 1px solid var(--line); }
.package-list h2 { margin-left: 2px; margin-bottom: 19px; }
.package-item { display: flex; gap: 10px; align-items: center; margin-top: 17px; }
.package-icon { display: grid; place-items: center; width: 33px; height: 37px; border-radius: 6px; flex-shrink: 0; }
.plan-icon { background: #eaf3ec; color: #5c8163; }
.deck-icon { background: #fbefea; color: #bb7963; }
.model-icon { background: #eef1fa; color: #7686ad; }
.package-item strong, .package-item small { display: block; }
.package-item strong { font-size: 12px; font-weight: 500; }
.package-item small { font-size: 10px; color: #8a9199; margin-top: 2px; }
.sidebar-footer { border-top: 1px solid var(--line); display: flex; align-items: center; gap: 8px; padding: 21px 25px; font-size: 10px; color: #8a9199; }
.sidebar-footer svg { width: 14px; height: 14px; }
.sidebar-footer { padding-inline: 18px; gap: 6px; }
.sidebar-footer .icon-button { margin-left: auto; width: 24px; height: 24px; }
.workspace-footer a { color: inherit; text-decoration: none; margin-left: auto; }
.workspace-footer a:hover { color: var(--green); }
.hint-tools { color: #8b969e; font-size: 10px; }
.hint-tools .icon-button { width: 26px; height: 26px; }
.hint-status { color: #8a949b; font-size: 11px; line-height: 1.7; }
.hint-status:not(:empty) { margin: -4px 0 14px; }
.hint-status.error { color: #a16c54; }
.hint-status.loading { display: flex; align-items: center; gap: 9px; min-height: 24px; color: var(--green-dark); font-size: 13px; font-weight: 550; }
.hint-status.loading svg { width: 18px; height: 18px; animation: hint-spin .9s linear infinite; }
.hint-loading { position: relative; overflow: hidden; border: 1px solid var(--line); border-radius: 8px; padding: 24px 18px; min-height: 164px; background: #fff; }
.hint-loading::after { content: ""; position: absolute; inset: 0; pointer-events: none; background: linear-gradient(105deg, transparent 15%, rgb(255 255 255 / 90%) 50%, transparent 85%); transform: translateX(-100%); }
.hint-list[aria-busy="true"] .hint-loading::after { animation: hint-shimmer 1.6s ease-in-out infinite; }
.hint-list[aria-busy="true"] .hint-loading:nth-child(2)::after { animation-delay: .15s; }
.hint-list[aria-busy="true"] .hint-loading:nth-child(3)::after { animation-delay: .3s; }
.hint-loading span { display: block; background: #e1e9e5; height: 9px; border-radius: 3px; margin-bottom: 12px; }
.hint-loading span:first-child { width: 58%; height: 13px; margin-bottom: 25px; }
.hint-loading span:last-child { width: 75%; }
@keyframes hint-spin { to { transform: rotate(360deg); } }
@keyframes hint-shimmer { to { transform: translateX(100%); } }

.main-shell { display: flex; flex-direction: column; min-width: 0; }
.topbar { height: 76px; min-height: 76px; border-bottom: 1px solid var(--line); display: flex; align-items: center; justify-content: space-between; gap: 18px; padding: 0 40px; background: #fff; }
.breadcrumb { display: flex; align-items: center; gap: 13px; font-size: 11px; color: #9399a2; }
.breadcrumb svg { width: 12px; height: 12px; }
.breadcrumb strong { color: #56606a; font-weight: 500; }
.topnav { display: flex; align-items: center; gap: 7px; }
.topnav-item { display: inline-flex; align-items: center; gap: 7px; min-height: 32px; border: 0; background: transparent; font-size: 11px; border-radius: 5px; padding: 6px 12px; color: var(--muted); }
.topnav-item svg { width: 13px; height: 13px; }
.topnav-item.active { color: var(--green-dark); background: #edf5f0; font-weight: 600; }
.topnav-item:disabled { opacity: .5; }
.topnav-item:hover:not(:disabled) { background: #edf2ef; }
.workbench { flex: 1; width: 100%; max-width: 1060px; padding: 43px 60px 30px; margin: 0 auto; }
.step-meta { display: flex; justify-content: space-between; align-items: center; gap: 15px; margin-bottom: 12px; }
.eyebrow { color: var(--green); font-size: 11px; font-weight: 600; }
.save-status { display: inline-flex; align-items: center; gap: 6px; color: #929aa2; font-size: 10px; font-weight: 450; }
.save-status svg { width: 13px; height: 13px; }
.progress-track { overflow: hidden; height: 3px; border-radius: 2px; background: #e6ebe8; }
.progress-track > span { display: block; width: 14.285%; height: 100%; background: #5a947c; transition: width 250ms ease; border-radius: inherit; }
.stage-heading { margin: 29px 0 28px; }
h1 { font-size: 31px; font-weight: 600; line-height: 1.3; }
.stage-heading > p { margin-top: 10px; color: var(--muted); font-size: 14px; line-height: 1.7; }
.answer-label-row { display: flex; justify-content: space-between; align-items: center; flex-wrap: wrap; gap: 6px 12px; margin-bottom: 10px; }
.answer-label-row label { font-weight: 550; font-size: 13px; }
.answer-label-row > span { font-size: 10px; color: #969ca4; }
.answer-editor { background: #fff; border: 1px solid #d9dee3; border-radius: 8px; box-shadow: 0 2px 3px #26342904; transition: border-color 180ms, box-shadow 180ms; }
.answer-editor:focus-within { border-color: #78a68f; box-shadow: 0 0 0 3px #2778600c; }
textarea { display: block; width: 100%; min-height: 155px; border: 0; border-radius: 8px; padding: 19px 20px 10px; background: transparent; color: var(--ink); line-height: 1.85; font-size: 14px; resize: vertical; outline: none; }
textarea::placeholder { color: #a0a6ae; }
.editor-footer { display: flex; align-items: center; justify-content: space-between; gap: 12px; padding: 13px 18px; font-size: 10px; color: #a0a6ad; }
.editor-footer > span:first-child { display: flex; align-items: center; gap: 6px; }
.editor-footer svg { width: 12px; height: 12px; }
#characterCount { flex-shrink: 0; font-variant-numeric: tabular-nums; }
.option-controls { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 16px; }
.option-controls:not(:empty) { margin-top: 22px; }
.answer-panel.market-answer { display: flex; flex-direction: column; }
.market-answer .option-controls { order: -1; margin-top: 0; margin-bottom: 24px; }
.market-answer textarea { min-height: 100px; height: 100px; }
.field { min-width: 0; }
.field.full, .inference-note { grid-column: 1 / -1; }
.field > span { display: block; margin-bottom: 8px; font-size: 11px; font-weight: 550; color: #737e86; }
select, input { width: 100%; min-height: 44px; padding: 0 12px; border: 1px solid #d9dee3; border-radius: 6px; background: #fff; font-size: 12px; color: var(--ink); outline: none; }
input:focus, select:focus { border-color: #78a68f; box-shadow: 0 0 0 3px #2778600c; }
.inference-note { display: flex; align-items: center; gap: 7px; font-size: 11px; color: var(--green); }
.inference-note::before { content: ""; width: 5px; height: 5px; background: #679480; border-radius: 50%; flex-shrink: 0; }

.hint-panel { margin-top: 29px; }
.hint-title-row { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px 15px; margin-bottom: 14px; }
.hint-title-row > div { display: flex; align-items: center; gap: 7px; }
.hint-title-row svg { width: 15px; height: 15px; color: #a1875f; }
.hint-title-row h2 { font-size: 13px; font-weight: 550; }
.hint-title-row > span { color: #969da5; font-size: 10px; }
.hint-list { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 13px; }
.hint-card { min-width: 0; display: flex; flex-direction: column; align-items: stretch; justify-content: flex-start; overflow: hidden; position: relative; padding: 0; text-align: left; background: #fff; border: 1px solid var(--line); border-radius: 8px; cursor: pointer; transition: border-color 180ms, box-shadow 180ms, transform 180ms; }
.hint-card:hover { border-color: #9bbda9; box-shadow: 0 4px 14px #253b3010; transform: translateY(-2px); }
.hint-card:focus-visible { outline: 3px solid #90bba9; outline-offset: 3px; }
.hint-card.selected { background: #f3faf5; border-color: #79a68a; }
.hint-image { display: block; width: 100%; height: 90px; object-fit: cover; }
.hint-content { padding: 14px 14px 16px; }
.hint-category { display: block; font-size: 9px; font-weight: 600; color: #8f7b6c; margin-bottom: 7px; }
.hint-card:nth-child(2) .hint-category { color: #7689a1; }
.hint-card:nth-child(3) .hint-category { color: #798c6d; }
.hint-title { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin-bottom: 7px; }
.hint-title strong { font-size: 13px; font-weight: 600; line-height: 1.5; }
.hint-add { width: 19px; height: 19px; display: grid; place-items: center; color: #9ca79f; border-radius: 50%; flex-shrink: 0; transition: background 180ms, color 180ms; }
.hint-add svg { width: 13px; height: 13px; }
.hint-card:hover .hint-add, .hint-card.selected .hint-add { background: var(--green); color: #fff; }
.hint-card p { font-size: 12px; color: #747d85; line-height: 1.7; }
.hint-list:not(.with-images) .hint-card { min-height: 155px; }
.hint-list:not(.with-images) .hint-content { padding: 17px; }
.hint-list:not(.with-images) .hint-card p { font-size: 12px; }
.controls { display: flex; align-items: center; gap: 15px; padding-top: 24px; margin-top: 28px; border-top: 1px solid var(--line); }
.button { min-height: 43px; display: inline-flex; align-items: center; justify-content: center; gap: 10px; padding: 10px 19px; border: 1px solid transparent; border-radius: 6px; font-size: 12px; font-weight: 550; transition: background 180ms, box-shadow 180ms; }
.button svg { width: 15px; height: 15px; }
.button.primary { background: var(--green); color: #fff; box-shadow: 0 2px 3px #24563f10; }
.button.primary:hover { background: var(--green-dark); box-shadow: 0 3px 7px #24563f20; }
.button.secondary { border-color: var(--line); background: #fff; }
.button.ghost { padding-left: 0; background: transparent; color: var(--muted); }
.button.ghost:hover:not(:disabled) { color: var(--green-dark); }
.button:disabled { opacity: .35; }
.next-step-label { font-size: 10px; color: #929aa2; margin-left: auto; }
.wizard-footnote { display: flex; align-items: center; justify-content: center; gap: 6px; font-size: 10px; color: #989fa6; margin-top: 23px; text-align: center; }
.wizard-footnote svg { width: 11px; height: 11px; }
.workspace-footer { display: flex; justify-content: space-between; gap: 20px; margin: 22px 40px 0; padding: 16px 0 19px; border-top: 1px solid var(--line); font-size: 10px; color: #a2a8af; }

.generation-log { padding: 0; margin: 10px 0 30px; list-style: none; min-height: 240px; }
.generation-log li { display: flex; align-items: center; gap: 14px; padding: 17px 0; border-bottom: 1px solid var(--line); font-size: 12px; color: #60776b; animation: appear 250ms ease both; }
.generation-log li svg { width: 17px; color: #74a388; }
.generation-note { display: flex; align-items: center; gap: 10px; color: var(--muted); font-size: 12px; }
.generation-note svg { color: #8ca3b1; }
.generation-log li small { margin-left: auto; font-size: 10px; flex-shrink: 0; }
.generation-log li svg { flex-shrink: 0; }
.generation-log .stage-waiting { color: #929aa1; }
.generation-log .stage-working { color: #275e81; }
.generation-log .stage-working svg { color: #275e81; animation: spin 1.5s linear infinite; }
.generation-log .stage-failed, .generation-log .stage-failed svg { color: #a45243; }
.generation-actions { display: flex; flex-wrap: wrap; gap: 12px; margin: 20px 0 28px; }
.inline-error { color: #a45243; font-size: 12px; line-height: 1.7; }
.inline-error:not(:empty) { margin: 16px 0; }
.document-notice { display: flex; align-items: flex-start; gap: 9px; font-size: 11px; color: #667983; line-height: 1.7; margin: -8px 0 22px; }
.document-notice svg { width: 16px; flex-shrink: 0; }
.preview-header > div { min-width: 0; }
.preview-header h1 { overflow-wrap: anywhere; }
.preview-header { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.preview-header .eyebrow { margin-bottom: 8px; }
.preview-header h1 { font-size: 29px; }
.preview-header > .button { flex-shrink: 0; }
.preview-subtitle { margin: 12px 0 28px; font-size: 12px; color: var(--muted); }
.tabs { display: flex; border-bottom: 1px solid var(--line); gap: 18px; margin: 0 0 27px; overflow-x: auto; }
.tab { flex-shrink: 0; display: flex; align-items: center; gap: 7px; border: 0; border-bottom: 2px solid transparent; background: transparent; padding: 11px 0 14px; font-size: 11px; color: #818992; }
.tab svg { width: 14px; height: 14px; }
.tab.active { border-bottom-color: var(--green); color: var(--green); font-weight: 600; }
.preview-grid { display: grid; grid-template-columns: minmax(0, 1fr) 220px; gap: 28px; }
.preview-document { background: #fff; border: 1px solid var(--line); padding: 30px; box-shadow: 0 3px 10px #222c3004; }
.document-kicker { display: flex; flex-wrap: wrap; gap: 10px; justify-content: space-between; font-size: 9px; color: #8e969b; padding-bottom: 23px; border-bottom: 1px solid var(--line); margin-bottom: 27px; }
.preview-document h2 { font-size: 22px; font-weight: 550; margin-bottom: 16px; }
.preview-document h3 { font-size: 13px; font-weight: 600; margin: 22px 0 8px; }
.preview-document p { font-size: 12px; color: #7b838a; line-height: 1.85; }
.plan-section { scroll-margin-top: 28px; padding-bottom: 30px; margin-bottom: 30px; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.plan-section:last-child { border-bottom: 0; margin-bottom: 0; padding-bottom: 0; }
.plan-section p + p { margin-top: 13px; }
.plan-section p, .plan-section li { color: #55656f; }
.plan-section ul { padding-left: 18px; margin: 14px 0; font-size: 12px; line-height: 1.8; }
.plan-section li + li { margin-top: 7px; }
.plan-notes { margin-top: 18px; border-left: 2px solid #a8b9c7; padding-left: 13px; }
.plan-notes summary { cursor: pointer; font-size: 11px; color: #54748b; }
.plan-outline { align-self: start; position: sticky; top: 24px; min-width: 0; }
.plan-outline h2 { font-size: 12px; font-weight: 600; margin: 4px 0 15px; }
.plan-outline nav { display: grid; gap: 3px; }
.plan-outline nav button { display: grid; grid-template-columns: 20px minmax(0, 1fr) 13px; gap: 7px; text-align: left; padding: 9px 0; border: 0; background: transparent; color: #637780; font-size: 11px; line-height: 1.6; }
.plan-outline nav button:hover { color: var(--green); }
.plan-outline nav button svg { width: 12px; height: 17px; }
.plan-outline nav button > span:first-child { color: #9aa5ac; font-size: 10px; }
.plan-purpose { border-block: 1px solid var(--line); padding: 17px 0; margin: 20px 0; }
.plan-purpose span { color: #87959c; font-size: 9px; }
.plan-purpose p { margin: 8px 0; font-size: 12px; }
.plan-unlock { margin-top: 25px; }
.plan-outline .button { width: 100%; padding-inline: 10px; }
.locked-section { display: flex; gap: 12px; align-items: center; padding: 20px 0; border-top: 1px solid var(--line); margin-top: 27px; }
.locked-section > svg { color: #a69a7e; width: 16px; }
.locked-section strong { font-size: 12px; font-weight: 550; }
.locked-section p { color: #9299a0; font-size: 11px; margin-top: 4px; }
.locked-section .button { margin-left: auto; }
.pricing-card { padding-top: 4px; }
.pricing-card > .package-icon { width: 37px; height: 40px; margin-bottom: 16px; }
.pricing-card h2 { font-size: 20px; font-weight: 550; }
.pricing-card p { font-size: 12px; color: var(--muted); margin-top: 7px; line-height: 1.7; }
.pricing-card ul { list-style: none; padding: 0; margin: 21px 0 26px; }
.pricing-card li { display: flex; align-items: center; gap: 8px; font-size: 11px; color: #717a80; margin: 12px 0; }
.pricing-card li svg { width: 13px; height: 13px; color: #709b83; }
.price-row { display: flex; align-items: baseline; gap: 8px; margin-bottom: 16px; }
.price-row strong { font-size: 32px; font-weight: 550; }
.price-row span { font-size: 10px; color: var(--muted); }
.pricing-card > .button { width: 100%; }
.subscription-option { display: block; width: 100%; border: 0; background: transparent; color: #8c959a; font-size: 10px; padding: 12px 0; }
.subscription-option:hover { color: var(--green); }
.section-caption { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 8px; margin-bottom: 20px; font-size: 11px; color: #67747b; }
.section-caption > span:last-child { color: #a1a7ac; font-size: 10px; }
.deck-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 18px; }
.slide-card { min-height: 345px; min-width: 0; padding: 24px; background: #fff; border: 1px solid var(--line); border-radius: 6px; display: flex; flex-direction: column; align-items: flex-start; overflow-wrap: anywhere; }
.slide-card:first-child { background: #285e4e; color: #fff; border-color: #285e4e; }
.slide-card:nth-child(3n) { background: #edf1f8; }
.slide-card:nth-child(4n) { background: #f9efeb; }
.slide-card small { font-size: 10px; color: #a7b0b1; }
.slide-card strong { display: block; font-size: 20px; font-weight: 550; margin-top: 15px; }
.slide-card p { font-size: 11px; color: #828c92; line-height: 1.7; margin-top: 9px; }
.slide-card:first-child p, .slide-card:first-child small { color: #b5cec3; }
.slide-card ul { margin: 18px 0; padding-left: 17px; font-size: 12px; line-height: 1.75; }
.slide-card li + li { margin-top: 8px; }
.slide-card details { width: 100%; margin-top: auto; padding-top: 16px; font-size: 11px; }
.slide-card summary { cursor: pointer; }
.slide-card details li { font-size: 11px; }
.slide-locked { background: #f7f8fa; justify-content: center; }
.slide-locked > svg { width: 22px; margin-top: 30px; color: #8e9ba6; }
.pending-document { padding: 45px 0; border-top: 1px solid var(--line); }
.pending-document > svg { color: #819b8d; width: 27px; height: 27px; margin-bottom: 18px; }
.pending-document h2 { font-size: 19px; font-weight: 550; }
.pending-document p { color: var(--muted); font-size: 12px; line-height: 1.8; margin-top: 12px; }
.metric { min-width: 0; overflow-wrap: anywhere; }
.model-dashboard { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); margin-bottom: 35px; padding: 21px 0; border-block: 1px solid var(--line); }
.metric { padding: 0 23px; border-right: 1px solid var(--line); }
.metric:first-child { padding-left: 0; }
.metric:last-child { border: 0; }
.metric span, .metric strong { display: block; }
.metric span { font-size: 11px; color: #858f95; }
.metric strong { font-size: 25px; font-weight: 550; margin-top: 8px; }
.forecast-chart { display: flex; height: 245px; padding-bottom: 25px; }
.chart-y-labels { display: flex; flex-direction: column; justify-content: space-between; width: 45px; flex-shrink: 0; font-size: 10px; color: #a0a9ae; }
.chart-plot { display: flex; justify-content: space-around; flex: 1; gap: 25px; border-bottom: 1px solid #dce3e6; background: repeating-linear-gradient(to top, transparent 0, transparent calc(50% - 1px), #e8ecee calc(50% - 1px), #e8ecee 50%); }
.chart-column { width: 20%; position: relative; display: flex; align-items: flex-end; }
.chart-column > div { height: var(--bar-height); width: 100%; background: #90b3a1; border-radius: 4px 4px 0 0; }
.chart-column:nth-child(2) > div { background: #7996b5; }
.chart-column:nth-child(3) > div { background: #3c7c62; }
.chart-column > span { position: absolute; top: calc(100% + 9px); left: 0; width: 100%; text-align: center; font-size: 10px; color: #889299; }
.model-tabs { display: flex; flex-wrap: wrap; gap: 18px; padding: 20px 0; font-size: 10px; color: #7c8990; }
.export-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 13px; }
.export-grid button { display: grid; grid-template-columns: 27px minmax(0, 1fr) 15px; gap: 3px 12px; align-items: center; text-align: left; border: 1px solid var(--line); border-radius: 6px; background: #fff; padding: 21px; }
.export-grid button > svg:first-child { grid-row: span 2; color: #729980; width: 24px; height: 24px; }
.export-grid button > strong { font-size: 12px; font-weight: 550; }
.export-grid button > span { font-size: 10px; color: #89929a; grid-column: 2; }
.export-grid button > svg:last-child { grid-column: 3; grid-row: 1 / span 2; width: 14px; color: #abb1b5; }
.export-grid button:hover { border-color: #90bba9; background: #fcfefc; }
dialog { position: fixed; max-width: 460px; width: calc(100% - 36px); border: 1px solid var(--line); padding: 32px; border-radius: 8px; box-shadow: 0 20px 100px #142b3833; color: var(--ink); }
dialog::backdrop { background: #1d2c3c40; backdrop-filter: blur(3px); }
dialog h2 { margin: 20px 0 10px; font-size: 23px; font-weight: 550; }
dialog p { font-size: 13px; line-height: 1.8; color: var(--muted); }
.icon-button { display: grid; width: 32px; height: 32px; place-items: center; padding: 0; border: 0; background: transparent; color: var(--muted); border-radius: 4px; }
.icon-button:hover { background: #f3f5f6; }
.dialog-close { position: absolute; right: 14px; top: 14px; }
.generation-settings { max-height: calc(100dvh - 36px); overflow-y: auto; }
.generation-settings h2 { font-size: 21px; margin: 5px 24px 24px 0; }
.generation-settings .field { display: block; margin-bottom: 20px; }
.generation-settings .field small { display: block; font-size: 11px; color: var(--muted); line-height: 1.6; margin-top: 7px; }
.writing-example { padding: 12px 15px; background: #f1f5ef; border-radius: 7px; margin: -5px 0 14px; }
.writing-example span { font-size: 10px; color: var(--muted); }
.writing-example p { font-size: 12px; line-height: 1.7; margin-top: 5px; }
.generation-settings .text-button { border: 0; padding: 0; background: transparent; color: var(--green-dark); font: inherit; font-size: 12px; cursor: pointer; text-align: left; }
.generation-settings .text-button:hover { text-decoration: underline; }
.document-outline, .purpose-details { margin-top: 18px; font-size: 12px; line-height: 1.7; }
.document-outline summary, .purpose-details summary { cursor: pointer; color: var(--muted); }
.document-outline ol { padding-left: 21px; margin-top: 12px; }
.document-outline li { margin-bottom: 10px; }
.document-outline small { display: block; color: var(--muted); font-size: 10px; }
.purpose-details p { color: var(--muted); margin: 12px 0; }
.purpose-details textarea { width: 100%; min-height: 100px; }
.plan-section h3 { font-size: 15px; font-weight: 550; margin: 22px 0 10px; }
.generation-includes { display: grid; gap: 10px; padding-block: 16px; border-block: 1px solid var(--line); color: var(--muted); font-size: 12px; }
.generation-includes span { display: flex; align-items: center; gap: 8px; }
.generation-settings-actions { display: flex; justify-content: flex-end; gap: 10px; flex-wrap: wrap; margin-top: 24px; }
#newPlanVersion { margin-top: 10px; }
.dialog-price { display: flex; align-items: baseline; gap: 6px; flex-wrap: wrap; padding: 24px 0; font-size: 10px; color: var(--muted); }
.dialog-price strong { font-size: 23px; color: var(--ink); font-weight: 600; }
.price-divider { margin-inline: 5px; }
.auth-strip { display: flex; gap: 8px; }
.auth-strip button { flex: 1; min-height: 39px; font-size: 12px; border: 1px solid var(--line); border-radius: 5px; background: #f8f9fb; color: #8d959c; }
.prototype-note { font-size: 11px; margin-top: 18px; }
@keyframes appear { from { opacity: 0; transform: translateY(5px); } to { opacity: 1; transform: translateY(0); } }
@keyframes spin { to { transform: rotate(360deg); } }

@media (min-width: 1500px) { .workbench { padding-top: 58px; } .hint-image { height: 106px; } textarea { min-height: 184px; } }
@media (max-width: 1150px) {
  .app-shell { grid-template-columns: 210px minmax(0, 1fr); }
  .brand { padding-inline: 20px; font-size: 15px; }
  .sidebar-body { padding-inline: 10px; }
  .step-link { font-size: 12px; }
  .topbar { padding-inline: 28px; }
  .workbench { padding: 34px 35px 25px; }
  .workspace-footer { margin-inline: 28px; }
  .hint-content { padding: 12px; }
  .preview-grid { grid-template-columns: minmax(0, 1fr) 180px; gap: 20px; }
  .preview-document { padding: 22px; }
}
@media (max-width: 900px) {
  .breadcrumb > span, .breadcrumb > svg { display: none; }
  .workbench { padding-inline: 28px; }
  .hint-list { gap: 9px; }
  .hint-image { height: 73px; }
  .hint-content { padding: 11px 10px; }
  .hint-title strong { font-size: 12px; }
  .hint-card p { font-size: 11px; }
  .hint-category { font-size: 9px; }
  .hint-title-row > span { display: none; }
  .preview-grid { grid-template-columns: 1fr; }
  .plan-outline { position: static; border-top: 1px solid var(--line); padding-top: 24px; }
  .plan-outline .button { width: auto; }
  .pricing-card { border-top: 1px solid var(--line); padding-top: 23px; }
  .pricing-card > .button { width: auto; }
  .subscription-option { width: auto; }
  .tabs { gap: 17px; }
}
@media (max-width: 720px) {
  .app-shell { display: block; }
  .sidebar { position: static; height: auto; border-right: 0; border-bottom: 1px solid var(--line); }
  .brand { height: 63px; min-height: 63px; padding-inline: 23px; font-size: 16px; }
  .sidebar-body, .sidebar-footer { display: none; }
  .topbar { min-height: 56px; height: 56px; padding-inline: 23px; }
  .topnav { gap: 2px; flex-wrap:wrap; }
  .kit-workspace .topbar { flex-wrap:wrap; }
  .topnav-item { padding-inline: 10px; }
  .workbench { padding: 27px 23px 24px; }
  h1 { font-size: 27px; }
  .stage-heading { margin: 24px 0; }
  .stage-heading > p { font-size: 12px; }
  .hint-image { height: 95px; }
  .hint-title strong { font-size: 12px; }
  .hint-content { padding: 14px; }
  .hint-card p { font-size: 11px; }
  .workspace-footer { margin: 15px 23px 0; font-size: 9px; }
  .preview-header { align-items: flex-start; flex-direction: column; gap: 15px; }
  .preview-header h1 { font-size: 26px; }
}
@media (max-width: 520px) {
  .hint-list { grid-template-columns: 1fr; gap: 10px; }
  .hint-list.with-images .hint-card { display: grid; grid-template-columns: 90px minmax(0, 1fr); }
  .hint-image { height: 100%; min-height: 112px; width: 90px; }
  .hint-content { padding: 12px 14px; }
  .hint-category { font-size: 9px; margin-bottom: 3px; }
  .hint-title { margin-bottom: 5px; }
  .hint-card p { font-size: 11px; line-height: 1.65; }
  .hint-list:not(.with-images) .hint-card { min-height: auto; }
  .hint-list:not(.with-images) .hint-content { padding: 15px; }
  .editor-footer > span:first-child > span { display: none; }
  .next-step-label { display: none; }
  .controls { justify-content: space-between; }
  .answer-label-row > span { font-size: 9px; }
  textarea { min-height: 170px; padding: 15px; }
  .option-controls { gap: 12px; }
  .wizard-footnote { font-size: 9px; align-items: flex-start; }
  .wizard-footnote svg { margin-top: 1px; }
  .deck-grid, .export-grid { grid-template-columns: 1fr; }
  .metric { padding-inline: 11px; }
  .metric span { font-size: 9px; }
  .metric strong { font-size: 18px; }
  .locked-section { flex-wrap: wrap; }
  .locked-section > div { flex: 1; }
  .locked-section > .button { margin-left: 28px; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { transition: none !important; animation: none !important; scroll-behavior: auto !important; } }

.source-links { display: flex; flex-wrap: wrap; gap: 6px 12px; margin-top: 9px; }
.source-links a { color: #356e91; font-size: 11px; text-decoration: underline; overflow-wrap: anywhere; }
.hint-with-sources { min-width: 0; display: flex; flex-direction: column; }
.hint-with-sources > .hint-card { width: 100%; flex: 1; }

.kit-workspace [hidden] { display: none !important; }
.kit-workspace .app-shell { grid-template-columns: 264px minmax(0, 1fr); }
.kit-workspace .sidebar { height: 100dvh; }
.kit-workspace .sidebar-body { padding: 8px 12px 24px; }
.kit-workspace .workspace-name { padding-bottom: 20px; }
.topbar-context { display: flex; align-items: center; gap: 14px; min-width: 0; }
.sidebar-toggle { flex-shrink: 0; color: #647a73; border-radius: 5px; }
.sidebar-toggle:hover { background: var(--green-soft); }
.sidebar-dismiss { display: none; }
.product-nav { display: grid; gap: 8px; }
.nav-section { min-width: 0; }
.nav-section-toggle { width: 100%; display: flex; align-items: center; gap: 10px; min-height: 44px; padding: 10px; border: 0; border-radius: 5px; background: transparent; text-align: left; color: #4b5f69; font-size: 13px; font-weight: 600; }
.nav-section-toggle > svg:first-child { width: 18px; height: 18px; }
.nav-section-toggle:hover:not(:disabled) { background: #f0f4f3; }
.nav-section.active > .nav-section-toggle { background: var(--green-soft); color: var(--green-dark); }
.nav-section-toggle:disabled { opacity: .45; }
.nav-section-toggle .nav-chevron { width: 14px; height: 14px; margin-left: auto; transform: rotate(-90deg); }
.nav-section-toggle[aria-expanded="true"] .nav-chevron { transform: rotate(0); }
.nav-section-content { padding: 10px 0 10px 11px; margin: 0 0 0 18px; border-left: 1px solid #e4eae7; }
.nav-group-label { margin: 6px 7px 10px; color: #89969b; font-size: 10px; font-weight: 550; }
.nav-pending { display: block; margin: 0 7px 8px; color: #9aa3a9; font-size: 11px; }
.kit-workspace .step-nav { gap: 3px; }
.kit-workspace .step-link { min-height: 36px; padding: 8px 7px; font-size: 11px; gap: 8px; }
.kit-workspace .step-link > svg { width: 15px; height: 15px; }
.kit-workspace .step-link .step-number { font-size: 9px; }
.nav-preview { margin-top: 12px; border-top: 1px solid var(--line); border-radius: 0; }
.kit-workspace #financeNavigation .fw-nav { position: static; display: block; border: 0; padding: 0; }
.kit-workspace #financeNavigation .fw-nav-group + .fw-nav-group { margin-top: 12px; }
.kit-workspace #financeNavigation .fw-nav-group > p { padding: 5px 7px; color: #89969b; font-size: 10px; }
.kit-workspace #financeNavigation .fw-nav button { min-height: 34px; font-size: 11px; padding: 7px; gap: 8px; }
.kit-workspace #financeNavigation .fw-nav svg { width: 15px; height: 15px; }
.kit-workspace.financial-workspace-open .workbench { max-width: none; margin: 0; padding: 16px 32px 30px; }
.kit-workspace.financial-workspace-open .topbar { min-height: 48px; height: auto; padding: 5px 32px; }
.financial-workspace-open .breadcrumb { display: none; }
.financial-workspace-open.sidebar-collapsed .breadcrumb { display: flex; }
.financial-workspace-open .breadcrumb > span, .financial-workspace-open .breadcrumb > svg { display: none; }
.finance-context-badge { border: 0; border-radius: 4px; background: #f1f3f5; color: #68727b; font: inherit; font-size: 10px; padding: 5px 8px; cursor: pointer; }
.finance-context-badge:hover { background: #e7ecef; color: #344b58; }
.finance-context-badge:focus-visible { outline: 2px solid #7cac98; outline-offset: 3px; }
body:not(.financial-workspace-open) .finance-context-badge, .finance-context-badge[hidden] { display: none; }
.finance-context-note { border-top: 1px solid var(--line); margin-top: 22px; padding: 16px 0; font-size: 11px; line-height: 1.7; color: #6b7480; }
.finance-context-note .button { margin: 8px; }
.kit-workspace.sidebar-collapsed .app-shell { grid-template-columns: 64px minmax(0, 1fr); }
.sidebar-collapsed .sidebar .brand { padding: 0; justify-content: center; }
.sidebar-collapsed .sidebar .brand > span:last-child,
.sidebar-collapsed .workspace-name,
.sidebar-collapsed .nav-section-label,
.sidebar-collapsed .nav-chevron,
.sidebar-collapsed .nav-section-content,
.sidebar-collapsed .sidebar-footer > span,
.sidebar-collapsed .sidebar-footer > svg { display: none; }
.kit-workspace.sidebar-collapsed .sidebar-body { padding: 8px; }
.sidebar-collapsed .nav-section-toggle { justify-content: center; padding: 10px 0; }
.sidebar-collapsed .sidebar-footer { justify-content: center; padding-inline: 8px; }
.sidebar-collapsed .sidebar-footer .icon-button { margin: 0; }
.sidebar-backdrop { display: none; }
.slide-card { scroll-margin-top: 24px; }
@media (max-width: 1150px) and (min-width: 721px) {
  .kit-workspace .app-shell { grid-template-columns: 240px minmax(0, 1fr); }
}
@media (max-width: 720px) {
  .kit-workspace .app-shell { display: block; }
  .kit-workspace .sidebar { display: none; position: fixed; inset: 0 auto 0 0; z-index: 60; width: min(284px, calc(100vw - 40px)); height: 100dvh; border-right: 1px solid var(--line); border-bottom: 0; box-shadow: 8px 0 32px #25352c12; }
  .kit-workspace.sidebar-open .sidebar { display: flex; }
  .kit-workspace .sidebar-body { display: block; }
  .kit-workspace .sidebar-footer { display: flex; }
  .kit-workspace .brand { padding-right: 47px; padding-left: 16px; }
  .kit-workspace .sidebar-dismiss { display: grid; position: absolute; top: 14px; right: 9px; width: 32px; height: 32px; }
  .kit-workspace .sidebar-backdrop:not([hidden]) { display: block; position: fixed; inset: 0; z-index: 50; width: 100%; height: 100dvh; border: 0; background: #1b302749; }
  .kit-workspace.sidebar-open { overflow: hidden; }
  .kit-workspace .topbar { height: auto; min-height: 64px; padding: 12px 18px; gap: 8px; }
  .topbar-context { gap: 9px; }
  .breadcrumb { min-width: 0; }
  .breadcrumb strong { font-size: 11px; }
  .kit-workspace.financial-workspace-open .workbench { padding: 12px 20px 24px; }
  .kit-workspace.financial-workspace-open .topbar { padding-inline: 18px; }
  .financial-workspace-open .breadcrumb { display: flex; }
  .financial-workspace-open .topnav { display: flex; }
  .financial-workspace-open .topnav-item:not([data-view="exports"]) { display: none; }
}
/* Account controls remain outside the model's staged sheet editors. */
.customer-bar { margin: 16px 32px 0; padding: 14px 18px; border: 1px solid #e1e5ec; border-radius: 12px; background: white; }
.customer-bar[hidden], .customer-actions [hidden] { display: none; }
#customerWorkspaceName { display: block; font-weight: 650; margin-bottom: 10px; overflow-wrap: anywhere; }
.customer-actions { display: flex; gap: 8px; flex-wrap: wrap; }
.customer-actions .button { min-height: 36px; padding: 8px 12px; font-size: 12px; }
.customer-bar p { font-size: 12px; color: #59677b; margin: 8px 0 0; }
.customer-dialog { width: min(560px, calc(100% - 32px)); }
.customer-dialog h2 { margin-top: 0; }
.customer-dialog .field { margin: 18px 0; }
.customer-project-list { display: grid; gap: 8px; max-height: 45vh; overflow-y: auto; }
.customer-project-list button { text-align: left; padding: 12px; border: 1px solid #e1e5ec; border-radius: 8px; background: #f8f9fb; cursor: pointer; overflow-wrap: anywhere; }
.customer-project-list small { display: block; margin-top: 4px; color: #59677b; }
.billing-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.billing-dialog [hidden] { display: none; }
.billing-dialog p { overflow-wrap: anywhere; }
.billing-payments { display: grid; gap: 10px; margin-bottom: 18px; }
.billing-payment { padding: 12px; border: 1px solid #e1e5ec; border-radius: 8px; background: #f8f9fb; }
.billing-payment strong { display: block; overflow-wrap: anywhere; }
.billing-payment p { margin: 6px 0 0; font-size: 13px; color: #59677b; }
.billing-plans { display: grid; gap: 12px; margin: 18px 0; }
.billing-plan { padding: 14px; border: 1px solid #e1e5ec; border-radius: 8px; background: #f8f9fb; }
.billing-plan h3 { margin: 0 0 8px; font-size: 16px; }
.billing-plan p { font-size: 13px; margin: 8px 0; }
.billing-plan .button { white-space: normal; max-width: 100%; }
.purchase-dialog { max-height: calc(100dvh - 32px); overflow-y: auto; }
.purchase-dialog [hidden] { display: none; }
.purchase-dialog p { overflow-wrap: anywhere; }
.purchase-list { display: grid; gap: 12px; margin-top: 16px; }
.purchase-version { padding: 16px; border: 1px solid #e1e5ec; border-radius: 10px; background: #f8f9fb; }
.purchase-version h3 { font-size: 15px; margin: 0 0 8px; overflow-wrap: anywhere; }
.purchase-version p { margin: 0 0 12px; font-size: 13px; color: #59677b; }
.purchase-version .button { white-space: normal; text-align: left; }
@media (max-width: 720px) { .customer-bar { margin: 12px 14px 0; } }

/* Fixed approved BPLAN AI artwork; compact rail uses the original symbol. */
.brand-logo { display: block; width: 180px; max-width: 100%; height: auto; }
.brand-symbol { display: none; width: 36px; height: 36px; }
.sidebar-collapsed .sidebar .brand-logo { display: none; }
.sidebar-collapsed .sidebar .brand-symbol { display: block; }
.example-navigation { display: block; color: var(--green-dark); font-size: 11px; padding: 4px 8px 14px; line-height: 1.6; }
.sidebar-collapsed .example-navigation { display: none; }
.slide-card > small { display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.slide-card .slide-brand { display: block; width: 110px; height: 31px; flex-shrink: 0; object-fit: contain; }
@media (max-width: 700px) { .kit-workspace .brand-logo { width: 166px; } }
