@font-face {
  font-family: "IBM Plex Sans";
  src: url('./mvp-font.woff2') format('woff2');
  font-style: normal;
  font-weight: 100 900;
  font-display: swap;
}

body.scope { margin: 0; overflow: hidden; background: var(--paper-50); color: var(--ink-900); font-family: "IBM Plex Sans", sans-serif; font-size: 16px; line-height: 1.6; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
button { font: inherit; color: inherit; cursor: pointer; }
button, a { touch-action: manipulation; }
button:disabled { opacity: .45; cursor: default; }
a { color: inherit; text-decoration: none; }
.scope :is(button, a, [tabindex]):focus-visible { outline: 2px solid var(--celadon-600); outline-offset: 3px; }
svg { display: block; width: 18px; height: 18px; flex-shrink: 0; }
[data-icon] { display: inline-flex; flex: none; }
.sr-only { position: absolute; width: 1px; height: 1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; }
.skip { position: fixed; top: -80px; left: 16px; z-index: 40; padding: 12px 20px; background: var(--paper-50); border: 1px solid var(--ink-700); }
.skip:focus { top: 12px; }

/* One quiet application shell; the file, conversation and navigation have distinct roles. */
.desktop-window { height: 100dvh; display: flex; flex-direction: column; background: var(--paper-50); }
.window-bar { height: 34px; flex: none; display: flex; align-items: center; justify-content: space-between; padding: 0 16px; background: var(--paper-100); border-bottom: 1px solid var(--paper-300); }
.window-dots { display: flex; gap: 6px; width: 52px; }
.window-dots i { width: 8px; height: 8px; border-radius: 50%; background: var(--paper-400); }
.window-title { font-size: 12px; color: var(--ink-500); }
.window-title > span { padding: 0 8px; color: var(--paper-500); }
#expand-workspace { display: grid; place-items: center; min-width: 32px; min-height: 30px; color: var(--ink-500); }
.app-layout { flex: 1; min-height: 0; display: grid; grid-template-columns: 240px minmax(0,1fr); }
.sidebar { display: flex; flex-direction: column; min-height: 0; padding: 20px 12px 12px; background: var(--paper-100); border-right: 1px solid var(--paper-300); }
.brand { display: flex; align-items: center; justify-content: space-between; padding: 0 10px; font-size: 29px; line-height: 1; font-weight: 500; letter-spacing: -1.5px; }
.brand > span { font-size: 12px; font-weight: 400; letter-spacing: 1px; color: var(--ink-500); }
.company { display: flex; align-items: center; gap: 10px; padding: 14px 10px; margin: 5px 0 2px; }
.company-avatar { display: grid; place-items: center; width: 32px; height: 32px; flex: none; background: var(--ink-900); color: var(--paper-50); border-radius: 8px; font-size: 18px; }
.company strong { display: block; font-size: 16px; font-weight: 500; line-height: 1.4; }
.company small { display: block; color: var(--ink-500); font-size: 12px; }
.new-task { display: flex; align-items: center; gap: 10px; min-height: 38px; flex: none; border: 1px solid var(--paper-400); border-radius: 7px; background: var(--paper-50); padding: 7px 11px; text-align: left; font-size: 14px; }
.new-task:hover { border-color: var(--ink-400); }
.sidebar-scroll { overflow-y: auto; flex: 1; margin-top: 22px; min-height: 0; scrollbar-width: thin; }
.section-label { padding: 0 10px; margin: 0 0 8px; color: var(--ink-500); font-size: 12px; font-weight: 500; letter-spacing: .8px; }
#departments { display: grid; gap: 4px; }
#departments button { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 38px; padding: 8px 10px; background: transparent; border: 0; border-radius: 7px; text-align: left; font-size: 15px; line-height: 1.4; color: var(--ink-700); }
#departments button:hover { background: var(--paper-200); }
#departments button[aria-current=true] { background: var(--celadon-100); color: var(--celadon-800); font-weight: 500; }
.department-count { margin-left: auto; color: var(--ink-500); font-size: 12px; }
.department-group .sample-task-section { margin: 9px 0 8px; }
.department-group .section-label { margin: 0 0 4px 30px; padding: 0; font-size: 12px; letter-spacing: .6px; }
#skills { display: grid; gap: 2px; padding-left: 8px; margin-left: 18px; border-left: 1px solid var(--paper-400); }
#skills button { padding: 7px 8px; min-height: 34px; gap: 8px; font-size: 14px; color: var(--ink-500); border-radius: 5px; }
#skills button[aria-current=true] { color: var(--ink-900); background: var(--paper-200); font-weight: 500; }
#skills svg { width: 14px; height: 14px; }
.sidebar-bottom { flex: none; margin-top: 10px; padding-top: 6px; }
.sidebar-bottom > button, .sidebar-bottom > a { display: flex; align-items: center; gap: 9px; width: 100%; min-height: 36px; padding: 7px 10px; color: var(--ink-500); background: transparent; border: 0; border-radius: 6px; font-size: 14px; text-align: left; }
.sidebar-bottom > button > span:last-child { margin-left: auto; }
.sidebar-bottom svg { width: 16px; height: 16px; }
.sidebar-bottom > button:hover, .sidebar-bottom > a:hover { color: var(--ink-900); background: var(--paper-200); }
.sidebar-bottom > p { display: none; }
main { display: flex; flex-direction: column; min-height: 0; min-width: 0; }
.workspace-bar { min-height: 50px; flex: none; display: flex; align-items: center; gap: 12px; padding: 7px 20px; border-bottom: 1px solid var(--paper-300); }
.breadcrumb { display: flex; align-items: center; gap: 10px; min-width: 0; font-size: 14px; color: var(--ink-500); }
.breadcrumb strong { font-weight: 500; color: var(--ink-900); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.breadcrumb > span:first-child { white-space: nowrap; }
.workspace-actions { display: flex; align-items: center; gap: 12px; margin-left: auto; }
.sample-badge { font-size: 12px; white-space: nowrap; color: var(--ink-500); }
.sample-badge::before { content: ''; display: inline-block; width: 5px; height: 5px; margin: 0 7px 2px 0; border-radius: 50%; background: var(--celadon-600); }
.icon-button { display: grid; place-items: center; width: 32px; height: 32px; flex: none; padding: 0; border: 0; border-radius: 5px; background: transparent; color: var(--ink-500); }
.icon-button:hover { background: var(--paper-200); color: var(--ink-900); }
.mobile-picker { display: none; }
.workspace-body { position: relative; flex: 1; display: flex; min-height: 0; min-width: 0; overflow: hidden; }

/* The conversation stays readable at the actual embedded size. */
.conversation { display: flex; flex-direction: column; flex: 1; min-width: 0; min-height: 0; }
.conversation-scroll { flex: 1; overflow-y: auto; padding: 32px clamp(20px,2.7vw,48px) 18px; scrollbar-width: thin; }
.thread { max-width: 620px; margin: auto; }
.request-message { max-width: 94%; margin: 0 0 28px auto; padding: 14px 16px; background: var(--paper-200); border-radius: 12px 12px 3px 12px; }
.request-message > p { margin: 0; font-size: 16px; line-height: 1.65; }
.source-file { display: flex; align-items: center; gap: 10px; padding: 9px 10px; margin-top: 12px; max-width: 310px; background: var(--paper-50); border: 1px solid var(--paper-300); border-radius: 7px; }
.file-icon { display: grid; place-items: center; flex: none; width: 30px; height: 36px; background: var(--paper-50); border: 1px solid var(--paper-300); border-radius: 4px; font-size: 12px; font-weight: 500; letter-spacing: .3px; color: var(--vermilion-600); }
.source-file strong { display: block; overflow-wrap: anywhere; font-size: 14px; font-weight: 500; line-height: 1.4; }
.source-file small { display: block; font-size: 12px; color: var(--ink-500); }
.source-file > [data-icon] { margin-left: auto; }
.source-file svg { width: 14px; height: 14px; }
.source-file:hover { border-color: var(--paper-500); }
.assistant-message { display: flex; align-items: flex-start; gap: 11px; }
.assistant-avatar { display: grid; place-items: center; width: 27px; height: 27px; flex: none; border-radius: 7px; background: var(--celadon-100); color: var(--celadon-800); font-size: 22px; letter-spacing: -1px; line-height: 1; }
.assistant-content { flex: 1; min-width: 0; }
.assistant-name { display: block; padding-top: 1px; font-size: 16px; font-weight: 500; }
.assistant-content > p { margin: 8px 0 10px; font-size: 16px; line-height: 1.65; }
.assistant-content details { margin: 0 0 12px; }
.assistant-content summary { display: flex; align-items: center; gap: 7px; width: fit-content; min-height: 32px; list-style: none; font-size: 14px; color: var(--ink-500); cursor: pointer; }
.assistant-content summary::-webkit-details-marker { display: none; }
.details-caret { margin-left: 5px; }
.assistant-content details[open] .details-caret { transform: rotate(180deg); }
.check-circle { color: var(--celadon-600); }
#preparation { display: grid; gap: 6px; padding: 6px 0 6px 17px; margin: 0; list-style: none; }
#preparation li { display: flex; gap: 8px; font-size: 14px; color: var(--ink-500); }
#preparation li > span { color: var(--celadon-600); }
.result-file { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 70px; padding: 12px 14px; background: var(--paper-50); border: 1px solid var(--paper-400); border-radius: 9px; text-align: left; box-shadow: 0 2px 4px rgb(23 35 31 / 2%); }
.result-file:hover { background: var(--celadon-50); border-color: var(--celadon-500); }
.result-file strong { display: block; font-size: 14px; font-weight: 500; overflow-wrap: anywhere; }
.result-file small { display: block; margin-top: 2px; font-size: 12px; color: var(--ink-500); }
.result-file > [data-icon] { margin-left: auto; color: var(--ink-500); }
.result-file svg { width: 16px; height: 16px; }
.composer-area { flex: none; padding: 12px clamp(20px,2.7vw,48px) 14px; background: var(--paper-50); }
.composer { max-width: 620px; margin: auto; padding: 12px 14px; border: 1px solid var(--paper-400); border-radius: 12px; box-shadow: 0 3px 12px rgb(23 35 31 / 3%); }
.template-context { display: flex; flex-wrap: wrap; align-items: center; gap: 7px; color: var(--ink-500); font-size: 12px; }
.template-context svg { width: 13px; height: 13px; color: var(--celadon-600); }
.saved-pill { margin-left: auto; font-size: 12px; color: var(--celadon-800); white-space: nowrap; }
.composer-toolbar { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: center; gap: 8px; margin-top: 10px; }
.attach-button { display: flex; align-items: center; gap: 9px; min-height: 36px; padding: 0; border: 0; background: transparent; font-size: 14px; white-space: nowrap; }
.attach-icon { display: grid; place-items: center; width: 30px; height: 30px; border: 1px solid var(--paper-300); border-radius: 50%; color: var(--ink-500); }
.attach-icon svg { width: 15px; height: 15px; }
.attach-button:hover .attach-icon { color: var(--ink-900); background: var(--paper-200); }
.send-button { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 36px; padding: 7px 10px; border: 0; border-radius: 7px; background: var(--ink-900); color: var(--paper-50); font-size: 14px; white-space: nowrap; }
.send-button svg { width: 14px; height: 14px; }
.send-button:hover { background: var(--celadon-800); }
#composer-note { max-width: 620px; margin: 7px auto 0; text-align: center; font-size: 12px; color: var(--ink-500); }

/* A document viewer, with useful zoom and a full workspace reading mode. */
.result-panel { display: flex; flex-direction: column; width: 44%; max-width: 760px; min-width: 340px; min-height: 0; background: var(--paper-100); border-left: 1px solid var(--paper-300); }
.file-header { display: flex; align-items: center; gap: 8px; min-height: 48px; padding: 8px 16px; background: var(--paper-50); border-bottom: 1px solid var(--paper-300); }
.file-header > [data-icon] { color: var(--ink-500); }
.file-header strong { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; font-weight: 500; }
.file-header svg { width: 16px; height: 16px; }
.document-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 0 20px; background: var(--paper-50); border-bottom: 1px solid var(--paper-300); }
.document-tabs { display: flex; gap: 22px; }
.document-tabs button { min-height: 40px; padding: 9px 1px; border: 0; border-bottom: 2px solid transparent; background: transparent; font-size: 14px; color: var(--ink-500); }
.document-tabs button[aria-selected=true] { border-bottom-color: var(--celadon-600); color: var(--ink-900); }
#open-pdf { display: flex; align-items: center; gap: 5px; min-height: 36px; font-size: 12px; }
#open-pdf svg { width: 13px; height: 13px; }
.file-scroll { flex: 1; min-height: 0; overflow: auto; padding: 14px 20px; scrollbar-width: thin; }
.paper-meta { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin: 0 0 10px; font-size: 12px; color: var(--ink-500); }
.paper-meta > span { font-weight: 500; letter-spacing: .8px; }
.preview-controls { display: flex; align-items: center; gap: 4px; }
.preview-controls .icon-button { width: 28px; height: 28px; }
.preview-controls svg { width: 13px; height: 13px; }
#zoom-level { min-width: 52px; text-align: center; font-size: 12px; font-variant-numeric: tabular-nums; }
#zoom-reset { min-height: 28px; padding: 3px 6px; border: 1px solid var(--paper-300); border-radius: 4px; background: var(--paper-50); font-size: 12px; }
.document-stage { width: 100%; height: clamp(230px,37vh,460px); overflow: auto; background: white; border: 1px solid var(--paper-300); border-radius: 3px; box-shadow: 0 4px 12px rgb(23 35 31 / 4%); scrollbar-width: thin; }
.document-stage img { display: block; width: calc(100% * var(--preview-zoom,1)); max-width: none; height: auto; background: white; }
.file-caption { margin-top: 10px; font-size: 12px; color: var(--ink-500); }
.privacy-note { display: flex; align-items: center; gap: 7px; padding: 12px 0 0; font-size: 12px; color: var(--ink-500); }
.privacy-note p { margin: 0; }
.privacy-note svg { width: 13px; height: 13px; }
.result-bottom { padding: 12px 20px 8px; background: var(--paper-50); border-top: 1px solid var(--paper-300); }
.downloads { display: flex; gap: 8px; }
.downloads a { display: flex; min-width: 0; flex: 1; align-items: center; justify-content: center; gap: 9px; min-height: 38px; padding: 8px 12px; background: var(--ink-900); color: var(--paper-50); border: 1px solid var(--ink-900); border-radius: 7px; font-size: 14px; white-space: nowrap; }
.downloads a + a { background: transparent; color: var(--ink-900); border-color: var(--paper-400); }
.downloads a:hover { background: var(--celadon-800); }
.downloads a + a:hover { background: var(--paper-200); }
.customize-result { display: flex; align-items: center; justify-content: center; gap: 7px; min-height: 34px; padding-top: 4px; font-size: 12px; color: var(--ink-500); }
.customize-result svg { width: 13px; height: 13px; }
.customize-result:hover { color: var(--vermilion-600); }
.preview-expanded .result-panel { position: absolute; inset: 0; width: 100%; max-width: none; z-index: 4; border-left: 0; }
.preview-expanded .file-scroll { padding-inline: clamp(20px,4vw,60px); }
.preview-expanded .document-stage { height: calc(100dvh - 344px); min-height: 250px; }
.preview-expanded .result-bottom { display: flex; align-items: center; gap: 24px; }
.preview-expanded .downloads { min-width: 200px; }
.preview-expanded .customize-result { margin-left: auto; }
.checks-panel { max-width: 640px; padding: 10px 0; }
.checks-panel > .check-circle { display: grid; place-items: center; width: 32px; height: 32px; border-radius: 50%; background: var(--celadon-100); }
.checks-panel h3 { margin: 15px 0 10px; font-size: 22px; font-weight: 400; letter-spacing: -.5px; line-height: 1.3; }
.checks-panel p { font-size: 16px; color: var(--ink-500); }
.checks-panel ul { display: grid; gap: 16px; margin: 24px 0; padding: 0; list-style: none; }
.checks-panel li { display: flex; gap: 9px; font-size: 16px; }
.checks-panel li > span { color: var(--celadon-600); }
.checks-panel .review-note { padding-top: 16px; margin-bottom: 20px; border-top: 1px solid var(--paper-300); }
.checks-panel a { font-size: 14px; text-decoration: underline; text-underline-offset: 3px; }

/* Prepared-sample states and the explanatory tour remain separate from a real run. */
.eyebrow { color: var(--ink-500); font-size: 12px; font-weight: 500; letter-spacing: .9px; }
.welcome { max-width: 420px; margin: 56px auto 40px; text-align: center; }
.welcome-mark { display: inline-grid; place-items: center; width: 42px; height: 42px; border-radius: 12px; background: var(--celadon-100); color: var(--celadon-800); font-size: 33px; line-height: 1; letter-spacing: -2px; }
.welcome h2 { margin: 18px 0 14px; font-size: 32px; font-weight: 400; letter-spacing: -1px; line-height: 1.2; }
.welcome p { color: var(--ink-500); font-size: 16px; line-height: 1.8; }
.welcome .welcome-context { margin: 22px 0 0; font-size: 13px; line-height: 1.5; color: var(--celadon-800); }
.department-empty { flex: 1; overflow-y: auto; padding: clamp(28px,6vw,80px); }
.department-empty > .eyebrow { margin-top: 22px; }
.department-empty h1 { margin: 12px 0; font-size: 36px; font-weight: 400; letter-spacing: -1px; }
.department-empty > p { max-width: 440px; color: var(--ink-500); }
.scope-card { max-width: 480px; margin: 28px 0; padding: 22px; border: 1px solid var(--paper-300); border-radius: 10px; }
.scope-card ul { display: grid; gap: 8px; margin: 16px 0; padding-left: 18px; font-size: 16px; }
.scope-card > p { color: var(--ink-500); font-size: 16px; }
.primary { display: inline-flex; align-items: center; justify-content: center; gap: 20px; min-height: 44px; padding: 11px 18px; background: var(--vermilion-600); color: var(--paper-50); border-radius: 7px; font-size: 14px; }
.primary:hover { background: var(--vermilion-700); }
.text-button { display: flex; align-items: center; gap: 12px; min-height: 44px; margin-top: 12px; padding: 12px 0; border: 0; background: transparent; color: var(--ink-500); font-size: 14px; }
.workspace-footer { display: flex; flex: none; justify-content: space-between; align-items: center; gap: 10px; min-height: 30px; padding: 6px 16px; border-top: 1px solid var(--paper-300); background: var(--paper-100); color: var(--ink-500); font-size: 12px; }
.tour-bar { display: grid; grid-template-columns: minmax(220px,1fr) minmax(340px,1.35fr) 128px; flex: none; align-items: center; gap: 24px; min-height: 84px; padding: 12px 20px; background: var(--paper-50); border-top: 1px solid var(--paper-300); }
.tour-copy { min-width: 0; }
.tour-caption { margin: 0 0 5px; font-size: 15px; font-weight: 500; line-height: 1.4; }
.tour-description { display: flex; align-items: center; gap: 7px; margin: 0; font-size: 12px; color: var(--ink-500); }
.tour-dot { width: 5px; height: 5px; border-radius: 50%; background: var(--celadon-600); }
.tour-steps { display: grid; grid-template-columns: repeat(4,minmax(0,1fr)); gap: 12px; }
.tour-steps button { display: flex; flex-direction: column; justify-content: center; gap: 9px; min-width: 0; min-height: 44px; padding: 5px 0; border: 0; border-radius: 3px; background: transparent; color: var(--ink-500); font-size: 13px; text-align: left; }
.tour-step-label { display: flex; align-items: center; gap: 5px; white-space: nowrap; }
.tour-number { font-size: 12px; color: var(--ink-400); font-variant-numeric: tabular-nums; }
.tour-steps button[aria-current=step] { color: var(--celadon-800); }
.tour-steps button[aria-current=step] .tour-number { color: var(--celadon-600); }
.tour-steps button:hover { color: var(--ink-900); }
.tour-track { display: block; width: 100%; height: 3px; overflow: hidden; background: var(--paper-300); border-radius: 2px; }
.tour-track > span { display: block; height: 100%; background: var(--celadon-600); transform: scaleX(0); transform-origin: left; }
.tour-steps button[data-complete=true] .tour-track > span { transform: scaleX(1); }
.tour-toggle { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; padding: 8px 10px; border: 1px solid var(--paper-400); border-radius: 7px; background: var(--paper-50); color: var(--ink-700); font-size: 13px; white-space: nowrap; }
.tour-toggle:hover { border-color: var(--ink-400); background: var(--paper-100); }
.tour-toggle::before { content: ''; width: 0; height: 0; border-top: 4px solid transparent; border-bottom: 4px solid transparent; border-left: 6px solid currentColor; }
body:is([data-tour-playback=playing],[data-tour-playback=waiting]) .tour-toggle::before { width: 6px; height: 9px; border: 0; border-inline: 2px solid currentColor; }
.tour-skill-intro { display: none; }
[data-tour-step="0"] .thread { display: none; }
[data-tour-step="1"] .assistant-message, [data-tour-step="2"] .result-file, [data-tour-step="2"] #assistant-copy { display: none; }
[data-tour-step="2"] .tour-skill-intro { display: block; }
[data-tour-step="2"] .template-context { color: var(--celadon-800); }
[data-tour-step="2"] .composer { border-color: var(--celadon-500); box-shadow: 0 0 0 3px rgb(67 121 94 / 5%); }
[data-tour-step="0"] #departments [data-department="customer-service"] { box-shadow: inset 0 0 0 1px var(--celadon-500); }
[data-tour-step="0"] #skills [aria-current=true] { box-shadow: inset 2px 0 0 var(--celadon-600); background: var(--celadon-50); }
body[data-tour-animated=true][data-tour-step="0"] .welcome { animation: scene-enter .55s cubic-bezier(.2,.75,.3,1) both; }
body[data-tour-animated=true][data-tour-step="0"] #skills [aria-current=true] { animation: scene-enter .5s .15s both; }
body[data-tour-animated=true][data-tour-step="1"] .request-message { animation: scene-enter .55s cubic-bezier(.2,.75,.3,1) both; }
body[data-tour-animated=true][data-tour-step="1"] .source-file { animation: scene-enter .45s .18s both; }
body[data-tour-animated=true][data-tour-step="2"] .assistant-message { animation: scene-enter .5s cubic-bezier(.2,.75,.3,1) both; }
body[data-tour-animated=true][data-tour-step="2"] #preparation li { animation: scene-enter .4s .12s both; }
body[data-tour-animated=true][data-tour-step="2"] #preparation li:nth-child(2) { animation-delay: .24s; }
body[data-tour-animated=true][data-tour-step="2"] #preparation li:nth-child(3) { animation-delay: .36s; }
body[data-tour-animated=true][data-tour-step="3"] .result-file { animation: scene-enter .5s cubic-bezier(.2,.75,.3,1) both; }
body[data-tour-animated=true][data-tour-step="3"] .result-panel { animation: drawer-enter .65s cubic-bezier(.2,.75,.3,1) both; }
body[data-tour-running=false] :is(.welcome, #skills [aria-current=true], .request-message, .source-file, .assistant-message, #preparation li, .result-file, .result-panel) { animation-play-state: paused; }
@keyframes scene-enter { from { opacity: 0; transform: translateY(12px); } to { opacity: 1; transform: translateY(0); } }
@keyframes drawer-enter { from { opacity: 0; transform: translateX(18px); } to { opacity: 1; transform: translateX(0); } }
body.embedded .sidebar { padding-top: 16px; }
body.embedded .sidebar-bottom > a { display: none; }
body.embedded .conversation-scroll { padding: 24px 24px 12px; }
body.embedded .request-message { margin-bottom: 20px; }
body.embedded .assistant-content details { margin-bottom: 10px; }
body.embedded .result-file { min-height: 64px; padding: 10px 12px; }
body.embedded .composer-area { padding: 8px 24px 12px; }
body.embedded .composer { padding: 10px 12px; }
body.embedded .composer-toolbar { margin-top: 8px; }
body.embedded .document-stage { height: clamp(250px,40vh,350px); }
body.embedded .preview-expanded .document-stage { height: calc(100dvh - 330px); }
body.embedded .privacy-note { display: none; }
body.embedded .welcome { margin-top: 55px; }
.load-state { padding: 44px; }
.load-state a { text-decoration: underline; }
.preview-error { max-width: 270px; margin: 24px auto; padding: 24px; text-align: center; }
.preview-error > [data-icon] { color: var(--ink-500); }
.preview-error h3 { margin: 12px 0; font-size: 18px; }
.preview-error p { color: var(--ink-500); font-size: 16px; }
dialog { width: min(480px,calc(100% - 32px)); max-height: calc(100dvh - 40px); padding: 32px; background: var(--paper-50); color: var(--ink-900); border: 1px solid var(--paper-400); border-radius: 16px; box-shadow: 0 24px 80px rgb(23 35 31 / 20%); }
dialog::backdrop { background: rgb(17 25 22 / 40%); }
.close-dialog { position: absolute; top: 14px; right: 14px; width: 36px; height: 36px; border: 0; border-radius: 6px; background: transparent; font-size: 24px; }
.close-dialog:hover { background: var(--paper-200); }
dialog > .eyebrow { margin-top: 24px; }
dialog h2 { margin: 10px 0 14px; font-size: 29px; font-weight: 400; letter-spacing: -.8px; line-height: 1.2; }
dialog > p { color: var(--ink-500); font-size: 16px; }
dialog ol { display: grid; gap: 20px; margin: 25px 0; padding: 0; list-style: none; }
dialog li { display: flex; gap: 16px; font-size: 16px; }
dialog li > span { color: var(--ink-500); font-size: 12px; }
dialog li strong { font-weight: 500; }
dialog li p { margin: 3px 0 0; color: var(--ink-500); font-size: 16px; }
dialog > .primary { width: 100%; }
dialog .dialog-note { margin: 14px 0 0; font-size: 12px; }

@media (min-width:1700px) {
  .conversation-scroll { padding-top: 52px; }
}
@media (max-width:1100px) {
  .app-layout { grid-template-columns: 228px minmax(0,1fr); }
  .sidebar { padding-inline: 9px; }
  .workspace-bar { padding-inline: 16px; }
  .breadcrumb strong { display: none; }
  .breadcrumb > span:nth-child(2) { display: none; }
  .workspace-actions { gap: 8px; }
  .conversation-scroll { padding-inline: 20px; }
  .composer-area { padding-inline: 20px; }
  .result-panel { width: 44%; min-width: 310px; }
  .file-scroll { padding-inline: 14px; }
  .file-header { padding-inline: 12px; }
  .attach-button { gap: 6px; }
  .send-button { padding-inline: 8px; }
  .tour-bar { grid-template-columns: minmax(190px,1fr) minmax(330px,1.4fr) 128px; gap: 16px; padding-inline: 16px; }
  .tour-steps { gap: 10px; }
}
@media (max-width:850px) {
  .app-layout { grid-template-columns: 228px minmax(0,1fr); }
  .result-panel { position: absolute; inset: 0; width: 100%; min-width: 0; max-width: none; z-index: 3; }
  #expand-preview { display: none; }
  .breadcrumb strong { display: block; }
  .breadcrumb > span:nth-child(2) { display: block; }
  .conversation-scroll { padding: 24px; }
  .composer-area { padding: 12px 24px; }
  .tour-bar { grid-template-columns: minmax(0,1fr) 128px; gap: 8px 14px; padding: 10px 16px; }
  .tour-steps { grid-row: 2; grid-column: 1 / -1; }
  .tour-toggle { grid-column: 2; grid-row: 1; }
  .tour-caption { font-size: 14px; }
  .file-scroll { padding-inline: 20px; }
}
@media (max-width:600px) {
  .app-layout { display: flex; }
  .sidebar { display: none; position: absolute; top: 34px; bottom: 30px; left: 0; width: 254px; z-index: 8; padding: 20px 14px 12px; box-shadow: 14px 0 30px rgb(23 35 31 / 12%); }
  .sidebar.open { display: flex; }
  .sidebar #departments button { min-height: 44px; font-size: 15px; }
  .sidebar #skills button { min-height: 44px; font-size: 14px; }
  .sidebar-scroll { margin-top: 18px; }
  main { width: 100%; }
  .mobile-picker { display: grid; }
  .workspace-bar { padding: 5px 8px; min-height: 50px; gap: 5px; }
  .workspace-bar .icon-button { width: 36px; height: 40px; }
  .breadcrumb { font-size: 14px; }
  .breadcrumb > span:not(:first-child), .breadcrumb strong { display: none; }
  .workspace-actions { gap: 3px; }
  .sample-badge { font-size: 12px; }
  .sample-badge::before { display: none; }
  .workspace-footer { justify-content: center; font-size: 12px; }
  .workspace-footer a { display: none; }
  .conversation-scroll { padding: 24px 18px; }
  body.embedded .conversation-scroll { padding-inline: 16px; }
  .request-message { padding: 13px; max-width: 96%; }
  /* The file remains as context after its request has been shown in scene two. */
  [data-tour-step="2"] .request-message > p { display: none; }
  [data-tour-step="2"] .source-file { margin-top: 0; }
  .assistant-message { gap: 9px; }
  .composer-area { padding: 10px 14px 12px; }
  body.embedded .composer-area { padding-inline: 14px; }
  .composer { padding: 11px 12px; }
  .attach-button, .send-button { min-height: 40px; }
  .result-panel { border-left: 0; }
  .file-header { padding: 8px 14px; }
  .file-header .icon-button { width: 36px; height: 36px; }
  .file-scroll { padding: 12px 16px; }
  .preview-controls .icon-button, #zoom-reset { width: 32px; min-height: 34px; }
  .result-bottom { padding: 12px 16px 8px; }
  .downloads a { min-height: 44px; }
  .customize-result { min-height: 40px; }
  .window-title { font-size: 12px; }
  .window-dots { width: 38px; gap: 5px; }
  .window-dots i { width: 7px; height: 7px; }
  .window-bar { padding-inline: 12px; }
  .tour-bar { grid-template-columns: minmax(0,1fr) 108px; gap: 7px 10px; padding: 10px 12px; }
  .tour-steps { gap: 10px; }
  .tour-steps button { font-size: 12px; gap: 7px; }
  .tour-step-label { gap: 0; }
  .tour-number { display: none; }
  .tour-toggle { font-size: 12px; padding-inline: 5px; gap: 5px; }
  .welcome { margin: 34px auto; }
  .welcome h2 { font-size: 26px; }
  .department-empty { padding: 30px 22px; }
  .department-empty h1 { font-size: 32px; }
  .department-empty > p { font-size: 16px; }
  dialog { padding: 28px 24px; }
}
@media (prefers-reduced-motion:reduce) {
  *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; }
}
