
/* Telya workspace: graphite terminal, functional cyan, numeric typography. Scoped to Builder. */
body.build-on{--tw-chat:clamp(290px,28vw,420px)}
body.build-on #tbuild{width:var(--tw-chat);background:#141416;border-right:1px solid #3b3b42;box-shadow:6px 0 24px #0005}
body.build-on #pyws{left:var(--tw-chat);background:#0c0c0e;color:#e4e4e6}
body.build-on #frames>iframe{left:var(--tw-chat);width:calc(100% - var(--tw-chat))}
#tbuild .tb-h{padding:14px 12px 10px;background:#1a1a1c;border-bottom:1px solid #303035}
#tbuild .tb-tabs{background:#0f0f11;border:1px solid #333339;border-radius:8px}
#tbuild .tb-tabs button{border-radius:5px;color:#aeaeb5;min-height:34px}
#tbuild .tb-tabs button[aria-pressed=true]{background:#2f2f35;color:#dfdfe2;box-shadow:inset 0 0 0 1px #5a5a64}
#tbuild .tb-log,#tbuild .tb-all{padding:18px 14px;gap:14px}
#tbuild .tb-u{background:#29292d;border:1px solid #43434b;border-radius:11px 11px 3px 11px;align-self:flex-end;max-width:96%;overflow-wrap:anywhere}
#tbuild .tb-a{color:#dbdbdf;overflow-wrap:anywhere}
#tbuild .tb-who{font-size:13px;margin:0 0 9px}
#tbuild .tb-card{background:#1d1d21;border-color:#3e3e45;border-radius:9px;box-shadow:0 4px 12px #0002}
#tbuild .tb-card-h{background:#242427;color:#b2b2b9;border-color:#39393f}
#tbuild .tb-meta,#tbuild .tb-note{color:#9e9ea7}
#tbuild .tb-f{padding:12px;border-top:1px solid #303035;background:#17171a}
#tbuild .tb-in{background:#222226;border:1px solid #45454c;border-radius:12px;box-shadow:0 6px 16px #0003}
#tbuild .tb-in:focus-within{border-color:#dfdfe2}
#tbuild .tb-mode select{background:#18181a;border:1px solid #4d4d55;border-radius:6px;padding:6px;color:#dfdfe2}
#tbuild .tb-send{background:#dfdfe2;color:#19191c}
#tbuild .tb-chat.on{background:#2f2f33;border-color:#757582;box-shadow:inset 3px 0 #dfdfe2}
#tbuild .tb-chat:hover,#tbuild .tb-acts button:hover,#pyws button:hover{border-color:#7d7d89}
#tbuild .tb-acts button{border-radius:6px;background:#28282d;border-color:#46464e}
#pyws .py-bar{background:#1d1d20;padding:10px 16px;border-bottom:1px solid #3e3e45;flex-wrap:wrap}
#pyws .py-file b{color:#ececee}
#pyws .py-mini{background:#29292d;border-color:#484850;border-radius:6px}
#pyws .py-run{background:#dfdfe2;color:#18181b;border:1px solid #dfdfe2;border-radius:7px;box-shadow:0 2px 6px #0003}
#pyws .py-set{background:#17171a;border-bottom:1px solid #35353a;color:#bcbcc3;padding:10px 16px;gap:9px 16px}
#pyws .py-set select,#pyws .py-set input:not([type=checkbox]){background:#262629;border-color:#484850;min-height:30px}
#pyws .tw-nav{display:flex;align-items:center;gap:5px;padding:8px 16px;background:#17171a;border-bottom:1px solid #3e3e45;overflow:auto;flex-shrink:0}
#pyws .tw-nav button,.tw-actions button,.tw-chart button{border:1px solid transparent;background:transparent;color:#b5b5bc;padding:8px 12px;border-radius:6px;white-space:nowrap;font-size:12px;font-weight:600}
#pyws .tw-nav button[aria-pressed=true]{background:#303035;color:#dfdfe2;border-color:#595962;box-shadow:inset 0 -2px #dfdfe2}
#pyws .tw-nav button:hover,.tw-actions button:hover,.tw-chart button:hover{background:#303035;color:#dfdfe2}
#pyws .tw-nav .tw-gap{flex:1}
#pyws .tw-nav .tw-status{color:#b3b3bb;white-space:nowrap;font-size:12px;margin-left:8px}
#pyws .py-body{grid-template-columns:minmax(0,1fr);grid-template-rows:minmax(0,1fr);overflow:hidden}
#pyws[data-view=results] .py-ed,#pyws[data-view=code] .py-out{display:none}
#pyws[data-view=split] .py-body{grid-template-columns:minmax(0, .85fr) minmax(0,1.15fr)}
#pyws .py-ed{background:#121214;border-color:#3e3e45;min-height:0}
#pyws .py-gutter{background:#19191c;color:#91919b;border-right:1px solid #313136}
#pyws .py-ed textarea{color:#e2e2e5}
#pyws .py-out{padding:22px clamp(14px,2.4vw,36px) 32px;background:#101012;min-height:0;overflow:auto}
#pyws .py-empty{margin:12vh auto 0;max-width:400px;color:#acacb3}
#pyws .py-empty b{font-size:20px;margin-bottom:8px}
#pyws .py-status{background:#1f1f22;border:1px solid #414148;border-radius:8px;padding:16px;color:#e2e2e4}
#pyws .py-status.err{border-color:#74434a;color:#ffb5b5}
#pyws .py-table{background:#1a1a1c;border:1px solid #37373c;border-radius:6px;font-size:13px}
#pyws .py-table th,#pyws .py-table td{padding:10px 12px;border-color:#323238}
#pyws .py-table thead th{background:#252529;color:#dfdfe2}
#pyws .py-table tbody tr:hover{background:#26262a}
#pyws .py-curve{height:clamp(180px,30vh,330px);background:#18181b;border-color:#414147}
#pyws .py-note,#pyws .py-prov{color:#b0b0b8}
.tw-report{color:#e5e5e8;font:13px/1.5 var(--ui)}
.tw-head{display:flex;justify-content:space-between;align-items:flex-start;gap:14px;flex-wrap:wrap;margin-bottom:18px}
.tw-head h2{margin:0 0 5px;font-size:24px;line-height:1.2;font-weight:650;letter-spacing:-.025em}
.tw-sub{font-size:12px;color:#b4b4bc;overflow-wrap:anywhere}
.tw-done{display:inline-flex;align-items:center;gap:6px;color:#86dcb7;font-size:12px;font-weight:600}
.tw-done:before{content:'';width:7px;height:7px;border-radius:50%;background:#5fc49c}
.tw-actions{display:flex;gap:6px;flex-wrap:wrap;align-items:center}
.tw-actions button,.tw-chart button{background:#26262b;border-color:#46464e;color:#dfdfe2}
.tw-actions button.tw-primary{background:#37373d;color:#dfdfe2;border-color:#63636e}
.tw-tabs{display:flex;gap:18px;overflow:auto;border-bottom:1px solid #414147;margin-bottom:20px}
.tw-tabs button{background:transparent;border:0;border-bottom:2px solid transparent;padding:10px 1px;color:#b5b5bc;font-weight:600;white-space:nowrap}
.tw-tabs button[aria-pressed=true]{border-bottom-color:#dfdfe2;color:#dfdfe2}
.tw-kpis{display:grid;grid-template-columns:repeat(auto-fit,minmax(145px,1fr));gap:1px;background:#404046;border:1px solid #404046;border-radius:9px;overflow:hidden;margin-bottom:20px}
.tw-kpi{min-width:0;background:#202024;padding:15px 13px;min-height:91px}
.tw-kpi span{display:block;color:#b7b7bd;font-size:12px;overflow-wrap:anywhere}
.tw-kpi strong{display:block;margin-top:6px;font-size:clamp(18px,2vw,27px);line-height:1.2;font-weight:600;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.tw-section{margin:0 0 20px}
.tw-section h3{margin:0 0 10px;font-size:15px;color:#dfdfe2;font-weight:600}
.tw-charts{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,340px),1fr));gap:12px}
.tw-chart{background:#1b1b1e;border:1px solid #3e3e45;border-radius:8px;padding:14px;min-width:0}
.tw-chart h4{font-size:13px;margin:0;font-weight:600;overflow-wrap:anywhere}
.tw-chart-head{display:flex;align-items:flex-start;justify-content:space-between;gap:7px}
.tw-chart button{padding:4px 8px;font-size:11px}
.tw-chart svg{width:100%;height:auto;display:block;margin-top:8px;touch-action:pan-y;overflow:visible}
.tw-chart .tw-legend{display:flex;flex-wrap:wrap;gap:10px;color:#c3c3c8;font-size:11px}
.tw-chart .tw-hover{min-height:2.6em;color:#dfdfe2;font-size:12px;font-variant-numeric:tabular-nums;overflow-wrap:anywhere;margin:7px 0 0}
.tw-chart:fullscreen{background:#18181a;padding:30px;overflow:auto;display:flex;flex-direction:column;justify-content:center}
.tw-chart:fullscreen svg{max-height:70vh}
.tw-data{display:grid;grid-template-columns:minmax(120px,1fr) minmax(0,2fr);border:1px solid #3e3e45;background:#1b1b1e;border-radius:8px;overflow:hidden;margin:0}
.tw-data dt,.tw-data dd{padding:9px 12px;margin:0;border-bottom:1px solid #37373c;overflow-wrap:anywhere}
.tw-data dt{color:#b7b7be}.tw-data dd{font-variant-numeric:tabular-nums}
.tw-table-wrap{overflow:auto;border:1px solid #3e3e45;border-radius:8px}
.tw-table{width:100%;border-collapse:collapse;font-size:12.5px;font-variant-numeric:tabular-nums}
.tw-table th,.tw-table td{padding:9px 12px;border-bottom:1px solid #37373c;text-align:right;white-space:nowrap}
.tw-table th:first-child,.tw-table td:first-child{text-align:left}
.tw-table th{color:#c4c4c9;background:#2b2b30;font-weight:600;position:sticky;top:0}
.tw-table td{background:#1b1b1d}.tw-table tbody tr:hover td{background:#26262a}
.tw-review{background:#1e1e21;border:1px solid #45454d;border-left:3px solid #dfdfe2;padding:15px 17px;border-radius:5px;line-height:1.65;white-space:pre-wrap;overflow-wrap:anywhere;color:#e2e2e4}
.tw-review h3{color:#dfdfe2;margin:0 0 7px;font-size:14px;white-space:normal}
.tw-note{color:#b2b2ba;font-size:12px;line-height:1.6;overflow-wrap:anywhere;white-space:pre-wrap}
.tw-toast{color:#a7e8d1;font-size:12px;min-height:18px}
#pyws button:focus-visible,#tbuild button:focus-visible,.tw-chart svg:focus-visible{outline:2px solid #dfdfe2;outline-offset:2px}
.tw-resize{position:absolute;top:0;bottom:0;right:-5px;width:10px;z-index:3;cursor:col-resize;touch-action:none}
.tw-resize:focus-visible,.tw-resize:hover{background:#62dce844}
@media(max-width:1100px){#pyws[data-view=split] .py-body{grid-template-columns:1fr;grid-template-rows:minmax(160px,40%) minmax(0,1fr)}}
@media(max-width:900px){body.build-on #tbuild{width:100%}body.build-on #pyws{left:0}body.build-on #frames>iframe{left:0;width:100%}.tw-resize{display:none}#pyws .py-bar,#pyws .py-set,#pyws .tw-nav{padding:8px 10px}#pyws .py-out{padding:15px 12px 65px}.tw-head h2{font-size:20px}#pyws .tw-nav .tw-status{display:none}}
@media(prefers-reduced-motion:no-preference){#tbuild button,#pyws button{transition:background .14s,border-color .14s,color .14s}}
