/* One reading region per conversation mode; the composer remains mounted. */
.talk .talk-head { align-items: flex-start; padding: 16px; flex-wrap: nowrap; gap: 12px; }
.talk .talk-head > div { min-width: 0; flex: 1; }
.talk .talk-head .grow { display: none; }
.talk .talk-head .small { line-height: 1.5; margin-top: 4px; }
.talk .talk-head button { flex: 0 0 44px; min-height: 44px; }
.talk-navigation { display: flex; align-items: center; gap: 12px; justify-content: space-between; border-bottom: 1px solid var(--line); padding: 0 16px 12px; }
.talk-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 12px; background: var(--surface-2,var(--bg)); }
.talk-tabs button { min-height: 44px; border: 1px solid transparent; padding: 8px 12px; background: transparent; color: var(--ink-2); white-space: nowrap; }
.talk-tabs button[aria-selected=true] { background: var(--surface); border-color: var(--line); color: var(--blue); font-weight: 650; }
.talk-navigation > a { white-space: nowrap; }
.talk-chat { min-height: 0; flex: 1; display: flex; flex-direction: column; }
.talk .talk-list { flex: 1; min-height: 0; padding: 16px; overscroll-behavior: contain; }
.talk .talk-form { padding: 12px 16px 16px; flex-shrink: 0; }
.talk .talk-mem { flex: 1; min-height: 0; max-height: none; overflow-y: auto; overscroll-behavior: contain; padding: 16px; border-bottom: 0; line-height: 1.6; }
.talk .talk-mem h3 { margin: 16px 0 12px; font-size: 18px; }
.talk .talk-mem > button { min-height: 44px; }
.talk [hidden] { display: none !important; }
.memory-section { padding: 14px; margin-block: 16px; border: 1px solid var(--line); border-radius: 12px; background: var(--surface); overflow-wrap: anywhere; }
#aimem .memory-section h4, .talk-mem .memory-section h4 { margin: 0 0 10px; font-size: 15px; }
.memory-section .memlist { margin: 0; padding-left: 20px; }
.memory-section li { margin-block: 8px; line-height: 1.6; }
.talk button:focus-visible, .talk a:focus-visible, .talk [tabindex]:focus-visible { outline: 3px solid var(--blue); outline-offset: 2px; }
.mp-shop .shopping-controls { display: flex; align-items: end; flex-wrap: wrap; gap: 12px; margin-block: 16px; }
.mp-shop .shopping-controls label { margin: 0; }
.mp-shop .shopping-controls select { min-height: 44px; }
.shopping-item { padding: 12px 0; border-bottom: 1px solid var(--line); overflow-wrap: anywhere; }
.shopping-item .tick { align-items: flex-start; }
.shopping-package { margin: 8px 0 0 28px; padding: 10px 12px; border-radius: 10px; background: var(--surface-2,var(--bg)); font-size: 14px; line-height: 1.6; }
.shopping-package p { margin: 5px 0; }
.shopping-package a { display: inline-block; overflow-wrap: anywhere; }
.shopping-item .required { display: block; font-size: 14px; font-weight: normal; color: var(--ink-2); margin-top: 4px; }
@media(max-width:640px) { .talk { height: 100dvh; max-height: 100dvh; } .talk .talk-head { padding: 12px; } .talk-navigation { gap: 6px; padding: 0 10px 10px; } .talk-tabs button { padding-inline: 8px; font-size: 14px; } .talk .talk-form { padding-bottom: max(12px,env(safe-area-inset-bottom)); } }
@media(max-height:620px) { .talk-chat { overflow-y: auto; } .talk .talk-list { flex: 1 0 140px; overflow: visible; } }
