/* One screen, one conversation; only the conversation and sheet bodies scroll. */
.edition-v2[data-screen=assistant] .device{height:100dvh;min-height:0;overflow:hidden;margin:0 auto;border-radius:0}
.edition-v2[data-screen=assistant] #view{padding:0;min-height:0;height:calc(100dvh - 68px - 100px - env(safe-area-inset-bottom));overflow:hidden}
.agent-shell{height:100%;display:flex;flex-direction:column;background:linear-gradient(180deg,#f1f8f5,#f7fafc 35%);color:#193747}
.agent-header{display:flex;align-items:center;gap:10px;padding:12px 16px 8px;flex-shrink:0}
.agent-header>img{width:42px;height:42px;border-radius:50%;object-fit:cover;background:#e1f1e6}
.agent-header>div{flex:1}.agent-header h1{font-size:19px;line-height:1.4;margin:0;font-weight:750}.agent-header p{font-size:12px;line-height:1.5;color:#60776e;margin:3px 0 0}
.agent-button{min-height:44px;border:1px solid #dae6e1;border-radius:12px;padding:10px 13px;background:#fff;color:#315e50;font:inherit;font-size:14px;line-height:1.6;text-align:center;cursor:pointer;overflow-wrap:anywhere}
.agent-button.primary{background:#245e4d;border-color:#245e4d;color:white;width:100%;font-weight:650}.agent-button.quiet{border:0;background:#edf5f1;color:#336451}.agent-button.agent-more{border:0;background:none;min-width:44px;font-size:19px;padding:6px}
.agent-trip-status{display:flex;align-items:center;justify-content:space-between;gap:8px;flex-shrink:0;margin:0 16px 4px;padding:10px 12px;min-height:44px;border:1px solid #dce9dd;background:#eaf4eb;border-radius:12px;font-size:13px;color:#386849;text-align:left}.agent-trip-status span{font-size:12px;flex-shrink:0}
.agent-thread{flex:1;min-height:0;overflow-y:auto;overscroll-behavior:contain;padding:12px 16px 18px;scrollbar-width:thin;scroll-padding:16px}
.agent-message{margin:0 0 16px;display:flex;flex-direction:column;align-items:flex-start}.agent-message.user{align-items:flex-end}.agent-speaker{font-size:12px;color:#6b8077;margin:0 0 6px 2px}
.agent-bubble{max-width:100%;background:#fff;border:1px solid #e3ece8;border-radius:5px 18px 18px;padding:16px;box-shadow:0 3px 10px #294f3e04;font-size:15px;line-height:1.8;overflow-wrap:anywhere}
.agent-bubble p{margin:0 0 12px}.agent-bubble p:last-child{margin-bottom:0}.agent-bubble h2{font-size:20px;line-height:1.5;margin:0 0 12px;font-weight:700}.agent-message.user .agent-bubble{max-width:88%;background:#e1f0e7;border-color:#d4e6da;border-radius:17px 5px 17px 17px;padding:11px 15px;color:#24543f}
.agent-context{font-size:13px;color:#657c6e}.agent-suggestions{display:flex;flex-wrap:wrap;gap:8px;margin-top:14px}.agent-suggestions .agent-button{font-size:13px;padding:8px 10px;background:#f5faf7}
.agent-route{background:#f3f8f5;border-radius:13px;padding:14px;margin-top:14px}.agent-card-label{font-size:13px;color:#5d7768}.agent-route ol{padding-left:22px;margin:12px 0;font-size:14px;line-height:1.9}.agent-route p{font-size:12px;color:#65786c}
.agent-result{display:block;text-align:left;width:100%;padding:13px 12px;margin-top:10px;border:1px solid #dce7e0;background:#f7faf8;border-radius:12px;color:#274d3e;font:inherit;cursor:pointer}.agent-result b{display:flex;justify-content:space-between;gap:10px;font-size:15px;line-height:1.65}.agent-result>span{display:block;font-size:13px;line-height:1.75;color:#617769;margin-top:6px}
.agent-composer{flex-shrink:0;background:#fbfdfc;border-top:1px solid #e0e9e4;padding:4px 14px 3px}.agent-toolrow{display:flex;justify-content:space-between;gap:4px}.agent-toolrow .agent-button{min-height:40px;padding:8px;font-size:13px;border:0;background:none;color:#526f63}
.agent-composer form{display:flex;align-items:center;gap:8px;padding:6px 7px 6px 12px;background:white;border:1px solid #d8e5dd;border-radius:18px;min-height:56px}
.edition-v2 .agent-composer input{margin:0;padding:6px 0;width:0;min-width:0;min-height:36px;border:0;background:transparent;border-radius:0;flex:1;font-size:16px;color:#183e2c;line-height:1.5}
.agent-composer input::placeholder{font-size:14px;color:#7a8b80}.agent-send{border:0;border-radius:12px;width:44px;height:44px;flex-shrink:0;background:#245e4d;color:white;font-size:26px;line-height:1;cursor:pointer}.agent-disclosure{display:block;min-height:27px;font-size:11px;color:#647c6c;text-align:center;border:0;background:none;width:100%;padding:4px}
.agent-modal{position:fixed;inset:0;z-index:80;display:flex;align-items:flex-end;justify-content:center}.agent-backdrop{position:absolute;inset:0;border:0;background:#10281e66;cursor:pointer}.agent-sheet{position:relative;display:flex;flex-direction:column;width:min(100%,430px);max-height:88dvh;background:#fff;border-radius:24px 24px 0 0;box-shadow:0 -10px 40px #173c2520;padding-bottom:env(safe-area-inset-bottom)}
.agent-sheet>header{display:flex;align-items:center;justify-content:space-between;gap:10px;padding:15px 18px 10px;border-bottom:1px solid #edf1ee;flex-shrink:0}.agent-sheet h2{font-size:19px;line-height:1.5;margin:0}.agent-sheet .agent-close{width:44px;min-width:44px;font-size:25px;border:0;background:#f1f6f3;padding:0}.agent-sheet-body{padding:18px;overflow:auto;overscroll-behavior:contain;font-size:15px;line-height:1.8;min-height:0}.agent-sheet-body p{margin:0 0 16px}.agent-action-grid{display:grid;grid-template-columns:1fr 1fr;gap:10px;margin:16px 0}
.agent-sheet label{display:block;font-size:14px;color:#4c6657;margin:0 0 14px}.edition-v2 .agent-sheet select{width:100%;display:block;margin:6px 0 0;font-size:16px;min-height:48px}.agent-caption{font-size:12px!important;line-height:1.8;color:#65786b}.agent-current{display:flex;gap:12px;align-items:center;margin-bottom:18px}.agent-current img{width:88px;height:96px;border-radius:14px;object-fit:cover}.agent-current h3{font-size:18px;margin:6px 0}.agent-current p,.agent-current small{font-size:13px;color:#607668}.agent-narration h3{font-size:18px;margin:12px 0}.agent-narration p{font-size:16px;line-height:1.9}.agent-camera{height:330px}.agent-camera .buddy-overlay{padding:16px;bottom:18px}.agent-detail-image{width:100%;height:180px;object-fit:cover;border-radius:15px;margin-bottom:16px}
.agent-sr-only{position:absolute;width:1px;height:1px;overflow:hidden;clip-path:inset(50%)}.agent-modal .agent-backdrop:focus-visible{outline-offset:-4px}.agent-modal .agent-button:focus-visible,.agent-shell button:focus-visible{outline:3px solid #cb8f2c;outline-offset:2px}
@media(max-height:700px){.agent-header{padding-block:6px}.agent-header>img{width:34px;height:34px}.agent-thread{padding-top:6px}.agent-bubble{padding:13px}.agent-composer{padding-top:0}.agent-toolrow .agent-button{min-height:36px}.agent-disclosure{min-height:24px}}
@media(max-width:350px){.agent-header{padding-inline:14px}.agent-thread{padding-inline:12px}.agent-bubble{padding:14px}.agent-composer{padding-inline:10px}.agent-suggestions{gap:6px}.agent-suggestions .agent-button{font-size:13px}.agent-sheet-body{padding:16px}.agent-trip-status{margin-inline:12px}}
