/* 切换模型 / 思考深度: chips above the input, bottom sheets like RikkaHub's. */
.chat-quick {display:flex;gap:8px;padding:0 2px 6px;overflow-x:auto;scrollbar-width:none;}
.chat-quick::-webkit-scrollbar {display:none;}
.chat-quick-chip {display:inline-flex;align-items:center;gap:6px;max-width:62%;min-height:32px;padding:4px 12px;border:1px solid var(--mint-light);border-radius:16px;background:var(--card-solid,#fff);color:var(--text2);font:inherit;font-size:13px;line-height:1.2;cursor:pointer;flex-shrink:0;white-space:nowrap;-webkit-tap-highlight-color:transparent;}
.chat-quick-chip span {overflow:hidden;text-overflow:ellipsis;}
.chat-quick-chip svg {width:15px;height:15px;flex-shrink:0;color:var(--accent-deep,var(--accent));}

.maison-sheet {margin:auto auto 0!important;width:100%!important;max-width:640px;max-height:84vh;max-height:84dvh;border-radius:24px 24px 0 0!important;border-bottom:0!important;}
/* Safari collapses a flex:1 child of a column with no set height to nothing, which
   left only the title and a sliver of list: the list sheet gets a real height, and
   sheet contents size from what they hold. */
#model-sheet {height:84vh;height:min(84dvh,720px);}
.maison-sheet[open] {animation:sheet-up .2s ease-out;}
@keyframes sheet-up {from {transform:translateY(32px);opacity:.5;} to {transform:none;opacity:1;}}
.maison-sheet .dialog-content {flex:1 1 auto;min-height:0;padding:12px 16px calc(16px + env(safe-area-inset-bottom));}
.maison-sheet [hidden] {display:none!important;}
.maison-sheet .layer-hint:empty {display:none;}
#msheet-search {width:100%;min-height:48px;padding:10px 18px;border:1px solid var(--mint-light);border-radius:24px;background:var(--card-solid,#fff);color:var(--text);font:inherit;font-size:16px;box-sizing:border-box;}
.msheet-group {display:flex;align-items:baseline;gap:8px;margin:18px 4px 4px;}
.msheet-group strong {color:var(--accent-deep,var(--text));font-size:15px;overflow-wrap:anywhere;}
.msheet-group small {flex:1;color:var(--text3);font-size:12px;}
.msheet-group button {flex-shrink:0;min-height:36px;border:0;background:none;color:var(--accent-deep,var(--text));font:inherit;font-size:13px;cursor:pointer;}
.msheet-row {display:flex;align-items:center;gap:4px;margin:6px 0;border:1px solid var(--mint-light);border-radius:16px;background:var(--card-solid,#fff);}
.msheet-row[aria-selected="true"] {background:var(--mint-light);border-color:var(--accent);}
.msheet-pick {flex:1;min-width:0;display:flex;flex-direction:column;align-items:flex-start;gap:2px;min-height:56px;padding:8px 14px;border:0;background:none;color:var(--text);font:inherit;text-align:left;cursor:pointer;}
.msheet-model {max-width:100%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-size:15px;}
.msheet-pick small {font-size:12px;color:var(--text3);}
.msheet-heart {width:48px;height:48px;flex-shrink:0;display:grid;place-items:center;border:0;background:none;color:var(--text3);cursor:pointer;}
.msheet-heart svg {width:22px;height:22px;}
.msheet-heart[aria-pressed="true"] {color:#D9534F;}
.msheet-heart[aria-pressed="true"] svg {fill:currentColor;}
.msheet-toggle {justify-content:space-between;min-height:52px;padding:6px 14px;cursor:pointer;}
.msheet-toggle .msheet-model {flex:1;min-width:0;}
.maison-sheet .dialog-content .msheet-toggle input {width:22px!important;height:22px;flex-shrink:0;accent-color:var(--accent);}
.msheet-add-typed {display:block;width:100%;min-height:48px;margin:8px 0;border:1px dashed var(--accent);border-radius:16px;background:none;color:var(--accent-deep,var(--text));font:inherit;cursor:pointer;overflow-wrap:anywhere;}
.think-body {text-align:center;}
.think-bulb svg {width:44px;height:44px;margin-top:8px;color:var(--accent);}
#think-label {margin:4px 0 18px;font-size:22px;font-weight:600;color:var(--text);}
#think-range {width:100%;height:32px;accent-color:var(--accent);}
.think-ticks {display:flex;justify-content:space-between;margin-top:2px;font-size:11px;color:var(--text3);}
#think-follow {margin-top:12px;min-height:44px;padding:8px 16px;border:1px solid var(--mint-light);border-radius:14px;background:var(--card-solid,#fff);color:var(--accent-deep,var(--text));font:inherit;cursor:pointer;}
