/* AUDIT SRVL 3.7 — minimal continuous results surface, no nested card borders. */
.work{padding:32px 32px 34px;}
.work .section-head{margin-bottom:18px;align-items:center;}
.work .section-head h2{font-size:27px;letter-spacing:-.03em;}
.work .jobs{display:block;}
.work .scan-board{border:0;background:none;box-shadow:none;padding:0;margin:0;border-radius:0;}
.audit-board-top{display:flex;align-items:center;justify-content:space-between;gap:22px;padding:6px 0 23px;}
.audit-eyebrow{font-size:11px;letter-spacing:.11em;font-weight:800;color:#0082bb;margin-bottom:12px;}
.audit-board-separator{padding:0 2px;color:#b6c8d2;}
.audit-board-top h3{font-size:clamp(26px,3vw,36px);font-weight:750;letter-spacing:-.047em;line-height:1.12;margin:0 0 13px;color:#142943;}
.audit-target{font-weight:550;font-size:15px;color:#667f91;display:flex;align-items:center;gap:9px;overflow-wrap:anywhere;}
.audit-target-dot{width:9px;height:9px;border-radius:50%;background:#15baa4;flex-shrink:0;box-shadow:0 0 0 4px #e2f9f4;}
.audit-target-dot.is-busy{animation:targetGlow 1.5s ease-in-out infinite;}
.audit-time{min-width:120px;text-align:right;padding:0;display:flex;flex-direction:column;align-items:flex-end;gap:2px;}
.audit-time strong{font-size:28px;font-weight:750;letter-spacing:-.055em;line-height:1.2;color:#152d43;font-variant-numeric:tabular-nums;}
.audit-time span{font-size:12px;color:#7c909c;}
.audit-progress-track{height:7px;border-radius:99px;overflow:hidden;background:#eaf1f5;}
.audit-progress-track>span{display:block;height:100%;background:linear-gradient(90deg,#11b9b0,#1897d7);border-radius:99px;transition:width .45s ease;}
.audit-progress-meta{display:flex;justify-content:space-between;gap:20px;margin:10px 0 25px;align-items:baseline;min-height:25px;}
.audit-progress-meta span{font-size:13px;line-height:1.45;color:#677e90;}
.audit-progress-meta b{font-size:13px;color:#197dab;font-variant-numeric:tabular-nums;white-space:nowrap;}
.audit-results-strip{display:flex;gap:9px 20px;flex-wrap:wrap;padding:10px 0 21px;align-items:center;}
.audit-results-strip span{font-weight:650;font-size:12px;white-space:nowrap;}
.audit-results-strip span::before{content:'';display:inline-block;width:7px;height:7px;border-radius:50%;background:currentColor;margin:0 8px 1px 0;}
.audit-results-strip .tone-risk{color:#b93749}.audit-results-strip .tone-attention{color:#b77919}.audit-results-strip .tone-pass{color:#19845b}.audit-results-strip .tone-neutral{color:#667f90}
.audit-module-heading{display:flex;align-items:baseline;gap:14px;justify-content:space-between;padding:0 0 14px;}
.audit-module-heading strong{font-weight:760;font-size:17px;color:#19334b;letter-spacing:-.015em;}
.audit-module-heading span{font-size:12px;color:#8194a1;text-align:right;}
.work .audit-module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));border:1px solid #dce8ed;border-radius:14px;overflow:hidden;background:#fff;}
.audit-module{min-width:0;display:flex;gap:12px;align-items:center;padding:17px 16px 17px 18px;min-height:88px;border-bottom:1px solid #e5edf1;box-shadow:none!important;background:#fff!important;opacity:1!important;border-radius:0!important;}
.audit-module:nth-child(odd){border-right:1px solid #e5edf1;}
.audit-module:last-child{grid-column:span 2;border-bottom:0;border-right:0;min-height:76px;}
.audit-module:nth-last-child(2){border-bottom:1px solid #e5edf1;}
.audit-module-number{font-size:12px;font-weight:780;letter-spacing:-.01em;color:#9bafba;flex:0 0 25px;font-variant-numeric:tabular-nums;line-height:26px;}
.audit-module-text{min-width:0;flex:1;display:flex;flex-direction:column;gap:5px;}
.audit-module-text strong{font-size:14px;font-weight:730;line-height:1.35;color:#21374b;}
.audit-module-text span{font-size:12px;color:#8296a3;line-height:1.35;display:-webkit-box;-webkit-box-orient:vertical;-webkit-line-clamp:2;overflow:hidden;}
.audit-module-badge{font-size:11px;font-weight:720;line-height:1.3;padding:6px 9px;border-radius:7px;flex-shrink:0;max-width:132px;text-align:center;color:#667e8c;background:#f1f5f7;}
.audit-module.is-risk .audit-module-badge{background:#fff0f2;color:#bf3046;}
.audit-module.is-attention .audit-module-badge{background:#fff5e6;color:#aa6b15;}
.audit-module.is-pass .audit-module-badge{background:#edf8f1;color:#188458;}
.audit-module.is-unknown .audit-module-badge,.audit-module.is-not_applicable .audit-module-badge{background:#f0f4f7;color:#69808f;}
.audit-module.is-pending .audit-module-badge{background:#f5f7f9;color:#9aaab5;}
.audit-module.is-risk .audit-module-number{color:#c53d4d}.audit-module.is-attention .audit-module-number{color:#b98021}.audit-module.is-pass .audit-module-number{color:#208f64}
.audit-actions{display:flex;justify-content:flex-end;gap:10px;margin:24px 0 0;}
.audit-open-report{display:inline-flex;align-items:center;justify-content:center;gap:14px;text-decoration:none;min-height:44px;background:#069dd0;color:white;font-size:13px;font-weight:780;border-radius:10px;padding:12px 18px;}
.audit-open-report:hover{background:#087dac;color:white;}
@keyframes targetGlow{50%{box-shadow:0 0 0 7px #e2f9f4;}}
@media(max-width:960px){
 .audit-module-text strong{font-size:13px}.audit-module{padding:16px 13px;gap:8px}.audit-module-badge{padding:5px 7px;font-size:10px;max-width:105px;}
}
@media(max-width:760px){
 .work{padding:22px 18px 24px;}
 .audit-board-top{align-items:flex-start;gap:10px}.audit-board-top h3{font-size:25px;}
 .audit-time{min-width:74px;}.audit-time strong{font-size:23px;}.audit-time span{font-size:10px;}
 .audit-progress-meta{align-items:flex-start;margin-bottom:22px}.audit-progress-meta span{font-size:12px;}
 .audit-module-heading{align-items:flex-start;flex-direction:column;gap:5px;}
 .work .audit-module-list{grid-template-columns:minmax(0,1fr);}
 .audit-module,.audit-module:last-child,.audit-module:nth-child(odd){grid-column:auto;border-right:0;min-height:74px;border-bottom:1px solid #e5edf1;padding:14px 13px;}
 .audit-module:last-child{border-bottom:0;}
 .audit-module-text strong{font-size:13px}.audit-module-text span{font-size:11px}.audit-module-number{flex-basis:24px;}
 .audit-module-badge{max-width:108px;}
 .audit-actions{justify-content:stretch}.audit-open-report{width:100%;}
}
@media(prefers-reduced-motion:reduce){.audit-target-dot.is-busy{animation:none}.audit-progress-track>span{transition:none}}

/* v3.9: return ONLY the home scan-stage list to the original two-column layout.
   The detailed report at /report.php remains full-width single column. */
.work .audit-module-list{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;border:0;overflow:visible;background:transparent}
.work .audit-module,.work .audit-module:nth-child(odd),.work .audit-module:last-child{grid-column:auto;border:1px solid #d9e6ed;border-radius:15px!important;min-height:94px;padding:17px 15px;background:#fff!important}
.work .audit-module.is-pass{border-color:#d3ebdd;background:#f8fdf9!important}
.work .audit-module.is-attention{border-color:#f0dfbc;background:#fffdfa!important}
.work .audit-module.is-risk{border-color:#f0c1c9;background:#fff9fa!important}
.work .audit-module.is-unknown,.work .audit-module.is-not_applicable{border-color:#e1e9ee;background:#fafcfd!important}
.work .audit-module.is-active{border-color:#b9e4f4;background:#f5fbff!important}
.work .audit-module:last-child{grid-column:1/2}

.audit-module-number{flex:0 0 42px;width:42px;height:42px;display:grid;place-items:center;border:2px solid #d9e5ea;border-radius:50%;line-height:1;font-size:12px;color:#8298a7;background:#fff}
.audit-module.is-pass .audit-module-number{background:#eaf7ee;border-color:#34af77;color:#168454}
.audit-module.is-risk .audit-module-number{background:#fff0f2;border-color:#db5266;color:#a92742}
.audit-module.is-attention .audit-module-number{background:#fff7e9;border-color:#ecaf53;color:#a96a0b}
.audit-module.is-unknown .audit-module-number,.audit-module.is-not_applicable .audit-module-number{background:#f2f6f8;border-color:#cfdae0;color:#647b89}
.audit-module.is-active .audit-module-number{background:#e5f6fc;border-color:#0ea3d6;color:#067bac;animation:auditPulse 1.6s ease-in-out infinite}
.audit-module.is-active .audit-module-badge{background:#e9f7fc;color:#087fac}
@keyframes auditPulse{50%{box-shadow:0 0 0 6px #e0f5fc}}
@media(max-width:760px){
.work .audit-module-list{grid-template-columns:minmax(0,1fr)}
.work .audit-module,.work .audit-module:nth-child(odd),.work .audit-module:last-child{grid-column:auto;padding:14px 12px;min-height:84px}
.audit-module-number{flex-basis:36px;width:36px;height:36px}
}
@media(prefers-reduced-motion:reduce){.audit-module.is-active .audit-module-number{animation:none}}

/* Worker activity: rotate only the outer ring; preserve the circle during polling. */
.audit-module-number{position:relative;isolation:isolate}
.audit-module-symbol{display:grid;place-items:center;width:100%;height:100%;line-height:1;font-size:16px;font-weight:780}
.audit-module-symbol svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:2.8;stroke-linecap:round;stroke-linejoin:round}
.audit-module.is-active .audit-module-number{animation:none;box-shadow:none;border-color:#b8e2f1}
.audit-module.is-active .audit-module-number::before{content:'';position:absolute;inset:-2px;border:2px solid transparent;border-top-color:#0a9ed2;border-right-color:#0a9ed2;border-radius:50%;animation:auditRingSpin .9s linear infinite;pointer-events:none}
.audit-module.is-active .audit-module-symbol,.audit-module.is-pending .audit-module-symbol,.audit-module.is-awaiting .audit-module-symbol,.audit-module.is-paused .audit-module-symbol,.audit-module.is-interrupted .audit-module-symbol{font-size:12px;font-variant-numeric:tabular-nums}
.audit-module.is-awaiting .audit-module-badge{background:#f0f4f7;color:#69808f}
.work .audit-module.is-failed{border-color:#e8b8c1;background:#fff9fa!important}
.audit-module.is-failed .audit-module-number{border-color:#db5266;background:#fff0f2;color:#a92742}
.audit-module.is-failed .audit-module-badge{background:#fff0f2;color:#bf3046}
.audit-module.is-paused .audit-module-badge,.audit-module.is-interrupted .audit-module-badge{background:#f1f4f6;color:#647b89}
@keyframes auditRingSpin{to{transform:rotate(360deg)}}
.audit-module-note{margin:0 0 14px;font-size:12px;line-height:1.5;color:#677e90;max-width:720px}
@media(prefers-reduced-motion:reduce){.audit-module.is-active .audit-module-number::before{animation:none}}
