:root {
  color-scheme: light;
  --ink: #151c13;
  --muted: #787c75;
  --soft: #a0a29c;
  --paper: #fff;
  --sidebar: #f8f7f5;
  --line: #eeede9;
  --accent: #151c13;
  --accent-soft: #edf3ed;
  --sidebar-width: 299px;
  --font: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  --text-xs: .75rem;
  --text-sm: .8125rem;
  --text-base: .875rem;
  --text-md: 1rem;
  --text-lg: 1.125rem;
  --text-xl: 1.5rem;
  --text-display: 2.5rem;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--paper); font: var(--text-base)/1.6 var(--font); letter-spacing: 0; }
button, select, textarea, input { font: inherit; color: inherit; }
button, select { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button { border: 0; background: none; }
button:disabled { cursor: default; opacity: .4; }
button:focus-visible, select:focus-visible, textarea:focus-visible, input:focus-visible, a:focus-visible, [tabindex]:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
button, a { touch-action: manipulation; }
img { display: block; max-width: 100%; }
[hidden] { display: none !important; }
h1, h2, h3, p { margin: 0; }
button img { width: 17px; height: 17px; flex-shrink: 0; object-fit: contain; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
.workspace { display: grid; grid-template-columns: var(--sidebar-width) minmax(0, 1fr); height: 100vh; height: 100dvh; min-height: 460px; overflow: hidden; }
.icon-button { width: 36px; height: 36px; padding: 10px; display: inline-flex; align-items: center; justify-content: center; border-radius: 6px; flex-shrink: 0; transition: background .15s; }
.icon-button:hover { background: #ecece7; }
.icon-button:active, .workspace-header .icon-button.is-pressed { background: #e3e5dd; }
.workspace-header .icon-button.is-pressed img { transform: scale(.9); }
.icon-button img { width: 16px; height: 16px; opacity: .75; }
.sidebar-toolbar .icon-button img, .workspace-header .header-actions .icon-button img { width: 12.8px; height: 12.8px; }
.sidebar { background: var(--sidebar); border-inline-end: 1px solid #f0efec; display: flex; flex-direction: column; min-width: 0; min-height: 0; padding: 7px 8px 12px; z-index: 12; }
.sidebar-toolbar { height: 39px; display: flex; align-items: center; justify-content: flex-start; gap: 8px; padding-inline: 5px; }
.primary-nav { display: flex; flex-direction: column; gap: 2px; padding-top: 8px; }
.nav-item { display: flex; align-items: center; width: 100%; text-align: start; min-height: 38px; padding: 8px 15px; gap: 16px; border-radius: 8px; font-weight: 500; }
.nav-item:hover, .recent-item:hover, .project-item:hover { background: #eeede8; }
.sidebar [data-action="feedback"] { transition: background-color .15s, box-shadow .15s; }
.sidebar [data-action="feedback"]:active, .sidebar [data-action="feedback"].is-pressed { background: #e3e5dd; box-shadow: inset 0 0 0 1px #151c1310; }
.nav-count { margin-inline-start: auto; color: var(--muted); font-size: var(--text-xs); font-weight: 400; }
.sidebar-content { flex: 1; min-height: 0; overflow-y: auto; padding: 28px 1px 16px; }
.sidebar-section-label { display: flex; gap: 5px; align-items: center; color: #8d9089; font-size: var(--text-sm); padding: 8px 8px; }
.sidebar-section-label img { width: 11px; height: 11px; opacity: .6; }
.recent-label { margin-top: 14px; }
.project-item { display: flex; align-items: center; gap: 8px; width: 100%; padding: 9px 8px; border-radius: 6px; font-size: var(--text-sm); text-align: start; color: #595e55; }
.project-item img { width: 15px; height: 15px; opacity: .6; }
.recent-item { display: flex; align-items: center; width: 100%; min-height: 36px; gap: 9px; padding: 8px 9px; border-radius: 6px; font-size: var(--text-sm); text-align: start; color: #62675f; }
.recent-item.selected { background: #eeede8; color: var(--ink); }
.recent-item span:last-child { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.task-dot { background: #7b9075; width: 5px; height: 5px; flex-shrink: 0; border-radius: 50%; }
.task-dot.muted { background: #bdbeb7; }
.profile { display: flex; align-items: center; gap: 9px; text-align: start; padding: 6px 9px; min-height: 48px; border-radius: 8px; }
.profile .avatar { width: 29px; height: 29px; flex-shrink: 0; border: 1px solid #d5d8ce; border-radius: 50%; object-fit: cover; }
.profile strong { font-size: var(--text-sm); font-weight: 500; display: block; }
.profile small { font-size: .625rem; color: var(--muted); display: block; }
.main-workspace { display: flex; flex-direction: column; min-width: 0; min-height: 0; position: relative; }
.workspace-header { height: 52px; min-height: 52px; display: flex; align-items: center; gap: 4px; padding: 6px 17px; z-index: 5; background: var(--paper); }
/* Window controls stay grouped at the physical right edge in RTL. */
[dir="rtl"] .workspace-header > .header-actions { order: -1; }
.header-title { font-size: var(--text-sm); color: #6c7167; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; opacity: 0; transition: opacity .2s; }
.is-active .header-title { opacity: 1; }
.header-actions { margin-left: auto; display: flex; direction: ltr; gap: 4px; align-items: center; }
.model-status { display: flex; align-items: center; gap: 6px; font-size: .6875rem; color: #8e9388; white-space: nowrap; }
.model-status > span:first-child { width: 4px; height: 4px; border-radius: 50%; background: #8ca77b; }
.chat-viewport { min-height: 0; flex: 1; overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #dedfd9 transparent; }
.welcome { display: flex; flex-direction: column; align-items: center; justify-content: flex-end; padding: 0 20px; min-height: 0; height: 100%; }
.welcome-art { width: min(527px, 100%); height: 230px; position: relative; flex-shrink: 0; }
.coordinates { position: absolute; width: 100%; height: 100%; object-fit: fill; }
.coordinate-left { position: absolute; left: 14.87%; top: 64%; width: 14.73%; }
.coordinate-right { position: absolute; left: 80.11%; top: 41%; width: 14.78%; }
/* Physical SVG coordinates stay the same in RTL. Center on the dashed box,
   not the viewBox midpoint; object-fit: fill scales each axis independently. */
.welcome-logo { position: absolute; width: 50px; height: 50px; left: calc(100% * 272.65 / 527); top: calc(100% * 149.353 / 298.731); transform: translate(-50%, -50%); }
.welcome h1 { font-size: var(--text-lg); font-weight: 600; line-height: 1.6; text-align: center; margin-top: -26px; position: relative; }
.composer-position { width: min(100% - 80px, 712px); margin: 27px auto 0; padding-bottom: max(24px, calc((100vh - 530px) * .66)); padding-bottom: max(24px, calc((100dvh - 530px) * .66)); position: relative; flex-shrink: 0; }
.composer { background: var(--paper); position: relative; border: 1px solid #f0f0ec; border-radius: 20px; padding: 8px; box-shadow: 0 2px 3px #00000003, 0 7px 15px #0000000c; z-index: 2; transition: border .2s, box-shadow .2s; }
.composer:focus-within { border-color: #c8d2c2; box-shadow: 0 2px 3px #00000003, 0 7px 15px #0000000a; }
.composer textarea { width: 100%; resize: none; border: 0; background: transparent; padding: 5px; font-size: var(--text-base); line-height: 1.6; min-height: 51px; max-height: 142px; display: block; outline: none; }
.prompt-field { position: relative; overflow: hidden; }
/* Measurement only: never duplicate the readable text or intercept editing. */
.prompt-mirror { position: absolute; top: 0; left: 0; visibility: hidden; pointer-events: none; }
.prompt-caret { position: absolute; width: 1px; background: currentColor; pointer-events: none; }
@media (prefers-reduced-motion: no-preference) {
  .prompt-caret { animation: prompt-caret-blink 1s step-end infinite; }
}
@keyframes prompt-caret-blink { 50% { opacity: 0; } }
@media (prefers-reduced-motion: reduce) { .prompt-caret { display: none; } }
.composer textarea::placeholder { color: #858b80; opacity: 1; }
.composer textarea:focus-visible { outline: none; }
.composer-toolbar { display: flex; align-items: center; justify-content: space-between; gap: 4px; padding: 1px 3px; }
.composer-left, .composer-right { display: flex; align-items: center; gap: 5px; min-width: 0; }
.composer .icon-button { width: 30px; height: 30px; padding: 6px; }
.permission-control { display: flex; align-items: center; gap: 4px; cursor: pointer; border-radius: 6px; touch-action: manipulation; -webkit-tap-highlight-color: transparent; }
/* Preserve native select geometry/arrow while making the entire entry feedback-only. */
.permission-control select { pointer-events: none; }
.permission-control:hover { background: #ecece7; }
.composer-left [data-action="feedback"]:active, .composer-left [data-action="feedback"].is-pressed { background: #e3e5dd; }
.permission-control img { width: 14px; height: 14px; }
.permission-control select { height: 32px; max-width: 110px; border: 0; background: transparent; font-size: var(--text-xs); cursor: pointer; }
.model-picker { display: flex; align-items: center; justify-content: center; gap: 4px; min-height: 32px; padding: 5px 6px; border-radius: 6px; font-size: var(--text-xs); }
.model-picker:hover { background: #f5f5f1; }
.model-picker img { width: 11px; height: 11px; }
.composer .send-button { background: #192b1b; border-radius: 50%; margin-inline-start: 3px; }
.send-button:hover { background: #3d5139; }
.send-button:disabled { background: #bbbbb6; opacity: 1; }
.send-button img { opacity: 1; filter: brightness(0) invert(1); width: 17px; height: 17px; }
.project-context { width: 100%; height: 47px; border-radius: 0 0 20px 20px; background: var(--sidebar); display: flex; align-items: center; gap: 7px; padding: 8px 26px 2px; margin-top: -6px; color: #81867a; font-size: var(--text-sm); text-align: start; }
.project-context img { width: 13px; height: 13px; opacity: .5; }
.project-context .context-chevron { width: 11px; }
.suggestions { display: flex; justify-content: center; flex-wrap: wrap; gap: 8px 24px; margin-top: 25px; }
.suggestions button { display: flex; align-items: center; gap: 8px; font-size: var(--text-xs); color: #95998e; padding: 5px 0; text-align: start; }
.suggestions button:hover { color: #4c6745; }
.suggestions img { width: 12px; height: 12px; opacity: .4; }
.is-active .composer-position { width: min(100% - 56px, 712px); margin-top: 10px; padding-bottom: max(14px, env(safe-area-inset-bottom)); }
.is-active .composer { box-shadow: 0 2px 9px #00000006; border-color: #e8e9e2; border-radius: 16px; }
.is-active .project-context, .is-active .suggestions { display: none; }
.composer-footnote { display: flex; justify-content: space-between; gap: 8px; margin-top: 9px; padding-inline: 5px; color: #a1a597; font-size: .625rem; }
.conversation { max-width: 768px; margin: 0 auto; padding: 34px 28px 20px; }
.user-message { background: #f4f4ef; border-radius: 12px; padding: 14px 18px; line-height: 1.85; max-width: 94%; margin-inline-start: auto; margin-bottom: 29px; font-size: var(--text-base); overflow-wrap: anywhere; white-space: pre-wrap; }
.assistant-header { display: flex; gap: 9px; align-items: center; margin-bottom: 16px; }
.assistant-header img { width: 28px; height: 28px; }
.assistant-header strong { font-size: var(--text-sm); font-weight: 600; }
.assistant-header small { color: #9da292; font-size: .625rem; }
.assistant-text { line-height: 1.9; font-size: var(--text-base); color: #464d3f; margin-bottom: 18px; overflow-wrap: anywhere; }
.phase-list { display: flex; flex-direction: column; gap: 10px; margin-bottom: 22px; }
.phase { border: 1px solid #e9ebe3; border-radius: 8px; background: #fbfcf9; overflow: hidden; }
.phase-toggle { display: flex; align-items: center; gap: 10px; text-align: start; width: 100%; min-height: 47px; padding: 10px 12px; }
.phase-toggle:hover { background: #f2f5ee; }
.phase-icon { width: 25px; height: 25px; background: #eaf0e3; border-radius: 6px; padding: 5px; flex-shrink: 0; }
.phase-icon img { width: 15px; height: 15px; opacity: .7; }
.phase-title { min-width: 0; flex: 1; }
.phase-title strong { display: block; font-weight: 500; font-size: var(--text-sm); }
.phase-title small { display: block; color: #8e9584; font-size: .6875rem; }
.phase-state { font-size: .6875rem; color: #819372; display: inline-flex; flex-shrink: 0; }
.phase-state img { width: 14px; height: 14px; opacity: .5; }
.phase-arrow { width: 11px; height: 11px; opacity: .4; transition: transform .2s; }
.phase-toggle[aria-expanded="true"] .phase-arrow { transform: rotate(180deg); }
.phase-detail { border-top: 1px solid #e9ebe3; padding: 13px 15px; font-size: var(--text-xs); color: #7b856e; }
.phase-detail p { line-height: 1.85; margin-bottom: 10px; }
.query-list { display: flex; flex-wrap: wrap; gap: 5px; }
.query-list span { border-radius: 4px; padding: 3px 7px; background: #eff2e9; font-size: .6875rem; overflow-wrap: anywhere; }
.typing-indicator { display: inline-flex; gap: 4px; padding: 8px 0; }
.typing-indicator i { width: 4px; height: 4px; border-radius: 50%; background: #9da68f; animation: pulse 1s ease-in-out infinite; }
.typing-indicator i:nth-child(2) { animation-delay: .2s; }
.typing-indicator i:nth-child(3) { animation-delay: .4s; }
.report-intro h2 { font-size: var(--text-md); margin: 20px 0 9px; font-weight: 600; }
.report-intro p { color: #646c5a; font-size: var(--text-sm); line-height: 1.9; margin-bottom: 16px; }
.finding-list { list-style: none; margin: 0 0 24px; padding: 0; display: flex; flex-direction: column; gap: 11px; }
.finding-list li { display: flex; gap: 12px; font-size: var(--text-sm); }
.finding-list li > span { color: #91a280; font-size: .6875rem; line-height: 2; font-variant-numeric: tabular-nums; }
.finding-list strong { font-weight: 500; }
.finding-list p { color: #838b78; line-height: 1.7; margin-top: 2px; font-size: var(--text-xs); }
.artifact-card { border: 1px solid #e4e8db; border-radius: 8px; padding: 0; width: 100%; display: flex; align-items: center; background: white; overflow: hidden; text-align: start; transition: border .2s, box-shadow .2s; }
.artifact-card:hover { border-color: #a6b898; box-shadow: 0 4px 12px #20351509; }
.artifact-card[data-action="feedback"]:active, .artifact-card[data-action="feedback"].is-pressed { background: #e3e5dd; box-shadow: inset 0 0 0 1px #151c1310; }
.artifact-cover { width: 88px; height: 110px; background: #080b0b; flex-shrink: 0; overflow: hidden; position: relative; }
.artifact-cover > img { width: 100%; height: 100%; object-fit: cover; }
.artifact-cover span { position: absolute; top: 8px; left: 8px; font-size: .4375rem; color: white; }
.artifact-copy { padding: 14px; flex: 1; min-width: 0; }
.artifact-copy strong { display: block; font-size: var(--text-sm); font-weight: 500; margin-bottom: 5px; }
.artifact-copy small { display: block; color: #949b88; font-size: .6875rem; }
.artifact-copy em { display: inline-flex; align-items: center; gap: 5px; font-style: normal; color: #638052; font-size: .6875rem; margin-top: 10px; }
.artifact-copy em img { width: 11px; height: 11px; opacity: .6; }
.artifact-card > img { width: 14px; height: 14px; margin-inline-end: 18px; opacity: .35; }
.response-actions { display: flex; align-items: center; gap: 3px; margin: 12px 0; }
.response-actions .icon-button img { width: 14px; height: 14px; opacity: .4; }
.response-actions > span { margin-inline-start: auto; font-size: .6875rem; color: #979e8c; }
.followup-prompt { display: flex; gap: 6px; align-items: center; color: #869178; font-size: var(--text-xs); padding: 4px 0; text-align: start; }
.followup-prompt img { width: 12px; height: 12px; opacity: .45; }
.reveal { animation: reveal .18s cubic-bezier(.16, 1, .3, 1) both; }
.attachment-list { display: flex; flex-wrap: wrap; gap: 5px; padding: 2px 4px 5px; }
.attachment-item { display: inline-flex; align-items: center; gap: 5px; padding: 4px 7px; max-width: 100%; font-size: .6875rem; background: #f2f4ed; border-radius: 4px; }
.attachment-item > span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 190px; }
.attachment-item button { display: inline-flex; align-items: center; justify-content: center; width: 24px; height: 24px; padding: 4px; }
.attachment-item button img { width: 12px; height: 12px; }
.jump-bottom { position: absolute; bottom: 172px; inset-inline-end: 30px; border: 1px solid var(--line); border-radius: 50%; background: white; box-shadow: 0 2px 8px #0000000a; z-index: 5; }
.workspace.has-report { --sidebar-width: 232px; grid-template-columns: var(--sidebar-width) minmax(330px, 1fr) minmax(400px, 46%); }
.has-report .model-status { display: none; }
.has-report .conversation { padding: 26px 24px 20px; }
.has-report .composer-position { width: calc(100% - 36px); }
.has-report .permission-control select { max-width: 90px; }
.report-panel { min-width: 0; min-height: 0; display: flex; flex-direction: column; border-inline-start: 1px solid #e6e8e0; background: #fafbf7; animation: panel-in .32s cubic-bezier(.16,1,.3,1); }
.report-toolbar { height: 52px; min-height: 52px; padding: 8px 16px; display: flex; align-items: center; justify-content: space-between; background: white; border-bottom: 1px solid #e9ebe3; font-size: var(--text-xs); color: #6f7863; }
.report-toolbar > div { display: flex; gap: 7px; align-items: center; }
.report-toolbar > div > img { width: 15px; height: 15px; opacity: .55; }
.report-scroll { overflow-y: auto; overscroll-behavior: contain; scrollbar-width: thin; scrollbar-color: #d9dfcd transparent; padding: 22px; flex: 1; }
.report-document { max-width: 820px; margin: 0 auto; background: white; box-shadow: 0 2px 20px #132b1407; }
.report-cover { width: 100%; min-width: 0; max-width: 100%; aspect-ratio: 1.12; min-height: 380px; position: relative; background: #000; color: #fff; overflow: hidden; }
.report-cover > img { width: 100%; height: 100%; position: absolute; object-fit: cover; object-position: 50% 65%; }
.cover-content { position: relative; display: flex; flex-direction: column; padding: 27px 30px; height: 100%; min-height: inherit; }
.cover-eyebrow { display: flex; justify-content: space-between; align-items: center; gap: 10px; font-size: .5625rem; color: #c6cec7; }
.cover-wordmark { font-size: var(--text-md); color: white; font-weight: 500; }
.cover-title { margin-top: 31px; font-size: var(--text-display); line-height: 1.28; font-weight: 500; }
.cover-subtitle { margin-top: 13px; max-width: 320px; font-size: var(--text-xs); color: #c9d2ce; line-height: 1.8; }
.cover-bottom { margin-top: auto; padding-top: 120px; display: flex; gap: 10px; justify-content: space-between; align-items: flex-end; font-size: .5rem; color: #f2f3f1; }
.report-body { padding: 30px; }
.report-kicker { color: #95a087; font-size: .625rem; margin-bottom: 13px; }
.report-lede { font-size: var(--text-sm); color: #596450; line-height: 2; }
.report-index { margin: 27px 0 35px; border-top: 1px solid #e5e9dd; }
.report-index a { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1px solid #e5e9dd; font-size: var(--text-xs); text-decoration: none; color: #4b6041; }
.report-index a:hover { color: #131f0c; }
.report-index a > span { font-size: .625rem; color: #a1b08f; }
.report-index a > img { width: 12px; height: 12px; margin-inline-start: auto; opacity: .4; }
.report-chapter { scroll-margin-top: 24px; margin-bottom: 37px; }
.chapter-number { font-size: .625rem; color: #a1ae94; }
.report-chapter h2 { font-size: var(--text-lg); font-weight: 600; color: #25351d; margin: 6px 0 16px; }
.report-chapter p { font-size: var(--text-xs); line-height: 2.05; color: #6f7864; margin-bottom: 13px; }
.report-chapter blockquote { margin: 20px 0 25px; border-inline-start: 2px solid #a4b095; padding: 1px 0 1px 16px; font-size: var(--text-base); line-height: 1.95; color: #44573a; }
.horizon { border-top: 1px solid #dce3d3; padding: 17px 0; display: grid; grid-template-columns: 58px minmax(0, 1fr); gap: 12px; }
.horizon > span { color: #8c9b7e; font-size: var(--text-sm); font-variant-numeric: tabular-nums; }
.horizon h3 { font-size: var(--text-xs); font-weight: 500; margin-bottom: 4px; }
.horizon p { font-size: .6875rem; line-height: 1.9; color: #839078; }
.report-conclusion { margin-top: 25px; padding-top: 24px; border-top: 1px solid #e1e6d9; font-size: var(--text-sm); line-height: 2; color: #4e6541; }
.report-colophon { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 10px; margin-top: 30px; color: #a5ae9c; font-size: .5rem; }
.sidebar-collapsed:not(.has-report) { grid-template-columns: 0 minmax(0,1fr); }
.sidebar-collapsed .sidebar { visibility: hidden; padding: 0; overflow: hidden; }
.sidebar-collapsed.has-report { grid-template-columns: 0 minmax(330px,1fr) minmax(400px,50%); }
.dialog { padding: 24px; width: min(480px, calc(100% - 32px)); max-height: calc(100dvh - 48px); overflow-y: auto; border: 1px solid #e8eae0; border-radius: 12px; box-shadow: 0 22px 90px #19231520; color: var(--ink); }
.dialog::backdrop { background: #222b2330; backdrop-filter: blur(3px); }
.dialog > header { display: flex; align-items: center; justify-content: space-between; margin-bottom: 18px; gap: 12px; }
.dialog h2 { font-size: var(--text-md); font-weight: 600; }
.dialog p { color: #89917f; font-size: var(--text-sm); line-height: 1.85; }
.dialog-row { display: flex; align-items: center; gap: 12px; padding: 16px 0; border-bottom: 1px solid #eef0e6; }
.dialog-row:last-child { border-bottom: 0; }
.dialog-row > img { width: 21px; height: 21px; opacity: .6; flex-shrink: 0; }
.dialog-row > div { flex: 1; min-width: 0; }
.dialog-row h3 { font-size: var(--text-sm); font-weight: 500; margin-bottom: 3px; }
.dialog-row p { font-size: var(--text-xs); }
.dialog-row small { color: #779364; font-size: .625rem; }
.dialog-row input[type="checkbox"] { width: 18px; height: 18px; accent-color: #577447; }
.dialog-search { width: 100%; border: 1px solid #dfe5d6; background: #fafcf7; border-radius: 6px; padding: 10px 12px; margin-bottom: 12px; }
.dialog-task { display: block; width: 100%; padding: 13px 10px; text-align: start; border-radius: 6px; font-size: var(--text-sm); }
.dialog-task:hover { background: #f1f4eb; }
.dialog .primary-button { display: flex; width: fit-content; max-width: 100%; margin-inline-start: auto; align-items: center; justify-content: center; gap: 7px; padding: 10px 15px; background: var(--ink); color: white; border-radius: 6px; margin-top: 16px; font-size: var(--text-sm); }
.dialog .primary-button img { filter: brightness(0) invert(1); width: 14px; height: 14px; }
.toast { position: fixed; left: 50%; bottom: 28px; transform: translateX(-50%); z-index: 40; padding: 11px 18px; width: max-content; max-width: calc(100% - 32px); font-size: var(--text-xs); line-height: 1.7; border-radius: 8px; color: white; background: #263c20; box-shadow: 0 4px 20px #00000015; pointer-events: none; }
@keyframes reveal { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: translateY(0); } }
@keyframes panel-in { from { opacity: 0; transform: translateX(15px); } to { opacity: 1; transform: translateX(0); } }
@keyframes pulse { 50% { opacity: .3; } }
@media (width >= 1600px) { .workspace.has-report { grid-template-columns: 260px minmax(420px,1fr) minmax(580px,44%); } .report-scroll { padding: 30px; } .report-cover { aspect-ratio: 1.15; } }
@media (width <= 1200px) { .workspace.has-report { --sidebar-width: 200px; grid-template-columns: var(--sidebar-width) minmax(310px,1fr) minmax(360px,44%); } .has-report .composer-toolbar { flex-wrap: wrap; } .has-report .composer-right { margin-inline-start: auto; } .has-report .conversation { padding-inline: 20px; } .report-scroll { padding: 14px; } .cover-content, .report-body { padding: 24px; } .cover-title { font-size: 2rem; } }
@media (width <= 1050px) { :root { --sidebar-width: 240px; } .workspace.has-report { --sidebar-width: 0px; grid-template-columns: 0 minmax(310px,1fr) minmax(360px,49%); } .has-report .sidebar { visibility: hidden; overflow: hidden; padding: 0; } }
@media (width <= 900px) { .workspace { --sidebar-width: 220px; } .composer-position { width: calc(100% - 48px); } .workspace.has-report { grid-template-columns: var(--sidebar-width) minmax(0,1fr); } .report-panel { position: fixed; z-index: 20; inset: 0; border: 0; } .report-scroll { padding: 20px; } .report-cover { min-height: 460px; aspect-ratio: 1.25; } .cover-title { font-size: var(--text-display); } .report-body { padding: 35px; } .cover-content { padding: 35px; } .cover-bottom { padding-top: 140px; } .has-report .sidebar { visibility: visible; padding: 7px 8px 12px; } .model-status { display: none; } }
@media (width <= 700px) {
  .workspace, .workspace.has-report, .sidebar-collapsed.has-report { grid-template-columns: minmax(0,1fr); min-height: 360px; }
  .sidebar { position: fixed; width: min(299px, calc(100% - 48px)); inset: 0 auto 0 0; transform: translateX(-100%); transition: transform .2s; visibility: hidden; }
  .workspace.mobile-sidebar-open .sidebar { transform: translateX(0); visibility: visible; padding: 7px 8px 12px; }
  .sidebar-scrim { position: fixed; inset: 0; background: #17261733; z-index: 11; }
  .sidebar-collapsed:not(.has-report) { grid-template-columns: minmax(0,1fr); }
  .workspace-header { padding: 5px 13px; min-height: 56px; height: 56px; }
  .icon-button { width: 44px; height: 44px; padding: 13px; }
  .nav-item { min-height: 44px; }
  .recent-item, .project-item { min-height: 44px; }
  .header-title { font-size: var(--text-xs); }
  .welcome { padding-inline: 18px; }
  .welcome-art { height: 205px; }
  .welcome h1 { font-size: var(--text-lg); }
  .composer-position { width: calc(100% - 32px); margin-top: 26px; padding-bottom: max(32px, calc((100dvh - 530px) * .66)); }
  .composer { padding: 8px; border-radius: 18px; }
  .composer-toolbar { flex-wrap: wrap; }
  .composer .icon-button { width: 38px; height: 44px; padding: 10px; }
  .composer .send-button { width: 36px; height: 36px; margin-block: 4px; }
  .permission-control select { height: 44px; max-width: 88px; }
  .permission-control > img { display: none; }
  .model-picker { min-height: 44px; padding-inline: 2px; }
  .composer textarea { min-height: 68px; font-size: 1rem; padding: 6px; }
  .composer-right { margin-inline-start: auto; }
  .composer-left, .composer-right { gap: 1px; }
  .suggestions { gap: 4px 14px; margin-top: 18px; }
  .suggestions button { min-height: 44px; font-size: .6875rem; gap: 4px; }
  .project-context { padding-inline: 19px; }
  .conversation, .has-report .conversation { padding: 20px 18px; }
  .user-message { font-size: var(--text-sm); }
  .assistant-text { font-size: var(--text-sm); }
  .is-active .composer-position, .has-report .composer-position { width: calc(100% - 24px); padding-bottom: max(10px, env(safe-area-inset-bottom)); margin-top: 5px; }
  .is-active .composer textarea { min-height: 47px; height: 47px; }
  .phase-title small { font-size: .625rem; }
  .phase-state { font-size: .625rem; }
  .report-toolbar { height: 56px; min-height: 56px; padding: 5px 12px; }
  .report-scroll { padding: 12px; }
  .report-cover { min-height: 430px; aspect-ratio: .9; }
  .cover-content { padding: 25px; }
  .cover-title { font-size: 2.125rem; margin-top: 35px; }
  .cover-subtitle { font-size: var(--text-xs); max-width: 240px; }
  .cover-bottom { padding-top: 150px; }
  .report-body { padding: 25px; }
  .report-chapter h2 { font-size: var(--text-lg); }
  .report-chapter p { font-size: var(--text-sm); }
  .report-conclusion { font-size: var(--text-sm); }
  .dialog { padding: 20px; }
  .attachment-item button { width: 36px; height: 36px; }
  .followup-prompt { min-height: 44px; }
}
@media (width <= 360px) { .model-picker { font-size: .625rem; } .permission-control select { width: 76px; font-size: .6875rem; } .composer-footnote { font-size: .5625rem; } .welcome h1 { font-size: 1rem; } .cover-title { font-size: 1.875rem; } .cover-content, .report-body { padding: 20px; } }
@media (height <= 650px) { .welcome-art { height: 155px; } .composer-position { padding-bottom: 18px; margin-top: 20px; } .suggestions { margin-top: 10px; } .sidebar-content { padding-top: 14px; } }
/* The visible glyph remains small; mobile and tablet controls have a 44px target. */
@media (width <= 1050px) {
  .icon-button, .composer .icon-button { width: 44px; height: 44px; padding: 13px; }
  .composer .send-button { position: relative; background: transparent; margin-block: 0; }
  .composer .send-button::before { content: ""; position: absolute; inset: 4px; border-radius: 50%; background: #192b1b; }
  .composer .send-button:hover::before { background: #3d5139; }
  .composer .send-button:disabled::before { background: #bbbbb6; }
  .composer .send-button img { position: relative; z-index: 1; }
  .model-picker, .nav-item, .recent-item, .project-item, .followup-prompt, .suggestions button { min-height: 44px; }
  .permission-control select { height: 44px; }
  .attachment-item button { width: 44px; height: 44px; }
  .report-index a { min-height: 44px; }
  .sidebar-toolbar { height: 44px; padding-inline: 1px; }
  .composer-toolbar { flex-wrap: wrap; }
}
/* The iframe is the viewport: never enlarge a short embed into an offscreen canvas. */
html[data-embedded="1"], html[data-embedded="1"] body { height: 100%; overflow: hidden; }
html[data-embedded="1"] .workspace { height: 100%; min-height: 0; }
/* Center the entire welcome group, not just its artwork. Auto margins collapse
   in short viewports so the same group remains reachable by scrolling. */
html[data-embedded="1"] .workspace:not(.is-active) .chat-viewport { display: flex; flex-direction: column; }
/* Native iframe CSS pixels: 186 screenshot pixels / 2.5 = 74.4px.
   Translate both siblings equally from their original centered positions. The
   artwork's transparent top may leave the viewport; its logo stays below the
   toolbar. Taper from zero at 700px to the full lift at the 796px inner
   viewport to protect the logo when narrower composer controls wrap. */
@media (width > 700px) {
  html[data-embedded="1"] .workspace:not(.is-active) .welcome,
  html[data-embedded="1"] .workspace:not(.is-active) .composer-position {
    transform: translateY(clamp(-74.4px, calc(542.5px - 77.5vw), 0px));
  }
}
html[data-embedded="1"] .workspace:not(.is-active) .welcome { height: auto; flex-shrink: 0; margin-top: auto; }
html[data-embedded="1"] .workspace:not(.is-active) .composer-position { padding-bottom: 0; margin-bottom: auto; }
html:not([data-demo-ready="1"]) .workspace { visibility: hidden; }
html[data-demo-paused="true"] *, html[data-demo-paused="true"] *::before, html[data-demo-paused="true"] *::after { animation-play-state: paused !important; }
.model-status > span:last-child { min-width: 0; }
.project-item span, .project-context span, .profile > span, .nav-item > span { min-width: 0; overflow-wrap: anywhere; }
.model-picker span, .phase-title, .report-document, .dialog { overflow-wrap: anywhere; }
.composer-footnote, .response-actions { flex-wrap: wrap; }
.cover-content { height: auto; }
.report-chapter blockquote { padding-inline: 16px 0; }
.artifact-cover span { left: auto; inset-inline-start: 8px; }
@media (width <= 700px) {
  .sidebar { inset: 0; inset-inline-end: auto; }
  [dir="rtl"] .sidebar { transform: translateX(100%); }
  [dir="rtl"] .workspace.mobile-sidebar-open .sidebar { transform: translateX(0); }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }
