/* The original Eno layout: a portrait card, a quiet toolbar, and a dark reading pane. */
:root { color-scheme: light; font-family: system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif; color: #212529; background: #9b68c4; --pink: #fa69ff; --ink: #1d1f23; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: linear-gradient(115deg, #7857c3, #df8acb); }
button, textarea, input { font: inherit; }
button, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; transition: background .15s, color .15s; }
button:disabled { opacity: .4; cursor: default; }
button, a, textarea { outline-offset: 3px; }
:focus-visible { outline: 3px solid #ce5fdb; }
a { color: inherit; text-underline-offset: 3px; }
button svg { width: 18px; height: 18px; fill: none; stroke: currentColor; stroke-width: 1.6; stroke-linecap: round; stroke-linejoin: round; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0, 0, 0, 0); white-space: nowrap; border: 0; }
#ambient-canvas { position: fixed; inset: 0; width: 100%; height: 100%; z-index: 0; }
.app-shell { width: min(1140px, calc(100% - 48px)); margin: 0 auto; padding: 48px 0 24px; position: relative; pointer-events: none; }
.app-shell > * { pointer-events: auto; }
.site-header { position: absolute; top: 7px; right: 0; display: flex; align-items: center; gap: 10px; }
.sound-button, .listen-button { display: inline-flex; align-items: center; gap: 6px; border: 0; border-radius: 5px; padding: 6px 9px; background: #2515381c; color: #fff; font-size: 12px; white-space: nowrap; }
.sound-button:hover, .listen-button:hover { background: #25153838; }
.sound-button[aria-pressed="true"] { background: #ffffffdc; color: #49335b; }
.ambient-help { display: none; position: fixed; top: 38vh; left: 0; width: 100%; text-align: center; pointer-events: none; }
.ambient-help p { font-size: clamp(38px, 5vw, 65px); font-weight: 350; line-height: 1.2; margin: 0 0 25px; color: #fff; }
.ambient-help em { font-family: Georgia, serif; font-weight: 400; }
.ambient-help > span { font-size: 13px; color: #fff; }
.ambient-mode .workspace, .ambient-mode .status { display: none; }
.ambient-mode .ambient-help { display: block; pointer-events: none; }
.ambient-mode .app-shell { padding-bottom: 0; }
.workspace { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 2fr); gap: 24px; align-items: start; }
.sidebar { min-width: 0; background: #fff; border: 1px solid #e2e2e2; border-radius: 12px; box-shadow: 0 4px 8px #00000012; overflow: hidden; }
.question-card { padding: 20px 20px 10px; color: #212529; }
#question-form { display: flex; align-items: flex-start; }
textarea { display: block; flex: 1; width: 100%; min-width: 0; height: 40px; min-height: 40px; max-height: 180px; resize: vertical; border: 1px solid #ced4da; border-radius: 5px 0 0 5px; background: #fff; color: #212529; padding: 8px 10px; font-size: 16px; line-height: 22px; }
textarea::placeholder { color: #6c757d; }
textarea:focus { outline: none; border-color: #ca8dd5; box-shadow: 0 0 0 3px #ce5fdb26; position: relative; }
textarea:focus:not(:placeholder-shown) { min-height: 70px; }
.composer-footer { display: flex; flex-shrink: 0; }
.primary-button { display: inline-flex; align-items: center; justify-content: center; gap: 8px; padding: 10px 16px; border: 1px solid #212529; border-radius: 5px; background: #212529; color: #fff; font-size: 14px; line-height: 20px; }
.primary-button:hover { background: #424649; }
.composer-footer .primary-button { min-width: 44px; height: 40px; border-radius: 0 5px 5px 0; padding: 9px 12px; }
#stop-button { font-size: 12px; }
.portrait-card { margin: 0; padding: 0 10px 10px; }
.portrait-card img { display: block; width: 100%; height: auto; aspect-ratio: 1; object-fit: cover; border-radius: 7px; }
.strategy-button { width: 100%; display: flex; justify-content: center; align-items: center; gap: 12px; border: 0; border-top: 1px solid #f0f0f0; border-radius: 0 0 11px 11px; background: #f8f9fa; color: #212529; padding: 13px 8px; font-size: 15px; }
.strategy-button:hover { background: #e9ecef; }
.strategy-button > span { color: var(--pink); font-size: 25px; line-height: 1; font-weight: 700; }
.conversation { min-width: 0; padding: 15px; border: 1px solid #e2e2e2; border-radius: 15px; background: #fff; box-shadow: 0 4px 8px #0000001a; }
.conversation-toolbar { display: flex; justify-content: space-between; gap: 10px; align-items: center; min-height: 38px; margin-bottom: 10px; }
.toolbar-actions { display: flex; align-items: center; }
.icon-button { display: inline-flex; align-items: center; justify-content: center; width: 43px; height: 38px; border: 1px solid transparent; border-radius: 5px; background: #f8f9fa; color: #212529; font-size: 24px; line-height: 1; }
.toolbar-actions .icon-button { border-radius: 0; }
.toolbar-actions .icon-button:first-child { border-radius: 5px 0 0 5px; }
.toolbar-actions .icon-button:last-child { border-radius: 0 5px 5px 0; }
.icon-button:hover:not(:disabled) { background: #e2e6ea; }
.output { position: relative; height: 700px; overflow-y: auto; padding: 15px; border-radius: 15px; background: var(--ink); color: #fff; color-scheme: dark; scrollbar-width: thin; scrollbar-color: #777 #1d1f23; overflow-wrap: anywhere; }
.intro h1 { margin: 0 0 28px; font-size: clamp(52px, 7.2vw, 100px); line-height: 1.2; font-weight: 400; text-align: center; white-space: nowrap; letter-spacing: -3px; }
.intro p { margin: 0 0 16px; color: #f0f0f1; font-size: 16px; line-height: 1.55; }
.intro a { color: #fff; }
.intro strong { font-weight: 600; }
.suggestions { display: flex; flex-wrap: wrap; gap: 8px; margin: 22px 0; }
.suggestions button { background: transparent; border: 1px solid #66666d; border-radius: 5px; color: #eee; padding: 8px 10px; font-size: 12px; text-align: left; }
.suggestions button span { padding-left: 6px; }
.suggestions button:hover { background: #ffffff0d; }
.intro .fine-print, .fine-print { font-size: 13px; line-height: 1.55; color: #c1c1c8; }
.intro-credit { margin-top: 32px; padding: 19px 0 4px; border-top: 1px solid #ffffff33; text-align: center; font-size: 13px; line-height: 1.6; color: #e2e2e6; }
.status { margin: 12px 0 0; color: #fff; font-size: 13px; line-height: 1.5; text-align: center; }
.status:empty { display: none; }
.eyebrow { font-size: 11px; letter-spacing: 1px; color: #c6c6ce; }
.chat-turn { padding: 9px 5px 0; }
.result-question { font-size: 23px; font-weight: 500; line-height: 1.45; margin: 9px 0 22px; }
.answer { color: #f0f0f2; font-size: 17px; line-height: 1.7; }
.answer p { margin: 0 0 1em; }
.answer h2, .answer h3, .answer h4 { color: #fff; line-height: 1.35; font-weight: 600; }
.answer pre { overflow-x: auto; background: #111317; padding: 15px; border-radius: 6px; white-space: pre-wrap; }
.answer code { font-size: .85em; background: #ffffff0a; padding: 2px 4px; border-radius: 3px; }
.answer blockquote { margin-left: 0; padding-left: 18px; border-left: 2px solid var(--pink); color: #ecc4ed; }
.answer a { color: #f5bbf8; }
.source-citation { color: #e9c5ec; font-size: .82em; text-decoration: none; white-space: nowrap; }
.source-citation:hover { text-decoration: underline; }
.diary-sources { margin: 20px 0 4px; padding: 12px 0; border-top: 1px solid #ffffff26; color: #c5c5cd; font-size: 13px; line-height: 1.6; }
.diary-sources summary { cursor: pointer; width: fit-content; color: #d6c9d8; }
.diary-sources summary:hover { color: #fff; }
.diary-source { margin-top: 13px; padding: 10px 12px; border: 1px solid #ffffff1a; border-radius: 5px; scroll-margin-top: 15px; }
.diary-source-title { margin: 0 0 6px; color: #dedbe1; font-size: 13px; font-weight: 500; }
.diary-source-excerpt { margin: 0; padding-left: 12px; border-left: 2px solid #827484; color: #bfbfc8; font-size: 13px; line-height: 1.65; white-space: pre-wrap; }
.diary-source:target { border-color: #c88ecc; background: #ffffff08; }
.source-provenance { color: #b4acbb; font-size: 11px; line-height: 1.5; margin: 7px 0; overflow-wrap: anywhere; }
.source-references { margin: 6px 0 0; padding-left: 18px; font-size: 12px; line-height: 1.7; }
.source-references a { color: #e0bedf; overflow-wrap: anywhere; }
.chat-turn + .chat-turn { margin-top: 28px; padding-top: 24px; border-top: 1px solid #ffffff33; }
.answer-label { margin: 22px 0 12px; color: #efa6f1; font-size: 11px; letter-spacing: 1px; }
.conversation-followups { display: flex; flex-wrap: wrap; gap: 8px; margin: 28px 5px 5px; padding-top: 20px; border-top: 1px solid #ffffff26; }
.conversation-followups button { border: 1px solid #77717b; border-radius: 5px; padding: 9px 12px; background: transparent; color: #f2e3f2; font-size: 13px; }
.conversation-followups button:hover { background: #ffffff0d; }
.strategy-result { padding: 20px; }
.strategy-result h2 { margin: 35px 0; font-size: clamp(32px, 4vw, 52px); font-weight: 400; line-height: 1.2; color: var(--pink); }
.strategy-result p { font-size: 16px; line-height: 1.6; color: #eee; }
.strategy-result .primary-button { background: #f8f9fa; color: #212529; margin: 12px 0; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 25px; min-height: 300px; color: #eee; font-size: 15px; }
.loading-orbit { width: 90px; height: 90px; border: 2px solid #ffffff26; border-top-color: #fff; border-radius: 50%; animation: spin 2s linear infinite; }
.has-conversation .loading { min-height: 125px; flex-direction: row; gap: 17px; justify-content: flex-start; }
.has-conversation .loading-orbit { width: 27px; height: 27px; flex-shrink: 0; }
@keyframes spin { to { transform: rotate(360deg); } }
.error-card { padding: 16px 5px; }
.error-card h2 { font-size: 30px; font-weight: 400; }
.error-card p { color: #dedee3; font-size: 16px; line-height: 1.6; }
.error-card .primary-button { background: #f8f9fa; color: #212529; }
dialog { width: min(650px, calc(100vw - 32px)); max-height: min(80vh, 780px); border: 1px solid #ddd; border-radius: 12px; background: #fff; color: #212529; padding: 24px; box-shadow: 0 20px 70px #0006; }
dialog::backdrop { background: #15121a99; }
.dialog-header { display: flex; justify-content: space-between; align-items: center; margin-bottom: 24px; gap: 16px; }
.dialog-header h2 { font-size: 25px; font-weight: 500; margin: 8px 0 0; }
.dialog-header .eyebrow { color: #6c757d; font-size: 10px; }
dialog .fine-print { color: #6c757d; }
.history-item { border-top: 1px solid #dee2e6; padding: 17px 0; }
.history-item summary { cursor: pointer; font-size: 15px; line-height: 1.6; }
.history-item p { white-space: pre-wrap; font-size: 15px; line-height: 1.65; color: #495057; overflow-wrap: anywhere; }
.history-item button { background: #212529; color: #fff; border: 0; padding: 9px 12px; border-radius: 5px; font-size: 13px; }
.skip-link { position: fixed; top: -100px; left: 10px; z-index: 5; background: #fff; color: #222; padding: 12px; }
.skip-link:focus { top: 10px; }
.noscript { position: fixed; bottom: 0; padding: 20px; background: #fff; width: 100%; }
@media (min-width: 1400px) { .app-shell { width: min(1320px, calc(100% - 48px)); } }
@media (min-width: 768px) and (max-width: 1199px) { .app-shell { width: min(960px, calc(100% - 40px)); } .workspace { gap: 20px; } .question-card { padding: 16px 12px 10px; } .strategy-button { gap: 7px; font-size: 13px; } .intro h1 { font-size: clamp(50px, 7.4vw, 88px); } }
@media (max-width: 767px) {
  .app-shell { width: min(540px, calc(100% - 28px)); padding-top: 46px; }
  .workspace { grid-template-columns: 1fr; gap: 20px; }
  .question-card { padding: 16px 16px 10px; }
  .portrait-card { max-width: 340px; margin: 0 auto; }
  .strategy-button { padding: 11px 8px; }
  .conversation { padding: 12px; }
  .output { height: auto; min-height: 540px; max-height: 75dvh; padding: 15px; }
  .intro h1 { font-size: clamp(48px, 11.6vw, 70px); letter-spacing: -2px; margin-bottom: 22px; }
  .intro p { font-size: 15px; }
  .answer { font-size: 16px; }
  .strategy-result { padding: 12px 3px; }
  .is-chatting .app-shell { padding-bottom: 120px; }
  .is-chatting .question-card { position: fixed; bottom: 0; left: 0; right: 0; z-index: 3; padding: 12px max(16px, calc((100vw - 540px) / 2)) max(12px, env(safe-area-inset-bottom)); background: #fff; border-top: 1px solid #dee2e6; box-shadow: 0 -4px 16px #00000018; }
  .is-chatting textarea { height: 66px; min-height: 66px; resize: none; }
  .is-chatting textarea:focus { min-height: 66px; }
  .is-chatting .composer-footer .primary-button { height: 66px; }
  .is-chatting .portrait-card { display: none; }
  .is-chatting .sidebar { background: transparent; border: 0; box-shadow: none; }
  .is-chatting .strategy-button { display: none; }
  .is-chatting .workspace { gap: 0; }
  .is-chatting .output { max-height: calc(100dvh - 235px); min-height: 280px; }
  .ambient-mode .question-card { display: none; }
}
@media (max-width: 575px) { .portrait-card { display: none; } .question-card { padding-bottom: 16px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* A welcoming first encounter, with room to follow a thought. */
.question-card textarea { height: 92px; min-height: 92px; resize: vertical; }
.question-card .composer-footer .primary-button { height: 92px; }
.output { height: max(540px, calc(100dvh - 164px)); max-height: 850px; }
.welcome { padding: 20px 16px 10px; }
.welcome > .eyebrow { color: #d0b6d7; font-size: 10px; letter-spacing: 2px; }
.welcome h1 { text-align: left; font-size: clamp(52px, 5.6vw, 80px); margin: 16px 0 22px; line-height: 1; letter-spacing: -3px; }
.welcome h1 span { color: #edaff2; display: inline-block; margin-left: 8px; font-size: .8em; font-weight: 300; }
.welcome h2 { font-weight: 400; font-size: clamp(23px, 2.5vw, 34px); line-height: 1.3; letter-spacing: -.6px; margin: 0 0 17px; }
.welcome h2 em { font-family: Georgia, serif; font-weight: 400; color: #edc4ed; }
.welcome > p { max-width: 520px; color: #cbc8cf; font-size: 15px; line-height: 1.65; }
.entry-points { display: grid; grid-template-columns: 1fr; margin: 24px 0 20px; gap: 8px; }
.entry-points button { display: flex; justify-content: space-between; align-items: center; gap: 10px; width: 100%; padding: 15px; border-color: #ffffff26; background: #ffffff04; font-size: 14px; }
.entry-points button:hover { border-color: #d59bdb; background: #e7b9eb0d; }
.entry-points button strong { font-weight: 500; color: #f5e9f6; }
.entry-points button > span { font-size: 12px; color: #aaa6b2; padding: 0; }
.entry-points button strong span { color: #d3a2d9; }
.welcome .welcome-note { font-size: 13px; color: #c9b3d0; }
.welcome .fine-print { padding-top: 20px; border-top: 1px solid #ffffff1a; margin-top: 25px; font-size: 11px; color: #a7a3ae; }
.conversation-nav { display: flex; align-items: center; gap: 6px; }
.notebook-button { border: 0; border-radius: 5px; padding: 10px 12px; background: #f6f2f7; color: #63476b; font-size: 13px; }
.notebook-button:hover { background: #ece1f0; }
.mobile-strategy { display: none; }
.conversation-followups > .eyebrow { flex-basis: 100%; margin-bottom: 3px; color: #c6aacd; }
.more-directions { flex-basis: 100%; margin-top: 4px; }
.more-directions summary { width: fit-content; cursor: pointer; font-size: 12px; color: #bdb0c4; padding: 8px 0; }
.more-directions button { margin: 4px 6px 4px 0; }
.keep-thought { border: 0; background: transparent; color: #dbb6e1; padding: 9px 0; font-size: 12px; text-align: left; }
.keep-thought:hover { color: #fff; text-decoration: underline; text-underline-offset: 4px; }
.strategy-result { background: #3a2c402e; border: 1px solid #b686c552; border-radius: 10px; padding: 22px; margin: 5px 0 24px; }
.strategy-result h2 { font-size: clamp(24px, 3vw, 36px); margin: 16px 0; color: #edb8f2; }
.strategy-result .fine-print { font-size: 11px; color: #c2b7c7; margin: 10px 0 0; }
.strategy-result .primary-button { font-size: 12px; margin: 0; background: #e5c6eb; border: 0; color: #35233e; }
.strategy-actions { display: flex; align-items: center; flex-wrap: wrap; gap: 10px 18px; }
.about-dialog { width: min(730px, calc(100vw - 32px)); }
.about-dialog .intro p { color: #414047; font-size: 15px; line-height: 1.7; }
.about-dialog .intro a { color: #725181; }
.about-dialog .intro .fine-print { color: #6f6575; font-size: 13px; }
.about-dialog .intro-credit { color: #6f6575; border-color: #e6dfe9; }
#thought-form label { display: block; font-size: 13px; font-weight: 600; margin: 18px 0 8px; }
#thought-form label span { font-weight: 400; color: #777; }
#thought-form input, #thought-form textarea { display: block; width: 100%; border: 1px solid #cfc5d3; border-radius: 5px; padding: 10px 12px; background: #fcfafd; color: #29222d; font-size: 16px; }
#thought-form textarea { height: 170px; min-height: 130px; max-height: 350px; line-height: 1.6; }
.thought-form-actions, .notebook-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 10px; margin-top: 15px; }
.secondary-button { border: 1px solid #d9d0dd; border-radius: 5px; padding: 9px 12px; background: #f8f5fa; color: #63476b; font-size: 13px; }
.secondary-button:hover { background: #ebe2ef; }
#notebook-status { color: #67516f; font-size: 13px; line-height: 1.5; }
#notebook-status:empty { display: none; }
.notebook-item { padding: 20px 0; border-top: 1px solid #e6dfe9; }
.notebook-item > .eyebrow { color: #8d6d99; font-size: 10px; }
.notebook-item h3 { font-size: 20px; font-weight: 500; margin: 10px 0; overflow-wrap: anywhere; }
.notebook-item p { white-space: pre-wrap; font-size: 15px; line-height: 1.65; color: #5b5360; overflow-wrap: anywhere; }
.notebook-empty { color: #6f6575; font-size: 15px; line-height: 1.7; }
.ambient-help { top: 27vh; }
.listening-experiment { max-width: 440px; padding: 0 20px; margin: 30px auto 0; }
.listening-experiment button { border: 1px solid #ffffff66; border-radius: 20px; background: #46275830; color: #fff; font-size: 12px; padding: 10px 16px; }
.listening-experiment button:hover { background: #46275855; }
.listening-experiment-panel { margin-top: 16px; padding: 20px; border-radius: 12px; background: #3b235c52; backdrop-filter: blur(10px); }
.ambient-help .listening-experiment-prompt { font-size: 17px; line-height: 1.65; margin: 0 0 18px; font-weight: 400; }
.listening-experiment-actions { display: flex; flex-wrap: wrap; justify-content: center; gap: 8px; }
@media (max-width: 767px) {
  .output { height: auto; min-height: 440px; max-height: none; }
  .welcome { padding: 16px 4px 4px; }
  .welcome h1 { font-size: 48px; margin: 16px 0; }
  .welcome h2 { font-size: 23px; }
  .welcome > p { font-size: 14px; }
  .entry-points button { align-items: flex-start; flex-direction: column; gap: 5px; padding: 12px; }
  .welcome .fine-print { margin-bottom: 0; }
  .question-card textarea, .question-card .composer-footer .primary-button { min-height: 66px; height: 66px; }
  .is-chatting .output { height: calc(100dvh - 220px); min-height: 200px; max-height: none; }
  .is-chatting .mobile-strategy { display: inline-block; }
  .conversation-toolbar { gap: 3px; }
  .notebook-button { padding: 10px 8px; font-size: 12px; }
  .toolbar-actions .icon-button { width: 34px; }
  .strategy-result { padding: 16px; }
  .ambient-help { top: 22vh; }
  .ambient-help p { font-size: 38px; }
  dialog { padding: 20px; max-height: 85dvh; }
}
@media (max-height: 600px) {
  .ambient-help { top: 14vh; }
  .ambient-help > p { font-size: 30px; margin-bottom: 12px; }
  .listening-experiment { margin-top: 16px; }
  .listening-experiment-panel { padding: 12px; }
}
