:root{--font:system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",Roboto,sans-serif;--mono:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,monospace;--bg:#f8fafc;--surface:#fff;--text:#0f172a;--muted:#475569;--border:#cbd5e1;--primary:#1d4ed8;--primary-hover:#1e40af;--primary-light:#eff6ff;--ring:rgba(29,78,216,0.25);--success:#047857;--success-bg:#ecfdf5;--danger:#b91c1c;--radius:8px;--shadow:0 1px 3px rgba(0,0,0,0.06);--shadow-md:0 4px 6px -1px rgba(0,0,0,0.08)}*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.5;font-size:16px;min-height:100vh;display:flex;flex-direction:column}a{color:var(--primary);text-decoration:underline;text-underline-offset:3px}a:hover{color:var(--primary-hover)}:focus-visible{outline:2px solid var(--primary);outline-offset:2px}.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:50}.header-container{max-width:1040px;margin:0 auto;padding:.75rem 1rem;display:flex;align-items:center;justify-content:space-between}.brand{display:inline-flex;align-items:center;gap:.5rem;font-weight:700;font-size:1.25rem;color:var(--text);text-decoration:none}.brand svg{width:26px;height:26px;fill:var(--primary)}.brand span{color:var(--primary)}.nav-links{display:flex;list-style:none;gap:1.25rem;align-items:center}.nav-links a{text-decoration:none;font-weight:500;font-size:.9375rem;color:var(--muted);transition:color .15s}.nav-links a:hover,.nav-links a.active{color:var(--primary)}.nav-item-dropdown{position:relative;display:flex;align-items:center}.nav-dropdown-toggle{display:inline-flex;align-items:center;gap:.25rem;cursor:pointer}.dropdown-chevron{transition:transform .2s ease}.nav-item-dropdown:hover .dropdown-chevron{transform:rotate(180deg)}.dropdown-menu{display:none;position:absolute;top:100%;left:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow-md);min-width:240px;max-height:400px;overflow-y:auto;list-style:none;padding:.5rem 0;z-index:100;margin-top:.25rem}.nav-item-dropdown:hover .dropdown-menu,.nav-item-dropdown:focus-within .dropdown-menu{display:block}.dropdown-menu li{padding:0}.dropdown-menu li a{display:block;padding:.5rem 1rem;font-size:.875rem;color:var(--text);text-decoration:none;transition:background .15s,color .15s}.dropdown-menu li a:hover{background:var(--primary-light);color:var(--primary)}.container{max-width:1040px;width:100%;margin:0 auto;padding:1.5rem 1rem 3rem;flex:1}.breadcrumbs{font-size:.875rem;color:var(--muted);margin-bottom:1rem;display:flex;align-items:center;gap:.5rem;flex-wrap:wrap}.breadcrumbs a{color:var(--muted);text-decoration:none}.breadcrumbs a:hover{text-decoration:underline}h1{font-size:1.75rem;line-height:1.25;font-weight:800;margin-bottom:.5rem;color:var(--text)}.lead{font-size:1.0625rem;color:var(--muted);margin-bottom:1.5rem;max-width:780px}.calc-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.5rem;box-shadow:var(--shadow);margin-bottom:2rem}.form-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(220px,1fr));gap:1rem;margin-bottom:1.25rem}.form-group{display:flex;flex-direction:column;gap:.375rem}.form-group label{font-size:.875rem;font-weight:600;color:var(--text)}.form-group .hint{font-size:.75rem;color:var(--muted)}input[type="number"],input[type="text"],input[type="date"],select,textarea{width:100%;padding:.625rem .75rem;font-family:inherit;font-size:1rem;border:1px solid var(--border);border-radius:6px;background:#fff;color:var(--text);transition:border-color .15s,box-shadow .15s}input:focus,select:focus,textarea:focus{border-color:var(--primary);box-shadow:0 0 0 3px var(--ring);outline:none}textarea{font-family:var(--mono);font-size:.9375rem;resize:vertical}.btn-group{display:flex;gap:.75rem;flex-wrap:wrap;align-items:center}.btn{display:inline-flex;align-items:center;justify-content:center;gap:.5rem;padding:.625rem 1.25rem;font-size:.9375rem;font-weight:600;border-radius:6px;border:1px solid transparent;cursor:pointer;text-decoration:none;transition:all .15s;background:var(--primary);color:#fff}.btn:hover{background:var(--primary-hover);color:#fff}.btn-secondary{background:#fff;color:var(--text);border-color:var(--border)}.btn-secondary:hover{background:#f1f5f9;color:var(--text)}.btn-sm{padding:.375rem .75rem;font-size:.8125rem}.btn-danger{background:var(--danger);color:#fff}.btn-danger:hover{background:#991b1b;color:#fff}.result-box{background:var(--primary-light);border:1px solid #bfdbfe;border-radius:6px;padding:1.25rem;margin-top:1.25rem}.result-title{font-size:.8125rem;font-weight:700;text-transform:uppercase;letter-spacing:.05em;color:#1e40af;margin-bottom:.25rem}.result-value{font-size:1.75rem;font-weight:800;color:#1e3a8a;word-break:break-all}.result-details{margin-top:.75rem;display:grid;grid-template-columns:repeat(auto-fit,minmax(180px,1fr));gap:.75rem;font-size:.875rem}.result-item{background:#fff;padding:.5rem .75rem;border-radius:4px;border:1px solid #dbeafe}.result-item-label{color:var(--muted);font-size:.75rem}.result-item-val{font-weight:700;color:var(--text)}.tabs{display:flex;gap:.25rem;border-bottom:2px solid var(--border);margin-bottom:1.25rem;overflow-x:auto}.tab-btn{padding:.5rem 1rem;font-size:.9375rem;font-weight:600;background:transparent;border:none;border-bottom:2px solid transparent;margin-bottom:-2px;color:var(--muted);cursor:pointer;white-space:nowrap}.tab-btn.active{color:var(--primary);border-bottom-color:var(--primary)}.check-group{display:flex;align-items:center;gap:.5rem;font-size:.875rem;cursor:pointer}.check-group input{width:1.125rem;height:1.125rem;cursor:pointer}.tool-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:1.25rem;margin:1.5rem 0 2.5rem}.tool-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:1.25rem;text-decoration:none;color:inherit;transition:border-color .15s,box-shadow .15s,transform .15s;display:flex;flex-direction:column}.tool-card:hover{border-color:var(--primary);box-shadow:var(--shadow-md);transform:translateY(-2px);color:inherit}.tool-icon{width:40px;height:40px;border-radius:8px;background:var(--primary-light);color:var(--primary);display:flex;align-items:center;justify-content:center;margin-bottom:.75rem}.tool-icon svg{width:22px;height:22px;stroke:currentColor;fill:none;stroke-width:2;stroke-linecap:round;stroke-linejoin:round}.tool-card h2,.tool-card h3{font-size:1.125rem;font-weight:700;margin-bottom:.375rem;color:var(--text)}.tool-card p{font-size:.875rem;color:var(--muted);line-height:1.45;margin-bottom:.75rem;flex:1}.tool-card .badge{font-size:.75rem;font-weight:600;color:var(--primary);display:inline-flex;align-items:center;gap:.25rem}.content-section{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:2rem 1.75rem;margin-bottom:2rem}.content-section h2{font-size:1.375rem;font-weight:700;margin-top:1.75rem;margin-bottom:.75rem;color:var(--text);border-bottom:1px solid #f1f5f9;padding-bottom:.375rem}.content-section h2:first-of-type{margin-top:0}.content-section h3{font-size:1.125rem;font-weight:600;margin-top:1.25rem;margin-bottom:.5rem;color:var(--text)}.content-section p,.content-section ul,.content-section ol{font-size:.9375rem;line-height:1.65;color:#334155;margin-bottom:1rem}.content-section ul,.content-section ol{padding-left:1.35rem}.content-section li{margin-bottom:.375rem}.formula-box{background:#f1f5f9;border-left:4px solid var(--primary);padding:.875rem 1.25rem;border-radius:0 6px 6px 0;font-family:var(--mono);font-size:.9375rem;margin:1rem 0;color:#0f172a}.example-box{background:var(--success-bg);border:1px solid #a7f3d0;border-radius:6px;padding:1rem 1.25rem;margin:1rem 0}.example-box h4{color:#065f46;font-size:.9375rem;font-weight:700;margin-bottom:.5rem}.faq-list{display:flex;flex-direction:column;gap:.75rem;margin-top:1rem}.faq-item{border:1px solid var(--border);border-radius:6px;overflow:hidden;background:#fff}.faq-item summary{padding:.875rem 1rem;font-weight:600;font-size:.9375rem;cursor:pointer;background:#f8fafc;color:var(--text);list-style:none;display:flex;justify-content:space-between;align-items:center}.faq-item summary::-webkit-details-marker{display:none}.faq-item summary::after{content:"+";font-size:1.25rem;font-weight:400;color:var(--muted)}.faq-item[open] summary::after{content:"\2212"}.faq-item p{padding:.875rem 1rem;margin:0;font-size:.875rem;color:#475569;background:#fff;border-top:1px solid var(--border)}.related-tools{margin-top:2rem;border-top:1px solid var(--border);padding-top:1.5rem}.related-tools h3{font-size:1.125rem;font-weight:700;margin-bottom:1rem}.related-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(200px,1fr));gap:1rem}.related-card{display:block;padding:.875rem;background:#fff;border:1px solid var(--border);border-radius:6px;text-decoration:none;color:inherit;transition:border-color .15s}.related-card:hover{border-color:var(--primary);color:inherit}.related-card strong{display:block;color:var(--primary);font-size:.875rem;margin-bottom:.25rem}.related-card span{font-size:.8125rem;color:var(--muted);line-height:1.35;display:block}.table-responsive{width:100%;overflow-x:auto;margin:1rem 0}table{width:100%;border-collapse:collapse;font-size:.875rem;text-align:left}th,td{padding:.625rem 0.75rem;border-bottom:1px solid var(--border)}th{background:#f1f5f9;font-weight:600;color:var(--text)}tr:nth-child(even){background:#f8fafc}.site-footer{background:#0f172a;color:#94a3b8;padding:2.5rem 1rem 1.5rem;margin-top:auto;font-size:.875rem}.footer-container{max-width:1040px;margin:0 auto}.footer-links{display:flex;flex-wrap:wrap;gap:1.25rem;margin-bottom:1.5rem;list-style:none}.footer-links a{color:#cbd5e1;text-decoration:none}.footer-links a:hover{color:#fff;text-decoration:underline}.footer-text{font-size:.8125rem;line-height:1.5;color:#64748b;border-top:1px solid #1e293b;padding-top:1rem}.notice{background:#fffbeb;border-left:4px solid #f59e0b;padding:.75rem 1rem;font-size:.875rem;color:#92400e;border-radius:0 4px 4px 0;margin:1rem 0}.timer-display{font-size:4rem;font-weight:800;font-family:var(--mono);text-align:center;color:#1e3a8a;margin:1rem 0;line-height:1}.canvas-preview{max-width:100%;height:auto;border:1px solid var(--border);border-radius:6px;background:#fff;margin-top:1rem;display:block}@media (max-width:640px){.header-container{flex-direction:column;align-items:flex-start;gap:.5rem}.nav-links{gap:.875rem;font-size:.875rem}h1{font-size:1.5rem}.calc-card{padding:1rem}.content-section{padding:1.25rem 1rem}.tool-grid{grid-template-columns:1fr}.timer-display{font-size:3rem}}