:root{--bg:#fff;--surface:#fff;--surface-muted:#f4f5f7;--surface-hover:#edeef1;--border:#d5d9e0;--border-strong:#a5aeb8;--ink:#111318;--muted:#5c6470;--soft:#8a929e;--accent:#1a5ce5;--accent-strong:#1348b8;--accent-subtle:#1a5ce514;--success:#1f7a3c;--success-bg:#1f7a3c14;--error:#b91c1c;--error-bg:#fef2f2;--error-border:#fecaca;--shadow-sm:0 1px 2px #0000000a;--shadow-md:0 2px 8px #0000000f;--shadow-lg:0 4px 16px #00000014;--radius-lg:10px;--radius-md:6px;--radius-sm:4px;--font-ui:Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;--font-mono:"SF Mono", "Berkeley Mono", "IBM Plex Mono", "Menlo", monospace;color:var(--ink);background:var(--bg);font-family:var(--font-ui);font-synthesis:none;text-rendering:optimizelegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale;font-weight:400;line-height:1.5}:root.dark{--bg:#0c0d10;--surface:#141519;--surface-muted:#1a1c22;--surface-hover:#22252c;--border:#2a2e36;--border-strong:#3d424d;--ink:#e8e9ec;--muted:#8a929e;--soft:#5c6470;--accent:#4f8cff;--accent-strong:#6fa0ff;--accent-subtle:#4f8cff1a;--success:#3cb870;--success-bg:#3cb8701a;--error:#ef4444;--error-bg:#ef444414;--error-border:#ef444433;--shadow-sm:0 1px 2px #0003;--shadow-md:0 2px 8px #0000004d;--shadow-lg:0 4px 16px #0006}@media (prefers-color-scheme:dark){:root:not(.light){--bg:#0c0d10;--surface:#141519;--surface-muted:#1a1c22;--surface-hover:#22252c;--border:#2a2e36;--border-strong:#3d424d;--ink:#e8e9ec;--muted:#8a929e;--soft:#5c6470;--accent:#4f8cff;--accent-strong:#6fa0ff;--accent-subtle:#4f8cff1a;--success:#3cb870;--success-bg:#3cb8701a;--error:#ef4444;--error-bg:#ef444414;--error-border:#ef444433;--shadow-sm:0 1px 2px #0003;--shadow-md:0 2px 8px #0000004d;--shadow-lg:0 4px 16px #0006}}*{box-sizing:border-box}html{min-width:320px;font-size:17px}body{background:var(--bg);min-height:100dvh;margin:0;transition:background-color .2s}button,input{font:inherit}a{color:inherit;text-decoration:none}#root{min-height:100dvh}@keyframes fadeIn{0%{opacity:0}to{opacity:1}}@keyframes fadeSlideUp{0%{opacity:0;transform:translateY(12px)}to{opacity:1;transform:translateY(0)}}@keyframes subtlePulse{0%,to{opacity:1}50%{opacity:.6}}.site-frame{flex-direction:column;min-height:100dvh;padding:28px 24px 22px;animation:.3s ease-out fadeIn;display:flex;position:relative}.site-backdrop{display:none}.topbar,.page-shell,.site-footer{z-index:1;width:min(920px,100%);margin:0 auto;position:relative}.page-shell{flex:1}.topbar{justify-content:space-between;align-items:center;gap:24px;padding:0 0 40px;display:flex}.brand{align-items:center;gap:10px;display:inline-flex}.brand__icon{border-radius:var(--radius-sm);background:var(--surface-muted);border:1px solid var(--border);width:28px;height:28px;color:var(--muted);justify-content:center;align-items:center;transition:border-color .16s,background-color .16s,color .16s;display:flex}.brand:hover .brand__icon{border-color:var(--border-strong);background:var(--surface-hover);color:var(--ink)}.brand:hover .brand__title{color:var(--ink)}.brand__title{letter-spacing:-.01em;color:var(--muted);font-size:1rem;font-weight:700;transition:color .16s}.topbar__right{align-items:center;gap:12px;display:flex}.theme-toggle{border-radius:var(--radius-sm);border:1px solid var(--border);background:var(--surface);width:32px;height:32px;color:var(--muted);cursor:pointer;justify-content:center;align-items:center;transition:border-color .16s,background-color .16s,color .16s;display:flex}.theme-toggle:hover,.theme-toggle:focus-visible{border-color:var(--border-strong);background:var(--surface-muted);color:var(--ink);outline:none}.site-footer{border-top:1px solid var(--border);justify-content:space-between;align-items:center;gap:12px;margin-top:48px;padding-top:16px;padding-bottom:6px;animation:.4s ease-out .1s both fadeSlideUp;display:flex}.footer-copy{color:var(--muted);font-size:.84rem}.footer-links{gap:10px;display:flex}.footer-links a{border-radius:var(--radius-sm);width:28px;height:28px;color:var(--muted);justify-content:center;align-items:center;transition:color .16s,background-color .16s;display:flex}.footer-links a:hover{color:var(--ink);background:var(--surface-muted)}.page{gap:20px;animation:.35s ease-out 50ms both fadeSlideUp;display:grid}.page--home{padding-top:16px}.page--tool{padding-top:8px}.home-hero{margin-bottom:8px}.home-hero__title{letter-spacing:-.02em;margin:0 0 6px;font-size:1.5rem;font-weight:700;line-height:1.2}.home-hero__subtitle{color:var(--muted);max-width:480px;margin:0;font-size:.98rem;line-height:1.5}.tool-hero{justify-self:center;width:min(820px,100%);margin-bottom:4px}.tool-hero .home-hero__subtitle{max-width:100%}.tools-grid{grid-template-columns:repeat(auto-fill,minmax(240px,1fr));gap:14px;display:grid}.tool-card{border:1px solid var(--border);border-radius:var(--radius-lg);background:var(--surface);padding:22px 24px;transition:border-color .18s,box-shadow .18s,transform .18s,background-color .2s;display:block}.tool-card__header{justify-content:space-between;align-items:center;margin-bottom:14px;display:flex}.tool-card__arrow{color:var(--soft);flex-shrink:0;padding-right:4px;transition:color .16s,transform .18s}.tool-card:hover,.tool-card:focus-visible{border-color:var(--border-strong);box-shadow:var(--shadow-md);outline:none;transform:translateY(-1px)}.tool-card__icon{border-radius:var(--radius-md);background:var(--surface-muted);border:1px solid var(--border);width:36px;height:36px;color:var(--accent);justify-content:center;align-items:center;transition:background-color .16s,border-color .16s;display:flex}.tool-card:hover .tool-card__icon{background:var(--accent-subtle);border-color:#0000}.tool-card:hover .tool-card__arrow{color:var(--accent);transform:translate(2px)}.tool-card__title{margin:0 0 6px;font-size:1.04rem;font-weight:700;line-height:1.25;transition:color .16s}.tool-card__desc{color:var(--muted);margin:0;font-size:.93rem;line-height:1.45}.empty-state{color:var(--soft);border:1px dashed var(--border);border-radius:var(--radius-md);background:var(--surface-muted);justify-content:center;align-items:center;gap:8px;max-width:max-content;padding:10px 16px;font-size:.9rem;display:inline-flex}.tool-page-back{justify-self:center;width:min(820px,100%)}.back-link{color:var(--muted);align-items:center;gap:4px;font-size:.88rem;font-weight:500;transition:color .16s;display:inline-flex}.back-link:hover{color:var(--ink)}.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-lg);transition:background-color .2s,border-color .2s}.tool-surface{justify-self:center;gap:0;width:min(820px,100%);padding:28px;transition:background-color .2s,border-color .2s;display:grid}.tool-notice{width:min(820px,100%);color:var(--soft);text-align:left;justify-self:center;margin:10px 0 0;font-size:.84rem;line-height:1.5}.url-pair{grid-template-columns:1fr auto 1fr;align-items:end;gap:12px;display:grid}.swap-btn{border:1px solid var(--border);background:var(--surface);width:36px;height:36px;color:var(--muted);cursor:pointer;border-radius:50%;flex-shrink:0;justify-content:center;align-items:center;margin-bottom:1px;transition:color .16s,border-color .16s,background-color .16s,transform .2s cubic-bezier(.34,1.56,.64,1);display:flex}.swap-btn:hover,.swap-btn:focus-visible{border-color:var(--border-strong);background:var(--surface-muted);color:var(--ink);outline:none}.swap-btn:active{transform:scale(.92)}.url-field{gap:6px;display:grid}.url-field__label{color:var(--ink);font-size:.9rem;font-weight:600;transition:color .16s}.url-input-wrap{display:grid;position:relative}.url-input{border:1px solid var(--border);border-radius:var(--radius-md);background:var(--surface);width:100%;height:38px;color:var(--ink);font-family:var(--font-mono);text-overflow:ellipsis;white-space:nowrap;padding:0 12px;font-size:.9rem;transition:border-color .16s,background-color .16s,box-shadow .16s;overflow:hidden}.url-input--has-trailing{padding-right:38px}.url-input:focus-visible{border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-subtle);outline:none}.url-input:read-only{background:var(--surface-muted);cursor:default}.url-input-wrap:has(.url-field__copy-btn) .url-input:read-only{cursor:pointer}.url-field__copy-btn{border-radius:var(--radius-sm);width:26px;height:26px;color:var(--soft);cursor:pointer;opacity:0;background:0 0;border:none;justify-content:center;align-items:center;transition:color .16s,background-color .16s,opacity .16s;display:flex;position:absolute;top:50%;right:5px;translate:0 -50%}.url-input-wrap:hover .url-field__copy-btn,.url-field__copy-btn:focus-visible,.url-field__copy-btn--copied{opacity:1}.url-field__copy-btn:hover{color:var(--ink);background:var(--surface-hover);outline:none}.url-field__copy-btn--copied{color:var(--success)}.url-input--error{color:var(--error);background:var(--error-bg);border-color:var(--error-border)}.url-input--error:read-only{background:var(--error-bg)}.url-input--error:focus-visible{box-shadow:0 0 0 3px #b91c1c1a}.tool-actions{justify-content:center;gap:10px;padding-top:20px;display:flex}.status-msg{color:var(--success);text-align:center;margin:14px 0 0;font-size:.9rem;font-weight:500;animation:.2s ease-out fadeSlideUp}.status-msg--error{color:var(--error)}.button{border-radius:var(--radius-md);border:1px solid var(--border);cursor:pointer;justify-content:center;align-items:center;gap:6px;min-height:38px;padding:0 16px;font-size:.94rem;font-weight:600;transition:background-color .16s,border-color .16s,color .16s,box-shadow .16s,transform 80ms;display:inline-flex}.button:hover:not(:disabled),.button:focus-visible:not(:disabled){outline:none}.button:active:not(:disabled){transform:translateY(1px)}.button:disabled{cursor:not-allowed;opacity:.45}.button--primary{background:var(--accent);color:#fff;border-color:#0000}.button--primary:hover:not(:disabled),.button--primary:focus-visible:not(:disabled){background:var(--accent-strong);box-shadow:var(--shadow-sm)}:root.dark .button--primary{color:#0c0d10}.button--secondary{background:var(--surface);color:var(--ink)}.button--secondary:hover:not(:disabled),.button--secondary:focus-visible:not(:disabled){border-color:var(--border-strong);background:var(--surface-muted)}.button--success{background:var(--success-bg);color:var(--success);border-color:#1f7a3c33}:root.dark .button--success{border-color:#3cb87033}@media (width<=640px){html{font-size:16px}.empty-state{border-radius:var(--radius-lg);width:100%;max-width:none;padding:48px 24px;font-size:.94rem;display:flex}.site-frame{padding:20px 16px 16px}.topbar{padding-bottom:28px}.home-hero__title{font-size:1.32rem}.tools-grid{gap:12px}.tool-card{padding:16px 16px 18px}.tool-card__icon{width:32px;height:32px}.tool-card__title{font-size:.98rem}.tool-card__desc{font-size:.88rem}.tool-surface{padding:20px}.tool-hero .home-hero__subtitle{max-width:100%}.tool-notice{margin-top:8px;font-size:.8rem}.url-pair{grid-template-rows:auto auto auto;grid-template-columns:1fr;gap:14px}.swap-btn{justify-self:center;margin-bottom:0}.tool-actions{flex-wrap:wrap}}@media (width<=380px){.site-frame{padding-inline:14px}.home-hero__title{font-size:1.2rem}.tools-grid{gap:10px}.tool-card{padding:14px 14px 16px}.tool-card__desc{font-size:.84rem}}
