:root{font-family:Inter,ui-sans-serif,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif;color:#192b41;background:#f3f5f8;font-size:16px;--navy:#14263d;--muted:#637084;--line:#dfe5ed;--green:#11785e;--accent:#52d9b0}*{box-sizing:border-box}body{margin:0}button,input,textarea,select{font:inherit}button,a,label.file-button{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{opacity:.6;cursor:wait}button:focus-visible,a:focus-visible{outline:3px solid #14a686;outline-offset:4px}[hidden]{display:none!important}a{color:inherit}h1,h2,h3,p{margin-top:0}h1{font-size:2rem;letter-spacing:-.055em;margin-bottom:.6rem}h2{font-size:1.05rem;letter-spacing:-.025em;margin-bottom:.35rem}h3{font-size:1rem}.muted,.footnote{color:var(--muted);line-height:1.6}.muted{margin-bottom:0}.footnote{font-size:.8125rem}.eyebrow{font-size:.75rem;letter-spacing:.13em;font-weight:700;color:#6a7d94;margin-bottom:.9rem}.brand{display:flex;align-items:center;gap:.7rem;font-size:1.45rem;font-weight:750;letter-spacing:-.04em;text-decoration:none}.brand-mark{display:inline-flex;position:relative;align-items:center;justify-content:center;height:35px;width:35px;border-radius:9px;background:var(--accent);color:var(--navy);font-weight:850;font-size:1.55rem}.brand-mark span{font-size:1rem;position:absolute;right:4px;top:0}.sidebar{position:fixed;inset:0 auto 0 0;width:240px;background:var(--navy);color:#edf3fa;padding:2rem 1.25rem;display:flex;flex-direction:column}.sidebar .brand{margin:0 .65rem 3.1rem}.nav-label{font-size:.7rem;font-weight:650;letter-spacing:.13em;color:#91a2b9;margin:0 .8rem 1rem}.nav-button{border:0;background:transparent;color:#b4c2d4;display:flex;align-items:center;gap:.8rem;padding:.9rem .85rem;width:100%;border-radius:7px;text-align:left;margin-bottom:.4rem;font-size:.875rem}.nav-button.active{background:#284058;color:#fff}.nav-button.active:before{content:"";height:18px;width:3px;background:var(--accent);position:absolute;left:20px}.count{margin-left:auto;font-size:.75rem;background:#354960;padding:.1rem .4rem;border-radius:4px}.sidebar-bottom{margin-top:auto}.engine-box{display:flex;gap:.6rem;align-items:flex-start;border:1px solid #34465c;padding:1rem .7rem;border-radius:9px;margin-bottom:1rem;font-size:.8125rem}.engine-box strong{display:block;font-weight:500}.engine-box small{display:block;color:#9caec4;overflow-wrap:anywhere;line-height:1.5;font-size:.75rem;margin-top:.35rem}.dot{width:7px;height:7px;flex-shrink:0;border-radius:50%;background:#c3a658;margin-top:.3rem}.dot.connected{background:var(--accent)}.main-shell{margin-left:240px;min-height:100vh;display:flex;flex-direction:column}.topbar{height:76px;border-bottom:1px solid var(--line);background:#fff;display:flex;align-items:center;justify-content:space-between;padding:0 2.5rem;font-size:.8125rem;color:var(--muted)}.topbar strong{font-weight:500;color:#31465f}.slash{margin:0 1rem;color:#bdc6d2}.topbar>div{display:flex;align-items:center;gap:1rem}.badge{display:inline-flex;align-items:center;border-radius:5px;border:1px solid #c9ded7;padding:.35rem .65rem;font-size:.7rem;font-weight:650;letter-spacing:.045em;color:var(--green);background:#edf8f3;white-space:nowrap}.badge.neutral{color:#5a6e84;border-color:#dbe3eb;background:#f8fafc}.badge.warning{color:#94601b;border-color:#e9dbbb;background:#fffaee}.avatar{display:inline-flex;align-items:center;justify-content:center;width:32px;height:32px;border-radius:50%;background:#e5eaf0;font-weight:650;color:#41576e}main{padding:2.4rem 2.5rem 3rem;width:100%;max-width:1550px;margin:0 auto;flex:1}.page-heading{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:2rem}.page-heading .eyebrow{margin-bottom:.6rem}.page-heading .muted{font-size:.9375rem}.editor-layout{display:grid;grid-template-columns:minmax(0,1fr) 290px;gap:1.5rem}.form-main{min-width:0;display:grid;gap:1.4rem}.card{border:1px solid var(--line);border-radius:11px;background:#fff;padding:1.5rem;box-shadow:0 2px 4px #122d4510}.section-heading{display:flex;align-items:center;gap:.85rem;margin-bottom:1.4rem}.section-heading p{font-size:.8125rem;color:var(--muted);margin-bottom:0;line-height:1.5}.section-heading select,.file-button{margin-left:auto;font-size:.8125rem;width:auto;max-width:210px}.step{display:flex;align-items:center;justify-content:center;align-self:flex-start;border:1px solid var(--line);height:30px;min-width:30px;border-radius:7px;font-size:.7rem;font-weight:650;color:#72849a}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 1rem}label{display:block;font-size:.875rem;font-weight:550;margin-bottom:1.2rem;line-height:1.5}input,select,textarea{display:block;width:100%;border:1px solid #d6dfe9;border-radius:6px;padding:.7rem .8rem;color:#24384f;background:#fff;font-size:.875rem;outline:none;margin-top:.45rem}input:focus,textarea:focus,select:focus{border-color:#238b78;box-shadow:0 0 0 3px #26a78515}textarea{resize:vertical;line-height:1.65}input::placeholder,textarea::placeholder{color:#909eaf}label:last-child{margin-bottom:0}.file-button{display:inline-flex;cursor:pointer;padding:.45rem .65rem;border:1px solid var(--line);border-radius:5px;font-weight:500;white-space:nowrap;margin-bottom:0}.code-card{overflow:hidden;padding-bottom:0}.code-card .section-heading{margin-bottom:1.2rem}.code-toolbar{display:flex;justify-content:space-between;background:#192d43;color:#a7b7ca;margin:0 -1.5rem;padding:.7rem 1.4rem;font-size:.75rem;border-bottom:1px solid #314358}.code-input{font-family:ui-monospace,SFMono-Regular,Consolas,monospace;background:#112438;color:#d7e9ef;border:0;border-radius:0;margin:0 -1.5rem;width:calc(100% + 3rem);padding:1.3rem 1.5rem;font-size:.875rem;line-height:1.75;tab-size:4;min-height:300px}.code-input:focus{box-shadow:inset 0 0 0 2px #52d9b0}.code-input::placeholder{color:#8da4b8}.review-aside .card{position:sticky;top:1.5rem}.rubric-card h2{font-size:1.25rem;line-height:1.4;margin-bottom:1.6rem}.rubric-row{display:flex;align-items:center;justify-content:space-between;gap:1rem;padding:.95rem 0;border-bottom:1px solid #edf0f4;font-size:.8125rem}.rubric-row strong{font-size:.8rem;color:#57718c}.note{border-left:3px solid #299b7c;background:#f0f8f5;padding:1rem;margin:1.5rem 0}.note strong{font-size:.875rem}.note p{font-size:.8125rem;line-height:1.65;color:#4d6b64;margin:.5rem 0 0}.primary{background:var(--navy);color:white;border:1px solid var(--navy);border-radius:6px;padding:.85rem 1.1rem;display:inline-flex;justify-content:center;align-items:center;gap:1.5rem;font-size:.875rem;font-weight:600;min-height:44px}.primary:hover{background:#234564}.primary span{color:var(--accent)}.rubric-card .primary{width:100%;margin-top:.7rem}.secondary{border:1px solid #cad6e3;background:#fff;color:#27415b;border-radius:6px;padding:.7rem 1rem;min-height:42px;font-size:.875rem}.secondary:hover{background:#f1f5f9}.error{color:#a73939;font-size:.875rem;line-height:1.6}.error:empty{display:none}.workspace-footer{display:flex;justify-content:space-between;padding:1.2rem 2.5rem;border-top:1px solid var(--line);color:#7c8b9c;font-size:.75rem}.footer-dot{padding:0 .5rem}.login-screen{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.login-story{background:var(--navy);color:#fff;display:flex;flex-direction:column;justify-content:space-between;padding:3rem 4rem}.login-story h1{font-size:clamp(2.8rem,4.2vw,4.5rem);line-height:1.12;letter-spacing:-.055em;margin:1.5rem 0}.login-story h1 span{color:var(--accent)}.login-story>div>p:last-child{color:#b4c7da;max-width:380px;line-height:1.8}.login-story .eyebrow{color:#8ba8c3}.login-footer{font-size:.8rem;color:#8da6bf}.login-panel{display:flex;align-items:center;justify-content:center;padding:3rem;background:#fff}.login-panel form{width:100%;max-width:390px}.login-panel h2{font-size:1.8rem;letter-spacing:-.04em}.login-panel .muted{margin:1rem 0 2rem}.login-panel .primary{width:100%}.login-panel .footnote{text-align:center;margin-top:1.5rem}.search-label{max-width:420px}.history-row{display:grid;grid-template-columns:2fr 1fr 1fr 80px;align-items:center;gap:1rem;border-top:1px solid var(--line);padding:1.2rem 0;width:100%;background:none;border-right:0;border-left:0;border-bottom:0;text-align:left;color:inherit}.history-row:hover{background:#f7fafc}.history-row strong{display:block;font-size:.9375rem}.history-row small{display:block;font-size:.8125rem;color:var(--muted);margin-top:.35rem}.history-score{font-size:1.35rem;font-weight:700;text-align:right}.empty-state{text-align:center;padding:4rem 1rem;color:var(--muted)}.empty-state h2{color:#344b63;font-size:1.2rem}.rubric-detail{padding:1.4rem 0;border-bottom:1px solid var(--line)}.rubric-detail h2{display:flex;justify-content:space-between}.rubric-detail p{line-height:1.7;color:var(--muted);font-size:.9375rem;margin-bottom:0}.report-grid{display:grid;grid-template-columns:minmax(0,1fr) 310px;gap:1.5rem}.report-grid>div{min-width:0}.report-grid .card{margin-bottom:1.3rem}.score-summary{background:var(--navy);color:#fff;border-radius:10px;padding:1.5rem;margin-bottom:1.3rem}.score-number{font-size:4rem;font-weight:700;letter-spacing:-.06em;line-height:1.2}.score-number small{font-size:1.15rem;font-weight:400;letter-spacing:0;color:#b7c9d7}.score-summary p{font-size:.8125rem;color:#b7c9d7;line-height:1.6;margin:.8rem 0 0}.score-summary h2{color:var(--accent);font-size:.875rem;font-weight:500}.criterion{padding:1rem 0;border-bottom:1px solid var(--line)}.criterion>div{display:flex;justify-content:space-between;gap:1rem;font-size:.875rem}.criterion p{font-size:.875rem;color:var(--muted);line-height:1.7;margin:.7rem 0 0}progress{width:100%;height:6px;appearance:none;display:block;margin-top:.7rem;border:0;border-radius:5px;overflow:hidden}progress::-webkit-progress-bar{background:#e8edf2}progress::-webkit-progress-value{background:#228970}progress::-moz-progress-bar{background:#228970}.finding{border:1px solid var(--line);border-radius:8px;padding:1.1rem;margin:1rem 0}.finding-head{display:flex;align-items:center;justify-content:space-between;gap:1rem;margin-bottom:.7rem}.finding p{font-size:.875rem;line-height:1.7;color:#53667b;margin-bottom:.75rem}.finding pre,.source-code{white-space:pre-wrap;overflow-wrap:anywhere;background:#13283d;color:#d8e7f0;border-radius:6px;padding:1rem;font-size:.8125rem;line-height:1.8;max-height:500px;overflow:auto}.source-code{counter-reset:line}.source-line{display:block}.source-line:before{counter-increment:line;content:counter(line);display:inline-block;width:3rem;color:#7a95ac}.finding .line-ref{font-size:.75rem;color:#73849b}.report-summary{font-size:1rem;line-height:1.8;color:#405770;white-space:pre-wrap}.report-grid ul{padding-left:1.3rem;line-height:1.8;font-size:.875rem;color:#53667b}.review-entry{border-left:2px solid #c9d9e4;padding:.2rem 0 .2rem 1rem;margin:1rem 0}.review-entry p{white-space:pre-wrap;line-height:1.7;font-size:.875rem}.review-entry small{color:var(--muted)}.report-actions{display:flex;gap:.7rem;flex-wrap:wrap}.processing{padding:3rem;text-align:center}.processing h2{font-size:1.5rem;margin-top:1rem}.spinner{display:inline-block;width:36px;height:36px;border:3px solid #dbe5e8;border-top-color:var(--green);border-radius:50%;animation:spin 1s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}#toast{position:fixed;bottom:1.5rem;left:50%;transform:translateX(-50%);background:var(--navy);color:#fff;border-radius:8px;padding:1rem 1.5rem;box-shadow:0 4px 25px #11243830;font-size:.875rem;z-index:10;max-width:90vw}.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}.meta-list{display:grid;gap:.8rem;font-size:.8125rem;overflow-wrap:anywhere}.meta-list span{color:var(--muted)}.meta-list strong{display:block;margin-top:.25rem;font-weight:500}.subheading{margin-top:1.6rem}.button-link{border:0;background:none;padding:0;color:#327666;font-size:.875rem;margin-bottom:1rem}details summary{cursor:pointer;font-size:.9375rem;font-weight:600}details p{white-space:pre-wrap}.review-form .primary{width:100%}
@media(min-width:1600px){main{padding-top:3rem}}@media(max-width:1200px){.sidebar{width:210px}.main-shell{margin-left:210px}main{padding:2rem 1.5rem}.topbar{padding:0 1.5rem}.editor-layout{grid-template-columns:minmax(0,1fr) 260px;gap:1rem}.section-heading{flex-wrap:wrap}.section-heading select{margin-left:0;max-width:100%}.card{padding:1.2rem}.code-toolbar{margin:0 -1.2rem}.code-input{margin:0 -1.2rem;width:calc(100% + 2.4rem)}.report-grid{grid-template-columns:minmax(0,1fr) 270px}}@media(max-width:980px){.editor-layout,.report-grid{grid-template-columns:1fr}.review-aside .card{position:static}.rubric-card h2 br{display:none}.login-story{padding:2rem}.login-panel{padding:2rem}.history-row{grid-template-columns:2fr 1fr 80px}.history-row>.history-date{display:none}}@media(max-width:700px){.sidebar{position:static;width:100%;padding:1rem}.sidebar .brand{margin:0 0 1rem}.sidebar nav{display:flex;gap:.3rem}.sidebar .nav-label,.sidebar-bottom{display:none}.nav-button{justify-content:center;padding:.6rem .4rem;font-size:.75rem;margin:0;gap:.3rem}.nav-button.active:before{display:none}.nav-button .count{display:none}.main-shell{margin:0}.topbar{height:55px;padding:0 1rem}.topbar>span{font-size:.75rem}.topbar>span>strong,.slash{display:none}main{padding:1.5rem 1rem}.page-heading{align-items:flex-start;margin-bottom:1.5rem}h1{font-size:1.7rem}.page-heading .primary{font-size:.75rem;padding:.65rem}.page-heading>.badge{display:none}.form-grid{grid-template-columns:1fr}.section-heading{gap:.7rem}.section-heading select,.file-button{margin-left:0}.workspace-footer{padding:1rem;font-size:.7rem}.workspace-footer>span:last-child{display:none}.login-screen{grid-template-columns:1fr}.login-story{padding:1.5rem}.login-story>div,.login-footer{display:none}.login-panel{padding:2rem 1.5rem}.login-panel h2{font-size:1.6rem}.history-row{grid-template-columns:1fr 75px}.history-row>.history-language{display:none}.finding-head{flex-wrap:wrap}.report-grid{gap:0}.code-input{font-size:.8125rem}.primary{min-height:44px}}
@media(prefers-reduced-motion:reduce){.spinner{animation:none}}@media print{.sidebar,.topbar,.workspace-footer,.report-actions,.button-link,.review-form,#toast{display:none!important}.main-shell{margin:0}main{padding:0}.report-grid{display:block}.card{box-shadow:none;break-inside:avoid}.score-summary{color:#14263d;background:white;border:1px solid #999}.score-summary p,.score-summary h2{color:#14263d}body{background:white}.finding pre,.source-code{color:black;background:#eee;max-height:none}details:not([open]){display:none}}
