.tab-tool [hidden] { display:none!important; }
.tab-tool .gradient-card > h2 { margin-bottom:16px; }
.tab-tool .tab-field { display:flex; flex-direction:column; gap:10px; margin:16px 0 0; color:#fafafa; font-size:14px; }
.tab-tool .tab-field:first-of-type { margin-top:0; }
.tab-tool .gradient-fields .tab-field { margin-top:0; }
.tab-tool .tab-colors { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:16px; }
.tab-color-field { display:flex; flex-direction:column; min-width:0; gap:10px; font-size:13px; color:#a1a1aa; }
.tab-color-input { display:flex; align-items:center; gap:10px; min-width:0; }
.tab-tool .tab-color-input > input { min-width:0; width:100%; font-size:13px; }
.tab-tool .tab-swatch { display:block; position:relative; width:36px; height:36px; flex:0 0 36px; overflow:hidden; border:0; border-radius:10px; }
.tab-tool .tab-swatch input[type=color] { position:absolute; inset:0; width:100%; height:100%; opacity:0; margin:0; padding:0; border:0; cursor:pointer; }
.tab-swatch:focus-within { outline:2px solid #008fff; outline-offset:3px; }
.tab-palettes { display:flex; gap:10px; margin-top:20px; }
.tab-tool .tab-palettes button { display:block; appearance:none; width:48px; height:28px; padding:0; border:0; border-radius:10px; cursor:pointer; }
.tab-tool .tab-preview { min-height:140px; display:flex; justify-content:center; align-content:center; flex-wrap:wrap; padding:26px 16px; margin-bottom:16px; border-radius:16px; background:#111113; font-size:28px; line-height:1.5; text-align:center; overflow-wrap:anywhere; white-space:pre-wrap; text-shadow:1px 2px #0008; }
.tab-preview span { display:contents; }
.tab-playback { display:flex; align-items:center; gap:8px; flex-wrap:wrap; }
.tab-playback .gradient-muted { margin-left:auto; font-variant-numeric:tabular-nums; }
.tab-tool #tabSeek { width:100%; margin:18px 0 0; padding:0; height:6px; appearance:none; border:0; border-radius:999px; background:#3f3f46; accent-color:#008fff; cursor:pointer; }
.tab-tool #tabSeek::-webkit-slider-thumb { appearance:none; width:16px; height:16px; border:0; border-radius:50%; background:#008fff; }
.tab-tool #tabSeek::-moz-range-thumb { width:16px; height:16px; border:0; border-radius:50%; background:#008fff; }
.tab-tool #tabOutput { min-height:250px; max-height:500px; border:1px solid #ffffff08; background:#111113; font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important; font-size:12px; line-height:1.8; overflow-wrap:anywhere; white-space:pre-wrap; }
.tab-tool #tabFrames { font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important; font-size:12px; }
.tab-placeholder { display:flex; align-items:center; justify-content:space-between; flex-wrap:wrap; gap:8px; padding:10px 12px; margin-top:18px; border-radius:12px; background:#27272a; }
.tab-tool .tab-placeholder code { color:#66b6ff; background:none; padding:0; font-size:12px; overflow-wrap:anywhere; }
.tab-tool .is-error { color:#f87171; }
@media(max-width:575px) { .tab-tool .tab-colors { grid-template-columns:minmax(0,1fr); } .tab-tool .tab-preview { font-size:22px; } }

.tab-tool #tabGenerated { margin-top:16px; }
.tab-tool #tabOutput { white-space:pre; overflow:auto; overflow-wrap:normal; }
.tab-tool .gradient-check input[type=checkbox] { appearance:none; -webkit-appearance:none; display:inline-grid; place-content:center; flex:0 0 16px; width:16px; height:16px; margin:0; padding:0; border:1px solid #52525b; border-radius:5px; background:#27272a; cursor:pointer; }
.tab-tool .gradient-check input[type=checkbox]:checked { border-color:#008fff; background:#008fff; }
.tab-tool .gradient-check input[type=checkbox]:checked:after { content:''; width:8px; height:5px; margin-top:-2px; border-left:2px solid white; border-bottom:2px solid white; transform:rotate(-45deg); }
