/* Compact sidebar and mobile controls. */
.sidebar{padding:18px 14px 10px}.sidebar .new-chat{margin:18px 0 16px;padding:11px}.chat-list{min-height:0}.sidebar-bottom{padding-top:8px;flex-shrink:0}.sidebar-bottom>#admin-button{padding:6px;margin-bottom:6px}.sidebar-budget{border:1px solid #3f5446;border-radius:12px;overflow:hidden;background:#ffffff04}.sidebar-budget .budget-card{border:0;border-radius:0;padding:10px 12px;background:transparent}.sidebar-budget .budget-card-top{margin-bottom:4px}.sidebar-budget .budget-card-title{font-size:10px;letter-spacing:0}.sidebar-budget .budget-icon{display:none}.sidebar-budget .budget-card-main{margin-bottom:5px}.sidebar-budget .budget-value{font-size:20px;line-height:1.3}.sidebar-budget .budget-value small{font-size:10px}.sidebar-budget .budget-percent{font-size:10px;padding:2px 5px}.sidebar-budget .budget-track{height:3px;margin:5px 0}.sidebar-budget .budget-card-foot{font-size:9px;gap:1px}.sidebar-budget .badge{font-size:9px;padding:3px 6px}.budget-links{display:flex;border-top:1px solid #ffffff12}.budget-links a{flex:1;color:#b3ccbb;text-decoration:none;text-align:center;padding:7px 4px;font-size:11px}.budget-links a:hover{background:#ffffff0a;color:#fff}.budget-links a+a{border-left:1px solid #ffffff12}.sidebar .account{padding:12px 4px 0}.account-billing-links{display:flex;gap:8px;flex-wrap:wrap;margin:14px 0 18px}.account-billing-links a{flex:1;min-width:130px;text-decoration:none;text-align:center;padding:10px 12px;border:1px solid var(--border);border-radius:8px;color:var(--text);background:var(--sage);font-size:12px}.account-billing-links a:hover{border-color:var(--accent)}a.topbar-brand{text-decoration:none}
@media(max-width:700px){
 .sidebar{width:min(300px,calc(100vw - 44px))}.sidebar .brand{font-size:20px}.sidebar .new-chat{margin:16px 0 14px}.sidebar .history-heading{padding-bottom:7px}.sidebar .chat-search{padding:9px 10px}.sidebar .account .avatar{width:30px;height:30px}.topbar{gap:7px;padding:0 10px;height:56px;min-width:0}.topbar .topbar-brand{font-size:12px;gap:6px;white-space:nowrap;flex-shrink:0}.topbar .topbar-brand img{width:24px;height:24px}.topbar .current-chat-title{display:none}.topbar-right{gap:3px;min-width:0}.topbar .topbar-btn{width:36px;height:36px;padding:0;display:inline-flex;align-items:center;justify-content:center;flex-shrink:0}.topbar .topbar-btn span{display:none}.topbar #header-budget{display:none}.topbar #menu-toggle{width:32px;height:36px;flex-shrink:0}
 .composer-wrap{padding:8px 10px 10px;min-width:0;width:100%}.composer{padding:12px;min-width:0}.composer-bottom{display:grid;grid-template-columns:minmax(0,1fr) 40px;gap:9px 6px;align-items:center}.composer-bottom .composer-model{grid-column:1/-1;grid-row:1;width:100%;max-width:none;height:36px;justify-content:flex-start;min-width:0;padding:0 10px}.composer-bottom #selected-model{display:block;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;font-size:12px}.composer-bottom .model-chevron{margin-left:auto}.composer-bottom .composer-actions{grid-column:1;grid-row:2;display:flex;justify-content:space-between;width:100%;gap:4px;margin:0;min-width:0;flex-shrink:1}.composer-bottom .composer-actions>button{width:40px;height:40px;min-width:0;padding:0;flex:0 1 40px;display:inline-flex;align-items:center;justify-content:center;border-radius:9px}.composer-bottom .composer-actions>button svg{width:19px;height:19px;flex-shrink:0}.composer-bottom .upload-button span{display:none}.composer-bottom #send-button,.composer-bottom #stop-button{grid-column:2;grid-row:2;width:40px;height:40px;margin:0}.composer-bottom .stream-status{grid-column:1/-1;grid-row:3;max-width:none;width:100%;font-size:10px}.composer-bottom .stream-status:empty{display:none}.composer-note{margin-top:6px}
}
@media(max-width:360px){.composer-bottom{grid-template-columns:minmax(0,1fr) 36px}.composer-bottom .composer-actions>button,.composer-bottom #send-button,.composer-bottom #stop-button{width:36px;height:36px}.composer-bottom .composer-actions>button{flex-basis:36px}}
.sidebar-budget .budget-value{margin:0}.sidebar-budget .budget-caption,.sidebar-budget .weekly-mini{margin:0;padding:0}.sidebar-budget .weekly-mini:empty{display:none}.sidebar-budget .budget-card-foot{line-height:1.25}

.admin-wallet-actions{border-top:1px solid var(--border);padding-top:12px;margin-top:12px}.admin-wallet-meta{display:flex;align-items:center;gap:14px;flex-wrap:wrap;margin-bottom:10px;font-size:13px}.admin-wallet-adjust{display:flex;flex-wrap:wrap;gap:8px}.admin-wallet-adjust input{padding:9px;border-radius:7px;border:1px solid var(--border);font-size:12px}.admin-wallet-adjust .admin-balance-amount{width:120px}.admin-wallet-adjust .admin-balance-note{width:220px}.admin-payment-pages{display:flex;align-items:center;justify-content:space-between;gap:12px;margin-top:18px;font-size:12px}.admin-payments-table{font-size:12px;min-width:760px}.admin-payments-table td{white-space:pre-line;vertical-align:top;max-width:230px;overflow-wrap:anywhere}.payment-reference{font-family:monospace;font-size:10px}.payment-state{display:inline-block;padding:4px 7px;border-radius:5px;background:#e6edf3;color:#415269;white-space:nowrap}.state-succeeded{background:#d8f4e0;color:#166534}.state-pending{background:#fef3c7;color:#854d0e}.state-canceled,.state-expired{background:#f1e8e8;color:#7c4141}.admin-tabs{flex-wrap:wrap}#admin-payment-status{padding:8px;border:1px solid var(--border);border-radius:7px;font-size:12px}@media(max-width:700px){#admin-payment-search{flex-wrap:wrap}#admin-payment-query{min-width:100%;width:100%}.admin-wallet-adjust .admin-balance-note{width:100%}.admin-payment-pages{font-size:11px}.admin-wallet-meta{align-items:start;flex-direction:column;gap:7px}}
