    body {
      margin: 0;
      font-family: Arial, sans-serif;
      background-color: #26354a;
      color: #333;
    }

    /* ── Header ── */
    header {
      background: #fff;
      display: flex;
      align-items: center;
      justify-content: space-between;
      padding: 20px;
    }
    header img { width: 120px; height: 120px; }
    header h1 {
      color: red;
      font-family: "Times New Roman", serif;
      margin: 0;
    }

    /* ── Navigation bar ── */
    nav {
      background: #ffcc00;
      display: flex;
      justify-content: center;
      flex-wrap: wrap;
      gap: 0;
      padding: 0 10px;
      position: relative;
      z-index: 100;
    }
    nav > a,
    nav > .nav-dropdown > .nav-top {
      text-decoration: none;
      color: #000;
      font-weight: bold;
      padding: 12px 15px;
      border-right: 1px solid #000;
      white-space: nowrap;
      display: flex;
      align-items: center;
      cursor: pointer;
      user-select: none;
      transition: background 0.15s;
    }
    nav > a:last-child { border-right: none; }
    nav > a:hover,
    nav > .nav-dropdown > .nav-top:hover { background: #ffe566; }
    nav > a.active,
    nav > .nav-dropdown.active > .nav-top { color: red; background: #fff3b0; }
    .nav-dropdown { position: relative; border-right: 1px solid #000; }
    .nav-dropdown:last-child { border-right: none; }
    .nav-top .arrow { margin-left: 5px; font-size: 10px; transition: transform 0.2s; display: inline-block; }
    .nav-dropdown.open > .nav-top .arrow { transform: rotate(180deg); }
    .dropdown-panel {
      display: none; position: absolute; top: 100%; left: 0;
      background: #ffdd44; min-width: 180px;
      box-shadow: 0 4px 12px rgba(0,0,0,0.25); z-index: 200;
      border-top: 2px solid #cc9900;
    }
    .nav-dropdown.open > .dropdown-panel { display: block; }
    .dropdown-panel a, .dropdown-panel .sub-dropdown > .sub-top {
      display: flex; align-items: center; justify-content: space-between;
      padding: 10px 16px; text-decoration: none; color: #000; font-weight: bold;
      font-size: 14px; border-bottom: 1px solid #cc9900; white-space: nowrap;
      cursor: pointer; transition: background 0.15s;
    }
    .dropdown-panel a:last-child, .dropdown-panel .sub-dropdown:last-child > .sub-top { border-bottom: none; }
    .dropdown-panel a:hover, .dropdown-panel .sub-dropdown > .sub-top:hover { background: #fff3b0; color: red; }
    .sub-dropdown { position: relative; }
    .sub-top .arrow { font-size: 10px; margin-left: 8px; }
    .sub-dropdown.open > .sub-top { background: #fff3b0; color: red; }
    .sub-panel {
      display: none; position: absolute; top: 0; left: 100%;
      background: #fff8d6; min-width: 240px;
      box-shadow: 4px 4px 12px rgba(0,0,0,0.2); border-left: 2px solid #cc9900; z-index: 300;
    }
    .sub-dropdown.open > .sub-panel { display: block; }
    .sub-panel a {
      display: block; padding: 10px 16px; text-decoration: none; color: #000;
      font-weight: bold; font-size: 13px; border-bottom: 1px solid #e0c840; white-space: nowrap;
    }
    .sub-panel a:last-child { border-bottom: none; }
    .sub-panel a:hover { background: #ffcc00; color: red; }
    .sub-panel a.active { color: red; background: #fff3b0; }

    /* ── Main layout ── */
    main { padding: 20px; }
    .content {
      max-width: 900px;
      margin: 0 auto;
      background: #d3dce6;
      padding: 20px;
      border-radius: 6px;
    }

    .page-header {
      background: #26354a;
      color: #ffcc00;
      padding: 14px 20px;
      margin-bottom: 16px;
      border-radius: 4px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      flex-wrap: wrap;
      gap: 10px;
    }
    .page-header h2 {
      margin: 0;
      font-family: "Times New Roman", serif;
      font-size: 20px;
      letter-spacing: 0.3px;
    }
    .page-header .back-link {
      text-decoration: none; color: #ffcc00; font-size: 13px; font-weight: bold;
      border: 1px solid #ffcc00; padding: 4px 10px; border-radius: 3px; transition: background 0.15s;
    }
    .page-header .back-link:hover { background: rgba(255,204,0,0.2); }

    .event-info {
      background: #fff;
      border-radius: 4px;
      padding: 10px 14px;
      font-size: 13px;
      color: #445;
      margin-bottom: 16px;
      line-height: 1.5;
    }

    /* ── Team picker ── */
    .picker {
      background: #fff;
      border-radius: 4px;
      padding: 14px;
      margin-bottom: 18px;
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      align-items: center;
    }
    .picker label { font-weight: bold; color: #003366; font-size: 14px; }
    .picker select {
      flex: 1;
      min-width: 220px;
      padding: 10px 8px;
      font-size: 14px;
      border: 1px solid #8aaad4;
      border-radius: 4px;
      background: #fff;
      color: #003366;
    }

    /* ── Selected team summary ── */
    .pair-summary {
      display: none;
      background: #3366cc;
      color: #fff;
      border-radius: 4px;
      padding: 12px 16px;
      margin-bottom: 16px;
      flex-wrap: wrap;
      gap: 6px 20px;
      align-items: baseline;
    }
    .pair-summary.show { display: flex; }
    .pair-summary .names { font-size: 16px; font-weight: bold; }
    .pair-summary .stat { font-size: 13px; }
    .pair-summary .stat b { font-size: 15px; }

    .empty-state {
      background: #fff;
      border-radius: 4px;
      padding: 30px 16px;
      text-align: center;
      color: #556;
      font-style: italic;
    }

    /* ── Rounds table ── */
    .results-table {
      width: 100%;
      border-collapse: collapse;
      background: #fff;
      border-radius: 6px;
      overflow: hidden;
      box-shadow: 0 2px 8px rgba(0,51,102,.15);
      font-size: 13px;
      display: none;
    }
    .results-table.show { display: table; }
    .results-table thead th {
      background: #496414; color: #fff; padding: 8px 8px;
      text-align: center; font-size: 12px; font-weight: bold; white-space: nowrap;
    }
    .results-table thead th:first-child { text-align: left; }
    .results-table tbody tr { border-bottom: 1px solid #b0c8e8; }
    .results-table td { padding: 8px 8px; text-align: center; color: #003366; vertical-align: middle; }
    .results-table td:first-child { text-align: left; font-weight: bold; }
    .results-table tbody tr:hover { background: #e8f2ff; }
    .results-table tbody tr:nth-child(even) { background: #eef5ff; }
    .results-table tbody tr:nth-child(even):hover { background: #ddeeff; }

    .win { color: #2c7a00; font-weight: bold; }
    .loss { color: #cc0000; font-weight: bold; }
    .tie { color: #667; }

    /* ── Clickable table number ── */
    .board-link {
      background: none; border: none; padding: 0; margin: 0;
      color: #3366cc; font-weight: bold; text-decoration: underline;
      cursor: pointer; font-size: inherit; font-family: inherit;
    }
    .board-link:hover { color: #1a4da0; }

    .suit-red { color: #cc0000; font-weight: bold; }
    .suit-black { color: #111; font-weight: bold; }
    .dbl { font-size: 10px; vertical-align: super; }

    footer {
      background: #ccff99; padding: 10px 20px; text-align: center; font-size: 12px; color: #444;
    }

    /* ── Board traveler modal ── */
    .board-modal {
      display: none; position: fixed; inset: 0; background: rgba(0,0,0,.55);
      z-index: 500; align-items: center; justify-content: center; padding: 16px;
    }
    .board-modal.show { display: flex; }
    .board-modal-panel {
      background: #fff; border-radius: 8px; max-width: 760px; width: 100%;
      max-height: 85vh; overflow-y: auto; padding: 18px;
    }
    .board-modal-header {
      display: flex; align-items: center; justify-content: space-between; margin-bottom: 4px;
    }
    .board-modal-header h3 { margin: 0; font-size: 17px; color: #003366; }
    .board-modal-close {
      background: #26354a; color: #ffcc00; border: none; border-radius: 4px;
      width: 28px; height: 28px; font-size: 16px; cursor: pointer; line-height: 1; flex-shrink: 0;
    }
    .board-modal-close:hover { background: #cc0000; color: #fff; }
    .board-modal-meta { font-size: 12.5px; color: #445; margin: 0 0 14px; }
    .board-table-scroll { overflow-x: auto; }
    .board-table { width: 100%; border-collapse: collapse; font-size: 12.5px; min-width: 620px; }
    .board-table th {
      background: #496414; color: #fff; padding: 6px 8px; text-align: center; white-space: nowrap;
    }
    .board-table th.room-open { background: #1a4da0; }
    .board-table th.room-closed { background: #88aa44; }
    .board-table td {
      padding: 6px 8px; text-align: center; color: #003366; border-bottom: 1px solid #d8e4f0; white-space: nowrap;
    }
    .board-table td:first-child { font-weight: bold; }
    .board-table tr.imp-pos td:last-child { color: #2c7a00; font-weight: bold; }
    .board-table tr.imp-neg td:last-child { color: #cc0000; font-weight: bold; }

    /* ── Responsive ── */
    @media (max-width: 700px) {
      main { padding: 10px; }
      .content { padding: 12px; }
      nav { flex-direction: column; align-items: stretch; gap: 0; padding: 0; }
      nav > a, nav > .nav-dropdown > .nav-top { padding: 12px; border-right: none; border-bottom: 1px solid #cc9900; }
      .nav-dropdown { border-right: none; border-bottom: 1px solid #cc9900; }
      .dropdown-panel { position: static; box-shadow: none; border-top: none; border-left: 4px solid #cc9900; }
      .sub-panel { position: static; border-left: 8px solid #cc9900; box-shadow: none; }

      .results-table, .results-table thead, .results-table tbody,
      .results-table th, .results-table td, .results-table tr { display: block; }
      .results-table thead { display: none; }
      .results-table tbody tr {
        margin: 0 0 8px; border: 1px solid #8aaad4; border-radius: 4px; padding: 8px; background: #fff;
      }
      .results-table td {
        text-align: left !important; padding: 3px 6px; position: relative; padding-left: 40%;
      }
      .results-table td::before {
        content: attr(data-label); position: absolute; left: 6px; top: 3px; width: 36%;
        font-weight: bold; font-size: 10.5px; color: #3366cc; white-space: nowrap;
      }
      .results-table td:first-child { padding-left: 6px; }
      .results-table td:first-child::before { display: none; }

      .board-modal { padding: 8px; }
      .board-modal-panel { padding: 12px; }
    }
