body:has(#playground.active) { overflow: hidden; }
body:has(#playground.active) main { padding-bottom: 12px; height: 100vh; overflow: hidden; display: flex; flex-direction: column; }
#playground.active ~ footer { display: none; }
#playground.tab-panel.active { display: flex; flex-direction: column; flex: 1; min-height: 0; overflow: hidden; }
.pg-container { display: flex; flex-direction: column; flex: 1; min-height: 0; height: 100%; gap: 10px; background: #ffffff; border-radius: 20px; padding: 12px 18px; overflow: hidden; }
.pg-toolbar { flex-shrink: 0; display: flex; align-items: center; justify-content: space-between; gap: 8px; flex-wrap: wrap; background: #f4f5f8; border-radius: 14px; padding: 6px 10px; }
.pg-toolbar-section { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; }
.pg-input-pill { display: flex; align-items: center; gap: 6px; background: #ffffff; border-radius: 10px; height: 32px; padding: 0 10px; }
.pg-input-pill input { border: 0; background: transparent; padding: 0; font-size: 12px; font-weight: 600; color: #1f1f1f; width: 170px; outline: none; }
.pg-icon { font-size: 16px; color: #0b57d0; }
.pg-tool-chip { display: flex; align-items: center; gap: 6px; background: #ffffff; border-radius: 10px; height: 32px; padding: 0 10px; font-size: 11px; font-weight: 600; color: #444746; cursor: pointer; }
.pg-tool-chip input[role="switch"] { width: 28px; height: 16px; padding: 2px; }
.pg-tool-chip input[role="switch"]::before { width: 12px; height: 12px; }
.pg-tool-chip input[role="switch"]:checked::before { transform: translateX(12px); }
.custom-dropdown { position: relative; }
.dd-trigger { display: flex; align-items: center; justify-content: space-between; gap: 8px; background: #ffffff; border: 0; border-radius: 10px; height: 32px; padding: 0 10px; cursor: pointer; }
.dd-trigger-text { display: flex; align-items: center; gap: 6px; }
.dd-label { font-size: 12px; font-weight: 700; color: #1f1f1f; }
.dd-sub { display: none; }
.dd-chevron { font-size: 18px; color: #747775; }
.dd-menu { position: absolute; top: calc(100% + 4px); left: 0; min-width: 200px; background: #ffffff; border-radius: 12px; box-shadow: 0 4px 16px rgba(0,0,0,0.08); z-index: 100; padding: 4px; display: flex; flex-direction: column; gap: 2px; }
.dd-item { padding: 6px 10px; border-radius: 8px; cursor: pointer; display: flex; align-items: center; justify-content: space-between; }
.dd-item:hover { background: #f0f3f9; }
.dd-item.selected { background: #d3e3fd; }
.dd-item.selected .dd-label { color: #041e49; }
.pg-chat { flex: 1; min-height: 0; overflow-y: auto; display: flex; flex-direction: column; gap: 14px; padding: 10px 4px 10px 0; }
.pg-chat::-webkit-scrollbar { width: 6px; }
.pg-chat::-webkit-scrollbar-thumb { background: rgba(0,0,0,0.12); border-radius: 9999px; }
.pg-empty { display: flex; flex-direction: column; align-items: center; justify-content: center; height: 100%; text-align: center; gap: 10px; }
.pg-empty-badge { width: 48px; height: 48px; border-radius: 50%; background: #d3e3fd; display: grid; place-items: center; color: #041e49; }
.pg-empty h3 { margin: 0; font-size: 18px; font-weight: 700; }
.pg-empty p { margin: 0; max-width: 440px; }
.pg-suggestions { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; margin-top: 12px; }
.pg-chip { display: inline-flex; align-items: center; gap: 6px; background: #f0f3f9; border: 0; border-radius: 9999px; padding: 6px 14px; font-size: 12px; font-weight: 600; color: #1f1f1f; cursor: pointer; transition: background .15s; }
.pg-chip .material-symbols-rounded { font-size: 16px; color: #0b57d0; }
.pg-chip:hover { background: #e3e8f2; }
.pg-msg { display: flex; flex-direction: column; max-width: 85%; }
.pg-msg.user { align-self: flex-end; }
.pg-msg.user .pg-msg-bubble { background: #d3e3fd; color: #041e49; border-radius: 16px 16px 4px 16px; padding: 10px 16px; font-size: 13px; line-height: 1.5; font-weight: 500; }
.pg-msg.assistant { align-self: flex-start; width: 100%; max-width: 90%; }
.pg-msg-surface { background: #f8f9fc; border-radius: 16px 16px 16px 4px; padding: 14px 18px; font-size: 13px; line-height: 1.6; }
.pg-msg-top { display: flex; align-items: center; justify-content: space-between; margin-bottom: 8px; }
.pg-model-tag { display: flex; align-items: center; gap: 6px; font-size: 11px; font-weight: 700; color: #0b57d0; }
.pg-copy-btn { background: transparent; border: 0; width: 28px; height: 28px; border-radius: 50%; display: grid; place-items: center; color: #747775; cursor: pointer; }
.pg-copy-btn:hover { background: #eceff5; color: #1f1f1f; }
.pg-copy-btn .material-symbols-rounded { font-size: 16px; }
.pg-thought { background: #ffffff; border-radius: 10px; padding: 8px 12px; margin-bottom: 10px; font-size: 12px; }
.pg-thought summary { font-size: 11px; font-weight: 700; color: #5f6368; cursor: pointer; display: flex; align-items: center; gap: 6px; user-select: none; }
.pg-thought-inner { margin-top: 8px; color: #444746; font-size: 12px; line-height: 1.6; }
.pg-search-bar { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; background: #e8f0fe; border-radius: 8px; padding: 6px 10px; font-size: 11px; color: #0b57d0; margin-bottom: 10px; }
.pg-search-tag { background: #ffffff; border-radius: 6px; padding: 2px 8px; font-weight: 600; }
.pg-text { word-break: break-word; color: #1f1f1f; }
.pg-text p { margin: 6px 0; }
.pg-text pre { background: #ffffff; border-radius: 8px; padding: 10px 14px; overflow-x: auto; font-family: monospace; font-size: 12px; margin: 8px 0; }
.pg-text code { background: #eef2f9; color: #0b57d0; padding: 2px 6px; border-radius: 4px; font-size: 12px; font-family: monospace; }
.pg-meta { font-size: 10px; color: #747775; margin-top: 8px; }
.pg-error { color: #b3261e; background: #ffe9e5; padding: 8px 12px; border-radius: 8px; font-size: 11px; font-weight: 600; margin-top: 8px; }
.pg-dock { flex-shrink: 0; display: flex; align-items: center; gap: 8px; background: #f4f5f8; border-radius: 24px; padding: 6px 8px 6px 16px; }
.pg-dock textarea { flex: 1; border: 0; background: transparent; resize: none; font-size: 13px; line-height: 1.4; color: #1f1f1f; outline: none; padding: 4px 0; max-height: 120px; font-family: inherit; }
.pg-dock-actions { display: flex; align-items: center; gap: 4px; }
.pg-send-btn, .pg-stop-btn { width: 34px; height: 34px; border-radius: 50%; border: 0; display: grid; place-items: center; cursor: pointer; transition: transform .1s; }
.pg-send-btn { background: #0b57d0; color: #ffffff; }
.pg-send-btn:hover { background: #0842a0; transform: scale(1.05); }
.pg-stop-btn { background: #b3261e; color: #ffffff; }
.pg-send-btn .material-symbols-rounded, .pg-stop-btn .material-symbols-rounded { font-size: 18px; }
