:root{--ink:#20352f;--muted:#76817b;--green:#163b35;--green-light:#eaf2ed;--gold:#bd9d60;--paper:#f5f5f1;--line:#e4e8e1;--white:#fff;--red:#a8453c;--shadow:0 5px 24px #173a3010;font-family:Inter,"Segoe UI",Arial,sans-serif;color:var(--ink);background:var(--paper);font-synthesis:none}*{box-sizing:border-box}body{margin:0}button,input,select,textarea{font:inherit}button,a,input,select,textarea{-webkit-tap-highlight-color:transparent}button{cursor:pointer}button:disabled{cursor:not-allowed;opacity:.5}button:focus-visible,a:focus-visible,input:focus-visible,select:focus-visible,textarea:focus-visible{outline:3px solid #8bb8a0;outline-offset:3px}a{color:inherit}h1,h2,h3,p{margin:0}svg{vertical-align:middle;flex:none}button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);background:white;padding:10px 15px;border-radius:9px;color:var(--ink);font-size:15px;font-weight:600;transition:background .15s,transform .15s}button:hover{background:#f0f4ee}button.primary{background:var(--green);border-color:var(--green);color:white}button.primary:hover{background:#24584d}button.ghost{background:transparent;border-color:transparent}button.small{padding:7px 11px;font-size:14px}button.icon{padding:8px}button.danger{color:var(--red)}input,select,textarea{width:100%;border:1px solid #dce2d9;border-radius:8px;background:white;padding:11px 12px;color:var(--ink);font-size:15px}input[type=checkbox]{width:17px;height:17px;accent-color:var(--green)}input::placeholder,textarea::placeholder{color:#949c95}label{display:block;font-size:14px;font-weight:600;margin-bottom:7px}textarea{min-height:95px;resize:vertical}.muted{color:var(--muted)}.eyebrow{font-size:12px;letter-spacing:1.6px;text-transform:uppercase;font-weight:700;color:var(--muted)}.loading{padding:80px;text-align:center;color:var(--muted)}.shell{display:grid;grid-template-columns:232px 1fr;min-height:100vh}.sidebar{position:fixed;inset:0 auto 0 0;width:232px;background:#fff;border-right:1px solid var(--line);padding:28px 18px 18px;display:flex;flex-direction:column;z-index:10}.brand{display:flex;align-items:center;gap:12px;padding:0 10px 29px}.brand img{width:37px;height:37px}.brand strong{font-size:20px;letter-spacing:-.7px}.brand span{font-size:12px;letter-spacing:2px;display:block;margin-top:3px;color:var(--muted)}.nav{display:flex;flex-direction:column;gap:5px}.nav button{border:0;background:none;justify-content:flex-start;padding:12px 13px;font-weight:500;color:#617169}.nav button.active{background:var(--green-light);color:var(--green);font-weight:650}.nav button.active:before{content:'';position:absolute;left:0;height:25px;width:3px;border-radius:0 3px 3px 0;background:var(--green)}.nav .count{margin-left:auto;background:#dfebe2;border-radius:5px;font-size:12px;padding:2px 5px}.side-divider{height:1px;background:var(--line);margin:23px 10px}.side-title{display:flex;align-items:center;justify-content:space-between;padding:0 11px 12px}.side-countries{display:grid;gap:2px}.side-countries button{border:0;justify-content:space-between;background:transparent;font-weight:400;padding:10px 12px}.side-countries button.active{background:#f3f5f0}.side-countries span:first-child{display:flex;gap:10px;align-items:center}.side-countries .muted{font-size:13px}.agent-status{margin-top:auto;padding:16px 12px;background:#f7f8f4;border:1px solid var(--line);border-radius:10px;font-size:13px}.status-line{display:flex;align-items:center;gap:7px;font-weight:650;margin-bottom:6px}.dot{width:6px;height:6px;border-radius:50%;background:#9ba49a;display:inline-block}.dot.online{background:#468969;box-shadow:0 0 0 3px #e2eee5}.side-user{display:flex;align-items:center;gap:10px;margin:18px 9px 0;font-size:14px}.avatar{width:29px;height:29px;border-radius:50%;display:grid;place-items:center;background:#eee9da;color:#6c6045;font-weight:600}.side-user button{margin-left:auto}.workspace{grid-column:2;min-width:0}.topbar{height:77px;border-bottom:1px solid var(--line);display:flex;align-items:center;gap:22px;padding:0 38px;background:#f9faf6}.breadcrumb{font-size:13px;color:var(--muted);display:flex;gap:9px;align-items:center}.breadcrumb strong{color:var(--ink);font-weight:500}.topbar .search-wrap{margin-left:auto;width:300px;position:relative}.search-wrap input{background:white;padding-left:35px;font-size:14px}.search-wrap>svg{position:absolute;top:13px;left:12px;color:#88948a}.topbar .today{font-size:13px;color:var(--muted)}.content{max-width:1660px;margin:auto;padding:35px 38px 50px}.page-heading{display:flex;gap:20px;align-items:flex-end;justify-content:space-between;margin-bottom:26px}.page-heading h1{font-family:Georgia,"Times New Roman",serif;font-weight:400;font-size:35px;letter-spacing:-.9px;margin:9px 0 10px}.page-heading p{font-size:14px;line-height:1.7;color:var(--muted)}.heading-actions{display:flex;gap:9px;flex-shrink:0;padding-bottom:3px}.stats{display:grid;grid-template-columns:repeat(4,1fr);gap:1px;background:var(--line);border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:26px}.stat{padding:20px 22px;background:#fff;display:flex;justify-content:space-between;gap:10px}.stat strong{font-size:27px;font-weight:500;letter-spacing:-1px;display:block;margin-bottom:5px}.stat p{font-size:13px;color:var(--muted)}.stat-icon{color:#9eab9f;border-radius:9px;background:#f6f8f3;width:32px;height:32px;display:grid;place-items:center}.toolbar{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:17px}.toolbar select{width:auto;min-width:135px;padding:9px 30px 9px 12px;font-size:14px}.toolbar input{width:240px;padding:9px 12px}.toolbar .spacer{flex:1}.result-count{font-size:13px;color:var(--muted);margin:0 0 17px}.filter-chips{display:flex;gap:7px;flex-wrap:wrap;margin-bottom:13px}.filter-chips button{font-size:12px;border-radius:20px;padding:6px 10px}.filter-chips button.active{background:var(--green);color:#fff}.grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px}.card{background:#fff;border:1px solid var(--line);border-radius:11px;overflow:hidden;box-shadow:0 2px 4px #1c382304;transition:box-shadow .2s,transform .2s}.card:hover{box-shadow:var(--shadow);transform:translateY(-2px)}.card-image{position:relative;aspect-ratio:1.8;overflow:hidden;background:#e9ede4}.card-image img{width:100%;height:100%;object-fit:cover;object-position:top;display:block}.placeholder{height:100%;display:flex;flex-direction:column;align-items:center;justify-content:center;gap:9px;color:#9ba892;background:radial-gradient(ellipse at 25% 10%,#e9eddb,transparent 60%),linear-gradient(140deg,#e9ede3,#f1f2ed)}.placeholder span{font-size:13px;letter-spacing:.4px}.card-badge{position:absolute;top:11px;left:11px;background:#fffef5ee;border:1px solid #ffffffcc;padding:5px 8px;border-radius:5px;font-size:12px;display:flex;gap:4px;align-items:center;font-weight:600;backdrop-filter:blur(6px)}.card-badge.agent{background:#e8f3ebee;color:#23563d}.card-actions{position:absolute;top:10px;right:10px;display:flex;gap:5px}.card-actions button,.card-actions a{background:#fffffff0;border:1px solid #e8e9e0;width:29px;height:29px;padding:0;border-radius:50%;display:grid;place-items:center;text-decoration:none}.card-body{padding:17px 17px 12px}.card-title-row{display:flex;align-items:center;gap:10px;justify-content:space-between}.card-title-row h3{font-size:16px;font-weight:650;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.country-label{font-size:12px;color:var(--muted);white-space:nowrap;display:flex;align-items:center;gap:4px}.domain{display:block;font-size:12px;color:#899186;margin-top:5px;text-decoration:none;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-description{font-size:13px;color:#6e7a70;line-height:1.65;height:37px;overflow:hidden;margin:13px 0 12px}.tags{display:flex;gap:5px;flex-wrap:wrap;min-height:21px}.tag{display:inline-flex;align-items:center;gap:4px;font-size:12px;background:#f2f4ee;color:#65715f;border:1px solid #e9ede2;padding:4px 7px;border-radius:4px}.tag.teal{color:#28624f;background:#edf6ef;border-color:#deede1}.tag.gold{background:#faf3e6;color:#9a7941;border-color:#f0e6d0}.card-footer{display:flex;justify-content:space-between;gap:7px;align-items:center;border-top:1px solid #eef0ea;padding:11px 17px;font-size:12px;color:#8c968a}.card-footer a{text-decoration:none;color:#60846e;max-width:75%;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.empty{border:1px dashed #ccd6c7;border-radius:12px;text-align:center;padding:58px 24px;background:linear-gradient(120deg,#fafbf7,#f2f5ed);min-height:290px;display:flex;flex-direction:column;align-items:center;justify-content:center}.empty .empty-icon{width:60px;height:60px;display:grid;place-items:center;background:#e6eddf;color:#698167;border-radius:17px;margin-bottom:19px}.empty h2{font-family:Georgia,serif;font-size:26px;font-weight:400;margin-bottom:11px}.empty p{font-size:14px;color:#7a8576;max-width:460px;line-height:1.8;margin-bottom:22px}.empty .actions{display:flex;gap:9px;flex-wrap:wrap;justify-content:center}.notice{background:#edf3e9;border:1px solid #dce6d4;border-radius:10px;padding:16px 18px;font-size:14px;line-height:1.8;margin-bottom:22px;display:flex;gap:12px;align-items:flex-start}.notice svg{margin-top:3px;color:#6d8c5b}.notice.warn{background:#fbf5e8;border-color:#efe2c7;color:#826834}.notice .grow{flex:1}.panel{background:white;border:1px solid var(--line);border-radius:12px;overflow:hidden;margin-bottom:22px}.panel-head{padding:19px 22px;border-bottom:1px solid var(--line);display:flex;align-items:center;justify-content:space-between;gap:15px}.panel-head h2{font-size:16px;font-weight:600}.panel-body{padding:22px}.table-wrap{overflow:auto}table{width:100%;border-collapse:collapse;font-size:14px;text-align:left}th{padding:12px 18px;font-size:12px;color:var(--muted);font-weight:600;background:#fafbf8;white-space:nowrap}td{padding:16px 18px;border-top:1px solid #edf0e8;vertical-align:middle}tr:hover td{background:#fdfefa}td .sub{display:block;color:var(--muted);font-size:12px;line-height:1.6;margin-top:4px;max-width:500px}.status{display:inline-flex;align-items:center;gap:5px;font-size:12px;background:#f0f2ed;padding:5px 8px;border-radius:5px;white-space:nowrap}.status.running,.status.completed{background:#eaf3e8;color:#3a7152}.status.paused,.status.pausing,.status.review{background:#faf0dc;color:#a17a32}.status.failed,.status.unreachable{background:#f9eae4;color:#a15a4a}.country-grid{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:14px}.country-card{background:white;border:1px solid var(--line);border-radius:10px;padding:20px}.country-card .country-top{display:flex;align-items:center;gap:10px;margin-bottom:13px}.flag{font-size:22px}.country-card h3{font-size:15px}.country-card p{font-size:12px;color:var(--muted);margin:8px 0 15px;line-height:1.7}.country-card .buttons{display:flex;gap:5px}.split{display:grid;grid-template-columns:1.6fr 1fr;gap:22px}.field{margin-bottom:18px}.field-help{font-size:12px;color:var(--muted);line-height:1.7;margin-top:7px}.form-grid{display:grid;grid-template-columns:1fr 1fr;gap:0 18px}.form-grid .wide{grid-column:1/-1}.dropzone{display:block;padding:36px 22px;border:1px dashed #bbcbb5;border-radius:9px;background:#f6f9f2;text-align:center;cursor:pointer;margin-bottom:15px}.dropzone strong{display:block;font-size:16px;margin:10px 0}.dropzone span{display:block;font-size:13px;color:var(--muted)}.dropzone input{margin-top:18px;font-size:13px}.steps{display:grid;gap:19px}.step{display:flex;gap:12px}.step-num{border-radius:50%;width:26px;height:26px;display:grid;place-items:center;background:#eef3e8;color:#667d59;font-size:13px;flex:none}.step strong{font-size:14px;font-weight:600}.step p{font-size:13px;color:var(--muted);line-height:1.8;margin-top:4px}.review-card{padding:22px;background:white;border:1px solid var(--line);border-radius:11px;margin-bottom:14px}.review-card .head{display:flex;justify-content:space-between;gap:16px;margin-bottom:14px}.review-card h3{font-size:16px}.review-card p{font-size:14px;color:var(--muted);line-height:1.7;margin-top:7px}.comparison{display:grid;grid-template-columns:1fr 1fr;gap:14px;margin:16px 0}.comparison>div{padding:13px;border:1px solid var(--line);border-radius:7px;background:#fafbf7;overflow-wrap:anywhere;font-size:14px;line-height:1.7}.comparison .eyebrow{display:block;margin-bottom:5px}.timeline{display:grid;gap:0}.timeline-item{border-left:1px solid #dbe4d4;padding:0 0 22px 20px;position:relative;margin-left:4px}.timeline-item:before{content:'';position:absolute;left:-4px;top:4px;width:7px;height:7px;background:#8fa783;border-radius:50%}.timeline-item time{font-size:12px;color:var(--muted)}.timeline-item p{font-size:14px;line-height:1.7;margin-top:5px;overflow-wrap:anywhere}.metric-row{display:flex;justify-content:space-between;padding:14px 0;border-bottom:1px solid var(--line);font-size:14px}.metric-row:last-child{border-bottom:0}.progress{height:7px;background:#edf0e7;border-radius:6px;overflow:hidden;margin-top:14px}.progress>div{height:100%;background:#7f9b69;width:var(--progress,0)}.pagination{display:flex;align-items:center;justify-content:center;gap:15px;padding:25px;font-size:14px;color:var(--muted)}.auth{min-height:100vh;display:grid;grid-template-columns:1fr 1fr}.auth-art{background:var(--green);color:white;padding:60px;display:flex;flex-direction:column;justify-content:space-between;position:relative;overflow:hidden}.auth-art:before,.auth-art:after{content:'';position:absolute;border:1px solid #ffffff12;width:550px;height:550px;border-radius:50%;right:-200px;bottom:-200px}.auth-art:after{width:700px;height:700px;right:-275px;bottom:-275px}.auth-art .brand{padding:0}.auth-art .brand img{width:43px;height:43px;border:1px solid #ffffff28;border-radius:12px}.auth-art .brand span{color:#a5bbb0}.auth-art h1{font-family:Georgia,serif;font-size:52px;font-weight:400;line-height:1.2;letter-spacing:-1.5px;max-width:460px;margin-bottom:25px}.auth-art p{color:#a8beb1;font-size:15px;line-height:1.9;max-width:350px}.auth-art .auth-foot{font-size:12px;letter-spacing:1.5px;color:#a9c0b0}.auth-main{padding:60px;display:flex;align-items:center;justify-content:center}.auth-box{width:100%;max-width:365px}.auth-box h2{font-size:26px;font-weight:500;letter-spacing:-.6px;margin:13px 0}.auth-box>p{font-size:14px;color:var(--muted);line-height:1.8;margin-bottom:30px}.auth-box button.primary{width:100%;padding:13px}.auth-note{display:flex;gap:9px;font-size:12px;color:#8b978a;line-height:1.8;margin-top:23px}.error{color:var(--red);background:#fcf0ed;padding:12px 14px;border-radius:8px;font-size:14px;line-height:1.7;margin:12px 0}.error:empty{display:none}dialog{border:1px solid #e0e6da;border-radius:15px;padding:0;width:min(750px,calc(100vw - 30px));max-height:90vh;color:var(--ink);box-shadow:0 20px 100px #112d2640}dialog::backdrop{background:#0e291e66;backdrop-filter:blur(3px)}.modal-head{padding:23px 27px;border-bottom:1px solid var(--line);display:flex;justify-content:space-between;align-items:center;position:sticky;top:0;background:#fff;z-index:1}.modal-head h2{font-size:18px;font-weight:550}.modal-content{padding:25px 27px}.modal-actions{display:flex;justify-content:flex-end;gap:8px;padding-top:15px}.detail-image{width:100%;max-height:340px;object-fit:cover;object-position:top;border-radius:9px;border:1px solid var(--line);margin-bottom:20px}.detail-url{font-size:14px;overflow-wrap:anywhere}.evidence{font-size:13px;line-height:1.8;margin-top:15px;padding:14px;background:#f7f9f3;border-radius:8px;overflow-wrap:anywhere}.evidence a{color:#517a5c}.mobile-menu{display:none}#toast{position:fixed;bottom:25px;left:50%;transform:translateX(-50%) translateY(20px);background:#173c32;color:#fff;border-radius:10px;padding:13px 20px;font-size:14px;box-shadow:var(--shadow);z-index:100;opacity:0;pointer-events:none;transition:.2s;max-width:90vw}#toast.visible{opacity:1;transform:translateX(-50%) translateY(0)}.inline-actions{display:flex;gap:7px;flex-wrap:wrap}.check-label{display:flex;align-items:center;gap:8px;font-weight:400;font-size:14px}.legend{display:flex;gap:15px;flex-wrap:wrap;font-size:12px;color:var(--muted);margin:20px 0}.legend span{display:flex;gap:5px;align-items:center}.pill{padding:3px 7px;border-radius:4px;background:#e8eee2;font-size:12px}.source-note{font-size:12px;color:var(--muted);line-height:1.8}.country-link{background:none;border:0;padding:0;justify-content:flex-start;text-align:left}.country-link:hover{background:none;text-decoration:underline}
@media(min-width:1700px){.grid{grid-template-columns:repeat(4,minmax(0,1fr))}}@media(max-width:1250px){.content{padding:28px}.topbar{padding:0 28px}.grid{grid-template-columns:repeat(2,minmax(0,1fr))}.country-grid{grid-template-columns:repeat(3,minmax(0,1fr))}.stats .stat{padding:17px}.topbar .today{display:none}.page-heading{align-items:flex-start}.heading-actions{flex-direction:column}.auth-art{padding:45px}.auth-art h1{font-size:43px}}@media(max-width:950px){.shell{grid-template-columns:200px 1fr}.sidebar{width:200px;padding:23px 12px 15px}.brand{padding-left:7px}.content{padding:25px 22px}.topbar{padding:0 22px}.topbar .search-wrap{width:220px}.stats{grid-template-columns:repeat(2,1fr)}.country-grid{grid-template-columns:repeat(2,minmax(0,1fr))}.split{grid-template-columns:1fr}.page-heading h1{font-size:31px}.breadcrumb span{display:none}}@media(max-width:700px){.shell{display:block}.sidebar{transform:translateX(-100%);transition:.2s;width:232px;box-shadow:var(--shadow)}.shell.menu-open .sidebar{transform:translateX(0)}.workspace{width:100%}.topbar{height:65px;padding:0 18px;gap:12px}.mobile-menu{display:inline-flex}.topbar .search-wrap{width:auto;flex:1}.breadcrumb{display:none}.content{padding:24px 18px}.page-heading{flex-direction:column;gap:16px;margin-bottom:20px}.heading-actions{flex-direction:row;flex-wrap:wrap}.page-heading h1{font-size:32px}.page-heading p{max-width:350px}.grid{gap:14px}.card-body{padding:13px}.card-title-row h3{font-size:14px}.card-description{height:35px;font-size:12px}.card-footer{padding:10px 13px}.card-image{aspect-ratio:1.5}.card-badge{font-size:8px;left:7px;top:7px;padding:4px 5px}.card-actions{right:6px;top:6px}.card-actions button,.card-actions a{width:25px;height:25px}.toolbar select{flex:1;min-width:120px}.toolbar input{width:100%}.auth{display:block}.auth-art{padding:27px;min-height:260px}.auth-art h1{font-size:31px;margin-top:30px;margin-bottom:12px;max-width:310px}.auth-art p,.auth-foot{display:none}.auth-main{padding:35px 25px}.country-card{padding:14px}.country-card .buttons{flex-direction:column}.form-grid{grid-template-columns:1fr}.form-grid .wide{grid-column:auto}.modal-content{padding:22px}.modal-head{padding:18px 22px}.comparison{grid-template-columns:1fr}.review-card .head{flex-direction:column}.stat strong{font-size:25px}.stats .stat{padding:15px}.stat-icon{display:none}}@media(max-width:430px){.grid{grid-template-columns:1fr}.card-image{aspect-ratio:1.8}.country-grid{grid-template-columns:1fr}.country-card .buttons{flex-direction:row}.toolbar select{min-width:105px}}

.import-details{margin:22px 0;padding:16px;border:1px solid var(--line);border-radius:9px;background:#fafbf7}.import-details summary{cursor:pointer;font-size:15px;font-weight:600}.import-details>p{margin:12px 0}.import-record{padding:15px 0;border-top:1px solid var(--line);font-size:14px}.import-record p{margin:8px 0;line-height:1.7;overflow-wrap:anywhere}.import-note{white-space:pre-wrap}.import-gallery{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin-top:12px}.import-gallery a{display:block;font-size:12px;text-decoration:none;overflow-wrap:anywhere}.import-gallery img{width:100%;aspect-ratio:1.7;object-fit:contain;background:#eef1e9;border:1px solid var(--line);border-radius:7px}.import-gallery span{display:block;margin-top:5px}

.country-card{border-width:2px}
.country-card.has-websites{border-color:#4b8066;background:#fbfdfb}
.country-card h3{min-width:0;overflow-wrap:anywhere}
.country-meta{display:flex;align-items:center;justify-content:space-between;flex-wrap:wrap;gap:10px}
.country-web-count{display:inline-flex;align-items:baseline;gap:5px;padding:7px 10px;border-radius:7px;background:#f3f5f0;color:#76817b;font-size:14px;white-space:nowrap}
.country-web-count strong{font-size:23px;line-height:1;font-weight:650;font-variant-numeric:tabular-nums}
.has-websites .country-web-count{background:#e3f0e7;color:#24583f}
.toolbar .check-label input[type=checkbox]{width:17px;flex-shrink:0}

/* Keep the complete website preview visible at its original proportions. */
.card-image{aspect-ratio:3 / 2;background:#f1f3ef;border-bottom:1px solid var(--line)}
.card-image img{position:absolute;inset:0;width:100%;height:100%;object-fit:contain;object-position:center}
.detail-image{display:block;height:auto;max-height:min(58vh,520px);object-fit:contain;object-position:center;background:#f1f3ef}

.bookmark-image [hidden]{display:none}
.image-paste-area{border:1px dashed #a8bdae;border-radius:9px;background:#f3f7f1;overflow:hidden}
.image-paste-area:focus-visible{outline:3px solid #8bb8a0;outline-offset:3px}
.image-paste-area img{display:block;width:100%;height:auto;max-height:260px;object-fit:contain}
.image-paste-placeholder{display:flex;align-items:center;justify-content:center;gap:13px;min-height:100px;padding:22px;color:#597763;font-size:15px;text-align:center}
.image-paste-placeholder strong{font-weight:500}
.image-paste-placeholder kbd{font:inherit;border:1px solid #cdd9cc;border-radius:4px;padding:2px 5px;background:white}
.bookmark-image>input{margin-top:10px}
.image-selection{display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;margin-top:7px}
.image-selection .field-help{margin:0;overflow-wrap:anywhere}

/* A research report uses the available screen; bookmark forms stay compact. */
dialog.run-modal{width:100vw;max-width:none;height:100dvh;max-height:100dvh;margin:0;inset:0;border:0;border-radius:0;background:#f5f7f3}
.run-modal .modal-head{padding:18px 28px;z-index:3}
.run-modal .modal-content{padding:24px 28px 40px}
.run-overview{display:flex;align-items:flex-start;justify-content:space-between;gap:20px;margin-bottom:20px}
.run-topline{display:flex;align-items:center;gap:14px;flex-wrap:wrap}
.run-message{font-size:15px;line-height:1.6;margin-top:10px}
.run-metrics{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px}
.run-metric{display:flex;align-items:flex-start;flex-direction:column;gap:8px;padding:20px 22px;text-align:left;font-weight:400;background:#fff}
.run-metric strong{font-size:32px;font-weight:600;line-height:1.1;font-variant-numeric:tabular-nums}
.run-metric span{font-size:14px;color:#63766a}
.run-metric.active{border-color:#4d8b68;background:#edf6ef}
.run-summary-note{font-size:14px;line-height:1.8;color:#65786b;margin:14px 0 20px}
.run-comparison{padding:14px 17px;background:#edf4e9;border:1px solid #dce7d5;border-radius:9px;margin-bottom:22px;font-size:14px;line-height:1.8}
.run-comparison summary,.run-log summary{cursor:pointer;font-weight:600}
.run-comparison p{margin:12px 0 0}
.run-filter-bar{display:flex;gap:8px;flex-wrap:wrap;margin:0 0 16px}
.run-filter-bar button{font-size:14px;padding:9px 13px}
.run-filter-bar button span{font-size:12px;background:#edf1e9;padding:2px 6px;border-radius:4px}
.run-filter-bar button.active{background:var(--green);border-color:var(--green);color:white}
.run-filter-bar button.active span{background:#ffffff24}
.run-results{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:20px;align-items:start}
.run-result-card{min-width:0;background:white;border:1px solid var(--line);border-radius:11px;overflow:hidden}
.run-preview{position:relative;aspect-ratio:1.8;background:#eef1eb;border-bottom:1px solid var(--line)}
.run-preview>a{display:block;width:100%;height:100%}
.run-preview img{display:block;width:100%;height:100%;object-fit:contain;object-position:center}
.run-membership{position:absolute;top:10px;left:10px;max-width:calc(100% - 20px);font-size:12px;font-weight:650;padding:7px 10px;border:1px solid #dce5d8;border-radius:6px;background:#fffef4f5;box-shadow:0 2px 7px #173a3010}
.run-membership.added{background:#e1f3e7;color:#205f3e;border-color:#b3d7bf}
.run-membership.removed{background:#f6e9e3;color:#8a4b3a}
.run-result-body{padding:18px 19px}
.run-result-body h3{font-size:16px;line-height:1.4;overflow-wrap:anywhere}
.run-result-body .domain{font-size:13px;margin:6px 0 15px;white-space:normal;overflow-wrap:anywhere}
.run-outcome{display:flex;align-items:center;justify-content:space-between;gap:12px;font-size:13px;color:var(--muted)}
.run-email{display:flex;align-items:center;gap:7px;font-size:14px;color:#35694d;margin-top:13px;overflow-wrap:anywhere}
.run-email a{min-width:0}
.run-existing-note{font-size:14px;line-height:1.7;margin-top:13px;color:#526657}
.run-changes{font-size:14px;line-height:1.8;padding:12px 13px 12px 27px;margin:13px 0;background:#f2f7ee;border-radius:7px;overflow-wrap:anywhere}
.run-changes li+li{margin-top:7px}
.before-value{color:#7d8a7d;text-decoration:line-through}
.run-reason{font-size:13px;line-height:1.8;margin:14px 0;color:#65776a}
.run-reason summary{cursor:pointer;font-weight:600}
.run-reason p{margin-top:7px;overflow-wrap:anywhere}
.run-result-actions{display:flex;gap:7px;flex-wrap:wrap;padding:13px 19px;border-top:1px solid var(--line)}
.run-result-actions .danger{margin-left:auto}
.run-empty{grid-column:1/-1;padding:50px 20px;text-align:center;color:var(--muted);background:white;border:1px dashed #ccd6c7;border-radius:10px}
.run-log{margin-top:28px;padding:20px;border:1px solid var(--line);border-radius:10px;background:white;font-size:14px;line-height:1.8}
.run-log h3{font-size:16px;margin:24px 0 15px}
.review-layout:has(.review-preview){display:grid;grid-template-columns:220px minmax(0,1fr);gap:24px;align-items:start}
.review-preview{display:block;border:1px solid var(--line);border-radius:8px;overflow:hidden;background:#f0f3ec}
.review-preview img{display:block;width:100%;height:155px;object-fit:contain}
.review-card .inline-actions{margin-top:16px}
.archive-title{font-size:18px;font-weight:600;margin-bottom:7px}
.archive-help{font-size:15px;line-height:1.8;margin:22px 0}
.card-badge.removed{background:#f6e9e3f5;color:#8a4b3a}
.status.added,.status.verified,.status.existing,.status.manual_available{background:#eaf3e8;color:#3a7152}
@media(min-width:1700px){.run-results{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media(max-width:1100px){.run-results{grid-template-columns:repeat(2,minmax(0,1fr))}.review-layout:has(.review-preview){grid-template-columns:170px minmax(0,1fr)}}
@media(max-width:700px){.run-modal .modal-head{padding:15px 18px}.run-modal .modal-content{padding:18px 16px 30px}.run-overview{flex-direction:column}.run-metrics{grid-template-columns:repeat(2,minmax(0,1fr));gap:9px}.run-metric{padding:15px}.run-metric strong{font-size:27px}.run-results{grid-template-columns:1fr}.review-layout:has(.review-preview){grid-template-columns:1fr}.review-preview img{height:200px}.card-actions{gap:3px}}

.estimate-explainer{padding:14px 16px;margin:14px 0 20px;background:#f2f6ef;border:1px solid #e0e9dc;border-radius:9px;font-size:13px;line-height:1.7}
.estimate-explainer a{color:#356e52}
.run-measurements{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:12px;margin:4px 0 12px}
.run-measurements>div{display:flex;flex-direction:column;gap:6px;padding:16px 20px;background:white;border:1px solid var(--line);border-radius:9px}
.run-measurements span,.run-measurements small{font-size:13px;color:var(--muted)}
.run-measurements strong{font-size:22px;font-weight:600;font-variant-numeric:tabular-nums}
@media(max-width:500px){.run-measurements{grid-template-columns:1fr}}

/* Only the isolated local launcher enables this environment marker. */
.development-notice{position:fixed;inset:0 0 auto;z-index:40;height:44px;display:flex;align-items:center;gap:24px;padding:0 22px;background:#fff1c7;color:#5b4207;border-bottom:1px solid #dcc481;font-size:14px}
.development-notice strong{white-space:nowrap}.development-notice a{margin-left:auto;font-weight:600;white-space:nowrap;text-underline-offset:3px}
.development-mode{padding-top:44px}.development-mode .sidebar{top:44px}.development-mode .shell,.development-mode .auth{min-height:calc(100vh - 44px)}
.development-badge{display:inline-block;vertical-align:middle;padding:4px 7px;margin-right:6px;border:1px solid #dcc481;border-radius:4px;background:#fff1c7;color:#5b4207;font:700 10px/1.3 "Segoe UI",Arial,sans-serif;letter-spacing:.4px}
@media(max-width:700px){.development-notice{gap:10px;padding:0 14px;font-size:13px}.development-notice>span{display:none}}

/* Country-aware tag navigation beside the catalog. */
.workspace-body.with-tags{display:grid;grid-template-columns:205px minmax(0,1fr);align-items:start;min-width:0}
.workspace-body.with-tags.tag-menu-collapsed{grid-template-columns:54px minmax(0,1fr)}
.workspace-body.with-tags>.content{width:100%;min-width:0}
.tag-sidebar{position:sticky;top:0;align-self:start;display:flex;flex-direction:column;max-height:100vh;min-width:0;padding:13px 10px 15px;background:#fbfcf9;border-right:1px solid var(--line)}
.tag-menu-toggle{width:100%;justify-content:flex-start;gap:9px;padding:10px 9px;border:0;background:transparent;color:var(--ink);font-size:15px}
.tag-menu-toggle span{flex:1;text-align:left}
.tag-menu-toggle svg:last-child{transition:transform .15s;transform:rotate(90deg);color:var(--muted)}
.tag-sidebar.collapsed .tag-menu-toggle{justify-content:center;padding:10px 0}
.tag-sidebar.collapsed .tag-menu-toggle span,.tag-sidebar.collapsed .tag-menu-toggle svg:last-child{display:none}
.tag-menu-content{min-height:0;display:flex;flex-direction:column}
.tag-menu-content[hidden]{display:none}
.tag-menu-context{padding:4px 9px 8px;color:var(--muted);font-size:12px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tag-menu-list{overflow-y:auto;overscroll-behavior:contain;scrollbar-width:thin}
.tag-menu-item{width:100%;min-width:0;display:flex;justify-content:space-between;gap:8px;border:0;border-radius:7px;background:transparent;padding:9px;color:#53665c;font-size:13px;font-weight:500;text-align:left}
.tag-menu-item span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.tag-menu-item strong{font-size:12px;font-weight:650;color:#748478;font-variant-numeric:tabular-nums}
.tag-menu-item.active{background:var(--green-light);color:var(--green);font-weight:650}
.tag-menu-item.active strong{color:var(--green)}
.tag-menu-all{margin-bottom:4px}
.tag-menu-message{padding:10px 9px;color:var(--muted);font-size:13px;line-height:1.5}
.active-tag-clear{color:var(--green);background:var(--green-light);border-color:#dceade}
@media(max-width:950px) and (min-width:701px){.workspace-body.with-tags{grid-template-columns:175px minmax(0,1fr)}.workspace-body.with-tags.tag-menu-collapsed{grid-template-columns:50px minmax(0,1fr)}.tag-menu-item{font-size:12px}}
@media(max-width:700px){.workspace-body.with-tags,.workspace-body.with-tags.tag-menu-collapsed{display:block}.tag-sidebar{position:static;max-height:none;padding:6px 18px;background:#f9faf6;border-right:0;border-bottom:1px solid var(--line)}.tag-sidebar.collapsed .tag-menu-toggle{justify-content:flex-start;padding:8px 0}.tag-sidebar.collapsed .tag-menu-toggle span,.tag-sidebar.collapsed .tag-menu-toggle svg:last-child{display:block}.tag-sidebar.collapsed .tag-menu-toggle svg:last-child{transform:none}.tag-menu-content{padding-bottom:8px}.tag-menu-list{max-height:220px}.tag-menu-item{font-size:14px}.tag-menu-toggle span{flex:initial}.tag-menu-toggle svg:last-child{margin-left:auto}}

/* Tag editing is scoped to the selected bookmark. */
.tag-edit-trigger{padding:3px 7px;border:1px dashed #a9c4b3;border-radius:5px;background:#f6faf7;color:#315f4a;font-size:12px;font-weight:600;gap:3px;min-height:22px}
.tag-edit-trigger:hover{background:#e6f2ea}
.tag-editor-intro{font-size:15px;font-weight:650;line-height:1.6;overflow-wrap:anywhere}
.tag-editor-intro span{font-size:13px;color:var(--muted);font-weight:400}
.tag-editor-section{margin-top:22px}
.tag-editor-section h3,.tag-editor-section label{font-size:14px;font-weight:650;margin-bottom:8px}
.tag-editor-section h3 span{font-size:12px;color:var(--muted);font-weight:500;margin-left:4px}
.tag-editor-section .field-help{margin:0 0 10px;font-size:13px;color:var(--muted);line-height:1.5}
.tag-editor-selected,.tag-editor-options{display:flex;flex-wrap:wrap;align-items:flex-start;gap:7px}
.tag-editor-selected{min-height:36px}
.tag-editor-selected-item{display:inline-flex;align-items:center;gap:4px;background:#edf5ef;border:1px solid #d9e9dd;border-radius:7px;padding:4px 4px 4px 10px;color:var(--green);font-size:14px;max-width:100%;overflow-wrap:anywhere}
.tag-editor-selected-item button,.tag-editor-rename button{padding:5px;border:0;background:transparent;color:#4f7660;flex-shrink:0}
.tag-editor-selected-item button:hover,.tag-editor-rename button:hover{background:#dcebe0}
.tag-editor-selected-item button:last-child{color:var(--red)}
.tag-editor-rename{display:inline-flex;align-items:center;gap:3px;width:min(100%,310px);background:#edf5ef;border:1px solid #d9e9dd;border-radius:7px;padding:3px}
.tag-editor-rename input{padding:6px 8px;min-width:0;font-size:14px}
.tag-editor-options{max-height:180px;overflow-y:auto;margin-top:9px;padding:10px;background:#f9faf7;border:1px solid var(--line);border-radius:9px;scrollbar-width:thin}
.tag-editor-option{padding:6px 9px;border-radius:6px;font-size:13px;font-weight:500;gap:4px}
.tag-editor-empty{font-size:13px;color:var(--muted);line-height:1.6}
.tag-editor-new{display:flex;gap:8px}
.tag-editor-new input{min-width:0;flex:1}
.tag-editor-new button{flex-shrink:0}
@media(max-width:500px){.tag-editor-section{margin-top:18px}.tag-editor-selected-item{font-size:13px}.tag-editor-new button{padding:9px 11px}}

.image-hover-preview{position:fixed;inset:0;z-index:60;display:flex;align-items:center;justify-content:center;padding:2vh 2vw;background:#10241ee8;pointer-events:none}
.image-hover-preview[hidden]{display:none}
.image-hover-preview img{width:100%;height:100%;object-fit:contain;object-position:center}

.status.limited,.status.completed_with_gaps{background:#faf0dc;color:#a17a32}
.run-filter-help{margin:0 0 16px;padding:12px 15px;background:#fff;border:1px solid var(--line);border-radius:9px;font-size:14px;line-height:1.7;color:#53685e}
.run-filter-help strong,.run-filter-help dt{color:var(--ink);font-weight:650}
.run-filter-help details{margin-top:8px}.run-filter-help summary{width:fit-content;cursor:pointer;color:var(--green);font-weight:600}
.run-filter-help details>p{margin-top:10px}.run-filter-help dl{display:grid;grid-template-columns:minmax(140px,190px) 1fr;gap:10px 18px;margin:14px 0 0}.run-filter-help dd{margin:0}
@media(max-width:600px){.run-filter-help dl{grid-template-columns:1fr;gap:3px}.run-filter-help dt:not(:first-child){margin-top:10px}}
.run-measurements{grid-template-columns:repeat(3,minmax(0,1fr))}
.run-usage-breakdown{padding:12px 14px;margin:12px 0;background:#f4f7f2;border-radius:8px}
.run-usage-breakdown p{margin-top:6px}
.lead-list{list-style:none;padding:0;display:grid;gap:8px}
.lead-list li{display:flex;justify-content:space-between;gap:12px;align-items:flex-start;padding:9px;border:1px solid var(--line);border-radius:7px}
.lead-list li span{overflow-wrap:anywhere;min-width:0}.lead-list small{display:block;color:var(--muted);margin-top:3px}
@media(max-width:700px){.run-measurements{grid-template-columns:repeat(2,minmax(0,1fr))}.lead-list li{flex-direction:column}}
@media(max-width:500px){.run-measurements{grid-template-columns:1fr}}

/* Readable typography and native links for the country workspace. */
body{font-size:16px;line-height:1.5}.sidebar{overflow-y:auto}.nav a{display:flex;align-items:center;gap:8px;padding:12px 13px;border-radius:9px;font-size:15px;font-weight:500;color:#617169;text-decoration:none}.nav a.active{background:var(--green-light);color:var(--green);font-weight:650}.nav a:hover,.side-countries a:hover{background:#f0f4ee}.nav a .count{margin-left:auto}.side-countries a{display:flex;align-items:center;justify-content:space-between;gap:8px;padding:10px 12px;border-radius:8px;text-decoration:none;font-size:14px}.side-countries a.active{background:#f3f5f0}.side-countries a span:first-child{display:flex;gap:8px;align-items:center}.side-countries a .muted{font-size:13px}
a.button{display:inline-flex;align-items:center;justify-content:center;gap:8px;border:1px solid var(--line);border-radius:9px;padding:10px 15px;background:white;text-decoration:none;font-size:15px;font-weight:600}a.button.small{padding:7px 11px;font-size:14px}a.button.ghost{background:transparent;border-color:transparent}a.button.icon{padding:8px}.country-card .buttons{flex-wrap:wrap}.country-card h3{font-size:16px}.country-card .country-top{align-items:flex-start}
.stat-action{border:0;border-radius:0;text-align:left;font-weight:400;justify-content:space-between}.stat-action:hover{background:#edf5ee}.stat-action small{display:block;margin-top:5px;color:var(--muted);font-size:12px}.stat p{line-height:1.5}.stats .stat{min-width:0}.card-description{height:3.4em}.card-badge{top:auto;bottom:10px}.card-actions .is-favorite{background:#fff1bd;color:#7a5909;border-color:#d9ba62}.is-favorite svg{fill:#e8c55a}.card-actions button{width:32px;height:32px}.card-actions{gap:4px}.card-title-row{align-items:flex-start}.card-footer{flex-wrap:wrap;line-height:1.5}.tag{font-size:12px}
.country-overview{margin:0 0 22px;border:1px solid var(--line);border-radius:10px;background:#fff;padding:18px 20px}.country-overview p{font-size:13px;color:var(--muted);margin:7px 0 14px}.country-overview .inline-actions{flex-wrap:wrap}.heading-actions,.toolbar{flex-wrap:wrap}.country-run-list{display:grid;gap:12px;margin:20px 0}
.work-modal .modal-content{max-width:1240px;margin:0 auto}.work-intro{margin-bottom:20px;font-size:16px}.work-filters{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:16px}.work-selection{display:flex;align-items:center;gap:12px;flex-wrap:wrap;padding:16px 0;border-top:1px solid var(--line);border-bottom:1px solid var(--line);margin-bottom:20px}.work-selection span{flex:1;min-width:220px;font-size:14px}.work-item{background:white;border:1px solid var(--line);border-radius:12px;padding:24px;margin-bottom:20px}.work-item-heading{display:flex;gap:20px;margin-bottom:16px}.work-item-heading>a{flex:0 0 180px}.work-item-heading img{width:180px;max-height:125px;object-fit:contain;object-position:top;border:1px solid var(--line);border-radius:6px}.work-item-heading>div{min-width:0;flex:1}.work-item h3{font-size:20px;margin:5px 0 7px}.work-url{overflow-wrap:anywhere;font-size:14px}.work-item .inline-actions{flex-wrap:wrap;margin:14px 0}.work-item .notice{margin:15px 0}.work-review{border-top:1px solid var(--line);padding-top:18px;margin-top:20px}.work-review .check-label{font-size:14px;margin-bottom:14px}.work-review .comparison{font-size:15px}.work-review blockquote{margin:12px 0;padding-left:14px;border-left:2px solid var(--line);font-size:14px;overflow-wrap:anywhere}.work-attempts{margin-top:18px;font-size:14px;overflow-wrap:anywhere}.work-attempts summary{cursor:pointer}.work-attempts p{margin:12px 0}.work-item .legend{flex-wrap:wrap}.work-item>.source-note{white-space:pre-wrap;overflow-wrap:anywhere}.modal-head h2{overflow-wrap:anywhere}.modal-head{gap:14px}.modal-head h2{flex:1}.run-filter-help{font-size:14px}.run-results .run-result-card{min-width:0}
@media(max-width:1100px){.topbar .today{display:none}.stats{grid-template-columns:repeat(2,minmax(0,1fr))}.page-heading{align-items:flex-start;flex-wrap:wrap}.country-grid{grid-template-columns:repeat(2,minmax(0,1fr))}}
@media(max-width:700px){.sidebar{width:250px}.topbar{padding:0 16px;gap:12px}.topbar .search-wrap{min-width:0;flex:1;width:auto}.content{padding:24px 18px}.country-grid{grid-template-columns:minmax(0,1fr)}.country-overview{padding:16px}.country-overview .inline-actions>button{flex:1 1 140px}.work-item{padding:18px}.work-item-heading{flex-direction:column;gap:12px}.work-item-heading>a{flex-basis:auto}.work-item-heading img{width:100%;max-height:200px}.work-item .comparison{grid-template-columns:1fr}.work-selection>button{flex:1}.modal-head [data-action=work-back]{font-size:12px;padding:7px}.form-grid{grid-template-columns:minmax(0,1fr)}.form-grid .wide{grid-column:auto}.stat{padding:16px}.stat p{font-size:14px}.run-filter-bar button{font-size:14px}.card-title-row{flex-wrap:wrap}.work-item .inline-actions>button{flex:1 1 145px}}

@media(max-width:700px){.toolbar select{flex:1 1 100%;width:100%;min-width:0}.work-selection>span{flex-basis:100%}.work-selection>button{flex:1 1 150px}}
