*,*:before,*:after{box-sizing:border-box}:root{color-scheme:dark;--bg:#0f1117;--surface:#1a1d27;--surface-2:#242836;--border:#2e3344;--text:#e8eaef;--text-muted:#9aa3b5;--accent:#5b8def;--accent-hover:#4a7de0;--success:#3ecf8e;--danger:#ef6b6b;--radius:12px;--shadow:0 8px 32px rgba(0,0,0,.35);font-family:Inter,system-ui,sans-serif;line-height:1.5}body{margin:0;min-height:100vh;background:var(--bg);color:var(--text)}#root{min-height:100vh}a{color:var(--accent);text-decoration:none}button,input,textarea,select{font:inherit;cursor:pointer}.app-shell{min-height:100vh;display:flex;flex-direction:column}.app-main{flex:1;max-width:720px;margin:0 auto;padding:1.5rem 1rem 3rem;width:100%}.app-header{padding:1.25rem 1rem .5rem;text-align:center}.logo{font-size:1.25rem;font-weight:700;color:var(--text);text-decoration:none}.tagline{margin:.35rem 0 0;color:var(--text-muted);font-size:.95rem}.hero-title{margin:1.5rem 0 .5rem;font-size:clamp(1.5rem,4vw,2rem);font-weight:700}.hero-sub{margin:0 0 1.5rem;color:var(--text-muted);font-size:.95rem}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;box-shadow:var(--shadow)}.field{margin-bottom:1rem}.field-label{display:block;font-size:.875rem;font-weight:500;margin-bottom:.35rem}.text-input,.select-input{width:100%;padding:.65rem .85rem;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text)}.text-input.mono{font-family:SF Mono,Consolas,monospace}.converter-row{display:grid;gap:.75rem;grid-template-columns:1fr}@media(min-width:540px){.converter-row{grid-template-columns:1fr 1fr auto 1fr;align-items:end}}.swap-btn{align-self:end;padding:.65rem .85rem}.result-panel{display:flex;align-items:center;gap:1rem;padding:1rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;margin:1rem 0}.result-value{font-size:1.5rem;font-weight:700;flex:1;font-family:monospace}.actions-row{display:flex;flex-wrap:wrap;gap:.75rem}.btn{display:inline-flex;align-items:center;padding:.75rem 1.25rem;border-radius:8px;border:none;font-weight:600}.btn-sm{padding:.45rem .85rem;font-size:.85rem}.btn-primary{background:var(--accent);color:#fff}.btn-secondary{background:var(--surface-2);color:var(--text);border:1px solid var(--border)}.btn:disabled{opacity:.5}.limit-badge{font-size:.8rem;color:var(--text-muted);text-align:center;margin-top:1rem}.status-bar{margin-top:1rem;padding:.75rem 1rem;border-radius:8px;font-size:.875rem}.status-bar.success{background:#3ecf8e1f;border:1px solid rgba(62,207,142,.35);color:#9ef0c9}.license-panel{margin-top:1rem}.license-panel summary{cursor:pointer;color:var(--text-muted);font-size:.875rem}.license-form{display:flex;flex-wrap:wrap;gap:.5rem;margin-top:.75rem}.license-input{flex:1;min-width:12rem;padding:.65rem .85rem;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text)}.pro-badge{display:inline-block;padding:.15rem .5rem;background:#3ecf8e26;color:var(--success);border-radius:999px;font-size:.75rem;margin-left:.5rem}.history-panel{margin-top:1rem}.history-title{margin:0;font-size:1rem}.history-hint{font-size:.8rem;color:var(--text-muted)}.history-list{list-style:none;margin:0 0 1rem;padding:0}.history-item{padding:.75rem;background:var(--surface-2);border:1px solid var(--border);border-radius:8px;margin-bottom:.5rem}.privacy-note{text-align:center;margin-top:1rem;font-size:.8rem;color:var(--text-muted)}.legal-page h1{font-size:1.5rem}.legal-page p,.legal-page li{color:var(--text-muted)}.app-footer{padding:2rem 1rem;border-top:1px solid var(--border);text-align:center;color:var(--text-muted);font-size:.8rem}.footer-links{display:flex;flex-wrap:wrap;justify-content:center;gap:1rem;margin-bottom:.75rem}.footer-links a{color:var(--text-muted)}.editor-card{display:flex;flex-direction:column;gap:1.25rem}.editor-section{display:flex;flex-direction:column;gap:.75rem}.editor-header{display:flex;align-items:center;justify-content:space-between;gap:.75rem}.code-input{width:100%;min-height:220px;padding:.85rem 1rem;border-radius:8px;border:1px solid var(--border);background:var(--bg);color:var(--text);font-family:SF Mono,Consolas,monospace;font-size:.85rem;line-height:1.55;resize:vertical}.code-output{margin:0;min-height:160px;max-height:420px;overflow:auto;padding:.85rem 1rem;border-radius:8px;border:1px solid var(--border);background:var(--bg);font-family:SF Mono,Consolas,monospace;font-size:.85rem;line-height:1.55;white-space:pre-wrap;color:var(--text-muted)}.limit-badge.warning{color:var(--danger)}.status-bar.error{background:#ef6b6b1f;border:1px solid rgba(239,107,107,.35);color:#ffb4b4}
