.tb-console-window { position:fixed; right:18px; bottom:18px; z-index:2147483000; display:flex; flex-direction:column; width:min(880px,calc(100vw - 36px)); height:min(620px,calc(100vh - 36px)); overflow:hidden; color:#f5f6f7; background:#18212c; border:1px solid #0065a8; border-radius:7px; box-shadow:0 14px 42px rgba(48,56,63,.28); font:13px/1.35 "Segoe UI",system-ui,sans-serif; }
.tb-console-window>header { display:flex; align-items:center; gap:7px; padding:8px 10px; background:#004e8f; cursor:move; user-select:none; }
.tb-console-window>header button,.tb-console-toolbar button,.tb-console-tab { color:#fff; background:#0065a8; border:1px solid #0065a8; border-radius:4px; padding:5px 9px; cursor:pointer; }
.tb-console-window>header button:hover,.tb-console-toolbar button:hover,.tb-console-tab:hover { color:#fff; background:#fe8100; border-color:#fe8100; }
.tb-console-window button:focus-visible,.tb-console-window select:focus-visible { outline:3px solid rgba(254,129,0,.34); outline-offset:2px; }
.tb-console-spacer { flex:1; }
.tb-console-tabs { display:flex; gap:4px; overflow:auto; padding:8px 8px 0; background:#454a4e; }
.tb-console-tab { white-space:nowrap; border-bottom-left-radius:0; border-bottom-right-radius:0; }
.tb-console-tab[aria-selected="true"] { color:#004e8f; background:#fff; border-color:#fff; }
.tb-console-source-unavailable:after { content:' •'; color:#ffbf69; }
.tb-console-source-description { min-height:34px; padding:8px 10px; color:#f5f6f7; background:#555b60; border-bottom:1px solid #6e767d; }
.tb-console-error { color:#ffb4b4; }
.tb-console-toolbar { display:flex; align-items:center; gap:8px; padding:7px 9px; }
.tb-console-toolbar label { margin-left:auto; }
.tb-console-toolbar select { color:#17202a; }
.tb-console-output { flex:1; min-height:130px; margin:0 9px 8px; padding:10px; overflow:auto; color:#d9f6d2; background:#0d131a; border:1px solid #384758; white-space:pre-wrap; overflow-wrap:anywhere; }
.tb-console-options { max-height:180px; overflow:auto; padding:0 9px 8px; }
.tb-console-options summary { cursor:pointer; padding:5px 0; }
.tb-console-categories,.tb-console-actions { display:flex; flex-wrap:wrap; gap:7px; padding:6px 0; }
.tb-console-categories label { white-space:nowrap; }
.tb-console-actions button { padding:5px 9px; color:#fff!important; background:#0065a8!important; border:1px solid #0065a8!important; border-radius:4px; font-weight:700; cursor:pointer!important; opacity:1; }
.tb-console-actions button:hover:not(:disabled) { color:#fff!important; background:#fe8100!important; border-color:#fe8100!important; }
.tb-console-actions button:disabled { color:#6e767d!important; background:#f4f5f6!important; border-color:#d9dde0!important; cursor:not-allowed!important; opacity:.7; }
.tb-console-minimized { width:290px; height:auto; }
.tb-console-minimized>:not(header):not(.tb-console-frame-blocker) { display:none!important; }
.tb-console-minimized>header { cursor:default; }
.tb-console-launcher { position:fixed; right:18px; bottom:18px; z-index:2147482999; padding:9px 13px; color:#fff; background:#0065a8; border:1px solid #0065a8; border-radius:5px; box-shadow:0 5px 18px rgba(48,56,63,.24); font-weight:700; cursor:pointer; }
.tb-console-launcher:hover { color:#fff; background:#fe8100; border-color:#fe8100; }
.tb-console-launcher:disabled { opacity:.65; cursor:wait; }
.tb-console-frame-blocker { position:absolute; inset:0; z-index:20; display:flex; align-items:center; justify-content:center; gap:10px; color:#fff; background:rgba(13,19,26,.76); cursor:wait; }
.tb-console-frame-blocker[hidden] { display:none; }
.tb-console-dialog { position:absolute; inset:0; z-index:18; display:flex; align-items:center; justify-content:center; padding:18px; background:rgba(13,19,26,.72); }
.tb-console-dialog-panel { display:flex; flex-direction:column; gap:10px; width:min(650px,100%); max-height:90%; padding:16px; overflow:auto; color:#e9edf2; background:#263446; border:1px solid #71869e; border-radius:6px; box-shadow:0 8px 28px rgba(0,0,0,.45); }
.tb-console-dialog-panel p { margin:0; }
.tb-console-dialog-content { display:flex; flex-direction:column; gap:8px; }
.tb-console-dialog-content>input { box-sizing:border-box; width:100%; padding:7px; }
.tb-console-dialog-buttons { display:flex; justify-content:flex-end; gap:8px; }
.tb-console-dialog-buttons button { padding:6px 12px; }
.tb-console-cache-modes,.tb-console-cache-structures { display:grid; gap:5px; }
.tb-console-cache-modes label { cursor:pointer; }
.tb-console-cache-all { margin-top:4px; font-weight:bold; }
.tb-console-cache-structures { grid-template-columns:repeat(auto-fit,minmax(190px,1fr)); max-height:220px; padding:8px; overflow:auto; background:#18212c; border:1px solid #526274; }
.tb-console-spinner { width:22px; height:22px; border:3px solid rgba(255,255,255,.35); border-top-color:#fff; border-radius:50%; animation:tb-console-spin .75s linear infinite; }
@keyframes tb-console-spin { to { transform:rotate(360deg); } }
@media (max-width:640px) { .tb-console-window { inset:8px; width:auto; height:auto; } }
