*,*::before,*::after{box-sizing:border-box;margin:0;padding:0}:root{--bg:#f8f9fb;--surface:#fff;--surface-alt:#f1f5f9;--border:#e2e8f0;--border-dark:#cbd5e1;--text:#1e293b;--text-secondary:#475569;--text-muted:#94a3b8;--accent:#2563eb;--accent-hover:#1d4ed8;--accent-light:#dbeafe;--green:#16a34a;--green-light:#dcfce7;--yellow:#ca8a04;--yellow-light:#fef9c3;--red:#dc2626;--red-light:#fee2e2;--radius:10px;--radius-sm:6px;--shadow:0 1px 3px rgba(0,0,0,.06),0 1px 2px rgba(0,0,0,.04);--shadow-md:0 4px 12px rgba(0,0,0,.08);--font:system-ui,-apple-system,BlinkMacSystemFont,'Segoe UI',Roboto,sans-serif;--max-width:1120px;--rail-width:300px}
html{scroll-behavior:smooth}body{font-family:var(--font);background:var(--bg);color:var(--text);line-height:1.6;-webkit-font-smoothing:antialiased}
.container{max-width:var(--max-width);margin:0 auto;padding:0 20px}
.sr-only{position:absolute;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.site-header{background:var(--surface);border-bottom:1px solid var(--border);position:sticky;top:0;z-index:100}.site-header .container{display:flex;align-items:center;justify-content:space-between;height:56px}
.logo{display:flex;align-items:center;gap:8px;font-weight:700;font-size:1.05rem;color:var(--text);text-decoration:none}.logo svg{color:var(--accent)}
.site-nav{display:flex;gap:4px}.site-nav a{padding:6px 12px;border-radius:var(--radius-sm);text-decoration:none;color:var(--text-secondary);font-size:.9rem;font-weight:500;transition:background .15s}.site-nav a:hover{background:var(--surface-alt);color:var(--text)}
.hero-section{background:linear-gradient(135deg,#1e3a5f 0%,#2563eb 100%);color:#fff;padding:48px 0 40px}.hero-section h1{font-size:clamp(1.6rem,4vw,2.4rem);font-weight:800;line-height:1.2;margin-bottom:8px}.hero-sub{font-size:1.05rem;opacity:.85;max-width:560px}
.checker-app{padding:32px 0}.checker-grid{display:grid;grid-template-columns:1fr var(--rail-width);gap:24px;align-items:start}.checker-main{display:flex;flex-direction:column;gap:20px}
.card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.card-title{font-size:1.1rem;font-weight:700;margin-bottom:16px}
.form-row{display:flex;gap:12px;flex-wrap:wrap}.field-group{flex:1;min-width:140px;display:flex;flex-direction:column;gap:4px}.field-group label{font-size:.82rem;font-weight:600;color:var(--text-secondary)}.field-group input,.field-group select{padding:9px 12px;border:1px solid var(--border-dark);border-radius:var(--radius-sm);font-size:.95rem;font-family:var(--font);background:var(--surface);color:var(--text);transition:border .15s}.field-group input:focus,.field-group select:focus{outline:none;border-color:var(--accent);box-shadow:0 0 0 3px var(--accent-light)}
.preset-row{display:flex;align-items:center;gap:8px;flex-wrap:wrap;margin-top:12px}.preset-label{font-size:.82rem;color:var(--text-muted)}.preset-btn{padding:4px 12px;border:1px solid var(--border-dark);border-radius:99px;background:var(--surface);font-size:.82rem;cursor:pointer;transition:all .15s}.preset-btn:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-light)}
.search-wrap{position:relative;margin-bottom:12px}.search-wrap input{width:100%}.search-results{position:absolute;top:100%;left:0;right:0;background:var(--surface);border:1px solid var(--border);border-radius:var(--radius-sm);box-shadow:var(--shadow-md);max-height:280px;overflow-y:auto;z-index:50;display:none}.search-results.active{display:block}.search-result-item{padding:10px 14px;cursor:pointer;display:flex;justify-content:space-between;align-items:center;border-bottom:1px solid var(--border);transition:background .12s}.search-result-item:last-child{border-bottom:none}.search-result-item:hover,.search-result-item:focus{background:var(--accent-light);outline:none}.search-result-name{font-weight:500}.search-result-watts{font-size:.82rem;color:var(--text-muted)}
details.browse-details{margin-top:8px}details.browse-details summary{cursor:pointer;font-size:.9rem;color:var(--accent);font-weight:500;padding:4px 0}details.browse-details summary:hover{text-decoration:underline}.browse-list{display:grid;grid-template-columns:repeat(auto-fill,minmax(200px,1fr));gap:4px;max-height:240px;overflow-y:auto;margin-top:8px;padding:8px;background:var(--surface-alt);border-radius:var(--radius-sm)}.browse-item{padding:6px 10px;border-radius:var(--radius-sm);cursor:pointer;font-size:.85rem;display:flex;justify-content:space-between;transition:background .12s}.browse-item:hover{background:var(--accent-light)}.browse-item-watts{color:var(--text-muted);font-size:.78rem}
.custom-add{margin-top:16px;padding-top:16px;border-top:1px solid var(--border)}.custom-add h3{font-size:.9rem;font-weight:600;margin-bottom:8px}
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:9px 18px;border-radius:var(--radius-sm);font-size:.9rem;font-weight:600;font-family:var(--font);cursor:pointer;border:1px solid transparent;transition:all .15s;text-decoration:none}.btn-primary{background:var(--accent);color:#fff}.btn-primary:hover{background:var(--accent-hover)}.btn-secondary{background:var(--surface);color:var(--text);border-color:var(--border-dark)}.btn-secondary:hover{background:var(--surface-alt)}.btn-text{background:none;color:var(--text-muted);padding:4px 8px;font-size:.82rem}.btn-text:hover{color:var(--red)}
.items-header{display:flex;justify-content:space-between;align-items:center;margin-bottom:12px}.items-header .card-title{margin-bottom:0}
.empty-state{text-align:center;padding:40px 20px;color:var(--text-muted)}.empty-state svg{margin-bottom:8px}.empty-state p{font-size:.9rem}
.item-row{display:flex;align-items:center;gap:10px;padding:10px 0;border-bottom:1px solid var(--border)}.item-row:last-child{border-bottom:none}.item-name{flex:1;font-size:.92rem;font-weight:500}.item-watts{font-size:.85rem;color:var(--text-secondary);white-space:nowrap}.item-qty{display:flex;align-items:center;gap:4px}.item-qty button{width:28px;height:28px;border:1px solid var(--border-dark);border-radius:var(--radius-sm);background:var(--surface);cursor:pointer;font-size:1rem;display:flex;align-items:center;justify-content:center;transition:background .12s}.item-qty button:hover{background:var(--surface-alt)}.item-qty span{min-width:20px;text-align:center;font-size:.9rem;font-weight:600}.item-remove{background:none;border:none;cursor:pointer;color:var(--text-muted);padding:4px;border-radius:var(--radius-sm);font-size:1.1rem;transition:color .12s}.item-remove:hover{color:var(--red)}
.summary-rail{position:relative}.summary-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:24px;box-shadow:var(--shadow)}.sticky{position:sticky;top:72px}.summary-card h2{font-size:1.1rem;font-weight:700;margin-bottom:16px}.breaker-info{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid var(--border)}.breaker-label{font-size:.85rem;color:var(--text-secondary)}.breaker-value{font-weight:700;font-size:.95rem}
.load-bar-wrap{margin:16px 0 8px}.load-bar{width:100%;height:14px;background:var(--surface-alt);border-radius:99px;overflow:hidden;position:relative}.load-bar-fill{height:100%;border-radius:99px;transition:width .3s ease,background .3s ease;width:0%;background:var(--green)}.load-bar-fill.yellow{background:var(--yellow)}.load-bar-fill.red{background:var(--red)}.load-labels{display:flex;justify-content:space-between;margin-top:4px;font-size:.82rem;color:var(--text-secondary)}
.headroom{display:flex;justify-content:space-between;align-items:center;padding:8px 12px;border-radius:var(--radius-sm);background:var(--surface-alt);margin-bottom:12px}.headroom-label{font-size:.82rem;color:var(--text-secondary)}.headroom-value{font-weight:700;font-size:.9rem}.headroom.warn{background:var(--yellow-light)}.headroom.danger{background:var(--red-light)}
.status-badge{display:inline-flex;align-items:center;gap:6px;padding:6px 14px;border-radius:99px;font-weight:600;font-size:.9rem;margin-bottom:12px}.status-dot{width:10px;height:10px;border-radius:50%}.status-badge.safe{background:var(--green-light);color:var(--green)}.status-badge.safe .status-dot{background:var(--green)}.status-badge.warn{background:var(--yellow-light);color:var(--yellow)}.status-badge.warn .status-dot{background:var(--yellow)}.status-badge.danger{background:var(--red-light);color:var(--red)}.status-badge.danger .status-dot{background:var(--red)}
.warning-box{background:var(--red-light);border:1px solid #fca5a5;border-radius:var(--radius-sm);padding:14px;margin-bottom:12px}.warning-box h3{font-size:.88rem;font-weight:700;color:var(--red);margin-bottom:6px}.warning-box ul{padding-left:18px;font-size:.85rem;color:var(--red)}.warning-box li{margin-bottom:3px}
.summary-actions{display:flex;flex-wrap:wrap;gap:8px;margin-bottom:16px}
.saved-rooms{border-top:1px solid var(--border);padding-top:12px}.saved-rooms h3{font-size:.88rem;font-weight:600;margin-bottom:8px}.saved-rooms ul{list-style:none}.saved-rooms li{display:flex;justify-content:space-between;align-items:center;padding:6px 0;border-bottom:1px solid var(--border);font-size:.85rem}.saved-rooms li:last-child{border-bottom:none}.saved-rooms .load-room{cursor:pointer;color:var(--accent);background:none;border:none;font-size:.85rem;font-family:var(--font);padding:0;text-align:left}.saved-rooms .load-room:hover{text-decoration:underline}.saved-rooms .del-room{background:none;border:none;color:var(--text-muted);cursor:pointer;font-size:1rem;padding:2px}.saved-rooms .del-room:hover{color:var(--red)}
.chart-section{padding:40px 0;background:var(--surface)}.chart-section h2{font-size:1.4rem;font-weight:700;margin-bottom:8px}.section-sub{color:(--text-secondary);margin-bottom:20px;font-size:.95rem}.table-wrap{overflow-x:auto;border:1px solid var(--border);border-radius:var(--radius);box-shadow:var(--shadow)}.wattage-table{width:100%;border-collapse:collapse;font-size:.9rem}.wattage-table th{background:var(--surface-alt);padding:10px 16px;text-align:left;font-weight:600;border-bottom:1px solid var(--border);white-space:nowrap}.wattage-table td{padding:8px 16px;border-bottom:1px solid var(--border)}.wattage-table tr:last-child td{border-bottom:none}.wattage-table tr:hover td{background:var(--surface-alt)}.chart-note{margin-top:16px;padding:16px;background:var(--accent-light);border-radius:var(--radius-sm);font-size:.9rem}.chart-note strong{color:var(--accent)}
.guide-section{padding:40px 0}.guide-grid{display:grid;grid-template-columns:1fr 320px;gap:32px;align-items:start}.guide-main h2{font-size:1.3rem;font-weight:700;margin:28px 0 12px}.guide-main h2:first-child{margin-top:0}.guide-main p{margin-bottom:12px;color:(--text-secondary)}.steps-list{padding-left:22px}.steps-list li{margin-bottom:10px;color:var(--text-secondary)}.steps-list li strong{color:var(--text)}
.mistakes-grid{display:grid;grid-template-columns:1fr 1fr;gap:16px;margin-bottom:16px}.mistake-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.mistake-card h3{font-size:.92rem;font-weight:700;margin-bottom:6px;color:var(--text)}.mistake-card p{font-size:.88rem;color:var(--text-secondary)}
.guide-side{display:flex;flex-direction:column;gap:16px}.side-card{background:var(--surface);border:1px solid var(--border);border-radius:var(--radius);padding:18px;box-shadow:var(--shadow)}.side-card h3{font-size:.92rem;font-weight:700;margin-bottom:8px;color:var(--accent)}.side-card p{font-size:.88rem;color:var(--text-secondary)}
.faq-section{padding:40px 0;background:var(--surface)}.faq-section h2{font-size:1.3rem;font-weight:700;margin-bottom:20px}.faq-list{display:flex;flex-direction:column;gap:2px}.faq-list dt{font-weight:700;font-size:.95rem;padding:14px 0 4px}.faq-list dd{color:var(--text-secondary);font-size:.92rem;padding-bottom:14px;border-bottom:1px solid var(--border)}.faq-list dd:last-of-type{border-bottom:none}
.site-footer{background:#0f172a;color:#cbd5e1;padding:40px 0 24px;font-size:.88rem}.footer-top{display:flex;justify-content:space-between;align-items:flex-start;gap:24px;margin-bottom:20px;flex-wrap:wrap}.footer-brand{max-width:320px}.footer-brand .logo{color:#fff;margin-bottom:8px;font-size:1rem}.footer-brand p{line-height:1.5}.footer-links{display:flex;gap:8px 20px;flex-wrap:wrap}.footer-links a{color:#94a3b8;text-decoration:none;font-size:.88rem}.footer-links a:hover{color:#fff}.footer-disclaimer{border-top:1px solid #1e293b;padding-top:16px;margin-bottom:12px;font-size:.82rem;color:#64748b}.footer-meta{font-size:.8rem;color:#475569}.footer-meta a{color:#94a3b8;text-decoration:none}.footer-meta a:hover{color:#fff}
@media(max-width:900px){.checker-grid{grid-template-columns:1fr}.summary-rail{order:-1}.sticky{position:relative;top:0}.guide-grid{grid-template-columns:1fr}.mistakes-grid{grid-template-columns:1fr}.hero-section{padding:32px 0 28px}}
@media(max-width:600px){.container{padding:0 14px}.card{padding:18px}.form-row{flex-direction:column}.site-header .container{height:auto;flex-direction:column;gap:8px;padding:10px 14px}.site-nav{flex-wrap:wrap;justify:center}.hero-section h1{font-size:1.4rem}.site-footer{padding:28px 0 18px}.footer-top{flex-direction:column}}
@media print{.site-header,.site-footer,.checker-app .add-card,.summary-actions,.saved-rooms,.search-wrap,.custom-add,.preset-row,.btn-text{display:none!important}.checker-grid{grid-template-columns:1fr}.summary-card{break-inside:avoid}.summary-card h2::after{content:" (print view)";font-weight:400;font-size:.8rem;color:var(--text-muted)}.load-bar-fill{-webkit-print-color-adjust:exact;print-color-adjust:exact}}
:focus-visible{outline:2px solid var(--accent);outline-offset:2px;border-radius:2px}


/* Factory-injected deployment helpers. The AI owns the site design above this block. */
.ad-unit {
  width: min(100%, 720px);
  min-height: 120px;
  margin: 24px auto;
  display: block;
}

.legal-page {
  width: min(900px, calc(100% - 32px));
  margin: 40px auto;
}

.factory-fallback-nav {
  width: min(900px, calc(100% - 32px));
  margin: 24px auto 0;
  display: flex;
  flex-wrap: wrap;
  gap: 10px 16px;
  align-items: center;
  font-size: 0.95rem;
}

.factory-fallback-nav a {
  color: inherit;
  text-decoration: none;
  border-bottom: 1px solid currentColor;
}
