.flags-tool .flags-field { display:flex; flex-direction:column; gap:10px; color:#fafafa; }
.flags-tool .flags-field input { width:100%; min-width:0; padding:12px 14px; border:1px solid transparent; border-radius:12px; background:#27272a; color:#fafafa; outline:none; }
.flags-tool .flags-field input:focus { border-color:#008fff; }
.flags-tool .flags-memory-heading { margin-top:24px; }
.flags-tool .flags-memory-heading label { margin:0; }
.flags-tool .flags-number { display:flex; align-items:center; gap:6px; background:#27272a; border-radius:12px; padding:8px 12px; color:#a1a1aa; }
.flags-tool .flags-number input { width:50px; min-width:0; padding:0!important; border:0; background:transparent!important; color:#fafafa; text-align:right; appearance:textfield; -moz-appearance:textfield; }
.flags-number input::-webkit-inner-spin-button,.flags-number input::-webkit-outer-spin-button { appearance:none; margin:0; }
.flags-tool .flags-number:focus-within { outline:2px solid #008fff; outline-offset:2px; }
.flags-tool .flags-range { display:block; width:100%; height:6px; margin:24px 0; padding:0; appearance:none; border:0; border-radius:999px; background:#3f3f46; cursor:pointer; accent-color:#008fff; }
.flags-range::-webkit-slider-thumb { appearance:none; width:18px; height:18px; border-radius:50%; background:#008fff; border:3px solid #18181b; box-shadow:0 0 0 2px #008fff; }
.flags-range::-moz-range-thumb { width:14px; height:14px; border-radius:50%; background:#008fff; border:2px solid #18181b; }
.flags-presets { display:flex; flex-wrap:wrap; gap:8px; }
.flags-tool .flags-presets button { padding:6px 10px; border:0; border-radius:8px; background:#ffffff08; color:#a1a1aa; font-size:12px; cursor:pointer; }
.flags-tool .flags-presets button[aria-pressed=true] { background:#008fff20; color:#66b6ff; }
.flags-profiles { display:grid; gap:10px; }
.flags-tool .flags-profiles button { display:flex; flex-direction:column; align-items:flex-start; gap:5px; width:100%; padding:14px 16px; border:1px solid transparent; border-radius:14px; background:#27272a; color:#fafafa; text-align:left; cursor:pointer; }
.flags-tool .flags-profiles button[aria-pressed=true] { border-color:#008fff; background:#008fff12; }
.flags-profiles small { color:#a1a1aa; font-size:13px; line-height:1.5; }
.flags-source { color:#66b6ff; font-size:12px; text-decoration:none; }
.flags-tool .flags-switch { display:flex; align-items:center; gap:14px; position:relative; margin:20px 0; cursor:pointer; }
.flags-switch > span:first-child { flex:1; min-width:0; }
.flags-switch strong { display:block; color:#fafafa; font-size:14px; font-weight:500; }
.flags-switch small { display:block; margin-top:5px; color:#a1a1aa; font-size:12px; line-height:1.6; }
.flags-tool .flags-switch input { position:absolute; right:0; width:42px; height:24px; opacity:0; margin:0; cursor:pointer; }
.flags-switch__track { width:42px; height:24px; flex:none; border-radius:999px; background:#3f3f46; pointer-events:none; transition:background 150ms; }
.flags-switch__track:before { content:''; display:block; width:18px; height:18px; margin:3px; background:#fafafa; border-radius:50%; transition:transform 150ms; }
.flags-switch input:checked + .flags-switch__track { background:#008fff; }
.flags-switch input:checked + .flags-switch__track:before { transform:translateX(18px); }
.flags-switch input:focus-visible + .flags-switch__track { outline:2px solid #66b6ff; outline-offset:3px; }
.flags-switch:has(input:disabled) { opacity:.45; cursor:default; }
.flags-tabs { display:flex; gap:4px; padding:4px; margin-bottom:18px; background:#27272a; border-radius:14px; }
.flags-tool .flags-tabs button { flex:1; min-width:0; margin:0; padding:9px 8px; background:transparent; border:0; border-radius:10px; color:#a1a1aa; font-size:13px; cursor:pointer; white-space:nowrap; }
.flags-tool .flags-tabs button[aria-selected=true] { background:#111113; color:#fafafa; }
.flags-file { color:#a1a1aa; font-size:12px; }
.flags-tool #flagsOutput { width:100%; min-width:0; min-height:300px; max-height:650px; padding:16px; border:1px solid #ffffff08; border-radius:14px; background:#111113; color:#d4d4d8; font-family:ui-monospace,SFMono-Regular,Consolas,monospace!important; font-size:13px; line-height:1.8; resize:vertical; overflow-wrap:anywhere; white-space:pre-wrap; }
.flags-tool button:focus-visible { outline:2px solid #008fff; outline-offset:3px; }
.flags-tool button:disabled { opacity:.4; cursor:default; }
.flags-tool .is-error { color:#f87171; }
@media(max-width:575px) { .flags-tool .flags-tabs button { font-size:11px; padding:9px 5px; } }
@media(prefers-reduced-motion:reduce) { .flags-switch__track,.flags-switch__track:before { transition:none; } }
.flags-tool .gradient-card > h2 { margin-bottom:16px; }
