:root {
  color-scheme: light;
  --canvas: #f4f6f9;
  --panel: #fff;
  --ink: #19253b;
  --muted: #546378;
  --quiet: #65738a;
  --line: #dfe5ee;
  --navy: #152138;
  --blue: #234db3;
  --blue-soft: #eef3ff;
  --teal: #0c6c61;
  --rail: 210px;
  font-family: Inter, "PingFang SC", "Microsoft YaHei", -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
  font-size: 16px;
  line-height: 1.5;
}
* { box-sizing: border-box; }
body { margin: 0; color: var(--ink); background: var(--canvas); }
button, input, select { font: inherit; }
button { cursor: pointer; }
button:disabled { cursor: default; }
a { color: var(--blue); }
:focus-visible { outline: 3px solid #6386eb; outline-offset: 3px; }
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip-path: inset(50%); white-space: nowrap; }
.rail { position: fixed; inset: 0 auto 0 0; width: var(--rail); background: var(--navy); color: #fff; display: flex; flex-direction: column; padding: 27px 17px 23px; }
.wordmark { display: flex; align-items: center; gap: 11px; padding: 0 8px; color: #fff; font-size: 1.1rem; font-weight: 750; text-decoration: none; letter-spacing: -.02em; }
.wordmark small { display: block; color: #aebbd0; font-size: .8125rem; font-weight: 500; letter-spacing: .06em; }
.mark { width: 39px; height: 39px; display: grid; place-items: center; border-radius: 11px; background: #d7edff; color: #152956; font-size: 1.35rem; }
.rail nav { display: grid; gap: 8px; margin-top: 44px; }
.rail-link { display: flex; gap: 10px; align-items: center; min-height: 43px; width: 100%; padding: 8px 10px; text-align: left; border: 1px solid transparent; border-radius: 8px; background: transparent; color: #b9c6d9; text-decoration: none; white-space: nowrap; font-size: .875rem; }
.rail-link.active { background: #253753; border-color: #354d72; color: #f4f8ff; }
.rail-link:hover { background: #263650; color: #fff; }
.grid-icon { width: 14px; height: 14px; background: linear-gradient(currentColor,currentColor) 0 0/5px 5px, linear-gradient(currentColor,currentColor) 100% 0/5px 5px, linear-gradient(currentColor,currentColor) 0 100%/5px 5px, linear-gradient(currentColor,currentColor) 100% 100%/5px 5px; background-repeat: no-repeat; }
.book-icon { width: 14px; height: 14px; border: 1px solid currentColor; border-radius: 2px; box-shadow: inset 3px 0 currentColor; }
.rail-foot { margin: auto 7px 0; padding-top: 18px; border-top: 1px solid #35415a; display: flex; align-items: center; gap: 8px; color: #bdc9da; font-size: .8125rem; }
.rail-foot time { display: block; color: #ecf2fb; font-variant-numeric: tabular-nums; }
.indicator { width: 7px; height: 7px; border-radius: 50%; background: #7bd2b6; }
.workspace { max-width: 1850px; margin-left: var(--rail); padding: 34px 33px 32px; }
.page-header { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
h1 { margin: 0; font-size: clamp(1.65rem, 3vw, 2.2rem); line-height: 1.27; letter-spacing: -.04em; font-weight: 770; }
.page-header p { margin: 8px 0 0; color: var(--muted); }
.header-method { display: none !important; }
.metrics { display: grid; grid-template-columns: repeat(5,minmax(0,1fr)); gap: 12px; margin: 25px 0 24px; }
.metric { padding: 14px 16px 15px; border: 1px solid var(--line); background: var(--panel); border-radius: 11px; min-width: 0; }
.metric:first-child { background: #e9f0ff; border-color: #d7e3ff; }
.metric span { color: #40516d; font-size: .875rem; display: block; font-weight: 650; }
.metric strong { display: block; font-size: clamp(1.52rem,2.7vw,2rem); letter-spacing: -.035em; font-variant-numeric: tabular-nums; line-height: 1.18; margin: 8px 0 4px; }
.metric:first-child strong { color: var(--blue); }
.metric small { font-size: .8125rem; color: var(--muted); }
.inventory { background: var(--panel); border: 1px solid var(--line); border-radius: 13px; box-shadow: 0 2px 7px #1d35600a; }
#filters { padding: 17px 19px 19px; border-bottom: 1px solid var(--line); }
.search-line { display: flex; gap: 10px; align-items: stretch; }
.search-wrap { position: relative; flex: 1; min-width: 0; }
.search-icon { position: absolute; inset: 13px auto auto 14px; width: 13px; height: 13px; border: 2px solid #5a6e8e; border-radius: 100%; pointer-events: none; }
.search-icon::after { content: ""; width: 6px; height: 2px; background: #5a6e8e; position: absolute; top: 9px; left: 9px; transform: rotate(45deg); }
#search { width: 100%; min-height: 42px; padding: 8px 12px 8px 37px; border: 1px solid #cbd5e4; border-radius: 8px; background: #f8faff; color: var(--ink); }
#search::placeholder { color: var(--quiet); }
.button { border: 1px solid #d2dbe8; border-radius: 8px; min-height: 38px; padding: 6px 12px; display: inline-flex; gap: 8px; justify-content: center; align-items: center; font-size: .875rem; font-weight: 650; white-space: nowrap; background: #fff; color: var(--ink); }
.coverage-toggle, .facets-toggle, .export-compact { display: none; }
.button:hover:not(:disabled) { background: #eef3ff; border-color: #afc2e8; }
.button:disabled { color: #8490a2; opacity: .7; }
.export { background: #234db3; color: #fff; border-color: #234db3; }
.export:hover:not(:disabled) { color: #fff; background: #193f99; border-color: #193f99; }
.download-icon { width: 13px; height: 11px; border: 1px solid currentColor; border-top: 0; border-radius: 2px; position: relative; }
.download-icon::before { content: ""; position: absolute; width: 1px; height: 10px; background: currentColor; left: 5px; top: -3px; }
.download-icon::after { content: ""; position: absolute; left: 3px; top: 3px; width: 4px; height: 4px; border: solid currentColor; border-width: 0 1px 1px 0; transform: rotate(45deg); }
.facets { display: grid; grid-template-columns: repeat(5,minmax(105px,1fr)) auto; gap: 10px; margin-top: 15px; align-items: end; }
.extra-facets { display: contents; }
.facets label, .sort { color: var(--muted); font-size: .875rem; font-weight: 620; }
.facets label { display: grid; gap: 5px; }
select { appearance: none; width: 100%; min-height: 38px; padding: 5px 25px 5px 10px; border: 1px solid #d2dbe8; border-radius: 7px; background-color: #fff; background-image: linear-gradient(45deg,transparent 50%,#667891 50%), linear-gradient(135deg,#667891 50%,transparent 50%); background-position: calc(100% - 14px) 52%, calc(100% - 10px) 52%; background-size: 4px 4px; background-repeat: no-repeat; color: var(--ink); font-size: .875rem; font-weight: 500; text-overflow: ellipsis; cursor: pointer; }
.text-button { border: 0; background: none; color: var(--blue); font-weight: 650; padding: 8px 4px; font-size: .875rem; white-space: nowrap; }
.text-button:hover { text-decoration: underline; }
.inventory-head { display: flex; align-items: center; justify-content: space-between; gap: 10px; padding: 15px 19px 6px; }
.result-title { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
h2 { margin: 0; font-size: 1.15rem; letter-spacing: -.02em; }
.count { color: #344d7b; background: var(--blue-soft); border-radius: 20px; padding: 3px 8px; font-size: .8125rem; font-weight: 650; white-space: nowrap; font-variant-numeric: tabular-nums; }
.sort { display: flex; gap: 8px; align-items: center; white-space: nowrap; }
.sort select { min-height: 32px; }
.inventory-actions { display: flex; align-items: center; gap: 12px; }
.views { display: flex; padding: 0 19px; gap: 20px; overflow-x: auto; }
.view { padding: 10px 0 8px; border: 0; border-bottom: 2px solid transparent; background: none; color: var(--muted); font-size: .875rem; white-space: nowrap; }
.view[aria-pressed="true"] { color: var(--blue); border-bottom-color: var(--blue); font-weight: 700; }
.table-scroll { overflow: auto; }
table { border-collapse: collapse; width: 100%; table-layout: fixed; min-width: 860px; }
th { text-align: left; background: #f0f4fa; color: #415675; font-size: .875rem; font-weight: 650; padding: 10px 12px; white-space: nowrap; }
th:first-child { width: 23%; padding-left: 19px; }
th:nth-child(2) { width: 15%; }
th:nth-child(3) { width: 14%; }
th:nth-child(4) { width: 17%; }
th:nth-child(5) { width: 16%; }
th:last-child { width: 15%; padding-left: 20px; }
td { padding: 13px 12px; border-top: 1px solid #ebeff5; vertical-align: middle; font-size: .875rem; overflow-wrap: anywhere; }
td:first-child { padding-left: 19px; }
td:where(:last-child) { padding-left: 20px; }
tr:hover td, tr:focus-within td { background: #f7faff; }
tbody tr { cursor: pointer; }
.row-open { background: none; padding: 0; border: 0; font-size: 1rem; line-height: 1.375; font-weight: 720; color: var(--ink); text-align: left; overflow-wrap: anywhere; }
.row-open:hover { color: var(--blue); text-decoration: underline; }
.sub { display: block; color: var(--quiet); font-size: .8125rem; margin-top: 2px; }
td:first-child > .sub { margin-top: 4px; }
.value { font-weight: 650; }
.estimate { font-variant-numeric: tabular-nums; }
.unknown { color: var(--quiet); }
.pill { display: inline-block; margin: 1px 3px 1px 0; padding: 2px 7px; border: 1px solid transparent; border-radius: 5px; background: #eff2f6; color: #485875; font-size: .8125rem; line-height: 1.45; }
.pill.local { background: #e9f7f1; color: #126a4d; }
.pill.offshore { background: #edeeff; color: #4947a0; }
.pill.land-based { background: #fff3de; color: #785016; }
.pill.supply { background: #e9f5f6; color: #215b68; }
.pill.contact { background: #e8f3ff; color: #275192; }
.table-footer { padding: 11px 19px; display: flex; align-items: center; justify-content: space-between; gap: 10px; border-top: 1px solid var(--line); color: var(--muted); font-size: .875rem; }
.pagination { display: flex; align-items: center; gap: 9px; }
.pagination span { white-space: nowrap; font-variant-numeric: tabular-nums; }
.pagination .button { min-height: 32px; }
.empty { padding: 42px 20px; text-align: center; color: var(--muted); }
.empty p { margin: 7px 0 0; }
dialog { color: var(--ink); border: 1px solid var(--line); padding: 0; background: #fff; box-shadow: 0 12px 50px #09182830; }
dialog::backdrop { background: #0d1a35a0; }
.drawer { margin: 0 0 0 auto; height: 100%; max-height: 100%; width: min(590px,100%); max-width: 100%; }
.method { width: min(690px,calc(100% - 24px)); max-height: 90dvh; border-radius: 14px; }
.drawer-head { position: sticky; top: 0; display: flex; justify-content: space-between; align-items: start; gap: 14px; background: #fff; border-bottom: 1px solid var(--line); padding: 20px 23px; z-index: 1; }
.drawer-head h2 { font-size: 1.4rem; overflow-wrap: anywhere; }
.drawer-head p { display: flex; gap: 10px; flex-wrap: wrap; margin: 3px 0 0; color: var(--muted); font-size: .875rem; overflow-wrap: anywhere; }
.icon-button { display: grid; place-items: center; flex: none; width: 34px; height: 34px; padding: 0; font-size: 1.35rem; border: 1px solid var(--line); border-radius: 8px; color: var(--ink); background: #f8faff; }
.icon-button:hover { background: #e9effa; }
.drawer-body { padding: 3px 23px 22px; }
.drawer-body section { margin: 17px 0; }
.drawer-body h3 { font-size: 1rem; margin: 0 0 8px; }
.traffic-summary { border: 1px solid var(--line); background: #f5f8ff; border-radius: 10px; padding: 13px 15px; }
.traffic-values { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 12px; margin: 8px 0; }
.traffic-values span { display: block; color: var(--muted); font-size: .8125rem; }
.traffic-values strong { display: block; font-size: clamp(1.05rem, 4vw, 1.4rem); font-variant-numeric: tabular-nums; }
.detail-disclosure { border-bottom: 1px solid var(--line); }
.detail-disclosure > summary { cursor: pointer; padding: 10px 2px; color: var(--ink); font-size: .9rem; font-weight: 620; }
.detail-disclosure > section { margin-top: 5px; }
.drawer-body ul { padding-left: 19px; margin: 2px 0 0; }
.drawer-body .detail-list { display: grid; list-style: none; padding: 0; gap: 7px; }
.detail-list li { padding: 8px 10px; background: #f6f8fc; border-radius: 7px; overflow-wrap: anywhere; }
.detail-list strong { font-size: .9375rem; }
.detail-list .sub, .drawer-body p { margin: 3px 0 0; }
.related-domains { display: flex; flex-wrap: wrap; gap: 6px; }
.domain-button { min-height: 31px; max-width: 100%; overflow-wrap: anywhere; white-space: normal; }
.domain-button[aria-pressed="true"] { color: var(--blue); border-color: #a8bfea; background: var(--blue-soft); }
.group-sources { margin-top: 7px; color: var(--muted); }
.group-sources summary { cursor: pointer; font-size: .875rem; }
.evidence { display: flex; gap: 6px; align-items: baseline; flex-wrap: wrap; color: var(--muted); font-size: .8125rem; margin-top: 3px; }
.methods-list { margin: 14px 0 20px; }
.methods-list dt { margin-top: 9px; font-weight: 720; }
.methods-list dd { margin: 2px 0 0; color: var(--muted); }
@media (max-width: 1200px) {
  :root { --rail: 172px; }
  .workspace { padding: 27px 20px; }
  .metric { padding: 12px; }
  .metric small { display: block; }
}
@media (max-width: 1020px) {
  .rail { position: static; width: auto; min-height: 59px; flex-direction: row; align-items: center; padding: 9px 17px; }
  .rail nav { margin: 0 0 0 25px; display: flex; }
  .rail-foot { margin: 0 0 0 auto; padding: 0; border: 0; }
  .workspace { margin-left: 0; }
}
@media (max-width: 690px) {
  .rail nav { display: none; }
  .workspace { padding: 18px 12px; }
  .header-method { display: inline-flex !important; }
  .page-header { align-items: start; }
  .page-header p { font-size: .875rem; }
  .coverage-toggle {
    display: flex;
    align-items: center;
    justify-content: space-between;
    gap: 8px;
    width: 100%;
    min-height: 44px;
    margin: 13px 0 10px;
    padding: 7px 11px;
    border: 1px solid var(--line);
    border-radius: 8px;
    background: var(--blue-soft);
    color: var(--ink);
    font-size: .875rem;
    text-align: left;
  }
  .coverage-toggle strong { color: var(--blue); font-variant-numeric: tabular-nums; }
  .coverage-label { color: var(--blue); white-space: nowrap; font-weight: 650; }
  .coverage-label::after { content: "+"; display: inline-block; margin-left: 6px; }
  .coverage-toggle[aria-expanded="true"] .coverage-label::after { content: "−"; }
  .coverage-toggle[aria-expanded="false"] + .metrics { display: none; }
  .metrics { grid-template-columns: repeat(2,minmax(0,1fr)); margin: 0 0 10px; gap: 7px; }
  .metric { padding: 9px 10px; }
  .metric:first-child { grid-column: 1 / -1; }
  .metric strong { margin: 4px 0 2px; }
  #filters { padding: 12px; }
  .search-line { gap: 8px; }
  #search { min-height: 44px; }
  .export { gap: 6px; min-height: 44px; padding: 6px 9px; background: #fff; color: var(--blue); border-color: #d2dbe8; }
  .export:hover:not(:disabled) { color: var(--blue); background: var(--blue-soft); border-color: #afc2e8; }
  .export-label { display: none; }
  .export-compact { display: inline; }
  .facets { grid-template-columns: minmax(0,1fr) auto; gap: 8px; margin-top: 9px; }
  .facets label { min-width: 0; }
  .facets select, .facets-toggle { min-height: 44px; }
  .facets-toggle { display: inline-flex; color: var(--blue); }
  .facets-toggle[aria-expanded="true"] { background: var(--blue-soft); border-color: #afc2e8; }
  #active-facets { min-width: 1.25rem; padding: 0 4px; border-radius: 10px; background: var(--blue-soft); font-variant-numeric: tabular-nums; }
  .extra-facets { grid-column: 1 / -1; display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 8px; }
  .facets-toggle[aria-expanded="false"] + .extra-facets { display: none; }
  .extra-facets .reset { grid-column: 2; justify-self: end; }
  .inventory-head, .table-footer { padding-left: 12px; padding-right: 12px; }
  .inventory-head { flex-wrap: wrap; }
  .views { flex-wrap: wrap; overflow: visible; padding: 0 12px; gap: 0 14px; }
  .view { min-height: 36px; padding: 7px 0 5px; }
  .drawer-body, .drawer-head { padding-left: 15px; padding-right: 15px; }
  table { display: block; min-width: 0; }
  thead { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  tbody { display: block; }
  tbody tr { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); padding: 8px 12px; border-top: 1px solid var(--line); }
  td, td:first-child { display: block; border: 0; padding: 5px 6px; }
  td::before { display: block; content: attr(data-label); color: var(--muted); font-size: .8125rem; }
  td:first-child { grid-column: 1 / -1; }
  td:first-child::before { display: none; }
}
