:root{color-scheme:dark;--bg: #0b0d10;--surface: #14171c;--surface-hover: #1a1e24;--border: #252b34;--text: #f0f2f5;--text-muted: #9aa3ad;--accent: #3b82f6;--accent-hover: #2563eb;--danger: #ef4444;--danger-hover: #dc2626;--success: #22c55e;--radius: 10px;--shadow: 0 4px 24px rgba(0, 0, 0, .35);--font-mono: ui-monospace, SFMono-Regular, Menlo, Monaco, Consolas, monospace;--font-sans: -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, "Helvetica Neue", Arial, sans-serif;--tok-key: #6cb2ff;--tok-string: #7ee787;--tok-number: #e3b341;--tok-literal: #d2a8ff}:root[data-theme=light]{color-scheme:light;--bg: #f4f6f8;--surface: #ffffff;--surface-hover: #edf0f3;--border: #dfe3e9;--text: #1f2429;--text-muted: #64707c;--danger: #dc2626;--success: #16a34a;--shadow: 0 4px 16px rgba(15, 23, 42, .08);--tok-key: #0550ae;--tok-string: #116329;--tok-number: #953800;--tok-literal: #8250df}:root[data-theme=light] .banner.error{background:#dc262614;color:#b91c1c;border-bottom-color:#dc262640}:root[data-theme=light] .banner.warning{background:#eab30814;color:#a16207;border-bottom-color:#eab30840}:root[data-theme=light] .error{color:#dc2626}:root[data-theme=light] .detail-header{background:var(--surface)}:root[data-theme=light] .request-item.active{background:#2563eb1a}:root[data-theme=light] .response-card{background:#fff}:root[data-theme=light] .connection-badge.live{background:#22c55e1f;color:#15803d}:root[data-theme=light] .connection-badge.connecting{background:#eab3081f;color:#a16207}:root[data-theme=light] .connection-badge.disconnected{background:#ef44441f;color:#b91c1c}*{box-sizing:border-box}html,body,#root{height:100%;margin:0}body{background:var(--bg);color:var(--text);font-family:var(--font-sans);font-size:14px;line-height:1.5;-webkit-font-smoothing:antialiased}.app{display:flex;flex-direction:column;height:100%}.onboarding{position:relative;align-items:center;justify-content:center;padding:2rem}.onboarding-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow);padding:3rem;max-width:560px;text-align:center;width:100%}.brand{display:flex;align-items:center;gap:.75rem}.logo{font-size:1.75rem;line-height:1}.brand-name{font-size:1.25rem;font-weight:700}.onboarding-card .brand{justify-content:center;margin-bottom:.75rem}.onboarding-card h1{font-size:1.75rem;margin:0}.tagline{color:var(--text-muted);margin:0 0 1.25rem}.description{color:var(--text-muted);margin:0 0 1.75rem;line-height:1.6}.divider{display:flex;align-items:center;gap:.75rem;margin:1rem 0;color:var(--text-muted);font-size:.85rem}.divider:before,.divider:after{content:"";flex:1;height:1px;background:var(--border)}.hint{color:var(--text-muted);font-size:.8rem;margin:.5rem 0 0}.primary-button,.secondary-button,.url-field button,.text-button{border:none;border-radius:6px;cursor:pointer;font-family:inherit;font-size:.95rem;font-weight:500;padding:.55rem 1rem;transition:background .15s ease,transform .05s ease}.primary-button{background:var(--accent);color:#fff;width:100%}.primary-button:hover:not(:disabled){background:var(--accent-hover)}.secondary-button{background:var(--surface-hover);color:var(--text);border:1px solid var(--border)}.secondary-button.full-width{width:100%}.secondary-button:hover{background:var(--border)}.text-button{background:transparent;color:var(--text-muted);padding:.35rem .6rem;font-size:.85rem}.text-button:hover{color:var(--text);background:var(--surface-hover)}.text-button.danger{color:var(--danger)}.text-button.danger:hover{background:#ef44441a}button:disabled{opacity:.6;cursor:not-allowed}.theme-toggle{display:inline-flex;align-items:center;justify-content:center;flex-shrink:0;background:var(--surface-hover);border:1px solid var(--border);border-radius:6px;color:var(--text-muted);cursor:pointer;padding:.5rem;transition:background .15s ease,color .15s ease}.theme-toggle:hover{color:var(--text);background:var(--border)}.theme-toggle svg{width:16px;height:16px;display:block}.onboarding .theme-toggle{position:absolute;top:1.25rem;right:1.25rem}.top-bar{display:flex;align-items:center;justify-content:space-between;gap:1.5rem;padding:.875rem 1.25rem;background:var(--surface);border-bottom:1px solid var(--border);flex-shrink:0}.session-controls{display:flex;align-items:center;gap:.75rem;flex:1;justify-content:flex-end}.url-copy{display:flex;flex-direction:column;gap:.25rem;min-width:0}.url-label{color:var(--text-muted);font-size:.75rem;text-transform:uppercase;letter-spacing:.03em}.url-field{display:flex;border-radius:6px;overflow:hidden;border:1px solid var(--border);background:var(--bg)}.url-field input{background:transparent;border:none;color:var(--text);font-family:var(--font-mono);font-size:.9rem;padding:.5rem .75rem;min-width:280px;max-width:420px;width:32vw;outline:none}.url-field button{background:var(--accent);color:#fff;border-radius:0;padding:.5rem .9rem}.url-field button.copied{background:var(--success)}.url-field button:hover:not(.copied){background:var(--accent-hover)}.connection-badge{display:inline-flex;align-items:center;gap:.4rem;padding:.35rem .65rem;border-radius:999px;font-size:.8rem;font-weight:600;flex-shrink:0}.connection-badge .dot{width:7px;height:7px;border-radius:50%;background:currentColor}.connection-badge.live{background:#22c55e26;color:#4ade80}.connection-badge.connecting{background:#eab30826;color:#facc15}.connection-badge.disconnected{background:#ef444426;color:#fca5a5}.banner{padding:.6rem 1.25rem;font-size:.9rem;flex-shrink:0}.banner.error{background:#ef44441f;color:#fca5a5;border-bottom:1px solid rgba(239,68,68,.2)}.banner.warning{background:#eab3081f;color:#facc15;border-bottom:1px solid rgba(234,179,8,.2)}.workspace{display:grid;grid-template-columns:0 1fr 0;gap:.75rem;padding:.75rem;flex:1;min-height:0;overflow:hidden}.workspace.left-open{grid-template-columns:300px 1fr 0}.workspace.right-open{grid-template-columns:0 1fr 320px}.workspace.left-open.right-open{grid-template-columns:300px 1fr 320px}.side-tab{display:flex;align-items:center;justify-content:center;gap:.4rem;writing-mode:vertical-rl;text-orientation:mixed;background:var(--surface);border:1px solid var(--border);color:var(--text-muted);cursor:pointer;font-family:inherit;font-size:.8rem;font-weight:600;padding:.75rem .35rem;border-radius:var(--radius);transition:background .15s ease,color .15s ease,transform .15s ease;z-index:5}.side-tab:hover{background:var(--surface-hover);color:var(--text);transform:translate(2px)}.side-tab.right:hover{transform:translate(-2px)}.side-tab.left{border-radius:0 var(--radius) var(--radius) 0;border-left:none;grid-column:1;grid-row:1}.side-tab.right{border-radius:var(--radius) 0 0 var(--radius);border-right:none;grid-column:3;grid-row:1}.side-tab-count{background:var(--border);color:var(--text-muted);border-radius:999px;padding:.1rem .4rem;font-size:.7rem;transform:rotate(180deg)}.request-list,.response-panel,.request-detail{display:flex;flex-direction:column;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden;box-shadow:var(--shadow)}.request-list,.response-panel{transition:width .2s ease,opacity .2s ease}.request-list{grid-column:1;grid-row:1}.response-panel{grid-column:3;grid-row:1}.request-detail{grid-column:2;grid-row:1}.request-list.collapsed,.response-panel.collapsed{width:0;padding:0;border:none;opacity:0;overflow:hidden}.panel-header{display:flex;align-items:center;justify-content:space-between;padding:.75rem 1rem;border-bottom:1px solid var(--border);flex-shrink:0}.panel-header h2{margin:0;font-size:.95rem;font-weight:600}.panel-close{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:1px solid var(--border);border-radius:4px;color:var(--text-muted);cursor:pointer;font-size:1.1rem;line-height:1;padding:.15rem .35rem;transition:background .15s ease,color .15s ease}.panel-close:hover{background:var(--surface-hover);color:var(--text)}.list-header{display:flex;align-items:center;gap:.5rem}.list-header h2{margin:0;font-size:.95rem;font-weight:600}.count{background:var(--border);color:var(--text-muted);border-radius:999px;font-size:.75rem;font-weight:600;padding:.15rem .55rem}.list-actions{display:flex;justify-content:flex-end;padding:.5rem 1rem;border-bottom:1px solid var(--border);flex-shrink:0}.request-list ul{list-style:none;margin:0;padding:0;overflow-y:auto;flex:1}.request-item{display:flex;align-items:center;gap:.6rem;padding:.75rem 1rem;border-bottom:1px solid var(--border);cursor:pointer;transition:background .1s ease;position:relative}.request-item:hover{background:var(--surface-hover)}.request-item.active{background:#3b82f61a;border-left:3px solid var(--accent);padding-left:calc(1rem - 3px)}.request-item:hover .request-delete{opacity:1;visibility:visible}.method-badge{font-family:var(--font-mono);font-size:.7rem;font-weight:700;padding:.2rem .4rem;border-radius:4px;text-transform:uppercase;flex-shrink:0}.method-badge.large{font-size:.85rem;padding:.35rem .55rem}.request-main{flex:1;min-width:0;display:flex;flex-direction:column;gap:.15rem}.request-path{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;font-family:var(--font-mono);font-size:.85rem;color:var(--text)}.request-origin{color:var(--text-muted);font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.request-time{color:var(--text-muted);font-size:.75rem;flex-shrink:0}.request-delete{display:inline-flex;align-items:center;justify-content:center;background:transparent;border:none;color:var(--danger);cursor:pointer;padding:.35rem;border-radius:4px;opacity:0;visibility:hidden;transition:opacity .15s ease,background .15s ease}.request-delete:hover{background:#ef44441f}.request-delete svg{width:14px;height:14px;display:block}.detail-header{padding:1.25rem 1.5rem;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.detail-title-row{display:flex;align-items:flex-start;justify-content:space-between;gap:1rem;margin-bottom:1rem}.detail-title{display:flex;align-items:center;gap:.75rem;min-width:0}.detail-title h2{margin:0;font-size:1.15rem;font-weight:600;word-break:break-all}.detail-actions{display:flex;gap:.5rem;flex-shrink:0}.detail-meta{display:grid;grid-template-columns:repeat(auto-fill,minmax(170px,1fr));gap:1rem}.meta-item{display:flex;flex-direction:column;gap:.15rem}.meta-label{color:var(--text-muted);font-size:.7rem;text-transform:uppercase;letter-spacing:.04em}.meta-value{color:var(--text);font-size:.85rem;font-family:var(--font-mono)}.detail-tabs{display:flex;flex-direction:column;flex:1;min-height:0}.tab-bar{display:flex;gap:.25rem;padding:.75rem 1.5rem 0;border-bottom:1px solid var(--border);background:var(--surface);flex-shrink:0}.tab-bar button{background:transparent;border:none;border-bottom:2px solid transparent;color:var(--text-muted);cursor:pointer;font-family:inherit;font-size:.9rem;font-weight:500;padding:.6rem 1rem;margin-bottom:-1px;transition:color .15s ease,border-color .15s ease,background .15s ease}.tab-bar button:hover{color:var(--text);background:var(--surface-hover);border-radius:6px 6px 0 0}.tab-bar button.active{color:var(--text);border-bottom-color:var(--accent);background:var(--bg);border-radius:6px 6px 0 0}.tab-body{padding:1rem 1.5rem 1.5rem;overflow-y:auto;flex:1}.response-card{padding:1rem;display:flex;flex-direction:column;gap:.9rem;overflow-y:auto;flex:1}.response-field{display:flex;flex-direction:column;gap:.35rem}.response-field label{color:var(--text-muted);font-size:.75rem;font-weight:600;text-transform:uppercase;letter-spacing:.03em}.response-field input,.response-field select,.response-field textarea{background:var(--bg);border:1px solid var(--border);border-radius:6px;color:var(--text);font-family:var(--font-mono);font-size:.85rem;padding:.5rem .65rem;outline:none;resize:vertical}.response-field input:focus,.response-field select:focus,.response-field textarea:focus{border-color:var(--accent);box-shadow:0 0 0 2px #3b82f633}.response-field select{cursor:pointer}.response-field select option,.response-field select optgroup{background:var(--surface);color:var(--text)}.response-field textarea{line-height:1.5}.ttl-display{display:flex;align-items:center;justify-content:space-between;gap:.5rem;background:var(--bg);border:1px solid var(--border);border-radius:6px;padding:.45rem .65rem}.ttl-remaining{color:var(--text-muted);font-size:.85rem;font-family:var(--font-mono)}.body-tab{display:flex;flex-direction:column;gap:.75rem}.body-toolbar{display:flex;align-items:center;gap:.75rem}.segmented-control{display:inline-flex;background:var(--bg);border:1px solid var(--border);border-radius:6px;overflow:hidden}.segmented-control button{background:transparent;border:none;color:var(--text-muted);cursor:pointer;font-family:inherit;font-size:.8rem;font-weight:500;padding:.35rem .75rem;transition:background .15s ease,color .15s ease}.segmented-control button:hover{color:var(--text)}.segmented-control button.active{background:var(--accent);color:#fff}.body-panel{background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);overflow:auto;max-height:60vh}.body-panel pre{margin:0;padding:1rem;font-family:var(--font-mono);font-size:.85rem;line-height:1.6;color:var(--text);white-space:pre-wrap;word-break:break-word}.json-view .tok-key{color:var(--tok-key)}.json-view .tok-string{color:var(--tok-string)}.json-view .tok-number{color:var(--tok-number)}.json-view .tok-literal{color:var(--tok-literal)}.kv-table{width:100%;border-collapse:collapse;background:var(--bg);border:1px solid var(--border);border-radius:var(--radius);overflow:hidden}.kv-table th,.kv-table td{padding:.65rem .9rem;border-bottom:1px solid var(--border);font-size:.85rem;vertical-align:top;text-align:left}.kv-table thead th{background:var(--surface-hover);color:var(--text-muted);font-weight:600;text-transform:uppercase;letter-spacing:.03em;font-size:.75rem}.kv-table tbody tr:last-child td{border-bottom:none}.kv-key{width:220px;color:var(--text-muted);font-family:var(--font-mono);font-weight:500;border-right:1px solid var(--border)}.kv-value{color:var(--text);font-family:var(--font-mono);word-break:break-word}.empty-state{padding:2rem 1.25rem;text-align:center;color:var(--text-muted)}.empty-state p{margin:.35rem 0}.empty-state code{color:var(--text);background:var(--bg);padding:.15rem .35rem;border-radius:4px;font-family:var(--font-mono);font-size:.85rem}.detail-empty{display:flex;flex-direction:column;align-items:center;justify-content:center;flex:1}.empty-tab{color:var(--text-muted);margin:0;font-size:.9rem}.error{color:#fca5a5;margin:1rem 0 0;font-size:.9rem}.warning{color:#facc15;margin:1rem 0 0;font-size:.9rem}:root[data-theme=light] .warning{color:#a16207}.magic-key-input{display:flex;gap:.4rem;justify-content:center;margin:1rem 0;flex-wrap:nowrap;width:100%}.magic-key-input input{flex:1 1 auto;min-width:0;max-width:2.5rem;height:3rem;background:var(--bg);border:1px solid var(--border);border-radius:8px;color:var(--text);font-family:var(--font-mono);font-size:1.1rem;font-weight:600;text-align:center;text-transform:uppercase;outline:none;transition:border-color .15s ease,box-shadow .15s ease;padding:0}.magic-key-input input:focus{border-color:var(--accent);box-shadow:0 0 0 2px #3b82f640}.app-footer{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:.5rem 1rem;padding:.6rem 1.25rem;background:var(--surface);border-top:1px solid var(--border);flex-shrink:0;color:var(--text-muted);font-size:.8rem}.footer-copy strong{color:var(--text);font-weight:600}.footer-links{display:flex;align-items:center;gap:.25rem}.footer-links a{display:inline-flex;align-items:center;justify-content:center;padding:.35rem;border-radius:6px;color:var(--text-muted);transition:background .15s ease,color .15s ease}.footer-links a:hover{color:var(--text);background:var(--surface-hover)}.footer-links svg{width:16px;height:16px;display:block}.version-badge{font-family:var(--font-mono);font-size:.7rem;font-weight:500;color:var(--text-muted);background:var(--surface-hover);border:1px solid var(--border);border-radius:999px;padding:.15rem .45rem;line-height:1;margin-left:.25rem}.onboarding .onboarding-card{margin-top:auto;margin-bottom:auto}@media (max-width: 1024px){.workspace,.workspace.left-open,.workspace.right-open,.workspace.left-open.right-open{grid-template-columns:1fr;grid-template-rows:auto auto auto}.request-list,.response-panel,.request-detail{width:100%;max-width:none;border-radius:var(--radius)}.request-list,.response-panel{max-height:40vh}.request-list{grid-column:1;grid-row:1}.response-panel{grid-column:1;grid-row:3}.request-detail{grid-column:1;grid-row:2}.side-tab{display:none}}@media (max-width: 768px){.top-bar{flex-direction:column;align-items:flex-start;gap:.75rem}.session-controls{width:100%;justify-content:space-between}.url-field input{width:100%;min-width:0;max-width:none}.detail-meta{grid-template-columns:repeat(auto-fill,minmax(130px,1fr))}.tab-bar{padding:.75rem 1rem 0}.tab-body{padding:1rem}.app-footer{flex-direction:column;gap:.35rem}}@media (max-width: 520px){.onboarding-card{padding:2rem 1.25rem}.magic-key-input{gap:.25rem}.magic-key-input input{height:2.5rem;font-size:1rem;border-radius:6px}}
