:root{--bg: #ffffff;--text: #0a0a0a;--muted: #6b7280;--border: #e5e7eb;--card: #ffffff;--shadow: 0 10px 30px rgba(0,0,0,.06);--accent: #ff7a00 !important}*{box-sizing:border-box}html,body,#root{min-height:100vh;height:auto}body{margin:0;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial,"Apple Color Emoji","Segoe UI Emoji";font-weight:400;line-height:1.6;color:var(--text);background:linear-gradient(180deg,#fff,#fff5eb 35%,#ff7a00);display:flex;flex-direction:column}html.force-desktop,body.force-desktop{min-width:1040px;overflow-x:auto}#root{display:flex;flex-direction:column;min-height:100vh}a{color:var(--accent);text-decoration:none}a:hover{opacity:.9}h1,h2,h3{margin:0 0 8px;line-height:1.2;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:700}p{margin:0 0 10px;color:var(--muted);font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400;line-height:1.6}.container{max-width:1040px;margin:0 auto;padding:0 24px}.navbar{position:sticky;top:0;z-index:50;background:#ffffffe6;-webkit-backdrop-filter:saturate(180%) blur(8px);backdrop-filter:saturate(180%) blur(8px);border-bottom:0}.nav-inner{display:flex;align-items:center;justify-content:space-between;height:64px}.nav-left{display:flex;align-items:center;gap:18px}.nav-right{display:flex;align-items:center}.brand{display:flex;align-items:center;gap:6px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:700;font-size:18px;color:var(--text)}.brand-dot{width:10px;height:10px;border-radius:50%;background:var(--accent)}.brand-icon{display:inline-block;margin-right:0;filter:drop-shadow(0 2px 6px rgba(0,0,0,.08));border-radius:8px;vertical-align:middle}.nav-links{display:flex;gap:16px;align-items:center}.nav-cta{background:var(--accent);color:#fff;padding:10px 14px;border-radius:10px;border:none;box-shadow:var(--shadow);cursor:pointer;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:500}.nav-cta:hover{transform:translateY(-1px);filter:brightness(.98)}.nav-links a{color:var(--text);opacity:.9;transition:opacity .15s ease,color .15s ease;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:500}.nav-links a:hover{color:var(--accent);opacity:1}.promo{background:#fff6ef;color:#111827;border-bottom:1px solid var(--border)}.promo-inner{height:44px;display:flex;align-items:center;justify-content:center;gap:10px}.badge{background:#111827;color:#fff;border-radius:999px;padding:4px 10px;font-size:12px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:700;letter-spacing:.2px}.promo a{color:#111827;text-decoration:underline}.hero{padding:72px 0 24px;border-bottom:0;background:transparent;text-align:center}.hero h1{font-size:32px}.hero p{font-size:16px}.hero-title{display:flex;align-items:center;gap:10px}.hero-title.center{justify-content:center}.hero-title .brand-icon{width:36px;height:36px}.hero-brand .brand-icon{width:28px;height:28px;vertical-align:-6px;margin:0 6px}.hero-brand{margin:0;font-size:36px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:700}.hero-sub{max-width:760px;margin:10px auto 0;text-align:center;font-size:14px;line-height:1.6;color:#111827;opacity:.95;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.stack{display:grid;gap:24px;padding:24px 0 56px}.card{background:var(--card);border:1px solid var(--border);border-radius:0;box-shadow:var(--shadow);padding:24px}.card-narrow{width:100%;max-width:840px;justify-self:center}.row{display:flex;flex-wrap:wrap;gap:16px}.col{flex:1 1 280px;min-width:240px}table{width:100%;border-collapse:collapse;table-layout:auto;font-variant-numeric:tabular-nums}thead th{padding:10px 14px;color:#111827;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:600;background:#f8fafc;border:1px solid #e2e8f0;font-size:14px;white-space:nowrap;position:sticky;top:0;z-index:1}tbody td{padding:10px 14px;border:1px solid #e2e8f0;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400;font-size:13px;white-space:nowrap;vertical-align:middle}tbody tr:nth-child(2n) td{background:#f9fafb}tbody tr:hover td{background:#fff7ed}thead th:first-child,tbody td:first-child{text-align:left;min-width:140px;font-weight:600}thead th:not(:first-child),tbody td:not(:first-child){text-align:right;min-width:80px}.table-wrapper{overflow-x:auto;overflow-y:hidden;margin:16px 0;border-radius:12px;border:1px solid #e2e8f0;box-shadow:0 12px 24px #0f172a14;background:#fff;scrollbar-width:thin;scrollbar-color:#94a3b8 #f8fafc}.table-wrapper::-webkit-scrollbar{height:10px}.table-wrapper::-webkit-scrollbar-track{background:#f8fafc;border-radius:12px}.table-wrapper::-webkit-scrollbar-thumb{background:#cbd5f5;border-radius:12px;border:2px solid #f8fafc}.table-wrapper::-webkit-scrollbar-thumb:hover{background:#94a3b8}.table-wrapper table{min-width:680px}@media(max-width:768px){body:not(.force-desktop) thead th,body:not(.force-desktop) tbody td{padding:8px;font-size:12px}body:not(.force-desktop) thead th:first-child,body:not(.force-desktop) tbody td:first-child{min-width:120px}body:not(.force-desktop) .table-wrapper table{min-width:560px}}label{display:block;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:500;margin-bottom:6px;color:#111827}select,input[type=number],input[type=text],input[type=file]{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.file-input{width:auto;max-width:320px;padding:8px 10px}.btn{display:inline-flex;align-items:center;justify-content:center;gap:8px;padding:10px 16px;border-radius:10px;border:1px solid transparent;cursor:pointer;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:500;transition:transform .12s ease,box-shadow .12s ease,filter .12s ease}.btn-primary{background:var(--accent);color:#fff;box-shadow:var(--shadow)}.btn-secondary{background:#fff;color:#111827;border-color:var(--border)}.btn+.btn{margin-left:8px}.btn:hover{transform:translateY(-1px);filter:brightness(.98)}.input{width:100%;padding:10px 12px;border:1px solid var(--border);border-radius:10px;background:#fff;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.flash{padding:12px 14px;border-radius:10px;border:1px solid var(--border);background:#fff6ef;color:#8a3100}.flash.danger{background:#fff6ef;border:1px solid #ff7a00;color:#8a3100}.section-header{display:flex;align-items:baseline;justify-content:space-between;margin-bottom:8px}.section-title{font-size:20px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:700}.section-subtitle{color:var(--muted);font-size:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.sub-upload{font-size:12px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;text-align:center}.muted{color:var(--muted);font-size:13px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.modal-overlay{position:fixed;inset:0;background:#0003;display:flex;align-items:center;justify-content:center;padding:20px;z-index:100}.modal{width:100%;max-width:420px;background:#fff;border:1px solid var(--border);border-radius:14px;box-shadow:var(--shadow);padding:18px}.auth-actions{display:flex;justify-content:flex-end;gap:8px;margin-top:12px}.user-box{display:flex;align-items:center;gap:10px}.avatar{width:32px;height:32px;border-radius:50%;background:#111827;color:#fff;font-weight:700;display:inline-flex;align-items:center;justify-content:center}.section{padding:28px 0}.deck-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}@media(max-width:900px){body:not(.force-desktop) .deck-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}@media(max-width:640px){body:not(.force-desktop) .deck-grid{grid-template-columns:1fr}}.deck-card{background:#fff;border:1px solid var(--border);border-radius:14px;padding:14px;box-shadow:var(--shadow)}.deck-top{display:flex;gap:12px;align-items:center}.deck-avatar{width:36px;height:36px;border-radius:50%;background:#ffe1cc;display:inline-flex;align-items:center;justify-content:center;color:#111827;font-weight:700}.deck-title{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:600;color:#111827}.deck-meta{color:var(--muted);font-size:13px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.deck-tags{display:flex;gap:8px;margin-top:8px;flex-wrap:wrap}.pill{background:#fff6ef;color:#7a2e0a;border:1px solid #ffd6b0;padding:4px 8px;font-size:12px;border-radius:999px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:500}.workspace .cols{display:grid;grid-template-columns:1.1fr 1fr;gap:20px;align-items:center}@media(max-width:900px){body:not(.force-desktop) .workspace .cols{grid-template-columns:1fr}}.workspace .mock{background:#fff;border:1px solid var(--border);border-radius:0;box-shadow:var(--shadow);padding:14px}.mock-bar{display:flex;gap:6px}.dot{width:8px;height:8px;border-radius:50%;background:#111827;opacity:.2}.mock-body{margin-top:10px;display:grid;grid-template-columns:1fr 1fr;gap:10px}.mock-card{height:80px;background:#fff;border:1px solid var(--border);border-radius:0;box-shadow:var(--shadow)}.mock-cta{margin-top:12px;display:flex;gap:8px}.results-card{width:100%;max-width:1200px;justify-self:center;margin:0 auto}.results-card .section-header{justify-content:center}.results-card #sec-results{font-size:28px;text-align:center;font-weight:800;margin:0 auto}.results-card .section-header{align-items:center}.results-card .section-header>div:last-child{display:flex;gap:8px}.results-card p,.results-card li{color:var(--text);word-wrap:break-word;overflow-wrap:break-word;-webkit-hyphens:auto;hyphens:auto}.results-card{overflow-x:hidden}.results-card h3,.results-card h4{word-wrap:break-word;overflow-wrap:break-word}.results-card pre{white-space:pre-wrap;word-break:break-word;background:#f8f9fa;padding:16px;border-radius:8px;border:1px solid var(--border);font-size:14px;line-height:1.6;overflow-x:auto}.results-card code{font-family:ui-monospace,SFMono-Regular,Menlo,Monaco,Consolas,Liberation Mono,Courier New,monospace;font-size:14px;background:#f8f9fa;padding:2px 4px;border-radius:3px}.formula{font-family:Times New Roman,serif;font-size:16px;line-height:1.8;background:#f8f9fa;padding:20px;border-radius:8px;border:1px solid var(--border);margin:16px 0;overflow-x:auto;text-align:center}.formula .equation{font-style:italic}.formula .subscript{font-size:.8em;vertical-align:sub}.formula .interaction{font-weight:400}.footer{margin-top:auto;background:transparent;border-top:none;padding:24px 0 16px}.footer-content{display:flex;gap:64px;margin-bottom:16px;align-items:flex-start}.footer-section h4{font-size:14px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:600;color:var(--muted);text-transform:uppercase;letter-spacing:.3px;margin-bottom:12px}.footer-section ul{list-style:none;padding:0;margin:0}.footer-section li{margin-bottom:6px}.footer-section a{color:var(--text);opacity:.7;transition:all .15s ease;font-size:13px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.footer-section a:hover{color:var(--accent);opacity:1;text-decoration:none}.footer-bottom{padding-top:16px;border-top:1px solid rgba(255,255,255,.3);display:flex;flex-direction:column;align-items:center;text-align:center;gap:4px}.footer-bottom .powered-section{background:transparent;padding:8px 12px;border-radius:0;border:none;display:flex;flex-direction:column;align-items:center;gap:2px}.footer .powered{font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:600;color:#fff;font-size:12px}.footer .kagplus-plus{color:#fff;margin-left:2px}.footer .tagline{color:#fffc;margin:0;font-size:10px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.footer .copyright{color:#fff;font-size:11px;font-family:Inter,ui-sans-serif,system-ui,-apple-system,Segoe UI,Roboto,Helvetica,Arial;font-weight:400}.footer .copyright .kagplus-link{color:#fff;text-decoration:none;font-weight:500;transition:opacity .2s ease}.footer .copyright .kagplus-link:hover{opacity:.8;text-decoration:underline}.kagplus-logo{width:16px;height:16px;background:var(--accent);border-radius:3px;display:inline-flex;align-items:center;justify-content:center;color:#fff;font-weight:700;font-size:10px;margin-right:6px}@media(max-width:768px){body:not(.force-desktop) .container{padding:0 16px}body:not(.force-desktop) .nav-inner{height:56px}body:not(.force-desktop) .brand{font-size:16px}body:not(.force-desktop) .nav-links{gap:12px}body:not(.force-desktop) .nav-links a{font-size:14px}body:not(.force-desktop) .nav-cta{padding:8px 12px;font-size:14px}body:not(.force-desktop) .promo-inner{height:auto;padding:8px 16px;flex-wrap:wrap;font-size:13px}body:not(.force-desktop) .badge{font-size:11px;padding:3px 8px}body:not(.force-desktop) .hero{padding:48px 0 24px}body:not(.force-desktop) .hero-brand{font-size:28px}body:not(.force-desktop) .hero-title .brand-icon{width:28px;height:28px}body:not(.force-desktop) .hero-sub{font-size:14px;padding:0 8px}body:not(.force-desktop) .card{padding:16px}body:not(.force-desktop) .stack{gap:16px;padding:16px 0 32px}body:not(.force-desktop) .section-title{font-size:18px}body:not(.force-desktop) .section-subtitle{font-size:13px}body:not(.force-desktop) select,body:not(.force-desktop) input[type=number],body:not(.force-desktop) input[type=text],body:not(.force-desktop) input[type=file]{font-size:16px}body:not(.force-desktop) .file-input{max-width:100%}body:not(.force-desktop) .btn{padding:10px 14px;font-size:14px;width:100%}body:not(.force-desktop) .btn+.btn{margin-left:0;margin-top:8px}body:not(.force-desktop) .results-card #sec-results{font-size:22px}body:not(.force-desktop) .results-card pre{font-size:12px;padding:12px}body:not(.force-desktop) .results-card code{font-size:12px}body:not(.force-desktop) .workspace .cols{grid-template-columns:1fr;gap:16px}body:not(.force-desktop) .footer-content{flex-direction:column;gap:24px}body:not(.force-desktop) .footer{padding:16px 0 12px}body:not(.force-desktop) .section-header{flex-direction:column;align-items:flex-start;gap:8px}}@media(max-width:480px){body:not(.force-desktop) .container{padding:0 12px}body:not(.force-desktop) .hero-brand{font-size:24px}body:not(.force-desktop) .hero-sub{font-size:13px}body:not(.force-desktop) .card{padding:12px}body:not(.force-desktop) .nav-inner{gap:8px}body:not(.force-desktop) .brand{font-size:15px;gap:4px}body:not(.force-desktop) .brand-icon{width:20px!important;height:20px!important}}.post-model-diagnostics{max-width:1200px;margin:0 auto;padding:2rem;font-family:-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,sans-serif}.diagnostics-header{text-align:center;margin-bottom:2rem}.diagnostics-header h2{font-size:2rem;font-weight:600;color:#1a1a1a;margin-bottom:.5rem}.diagnostics-subtitle{font-size:1rem;color:#666;margin-bottom:1rem}.overall-status{display:inline-block;padding:.75rem 1.5rem;border-radius:8px;font-weight:500;font-size:1.1rem;margin-top:1rem}.overall-status.status-pass{background-color:#d4edda;color:#155724;border:1px solid #c3e6cb}.overall-status.status-warning{background-color:#fff3cd;color:#856404;border:1px solid #ffeaa7}.diagnostics-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(280px,1fr));gap:1.5rem;margin-bottom:2rem}.diagnostic-card{background:#fff;border-radius:12px;padding:1.5rem;box-shadow:0 2px 8px #0000001a;transition:transform .2s,box-shadow .2s}.diagnostic-card:hover{transform:translateY(-2px);box-shadow:0 4px 12px #00000026}.diagnostic-header{display:flex;align-items:center;gap:.75rem;margin-bottom:1rem}.diagnostic-icon{font-size:1.5rem;font-weight:700;display:flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%}.diagnostic-card.status-pass .diagnostic-icon{background-color:#d4edda;color:#155724}.diagnostic-card.status-warning .diagnostic-icon{background-color:#fff3cd;color:#856404}.diagnostic-card.status-fail .diagnostic-icon{background-color:#f8d7da;color:#721c24}.diagnostic-card.status-error .diagnostic-icon{background-color:#f5f5f5;color:#666}.diagnostic-header h3{font-size:1.1rem;font-weight:600;color:#333;margin:0}.diagnostic-body{margin-top:.75rem}.diagnostic-message{color:#555;font-size:.95rem;line-height:1.5;margin-bottom:.75rem}.diagnostic-details{display:flex;justify-content:space-between;padding:.5rem 0;border-top:1px solid #eee;font-size:.9rem}.detail-label{color:#666;font-weight:500}.detail-value{color:#333;font-weight:600}.violations-section{background:#fff3cd;border:2px solid #ffeaa7;border-radius:12px;padding:1.5rem;margin-bottom:2rem}.violations-section h3{color:#856404;font-size:1.3rem;margin-bottom:1rem}.violations-list{list-style:none;padding:0;margin:0}.violation-item{display:flex;align-items:center;gap:.75rem;padding:.75rem;margin-bottom:.5rem;background:#fff;border-radius:8px;border-left:4px solid}.violation-item.warning{border-left-color:#ffc107}.violation-item.fail{border-left-color:#dc3545}.violation-icon{font-weight:700;font-size:1.2rem}.violation-type{font-weight:600;text-transform:capitalize;color:#333}.violation-message{color:#555;flex:1}.remedies-section{background:#fff;border-radius:12px;padding:2rem;box-shadow:0 2px 8px #0000001a;margin-bottom:2rem}.remedies-section h3{color:#333;font-size:1.4rem;margin-bottom:.5rem}.remedies-subtitle{color:#666;margin-bottom:1.5rem}.remedies-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(300px,1fr));gap:1rem;margin-bottom:1.5rem}.remedy-card{background:#f8f9fa;border:2px solid #dee2e6;border-radius:8px;padding:1.25rem;cursor:pointer;transition:all .2s}.remedy-card:hover{border-color:#ff7a00;background:#fff5eb}.remedy-card.selected{border-color:#ff7a00;background:#fff5eb;box-shadow:0 0 0 3px #ff7a001a}.remedy-header{display:flex;align-items:center;gap:.75rem;margin-bottom:.75rem}.remedy-header input[type=radio]{width:18px;height:18px;cursor:pointer}.remedy-header h4{margin:0;font-size:1.1rem;color:#333;font-weight:600}.remedy-description{color:#555;font-size:.95rem;line-height:1.5;margin-bottom:.75rem}.remedy-applicable{font-size:.85rem;color:#ff7a00;font-weight:500}.remedies-actions{display:flex;gap:1rem;justify-content:center;margin-top:1.5rem}.no-violations-section{background:#d4edda;border:2px solid #c3e6cb;border-radius:12px;padding:2rem;text-align:center}.success-message{color:#155724;font-size:1.2rem;font-weight:500;margin-bottom:1.5rem}.btn{padding:.75rem 1.5rem;border-radius:8px;font-size:1rem;font-weight:500;cursor:pointer;transition:all .2s;border:none;outline:none}.btn-primary{background-color:#ff7a00;color:#fff}.btn-primary:hover:not(:disabled){background-color:#e66d00;transform:translateY(-1px);box-shadow:0 4px 8px #ff7a004d}.btn-primary:disabled{background-color:#ccc;cursor:not-allowed}.btn-secondary{background-color:#6c757d;color:#fff}.btn-secondary:hover{background-color:#5a6268;transform:translateY(-1px);box-shadow:0 4px 8px #6c757d4d}.diagnostics-loading{text-align:center;padding:3rem;font-size:1.2rem;color:#666}@media(max-width:768px){.post-model-diagnostics{padding:1rem}.diagnostics-grid,.remedies-grid{grid-template-columns:1fr}.remedies-actions{flex-direction:column}.btn{width:100%}}
