    :root {
      --bg: #f6f3ea;
      --text: #1f2328;
      --muted: #5f6873;
      --line: #d7d0c2;
      --accent: #0f766e;
      --accent-2: #d97757;
      --accent-3: #7c3aed;
      --shadow: 0 12px 32px rgba(41, 37, 36, 0.08);
      --radius: 18px;
    }
    * { box-sizing: border-box; }
    html, body { margin: 0; min-height: 100%; }
    body {
      font-family: Inter, Segoe UI, system-ui, -apple-system, sans-serif;
      background: linear-gradient(180deg, rgba(255,255,255,0.45), rgba(255,255,255,0.2)), var(--bg);
      color: var(--text);
      letter-spacing: 0;
    }
    .wrap {
      max-width: 1260px;
      margin: 0 auto;
      padding: 28px 18px 40px;
    }
    header, main {
      border: 1px solid var(--line);
      border-radius: calc(var(--radius) + 4px);
      background: rgba(255, 250, 240, 0.9);
      box-shadow: var(--shadow);
    }
    header {
      display: grid;
      gap: 18px;
      padding: 24px;
    }
    h1 {
      margin: 0;
      font-size: clamp(2rem, 3vw, 3rem);
      line-height: 1.05;
    }
    .title-row {
      display: grid;
      grid-template-columns: minmax(0, 1fr) minmax(300px, 460px);
      gap: 18px;
      align-items: center;
    }
    .title-block {
      display: grid;
      gap: 8px;
    }
    .source-note {
      margin: 0;
      color: var(--muted);
      font-size: 0.98rem;
      line-height: 1.35;
    }
    .source-note a {
      color: var(--accent);
      font-weight: 650;
      text-decoration: none;
      border-bottom: 1px solid rgba(15, 118, 110, 0.34);
    }
    .source-note a:hover {
      border-bottom-color: currentColor;
    }
    .meta {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
    }
    .stat {
      border: 1px solid var(--line);
      border-radius: 14px;
      background: rgba(255,255,255,0.74);
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 14px;
      padding: 12px 14px;
      min-height: 78px;
    }
    .stat .k {
      flex: 0 1 auto;
      color: var(--muted);
      font-size: 0.76rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      margin-bottom: 0;
      min-width: 0;
    }
    .stat .v {
      display: block;
      flex: 0 1 auto;
      min-width: min-content;
      max-width: 100%;
      margin-left: auto;
      font-size: 1.28rem;
      font-weight: 700;
      line-height: 1.05;
      text-align: center;
      white-space: normal;
      overflow: visible;
      overflow-wrap: normal;
      word-break: normal;
      text-overflow: clip;
    }
    .stat-number {
      white-space: nowrap;
    }
    .stat-link {
      color: inherit;
      text-decoration: none;
      display: inline-block;
      cursor: pointer;
    }
    .stat-link:hover {
      color: var(--accent);
    }
    .stat-linkcard {
      color: inherit;
      text-decoration: none;
      cursor: pointer;
    }
    .stat-linkcard:hover {
      border-color: var(--accent);
    }
    .stat-inline {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
    }
    .stat-inline .k {
      margin-bottom: 0;
    }
    .stat.is-stacked {
      justify-content: center;
      row-gap: 6px;
    }
    .stat.is-stacked .k,
    .stat.is-stacked .v {
      flex-basis: 100%;
      margin-left: 0;
      text-align: center;
    }
    .stat:nth-child(1) .v { color: var(--accent); }
    .stat:nth-child(2) .v { color: var(--accent-2); }
    .stat:nth-child(3) .v { color: var(--accent-3); }
    .stat:nth-child(4) .v { color: #b45309; }
    .toolbar {
      display: grid;
      grid-template-columns: auto auto minmax(120px, 1fr) auto;
      gap: 12px;
      align-items: center;
    }
    .search {
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,0.86);
      padding: 11px 14px;
      box-shadow: 0 6px 18px rgba(41, 37, 36, 0.04);
    }
    .search input {
      border: 0;
      outline: 0;
      background: transparent;
      width: 100%;
      font: inherit;
      color: var(--text);
      min-width: 0;
    }
    .search label {
      color: var(--muted);
      font-size: 0.95rem;
      white-space: nowrap;
    }
    .segmented, .pager {
      display: inline-flex;
      gap: 6px;
      border: 1px solid var(--line);
      border-radius: 999px;
      padding: 4px;
      background: rgba(255,255,255,0.86);
      white-space: nowrap;
    }
    .pager {
      justify-self: end;
    }
    .bottom-controls {
      display: inline-flex;
      align-items: center;
      justify-content: flex-end;
      gap: 10px;
    }
    .top-button {
      height: 48px;
      min-width: 56px;
      padding: 0 18px;
      border: 1px solid var(--line);
      background: rgba(255,255,255,0.86);
      box-shadow: 0 6px 18px rgba(41, 37, 36, 0.04);
    }
    .top-button:hover {
      border-color: var(--accent);
      color: var(--accent);
    }
    .learn-toggle {
      display: inline-flex;
      align-items: center;
      gap: 9px;
      min-height: 48px;
      padding: 5px 14px 5px 8px;
      border: 1px solid var(--line);
      border-radius: 999px;
      background: rgba(255,255,255,0.86);
      color: var(--muted);
      font-size: 0.95rem;
      white-space: nowrap;
      cursor: pointer;
      user-select: none;
    }
    .learn-toggle input {
      position: absolute;
      opacity: 0;
      pointer-events: none;
    }
    .learn-toggle .check {
      width: 34px;
      height: 34px;
      border: 1px solid rgba(15, 118, 110, 0.32);
      border-radius: 50%;
      background: rgba(15, 118, 110, 0.08);
      display: grid;
      place-items: center;
      color: transparent;
      transition: background 120ms ease, border-color 120ms ease, color 120ms ease;
    }
    .learn-toggle .check::before {
      content: "";
      width: 10px;
      height: 6px;
      border-left: 2px solid currentColor;
      border-bottom: 2px solid currentColor;
      transform: rotate(-45deg) translate(1px, -1px);
    }
    .learn-toggle:has(input:checked) {
      color: var(--text);
    }
    .learn-toggle:has(input:checked) .check {
      background: var(--accent);
      border-color: var(--accent);
      color: white;
    }
    .learn-toggle:focus-within {
      outline: 2px solid rgba(15, 118, 110, 0.28);
      outline-offset: 2px;
    }
    button {
      appearance: none;
      border: 0;
      border-radius: 999px;
      background: transparent;
      color: var(--muted);
      height: 38px;
      padding: 0 14px;
      font: inherit;
      cursor: pointer;
    }
    button[aria-pressed="true"], button.primary {
      background: var(--accent);
      color: white;
    }
    button:disabled {
      cursor: default;
      opacity: 0.45;
    }
    button:focus-visible {
      outline: 2px solid rgba(15, 118, 110, 0.28);
      outline-offset: 2px;
    }
    .status {
      color: var(--muted);
      font-size: 0.92rem;
      line-height: 1.4;
    }
    main {
      margin-top: 18px;
      background: rgba(255,255,255,0.82);
      overflow: hidden;
    }
    .table-wrap {
      overflow-x: auto;
    }
    table {
      width: 100%;
      border-collapse: collapse;
      table-layout: fixed;
    }
    thead th {
      color: var(--muted);
      text-align: left;
      font-size: 0.78rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
      padding: 14px 16px;
      border-bottom: 1px solid var(--line);
      background: rgba(255, 251, 243, 0.96);
    }
    tbody td {
      padding: 10px 16px;
      border-bottom: 1px solid rgba(215, 208, 194, 0.55);
      vertical-align: top;
      overflow: hidden;
    }
    thead th:nth-child(1),
    tbody td:nth-child(1),
    thead th:nth-child(4),
    tbody td:nth-child(4),
    thead th:nth-child(5),
    tbody td:nth-child(5) {
      padding-left: 6px;
      padding-right: 6px;
    }
    thead th:nth-child(1), td.rank {
      width: 48px;
    }
    thead th:nth-child(2), td.word {
      width: 27%;
    }
    thead th:nth-child(3), td.def {
      width: 44%;
    }
    thead th:nth-child(4), td.count {
      width: 68px;
    }
    thead th:nth-child(5), td.share {
      width: 82px;
    }
    tbody tr.clickable {
      cursor: default;
    }
    tbody tr:hover {
      background: rgba(15, 118, 110, 0.04);
    }
    thead th:nth-child(1) {
      padding-left: 12px;
    }
    thead th:nth-child(4),
    thead th:nth-child(5) {
      text-align: center;
    }
    td.rank {
      color: var(--muted);
      font-variant-numeric: tabular-nums;
      text-align: center;
    }
    td.word {
      font-weight: 650;
      word-break: break-word;
    }
    td.def {
      width: 44%;
      color: var(--text);
    }
    td.def span {
      display: -webkit-box;
      -webkit-line-clamp: 1;
      -webkit-box-orient: vertical;
      overflow: hidden;
      cursor: help;
    }
    .definition-tooltip {
      position: fixed;
      z-index: 1000;
      max-width: min(420px, calc(100vw - 24px));
      padding: 11px 14px;
      background: rgba(255, 253, 247, 0.98);
      border: 1px solid rgba(215, 208, 194, 0.98);
      border-radius: 16px;
      box-shadow: 0 18px 42px rgba(41, 37, 36, 0.18);
      color: var(--text);
      font-size: 0.92rem;
      line-height: 1.35;
      pointer-events: none;
      opacity: 0;
      visibility: hidden;
      transform: translateY(4px);
      transition: opacity 120ms ease, transform 120ms ease, visibility 0s linear 120ms;
      white-space: normal;
      word-break: break-word;
    }
    .definition-tooltip.show {
      opacity: 1;
      visibility: visible;
      transform: translateY(0);
      transition: opacity 120ms ease, transform 120ms ease;
    }
    .definition-tooltip .label {
      display: block;
      margin-bottom: 6px;
      color: var(--muted);
      font-size: 0.68rem;
      text-transform: uppercase;
      letter-spacing: 0.04em;
    }
    td.count {
      font-variant-numeric: tabular-nums;
      font-weight: 700;
      color: var(--accent);
      text-align: center;
    }
    td.share {
      font-variant-numeric: tabular-nums;
      color: var(--muted);
      text-align: center;
    }
    .word-link {
      color: inherit;
      text-decoration: none;
      border-bottom: 1px solid transparent;
    }
    .word-link:hover {
      color: var(--accent);
      border-bottom-color: currentColor;
    }
    .bottom-bar {
      display: flex;
      justify-content: space-between;
      align-items: center;
      gap: 12px;
      padding: 12px 16px;
      border-top: 1px solid rgba(215, 208, 194, 0.55);
      background: rgba(255, 251, 243, 0.72);
    }
    .empty {
      display: none;
      padding: 30px 16px;
      color: var(--muted);
      text-align: center;
    }
    @media (max-width: 820px) {
      .wrap { padding: 16px 12px 28px; }
      header, main { border-radius: 16px; }
      .title-row { grid-template-columns: 1fr; }
      .meta { grid-template-columns: repeat(2, minmax(0, 1fr)); }
      .stat .v { font-size: 1.18rem; }
      .toolbar { grid-template-columns: 1fr; }
      .pager { justify-self: stretch; }
      .bottom-controls { flex-wrap: wrap; justify-content: flex-start; }
      thead th:nth-child(2), td.word { width: 32%; }
      thead th:nth-child(3), td.def { width: 46%; }
      thead th:nth-child(4), td.count { width: 62px; }
      .bottom-bar { align-items: flex-start; flex-direction: column; }
    }
    @media (max-width: 560px) {
      .meta { grid-template-columns: 1fr; }
      h1 { font-size: 1.9rem; }
      .source-note { font-size: 0.92rem; }
      thead th, tbody td { padding-left: 10px; padding-right: 10px; }
      thead th:nth-child(1), td.rank { width: 38px; }
      thead th:nth-child(2), td.word { width: 40%; }
      thead th:nth-child(3), td.def { width: 42%; }
      thead th:nth-child(4), td.count { width: 56px; }
      td.share, thead th:nth-child(5) { display: none; }
      td.def { font-size: 0.95rem; }
    }
