:root{font-family:IBM Plex Sans,Segoe UI,sans-serif;color:#1d2939;background:radial-gradient(circle at top left,#fef4d5,#f4f8ff 60%,#edf2f7)}*{box-sizing:border-box}body{margin:0;min-height:100vh;display:grid;place-items:center}main{width:min(920px,calc(100vw - 2rem))}main.main-wide{width:calc(100vw - 2rem);max-width:1600px}.panel{background:#fff;border-radius:16px;padding:2rem;border:1px solid #d0d5dd;box-shadow:0 18px 36px -24px #0f172a8c;display:grid;gap:1rem}.toast-container{position:fixed;top:1rem;right:1rem;display:grid;gap:.55rem;width:min(360px,calc(100vw - 1.5rem));z-index:1000;pointer-events:none}.toast{display:grid;grid-template-columns:1fr auto;gap:.55rem;align-items:start;border-radius:10px;border:1px solid;padding:.6rem .7rem;font-size:.87rem;box-shadow:0 12px 24px -16px #0f172ab3;pointer-events:auto}.toast-success{background:#eaf8ee;border-color:#9bd4aa;color:#0f5132}.toast-error{background:#ffeaea;border-color:#e7a6a8;color:#8c1d1f}.toast-close{border:none;background:transparent;color:inherit;font-size:.8rem;font-weight:700;padding:.15rem .25rem;border-radius:4px;cursor:pointer}.panel-header{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:1rem;align-items:center;justify-content:stretch;min-height:3.2rem}.brand-logo{width:min(92px,40vw);height:auto;display:block}.workspace-title{grid-column:2;justify-self:center;max-width:100%;margin:0;text-align:center;line-height:1.1;overflow-wrap:anywhere}h1{margin:0;font-size:clamp(1.8rem,3.5vw,2.4rem)}h2{margin:0;font-size:1.2rem}h3{margin:0;font-size:1rem}p{margin:0;line-height:1.5}button{width:fit-content;border:none;border-radius:999px;padding:.7rem 1.2rem;font-size:1rem;font-weight:600;background:#1d4ed8;color:#fff;cursor:pointer}.button-secondary{background:#fff;color:#1d4ed8;border:1px solid #bfd3ff}.button-upload{width:fit-content;display:inline-flex;align-items:center;border-radius:999px;padding:.7rem 1.2rem;font-size:1rem;font-weight:600;border:1px solid #bfd3ff;background:#fff;color:#1d4ed8;cursor:pointer}.button-upload input,.hidden-file-input{display:none}.actions{display:grid;gap:.75rem;grid-template-columns:repeat(auto-fit,minmax(220px,1fr))}.actions-inline{display:flex;flex-wrap:wrap;gap:.75rem}.actions-hint{margin-top:-.35rem;font-size:.86rem;color:#475467}.table-wrap{width:100%;overflow-x:auto}.table-rule-add-row{width:100%;border:1px dashed #bfd3ff;background:#f8faff;padding:.45rem}.table-add-row-button{width:100%;border-style:dashed;border-color:#bfd3ff;background:#fff;justify-content:center;display:inline-flex}.empty-state{border:1px dashed #c7d2fe;border-radius:12px;padding:1rem;display:grid;gap:.75rem;background:#f8faff}.form-field{font-weight:600}.auth-form{display:grid;gap:.6rem;max-width:420px}.auth-error{color:#b42318;font-size:.9rem}.panel-header-actions{grid-column:3;justify-self:end}.panel-header-actions button{padding:.45rem .9rem;font-size:.9rem}input{width:100%;border:1px solid #d0d5dd;border-radius:8px;padding:.6rem .75rem;font:inherit}select{width:100%;border:1px solid #d0d5dd;border-radius:8px;padding:.6rem .75rem;font:inherit;background:#fff}table{width:100%;border-collapse:collapse;border:1px solid #e4e7ec;border-radius:8px;overflow:hidden}.rules-table{min-width:1580px;font-size:.82rem;border:1px solid #d0d7e2;table-layout:fixed;overflow:visible}.rules-table th:nth-child(3),.rules-table td:nth-child(3){width:92px}.rules-table th:nth-child(4),.rules-table td:nth-child(4){width:96px}.rules-table th:nth-child(5),.rules-table td:nth-child(5){width:92px}.rules-table th:nth-child(9),.rules-table td:nth-child(9){width:132px}.compact-rows th,.compact-rows td{padding:.24rem .32rem;vertical-align:top}.compact-rows input,.compact-rows select{padding:.12rem .2rem;min-height:1.38rem;border-radius:0;font-size:.8rem;line-height:1.2;border:none;background:transparent}.compact-rows textarea{width:100%;min-height:1.38rem;border:none;border-radius:0;padding:.12rem .2rem;font:inherit;font-size:.8rem;line-height:1.25;resize:vertical;background:transparent}.rules-table input:focus,.rules-table select:focus,.rules-table textarea:focus{outline:none;background:#edf4ff}.rules-table th{background:#f2f5fa;font-size:.77rem;font-weight:600;color:#344054;letter-spacing:.01em}.rules-table th,.rules-table td{border-right:1px solid #e3e8f0}.rules-table th:last-child,.rules-table td:last-child{border-right:none}.rules-table .actions-inline{gap:.28rem}.rules-table .button-secondary{border-radius:4px;padding:.2rem .42rem;font-size:.74rem;font-weight:600}.rules-table .references-cell{gap:.25rem}.rules-table .references-cell>span{font-size:.75rem;color:#475467}th,td{padding:.7rem;border-bottom:1px solid #e4e7ec;text-align:left}th{background:#f8faff;font-size:.9rem}tbody tr:last-child td{border-bottom:none}.references-cell{position:relative}.references-summary{display:flex;align-items:center;justify-content:flex-start;gap:.35rem}.references-summary .button-secondary{border-radius:4px;padding:.18rem .4rem;font-size:.72rem}.references-popover{position:absolute;top:calc(100% + .2rem);right:5px;left:auto;width:210px;max-width:min(280px,calc(100vw - 4rem));max-height:240px;overflow-y:auto;overflow-x:hidden;scrollbar-gutter:stable;z-index:3;background:#fff;border:1px solid #cfd8e7;border-radius:8px;box-shadow:0 16px 28px -20px #0f172a99;padding:.35rem;display:grid;gap:.3rem}.references-cell-open-upward .references-popover{top:auto;bottom:calc(100% + .2rem)}.references-popover-header{position:sticky;top:0;z-index:1;display:flex;align-items:center;justify-content:space-between;font-size:.72rem;font-weight:700;color:#344054;background:#fff}.references-popover-header .button-secondary{border-radius:4px;padding:.14rem .38rem;font-size:.7rem}.references-popover-actions{display:inline-flex;align-items:center;gap:.22rem}.references-popover-close{width:1.2rem;height:1.2rem;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #d0d5dd;border-radius:4px;background:#fff;color:#475467;font-size:.78rem;font-weight:700;cursor:pointer;line-height:1}.references-empty{font-size:.72rem;color:#667085}.reference-item{border:1px solid #e4e7ec;border-radius:6px;padding:.2rem;display:grid;gap:.2rem;background:#fafcff}.reference-item-main{display:grid;grid-template-columns:1fr auto;gap:.2rem}.reference-item-meta{display:grid;grid-template-columns:.45fr .55fr;gap:.2rem}.reference-field{display:grid;gap:.1rem}.reference-field-label{font-size:.62rem;font-weight:700;color:#667085;line-height:1;padding-left:.04rem}.reference-item input{width:100%;padding:.2rem .28rem;font-size:.75rem;min-height:1.4rem}.reference-remove-icon{width:1.45rem;height:1.45rem;padding:0;display:inline-flex;align-items:center;justify-content:center;border:1px solid #e4b3b4;border-radius:4px;background:#fff3f3;color:#b42318;font-weight:700;font-size:.95rem;cursor:pointer;line-height:1}.result-summary{display:grid;grid-template-columns:repeat(auto-fit,minmax(120px,1fr));gap:.6rem}.results-overview{border:1px solid #d9e2ef;border-left-width:5px;border-radius:12px;padding:.7rem .8rem;background:#f8fbff;display:grid;gap:.2rem}.results-overview-label{font-size:.74rem;font-weight:700;text-transform:uppercase;letter-spacing:.02em;color:#475467}.quick-summary-grid{margin:0;display:grid;grid-template-columns:repeat(2,minmax(180px,1fr));grid-template-rows:repeat(4,auto);grid-auto-flow:column;gap:.5rem .75rem}.quick-summary-grid div{display:grid;gap:.08rem}.quick-summary-grid dt{font-size:.73rem;color:#475467}.quick-summary-grid dd{margin:0;font-size:.95rem;font-weight:600}.results-overview.pass{border-color:#b7e6c6;background:#ebf9ef}.results-overview.warn{border-color:#f2dfab;background:#fff8e7}.results-overview.fail{border-color:#f0b6b8;background:#fff1f1}.full-report{display:grid;gap:.65rem;align-items:start}.full-report-panel{display:grid;gap:.5rem}.full-report-panel tbody tr.result-row-green{background:#ebf9ef}.full-report-panel tbody tr.result-row-yellow{background:#fff8e7}.full-report-panel tbody tr.result-row-red{background:#fff1f1}.report-references{display:grid;gap:.16rem;font-size:.82rem;line-height:1.25}.summary-item{border:1px solid #d9e2ef;border-radius:10px;padding:.45rem .55rem;background:#f8fbff;display:grid;gap:.2rem}.summary-item span{font-size:.76rem;color:#475467}.summary-item strong{font-size:1rem}.summary-item.pass{border-color:#b7e6c6;background:#ebf9ef}.summary-item.compliance{border-color:#bfd3ff;background:#edf4ff}.summary-item.warn{border-color:#f2dfab;background:#fff8e7}.summary-item.fail{border-color:#f0b6b8;background:#fff1f1}.result-pill{display:inline-block;min-width:56px;text-align:center;border-radius:999px;padding:.2rem .5rem;font-size:.74rem;font-weight:700;letter-spacing:.01em}.result-pill.pass{color:#0f5132;background:#d9f2e3}.result-pill.warn{color:#7a4d00;background:#ffefc5}.result-pill.fail{color:#8c1d1f;background:#ffd6d7}button:disabled{opacity:.7;cursor:not-allowed}.button-with-spinner{display:inline-flex;align-items:center;gap:.45rem}.spinner{width:.9rem;height:.9rem;border-radius:999px;border:2px solid currentColor;border-right-color:transparent;animation:spin .8s linear infinite}@keyframes spin{to{transform:rotate(360deg)}}@media (max-width: 640px){main{width:calc(100vw - 1rem)}.panel{padding:1.5rem}.panel-header{grid-template-columns:auto 1fr;grid-template-areas:"logo actions" "title title";align-items:start}.panel-header picture{grid-area:logo}.workspace-title{grid-area:title;justify-self:start;text-align:left;max-width:14ch}.panel-header-actions{grid-area:actions}.brand-logo{width:min(76px,34vw)}.workspace-title{font-size:1.9rem}main.main-wide{width:calc(100vw - 1rem)}.quick-summary-grid{grid-template-columns:1fr;grid-template-rows:none;grid-auto-flow:row}}
