:root{font-family:Inter,ui-sans-serif,system-ui,-apple-system,"Segoe UI",sans-serif;color:#16243b;background:#f6f8fc;font-synthesis:none}*{box-sizing:border-box}body{margin:0;min-height:100vh}a{color:#275dca;text-decoration:none}a:hover{text-decoration:underline}.nav{background:#fff;border-bottom:1px solid #e0e5ee;display:flex;align-items:center;justify-content:space-between;gap:12px;padding:20px max(24px,calc((100vw - 1120px)/2));}.brand{font-size:23px;font-weight:800;color:#152846;letter-spacing:-.06em}.brand span{color:#3c7ae0;letter-spacing:-.05em}.nav-items{display:flex;align-items:center;gap:22px;flex-wrap:wrap;font-size:14px}.user-email{color:#637189}.inline{margin:0}.link-button{background:none!important;border:0!important;color:#275dca!important;padding:0!important;width:auto!important;cursor:pointer;font:inherit}.container{max-width:1120px;margin:44px auto;padding:0 24px;min-height:65vh}.panel{background:#fff;padding:32px;border:1px solid #e4e9f1;border-radius:15px;box-shadow:0 8px 24px #142d5708;margin-bottom:24px}.narrow{max-width:470px;margin:70px auto}h1{font-size:clamp(26px,3vw,36px);letter-spacing:-.035em;line-height:1.15;margin:0 0 10px}h2{font-size:21px;letter-spacing:-.02em;margin:0 0 24px}.muted,.small{color:#69758a;line-height:1.6}.small{font-size:13px}.headline{margin:0 0 32px}.panel form:not(.inline){display:flex;flex-direction:column;gap:18px}.panel label{display:block;font-weight:650;font-size:14px}input,select{display:block;margin-top:8px;width:100%;padding:13px 14px;border:1px solid #cad4e2;border-radius:9px;background:#fff;font-size:15px;color:#1b2c44}input:focus,select:focus{outline:2px solid #3478ed;border-color:transparent}button[type=submit]:not(.link-button){display:inline-block;align-self:flex-start;background:#2866d5;color:#fff;font-size:15px;font-weight:700;border:0;border-radius:9px;padding:14px 23px;cursor:pointer}button:hover{filter:brightness(1.05)}.bottom-links{margin-top:20px;display:flex;justify-content:space-between}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:18px}.notice{border:1px solid #a9cee5;background:#ecf8fd;color:#205479;padding:16px;border-radius:9px;margin-bottom:18px}.notice.error{border-color:#efb3b3;background:#fff1f1;color:#a72525}.table-scroll{overflow-x:auto}table{border-collapse:collapse;width:100%;font-size:14px}th{text-align:left;color:#5a6680;background:#f5f7fb}th,td{padding:16px;border-bottom:1px solid #e4e9f1;vertical-align:top}.pill{font-size:12px;background:#f2f5fa;border:1px solid #d9e0eb;border-radius:99px;padding:5px 9px;white-space:nowrap;color:#52617d}.empty{padding:30px 0;color:#8a93a5}.footer{text-align:center;color:#8993a5;font-size:12px;padding:40px 16px}@media(max-width:650px){.nav{padding:16px 20px}.nav-items{gap:9px}.user-email{display:none}.container{padding:0 16px;margin:20px auto}.panel{padding:22px 17px}.narrow{margin:30px auto}.form-grid{grid-template-columns:1fr}}


/* Cascading federal-district selector: Wordstat-style dropdown (WEB-001 GEO). */
[hidden]{display:none!important}
.geo-field{position:relative;min-width:0}
.geo-field>label{font-weight:650;font-size:14px}
.geo-hint{margin:7px 0 0!important;font-size:12px!important}
.geo-invalid{color:#b91c1c!important;font-weight:650}
.geo-picker{position:relative;margin-top:8px}
.geo-picker>summary{display:flex;justify-content:space-between;align-items:center;gap:12px;padding:13px 14px;border:1px solid #cad4e2;border-radius:9px;min-height:48px;background:#fff;cursor:pointer;list-style:none;font-size:15px;color:#1b2c44}
.geo-picker>summary::-webkit-details-marker{display:none}
.geo-picker>summary:focus-visible{outline:2px solid #3478ed;outline-offset:2px}
.geo-picker[open]>summary{border-color:#3478ed;border-radius:9px 9px 0 0}
.geo-caption{overflow:hidden;white-space:nowrap;text-overflow:ellipsis}
.geo-caret{color:#69758a;font-size:18px;flex:none}
.geo-picker[open] .geo-caret{transform:rotate(180deg)}
.geo-popup{position:absolute;top:100%;left:0;width:min(580px,calc(100vw - 48px));z-index:50;background:#fff;border:1px solid #b7c7dd;border-top:0;border-radius:0 0 12px 12px;box-shadow:0 15px 38px rgba(18,45,83,.18);padding:14px}
.geo-filter{margin:0 0 10px!important;padding:10px 12px!important;font-size:14px!important}
.geo-all-line{display:flex;align-items:center;justify-content:space-between;gap:14px;padding:10px 6px;border-bottom:1px solid #e4e9f1}
.geo-check-label{display:flex!important;align-items:center;gap:9px;font-size:14px!important;font-weight:500!important;cursor:pointer;line-height:1.45}
.geo-check-label>input[type=checkbox]{display:inline-block!important;width:17px!important;height:17px!important;flex:0 0 17px;margin:0!important;padding:0!important;accent-color:#2766d5;cursor:pointer}
.geo-text-button{border:0;background:none;color:#2766d5;padding:6px;font-size:13px;cursor:pointer;white-space:nowrap}
.geo-groups{max-height:330px;overflow-y:auto;overscroll-behavior:contain;padding:4px 0}
.geo-district{border-bottom:1px solid #f0f2f6}
.geo-district-heading{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:9px 4px}
.geo-district-title{font-weight:650!important;min-width:0}
.geo-group-count{font-size:11px;color:#637189;background:#f1f4f9;border-radius:9px;padding:3px 7px;white-space:nowrap}
.geo-expand{border:0;background:#f1f5fc;border-radius:7px;color:#305b9b;padding:7px 11px;cursor:pointer;flex:none}
.geo-expand[aria-expanded=true]{transform:rotate(180deg)}
.geo-region-list{margin:0 0 7px 24px;padding:2px 0 6px 11px;border-left:2px solid #e3ecf7}
.geo-region-row{padding:6px 4px;border-radius:5px}
.geo-region-row:hover{background:#f5f8fd}
.geo-footer{display:flex;justify-content:space-between;align-items:center;gap:10px;padding:12px 3px 2px;border-top:1px solid #e4e9f1;font-size:13px;color:#53627b}
button.geo-apply{background:#2766d5;color:white;border:0;border-radius:8px;padding:9px 16px;cursor:pointer}
@media(max-width:650px){.geo-popup{width:calc(100vw - 66px);padding:10px}.geo-groups{max-height:44vh}.geo-district-heading{gap:3px}.geo-group-count{display:none}.geo-region-list{margin-left:12px;padding-left:8px}.geo-check-label{font-size:13px!important}}

/* WEB-002 optional morphological query expansion and human review. */
.query-field{min-width:0}
.query-expansion-label{display:flex!important;align-items:flex-start;gap:10px;margin:11px 0 0;font-size:14px!important;cursor:pointer}
.query-expansion-label input[type=checkbox]{display:inline-block;width:19px;height:19px;flex:0 0 19px;margin:1px 0 0;padding:0;accent-color:#2866d5;cursor:pointer}
.query-expansion-label span{display:flex;flex-direction:column;gap:3px;line-height:1.4;font-weight:500}
.query-expansion-label strong{font-weight:700;color:#1b2c44}
.query-expansion-label small{font-size:12px;color:#69758a;font-weight:400}
.query-review-link{display:block;margin-top:9px;font-weight:650;font-size:13px}
.query-exact{display:block;margin-top:7px}
.review-source{border-left:3px solid #2866d5;padding:8px 14px;background:#f6f9fe;border-radius:0 8px 8px 0;margin:0 0 22px}
.review-source p{font-size:18px;margin:7px 0 2px}
.review-form{display:flex;flex-direction:column;gap:14px}
.review-form textarea{display:block;width:100%;max-width:100%;min-height:270px;line-height:1.55;resize:vertical;padding:14px 16px;border:1px solid #cad4e2;border-radius:9px;background:#fff;color:#1b2c44;font:inherit}
.review-form textarea:focus{outline:2px solid #3478ed;border-color:transparent}
.review-actions{display:flex;flex-wrap:wrap;align-items:center;gap:16px}
.review-actions a{font-size:14px}

/* WEB-003: official Wordstat discovery is separate from human authorization. */
.wordstat-section{margin-top:30px;border-top:1px solid #e4e9f1;padding-top:24px}
.wordstat-section h2{margin-bottom:12px}
.wordstat-form{margin:16px 0 10px!important}
.wordstat-add{font-size:13px;background:#f0f5ff;color:#245ac0;border:1px solid #bdd0f7;border-radius:7px;padding:8px 10px;cursor:pointer;white-space:nowrap}
.wordstat-add:hover{background:#e1ebff}
.wordstat-section td{max-width:350px;overflow-wrap:anywhere}
@media(max-width:650px){.wordstat-add{white-space:normal;font-size:12px}.wordstat-section table{min-width:600px}}

/* WEB-005: licensed catalogue source status; no fake active buttons. */
.map-source-row{padding:15px 0;border-bottom:1px solid #e5eaf1;display:flex;align-items:flex-start;flex-direction:column;gap:7px}
.map-source-row strong{font-size:16px;color:#223552}
.map-source-row form{margin:4px 0 0}
.map-source-row .small{color:#62728b}

/* WEB-006 permission-only public website crawl. */
.web-crawl-form{display:flex;flex-direction:column;align-items:flex-start;gap:13px;margin:18px 0}
.web-crawl-form textarea{width:100%;max-width:720px;min-height:135px;resize:vertical;line-height:1.5;
  font:inherit;border:1px solid #bbc9db;border-radius:9px;background:#fff;color:#1b2c44;padding:12px 14px}
.web-crawl-form textarea:focus{outline:2px solid #3478ed;border-color:transparent}
.web-crawl-permission{display:flex!important;align-items:flex-start;gap:9px;max-width:750px;font-weight:500!important;cursor:pointer}
.web-crawl-permission input[type=checkbox]{display:inline-block;flex:none;width:19px;height:19px;accent-color:#2766d5;margin:3px 0 0}

/* WEB-007: manual 2GIS browser discovery; no automated 2GIS requests. */
.twogis-searches{display:flex;flex-wrap:wrap;gap:9px;margin:16px 0 22px}
.twogis-search-link{display:inline-block;padding:9px 12px;border:1px solid #d1ddef;border-radius:8px;background:#f6f9ff;font-weight:620;font-size:13px}
.twogis-form{max-width:820px;margin:20px 0 26px}
.twogis-form label{width:100%}
.twogis-form input[type=checkbox]{margin-top:3px}
.twogis-prefill{font-size:12px;padding:8px 10px;border:1px solid #bad0f0;background:#edf3ff;color:#2356a8;border-radius:7px;white-space:normal}
.twogis-prefill:hover{background:#e4edfc}
#2gis-web h3{margin:20px 0 12px}

/* WEB-008: explicitly select the 2GIS city before entering the search phrase. */
.twogis-city-step{border:1px solid #dae2ef;border-radius:9px;padding:14px 16px;margin:16px 0;background:#f8faff}
.twogis-city-step p{margin:4px 0 10px}
.twogis-city-step .notice{margin-top:12px}
.twogis-copy-query{display:inline-block;padding:9px 12px;border:1px solid #d1ddef;border-radius:8px;background:#f6f9ff;color:#2459a3;font:inherit;font-size:13px;font-weight:620;cursor:pointer}
.twogis-copy-query:hover{background:#ecf3ff}

/* WEB-009: city must be selected and independently verified by the user. */
.twogis-city-confirmation{display:flex!important;align-items:flex-start;gap:10px;margin:12px 0 8px;cursor:pointer;font-weight:500}
.twogis-city-confirmation input{width:19px;height:19px;flex:none;margin:2px 0 0;accent-color:#2766d5}
.twogis-city-confirmation input:disabled{cursor:not-allowed}
.twogis-search-locked{opacity:.46;cursor:not-allowed;pointer-events:none;text-decoration:none}
.twogis-copy-query:disabled{opacity:.46;cursor:not-allowed}

/* MS-UI-001: inline, authenticated source records (no separate dashboard). */
.results-home h2{margin-bottom:5px}
.results-heading{display:flex;justify-content:space-between;align-items:center;gap:18px;flex-wrap:wrap;margin-bottom:18px}
.results-heading p{margin:4px 0 0}
.results-primary-link{display:inline-flex;align-items:center;justify-content:center;background:#2866d5;color:#fff;border-radius:9px;padding:12px 18px;font-weight:700;white-space:nowrap}
.results-primary-link:hover{color:#fff;background:#1e54b8;text-decoration:none}
.result-metrics{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:12px;margin:8px 0 14px}
.result-metrics>div{border:1px solid #dce6f3;background:#f8faff;border-radius:11px;padding:14px;display:flex;flex-direction:column;gap:5px}
.result-metrics strong{font-size:29px;letter-spacing:-.04em;line-height:1.1;color:#18345b}
.result-metrics span{font-size:12px;color:#64738b}
.result-list td{overflow-wrap:anywhere;max-width:310px}
.results-more-link{font-weight:700;display:inline-block;margin-top:7px}
.result-source-breakdown{margin:-12px 0 14px;font-size:14px;color:#4b6380}
.results-filter-form{display:grid!important;grid-template-columns:minmax(190px,2fr) minmax(140px,1fr) minmax(140px,1fr);gap:12px!important;align-items:end}
.results-filter-form label{min-width:0}
.results-filter-form input,.results-filter-form select{margin-top:5px}
.results-filter-actions{display:flex;gap:10px;align-items:center;flex-wrap:wrap;grid-column:1 / -1}
.results-filter-actions button{margin:0}
@media(max-width:750px){.result-metrics{grid-template-columns:repeat(2,minmax(0,1fr))}.results-filter-form{grid-template-columns:1fr 1fr!important}.results-filter-form>label:first-child{grid-column:1 / -1}}
@media(max-width:460px){.results-heading{align-items:flex-start}.results-primary-link{width:100%}.result-metrics strong{font-size:23px}.results-filter-form{grid-template-columns:1fr!important}.results-filter-form>label:first-child{grid-column:auto}}
