.tonb-workbench{--tonb-gold:#e9c66d;--tonb-border:rgba(231,199,116,.27);--tonb-muted:#c1bbb0;color:#f6f1e6;min-width:0;max-width:100%;font:400 1rem/1.55 system-ui,sans-serif}
.tonb-header,.tonb-section{background:linear-gradient(145deg,rgba(35,32,26,.94),rgba(10,12,16,.93));border:1px solid var(--tonb-border);border-radius:24px;padding:clamp(1rem,2.7vw,2rem);margin-bottom:1.2rem;box-shadow:0 12px 36px #0003;min-width:0;overflow-wrap:anywhere}
.tonb-header h2{margin:0 0 .5rem;font-size:clamp(1.35rem,3vw,2rem);color:var(--tonb-gold)}
.tonb-section h3{margin:0 0 1rem;color:var(--tonb-gold);font-size:1.25rem}.tonb-section h4{margin:1.6rem 0 .7rem;font-size:1.12rem}
.tonb-note,.tonb-hint,.tonb-copy-method{color:var(--tonb-muted);margin:.6rem 0}.tonb-hint{font-size:.87rem}.tonb-selection{color:#ffde8a;font-weight:650;margin:.9rem 0}
.tonb-live{min-height:1.55em;color:#c4ead6;margin:.6rem 0}.tonb-error{color:#ffbfbc}.tonb-warning{background:#9a75201c;border-inline-start:3px solid #e9c66d;padding:.8rem 1rem;color:#f0dba8;border-radius:8px;overflow-wrap:anywhere}
.tonb-private-warning{background:#90393620;border:1px solid #b87770;border-radius:12px;padding:1rem;color:#ffd5ce;font-weight:600}
.tonb-nav{display:flex;flex-wrap:wrap;gap:.45rem;margin-top:1rem}.tonb-nav .tonb-button{font-size:.83rem;padding:.55rem .7rem;flex:1 1 12rem;text-align:left}.tonb-nav [aria-current=page]{border-color:var(--tonb-gold);background:#65501e66;color:#fff0c4}
.tonb-button{border:1px solid var(--tonb-border);border-radius:12px;background:#202026;color:#f4e7c9;font:inherit;font-weight:600;padding:.7rem 1rem;min-height:44px;cursor:pointer;white-space:normal;overflow-wrap:anywhere;max-width:100%}.tonb-button:hover:not(:disabled){border-color:#f1d680;background:#342c1d}.tonb-primary{background:#dcc077;color:#16140e;border-color:#efda9e}.tonb-primary:hover:not(:disabled){background:#edcf81;color:#12110c}.tonb-button:disabled{opacity:.5;cursor:not-allowed}
.tonb-grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:1rem;min-width:0}.tonb-wide{grid-column:1/-1}.tonb-field{display:flex;flex-direction:column;gap:.4rem;min-width:0;align-self:start}.tonb-label{color:#e6dcc8;font-size:.94rem;font-weight:600}.tonb-field input,.tonb-field select,.tonb-field textarea,.tonb-header>select{box-sizing:border-box;width:100%;max-width:100%;min-width:0;border:1px solid #6d6554;border-radius:10px;background:#101216;color:#f6f0e5;padding:.7rem .75rem;font:inherit;min-height:44px}.tonb-field textarea{resize:vertical;line-height:1.5;min-height:6.5rem}.tonb-field select option,.tonb-header>select option{background:#14161a;color:#f8f0df}.tonb-field input:disabled,.tonb-field select:disabled,.tonb-field textarea:disabled{opacity:.62}.tonb-header>select{margin-top:.4rem}
.tonb-check{display:grid;grid-template-columns:1.4rem minmax(0,1fr);gap:.6rem;align-items:start;padding:.55rem 0}.tonb-check .tonb-label{grid-column:2;grid-row:1;font-weight:450}.tonb-check input{grid-column:1;grid-row:1;min-height:1.2rem;width:1.2rem;height:1.2rem;accent-color:var(--tonb-gold);margin-top:.15rem}.tonb-check .tonb-hint{grid-column:2}
.tonb-actions{display:flex;flex-wrap:wrap;gap:.6rem;margin:1.2rem 0}.tonb-form{margin:1rem 0 1.6rem}.tonb-subform{border:1px solid var(--tonb-border);border-radius:14px;padding:1rem;display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.8rem;min-width:0}.tonb-subform legend{padding:0 .4rem;color:#edcf82;font-weight:600}.tonb-subform>.tonb-button{align-self:start}
.tonb-details{border:1px solid #514a3b;border-radius:12px;padding:.7rem .85rem;margin:.8rem 0;min-width:0}.tonb-details summary{cursor:pointer;color:#e4cd97;font-weight:600;min-height:2rem;overflow-wrap:anywhere}.tonb-original{background:#090b0f;border:1px solid #403e37;border-radius:12px;padding:1rem;color:#e2e3dc;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;font:400 .87rem/1.6 ui-monospace,SFMono-Regular,Consolas,monospace;max-height:32rem;overflow:auto;box-sizing:border-box;max-width:100%;tab-size:4}.tonb-response-result .tonb-original{max-height:28rem}
.tonb-table-wrap{width:100%;max-width:100%;overflow:auto;border:1px solid #494334;border-radius:12px;margin:1rem 0}.tonb-table{border-collapse:collapse;width:100%;min-width:34rem;font-size:.9rem;text-align:left}.tonb-table th,.tonb-table td{padding:.7rem .85rem;border-bottom:1px solid #3d382b;vertical-align:top;white-space:normal;overflow-wrap:anywhere;max-width:34rem}.tonb-table th{color:#eed28b;background:#211d15;font-weight:650}.tonb-table tr:last-child td{border-bottom:0}
.tonb-workbench :focus-visible{outline:3px solid #f0cd72;outline-offset:3px}.tonb-section:focus{outline-offset:4px}
@media(max-width:640px){.tonb-grid,.tonb-subform{grid-template-columns:minmax(0,1fr)}.tonb-wide{grid-column:1}.tonb-header,.tonb-section{border-radius:18px;padding:1rem}.tonb-nav{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:.4rem}.tonb-nav .tonb-button{font-size:.75rem;min-width:0;padding:.5rem}.tonb-actions .tonb-button{width:100%}.tonb-original{padding:.7rem;max-height:26rem;font-size:.8rem}.tonb-table{min-width:29rem}}
@media(prefers-reduced-motion:reduce){.tonb-workbench *{scroll-behavior:auto!important}}
