/* SREDA's visual layer: warm surfaces, restrained accents and a quiet reading space. */
:root {
  --ink: #262626;
  --muted: #777777;
  --soft-muted: #959595;
  --line: #e3e3e3;
  --surface: #fffefa;
  --canvas: #fafafa;
  --sidebar: #f0f0f0;
  --coral: #237c73;
  --coral-dark: #195e57;
  --shadow: 0 5px 24px #32323208;
}
body { background: var(--canvas); letter-spacing: -.012em; }
.titlebar { display: none; }
.desktop-app .titlebar { display: flex; background: var(--canvas); }
.desktop-app .titlebar-brand { color: var(--muted); }
.workspace { height: 100%; min-height: 0; grid-template-columns: 250px minmax(0,1fr); grid-template-rows: minmax(0,1fr); }
.desktop-app .workspace { height: calc(100% - 44px); }
.sidebar { padding: 26px 14px 14px; border-right-color: #e5e5e5; }
.sidebar-head { padding: 0 12px 27px; }
.brand { gap: 10px; }.brand-word { font-size: 19px; letter-spacing: .04em; font-weight: 650; }
.brand-mark { transform: scale(.92); }.brand-mark::after { background: var(--canvas); }
.new-chat { height: 43px; padding: 0 13px; border-color: #dcdcdc; border-radius: 10px; background: #fafafa; box-shadow: none; font-size: 12px; font-weight: 550; }
.new-chat:hover { border-color: #c8c8c8; box-shadow: none; transform: none; }
kbd { border-color: #e1e1e1; background: transparent; color: #959595; }
.mode-nav { margin: 19px 0 24px; gap: 3px; }
.mode-item { height: 40px; border-radius: 9px; color: #6d6d6d; font-weight: 500; font-size: 12px; }
.mode-item svg { stroke-width: 1.6; }
.mode-item:hover,.history-row:hover,.history-item:hover,.plan-card:hover,.profile:hover,.icon-button:hover { background: #e9e9e9; color: var(--ink); }
.mode-item.is-active { background: #e7e7e7; color: #414141; }
.mode-item.is-active svg { color: #5a5a5a; }
.history { display: flex; flex: 1; flex-direction: column; min-height: 0; }
.section-label { padding: 0 12px 12px; color: #9a9a9a; font-size: 10px; letter-spacing: .08em; font-weight: 550; }
.history-search { margin-bottom: 10px; padding: 9px 12px; border-color: transparent; background: #eaeaea60; font-size: 11px; }
.history-search::placeholder { color: #909090; }.history-search:focus { outline-color: #cacaca; background: #f9f9f9; }
.history-list { flex: 1; min-height: 0; align-content: start; grid-auto-rows: 37px; }
.history-row.is-current { background: #e6e6e6; }
.history-row .history-item { display: block; height: 37px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; color: #6e6e6e; font-size: 12px; font-weight: 400; }
.history-row.is-current .history-item { color: #393939; }
.history-more { color: #8b8b8b; }.history-empty { color: #959595; font-size: 11px; }
.sidebar-foot { flex: 0 0 auto; padding-top: 13px; border-color: #e0e0e0; }
.plan-icon { background: #e5e5e5; color: #646464; border-radius: 9px; }
.plan-copy strong { font-size: 12px; font-weight: 550; }.plan-copy small,.profile-copy small { color: #8d8d8d; }
.plan-copy progress { width: 100%; height: 3px; margin-top: 5px; }
.avatar { background: #e0e0e0; color: #555555; border-radius: 50%; font-weight: 500; }
.profile-copy strong { font-weight: 500; }.chevron { color: #969696; }
progress { appearance: none; border: 0; overflow: hidden; border-radius: 9px; background: #ebebeb; color: var(--coral); }
progress::-webkit-progress-bar { background: #ebebeb; border-radius: 9px; }
progress::-webkit-progress-value { background: var(--coral); border-radius: 9px; transition: width .3s ease; }
progress::-moz-progress-bar { background: var(--coral); border-radius: 9px; }
.main { min-height: 0; height: 100%; overflow: hidden; background: var(--canvas); }
.main-header { display: flex; height: 66px; min-height: 66px; padding: 0 28px; gap: 10px; border: 0; background: var(--canvas); backdrop-filter: none; }
.conversation-title { min-width: 0; color: #808080; font-size: 12px; font-weight: 450; }
#headerMode { max-width: min(32vw,360px); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.title-menu { color: #939393; }.title-menu:disabled { visibility: hidden; }
.header-actions { align-items: center; gap: 8px; margin-left: auto; flex-shrink: 0; }
.connection-state { color: #848484; font-size: 10px; }
.header-usage { display: inline-flex; align-items: center; gap: 6px; height: 31px; padding: 0 10px; border: 1px solid #e5e5e5; background: transparent; border-radius: 999px; font-size: 11px; color: #6f6f6f; cursor: pointer; font-variant-numeric: tabular-nums; }
.header-usage:hover { border-color: #b7b7b7; background: #f2f2f2; }.usage-dot { width: 5px; height: 5px; border-radius: 50%; background: #7f7f7f; }.header-usage.is-low { color: #a26d29; }.is-low .usage-dot { background: #b5833e; }
.ghost-button { border: 0; color: #7c7c7c; background: transparent; font-size: 11px; font-weight: 450; }
.icon-button { color: #828282; border-radius: 9px; }
.conversation { --composer-space: 195px; min-height: 0; width: 100%; overflow: hidden; }
.welcome { flex: 0 0 auto; width: min(760px,100%); padding: 0 28px; margin-top: auto; }
.welcome-symbol,.welcome .eyebrow { display: none; }
.welcome h1 { font-family: Georgia,"Times New Roman",serif; font-size: clamp(36px,4.3vw,56px); font-weight: 400; line-height: 1.15; letter-spacing: -.055em; color: #383838; }
.welcome > p:not(.eyebrow) { max-width: 410px; margin-top: 17px; color: #8a8a8a; font-size: 14px; line-height: 1.8; }
.composer-wrap { padding: 15px 32px 12px; background: linear-gradient(to bottom,#fafafa00,var(--canvas) 20%); }
.composer { width: min(760px,100%); padding: 16px 16px 12px; border-color: #e0e0e0; border-radius: 21px; background: #fffefa; box-shadow: 0 4px 24px #4d4d4d06; }
.composer:focus-within { border-color: #b7b7b7; box-shadow: 0 4px 24px #4d4d4d0a; }
.composer textarea { padding: 0 3px 18px; font-size: 15px; color: #3a3a3a; line-height: 1.65; }
.composer textarea::placeholder { color: #a4a4a4; }.composer-toolbar { min-height: 35px; }
.tool-button { color: #8b8b8b; }.tool-button:hover { background: #f2f2f2; }
.model-select { background: #f3f3f3; color: #6f6f6f; font-size: 11px; font-weight: 500; height: 31px; border-radius: 8px; padding: 0 9px; }
.model-select:hover { background: #ececec; }.auto-spark { color: #838383; font-size: 14px; }
.send-button { border-radius: 50%; width: 35px; height: 35px; background: #393939; box-shadow: none; }.send-button:hover:not(:disabled) { background: #5c5c5c; transform: none; }.send-button svg { stroke-width: 1.9; }
.model-menu { border-color: var(--line); border-radius: 15px; box-shadow: 0 15px 50px #32323218; }.model-menu-head { border-bottom-color: var(--line); }.model-list button:hover,.model-list button.is-selected { background: #f2f2f2; }.model-copy small { color: #919191; }
.disclaimer { color: #a4a4a4; font-size: 10px; line-height: 1.55; text-align: center; max-width: 720px; }
.conversation.is-empty .composer-wrap { position: relative; width: 100%; padding-top: 30px; padding-bottom: 0; background: none; }
.suggestions { margin: 17px 16px auto; padding-bottom: 24px; max-width: 760px; gap: 8px; }
.suggestions button { height: 33px; border-color: #e5e5e5; border-radius: 9px; padding: 0 12px; background: transparent; color: #858585; font-size: 10px; font-weight: 450; }
.suggestions button:hover { border-color: #c0c0c0; color: #4b4b4b; background: #f5f5f5; }
.conversation:not(.is-empty) > .suggestions { display: none; }
.messages { min-height: 0; flex: 1 1 0; width: 100%; max-width: none; padding: 28px max(28px,calc((100% - 740px)/2)) var(--composer-space); overflow-x: hidden; overflow-y: auto; overscroll-behavior-y: contain; scrollbar-width: thin; scrollbar-color: #d0d0d0 transparent; }
.message { gap: 0; margin-bottom: 28px; max-width: 100%; animation: none; }
.message-avatar { display: none; }.message-body { width: 100%; min-width: 0; padding-top: 0; color: #464646; font-size: 15px; line-height: 1.8; }
.message-body > strong { color: #7b7b7b; font-size: 11px; font-weight: 550; margin: 0 0 10px; }
.message.user { width: fit-content; max-width: 86%; margin-left: auto; margin-top: 7px; margin-bottom: 32px; }
.message.user .message-body > strong { display: none; }
.message.user .message-content { padding: 10px 17px; border: 1px solid #e6e6e6; background: #efefef; border-radius: 19px 19px 5px 19px; color: #444444; }
.message.user .answer-text { margin: 2px 0; }
.message.assistant .message-content { padding: 0 2px; }
.message-content .answer-text { line-height: 1.8; margin: 7px 0; }.message-content .answer-text:empty { display: none; }
.message-content .inline-bold { color: #373737; font-weight: 600; }.message-content .inline-code { background: #efefef; color: #616161; }
.message-content a { color: #377d70; }.answer-list::before { color: #929292; }
.code-block { border-color: #e4e4e4; background: #f2f2f2; color: #535353; }
.message-attachment,.attachment-chip { border-color: #e3e3e3; background: #f2f2f2; color: #767676; }
.message-meta { min-height: 18px; margin-top: 8px; color: #969696; }.message-meta .text-button { color: #969696; font-size: 10px; }.message-meta .text-button:hover { color: #606060; }
.jump-latest { position: absolute; z-index: 6; left: 50%; bottom: calc(var(--composer-space) - 10px); transform: translateX(-50%); display: grid; place-items: center; width: 35px; height: 35px; padding: 0; border: 1px solid #dbdbdb; border-radius: 50%; color: #767676; background: #fffefa; box-shadow: 0 4px 18px #43434312; cursor: pointer; }.jump-latest svg { width: 17px; height: 17px; }
.media-gallery { padding-bottom: var(--composer-space); scrollbar-width: thin; }.media-card { border-color: var(--line); background: var(--surface); }.media-placeholder { background: #f0f0f0; color: #939393; }.media-mark { color: #858585; }.media-copy p { color: #515151; }.media-copy small { color: #949494; }
.app-dialog { border-color: #e4e4e4; border-radius: 20px; background: var(--surface); box-shadow: 0 24px 100px #2f2f2f20; }.app-dialog::backdrop { background: #33333332; backdrop-filter: blur(5px); }
.dialog-head h2 { font-size: 24px; font-weight: 550; color: #3a3a3a; }.dialog-eyebrow { color: #8d8d8d; font-size: 9px; font-weight: 550; letter-spacing: .11em; }
.dialog-content { padding: 30px; }.form-description,.field-label,.text-button { color: #8c8c8c; }.form-description { font-size: 11px; line-height: 1.8; }
.text-field { border-color: #e4e4e4; background: #f8f8f8; color: #505050; }.text-field:focus { border-color: #b8b8b8; box-shadow: 0 0 0 3px #b7b7b712; }
.primary-button { background: #454545; font-size: 11px; font-weight: 500; }.primary-button:hover { background: #5f5f5f; }.secondary-button { border-color: #e4e4e4; background: #fffefa; color: #737373; }.secondary-button:hover { background: #f2f2f2; }
.settings-tools { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }.settings-tools button { line-height: 1.6; text-align: left; padding: 11px 12px; }.settings-row { border-color: #e9e9e9; }.settings-row small { color: #999999; }.settings-row strong { font-weight: 500; }.status-pill { color: #7a7a7a; background: #efefef; font-weight: 500; }.version-value { color: #989898; }
.plans-dialog { width: min(960px,calc(100% - 36px)); }.access-summary { display: flex; align-items: center; justify-content: space-between; gap: 16px; margin: 3px 0 20px; }.current-plan-badge { padding: 7px 11px; border: 1px solid #d2d2d2; border-radius: 999px; background: #f2f2f2; color: #797979; font-size: 10px; }.access-summary p { color: #9b9b9b; font-size: 10px; margin: 0; }
.allowance-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 11px; }.allowance-card { padding: 18px; border: 1px solid #e5e5e5; border-radius: 14px; background: #f9f9f9; }.allowance-head { display: flex; align-items: center; justify-content: space-between; gap: 8px; }.allowance-head strong { font-size: 12px; font-weight: 500; color: #575757; }.allowance-symbol { font-size: 15px; color: #ababab; }.allowance-description { display: block; margin-top: 6px; color: #a5a5a5; font-size: 9px; }.allowance-value { display: block; font-size: 31px; letter-spacing: -.045em; font-weight: 450; margin: 22px 0 13px; color: #575757; font-variant-numeric: tabular-nums; }.allowance-meter { width: 100%; height: 4px; display: block; }.allowance-status { display: block; margin-top: 11px; color: #a1a1a1; font-size: 9px; line-height: 1.6; }.allowance-card.is-low .allowance-value { color: #b19052; }.allowance-card.is-low progress::-webkit-progress-value { background: #b59860; }.allowance-note { font-size: 10px; line-height: 1.8; color: #a2a2a2; margin: 14px 0 29px; }
.plans-heading { display: flex; align-items: center; justify-content: space-between; margin-bottom: 14px; }.plans-heading h3 { margin: 0; font-size: 15px; font-weight: 500; color: #676767; }.plans-heading span { font-size: 10px; color: #a5a5a5; }
.tariff-grid { margin: 0 0 14px; gap: 10px; }.tariff-card { padding: 19px 15px 16px; border-radius: 13px; border-color: #e5e5e5; background: #fffefa; }.tariff-card.current { border-color: #b5b5b5; background: #f7f7f7; }.tariff-name { font-size: 13px; font-weight: 550; margin-bottom: 7px; color: #606060; }.tariff-card p.tariff-description { margin: 0 0 21px; min-height: 29px; font-size: 10px; line-height: 1.6; color: #a5a5a5; }.tariff-price { font-size: 27px; font-weight: 450; color: #5b5b5b; letter-spacing: -.04em; }.tariff-card small { color: #aaaaaa; font-size: 9px; }.tariff-features { list-style: none; margin: 19px 0; padding: 0; width: 100%; color: #969696; font-size: 10px; line-height: 1.7; }.tariff-features li { padding-left: 13px; margin: 8px 0; position: relative; }.tariff-features li::before { content: '✓'; position: absolute; left: 0; color: #a1a1a1; font-size: 9px; }.tariff-card button { width: 100%; padding: 0 8px; font-size: 10px; border-radius: 8px; }.tariff-card .pending-note { margin: 0 0 15px; font-size: 8px; line-height: 1.6; color: #b0b0b0; }
.redeem-form { border-top: 1px solid #e9e9e9; margin-top: 22px; }.activity-details { border-top: 1px solid #e9e9e9; margin-top: 25px; padding-top: 17px; color: #939393; font-size: 11px; }.activity-details summary { cursor: pointer; }.ledger-row { border-color: #e9e9e9; color: #9e9e9e; }.ledger-row small { color: #aeaeae; }.ledger-row > span { font-size: 9px; }.ledger-row strong { font-size: 11px; }.pending-note { color: #a18d5c; }
.auth-screen { background: #fffefa; }.auth-story { background: #eeeeee; }.auth-story::after { border-color: #e2e2e2; opacity: .45; }.auth-story h1 { font-family: Georgia,"Times New Roman",serif; font-weight: 400; letter-spacing: -.05em; color: #464646; }.auth-story > p { color: #999999; }.auth-wordmark { font-weight: 550; color: #6f6f6f; }.auth-kicker { color: #9a9a9a; font-weight: 450; }.auth-models span { border-color: #e4e4e4; background: #f7f7f7; color: #949494; font-weight: 450; }.auth-form h2 { font-weight: 500; color: #525252; }.auth-tabs { background: #f1f1f1; border-color: #eaeaea; }.auth-tabs button { color: #9d9d9d; }.auth-tabs button.is-active { color: #747474; background: #fffefa; font-weight: 500; }.auth-submit { background: #5e5e5e; }.auth-submit:hover { background: #767676; }.auth-footnote { color: #aeaeae; }
button:focus-visible,a:focus-visible { outline-color: #b8b8b8; }.toast { background: #515151; color: #f8f8f8; box-shadow: 0 8px 30px #43434320; }.media-size { background: #f1f1f1; color: #929292; }
@media (max-width:1040px) { .workspace { grid-template-columns: 230px minmax(0,1fr); }.main-header { padding: 0 20px; }.tariff-card { padding-inline: 12px; }.tariff-features { font-size: 9px; } }
@media (max-width:760px) {
  .workspace,.desktop-app .workspace { display: block; height: 100%; }.sidebar { padding-top: 25px; width: min(290px,86vw); height: 100dvh; background: var(--sidebar); }.sidebar-head { padding-bottom: 24px; }.main-header { height: 58px; min-height: 58px; padding: 0 12px; gap: 6px; }.header-actions { gap: 3px; }.header-usage { font-size: 10px; padding: 0 8px; height: 29px; }.connection-state { display: none; }#headerMode { max-width: 35vw; font-size: 11px; }.main-header .icon-button { width: 30px; }.welcome h1 { font-size: 39px; }.welcome > p:not(.eyebrow) { font-size: 13px; max-width: 300px; }.welcome { padding: 0 22px; }.composer-wrap { padding: 14px 12px 10px; }.conversation.is-empty .composer-wrap { padding-top: 24px; }.composer { padding: 15px 13px 11px; border-radius: 19px; }.composer textarea { font-size: 16px; }.disclaimer { display: block; font-size: 9px; margin-top: 9px; }.messages { padding: 18px 18px var(--composer-space); }.message-body { font-size: 14px; }.message.user { max-width: 92%; }.suggestions { gap: 6px; margin-top: 16px; max-width: 100%; }.suggestions button { padding: 0 10px; font-size: 9px; height: 31px; }.model-menu { bottom: 95px; }.plans-dialog { width: calc(100% - 20px); }.dialog-content { padding: 22px 17px; }.dialog-head h2 { font-size: 22px; }.allowance-grid { gap: 7px; }.allowance-card { padding: 13px 10px; border-radius: 11px; }.allowance-head strong { font-size: 11px; }.allowance-symbol { display: none; }.allowance-description { font-size: 8px; line-height: 1.6; min-height: 26px; }.allowance-value { font-size: 25px; margin: 17px 0 12px; }.allowance-status { font-size: 8px; }.allowance-note { font-size: 9px; }.plans-heading h3 { font-size: 13px; }.plans-heading span { font-size: 9px; }.tariff-grid { grid-template-columns: repeat(2,minmax(0,1fr)); gap: 9px; }.tariff-card { padding: 17px 13px; }.tariff-features { font-size: 10px; }.auth-story { padding-top: 77px; min-height: 225px; }.auth-story h1 { font-size: 36px; }.auth-panel { padding-top: 28px; }
}
@media (max-height:650px) { .welcome h1 { font-size: 36px; }.conversation.is-empty .composer-wrap { padding-top: 18px; }.welcome > p:not(.eyebrow) { margin-top: 10px; }.suggestions { margin-top: 10px; padding-bottom: 12px; } }

/* Secondary copy stays readable on warm surfaces, including narrow plan cards. */
.welcome > p:not(.eyebrow),.form-description,.field-label,.access-summary p,
.allowance-description,.allowance-status,.allowance-note,.plans-heading span,
.tariff-card p.tariff-description,.tariff-card small,.tariff-card .pending-note,
.activity-details,.ledger-row,.ledger-row small,.auth-story > p,.auth-footnote {
  color: #767676;
}
.allowance-description { min-height: 30px; font-size: 10px; line-height: 1.6; }
.allowance-status,.allowance-note { font-size: 10px; }
.tariff-card p.tariff-description,.tariff-features { color: #6d6d6d; font-size: 11px; }
.tariff-card .pending-note { font-size: 9px; }
.suggestions button { color: #747474; font-size: 11px; }
.message-content .answer-text > br:only-child { display: none; }
.messages:focus-visible { outline: none; }
.send-button,.primary-button,.auth-submit { background:var(--coral);color:#fff; }
.send-button:hover:not(:disabled),.primary-button:hover,.auth-submit:hover { background:var(--coral-dark); }
@media (max-width:760px) {
  .allowance-description,.allowance-status { font-size: 9px; }
  .suggestions button { font-size: 10px; }
}
