:root{color:#26342e;background:#f4f6f5;font-size:13px}
body{margin:0}
button,input,textarea,select{font:inherit}
button,a,input,textarea,select{outline-offset:3px}
button,.button{cursor:pointer}
button:disabled{opacity:.45;cursor:not-allowed}
a{color:#245d4b}
button,.button,input,textarea,select{border:1px solid #cdd7d1;border-radius:5px;background:#fff;color:inherit}
button,.button{padding:7px 12px;text-decoration:none}
input,textarea,select{padding:7px 9px}
input[type=checkbox]{accent-color:#38694f;width:15px;height:15px;flex-shrink:0}
textarea{width:100%;min-height:156px;resize:vertical;line-height:1.65}
h2{font-size:15px;margin:0;font-weight:700}
.workspace{max-width:1420px;margin:20px auto;padding:0 18px;display:grid;grid-template-columns:minmax(240px,.8fr) minmax(260px,.9fr) minmax(360px,1.5fr);gap:16px;align-items:start}
.card{min-width:0;border:1px solid #dce3df;border-radius:6px;background:#fff;padding:16px}
.card-heading{display:flex;align-items:center;justify-content:space-between;gap:10px;margin-bottom:14px}
.card-heading select{font-size:12px;padding:3px 6px}
.text-button{padding:3px 0;border:0;background:transparent;color:#315d48;text-align:start}
.text-button:hover{text-decoration:underline}
.button-primary{background:#365f4c;border-color:#365f4c;color:#fff}
.button-danger{color:#963c34;border-color:#d9b9b4}
.muted,.count-badge{color:#617168;font-size:12px;line-height:1.7}
.muted{margin:9px 0}
.service-row,.account-row{display:flex;align-items:center;justify-content:space-between;gap:10px;margin:10px 0;font-size:12px}
.connection-badge{display:flex;gap:6px;align-items:center}
.status-dot,.activity-indicator{width:7px;height:7px;border-radius:50%;background:#a6b1aa;display:inline-block}
.online .status-dot{background:#4a8061}
.small-status{color:#657266}
.signed-in{color:#315e44}
.folder-location{border-block:1px solid #e3e8e5;margin:14px 0;padding:10px 0}
.folder-location>span{display:block}
.folder-location button{display:block;max-width:100%;overflow-wrap:anywhere;font-size:12px}
.folder-location bdi{unicode-bidi:isolate}
.auth-fields{display:grid;gap:10px}
.auth-field label,.field-label{display:block;font-size:12px;margin:0 0 6px}
.auth-field input:not([type=checkbox]){width:100%;direction:ltr}
.auth-field-checkbox{display:flex;flex-wrap:wrap;align-items:start;gap:6px}
.auth-field-checkbox label{flex:1}
.auth-field-links{width:100%;font-size:12px}
.auth-field-links a{margin-inline-end:8px}
#auth-submit{width:100%;margin-top:12px}
#auth-challenge img{max-width:100%;max-height:180px}
#open-map{width:100%}
.notice{display:flex;align-items:center;gap:8px;margin:12px 0;font-size:12px}
.notice p{margin:5px 0}
.spinner,.is-loading:before{content:"";display:inline-block;width:13px;height:13px;border:2px solid #a6b7ac;border-right-color:transparent;border-radius:50%;animation:spin 1s linear infinite;flex-shrink:0}
.is-loading:before{margin-inline-end:6px}
.search-actions{display:flex;gap:8px}
.search-actions>*{flex:1}
.results-toolbar{display:flex;align-items:center;gap:10px;margin-bottom:10px;font-size:12px}
.results-toolbar input{min-width:0;flex:1}
.selection-actions{display:flex;gap:10px;font-size:12px}
.count-badge{font-weight:400}
.results-list{max-height:340px;overflow:auto;scrollbar-width:thin}
.query-group{margin-bottom:8px}
.query-group-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;color:#68796e;font-size:11px;padding:3px 0}
.query-group-heading h3{font:inherit;margin:0}
.candidate-row{display:flex;align-items:center;gap:8px;min-height:38px;padding:6px 3px;border-bottom:1px solid #e7ebe8;cursor:pointer}
.candidate-row.selected{background:#edf4ef}
.candidate-row.unavailable{color:#7d847f}
.candidate-main{flex:1;min-width:0;display:flex;align-items:baseline;flex-wrap:wrap;gap:2px 10px}
.candidate-name{font-size:13px;line-height:1.65}
.candidate-location{font-size:11px;color:#607064;line-height:1.6}
.candidate-flags{display:flex;gap:4px;font-size:9px;color:#51715a}
.candidate-note,.no-match{font-size:11px;line-height:1.6;color:#936f34}
.empty-state{padding:30px 10px;text-align:center;color:#738177}
.empty-state strong{font-size:13px}
.empty-state p{font-size:12px;line-height:1.8}
.empty-icon{display:none}
.activity-card{grid-column:2/4}
.activity-indicator.busy{background:#4a8061}
.progress-caption{display:flex;align-items:center;justify-content:space-between;gap:10px;font-size:12px;margin-bottom:8px}
.progress-track{height:4px;border-radius:2px;background:#e8eeea;overflow:hidden}
.progress-fill{height:100%;background:#5b8067}
.progress-track.indeterminate .progress-fill{width:35%!important;animation:progress 1.5s ease-in-out infinite}
.job-progress .button{font-size:12px}
.downloads-list{max-height:320px;overflow:auto}
.download-row{display:flex;align-items:center;gap:10px;border-bottom:1px solid #e4eae6;padding:9px 0}
.pdf-icon{font-size:9px;color:#64826a}
.download-file{flex:1;min-width:0}
.download-file .filename{display:block;font-size:12px;overflow-wrap:anywhere;text-decoration:none}
.download-file a:hover{text-decoration:underline}
.download-file small{display:block;color:#718078;font-size:11px;overflow-wrap:anywhere;margin-top:3px}
.download-file small.error{color:#a24c3c}
.map-file-link{padding:5px 7px;display:grid;place-items:center;border:1px solid #d8e0da;border-radius:4px}
.map-file-link svg{width:18px;height:18px;stroke:currentColor;fill:none;stroke-width:1.5}
.download-status{font-size:11px}
.activity-details{margin-top:12px;font-size:12px}
.activity-details summary{cursor:pointer;color:#5c6e62}
.log-toolbar{display:flex;justify-content:space-between;align-items:center;gap:8px;margin:12px 0}
.log-toolbar select{font-size:11px}
.log-toolbar label{display:flex;align-items:center;gap:4px}
.log-list{max-height:240px;overflow:auto;scrollbar-width:thin}
.log-entry{padding:5px 0;border-bottom:1px solid #edf0ee}
.log-meta{display:flex;gap:8px;color:#76837a;font-size:10px}
.log-message,.log-detail{margin:5px 0;line-height:1.7;overflow-wrap:anywhere;font-size:12px}
.log-detail{font-size:11px;color:#718078}
.log-entry.error{color:#963d34}
.log-entry.warn{color:#8c6d36}
.toast{position:fixed;bottom:22px;left:50%;transform:translateX(-50%);z-index:50;max-width:calc(100vw - 24px);width:max-content;padding:12px 16px;border-radius:5px;background:#284c3a;color:white;display:flex;gap:16px;align-items:center}
.toast.error{background:#8d4438}
.toast button{background:transparent;color:inherit;border:0;padding:0;font-size:22px}
dialog{border:1px solid #d8e0db;border-radius:7px;padding:24px;max-width:420px;width:calc(100vw - 30px)}
dialog::backdrop{background:#24362c66}
dialog p{line-height:1.8}
.dialog-actions{display:flex;justify-content:flex-end;gap:10px;margin-top:20px}
.closed-screen{min-height:100dvh;display:grid;place-items:center;text-align:center;padding:24px}
.closed-screen p{line-height:1.8}
.sr-only{position:absolute;clip:rect(0,0,0,0);width:1px;height:1px;overflow:hidden}
@keyframes spin{to{transform:rotate(360deg)}
}
@keyframes progress{from{transform:translateX(-100%)}
to{transform:translateX(400%)}
}
@media(max-width:1000px){.workspace{grid-template-columns:minmax(240px,.85fr) minmax(320px,1.2fr);max-width:900px}
.account-card{grid-column:1/3}
.account-card .folder-location{margin-block:10px}
.activity-card{grid-column:1/3}
.account-card #open-map{width:auto}
}
@media(max-width:640px){.workspace{display:flex;flex-direction:column;margin:12px auto;padding:0 12px;gap:12px}
.card{width:100%;padding:14px}
.candidate-main{display:block}
.candidate-row{min-height:42px}
.card-heading{flex-wrap:wrap}
.results-toolbar input{width:100%}
.activity-card{order:4}
.results-list{max-height:330px}
}
