.chat-history-loading{padding:18px 0}.chat-history-loading .skeleton-line{margin:18px 10px}.chat-sidebar .site-links,.chat-history-drawer .site-links{padding:12px 4px max(4px,env(safe-area-inset-bottom));flex-shrink:0;margin-top:auto}.chat-history-content{flex:1;min-height:0;overflow-y:auto}.chat-sidebar{flex-direction:column;display:flex;overflow:hidden!important}.chat-history-drawer[open]{flex-direction:column;display:flex;overflow:hidden}.chat-history-list{min-height:36px}.chat-layout{flex:1;grid-template-columns:260px minmax(0,1fr);width:100%;min-height:0;display:grid}.chat-layout.sidebar-collapsed{grid-template-columns:minmax(0,1fr)}.sidebar-collapsed .chat-sidebar{display:none}.chat-sidebar,.chat-history-drawer{background:var(--sidebar);padding:18px 12px;overflow-y:auto}.chat-sidebar{border-right:1px solid var(--line)}.chat-sidebar h2,.chat-history-drawer h2{color:var(--muted);letter-spacing:0;margin:24px 10px 10px;font-size:12px}.chat-new{justify-content:flex-start;width:100%;font-size:14px}.chat-history-list{gap:4px;display:grid}.chat-history-row{border-radius:8px;align-items:center;min-width:0;display:flex}.chat-history-row:has(a[aria-current=page]),.chat-history-row:hover{background:var(--surface2)}.chat-history-row a{text-overflow:ellipsis;white-space:nowrap;flex:1;min-width:0;padding:12px 10px;font-size:14px;overflow:hidden}.chat-history-row .icon-button{flex-shrink:0}.chat-history-drawer{width:min(300px,85vw);max-width:100%;height:100dvh;max-height:100dvh;color:var(--text);border:0;border-right:1px solid var(--line);margin:0;inset:0 auto 0 0}.chat-history-drawer::backdrop{background:#0008}.chat-panel{flex-direction:column;min-width:0;min-height:0;display:flex;position:relative}.chat-toolbar{z-index:1;display:flex;position:absolute;top:6px;left:6px}.chat-toolbar .icon-button{background:var(--bg);border-radius:8px}.chat-toolbar .mobile-history-toggle{display:none}.chat-workspace{flex-direction:column;flex:1;min-width:0;min-height:0;display:flex}.chat-messages{overscroll-behavior:contain;scrollbar-gutter:stable;flex:1;min-height:0;padding:12px max(24px,50% - 400px);overflow-y:auto}.chat-welcome{text-align:center;color:var(--muted);padding:clamp(32px,12vh,120px) 12px}.chat-welcome h2{color:var(--text);margin-bottom:12px;font-size:28px}.chat-bubble{overflow-wrap:anywhere;margin:12px 0;padding:18px 0;font-size:16px;line-height:1.75}.chat-bubble>strong{color:var(--muted);margin-bottom:8px;font-size:12px;display:block}.chat-bubble.user p{white-space:pre-wrap}.chat-bubble.user{background:var(--surface2);border-radius:18px;margin-left:12%;padding:16px 20px}.chat-compose-area{flex-shrink:0;width:min(848px,100%);margin:0 auto;padding:12px 24px 4px}.chat-compose-area .notice{max-height:100px;margin:8px 0;overflow:auto}@media (width<=899px){.chat-layout{grid-template-columns:minmax(0,1fr)}.chat-sidebar,.chat-toolbar .sidebar-toggle{display:none}.chat-toolbar .mobile-history-toggle{display:inline-flex}.chat-messages{padding:8px 16px}.chat-compose-area{padding:8px 12px 4px}.chat-bubble.user{margin-left:6%}}@media (width<=640px){.chat-welcome{padding:24px 0}}.chat-compose-area{padding-bottom:max(4px,env(safe-area-inset-bottom));position:relative}.chat-error-slot{height:0;position:relative;overflow:visible}.chat-error-slot .notice{z-index:2;background:var(--surface);border:1px solid var(--line);align-items:flex-start;gap:12px;margin:0;display:flex;position:absolute;bottom:86px;left:0;right:0}.chat-error-slot .notice>span{flex:1;min-width:0}.chat-error-slot .notice>.icon-button{flex-shrink:0}.chat-message-action{color:var(--muted);cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:6px;padding:8px;font-size:12px;display:inline-flex}.chat-message-action:hover{color:var(--text);background:var(--surface)}.chat-message-action:disabled{opacity:.5;cursor:default}.chat-recovery{flex-wrap:wrap;align-items:center;gap:8px;padding:4px 8px;font-size:12px;display:flex}.chat-history-actions{border:1px solid var(--line);background:var(--surface);width:164px;color:var(--text);border-radius:10px;gap:2px;margin:0;padding:6px;position:fixed;inset:auto;box-shadow:0 8px 24px #0005}.chat-history-actions:popover-open{display:grid}.chat-history-actions button{min-height:44px;color:inherit;text-align:left;cursor:pointer;background:0 0;border:0;border-radius:6px;align-items:center;gap:8px;padding:8px;display:flex}.chat-history-actions button:hover{background:var(--surface2)}.chat-signup-offer{background:linear-gradient(135deg,#b8a6ef1c,#b8a6ef06);border:1px solid #afa0df66;border-radius:16px;margin:16px 0 4px;padding:16px 12px}.chat-signup-offer strong{color:var(--text);text-wrap:balance;margin-bottom:14px;font-size:19px;line-height:1.35;display:block}.chat-signup-offer .button.primary{color:#292637;white-space:normal;text-align:start;background:#e1d9ff;border:1px solid #e1d9ff;border-radius:10px;justify-content:space-between;gap:8px;width:100%;min-height:44px;padding:10px;font-size:12px;display:flex}.chat-signup-offer .button.primary:hover{background:#eee8ff;border-color:#eee8ff}.chat-new{gap:10px;display:flex}.chat-history-row a>span[aria-label]{vertical-align:middle;margin-inline-end:6px;display:inline-flex}
