.ut{--ut-bg:#1e293b;--ut-bg2:#0f172a;--ut-bg3:#273449;--ut-line:#334155;--ut-text:#f1f5f9;--ut-muted:#94a3b8;--ut-accent:#22d3ee;--ut-on:#0f172a;--ut-danger:#f87171;--ut-ok:#4ade80;max-width:72rem;margin:0 auto;color:var(--ut-text)}
.ut--blue{--ut-accent:#60a5fa}
.ut--purple{--ut-accent:#c084fc}
.ut--green{--ut-accent:#4ade80}
.ut--amber{--ut-accent:#fbbf24}
.ut--cyan{--ut-accent:#22d3ee}
.ut [hidden]{display:none!important}
.ut *,.ut *::before,.ut *::after{box-sizing:border-box}
.ut-panel{background:var(--ut-bg);border:1px solid var(--ut-line);border-radius:1rem;padding:1rem;margin-bottom:1rem}
@media(min-width:640px){.ut-panel{padding:1.5rem}}
.ut-head{display:flex;align-items:center;justify-content:space-between;gap:.75rem;flex-wrap:wrap;margin-bottom:.75rem}
.ut-title{font-size:1rem;font-weight:700;margin:0}
.ut-grid{display:flex;flex-direction:column;gap:1rem}
@media(min-width:820px){.ut-grid{flex-direction:row}.ut-grid>*{flex:1 1 0;min-width:0}}
.ut-col{display:flex;flex-direction:column;gap:.75rem;min-width:0}
.ut-row{display:flex;flex-wrap:wrap;gap:.75rem;align-items:flex-end}
.ut-row>.ut-field{flex:1 1 9rem;min-width:0}
.ut-bar{display:flex;flex-wrap:wrap;gap:.5rem;align-items:center}
.ut-bar-end{margin-inline-start:auto}
.ut-field{display:flex;flex-direction:column;gap:.375rem}
.ut-label{font-size:.8125rem;font-weight:600;color:var(--ut-muted)}
.ut-input,.ut-select,.ut-textarea{width:100%;background:var(--ut-bg2);color:var(--ut-text);border:1px solid var(--ut-line);border-radius:.75rem;padding:.7rem .85rem;font:inherit;font-size:.9375rem;line-height:1.5;transition:border-color .15s,box-shadow .15s}
.ut-textarea{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem;min-height:15rem;resize:vertical;tab-size:2;white-space:pre;overflow:auto}
.ut-textarea.ut-wrap{white-space:pre-wrap;font-family:inherit;font-size:.9375rem}
.ut-textarea.ut-tall{min-height:22rem}
.ut-input:focus,.ut-select:focus,.ut-textarea:focus{outline:none;border-color:var(--ut-accent);box-shadow:0 0 0 3px color-mix(in srgb,var(--ut-accent) 25%,transparent)}
.ut-input[readonly],.ut-textarea[readonly]{background:color-mix(in srgb,var(--ut-bg2) 70%,var(--ut-bg))}
.ut-input-mono{font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.875rem}
.ut-select{appearance:none;background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 24 24' fill='none' stroke='%2394a3b8' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='M6 9l6 6 6-6'/%3E%3C/svg%3E");background-repeat:no-repeat;background-position:right .75rem center;padding-inline-end:2.25rem}
[dir="rtl"] .ut-select{background-position:left .75rem center}
.ut-btn,.ut-btn-ghost{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;min-height:2.75rem;padding:.55rem 1.1rem;border-radius:.75rem;font:inherit;font-size:.9rem;font-weight:700;cursor:pointer;border:1px solid transparent;transition:transform .15s,background .15s,border-color .15s,opacity .15s;text-decoration:none;line-height:1.2}
.ut-btn{background:var(--ut-accent);color:var(--ut-on)}
.ut-btn:hover{transform:translateY(-1px);filter:brightness(1.08)}
.ut-btn-ghost{background:var(--ut-bg3);color:var(--ut-text);border-color:var(--ut-line);font-weight:600}
.ut-btn-ghost:hover{border-color:var(--ut-accent);color:var(--ut-accent)}
.ut-btn:disabled,.ut-btn-ghost:disabled{opacity:.45;cursor:not-allowed;transform:none}
.ut-btn:focus-visible,.ut-btn-ghost:focus-visible,.ut-seg-btn:focus-visible,.ut-chip:focus-visible{outline:2px solid var(--ut-accent);outline-offset:2px}
.ut-btn-sm{min-height:2.25rem;padding:.35rem .8rem;font-size:.8125rem;border-radius:.625rem}
.ut-btn-danger{background:color-mix(in srgb,var(--ut-danger) 18%,var(--ut-bg3));color:var(--ut-danger);border-color:color-mix(in srgb,var(--ut-danger) 40%,var(--ut-line))}
.ut-btn svg,.ut-btn-ghost svg{flex:none}
.ut-seg{display:inline-flex;flex-wrap:wrap;gap:.25rem;padding:.25rem;background:var(--ut-bg2);border:1px solid var(--ut-line);border-radius:.875rem}
.ut-seg-btn{min-height:2.25rem;padding:.35rem .8rem;border-radius:.625rem;border:0;background:transparent;color:var(--ut-muted);font:inherit;font-size:.8125rem;font-weight:600;cursor:pointer;transition:background .15s,color .15s}
.ut-seg-btn:hover{color:var(--ut-text)}
.ut-seg-btn[aria-pressed="true"]{background:var(--ut-accent);color:var(--ut-on)}
.ut-check{display:inline-flex;align-items:center;gap:.5rem;font-size:.875rem;color:var(--ut-text);cursor:pointer;min-height:2.25rem}
.ut-check input{width:1.1rem;height:1.1rem;accent-color:var(--ut-accent);flex:none}
.ut-status{min-height:1.5rem;font-size:.875rem;color:var(--ut-muted);display:flex;align-items:center;gap:.5rem}
.ut-status[data-s="ok"]{color:var(--ut-ok)}
.ut-status[data-s="err"]{color:var(--ut-danger)}
.ut-stats{display:grid;grid-template-columns:repeat(auto-fit,minmax(8.5rem,1fr));gap:.75rem}
.ut-stat{background:var(--ut-bg2);border:1px solid var(--ut-line);border-radius:.875rem;padding:.85rem 1rem;min-width:0}
.ut-stat b{display:block;font-size:1.5rem;line-height:1.2;color:var(--ut-accent);font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.ut-stat span{display:block;font-size:.75rem;color:var(--ut-muted);margin-top:.15rem}
.ut-meter{height:.5rem;border-radius:999px;background:var(--ut-bg2);overflow:hidden;border:1px solid var(--ut-line)}
.ut-meter>span{display:block;height:100%;width:0;background:var(--ut-accent);border-radius:999px;transition:width .25s,background .25s}
.ut-limits{display:grid;gap:.75rem}
.ut-limit-top{display:flex;justify-content:space-between;gap:.5rem;font-size:.8125rem;margin-bottom:.35rem;color:var(--ut-muted)}
.ut-limit-top b{color:var(--ut-text);font-variant-numeric:tabular-nums}
.ut-chips{display:flex;flex-wrap:wrap;gap:.5rem}
.ut-chip{display:inline-flex;align-items:center;min-height:2.25rem;padding:.3rem .8rem;border-radius:999px;border:1px solid var(--ut-line);background:var(--ut-bg2);color:var(--ut-muted);font:inherit;font-size:.8125rem;cursor:pointer;transition:border-color .15s,color .15s}
.ut-chip:hover{border-color:var(--ut-accent);color:var(--ut-accent)}
.ut-out{background:var(--ut-bg2);border:1px solid var(--ut-line);border-radius:.75rem;padding:.85rem 1rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem;line-height:1.6;white-space:pre-wrap;overflow-wrap:anywhere;min-height:5rem;max-height:24rem;overflow:auto;margin:0}
.ut-hl mark{background:color-mix(in srgb,var(--ut-accent) 35%,transparent);color:inherit;border-radius:.2rem;padding:0 .1rem}
.ut-table-wrap{overflow-x:auto;border:1px solid var(--ut-line);border-radius:.75rem}
.ut-table{width:100%;border-collapse:collapse;font-size:.8125rem}
.ut-table th,.ut-table td{padding:.5rem .75rem;text-align:start;border-bottom:1px solid var(--ut-line);vertical-align:top;overflow-wrap:anywhere}
.ut-table th{color:var(--ut-muted);font-weight:600;background:var(--ut-bg2)}
.ut-table tr:last-child td{border-bottom:0}
.ut-note{display:flex;align-items:flex-start;gap:.5rem;font-size:.8125rem;color:var(--ut-muted);margin:.25rem 0 0}
.ut-note svg{flex:none;margin-top:.15rem;color:var(--ut-ok)}
.ut-preview{display:flex;align-items:center;justify-content:center;min-height:14rem;padding:1rem;border-radius:.875rem;border:1px dashed var(--ut-line);background:repeating-conic-gradient(#273449 0% 25%,#1e293b 0% 50%) 50%/20px 20px;overflow:auto}
.ut-preview canvas,.ut-preview svg,.ut-preview img{max-width:100%;height:auto;border-radius:.5rem;background:#fff}
.ut-video{width:100%;max-height:26rem;background:#000;border-radius:.875rem;border:1px solid var(--ut-line)}
.ut-range{width:100%;accent-color:var(--ut-accent)}
.ut-color{width:100%;height:2.75rem;padding:.2rem;background:var(--ut-bg2);border:1px solid var(--ut-line);border-radius:.75rem;cursor:pointer}
.ut-big{font-size:1.75rem;font-weight:800;font-variant-numeric:tabular-nums;color:var(--ut-accent);overflow-wrap:anywhere}
.ut-timer{font-size:2rem;font-weight:800;font-variant-numeric:tabular-nums;text-align:center;letter-spacing:.04em}
.ut-dot{display:inline-block;width:.65rem;height:.65rem;border-radius:50%;background:var(--ut-danger);margin-inline-end:.5rem;animation:ut-pulse 1.2s infinite}
@keyframes ut-pulse{50%{opacity:.25}}
.ut-checklist{list-style:none;margin:0;padding:0;display:grid;gap:.4rem;font-size:.875rem}
.ut-checklist li{display:flex;gap:.5rem;align-items:center;color:var(--ut-muted)}
.ut-checklist li::before{content:"";flex:none;width:.9rem;height:.9rem;border-radius:50%;border:2px solid var(--ut-line)}
.ut-checklist li[data-ok="1"]{color:var(--ut-text)}
.ut-checklist li[data-ok="1"]::before{background:var(--ut-ok);border-color:var(--ut-ok)}
.ut-list{list-style:none;margin:0;padding:0;display:grid;gap:.4rem}
.ut-list li{background:var(--ut-bg2);border:1px solid var(--ut-line);border-radius:.625rem;padding:.5rem .75rem;font-family:ui-monospace,SFMono-Regular,Menlo,Consolas,monospace;font-size:.8125rem;overflow-wrap:anywhere}
.ut-notes{display:flex;flex-direction:column;gap:.375rem;max-height:24rem;overflow:auto}
.ut-note-item{display:flex;align-items:center;justify-content:space-between;gap:.5rem;text-align:start;width:100%;padding:.55rem .75rem;border-radius:.625rem;border:1px solid var(--ut-line);background:var(--ut-bg2);color:var(--ut-text);font:inherit;font-size:.875rem;cursor:pointer}
.ut-note-item[aria-current="true"]{border-color:var(--ut-accent);background:color-mix(in srgb,var(--ut-accent) 12%,var(--ut-bg2))}
.ut-note-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.ut-note-item small{color:var(--ut-muted);flex:none}
.ut-split{display:flex;flex-direction:column;gap:1rem}
@media(min-width:820px){.ut-split{flex-direction:row}.ut-split>.ut-side{flex:0 0 17rem}.ut-split>.ut-main{flex:1 1 0;min-width:0}}
.ut-swap{display:flex;justify-content:center;align-items:flex-end}
.ut-conv{display:flex;flex-direction:column;gap:.75rem}
@media(min-width:720px){.ut-conv{flex-direction:row;align-items:flex-end}.ut-conv>.ut-field{flex:1 1 0;min-width:0}}
.ut-sr{position:absolute;width:1px;height:1px;overflow:hidden;clip:rect(0 0 0 0);white-space:nowrap}
.ut-help{font-size:.8125rem;color:var(--ut-muted);margin:0}
@media(max-width:639px){.ut-btn,.ut-btn-ghost{flex:1 1 auto}.ut-btn-sm{flex:0 1 auto}.ut-textarea{min-height:12rem}}
@media(prefers-reduced-motion:reduce){.ut *{transition:none!important;animation:none!important}}
.ut-mt{margin-top:1rem}.ut-mb{margin-bottom:1rem}.ut-mt-s{margin-top:.5rem}
