:root {
  --ink: #1d1d1f; --ink-2: #30322e; --muted: #636660; --muted-2: #636660;
  --paper: #f7f7f2; --white: #fff; --soft: #eeeee9; --line: #ddded7;
  --green: #087c5c; --mint: #dcece2; --blue: #e0e9f4; --violet: #e8e2f0;
  --apricot: #f4e6d9; --coral: #f4e1dd; --cyan: #dceeed; --amber: #efe9d5;
  --indigo: #e1e3f1; --orange: #f2e3d5; --gray: #e6e7e3;
  --pad: max(24px, calc((100vw - 1160px) / 2)); --ease: cubic-bezier(.22,1,.36,1);
}
* { box-sizing: border-box; }
html { scroll-behavior: smooth; scroll-padding-top: 88px; }
body { margin: 0; color: var(--ink); background: var(--paper); font-family: -apple-system, BlinkMacSystemFont, "DM Sans", "Noto Sans SC", system-ui, sans-serif; -webkit-font-smoothing: antialiased; }
body:has(dialog[open]) { overflow: hidden; }
::selection { color: white; background: var(--green); }
a { color: inherit; text-decoration: none; }
button, input, select { color: inherit; font: inherit; }
button, select { cursor: pointer; }
button { border: 0; }
[hidden] { display: none !important; }
:focus-visible { outline: 3px solid #4169db; outline-offset: 3px; }
.skip-link { position: fixed; top: -70px; left: 16px; z-index: 1000; padding: 12px 16px; color: white; background: var(--ink); border-radius: 10px; }
.skip-link:focus { top: 12px; }
.site-header { position: sticky; top: 0; z-index: 30; display: flex; align-items: center; justify-content: space-between; gap: 24px; min-height: 68px; padding: 0 var(--pad); background: rgba(247,247,242,.94); border-bottom: 1px solid var(--line); backdrop-filter: blur(18px); }
.brand { display: inline-flex; align-items: center; gap: 10px; font-size: 15px; }
.brand-word { display: inline-flex; align-items: center; font-size: 23px; line-height: 1; white-space: nowrap; }
.brand-core, .brand-tail { font-weight: 600; }
.brand-core { letter-spacing: -.065em; }
.brand-tail { display: inline-flex; align-items: center; margin-left: .04em; letter-spacing: -.045em; }
.brand-dot { display: inline-block; width: .44em; height: .44em; margin: 0 .08em; background: var(--green); border-radius: 50%; transform: translateY(.035em); }
.brand em { display: inline-flex; align-items: center; gap: 10px; color: var(--muted); font-style: normal; white-space: nowrap; }
.brand em::before { content: ""; width: 1px; height: 14px; background: var(--line); }
.site-header nav { display: flex; align-items: center; gap: 24px; font-size: 14px; }
.site-header nav a, .site-header nav button { display: inline-flex; align-items: center; min-height: 44px; padding: 0; background: none; }
.site-header nav a:hover, .site-header nav button:hover, .footer-meta a:hover { color: var(--green); text-decoration: underline; text-underline-offset: 5px; }
.data-status { display: flex; align-items: center; gap: 7px; color: var(--muted); font-size: 12px; white-space: nowrap; }
.data-status i { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.hero { padding: 40px var(--pad) 26px; }
.eyebrow { margin: 0 0 12px; color: var(--muted); font-size: 12px; font-weight: 500; letter-spacing: .03em; }
.hero-heading { display: flex; align-items: center; justify-content: space-between; gap: 32px; }
h1 { margin: 0; font-size: clamp(32px,3.5vw,44px); font-weight: 500; line-height: 1.25; letter-spacing: -.04em; text-wrap: balance; }
.intro { margin: 14px 0 0; color: var(--muted); font-size: 15px; line-height: 1.7; }
.primary-button, .secondary-button { display: inline-flex; align-items: center; justify-content: center; gap: 10px; min-height: 44px; padding: 0 18px; border-radius: 999px; font-size: 14px; font-weight: 500; white-space: nowrap; }
.primary-button { color: white; background: var(--ink); }
.primary-button:hover { background: #393b37; }
.primary-button:disabled { opacity: .45; cursor: not-allowed; }
.secondary-button { background: white; border: 1px solid #cbcec5; }
.secondary-button:hover { background: var(--soft); }
.overview { display: flex; flex-wrap: wrap; gap: 10px 22px; margin-top: 22px; color: var(--muted); font-size: 12px; line-height: 1.5; }
.overview > span { display: inline-flex; gap: 5px; }
.overview strong { color: #4c5049; font-weight: 500; font-variant-numeric: tabular-nums; }
.update-note { margin: 10px 0 0; color: var(--muted); font-size: 12px; line-height: 1.7; overflow-wrap: anywhere; }
.ranking-section { padding: 24px var(--pad) 40px; border-top: 1px solid var(--line); }
.section-heading { display: flex; align-items: center; justify-content: space-between; gap: 20px; }
.section-heading h2 { flex: 1; margin: 0; font-size: 23px; font-weight: 500; letter-spacing: -.025em; }
.kind-tabs { display: flex; gap: 3px; padding: 4px; background: #e9eae4; border-radius: 999px; }
.kind-tabs button { min-height: 40px; min-width: 100px; padding: 0 16px; color: var(--muted); background: transparent; border-radius: 999px; font-size: 14px; }
.kind-tabs button.active { color: var(--ink); background: white; box-shadow: 0 1px 4px #0000000d; font-weight: 600; }
.kind-tabs button:hover:not(.active) { background: #dddfd7; }
.kind-tabs span { margin-left: 7px; color: var(--muted); font-size: 12px; }
.ranking-intro { display: flex; align-items: center; justify-content: space-between; gap: 24px; margin: 14px 0; }
.ranking-intro > p { max-width: 740px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.weight-button { display: inline-flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; color: var(--ink); background: white; border: 1px solid #cbcec5; border-radius: 10px; font-size: 13px; white-space: nowrap; }
.weight-button:hover { border-color: var(--green); }
.sliders-icon { font-size: 19px; transform: rotate(90deg); }
.custom-indicator { padding: 4px 6px; color: var(--muted); background: var(--soft); border-radius: 5px; font-size: 12px; }
.custom-indicator.custom { color: var(--green); background: #e6f1e9; }
.table-shell { overflow: hidden; background: white; border: 1px solid var(--line); border-radius: 16px; }
.table-toolbar { display: flex; flex-wrap: wrap; gap: 10px; padding: 14px; border-bottom: 1px solid var(--line); }
.search-box { display: flex; flex: 1; align-items: center; gap: 9px; min-width: 210px; padding: 0 12px; color: var(--muted); background: #f6f7f3; border: 1px solid #d8dad2; border-radius: 10px; }
.search-box:focus-within { outline: 2px solid var(--green); outline-offset: 2px; }
.search-box input { width: 100%; min-width: 0; min-height: 44px; padding: 0; color: var(--ink); background: transparent; border: 0; outline: 0; font-size: 14px; }
input::placeholder { color: var(--muted); }
.table-toolbar select { min-width: 0; min-height: 44px; padding: 0 10px; background: white; border: 1px solid #cbcec5; border-radius: 10px; font-size: 13px; }
.open-toggle { position: relative; display: flex; align-items: center; gap: 8px; min-height: 44px; padding: 0 12px; border: 1px solid #cbcec5; border-radius: 10px; font-size: 13px; cursor: pointer; white-space: nowrap; }
.open-toggle:has(input:focus-visible) { outline: 3px solid #4169db; outline-offset: 3px; }
.open-toggle input { position: absolute; width: 1px; height: 1px; opacity: 0; }
.open-toggle > span[aria-hidden] { position: relative; width: 28px; height: 18px; background: #bbbfb5; border-radius: 99px; }
.open-toggle > span[aria-hidden]::after { position: absolute; top: 3px; left: 3px; width: 12px; height: 12px; background: white; border-radius: 50%; content: ""; transition: transform .18s ease; }
.open-toggle input:checked + span { background: var(--green); }
.open-toggle input:checked + span::after { transform: translateX(10px); }
.results-meta { display: flex; justify-content: space-between; gap: 16px; padding: 12px 18px; color: var(--muted); font-size: 12px; }
.table-scroll { overflow-x: auto; }
.table-row { display: grid; grid-template-columns: minmax(230px,2.5fr) repeat(2,minmax(65px,.7fr)) minmax(95px,.85fr) minmax(70px,.7fr) 62px; align-items: center; gap: 12px; width: 100%; min-height: 68px; padding: 10px 18px; border-bottom: 1px solid #eeeee9; text-align: left; font-size: 14px; }
.table-row.data-row { background: white; cursor: pointer; transition: background .18s ease; }
.table-row.data-row:hover, .table-row.data-row:focus-visible { background: #f0f5ef; }
.table-row.data-row:focus-visible { outline-offset: -3px; }
.table-row.data-row:hover .entity-name { color: var(--green); }
.table-row:last-child { border-bottom: 0; }
.table-row > span:first-child { display: flex; min-width: 0; align-items: center; gap: 12px; }
.rank-cell { flex-shrink: 0; width: 22px; color: var(--muted); font-size: 12px; font-weight: 500; font-variant-numeric: tabular-nums; }
.entity-mark { display: grid; flex: 0 0 auto; place-items: center; width: 32px; height: 32px; background: var(--accent,var(--soft)); border-radius: 9px; font-size: 11px; font-style: normal; font-weight: 600; }
.accent-mint { --accent: var(--mint); }.accent-apricot { --accent: var(--apricot); }.accent-blue { --accent: var(--blue); }.accent-violet { --accent: var(--violet); }.accent-coral { --accent: var(--coral); }.accent-cyan { --accent: var(--cyan); }.accent-amber { --accent: var(--amber); }.accent-indigo { --accent: var(--indigo); }.accent-orange { --accent: var(--orange); }.accent-gray { --accent: var(--gray); }
.entity-name { min-width: 0; font-weight: 500; overflow-wrap: anywhere; }
.entity-name small { display: block; margin-top: 5px; color: var(--muted); font-size: 12px; font-weight: 400; line-height: 1.5; }
.mobile-coverage { display: none; }
.dimension-cell { color: #4c5049; font-variant-numeric: tabular-nums; }
.coverage-cell { display: flex; align-items: center; gap: 7px; font-variant-numeric: tabular-nums; }
.coverage-dot { width: 6px; height: 6px; background: var(--green); border-radius: 50%; }
.coverage-dot.medium { background: #a76c0d; }
.total-cell { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.row-action { display: flex; align-items: center; justify-content: flex-end; gap: 8px; color: var(--green); font-size: 13px; white-space: nowrap; }
.row-action > span { font-size: 22px; }
.action-head { text-align: right; }
.table-head { min-height: 40px; background: #f7f8f4; color: var(--muted); font-size: 12px; font-weight: 500; }
.table-head > span:first-child { display: block; }
.empty-state, .load-error { padding: 32px 20px; text-align: center; }
.empty-state > span { color: var(--muted); font-size: 32px; }
.empty-state h3 { margin: 10px 0; font-size: 18px; font-weight: 500; }
.empty-state p, .load-error p { color: var(--muted); font-size: 14px; }
.empty-state button { min-height: 44px; padding: 0 16px; background: var(--soft); border-radius: 999px; font-size: 14px; }
.ranking-note { margin: 14px 0 0; color: var(--muted); font-size: 12px; line-height: 1.8; }
.ranking-note button { display: inline-block; min-height: 44px; margin-left: 8px; padding: 0; color: var(--green); background: none; font-size: 13px; text-decoration: underline; text-underline-offset: 4px; }
.sources-section { padding: 32px var(--pad) 40px; border-top: 1px solid var(--line); }
.sources-heading { display: flex; align-items: flex-end; justify-content: space-between; gap: 32px; margin-bottom: 24px; }
.sources-heading h2 { margin: 0; font-size: 26px; font-weight: 500; letter-spacing: -.025em; }
.sources-heading > p { max-width: 500px; margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
.source-grid { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); gap: 12px; }
.source-card { display: block; padding: 18px; background: white; border: 1px solid var(--line); border-radius: 12px; }
.source-card:hover { border-color: #8dafa0; }
.source-no { display: flex; justify-content: space-between; color: var(--muted); font-size: 12px; }
.source-card h3 { margin: 20px 0 9px; color: var(--green); font-size: 16px; font-weight: 500; }
.source-card:hover h3 { text-decoration: underline; text-underline-offset: 4px; }
.source-card p { margin: 0; color: var(--muted); font-size: 13px; line-height: 1.7; }
footer { display: flex; align-items: center; justify-content: space-between; gap: 28px; padding: 28px var(--pad); border-top: 1px solid var(--line); }
footer p { margin: 12px 0 0; color: var(--muted); font-size: 12px; }
.footer-meta { display: flex; flex-wrap: wrap; gap: 12px 20px; justify-content: flex-end; max-width: 410px; color: var(--muted); font-size: 12px; }
.footer-meta a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; }

dialog { color: var(--ink); }
dialog::backdrop { background: rgba(16, 17, 15, .42); backdrop-filter: blur(4px); animation: fade-in .25s ease both; }
.drawer { width: min(540px, 100vw); max-width: none; height: 100dvh; max-height: none; margin: 0 0 0 auto; padding: 0; background: var(--paper); border: 0; box-shadow: -20px 0 80px rgba(0, 0, 0, .15); animation: slide-in .4s var(--ease) both; }
.drawer form, .detail-drawer { padding: clamp(24px, 4vw, 42px); }
.drawer-head, .method-dialog-head { display: flex; align-items: flex-start; justify-content: space-between; gap: 30px; }
.drawer-head h2, .method-dialog h2 { margin: 12px 0 0; font-size: clamp(26px, 3vw, 34px); font-weight: 510; line-height: 1.3; letter-spacing: -.025em; }
.icon-button { display: grid; flex: 0 0 auto; place-items: center; width: 44px; height: 44px; padding: 0; background: var(--soft); border-radius: 50%; font-size: 22px; font-weight: 300; }
.drawer-intro { margin: 26px 0 32px; color: var(--muted); font-size: 14px; line-height: 1.65; }
.weight-controls { border-top: 1px solid var(--line); }
.weight-control { display: block; padding: 20px 0; border-bottom: 1px solid var(--line); }
.weight-label { display: flex; justify-content: space-between; gap: 20px; margin-bottom: 14px; }
.weight-label div { font-size: 14px; font-weight: 560; }
.weight-label small { display: block; margin-top: 4px; color: var(--muted); font-size: 12px; font-weight: 400; }
.weight-label output { font-size: 18px; font-weight: 600; font-variant-numeric: tabular-nums; }
.weight-control input[type="range"] { width: 100%; height: 24px; margin: 0; accent-color: var(--green); cursor: pointer; }
.weight-total { display: flex; justify-content: space-between; padding: 20px 0; font-size: 12px; }
.weight-total strong { font-size: 18px; font-variant-numeric: tabular-nums; }
.drawer-actions { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.drawer-actions button { width: 100%; }
.detail-score { display: grid; grid-template-columns: 1fr 1fr; margin: 28px 0; background: white; border: 1px solid var(--line); border-radius: 12px; }
.detail-score div { padding: 18px; }
.detail-score div:first-child { border-right: 1px solid var(--line); }
.detail-score span { display: block; margin-bottom: 10px; color: var(--muted); font-size: 12px; letter-spacing: .08em; text-transform: uppercase; }
.detail-score strong { font-size: 35px; font-weight: 550; letter-spacing: -.05em; }
.detail-meta { display: flex; flex-wrap: wrap; gap: 7px; margin-bottom: 28px; }
.detail-meta span { padding: 7px 9px; background: var(--soft); border-radius: 99px; font-size: 12px; }
.metric-list { border-top: 1px solid var(--line); }
.metric-item { padding: 17px 0; border-bottom: 1px solid var(--line); }
.metric-top { display: flex; align-items: baseline; justify-content: space-between; gap: 20px; }
.metric-top a { color: var(--green); text-decoration: underline; text-underline-offset: 4px; font-size: 12px; font-weight: 550; }
.metric-top a:hover { text-decoration: underline; text-underline-offset: 3px; }
.metric-top strong { font-size: 14px; font-variant-numeric: tabular-nums; }
.metric-top small { color: var(--muted); font-weight: 400; }
.metric-track { height: 3px; margin-top: 12px; background: #dedfd8; }
.metric-track i { display: block; height: 100%; background: var(--green); }
.full-button { width: 100%; margin-top: 26px; }
.method-dialog { width: min(1060px, calc(100vw - 36px)); max-width: none; max-height: calc(100dvh - 36px); padding: clamp(28px, 5vw, 60px); overflow-y: auto; background: var(--paper); border: 0; border-radius: 18px; }
.method-steps { display: grid; grid-template-columns: repeat(4, 1fr); margin: 50px 0 36px; border-top: 1px solid var(--line); border-left: 1px solid var(--line); }
.method-steps article { min-height: 190px; padding: 18px; border-right: 1px solid var(--line); border-bottom: 1px solid var(--line); }
.method-steps article > span { color: var(--muted-2); font-size: 12px; }
.method-steps h3 { margin: 28px 0 12px; font-size: 18px; font-weight: 560; letter-spacing: -.03em; }
.method-steps p { margin: 0; color: var(--muted); font-size: 14px; line-height: 1.65; }
.method-caveat { display: grid; grid-template-columns: 130px 1fr; gap: 30px; padding: 20px 0; border-block: 1px solid var(--line); font-size: 14px; }
.method-caveat p { max-width: 660px; margin: 0; color: var(--muted); line-height: 1.65; }
.method-dialog > .primary-button { margin-top: 26px; }
.toast { position: fixed; right: 22px; bottom: 22px; z-index: 100; padding: 12px 15px; color: white; background: var(--ink); border-radius: 8px; box-shadow: 0 8px 30px #0003; font-size: 14px; opacity: 0; pointer-events: none; transform: translateY(12px); transition: opacity .2s ease, transform .3s var(--ease); }
.toast.visible { opacity: 1; transform: none; }


@keyframes fade-in { from { opacity: 0; } }
@keyframes slide-in { from { transform: translateX(30px); opacity: .5; } }
@media (max-width: 1000px) {
  .data-status { display: none; }
  .table-toolbar .search-box { flex-basis: 100%; }
  .table-toolbar select, .open-toggle { flex: 1; }
  .table-row { grid-template-columns: minmax(210px,2fr) repeat(2,55px) 86px 66px 54px; gap: 10px; padding-inline: 14px; }
  .source-grid { grid-template-columns: repeat(2,minmax(0,1fr)); }
}
@media (max-width: 680px) {
  :root { --pad: 20px; }
  html { scroll-padding-top: 118px; }
  .site-header { flex-wrap: wrap; gap: 0; padding-top: 16px; }
  .site-header nav { flex-basis: 100%; gap: 24px; margin-top: 4px; }
  .brand-word { font-size: 21px; }
  .hero { padding-top: 28px; padding-bottom: 22px; }
  .hero-heading { align-items: flex-start; flex-direction: column; gap: 16px; }
  .hero-heading > .secondary-button { display: none; }
  .intro { font-size: 14px; }
  .overview { gap: 8px 14px; margin-top: 16px; }
  .section-heading { align-items: center; gap: 8px; }
  .section-heading h2 { position: absolute; width: 1px; height: 1px; overflow: hidden; clip-path: inset(50%); }
  .kind-tabs { flex: 1; min-width: 0; }
  .kind-tabs button { flex: 1; min-width: 0; padding: 0 8px; font-size: 13px; }
  .weight-button { gap: 6px; padding: 0 8px; font-size: 12px; }
  .weight-button .sliders-icon { display: none; }
  .hero > .eyebrow { display: none; }
  h1 { font-size: 28px; }
  .ranking-intro { display: none; }
  .workspace-grid { margin-top: 14px; }
  .ranking-intro > p { font-size: 12px; }
  .table-toolbar { gap: 8px; padding: 12px; }
  .table-toolbar select { flex-basis: calc(50% - 4px); max-width: 100%; }
  .table-toolbar .open-toggle { order: 1; flex-basis: 100%; justify-content: flex-start; border: 0; padding: 0 2px; }
  .results-meta { padding: 10px 12px; font-size: 11px; gap: 8px; }
  .results-meta > span:last-child { font-size: 11px; }
  .table-row { grid-template-columns: minmax(0,1fr) 50px 42px; min-height: 72px; gap: 8px; padding: 12px; }
  .table-row .dimension-cell, .table-row .coverage-cell { display: none; }
  .table-head { min-height: 40px; font-size: 11px; }
  .table-row > span:first-child { gap: 8px; }
  .entity-mark { display: none; }
  .rank-cell { width: 18px; font-size: 11px; }
  .entity-name { font-size: 13px; }
  .entity-name small { font-size: 11px; }
  .mobile-coverage { display: inline; }
  .total-cell { font-size: 17px; }
  .row-action { font-size: 12px; gap: 4px; }
  .ranking-note button { margin-left: 0; }
  .sources-heading { align-items: flex-start; flex-direction: column; gap: 14px; }
  .source-grid { grid-template-columns: 1fr; }
  footer { align-items: flex-start; flex-direction: column; }
  .footer-meta { justify-content: flex-start; }
  .method-steps { grid-template-columns: 1fr; margin-top: 24px; }
  .method-steps article { min-height: auto; }
  .method-steps h3 { margin-top: 18px; }
  .method-caveat { grid-template-columns: 1fr; gap: 10px; }
  .drawer-head, .method-dialog-head { gap: 14px; }
  .drawer-head h2, .method-dialog h2 { overflow-wrap: anywhere; }
  .metric-top { gap: 12px; flex-wrap: wrap; }
  .toast { right: 16px; left: 16px; bottom: 16px; }
}
@media (prefers-reduced-motion: reduce) {
  html { scroll-behavior: auto; }
  *, *::before, *::after { animation: none !important; transition: none !important; }
}
