:root{font-family:-apple-system,BlinkMacSystemFont,"Segoe UI","Yu Gothic UI",sans-serif;color:#1f2937;background:#f5f7fb}
*{box-sizing:border-box}body{margin:0}.wrap{max-width:1080px;margin:0 auto;padding:24px}.top{background:#111827;color:white;padding:16px 0}
.top .wrap{display:flex;align-items:center;justify-content:space-between;padding-top:0;padding-bottom:0}.card{background:white;border:1px solid #e5e7eb;border-radius:12px;padding:20px;margin:16px 0;box-shadow:0 2px 8px #00000008}
h1{font-size:24px;margin:0}h2{font-size:20px}label{display:block;font-weight:600;margin:12px 0 5px}.grid{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:0 18px}
input,select,textarea{width:100%;padding:10px 12px;border:1px solid #cbd5e1;border-radius:8px;font-size:15px}button,.btn{display:inline-block;background:#111827;color:white;border:0;border-radius:8px;padding:10px 16px;text-decoration:none;cursor:pointer}
.btn.secondary{background:#475569}.btn.good{background:#166534}.btn.warn{background:#92400e}.muted{color:#64748b}.pill{display:inline-block;padding:3px 8px;border-radius:999px;background:#e2e8f0;font-size:12px}
.ok{color:#166534;font-weight:700}.ng{color:#b91c1c;font-weight:700}.pending{color:#92400e;font-weight:700}
table{border-collapse:collapse;width:100%;background:white}th,td{padding:9px;border-bottom:1px solid #e5e7eb;text-align:left;vertical-align:top;font-size:14px}th{background:#f8fafc}
.rating{display:flex;gap:8px;flex-wrap:wrap}.rating label{font-weight:400;margin:0;border:1px solid #cbd5e1;border-radius:8px;padding:7px 10px}.rating input{width:auto}
.evidence{font-size:13px;color:#475569;margin-top:4px}.auto{background:#eff6ff}.semi{background:#fff7ed}.visual{background:#f0fdf4}
pre{white-space:pre-wrap;background:#0f172a;color:#e2e8f0;padding:12px;border-radius:8px;font-size:12px;overflow:auto}
@media(max-width:700px){.grid{grid-template-columns:1fr}.wrap{padding:14px}table{font-size:12px}.top .wrap{display:block}}

/* v1.0.2 compact audit review */
.review-wrap{padding-bottom:92px}
.compact-card{padding:14px 16px;margin:10px 0}
.audit-head{display:flex;justify-content:space-between;align-items:center;gap:16px}
.audit-head h2{margin:0 0 4px}.audit-head p{margin:0}
.status-badge,.result-badge{display:inline-block;border-radius:999px;padding:5px 10px;font-weight:700;font-size:12px;white-space:nowrap}
.status-ok{background:#dcfce7;color:#166534}.status-pending{background:#fef3c7;color:#92400e}
.audit-table-wrap{background:white;border:1px solid #e5e7eb;border-radius:12px;overflow:hidden}
.audit-table{table-layout:fixed}
.audit-table th,.audit-table td{padding:7px 8px}
.audit-table th:nth-child(1){width:46px}.audit-table th:nth-child(2){width:72px}.audit-table th:nth-child(4){width:150px}
.audit-table td.num,.audit-table td.mode,.audit-table td.eval{text-align:center;vertical-align:middle}
.item-title{font-weight:600;line-height:1.25}.audit-table .evidence{margin-top:2px;font-size:12px;line-height:1.35;white-space:pre-line}
.compact-rating{display:flex;justify-content:center;gap:5px;flex-wrap:nowrap}
.compact-rating label{padding:0;border:0;margin:0}
.compact-rating input{position:absolute;opacity:0;pointer-events:none}
.compact-rating span{display:inline-flex;align-items:center;justify-content:center;width:36px;height:30px;border:1px solid #cbd5e1;border-radius:7px;background:white;font-weight:700;cursor:pointer}
.compact-rating .choice-a input:checked+span{background:#dcfce7;color:#166534;border-color:#86efac}
.compact-rating .choice-b input:checked+span{background:#fef3c7;color:#92400e;border-color:#fcd34d}
.compact-rating .choice-c input:checked+span{background:#fee2e2;color:#b91c1c;border-color:#fca5a5}
.rb-a{background:#dcfce7;color:#166534}.rb-b{background:#fef3c7;color:#92400e}.rb-c{background:#fee2e2;color:#b91c1c}.rb-p{background:#e2e8f0;color:#475569}
.detail-panel summary{cursor:pointer;font-weight:700}
.save-bar{position:fixed;left:0;right:0;bottom:0;z-index:50;background:rgba(255,255,255,.97);border-top:1px solid #dbe2ea;box-shadow:0 -3px 12px #00000012;padding:10px max(14px,calc((100vw - 1080px)/2 + 24px));display:flex;justify-content:space-between;align-items:center}
@media(max-width:700px){
  .audit-head{display:block}.audit-table th:nth-child(2){width:58px}.audit-table th:nth-child(4){width:120px}
  .audit-table th,.audit-table td{padding:6px 5px}.compact-rating span{width:30px;height:28px}
  .save-bar{padding:9px 14px}.item-title{font-size:13px}.audit-table .evidence{font-size:11px}
}
