:root {
  color-scheme: light;
  --ink: #183238;
  --muted: #718184;
  --line: #e2eae7;
  --paper: #f7f8f4;
  --white: #fff;
  --teal: #14796e;
  --teal-dark: #0f5b54;
  --teal-pale: #e2f2ed;
  --gold: #c8873b;
  --gold-pale: #fff2df;
  --shadow: 0 14px 40px rgba(19, 43, 49, 0.07);
  font-family: "Segoe UI", Arial, sans-serif;
  background: var(--paper);
  color: var(--ink);
}

* { box-sizing: border-box; }
[hidden] { display: none !important; }
body { margin: 0; min-width: 320px; background: var(--paper); }
button, input, select, textarea { font: inherit; }
button, select, label.file-button { cursor: pointer; }
a { color: inherit; }
.page-shell { width: min(1180px, calc(100% - 48px)); margin: 0 auto; }
.topbar { height: 80px; display: flex; align-items: center; justify-content: space-between; border-bottom: 1px solid #e7ece8; }
.brand { display: flex; gap: 12px; align-items: center; text-decoration: none; }
.brand-mark { width: 40px; height: 40px; border-radius: 12px; background: var(--ink); color: #c5e7d9; display: grid; place-items: center; font: 800 14px Manrope, sans-serif; letter-spacing: -.05em; }
.brand strong, .brand small { display: block; }
.brand strong { font: 700 13px "Segoe UI", Arial, sans-serif; letter-spacing: -.01em; }
.brand small { margin-top: 3px; color: var(--muted); font-size: 11px; }
.topbar-note { color: #637476; font-size: 12px; display: flex; gap: 8px; align-items: center; }
.status-dot { width: 7px; height: 7px; border-radius: 50%; background: #55aa83; box-shadow: 0 0 0 4px #e4f2e9; }
.intro { padding: 72px 0 49px; max-width: 680px; }
.eyebrow { color: var(--teal); text-transform: uppercase; font-weight: 700; letter-spacing: .13em; font-size: 10px; margin: 0 0 13px; }
h1, h2, h3, p { margin-top: 0; }
h1 { font: 800 clamp(42px, 6vw, 65px)/1.04 "Segoe UI", Arial, sans-serif; letter-spacing: -.065em; margin: 0; color: var(--ink); }
h1 span { color: var(--teal); }
.intro-copy { color: #657578; max-width: 565px; font-size: 15px; line-height: 1.7; margin: 19px 0 21px; }
.coverage-tags { display: flex; flex-wrap: wrap; gap: 8px; }
.coverage-tags span { border: 1px solid #dae5df; border-radius: 999px; color: #4e6262; padding: 7px 11px; font-size: 11px; font-weight: 600; }
.coverage-tags .excluded { border-color: #f0d7d0; color: #a45b4c; background: #fff6f3; }
.workspace { background: var(--white); border: 1px solid #e3eae5; border-radius: 20px; padding: 27px 28px 0; box-shadow: var(--shadow); }
.workspace-head { display: flex; justify-content: space-between; align-items: flex-end; gap: 24px; }
.workspace-head .eyebrow { margin-bottom: 7px; }
.workspace-head h2, .coverage h2, .dialog-head h2 { font: 700 24px/1.2 "Segoe UI", Arial, sans-serif; letter-spacing: -.04em; margin: 0; }
.workspace-tabs { display: flex; gap: 4px; padding: 4px; border-radius: 11px; background: #f2f5f2; }
.tab { border: 0; background: transparent; padding: 9px 12px; color: #6c7a7c; border-radius: 8px; font-size: 11px; font-weight: 600; white-space: nowrap; }
.tab.is-active { background: #fff; color: var(--ink); box-shadow: 0 1px 5px #18323818; }
.tab-count { display: inline-grid; place-items: center; min-width: 19px; height: 19px; margin-left: 5px; border-radius: 7px; background: #eff3f0; color: #607173; font-size: 10px; }
.tab.is-active .tab-count { color: var(--teal); background: var(--teal-pale); }
.notice { display: flex; align-items: flex-start; gap: 10px; background: #f2f8f5; border: 1px solid #dfede5; border-radius: 11px; padding: 12px 14px; margin: 20px 0 18px; }
.notice p { color: #637573; font-size: 11px; line-height: 1.55; margin: 0; }
.notice strong { color: var(--ink); }
.notice-icon { width: 17px; height: 17px; display: grid; place-items: center; border-radius: 50%; flex: 0 0 17px; background: #d6ebe2; color: var(--teal); font: 700 10px Manrope, sans-serif; }
.private-tools { border: 1px solid #e6eadb; border-radius: 12px; background: #fcfbf6; padding: 14px; margin: 20px 0 18px; display: grid; grid-template-columns: 1fr auto; gap: 6px 18px; align-items: center; }
.private-tools strong { font: 700 12px Manrope, sans-serif; }
.private-tools p { margin: 4px 0 0; font-size: 11px; color: #687778; line-height: 1.45; }
.private-tools code { font-size: 10px; background: #efeee7; border-radius: 4px; padding: 2px 4px; }
.tool-buttons { display: flex; gap: 7px; align-items: center; }
.import-status { grid-column: 1 / -1; min-height: 0; margin: 0 !important; }
.import-status:not(:empty) { padding-top: 7px; }
.import-status.has-error { color: #a34e43; }
.filters { display: grid; grid-template-columns: 1fr 180px 220px; gap: 9px; }
.search-box { height: 43px; border: 1px solid #dfe7e3; border-radius: 9px; padding: 0 10px 0 13px; display: flex; align-items: center; gap: 9px; }
.search-box:focus-within { border-color: #8db8a8; box-shadow: 0 0 0 3px #e4f2ed; }
.search-icon { color: #879694; font-size: 23px; line-height: 1; transform: rotate(-15deg); }
.search-box input { border: 0; outline: 0; flex: 1; min-width: 0; color: var(--ink); font-size: 11px; background: transparent; }
.search-box input::placeholder { color: #98a4a3; }
kbd { color: #93a09e; font: 10px "Segoe UI", Arial, sans-serif; border: 1px solid #e2e8e4; padding: 3px 5px; border-radius: 4px; }
.select-wrap select { appearance: none; width: 100%; height: 43px; border: 1px solid #dfe7e3; border-radius: 9px; color: #546667; background: #fff; padding: 0 31px 0 12px; outline: 0; font-size: 11px; background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 24 24' fill='none' stroke='%23788684' stroke-width='2'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E"); background-repeat: no-repeat; background-position: right 11px center; }
.select-wrap select:focus { border-color: #8db8a8; box-shadow: 0 0 0 3px #e4f2ed; }
.results-bar { padding: 17px 1px 12px; display: flex; justify-content: space-between; align-items: center; gap: 12px; }
.results-bar p { margin: 0; color: #596b6d; font-size: 11px; font-weight: 600; }
.quality-key { display: flex; align-items: center; gap: 6px; color: #879391; font-size: 9px; }
.quality-dot { display: inline-block; width: 6px; height: 6px; border-radius: 50%; }
.quality-verified { background: #419477; }
.quality-review { background: #d5954b; margin-left: 5px; }
.contact-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 11px; }
.contact-card { border: 1px solid #e5ebe7; border-radius: 12px; padding: 15px; min-width: 0; transition: border-color .16s, box-shadow .16s; }
.contact-card:hover { border-color: #bfd9cd; box-shadow: 0 5px 20px #1832380b; }
.card-top { display: flex; justify-content: space-between; gap: 12px; }
.card-title { min-width: 0; }
.card-title h3 { font: 700 14px/1.3 "Segoe UI", Arial, sans-serif; letter-spacing: -.02em; margin: 0 0 4px; overflow-wrap: anywhere; }
.card-subtitle { color: #738180; font-size: 10px; margin: 0; }
.quality-badge { align-self: flex-start; flex: 0 0 auto; color: #26775f; background: #e8f5ee; border-radius: 6px; padding: 5px 7px; font-size: 9px; font-weight: 700; }
.quality-badge.review { color: #996322; background: #fff2df; }
.card-location { border-top: 1px solid #edf1ee; margin-top: 13px; padding-top: 11px; color: #667778; font-size: 10px; }
.card-location::before { content: "⌖"; color: #348d78; margin-right: 6px; }
.contact-links { display: flex; flex-wrap: wrap; gap: 7px; margin-top: 12px; }
.contact-link, .website-link { display: inline-flex; align-items: center; gap: 5px; color: #176e63; background: #f0f7f3; border: 1px solid #e0eee7; border-radius: 7px; padding: 7px 9px; text-decoration: none; font-size: 10px; font-weight: 600; overflow-wrap: anywhere; }
.contact-link:hover, .website-link:hover { background: #e3f1e9; }
.source-line { display: flex; justify-content: space-between; gap: 8px; color: #99a3a0; font-size: 9px; line-height: 1.4; margin-top: 12px; }
.source-line a { color: #578579; }
.tracking { border-top: 1px solid #edf1ee; margin-top: 13px; padding-top: 11px; display: grid; grid-template-columns: 1fr 1fr; gap: 9px; }
.track-field { display: grid; gap: 4px; color: #82908e; font-size: 9px; }
.track-field select, .track-field input, .track-notes { width: 100%; min-width: 0; min-height: 32px; border: 1px solid #e1e8e3; border-radius: 6px; background: #fff; color: #536365; padding: 6px 7px; outline: 0; font-size: 10px; }
.track-field select:focus, .track-field input:focus, .track-notes:focus { border-color: #8db8a8; }
.track-notes { grid-column: 1 / -1; min-height: 31px; resize: vertical; }
.empty-state { text-align: center; padding: 54px 18px 62px; border: 1px dashed #dce7e1; border-radius: 12px; }
.empty-icon { display: block; color: #8ab7a8; font-size: 34px; margin-bottom: 6px; }
.empty-state h3 { font: 700 15px "Segoe UI", Arial, sans-serif; margin-bottom: 7px; }
.empty-state p { color: #7d8a88; font-size: 11px; line-height: 1.5; max-width: 410px; margin: 0 auto; }
.workspace-footer { display: flex; justify-content: space-between; gap: 12px; color: #899593; font-size: 9px; border-top: 1px solid #edf1ee; padding: 15px 0; margin-top: 17px; }
.coverage { display: grid; grid-template-columns: 1fr 1.1fr; gap: 35px; align-items: center; padding: 67px 0 52px; }
.coverage .eyebrow { margin-bottom: 11px; }
.coverage h2 { font-size: 25px; line-height: 1.25; }
.coverage-stats { display: flex; gap: 22px; flex-wrap: wrap; }
.coverage-stats div { display: flex; align-items: center; gap: 9px; }
.coverage-stats strong { color: var(--teal); font: 800 27px "Segoe UI", Arial, sans-serif; letter-spacing: -.05em; }
.coverage-stats span { color: #74817f; font-size: 10px; line-height: 1.4; }
.coverage-footnote { grid-column: 1 / -1; color: #7e8b88; font-size: 10px; line-height: 1.65; border-top: 1px solid #e4eae5; padding-top: 13px; margin: -13px 0 0; }
.site-footer { display: flex; justify-content: space-between; gap: 10px; color: #98a29f; border-top: 1px solid #e3eae5; padding: 18px 0 25px; font-size: 10px; }
.button { display: inline-flex; align-items: center; justify-content: center; min-height: 34px; border-radius: 7px; border: 1px solid transparent; padding: 0 11px; font-size: 10px; font-weight: 700; white-space: nowrap; }
.button-secondary { background: #fff; border-color: #dfe7e2; color: #536667; }
.button-secondary:hover { background: #f6f8f5; }
.button-primary { background: var(--teal); color: #fff; }
.button-primary:hover { background: var(--teal-dark); }
.contact-dialog { width: min(600px, calc(100% - 30px)); padding: 0; border: 0; border-radius: 16px; box-shadow: 0 24px 80px #18323833; color: var(--ink); }
.contact-dialog::backdrop { background: #0f2529a6; backdrop-filter: blur(3px); }
.contact-dialog form { padding: 23px; }
.dialog-head { display: flex; justify-content: space-between; align-items: flex-start; margin-bottom: 19px; }
.dialog-head .eyebrow { margin-bottom: 6px; }
.dialog-head h2 { font-size: 21px; }
.close-button { border: 0; border-radius: 8px; background: #f2f5f2; color: #647371; width: 31px; height: 31px; font-size: 21px; line-height: 1; }
.form-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 12px; }
.form-field { display: grid; gap: 5px; color: #637472; font-size: 10px; font-weight: 600; }
.full-width { grid-column: 1 / -1; }
.form-field input, .form-field select, .form-field textarea { width: 100%; border: 1px solid #dfe7e3; border-radius: 7px; outline: 0; padding: 9px; color: #405456; font-size: 11px; background: #fff; }
.form-field input:focus, .form-field select:focus, .form-field textarea:focus { border-color: #8db8a8; box-shadow: 0 0 0 3px #e4f2ed; }
.form-field textarea { resize: vertical; }
.form-hint { color: #82908e; font-size: 10px; line-height: 1.5; margin: 13px 0; }
.dialog-actions { display: flex; justify-content: flex-end; gap: 8px; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }

@media (max-width: 820px) {
  .page-shell { width: min(100% - 32px, 660px); }
  .intro { padding: 56px 0 38px; }
  .workspace { padding: 22px 18px 0; }
  .workspace-head { display: block; }
  .workspace-tabs { margin-top: 17px; width: fit-content; }
  .filters { grid-template-columns: 1fr 1fr; }
  .search-box { grid-column: 1 / -1; }
  .private-tools { grid-template-columns: 1fr; }
  .tool-buttons { flex-wrap: wrap; }
  .coverage { grid-template-columns: 1fr; gap: 20px; padding: 50px 0 40px; }
  .coverage-footnote { grid-column: auto; margin-top: 0; }
}
@media (max-width: 560px) {
  .page-shell { width: calc(100% - 24px); }
  .topbar { height: 67px; }
  .topbar-note { font-size: 10px; }
  .intro { padding: 43px 0 31px; }
  .intro-copy { font-size: 13px; }
  .workspace { padding: 18px 12px 0; border-radius: 15px; }
  .workspace-head h2 { font-size: 21px; }
  .workspace-tabs { width: 100%; }
  .tab { padding: 9px 6px; flex: 1; font-size: 10px; }
  .filters { grid-template-columns: 1fr; }
  .search-box { grid-column: auto; }
  .contact-grid { grid-template-columns: 1fr; }
  .quality-key { font-size: 8px; }
  .workspace-footer { display: grid; }
  .coverage-stats { justify-content: space-between; gap: 11px; }
  .coverage-stats div { gap: 5px; }
  .coverage-stats strong { font-size: 23px; }
  .coverage-stats span { font-size: 9px; }
  .site-footer { display: grid; }
  .form-grid { grid-template-columns: 1fr; }
  .form-field.full-width { grid-column: auto; }
  .contact-dialog form { padding: 18px; }
  .tracking { grid-template-columns: 1fr 1fr; }
}
