:root{--bg: #fafafa;--text: #1f2937;--muted: #6b7280;--primary: #7c3aed;--primary-start: #7c3aed;--primary-end: #ec4899;--border: #e5e7eb;--panel: #f8f9fa}:root[data-theme=dark]{--bg: #0a0f1e;--text: #e5e7eb;--muted: #cbd5e1;--primary: #a78bfa;--primary-start: #a78bfa;--primary-end: #f472b6;--border: #334155;--panel: #0f172a}*{box-sizing:border-box}#root{min-height:100vh;display:flex;flex-direction:column}body{margin:0;font-family:ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";color:var(--text);background:var(--bg)}.site-footer{border-top:1px solid var(--border);background:linear-gradient(135deg,#667eea,#764ba2);margin-top:24px;color:#fff}.site-footer .inner{max-width:800px;margin:0 auto;padding:24px 20px;display:flex;flex-wrap:wrap;gap:12px;align-items:center;justify-content:space-between}.footer-links{display:inline-flex;gap:16px}.footer-links a{color:#fffc;text-decoration:none;transition:all .2s ease;padding:4px 8px;border-radius:4px;font-weight:500}.footer-links a:hover{color:#fff;background:#ffffff1a;text-decoration:none}.copyright{color:#ffffffb3;font-size:14px;font-weight:500}:root[data-theme=dark] .site-footer{background:linear-gradient(135deg,#4c63d2,#5a4fcf)}.converter-layout{display:flex;flex-direction:column;gap:20px;max-width:600px;margin:0 auto;width:100%;min-width:0}.converter-row{display:grid;grid-template-columns:1fr 1fr;gap:20px;align-items:end}.converter-field{display:flex;flex-direction:column;gap:8px;text-align:center}.converter-field label{font-size:14px;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.5px;margin-bottom:4px}.converter-field input,.converter-field select{width:100%;padding:12px 16px;border:2px solid var(--border);border-radius:8px;font-size:16px;text-align:center;transition:all .2s ease;background:#fff;color:var(--text);cursor:pointer;min-width:0;box-sizing:border-box}.converter-field select{appearance:none;-webkit-appearance:none;-moz-appearance:none;background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%236b7280' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e");background-position:right 12px center;background-repeat:no-repeat;background-size:16px;padding-right:40px;cursor:pointer}.converter-field select:hover{border-color:var(--primary);background-color:var(--panel)}.converter-field select:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #7c3aed1a;background-color:#fff}.converter-field input:focus{outline:none;border-color:var(--primary);box-shadow:0 0 0 3px #7c3aed1a}.result-display{width:100%;padding:12px 16px;border:2px solid var(--border);border-radius:8px;font-size:16px;font-weight:700;text-align:center;background:var(--panel);color:var(--text);min-height:48px;display:flex;align-items:center;justify-content:center}.validation-hint{color:#ef4444;font-size:12px;margin-top:4px;text-align:center}:root[data-theme=dark] .converter-field input,:root[data-theme=dark] .converter-field select{background:#141c2f;color:var(--text);border-color:var(--border)}:root[data-theme=dark] .converter-field select{background-image:url("data:image/svg+xml,%3csvg xmlns='http://www.w3.org/2000/svg' fill='none' viewBox='0 0 20 20'%3e%3cpath stroke='%23cbd5e1' stroke-linecap='round' stroke-linejoin='round' stroke-width='1.5' d='M6 8l4 4 4-4'/%3e%3c/svg%3e")!important;background-position:right 12px center!important;background-repeat:no-repeat!important;background-size:16px!important}:root[data-theme=dark] .converter-field select:hover{background-color:#1a2332;border-color:var(--primary)}:root[data-theme=dark] .converter-field select:focus{background-color:#141c2f}:root[data-theme=dark] .result-display{background:#0f172a;border-color:var(--border)}:root[data-theme=dark] .converter-field input:focus,:root[data-theme=dark] .converter-field select:focus{border-color:var(--primary);box-shadow:0 0 0 3px #8b5cf633}.popular-conversions{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:12px;margin-top:16px}.popular-conversion-btn{padding:12px 16px;border:2px solid var(--border);border-radius:8px;background:var(--panel);color:var(--text);font-size:14px;font-weight:600;text-align:center;cursor:pointer;transition:all .2s ease;text-decoration:none;display:block;position:relative;box-shadow:0 2px 4px #0000000d}.popular-conversion-btn:hover{background:var(--primary);color:#fff;border-color:var(--primary);transform:translateY(-2px);box-shadow:0 6px 16px #7c3aed40}.popular-conversion-btn:active{transform:translateY(-1px);box-shadow:0 4px 12px #7c3aed4d}.popular-conversion-btn:after{content:"→";position:absolute;right:12px;top:50%;transform:translateY(-50%);opacity:0;transition:opacity .2s ease;font-weight:700}.popular-conversion-btn:hover:after{opacity:1}:root[data-theme=dark] .popular-conversion-btn{background:#0f172a;border-color:var(--border);color:var(--text);box-shadow:0 2px 4px #0003}:root[data-theme=dark] .popular-conversion-btn:hover{background:var(--primary);color:#fff;border-color:var(--primary);box-shadow:0 6px 16px #8b5cf640}.history-section{margin-top:60px;padding:40px 0;border-top:1px solid var(--border)}.history-section h2{font-size:28px;font-weight:700;color:var(--text);margin-bottom:24px;text-align:center}.history-content{max-width:800px;margin:0 auto;line-height:1.7}.history-content p{font-size:16px;color:var(--text);margin-bottom:20px;text-align:justify}.history-content p:last-child{margin-bottom:0}.converters-section{background:linear-gradient(135deg,#fef3c7,#fde68a);border:2px solid #f59e0b;border-radius:12px;padding:20px;box-shadow:0 4px 6px #0000000d;transition:all .3s ease;position:relative;overflow:hidden}.converters-section:before{content:"";position:absolute;top:0;left:-100%;width:100%;height:100%;background:linear-gradient(90deg,transparent,rgba(255,255,255,.3),transparent);transition:left .5s ease}.converters-section:hover{transform:translateY(-2px);box-shadow:0 8px 15px #f59e0b33;border-color:#d97706}.converters-section:hover:before{left:100%}.section-header{margin-bottom:16px;padding-bottom:8px;border-bottom:2px solid rgba(0,0,0,.1)}.section-header h3{margin:0;font-size:18px;font-weight:700;color:#374151;text-transform:uppercase;letter-spacing:.5px}.converters-content{min-height:200px}:root[data-theme=dark] .converters-section{background:linear-gradient(135deg,#451a03,#92400e);border-color:#d97706;color:#fef3c7}:root[data-theme=dark] .section-header h3{color:#f1f5f9}:root[data-theme=dark] .section-header{border-bottom-color:#fff3}.specialized-section{width:350px;background:var(--panel);border-radius:12px;padding:20px;border:1px solid var(--border);height:fit-content}.specialized-converters h3{font-size:18px;font-weight:600;color:var(--text);margin-bottom:16px;text-align:center}.converter-categories{display:flex;flex-direction:column;gap:8px}.converter-category{border:1px solid var(--border);border-radius:8px;overflow:hidden}.category-header{width:100%;padding:12px 16px;background:var(--background);border:none;display:flex;justify-content:space-between;align-items:center;cursor:pointer;font-size:14px;font-weight:500;color:var(--text);transition:background-color .2s}.category-header:hover{background:var(--muted)}.dropdown-arrow{transition:transform .2s;font-size:12px;color:var(--muted)}.dropdown-arrow.expanded{transform:rotate(180deg)}.converter-list{border-top:1px solid var(--border);background:var(--panel)}.converter-item{width:100%;padding:10px 16px;background:transparent;border:none;text-align:left;cursor:pointer;transition:background-color .2s;border-bottom:1px solid var(--border)}.converter-item:last-child{border-bottom:none}.converter-item:hover{background:var(--muted)}.converter-name{display:block;font-size:14px;font-weight:500;color:var(--text);margin-bottom:2px}.converter-description{display:block;font-size:12px;color:var(--muted)}.specialized-converter{margin-top:20px}.specialized-converter-placeholder{text-align:center;padding:40px 20px;color:var(--muted);font-style:italic}.converter-header{margin-bottom:20px}.converter-header h3{font-size:16px;font-weight:600;color:var(--text);margin:0 0 4px}.converter-description{font-size:12px;color:var(--muted);margin:0}:root[data-theme=dark] .specialized-section{background:#0f172a;border-color:#334155}:root[data-theme=dark] .category-header{background:#1e293b;color:#e2e8f0}:root[data-theme=dark] .category-header:hover{background:#334155}:root[data-theme=dark] .converter-list{background:#0f172a;border-color:#334155}:root[data-theme=dark] .converter-item{border-color:#334155}:root[data-theme=dark] .converter-item:hover{background:#334155}@media (max-width: 1200px){.two-column-layout,.hero{grid-template-columns:600px 200px;gap:20px}header.site-header .inner{grid-template-columns:600px 200px;gap:20px}}@media (max-width: 1024px){.two-column-layout{grid-template-columns:1fr;gap:20px}.center-column{order:1;padding-left:0}.right-column{order:2;position:static}}a{color:var(--primary);text-decoration:none}a:hover{text-decoration:underline}header.site-header{border-bottom:1px solid var(--border);background:var(--panel)}header.site-header .inner{max-width:1400px;margin:0 auto;padding:16px 20px;display:flex;align-items:center;justify-content:space-between;gap:24px}header h1{margin:0;font-size:48px;line-height:1.1;font-weight:800}header p{margin:6px 0 0;color:var(--muted);font-size:18px;font-weight:600}.brand{display:flex;align-items:center;gap:10px;flex:1;min-width:0;margin-left:180px}.brand img{width:52px;height:52px}.brand-title{display:flex;flex-direction:column;align-items:center;text-align:center}.brand-link{text-decoration:none;color:inherit;display:flex;flex-direction:column;align-items:center;text-align:center}.brand-link:hover{text-decoration:none}.app-name{font-size:48px;font-weight:800;letter-spacing:-.02em;background:linear-gradient(135deg,var(--primary-start),var(--primary-end));-webkit-background-clip:text;background-clip:text;color:transparent;text-align:center}.brand-badge{display:inline-block;margin-top:4px;font-size:12px;padding:2px 8px;border-radius:999px;border:1px solid var(--border);color:var(--muted)}.brand-title small{color:var(--muted);font-size:14px;margin-top:2px}.layout{width:100%;max-width:1400px;margin:0 auto;padding:24px 20px;flex:1;display:flex;gap:20px}.two-column-layout{width:100%;max-width:1400px;margin:0 auto;padding:24px 20px;display:grid;grid-template-columns:700px 250px;gap:24px;align-items:start;justify-content:center}.left-column{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px;height:fit-content;position:sticky;top:20px}.center-column{display:flex;flex-direction:column;gap:20px;padding-left:8px}.right-column{background:var(--panel);border:1px solid var(--border);border-radius:12px;padding:20px;height:fit-content;position:sticky;top:20px}.ad-placeholder{text-align:center;padding:40px 20px;color:var(--muted);border:2px dashed var(--border);border-radius:8px;background:var(--background)}.ad-placeholder p{font-size:16px;font-weight:500;margin:0 0 8px;color:var(--text)}.ad-placeholder small{font-size:12px;color:var(--muted)}.content{display:grid;gap:16px;max-width:800px;margin:0 auto}.main-converter-section{flex:1;margin-right:20px}.content section{background:var(--panel);border:1px solid var(--border);border-radius:10px;padding:16px;box-shadow:0 1px 2px #00000014}.hero{max-width:1400px;margin:16px auto 0;padding:0 20px 12px;text-align:left;display:grid;grid-template-columns:700px 250px;gap:24px;align-items:start;justify-content:center}.hero h1{font-size:42px;font-weight:700;margin:0 0 8px -8px;grid-column:1;padding-left:0}.hero p{margin:6px 0 0;color:var(--muted);font-size:18px}.version-badge{display:inline-block;margin-top:16px;padding:6px 12px;background:#fff3;border:1px solid rgba(255,255,255,.3);border-radius:20px;font-size:14px;font-weight:500;color:#ffffffe6;-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}.seo-content{max-width:800px;margin:40px auto;padding:0 20px;text-align:left}.seo-content details{border:1px solid var(--border);border-radius:8px;background:var(--panel);padding:16px}.seo-content summary{color:var(--text);font-size:18px;font-weight:600;cursor:pointer;list-style:none;padding:8px 0;border-bottom:1px solid var(--border);margin-bottom:16px}.seo-content summary:before{content:"▶";margin-right:8px;transition:transform .2s}.seo-content details[open] summary:before{transform:rotate(90deg)}.seo-details p{color:var(--muted);line-height:1.6;margin-bottom:16px}.seo-details ul{color:var(--muted);line-height:1.6;margin-bottom:16px;padding-left:20px}.seo-details li{margin-bottom:8px}.seo-details strong{color:var(--text);font-weight:600}.legal-page{min-height:100vh;background:var(--bg)}.legal-content{max-width:1000px;margin:0 auto;padding:20px;display:grid;grid-template-columns:250px 1fr;gap:40px}.legal-nav{position:sticky;top:20px;height:fit-content;background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:20px}.legal-nav a{display:block;color:var(--muted);text-decoration:none;padding:12px 16px;margin-bottom:8px;border-radius:6px;transition:all .2s}.legal-nav a:hover{background:var(--border);color:var(--text)}.legal-nav a.active{background:var(--primary);color:#fff}.legal-main{background:var(--panel);border:1px solid var(--border);border-radius:8px;padding:40px}.legal-section{margin-bottom:60px}.legal-section h1{color:var(--text);font-size:32px;font-weight:700;margin-bottom:16px;border-bottom:3px solid var(--primary);padding-bottom:12px}.legal-section h2{color:var(--text);font-size:24px;font-weight:600;margin:32px 0 16px}.legal-section p{color:var(--muted);line-height:1.7;margin-bottom:16px}.legal-section ul{color:var(--muted);line-height:1.7;margin-bottom:16px;padding-left:24px}.legal-section li{margin-bottom:8px}.legal-section strong{color:var(--text);font-weight:600}.legal-section a{color:var(--primary);text-decoration:none}.legal-section a:hover{text-decoration:underline}@media (max-width: 768px){.legal-content{grid-template-columns:1fr;gap:20px}.legal-nav{position:static;order:2}.legal-main{order:1;padding:20px}.legal-section h1{font-size:28px}.legal-section h2{font-size:20px}}.tabs{display:flex;gap:10px;flex-wrap:wrap;margin-bottom:12px;justify-content:center}.tab{border:1px solid var(--border);background:#fff;color:var(--text);padding:10px 14px;border-radius:12px;box-shadow:0 1px #0000000a,0 1px 2px #0000000f;transition:background .15s ease,transform .04s ease,box-shadow .15s ease,border-color .15s ease;font-weight:600}.tab:hover{background:var(--panel)}.tab:active{transform:translateY(1px)}.tab.active{background:linear-gradient(135deg,var(--primary-start),var(--primary-end));border-color:var(--primary-start);color:#fff;box-shadow:0 6px 18px #7c3aed47,0 2px 6px #ec48992e}.tab:focus-visible{outline:none;box-shadow:0 0 0 3px #7c3aed59}:root[data-theme=dark] .tab{background:#0f172a;border-color:var(--border);color:var(--text);box-shadow:0 1px #0006,0 1px 2px #00000059}:root[data-theme=dark] .tab:hover{background:#111a2e}:root[data-theme=dark] .tab.active{background:linear-gradient(135deg,var(--primary-start),var(--primary-end));border-color:var(--primary-start);color:#fff;box-shadow:0 6px 18px #8b5cf647,0 2px 6px #f472b62e}:root[data-theme=dark] .theme-toggle{background:#0f172a;border-color:var(--border);color:var(--text)}:root[data-theme=dark] input,:root[data-theme=dark] select{background:#141c2f;color:var(--text);border-color:var(--border)}:root[data-theme=dark] ::placeholder{color:#b6bfcc}:root[data-theme=dark] input,:root[data-theme=dark] select{caret-color:#cbd5e1;box-shadow:0 0 0 2px transparent}:root[data-theme=dark] input:focus,:root[data-theme=dark] select:focus{border-color:#334155;box-shadow:0 0 0 2px #60a5fa40}:root[data-theme=dark] .ad-box{background:#0b1220;border-color:var(--border)}.theme-toggle{display:inline-flex;align-items:center;gap:6px;border:1px solid var(--border);background:#fff;color:var(--text);padding:6px 12px;border-radius:999px;font-size:14px;font-weight:500;margin-right:220px}.inline-actions{display:inline-flex;gap:8px;margin-left:8px}.hint{color:var(--muted);font-size:12px}label{font-size:14px;color:var(--muted)}input,select{font:inherit;padding:8px 10px;border:1px solid var(--border);border-radius:8px}h2{font-size:24px;font-weight:700;color:var(--text);margin:0 0 16px;padding-bottom:8px;border-bottom:2px solid var(--border)}input{width:160px}select{min-width:100px}button{font:inherit;padding:8px 12px;border:1px solid var(--primary);color:#fff;background:var(--primary);border-radius:8px;cursor:pointer}.specialized-converter-page{min-height:100vh;background:var(--background)}.specialized-converter-page .hero{max-width:1400px;margin:16px auto 0;padding:0 20px 12px;text-align:left;display:grid;grid-template-columns:700px 250px;gap:24px;align-items:start;justify-content:center}.specialized-converter-page .hero h1{font-size:42px;font-weight:700;margin:0 0 8px -8px;grid-column:1;padding-left:0}.specialized-converter-page .hero p{margin:6px 0 0;color:var(--muted);font-size:18px;grid-column:1}.hero-description{font-size:18px;color:var(--muted);margin:0 0 40px;line-height:1.6}.converter-section{max-width:800px;margin:0 auto;padding:0 20px 40px}.back-section{text-align:center;padding:40px 20px;max-width:800px;margin:0 auto}.back-link{display:inline-flex;align-items:center;gap:8px;padding:12px 24px;background:var(--panel);border:1px solid var(--border);border-radius:8px;color:var(--text);text-decoration:none;font-weight:500;transition:all .2s ease}.back-link:hover{background:var(--border);text-decoration:none}.specialized-converter-page .two-column-layout{width:100%;max-width:1400px;margin:0 auto;padding:24px 20px;display:grid;grid-template-columns:700px 250px;gap:24px;align-items:start;justify-content:center}.specialized-converter-page .center-column{width:100%;max-width:700px;margin:0 auto;padding-left:0}.specialized-converter-page .right-column{width:100%;max-width:250px;margin:0 auto}.specialized-converter-page .tabs{display:flex;gap:8px;margin-bottom:24px;justify-content:flex-start}.specialized-converter-page .tab{padding:12px 24px;background:var(--panel);border:1px solid var(--border);border-radius:8px;font-weight:600;color:var(--text);cursor:pointer;transition:all .2s ease}.specialized-converter-page .tab.active{background:var(--primary);color:#fff;border-color:var(--primary)}.specialized-converter-page .available-units{margin-top:16px}.specialized-converter-page .available-units h4{margin:0 0 12px;font-size:16px;font-weight:600;color:var(--text)}.specialized-converter-page .available-units ul{margin:0;padding-left:20px;list-style:disc}.specialized-converter-page .available-units li{margin-bottom:8px;color:var(--muted);font-size:14px;line-height:1.4}
