:root {
  color-scheme: dark;
  font-family: Inter, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  color: #e9e7e3;
  background: #111110;
  font-synthesis: none;
  --muted: #aaa7a0;
  --line: #343330;
  --accent: #edac7b;
}
* { box-sizing: border-box; }
body { margin: 0; }
button, textarea { font: inherit; }
button, a, textarea { -webkit-tap-highlight-color: transparent; }
button, textarea { border-radius: 0; }
button { cursor: pointer; }
button:disabled { cursor: default; opacity: .45; }
a { color: inherit; }
button:focus-visible, a:focus-visible, textarea:focus-visible, pre:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
#preview { max-width: 1600px; min-height: 100dvh; margin: auto; display: flex; flex-direction: column; padding: 0 32px; }
.topbar { height: 68px; flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.wordmark { font-size: 17px; font-weight: 600; letter-spacing: -.5px; }
.slash { color: #66635f; margin: 0 7px; font-weight: 400; }
.eyebrow { color: var(--muted); font-size: 11px; font-weight: 400; letter-spacing: .08em; text-transform: uppercase; }
.get-link { font-size: 13px; text-decoration: none; padding: 10px 0 10px 12px; white-space: nowrap; }
.get-link span { margin-left: 12px; color: var(--accent); }
.get-link:hover { color: var(--accent); }
.introduction { display: flex; justify-content: space-between; align-items: end; gap: 32px; padding: 30px 0 27px; }
.introduction .eyebrow { margin: 0 0 9px; }
h1 { font-size: clamp(24px, 2.6vw, 35px); line-height: 1.15; letter-spacing: -1.1px; font-weight: 450; margin: 0; }
.intro-copy { max-width: 305px; color: var(--muted); font-size: 13px; line-height: 1.6; margin: 0; }
.view-tabs { display: none; }
.workspace { display: grid; grid-template-columns: minmax(0, 1.5fr) minmax(280px, 1fr); flex: 1; min-height: 510px; border: 1px solid var(--line); background: #171716; }
.chat-pane { min-width: 0; display: flex; flex-direction: column; }
.conversation { padding: 25px clamp(20px, 3vw, 48px); flex: 1; overflow: auto; max-height: 56dvh; min-height: 240px; scrollbar-color: #4b4843 transparent; }
.welcome { max-width: 510px; margin: 22px auto 10px; }
.small-mark { color: var(--accent); font-size: 30px; display: block; margin-bottom: 25px; }
h2 { font-size: 23px; font-weight: 450; line-height: 1.25; letter-spacing: -.65px; margin: 0 0 12px; }
.welcome p { color: var(--muted); font-size: 14px; line-height: 1.75; margin: 0; }
.suggestions { display: grid; margin-top: 25px; }
.suggestions button { background: transparent; color: #d0cec9; border: 0; border-bottom: 1px solid var(--line); padding: 13px 0; text-align: left; font-size: 13px; display: flex; justify-content: space-between; gap: 15px; }
.suggestions button:hover { color: var(--accent); }
.suggestions span { color: #8e8a83; }
.message { padding: 15px 0 20px; border-bottom: 1px solid #292825; }
.message:last-child { border: 0; }
.message-label { color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; margin: 0 0 11px; }
.message.user .message-label { color: var(--muted); }
.message-text { font-size: 14px; line-height: 1.75; white-space: pre-wrap; overflow-wrap: anywhere; margin: 0; }
.composer-area { padding: 18px clamp(16px, 2.6vw, 34px) 18px; margin-top: auto; }
.composer { border: 1px solid #56514a; background: #1e1d1b; }
.composer:focus-within { border-color: #b48461; }
textarea { resize: vertical; width: 100%; min-height: 90px; max-height: 220px; border: 0; background: transparent; color: #f2eee7; padding: 16px; font-size: 15px; line-height: 1.5; display: block; }
textarea:focus-visible { outline: none; }
textarea::placeholder { color: #97928a; }
.composer-footer { padding: 0 10px 10px 16px; display: flex; align-items: center; justify-content: space-between; gap: 12px; font-size: 11px; color: #c7c2ba; }
#send { padding: 9px 13px; color: #17130f; background: var(--accent); border: 1px solid var(--accent); font-size: 12px; min-width: 78px; }
#send span { margin-left: 10px; }
.help { font-size: 11px; line-height: 1.5; color: var(--muted); margin: 10px 0 0; }
.help + .help { margin-top: 3px; }
.subtle { color: #99948c; }
.notice { font-size: 13px; line-height: 1.6; padding: 12px 14px; margin-bottom: 12px; border-left: 2px solid var(--accent); background: #24211d; color: #e2d3c5; overflow-wrap: anywhere; }
.notice a { display: inline-block; color: var(--accent); margin-top: 5px; }
.retry { border: 1px solid var(--line); background: #242320; color: #e2d3c5; padding: 8px 12px; margin-bottom: 12px; font-size: 12px; }
.files-pane { min-width: 0; border-left: 1px solid var(--line); display: flex; flex-direction: column; background: #141413; }
.pane-heading { padding: 21px 23px; display: flex; align-items: center; justify-content: space-between; gap: 12px; border-bottom: 1px solid var(--line); }
.pane-heading h2 { font-size: 14px; letter-spacing: 0; margin: 0; }
.file-list { display: flex; flex-wrap: wrap; gap: 6px; padding: 0 18px; }
.file-list:not(:empty) { padding-top: 16px; padding-bottom: 12px; }
.file-list button { background: #20201e; border: 1px solid var(--line); color: #c9c5bd; padding: 8px 10px; font-size: 12px; text-align: left; overflow-wrap: anywhere; max-width: 100%; }
.file-list button[aria-pressed="true"] { color: var(--accent); border-color: #79604b; }
.files-empty { padding: 50px 26px; margin: auto 0; }
.files-empty > span { color: #6f6960; font-size: 30px; }
.files-empty h3 { font-size: 17px; line-height: 1.5; font-weight: 400; margin-top: 18px; }
.files-empty p { font-size: 13px; color: var(--muted); max-width: 260px; line-height: 1.7; }
.file-detail { display: flex; min-height: 240px; flex-direction: column; flex: 1; min-width: 0; }
.file-toolbar { padding: 10px 18px; display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.file-toolbar h3 { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; overflow-wrap: anywhere; min-width: 0; margin: 0; font-weight: 400; }
#download { color: var(--accent); background: none; border: 1px solid var(--line); padding: 8px 10px; font-size: 11px; white-space: nowrap; }
.file-note { font-size: 11px; line-height: 1.5; padding: 0 18px; color: var(--muted); margin: 0 0 12px; }
pre { font-family: ui-monospace, SFMono-Regular, Consolas, monospace; font-size: 12px; line-height: 1.65; white-space: pre-wrap; overflow-wrap: anywhere; overflow: auto; color: #c4c1b9; padding: 18px; margin: 0; max-height: 65dvh; border-top: 1px solid #292825; tab-size: 2; }
.files-footnote { color: #99948c; font-size: 11px; line-height: 1.7; padding: 16px 23px; margin: auto 0 0; }
.scope { font-size: 11px; line-height: 1.7; color: var(--muted); padding: 17px 0; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; border: 0; }
@media (min-width: 1500px) { #preview { padding-inline: 48px; } }
@media (max-width: 700px) {
  #preview { padding: 0 16px; }
  .topbar { height: 57px; }
  .wordmark { font-size: 15px; }
  .wordmark .eyebrow, .slash { display: none; }
  .get-link { font-size: 12px; }
  .introduction { display: block; padding: 25px 0 20px; }
  .introduction .eyebrow { font-size: 10px; }
  .intro-copy { max-width: 100%; font-size: 12px; margin-top: 12px; }
  .view-tabs { display: flex; border: 1px solid var(--line); border-bottom: 0; }
  .view-tabs button { background: none; border: 0; color: var(--muted); font-size: 12px; padding: 13px 19px; border-right: 1px solid var(--line); }
  .view-tabs button[aria-pressed="true"] { color: var(--accent); background: #201e1b; }
  #file-count { margin-left: 6px; color: var(--muted); }
  .workspace { display: block; min-height: 480px; }
  #preview[data-view="chat"] .files-pane, #preview[data-view="files"] .chat-pane { display: none; }
  .chat-pane { min-height: 480px; }
  .conversation { padding: 22px 18px; max-height: 55dvh; min-height: 200px; }
  .welcome { margin-top: 4px; }
  .small-mark { margin-bottom: 18px; }
  h2 { font-size: 21px; }
  .welcome p { font-size: 13px; }
  .suggestions { margin-top: 16px; }
  .composer-area { padding: 14px 12px; }
  .composer-footer .subtle { display: none; }
  textarea { font-size: 16px; }
  .files-pane { border-left: 0; min-height: 480px; }
  .scope { font-size: 10px; padding: 13px 0; }
}
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { scroll-behavior: auto !important; } }
