:root{color-scheme:light;--canvas:#f7f9f8;--ink:#182b29;--muted:#4b615b;--line:#d8e2de;--green:#245a43;--green-dark:#194532;--mint:#eaf4ee;--white:#fff;--amber:#fff4db;--amber-ink:#634400;--error:#a12c2c;font-family:system-ui,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--canvas);font-synthesis:none;text-rendering:optimizeLegibility}
*{box-sizing:border-box}
body{margin:0;min-height:100vh;font-size:18px;line-height:1.55}
a{color:inherit}
button,input,select{font:inherit}
a:focus-visible,button:focus-visible,input:focus-visible,select:focus-visible,summary:focus-visible{outline:3px solid #b76b10;outline-offset:3px}
[hidden]{display:none!important}
.scanner-header{max-width:1160px;margin:auto;padding:20px 24px;display:flex;align-items:center;justify-content:space-between;border-bottom:1px solid var(--line)}
.wordmark{display:inline-flex;align-items:center;gap:9px;text-decoration:none;font-weight:750;font-size:21px;letter-spacing:-.04em}
.wordmark svg{width:31px;height:31px;fill:none;stroke:var(--green);stroke-width:1.8;stroke-linejoin:round;stroke-linecap:round}
.header-assurance{color:var(--green);font-size:15px;font-weight:650}.header-assurance span{font-size:20px;vertical-align:-2px;margin-right:4px}
.scanner-main{width:min(100% - 40px,1020px);margin:0 auto;padding:48px 0 64px}
.scanner-intro{max-width:770px;margin-bottom:30px}
.eyebrow{margin:0 0 10px;color:var(--green);font-size:14px;font-weight:750;letter-spacing:.07em;text-transform:uppercase}
h1,h2,h3,p{margin-top:0}
h1{max-width:740px;margin-bottom:12px;font-size:clamp(35px,5vw,47px);line-height:1.13;letter-spacing:-.05em;font-weight:730}
.scanner-intro>p:last-child{max-width:730px;color:var(--muted);font-size:19px;margin-bottom:0}
.panel{padding:30px;background:var(--white);border:1px solid var(--line);border-radius:15px}
.setup-panel h2,.running-panel h2{font-size:26px;letter-spacing:-.035em;margin:0 0 10px}
.setup-explain{max-width:860px;color:var(--muted);margin:0 0 22px}
.picker-actions{display:flex;flex-wrap:wrap;gap:12px}
.button{display:inline-flex;min-height:50px;align-items:center;justify-content:center;gap:10px;border:1px solid var(--green);border-radius:8px;padding:10px 19px;background:var(--green);color:#fff;text-decoration:none;font-size:16px;font-weight:700;cursor:pointer}
.button:hover:not(:disabled){background:var(--green-dark);border-color:var(--green-dark)}
.button:disabled{opacity:.48;cursor:not-allowed}
.button-secondary{background:#fff;color:var(--green)}
.button-secondary:hover:not(:disabled){background:var(--mint);border-color:var(--green)}
.button-danger{background:#fff;color:#842424;border-color:#c98f8f}
.button-danger:hover:not(:disabled){background:#fff3f3;border-color:#842424}
.file-picker-label{cursor:pointer}
.visually-hidden{position:absolute!important;width:1px;height:1px;padding:0;margin:-1px;overflow:hidden;clip:rect(0,0,0,0);white-space:nowrap;border:0}
.visually-hidden:focus-visible+.file-picker-label{outline:3px solid #b76b10;outline-offset:3px}
.picker-note{max-width:880px;margin:15px 0 0;color:var(--muted);font-size:15px}
.selection-wrap{margin-top:24px}
.selection-wrap h3{font-size:16px;margin:0 0 9px}
.selection-card{display:flex;align-items:center;gap:12px;padding:13px 15px;border:1px solid var(--line);border-radius:9px;background:#fbfcfb}
.folder-icon{display:grid;place-items:center;flex:0 0 40px;height:40px;border-radius:9px;background:var(--mint);color:var(--green);font-size:21px}
.selection-details{min-width:0;flex:1}
.selection-name{display:block;font-weight:700;overflow-wrap:anywhere}
.selection-count{display:block;color:var(--muted);font-size:14px}
.selection-label{width:min(200px,35%);min-height:42px;padding:6px 9px;border:1px solid var(--line);border-radius:6px;font-size:15px}
.remove-selection{width:44px;height:44px;border:1px solid var(--line);border-radius:7px;background:#fff;color:#713434;font-size:22px;cursor:pointer}
.scan-start-row{display:flex;align-items:center;gap:17px;margin-top:27px}
.scan-start-row p{margin:0;color:var(--muted);font-size:15px}
.inline-status{min-height:25px;margin:16px 0 0;color:var(--muted);font-size:15px}
.running-panel{max-width:780px}
.running-heading{display:flex;align-items:center;justify-content:space-between;gap:20px}
.running-heading h2{margin-bottom:0}
.spinner{width:32px;height:32px;border:3px solid #dce8e0;border-top-color:var(--green);border-radius:50%;animation:spin .9s linear infinite}
@keyframes spin{to{transform:rotate(360deg)}}
.progress-phase{margin:24px 0 12px;font-weight:700}
.progress-track{height:12px;border-radius:10px;background:#edf1ef;overflow:hidden}
.progress-indicator{height:100%;width:30%;border-radius:10px;background:#75a188;animation:indeterminate 1.5s ease-in-out infinite alternate}
@keyframes indeterminate{from{transform:translateX(-60%)}to{transform:translateX(270%)}}
.progress-facts{display:flex;justify-content:space-between;gap:14px;margin-top:12px;color:var(--muted);font-size:15px;font-variant-numeric:tabular-nums}
.advanced-progress{margin:8px 0 22px;color:var(--muted);font-size:13px}
.running-panel .inline-status{margin-top:10px}
.result-banner{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;padding:25px 27px;background:var(--mint);border:1px solid #d3e4d8;border-radius:13px}
.result-banner.incomplete{background:var(--amber);border-color:#efdbac}
.result-banner h2{font-size:30px;letter-spacing:-.04em;margin:0 0 6px}
.result-summary{margin:0;color:#344b42}
.status-badge{flex:none;padding:6px 12px;border-radius:20px;background:#fff;color:var(--green);font-size:14px;font-weight:750}
.incomplete .status-badge{color:var(--amber-ink)}
.metrics-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:12px;margin-top:16px}
.metric-card{min-height:112px;padding:17px 16px;background:#fff;border:1px solid var(--line);border-radius:10px}
.metric-card span{display:block;min-height:42px;color:var(--muted);font-size:14px;line-height:1.4}
.metric-card strong{display:block;font-size:24px;letter-spacing:-.03em;font-variant-numeric:tabular-nums;overflow-wrap:anywhere}
.result-reminder{margin:16px 0;padding:16px 18px;background:#fff;border-left:4px solid #83a78f;border-radius:5px;font-size:15px;color:var(--muted)}
.result-reminder strong{color:var(--ink)}
.empty-note,.fallback-note{padding:12px 15px;border-radius:8px;font-size:15px}
.empty-note{background:#f2f6f3;color:#405a4d}
.fallback-note{background:var(--amber);color:var(--amber-ink)}
.results-toolbar{display:flex;align-items:flex-end;justify-content:space-between;gap:15px;margin:29px 0 14px}
.results-toolbar label{display:grid;gap:5px;font-size:14px;font-weight:700}
.results-toolbar select{min-height:46px;min-width:220px;padding:7px 10px;border:1px solid #bdcbc3;border-radius:7px;background:#fff;color:var(--ink);font-size:15px}
.results-count{color:var(--muted);font-size:15px;margin-bottom:10px}
.groups-list{display:grid;gap:12px}
.group-card{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.group-card summary{display:flex;align-items:center;justify-content:space-between;gap:16px;padding:17px 19px;cursor:pointer;list-style:none}
.group-card summary::-webkit-details-marker{display:none}
.group-title{font-weight:750;font-size:17px}
.group-facts{display:block;color:var(--muted);font-size:14px;margin-top:3px}
.group-saving{white-space:nowrap;text-align:right;color:var(--green);font-size:14px;font-weight:700}
.group-content{padding:0 19px 18px;border-top:1px solid #edf1ef}
.location-help{margin:13px 0;color:var(--muted);font-size:14px}
.member-list{display:grid;gap:10px}
.member-card{display:grid;grid-template-columns:minmax(0,1fr) auto;gap:7px 14px;align-items:center;padding:12px;border:1px solid #e4ebe7;border-radius:8px;background:#fcfdfc}
.member-name{font-weight:700;overflow-wrap:anywhere}
.member-path{grid-column:1/-1;margin:0;color:var(--muted);font-size:15px;overflow-wrap:anywhere}
.member-meta{grid-column:1/-1;color:#60716a;font-size:13px}
.copy-path{min-height:42px;padding:7px 11px;background:#fff;border:1px solid #aabdb1;border-radius:6px;color:var(--green);font-size:14px;font-weight:700;cursor:pointer}
.copy-feedback{grid-column:1/-1;min-height:19px;margin:0;color:var(--green);font-size:13px}
.member-pagination{display:flex;align-items:center;justify-content:center;gap:14px;margin-top:13px;font-size:14px;color:var(--muted)}
.small-button{min-height:40px;padding:6px 11px;border:1px solid var(--line);border-radius:6px;background:#fff;color:var(--green);font-size:14px;font-weight:650;cursor:pointer}
.small-button:disabled{color:#71817a;cursor:default;opacity:.65}
.pagination{display:flex;justify-content:center;align-items:center;gap:10px;margin:19px 0}
.page-summary{font-size:14px;color:var(--muted)}
.review-help{margin-top:23px;padding:16px 18px;border:1px solid var(--line);border-radius:9px;background:#fff}
.review-help summary{cursor:pointer;font-weight:700}
.review-help p{margin:10px 0 0;color:var(--muted);font-size:15px}
.result-actions{display:flex;gap:12px;flex-wrap:wrap;margin-top:23px}
.scanner-footer{max-width:1160px;margin:auto;padding:18px 24px 26px;border-top:1px solid var(--line);display:flex;justify-content:space-between;gap:20px;color:var(--muted);font-size:13px}
@media(max-width:760px){body{font-size:17px}.scanner-header{padding:16px 20px}.header-assurance{max-width:175px;text-align:right;font-size:13px}.scanner-main{width:calc(100% - 32px);padding:37px 0 45px}.scanner-intro>p:last-child{font-size:18px}.panel{padding:22px 19px}.picker-actions{display:grid}.picker-actions .button{width:100%}.scan-start-row{align-items:flex-start;flex-direction:column;gap:10px}.selection-card{flex-wrap:wrap}.selection-label{order:3;width:calc(100% - 56px);margin-left:52px}.remove-selection{margin-left:auto}.metrics-grid{grid-template-columns:repeat(2,1fr)}.metric-card{min-height:100px}.result-banner{padding:20px;flex-direction:column}.result-banner h2{font-size:27px}.results-toolbar{align-items:stretch;flex-direction:column}.results-toolbar select{width:100%}.results-toolbar>.button{width:100%}.group-card summary{align-items:flex-start;flex-direction:column}.group-saving{text-align:left}.member-card{grid-template-columns:1fr}.copy-path{grid-row:2;justify-self:start}.member-path,.member-meta,.copy-feedback{grid-column:1}.progress-facts{font-size:14px}.scanner-footer{padding-left:18px;padding-right:18px;flex-direction:column;gap:4px}}
@media(max-width:380px){.scanner-header{padding-left:16px;padding-right:16px}.scanner-main{width:calc(100% - 24px)}.metrics-grid{gap:8px}.metric-card{padding:13px 11px}.metric-card strong{font-size:21px}.result-actions{flex-direction:column}.result-actions .button{width:100%}}
@media(prefers-reduced-motion:reduce){*,*::before,*::after{scroll-behavior:auto!important;animation-duration:.01ms!important;animation-iteration-count:1!important}}
