:root {
  --canvas: #0c1110;
  --surface: #131a17;
  --surface-raised: #19231e;
  --surface-soft: #17201b;
  --line: #28362e;
  --line-soft: #222d26;
  --text: #e5ece5;
  --muted: #a1afa5;
  --dim: #74867a;
  --accent: #b0d7be;
  --accent-deep: #1b3b2a;
  --amber: #dbbc88;
  --danger: #e3a79e;
  --radius: 14px;
  font-family: Inter, "Segoe UI", -apple-system, BlinkMacSystemFont, sans-serif;
  font-size: 14px;
  color: var(--text);
  background: var(--canvas);
  font-synthesis: none;
  text-rendering: optimizeLegibility;
  -webkit-font-smoothing: antialiased;
}
* { box-sizing: border-box; }
body { margin: 0; min-width: 320px; min-height: 100vh; background: radial-gradient(ellipse at 24% 0%, #1b2720 0, transparent 55%), var(--canvas); }
button, input, textarea, select { font: inherit; }
button, input, textarea, select, a { -webkit-tap-highlight-color: transparent; }
button { cursor: pointer; }
button:disabled { cursor: not-allowed; opacity: .4; }
button, input, textarea, select { color: inherit; }
button { border: 0; background: none; }
input, textarea, select { border-radius: 9px; }
textarea { resize: vertical; }
button, a, input, textarea, select { outline-offset: 4px; }
:focus-visible { outline: 2px solid var(--accent); }
::selection { color: #f4fff7; background: #3d6149; }
[hidden] { display: none !important; }
svg { fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; stroke-linejoin: round; }
button svg { width: 19px; height: 19px; flex-shrink: 0; }
h1, h2, h3, p { margin: 0; }
.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; }
.skip-link { position: fixed; top: -60px; left: 24px; z-index: 100; padding: 10px 14px; background: var(--accent); color: var(--canvas); border-radius: 8px; }
.skip-link:focus { top: 16px; }
.app-shell { margin: 24px auto; width: min(1600px, calc(100% - 48px)); height: calc(100dvh - 48px); min-height: 600px; display: flex; flex-direction: column; overflow: hidden; border: 1px solid #2b382f; border-radius: 20px; background: var(--surface); box-shadow: 0 24px 90px #0004; }
.app-header { height: 88px; padding: 0 30px; display: flex; align-items: center; justify-content: space-between; flex-shrink: 0; border-bottom: 1px solid var(--line-soft); }
.brand { display: flex; align-items: center; gap: 14px; }
.brand-mark { color: var(--accent); flex-shrink: 0; }
.brand h1 { font-size: 20px; font-weight: 500; letter-spacing: .27em; line-height: 1.35; }
.brand-caption { font-size: 11px; color: var(--dim); letter-spacing: .015em; }
.header-actions { display: flex; align-items: center; gap: 17px; }
.header-divider { height: 22px; width: 1px; background: var(--line); }
.connection-button { display: flex; align-items: center; gap: 8px; font-size: 12px; color: var(--muted); padding: 8px 2px; }
.status-dot { display: inline-block; width: 6px; height: 6px; flex-shrink: 0; border-radius: 50%; background: var(--dim); }
.status-dot.ready { background: #acd4b7; box-shadow: 0 0 0 4px #95c8a40c; }
.status-dot.busy { background: #9dc8b0; animation: breathe 2.5s ease-in-out infinite; }
.status-dot.error { background: #bd9f76; }
.status-dot.paused { background: #6c7d72; }
.icon-button { display: inline-flex; width: 34px; height: 34px; justify-content: center; align-items: center; border-radius: 9px; color: var(--muted); transition: background .15s, color .15s; }
.icon-button:hover { background: #ffffff08; color: var(--text); }
.icon-button.outlined { border: 1px solid var(--line); height: 38px; width: 38px; }
.mobile-only { display: none; }
.app-body { min-height: 0; flex: 1; display: flex; }
.conversation { min-width: 0; display: flex; flex-direction: column; flex: 1; }
.conversation-heading { display: flex; justify-content: space-between; align-items: center; gap: 10px; padding: 24px 34px 18px; }
.eyebrow { font-size: 9px; font-weight: 600; letter-spacing: .14em; color: var(--dim); line-height: 1.6; }
.subtle { color: var(--dim); font-size: 11px; }
.notice { margin: 0 32px 8px; padding: 13px 14px; border: 1px solid #5c503432; border-radius: 10px; background: #7563380c; display: flex; align-items: flex-start; gap: 12px; color: var(--amber); }
.notice-symbol { display: flex; align-items: center; justify-content: center; border: 1px solid currentColor; width: 15px; height: 15px; margin-top: 2px; border-radius: 50%; font-size: 10px; flex-shrink: 0; }
.notice > div { flex: 1; min-width: 0; }
.notice strong { font-size: 11px; font-weight: 500; }
.notice p { font-size: 11px; color: #aea791; margin-top: 4px; line-height: 1.55; }
.notice code { display: block; overflow-wrap: anywhere; font-size: 10px; margin-top: 6px; color: #c5b99c; }
.notice .text-button { color: #bbaa85; font-size: 10px; white-space: nowrap; padding-top: 2px; }
.conversation-scroll { flex: 1; overflow-y: auto; min-height: 0; padding: 0 34px; scrollbar-width: thin; scrollbar-color: #3c4b40 transparent; }
.welcome { height: 100%; min-height: 340px; display: flex; align-items: center; justify-content: center; flex-direction: column; text-align: center; padding: 12px 0 30px; }
.welcome > .eyebrow { font-size: 9px; letter-spacing: .18em; color: #829889; margin-top: 28px; }
.welcome h2 { font-family: Georgia, "Times New Roman", serif; font-size: clamp(29px, 2.7vw, 40px); font-weight: 400; letter-spacing: -.035em; margin: 12px 0 16px; color: #d9e5d9; }
.welcome p { font-size: 12px; color: var(--muted); line-height: 1.9; }
.welcome-footnote { display: flex; align-items: center; gap: 10px; margin-top: 29px; font-size: 10px; color: #758b7b; }
.tiny-line { height: 1px; width: 19px; background: #3a4c3e; }
.presence { position: relative; width: 106px; height: 106px; border-radius: 50%; display: grid; place-items: center; }
.presence::before { position: absolute; content: ""; width: 145px; height: 145px; background: radial-gradient(circle, #7ea98b16, transparent 67%); border-radius: 50%; }
.presence-orbit { position: absolute; border: 1px solid #6b8b7050; border-radius: 50%; }
.orbit-one { width: 88px; height: 88px; }
.orbit-two { width: 58px; height: 100px; transform: rotate(43deg); }
.orbit-three { width: 58px; height: 100px; transform: rotate(-43deg); }
.presence-core { width: 39px; height: 39px; border-radius: 50%; background: radial-gradient(circle at 35% 32%, #c2d1ac, #839b7b 53%, #47684d 100%); box-shadow: inset -2px -4px 8px #122d2866, 0 0 25px #a2c5a41f; }
.presence-point { position: absolute; width: 5px; height: 5px; background: #bfd0ac; border-radius: 50%; top: 10px; left: 70px; box-shadow: 0 0 12px #a4c19759; }
.messages { max-width: 840px; margin: 12px auto 0; padding-bottom: 24px; display: flex; flex-direction: column; gap: 27px; }
.message { display: flex; gap: 13px; align-items: flex-start; }
.message-avatar { width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; flex-shrink: 0; border-radius: 9px; color: #9fc1a9; background: #22372a; font-family: Georgia, serif; font-size: 18px; }
.message.user .message-avatar { border: 1px solid #334138; background: #1b251f; color: #a5b4a9; font-family: inherit; font-size: 10px; }
.message-content { flex: 1; min-width: 0; }
.message-meta { display: flex; align-items: center; gap: 9px; min-height: 27px; margin-bottom: 5px; }
.message-name { font-size: 11px; font-weight: 600; letter-spacing: .01em; }
.message-time { font-size: 9px; color: var(--dim); }
.message-text { font-size: 14px; line-height: 1.8; white-space: pre-wrap; overflow-wrap: anywhere; color: #d3ded3; }
.message.user .message-text { color: #bdcabe; }
.message-status { font-size: 10px; color: var(--dim); margin-top: 8px; }
.feedback-button { opacity: .55; }
.feedback-button:hover, .feedback-button:focus-visible, .feedback-button.is-marked { opacity: 1; }
.feedback-button.is-marked { border-color: #5f8f6d; color: #d8e9dc; }
.message-tools { font-size: 10px; color: #8fae98; margin-top: 8px; padding-left: 8px; border-left: 2px solid #2f4836; }
.message-status.error { color: var(--amber); }
.message.streaming .message-text::after { display: inline-block; content: ""; width: 5px; height: 14px; border-radius: 1px; background: #9cc7a9; margin-left: 4px; vertical-align: -1px; animation: breathe 1.3s infinite; }
.composer-area { padding: 8px 32px 20px; flex-shrink: 0; }
.draft-bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; padding: 0 3px 11px; min-height: 28px; }
.draft-toggle { display: flex; align-items: center; gap: 8px; color: #9eafa2; font-size: 10px; cursor: pointer; }
.draft-toggle input, .toggle-only input { position: absolute; opacity: 0; width: 28px; height: 18px; margin: 0; }
.switch { display: inline-flex; position: relative; width: 25px; height: 14px; border: 1px solid #4d6152; background: #25352a; border-radius: 20px; transition: background .15s; flex-shrink: 0; }
.switch::after { content: ""; position: absolute; height: 8px; width: 8px; border-radius: 50%; top: 2px; left: 2px; background: #7e9484; transition: transform .15s; }
input:checked + .switch { background: #49604b; border-color: #69816a; }
input:checked + .switch::after { transform: translateX(11px); background: #c9dfc9; }
input:focus-visible + .switch { outline: 2px solid var(--accent); outline-offset: 4px; }
.draft-status { font-size: 10px; color: var(--dim); text-align: right; }
.draft-status.active { color: #a3c8ab; }
.composer-box { padding: 16px 17px 12px; border: 1px solid #3a4c3e; border-radius: 14px; background: #19221c; box-shadow: 0 6px 25px #0000000e; transition: border-color .15s; }
.composer-box:focus-within { border-color: #66826b; }
#composer { width: 100%; min-height: 44px; max-height: 170px; color: var(--text); background: transparent; border: 0; border-radius: 0; resize: none; outline: 0; font-size: 13px; line-height: 1.65; padding: 0; }
#composer::placeholder { color: #819486; }
.composer-bottom { display: flex; align-items: center; justify-content: space-between; gap: 10px; margin-top: 9px; }
#composer-hint { font-size: 9px; color: #738777; }
#composer-hint span { padding: 0 4px; }
.composer-actions { display: flex; gap: 7px; align-items: center; }
.send-button { height: 34px; background: #b3d5b8; color: #17371f; border-radius: 8px; display: flex; align-items: center; justify-content: center; padding: 0 10px 0 13px; gap: 12px; font-size: 11px; font-weight: 600; }
.send-button:hover:not(:disabled) { background: #c4e3c9; }
.send-button svg { height: 16px; width: 16px; stroke-width: 1.7; }
.send-button:disabled { opacity: .45; }
.stop-button { height: 32px; border: 1px solid #59654e; border-radius: 8px; color: #b9c6af; font-size: 10px; padding: 0 10px; }
.stop-button span { font-size: 8px; margin-right: 5px; }
.composer-footnote { display: flex; justify-content: space-between; gap: 10px; font-size: 9px; line-height: 1.5; padding: 10px 3px 0; color: #738477; }
#character-count { white-space: nowrap; }
.workspace { width: 355px; flex-shrink: 0; display: flex; flex-direction: column; border-left: 1px solid var(--line-soft); background: #101813; min-height: 0; }
.workspace-header { padding: 29px 24px 21px; display: flex; align-items: center; justify-content: space-between; }
.workspace-header .eyebrow { font-size: 8px; color: #708976; letter-spacing: .16em; }
.workspace-header h2 { font-family: Georgia, "Times New Roman", serif; font-size: 23px; font-weight: 400; margin-top: 6px; letter-spacing: -.02em; color: #c8d7c9; }
.workspace-tabs { display: flex; gap: 3px; padding: 0 21px; border-bottom: 1px solid var(--line-soft); }
.workspace-tabs button { flex: 1; display: flex; justify-content: center; align-items: center; gap: 5px; padding: 13px 3px 12px; color: #82998a; font-size: 11px; border-bottom: 2px solid transparent; margin-bottom: -1px; }
.workspace-tabs button[aria-selected="true"] { color: #c0d9c5; border-bottom-color: #a2c9ad; }
.workspace-tabs button:hover { color: #c4d8c9; }
.count { display: inline-flex; align-items: center; justify-content: center; min-width: 15px; height: 15px; font-size: 8px; padding: 0 4px; background: #25372b; color: #a3bba8; border-radius: 4px; }
.workspace-panel { padding: 24px; flex: 1; overflow-y: auto; min-height: 0; scrollbar-width: thin; scrollbar-color: #354a3d transparent; }
.activity-control { border: 1px solid #2e4233; border-radius: 10px; background: linear-gradient(115deg, #20352855, #17211a); padding: 15px 12px; display: flex; justify-content: space-between; gap: 8px; align-items: center; margin-bottom: 28px; }
.label-row { display: flex; align-items: center; gap: 8px; }
.activity-control strong { font-size: 10px; font-weight: 500; color: #b9cfbe; }
.activity-control p { font-size: 9px; color: #7f9b87; margin-top: 6px; line-height: 1.5; max-width: 180px; }
.small-button { border: 1px solid #405b48; border-radius: 7px; color: #b1c5b6; font-size: 10px; padding: 7px 10px; white-space: nowrap; }
.small-button:hover { border-color: #6b8871; background: #253d2c; }
.small-button.accent { color: #bad7bf; background: #273d2e; border-color: #3b5943; }
.section-heading { display: flex; justify-content: space-between; gap: 8px; align-items: center; }
.section-heading h3 { font-size: 11px; font-weight: 500; color: #b4c6b9; }
.section-heading .eyebrow { font-size: 8px; }
.panel-caption { font-size: 10px; color: #728d7b; line-height: 1.65; margin-top: 8px; }
.panel-empty { text-align: center; display: flex; align-items: center; flex-direction: column; padding: 42px 10px 25px; }
.panel-empty > svg { width: 32px; height: 32px; stroke: #667f6b; stroke-width: 1; margin-bottom: 18px; }
.panel-empty h3 { color: #98b29f; font-family: Georgia, "Times New Roman", serif; font-size: 16px; line-height: 1.4; font-weight: 400; margin-bottom: 9px; }
.panel-empty p { color: #738d7a; font-size: 10px; line-height: 1.9; max-width: 235px; }
.activity-list { margin-top: 22px; }
.activity-item { padding: 0 0 20px 18px; border-left: 1px solid #2a3a2e; position: relative; margin-left: 3px; }
.activity-item::before { content: ""; position: absolute; width: 5px; height: 5px; background: #6f9d7b; border-radius: 50%; left: -3px; top: 5px; box-shadow: 0 0 0 4px #101813; }
.activity-item:last-child { border-left-color: transparent; padding-bottom: 4px; }
.activity-meta { display: flex; align-items: center; justify-content: space-between; gap: 6px; margin-bottom: 7px; }
.activity-kind { font-size: 9px; color: #b2ccb9; font-weight: 500; }
.activity-time { color: #6d8875; font-size: 8px; }
.activity-summary { font-size: 11px; line-height: 1.75; color: #98b09e; white-space: pre-wrap; overflow-wrap: anywhere; }
.activity-model { font-size: 8px; color: #5f7b68; margin-top: 6px; overflow-wrap: anywhere; }
.workspace-footer { padding: 15px 24px; display: flex; align-items: center; gap: 8px; border-top: 1px solid #223127; color: #6e8a76; font-size: 9px; }
.footer-mark { font-size: 17px; line-height: 1; }
.version { margin-left: auto; color: #56735e; font-size: 8px; }
.panel-intro h3 { color: #bdd0c2; font-size: 13px; font-weight: 500; }
.panel-intro p { margin-top: 7px; font-size: 10px; line-height: 1.8; color: #829d8b; }
.memory-tools { display: flex; align-items: center; gap: 7px; margin-top: 21px; }
.search-field { display: flex; align-items: center; gap: 7px; border: 1px solid #2c3d30; background: #152019; border-radius: 8px; min-width: 0; padding: 9px; flex: 1; }
.search-field svg { width: 14px; height: 14px; color: #76907d; flex-shrink: 0; }
.search-field input { font-size: 10px; min-width: 0; width: 100%; background: transparent; border: 0; padding: 0; outline: 0; }
.search-field:focus-within { outline: 1px solid #8db399; outline-offset: 2px; }
.search-field input::placeholder { color: #748b7b; }
.memory-filter-row { display: flex; align-items: center; justify-content: space-between; gap: 8px; margin: 12px 0 19px; }
.memory-filter-row label { font-size: 9px; color: #819c89; display: flex; align-items: center; gap: 5px; }
input[type="checkbox"] { accent-color: #a0c9ad; }
.memory-filter-row input { width: 11px; height: 11px; margin: 0; }
.text-button { font-size: 10px; padding: 3px 0; color: #a4c3ad; }
.text-button:hover { color: #d1e7d5; }
.memory-list, .goal-list { display: flex; flex-direction: column; gap: 10px; }
.memory-card, .goal-card { border: 1px solid #2b3b2f; background: #16221a; border-radius: 10px; padding: 13px; }
.memory-card.archived { opacity: .62; background: #141c16; }
.card-topline { display: flex; justify-content: space-between; gap: 10px; align-items: center; }
.memory-kind, .goal-status { display: inline-flex; font-size: 8px; letter-spacing: .02em; padding: 4px 6px; color: #a4c1ad; border-radius: 4px; background: #273d2e; }
.memory-kind.hypothesis { color: #c7b68e; background: #3c3928; }
.memory-kind.reflection { color: #a7b6c8; background: #293541; }
.memory-source { color: #718e7b; font-size: 8px; }
.memory-content { font-size: 11px; line-height: 1.8; color: #bdcec1; margin: 10px 0 11px; white-space: pre-wrap; overflow-wrap: anywhere; }
.card-bottomline { display: flex; justify-content: space-between; gap: 5px; align-items: center; }
.card-date { font-size: 8px; color: #6f8b79; }
.card-actions { display: flex; gap: 10px; }
.card-actions button { font-size: 9px; color: #92b19c; padding: 3px 0; }
.card-actions button:hover { color: #d0e5d7; }
.memory-footer { padding: 25px 0 0; border-top: 1px solid #25372b; margin-top: 24px; }
.subtle-button { display: inline-flex; align-items: center; justify-content: center; gap: 7px; font-size: 11px; color: #a7c4b1; padding: 7px 0; }
.subtle-button svg { width: 14px; height: 14px; }
.subtle-button:hover { color: #d0e7d7; }
.memory-footer p { color: #6d8977; font-size: 8px; line-height: 1.65; margin-top: 3px; }
.goal-form { margin: 19px 0 22px; display: flex; flex-direction: column; align-items: flex-end; gap: 9px; }
.goal-form textarea { width: 100%; background: #17231a; border: 1px solid #304835; border-radius: 8px; min-height: 74px; font-size: 11px; line-height: 1.65; padding: 11px; }
.goal-form textarea::placeholder { color: #7a9782; }
.goal-form .small-button { display: flex; gap: 14px; align-items: center; }
.goal-title { font-size: 12px; line-height: 1.65; color: #bfd5c4; margin: 10px 0; overflow-wrap: anywhere; }
.goal-detail-label { font-size: 8px; font-weight: 600; letter-spacing: .08em; color: #7b9c86; text-transform: uppercase; margin: 12px 0 4px; }
.goal-detail { font-size: 10px; line-height: 1.75; color: #92af9b; white-space: pre-wrap; overflow-wrap: anywhere; }
.goal-card .card-bottomline { margin-top: 13px; }
.goal-status.paused { background: #30392b; color: #acb496; }
.goal-status.completed { background: #233c31; color: #9cbdad; }
.toast { position: fixed; bottom: 25px; left: 50%; transform: translateX(-50%); z-index: 50; max-width: min(90vw, 540px); border: 1px solid #48604e; background: #223528; color: #d7e5d9; box-shadow: 0 8px 40px #0006; border-radius: 10px; padding: 13px 18px; font-size: 12px; line-height: 1.55; text-align: center; }
.toast.error { border-color: #745c46; background: #302a21; color: #dbc5ab; }
.modal { color: var(--text); background: #15221a; border: 1px solid #3e5746; border-radius: 18px; padding: 28px; width: min(92vw, 500px); max-height: 90dvh; box-shadow: 0 30px 100px #0008; }
.modal::backdrop { background: #050b08bd; backdrop-filter: blur(5px); }
.modal form { display: flex; flex-direction: column; }
.modal-heading { display: flex; justify-content: space-between; gap: 15px; align-items: flex-start; }
.modal-heading h2 { font-family: Georgia, "Times New Roman", serif; font-size: 27px; font-weight: 400; letter-spacing: -.02em; margin-top: 5px; }
.modal-heading .eyebrow { color: #8aab94; font-size: 8px; }
.modal-intro { margin: 15px 0 8px; color: #94b29e; font-size: 12px; line-height: 1.75; }
.field-label { display: block; font-size: 11px; color: #bdd3c3; margin: 19px 0 9px; }
.text-input { width: 100%; padding: 11px 12px; background: #101b14; border: 1px solid #36513e; font-size: 12px; line-height: 1.65; }
.text-input::placeholder { color: #6f8c79; }
.field-help { font-size: 10px; line-height: 1.7; color: #7f9e89; margin-top: 7px; }
.settings-switch-row { display: flex; align-items: center; justify-content: space-between; gap: 15px; border-top: 1px solid #2a3e31; padding-top: 15px; margin-top: 17px; }
.settings-switch-row strong { display: block; font-size: 11px; font-weight: 500; color: #bcd5c5; }
.settings-switch-row span:not(.switch) { display: block; font-size: 10px; color: #7c9a87; margin-top: 6px; line-height: 1.5; }
.toggle-only { display: flex; align-items: center; position: relative; padding: 8px 0 8px 10px; cursor: pointer; }
.modal-actions { margin-top: 25px; display: flex; align-items: center; justify-content: space-between; gap: 10px; }
.primary-button { background: #b1d2ba; color: #1d3825; border-radius: 8px; padding: 10px 14px; font-size: 11px; font-weight: 600; }
.primary-button:hover { background: #c6e2ce; }
.form-error { color: #dfb08f; font-size: 11px; line-height: 1.6; padding-top: 12px; }
@keyframes breathe { 0%,100% { opacity: 1; } 50% { opacity: .35; } }
@media (min-width: 1500px) { .workspace { width: 390px; } .conversation-heading { padding-left: 45px; padding-right: 45px; } .conversation-scroll { padding: 0 45px; } .composer-area { padding-left: 45px; padding-right: 45px; } .notice { margin-left: 45px; margin-right: 45px; } }
@media (max-width: 1100px) { .app-shell { width: calc(100% - 28px); margin: 14px; height: calc(100dvh - 28px); } .workspace { width: 310px; } .workspace-panel { padding: 20px; } .workspace-header { padding-left: 20px; padding-right: 20px; } .conversation-heading { padding: 24px 24px 18px; } .conversation-heading .subtle { display: none; } .conversation-scroll { padding: 0 24px; } .composer-area { padding: 8px 23px 18px; } .notice { margin-left: 23px; margin-right: 23px; } .notice .text-button { display: none; } .brand-caption { font-size: 10px; } .draft-status { max-width: 190px; } }
@media (max-width: 800px) { .app-shell { min-height: 0; height: 100dvh; margin: 0; width: 100%; border: 0; border-radius: 0; } .app-header { height: 73px; padding: 0 22px; } .brand-caption { display: none; } .brand h1 { font-size: 17px; } .brand-mark { width: 30px; height: 30px; } .header-actions { gap: 10px; } .header-divider { display: none; } .mobile-only { display: inline-flex; } .workspace { position: fixed; top: 0; right: 0; bottom: 0; z-index: 40; width: min(390px, 91vw); display: none; border-left: 1px solid #385341; box-shadow: -20px 0 80px #0005; } .workspace.is-open { display: flex; } .workspace-header { padding-top: 25px; } .workspace-backdrop { position: fixed; inset: 0; z-index: 35; background: #0008; backdrop-filter: blur(2px); } .welcome { min-height: 300px; } .welcome h2 { font-size: 34px; } .conversation-heading { padding-top: 20px; } .conversation-heading .subtle { display: block; } .composer-area { padding-bottom: 18px; } }
@media (max-width: 460px) { .app-header { padding: 0 17px; height: 68px; } .header-actions { gap: 4px; } .connection-button { font-size: 10px; gap: 5px; } .brand { gap: 8px; } .brand h1 { font-size: 15px; } .conversation-heading { padding: 19px 18px 15px; } .conversation-heading .subtle { display: none; } .conversation-scroll { padding: 0 18px; } .notice { margin: 0 15px 4px; padding: 11px; gap: 9px; } .notice p { font-size: 10px; } .notice code { font-size: 9px; } .composer-area { padding: 9px 14px 13px; } .draft-bar { align-items: center; gap: 8px; } .draft-status { font-size: 9px; max-width: 175px; } .draft-toggle { font-size: 9px; gap: 5px; } .composer-box { padding: 14px 12px 10px; } #composer-hint { font-size: 8px; max-width: 170px; } .send-button { height: 32px; gap: 6px; font-size: 10px; padding: 0 8px 0 10px; } .composer-footnote { font-size: 8px; } .welcome h2 { font-size: 29px; } .welcome p { font-size: 11px; } .welcome > .eyebrow { font-size: 8px; } .welcome { padding-bottom: 17px; min-height: 280px; } .presence { transform: scale(.86); margin-bottom: -8px; } .welcome > .eyebrow { margin-top: 14px; } .welcome-footnote { margin-top: 20px; font-size: 9px; } .message-text { font-size: 13px; } .modal { padding: 23px; } }
@media (max-height: 760px) and (min-width: 801px) { .app-header { height: 73px; } .welcome { min-height: 260px; padding-bottom: 10px; } .presence { transform: scale(.8); margin-bottom: -17px; margin-top: -8px; } .welcome > .eyebrow { margin-top: 14px; } .welcome h2 { margin: 8px 0 11px; font-size: 31px; } .welcome p { font-size: 11px; line-height: 1.7; } .welcome-footnote { margin-top: 18px; } .composer-area { padding-bottom: 13px; } }
@media (prefers-reduced-motion: reduce) { *, *::before, *::after { animation: none !important; transition: none !important; scroll-behavior: auto !important; } }

/* ---- v0.2: effort, live reply state, timing, queue, history, days, search, devices ---- */
.composer-bottom { flex-wrap: wrap; }
.effort-control { display: inline-flex; border: 1px solid #34483a; border-radius: 9px; overflow: hidden; background: #152019; }
.effort-control button { font-size: 10px; color: #8fa996; padding: 6px 10px; min-height: 30px; }
.effort-control button + button { border-left: 1px solid #2b3b2f; }
.effort-control button[aria-checked="true"] { background: #2b4433; color: #d5e8d9; }
.effort-control button:hover { color: #d5e8d9; }
.mode-badge { font-size: 8px; letter-spacing: .06em; text-transform: uppercase; padding: 2px 6px; border-radius: 4px; color: #a4c1ad; background: #22352a; }
.mode-badge.deep { color: #d6c39a; background: #3a3526; }
.message-live { font-size: 10px; color: #8fb39b; margin-top: 6px; }
.message-actions { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 12px; margin-top: 7px; }
.message-actions button { font-size: 10px; color: #b7d3be; border: 1px solid #3c5544; border-radius: 6px; padding: 4px 9px; }
.message-actions button:hover { background: #22372a; }
.message-timing { font-size: 9px; color: #6f8a78; line-height: 1.5; }
.queue-note { font-size: 10px; color: #c9b88f; padding: 0 3px 8px; }
.earlier-row { display: flex; justify-content: center; padding-top: 10px; }
.now-card { border: 1px solid #2f4836; border-radius: 10px; padding: 12px; margin-bottom: 22px; background: #142019; }
.now-card p { font-size: 11px; color: #c6dacb; margin-top: 6px; line-height: 1.6; }
.now-card .now-detail { font-size: 9px; color: #7d9887; margin-top: 3px; }
.jobs-list { display: flex; flex-direction: column; gap: 6px; margin: 12px 0 24px; }
.job-row { display: flex; justify-content: space-between; gap: 8px; font-size: 10px; color: #9fb8a6; border: 1px solid #263629; border-radius: 8px; padding: 8px 10px; }
.job-row.failed { border-color: #5a4a36; color: #d4bf9c; }
.job-state { color: #6f8a78; text-align: right; overflow-wrap: anywhere; }
.goal-status.blocked { background: #3a3526; color: #d6c39a; }
.day-card .memory-content { white-space: pre-wrap; }
.search-modal { width: min(94vw, 640px); }
.search-field.big { margin-top: 16px; padding: 12px; }
.search-field.big input { font-size: 14px; }
.search-results { display: flex; flex-direction: column; gap: 6px; margin-top: 14px; max-height: 40dvh; overflow-y: auto; }
.search-result { text-align: left; border: 1px solid #2b3b2f; border-radius: 9px; padding: 10px 12px; background: #16221a; display: flex; flex-direction: column; gap: 4px; }
.search-result:hover { border-color: #4d6a55; }
.search-who { font-size: 9px; color: #7f9b88; }
.search-excerpt { font-size: 12px; color: #c3d4c7; line-height: 1.6; overflow-wrap: anywhere; }
.search-context { margin-top: 16px; border-top: 1px solid #2a3e31; padding-top: 14px; max-height: 45dvh; overflow-y: auto; display: flex; flex-direction: column; gap: 10px; }
.context-row { border-left: 2px solid #2b3b2f; padding-left: 10px; }
.context-row.focus { border-left-color: #a2c9ad; }
.context-text { font-size: 12px; line-height: 1.7; color: #c3d4c7; white-space: pre-wrap; overflow-wrap: anywhere; margin-top: 3px; }
.settings-section { border-top: 1px solid #2a3e31; margin-top: 17px; padding-top: 15px; }
.settings-section .section-heading h3 { font-size: 11px; }
.devices-list { display: flex; flex-direction: column; gap: 6px; margin: 10px 0; }
.device-row { display: flex; align-items: center; gap: 10px; font-size: 11px; color: #c3d4c7; }
.device-row .device-seen { flex: 1; font-size: 9px; color: #7f9b88; }
.device-row button { font-size: 10px; color: #e0b8a6; }
.pair-row { display: flex; gap: 8px; margin-top: 8px; }
.pair-row .text-input { flex: 1; }
.journal-focus { font-size: 11px; color: #d8e9dc; margin: 6px 0 4px; font-weight: 600; }
.journal-carry { font-size: 10px; color: #b9d2c0; margin-top: 8px; font-style: italic; }
.journal-outcome { font-size: 10px; color: #8fae98; margin-top: 4px; padding-left: 10px; border-left: 2px solid #2f4836; }
.identity-proposal { margin: 10px 0 14px; background: #1d3024; border: 1px solid #3f5f49; border-radius: 8px; padding: 10px 12px; }
.proposal-title { font-size: 12px; color: #d8e9dc; font-weight: 600; }
.proposal-reason { font-size: 11px; color: #b9d2c0; margin-top: 6px; line-height: 1.6; }
.proposal-text { font: inherit; font-size: 11px; color: #c6dacb; white-space: pre-wrap; overflow-wrap: anywhere; max-height: 220px; overflow: auto; margin: 8px 0; padding: 8px; background: #142019; border-radius: 6px; }
.pair-result { margin-top: 10px; font-size: 12px; color: #d8e9dc; background: #1d3024; border: 1px solid #3f5f49; border-radius: 8px; padding: 10px 12px; line-height: 1.6; }
.code-input { font-size: 20px; letter-spacing: .2em; text-transform: uppercase; text-align: center; }
.modal { max-height: 92dvh; overflow-y: auto; }
@media (max-width: 800px) {
  .app-shell { height: 100dvh; padding-top: env(safe-area-inset-top); }
  .composer-area { padding-bottom: calc(14px + env(safe-area-inset-bottom)); }
  .message-text { font-size: 15px; line-height: 1.7; }
  .message-name { font-size: 12px; }
  .message-time, .message-timing, .message-live { font-size: 11px; }
  #composer { font-size: 16px; }
  .effort-control button { font-size: 12px; min-height: 36px; padding: 6px 12px; }
  .send-button { height: 38px; font-size: 13px; }
  .stop-button { height: 36px; font-size: 12px; }
  .draft-toggle, .draft-status, .queue-note { font-size: 11px; }
  .composer-footnote { font-size: 10px; }
  .workspace-tabs button { font-size: 13px; padding: 14px 3px 13px; }
  .activity-summary, .memory-content, .goal-detail { font-size: 13px; }
  .journal-focus, .proposal-reason, .proposal-text { font-size: 13px; }
  .journal-carry, .journal-outcome { font-size: 12px; }
  .card-actions button, .message-actions button { font-size: 12px; padding: 7px 11px; }
  .memory-kind, .goal-status, .memory-source, .card-date, .activity-time, .activity-kind { font-size: 10px; }
  .panel-intro p, .panel-caption, .panel-empty p { font-size: 12px; }
  .search-field input { font-size: 16px; }
  .text-input { font-size: 16px; }
}
@media (max-width: 460px) {
  .composer-bottom { gap: 8px; }
  .effort-control { flex: 1; }
  .effort-control button { flex: 1; }
  .composer-actions { margin-left: auto; }
  .header-actions .connection-button span:last-child { max-width: 92px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
}
.pair-qr { display: block; width: min(260px, 100%); height: auto; margin: 12px auto 4px; border-radius: 10px; image-rendering: pixelated; }
.pair-code-line { font-size: 15px; letter-spacing: .12em; text-align: center; margin-top: 6px; color: #e5f0e7; }
.mode-badge.initiated { color: #b9cde6; background: #26323f; }
.settings-inline { display: flex; align-items: center; flex-wrap: wrap; gap: 8px; margin-top: 10px; font-size: 11px; color: #9fb8a6; }
.settings-inline .small-input { width: 120px; padding: 7px 9px; }
.settings-inline .tiny-input { width: 64px; padding: 7px 9px; }
