.jen-heading{align-items:center}.jen-status{display:flex;align-items:center;gap:8px;font-size:.78rem;white-space:nowrap;color:var(--muted)}.jen-status>span{width:8px;height:8px;border-radius:50%;background:#c19553}.jen-status.ready>span{background:#527c45}.jen-tabs{overflow-x:auto;flex-wrap:nowrap}.jen-tabs .tab{white-space:nowrap}.jen-welcome{padding:28px 30px;background:var(--forest);border-radius:14px;color:var(--paper);display:flex;justify-content:space-between;align-items:center;gap:26px}.jen-welcome .eyebrow{color:#d6dcb9}.jen-welcome h2{font-size:2rem;margin:7px 0 12px}.jen-welcome p:not(.eyebrow){max-width:580px;font-size:.9rem;line-height:1.7;color:#e0e6d7}.jen-welcome .actions{min-width:170px;flex-direction:column;align-items:stretch}.jen-welcome .btn{background:#f6f1dd;color:#234b38}.jen-welcome .btn.secondary{background:transparent;border-color:#829a79;color:#fff}.jen-stats{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px;margin:22px 0 32px}.jen-stats>button{border:1px solid var(--line);background:var(--paper);text-align:left;padding:20px 22px;border-radius:12px;color:var(--ink);cursor:pointer}.jen-stats strong{display:block;font-family:Georgia,serif;font-size:2rem;font-weight:400;line-height:1.2;margin-bottom:5px}.jen-stats span{font-size:.8rem;color:var(--muted)}.jen-columns{display:grid;grid-template-columns:minmax(0,1.15fr) minmax(0,1fr);gap:28px}.jen-section-head{display:flex;align-items:start;justify-content:space-between;gap:18px;margin-bottom:18px}.jen-section-head h2{font-size:1.7rem}.jen-section-head .hint{margin-top:8px}.jen-section-head>.actions{flex-shrink:0}.jen-record{display:flex;gap:18px;justify-content:space-between;padding:20px 21px;border:1px solid var(--line);border-radius:12px;background:var(--paper);margin-bottom:12px;min-width:0}.jen-record .grow{min-width:0}.jen-record h3{font-family:inherit;font-size:.95rem;line-height:1.5;overflow-wrap:anywhere}.jen-record>.actions{align-self:start;flex-direction:column;align-items:stretch}.jen-record .hint{margin:7px 0}.jen-excerpt{white-space:pre-line;font-size:.85rem;line-height:1.7;color:var(--muted);display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:3;overflow:hidden;overflow-wrap:anywhere}.jen-empty{border:1px dashed #c9d1bd;padding:28px 24px;border-radius:12px;background:#f3f4e9;color:var(--muted)}.jen-empty h3{font-family:Georgia,serif;font-weight:400;color:var(--ink);font-size:1.4rem;margin-bottom:9px}.jen-empty p{font-size:.85rem;line-height:1.7}.jen-note{padding:24px 6px}.jen-note h3{font-size:1.2rem;margin-bottom:8px}.jen-note p{font-size:.85rem;line-height:1.8;color:var(--muted);margin-bottom:10px}.jen-chat-layout{display:grid;grid-template-columns:210px minmax(0,1fr);gap:24px}.jen-conversations{display:flex;flex-direction:column;gap:7px;align-items:stretch}.jen-conversations>.btn{text-align:left;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere;font-size:.8rem}.jen-suggestions{border-top:1px solid var(--line);padding-top:16px;margin-top:12px;display:flex;flex-direction:column;align-items:start;gap:5px}.jen-chat{min-width:0}.jen-messages{display:flex;flex-direction:column;gap:16px;max-height:65vh;overflow-y:auto;padding:0 4px 16px;scrollbar-width:thin}.jen-message{padding:22px 24px;background:var(--paper);border:1px solid var(--line);border-radius:12px}.jen-message.jen-human{background:#eaf0df;margin-left:30px;border-color:#d8e2c9}.jen-message .eyebrow{margin-bottom:10px}.jen-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.9rem;line-height:1.85}.jen-sources{display:flex;flex-wrap:wrap;align-items:center;gap:7px;margin-top:15px;font-size:.72rem}.jen-sources>span{color:var(--muted);margin-right:3px}.jen-sources button{font:inherit;color:var(--forest);border:0;cursor:pointer;padding:4px 8px;border-radius:5px;background:#e9eee0;text-decoration:none;overflow-wrap:anywhere}.jen-working{display:flex;align-items:center;gap:10px;font-size:.82rem;color:var(--muted);padding:12px 3px 20px}.jen-working .btn{margin-left:auto}.jen-proposal{border:1px solid #d3b87b;border-left:4px solid #c49b50;background:#fffcf1;border-radius:10px;padding:24px;margin:16px 0}.jen-proposal h3{font-size:1.4rem;margin:8px 0 16px}.jen-proposal dl{margin:0 0 20px}.jen-proposal dl>div{display:grid;grid-template-columns:100px minmax(0,1fr);gap:12px;padding:8px 0;border-bottom:1px solid #e9e4d1;font-size:.82rem;line-height:1.7}.jen-proposal dt{color:var(--muted);text-transform:capitalize}.jen-proposal dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}.jen-proposal>.actions{margin-top:18px}.jen-proposal>.hint{margin-top:12px}.jen-composer{background:var(--paper);border:1px solid #b9c9ab;border-radius:12px;padding:18px;margin-top:20px}.jen-composer label{display:block;font-weight:600;font-size:.85rem;margin-bottom:9px}.jen-composer textarea{width:100%;min-height:90px;border:1px solid var(--line);border-radius:7px;padding:12px;resize:vertical;font:inherit;font-size:.9rem;background:#fffef8;color:var(--ink)}.jen-composer>.actions{justify-content:space-between;flex-wrap:nowrap;margin-top:12px}.jen-composer .hint{font-size:.72rem;max-width:65%}.jen-guide{padding-left:22px;font-size:.9rem;line-height:1.85}.jen-guide li{padding-left:5px;margin-bottom:14px}.jen-records{max-width:1000px}
@media(max-width:1150px){.jen-columns{grid-template-columns:1fr}.jen-chat-layout{grid-template-columns:170px minmax(0,1fr)}.jen-welcome{align-items:start}.jen-welcome .actions{min-width:150px}.jen-welcome h2{font-size:1.75rem}.jen-stats{gap:10px}.jen-stats>button{padding:18px}}
@media(max-width:760px){.jen-heading{display:block}.jen-status{margin-top:18px}.jen-welcome{display:block;padding:24px 21px}.jen-welcome h2{font-size:1.65rem}.jen-welcome .actions{flex-direction:row;flex-wrap:wrap;margin-top:19px}.jen-welcome p:not(.eyebrow){font-size:.85rem}.jen-stats{gap:7px;margin:16px 0 26px}.jen-stats>button{padding:14px 11px}.jen-stats strong{font-size:1.8rem}.jen-stats span{font-size:.7rem;line-height:1.5;display:block}.jen-section-head{flex-wrap:wrap;gap:9px}.jen-section-head h2{font-size:1.55rem}.jen-record{padding:17px;flex-direction:column;gap:10px}.jen-record>.actions{align-self:auto;flex-direction:row;flex-wrap:wrap;justify-content:flex-end}.jen-record h3{font-size:.9rem}.jen-chat-layout{display:flex;flex-direction:column;gap:17px}.jen-conversations{flex-direction:row;overflow-x:auto;padding-bottom:7px}.jen-conversations>.btn{flex-shrink:0;max-width:220px}.jen-suggestions{display:none}.jen-messages{max-height:60vh}.jen-message{padding:18px}.jen-message.jen-human{margin-left:18px}.jen-text{font-size:.86rem;line-height:1.8}.jen-proposal{padding:18px}.jen-proposal dl>div{grid-template-columns:75px minmax(0,1fr);gap:9px}.jen-composer{padding:15px}.jen-composer>.actions{gap:9px}.jen-working{flex-wrap:wrap}.jen-working .btn{margin-left:0}.jen-tabs{margin-bottom:22px}}

.jen-message-tools{display:flex;justify-content:flex-end;min-height:44px}.jen-message-tools [hidden]{display:none}#jen-conversation-list{display:flex;flex-direction:column;gap:7px;align-items:stretch}#jen-conversation-list>.btn{text-align:left;justify-content:flex-start;white-space:normal;overflow-wrap:anywhere;font-size:.8rem}
@media(max-width:760px){#jen-conversation-list{flex-direction:row}#jen-conversation-list>.btn{flex-shrink:0;max-width:220px}}
.jen-exact{font-size:.72rem;line-height:1.7;white-space:pre-wrap;overflow-wrap:anywhere}.jen-source-detail>div{padding:10px 0;border-bottom:1px solid var(--line);font-size:.85rem}.jen-source-detail dt{text-transform:capitalize;color:var(--muted);margin-bottom:5px}.jen-source-detail dd{margin:0;white-space:pre-wrap;overflow-wrap:anywhere}

.jen-call{border:1px solid #b8c9ad;background:#f0f4e8;border-radius:14px;padding:22px;margin-bottom:22px}.jen-call.is-listening{border-color:#8b4538;background:#fff4ed}.jen-call-head{display:flex;align-items:start;justify-content:space-between;gap:15px}.jen-call h3{font-size:1.4rem;line-height:1.5;margin:7px 0}.jen-call-head>.btn{flex-shrink:0}.jen-call .actions{margin:14px 0;flex-wrap:wrap}.jen-call .btn{min-height:48px}.jen-call .hint{font-size:.76rem;line-height:1.75;margin-top:10px}.jen-mic-status{font-size:.85rem;color:var(--muted)}.is-listening .jen-mic-status{color:#8b3023;font-weight:600}.jen-call .error{margin-top:14px}.jen-budget{padding:18px 0 5px;margin-top:15px}.jen-budget>.actions{justify-content:space-between;gap:12px;font-size:.8rem}.jen-budget-bar{display:block;width:100%;height:9px;margin:10px 0}.jen-budget>.hint{line-height:1.65;font-size:.72rem}.jen-usage{font-size:.76rem;color:var(--muted);margin:0 0 14px;line-height:1.7}.jen-usage summary{cursor:pointer;padding:7px 0}.jen-usage p{margin:5px 0}.jen-spend-options{font-size:.75rem;margin-top:12px;line-height:1.7}.jen-spend-options summary{cursor:pointer}.jen-spend-options label{display:flex;gap:10px;align-items:center;font-size:.78rem;margin-top:10px;font-weight:400}.jen-spend-options input{width:20px;height:20px;flex-shrink:0}.jen-spend-options .hint{max-width:none;font-size:.72rem}.jen-cost-preview{white-space:pre-wrap;overflow-wrap:anywhere;max-height:30vh;overflow-y:auto;padding:14px;border-left:3px solid var(--line);font-size:.85rem;margin:16px 0}.jen-proposal-body [hidden]{display:none}
@media(max-width:760px){.jen-call{padding:17px}.jen-call-head{gap:8px}.jen-call h3{font-size:1.2rem}.jen-call .actions{gap:9px}.jen-budget>.actions{align-items:start;flex-wrap:wrap}.jen-composer .jen-spend-options label{font-size:.77rem}}

/* Keep replies beside their composer; decisions have a separate, reachable section. */
.jen-message-tools{gap:8px;flex-wrap:wrap;align-items:center;min-height:0;padding-top:8px}
.jen-message-tools>.btn{min-height:44px}
.jen-message-tools:has(>.btn:not([hidden])){padding-bottom:8px}
.jen-decisions{margin-top:28px;scroll-margin-top:90px}
.jen-decisions[hidden]{display:none}
.jen-decisions>.jen-section-head{align-items:center;margin-bottom:8px}
.jen-decisions h3{font-size:1.45rem;scroll-margin-top:90px}
.jen-decisions h3:focus{outline:2px solid var(--forest);outline-offset:5px}
.jen-composer{scroll-margin-top:84px}
.jen-formatted{white-space:normal}
.jen-formatted>p,.jen-formatted>ul,.jen-formatted>ol,.jen-formatted>pre{margin:0 0 12px}
.jen-formatted>:last-child{margin-bottom:0}
.jen-formatted h4{font-family:inherit;font-size:1em;line-height:1.6;margin:16px 0 7px}
.jen-formatted h4:first-child{margin-top:0}
.jen-formatted ul,.jen-formatted ol{padding-left:1.4em}
.jen-formatted li+li{margin-top:5px}
.jen-formatted code{font-size:.9em;background:#edf0e5;border-radius:3px;padding:1px 4px}
.jen-formatted pre{white-space:pre-wrap;overflow-wrap:anywhere;background:#edf0e5;border-radius:6px;padding:12px}
.jen-formatted pre code{padding:0;background:none}
[data-jen-form="record"] .form-error{white-space:pre-line;scroll-margin:90px 0 24px}
@media(max-width:760px){
  .jen-messages{max-height:42vh;max-height:clamp(130px,42dvh,370px);gap:12px}
  .jen-message{padding:15px}
  .jen-composer{margin-top:10px;padding:12px}
  .jen-composer textarea{min-height:64px;height:76px;font-size:16px;max-height:40dvh}
  .jen-composer>.actions{margin-top:10px;align-items:center}
  .jen-composer .hint{max-width:58%;line-height:1.5}
  .jen-composer .jen-spend-options .hint{max-width:none}
  .jen-spend-options{margin-top:8px}
  .jen-working{padding:8px 3px 10px}
  .jen-usage{margin-bottom:8px}
  .jen-decisions{margin-top:23px}
}
@media(max-width:760px) and (max-height:520px){
  .jen-messages{max-height:28vh;max-height:28dvh}
  .jen-composer textarea{height:64px;min-height:54px}
  .jen-composer label{margin-bottom:6px}
}

/* Continuity controls share the existing chat, without moving its unsent composer. */
#jen-history-controls:empty,#jen-more-conversations:empty,#jen-recall-controls:empty{display:none}
#jen-history-controls{padding-bottom:10px}
#jen-more-conversations>.btn{min-height:44px}
.jen-turn-controls{margin-top:8px;display:flex;justify-content:flex-end}
.jen-turn-controls>.btn{min-height:44px}
.jen-recall-controls{font-size:.78rem;line-height:1.7;margin:18px 0 0}
.jen-recall-controls summary{cursor:pointer;padding:9px 0}
.jen-recall-controls .hint{margin:8px 0}
.jen-memory-section{margin:24px 0}
.jen-memory-section>.actions{justify-content:space-between;gap:12px;flex-wrap:wrap}
.jen-memory-section h3{font-size:1.3rem;margin:0 0 10px}
.jen-memory-card{padding:17px 0;border-bottom:1px solid var(--line)}
.jen-memory-card h4{font-size:.95rem;margin:10px 0}
.jen-memory-text{white-space:pre-wrap;overflow-wrap:anywhere;font-size:.88rem;line-height:1.75;margin:8px 0 14px}
.jen-memory-card .actions{gap:8px;flex-wrap:wrap}
#jen-memory-view .hint{line-height:1.75}
#jen-memory-text{min-height:110px;resize:vertical;width:100%;font:inherit;font-size:16px}
[data-jen-form="memory"] .form-error{white-space:pre-line}
@media(max-width:760px){
  #jen-more-conversations{flex-shrink:0;align-self:center}
  .jen-memory-card{padding:14px 0}
  .jen-memory-card .btn{min-height:44px}
  #jen-history-controls{padding-bottom:7px}
}
#jen-body>.jen-section-head>.actions{flex-wrap:wrap;flex-shrink:1;max-width:100%}
