:root {
      --theme: #0B3D91;
      --theme-dark: #072a65;
      --theme-soft: #eaf1fc;
      --ink: #172033;
      --muted: #667085;
      --line: #dce3ee;
      --surface: #ffffff;
      --page: #f5f7fb;
      --gold: #d8a936;
      --scarlet: #b5172f;
      --shadow: 0 18px 50px rgba(11, 61, 145, 0.12);
      --radius: 18px;
    }

    * {
      box-sizing: border-box;
    }

    html {
      scroll-behaviour: smooth;
    }

    body {
      margin: 0;
      color: var(--ink);
      background: var(--page);
      font-family: Inter, ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
      line-height: 1.6;
    }

    body,
    button,
    input {
      font: inherit;
    }

    img {
      display: block;
      max-width: 100%;
    }

    a {
      color: inherit;
      text-decoration: none;
    }

    button {
      color: inherit;
    }

    .container {
      width: min(1180px, calc(100% - 40px));
      margin-inline: auto;
    }

    .topbar {
      position: relative;
      z-index: 120;
      color: #eaf1ff;
      background: #07152b;
      border-bottom: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 0.78rem;
    }

    .topbar .container {
      min-height: 38px;
      display: flex;
      align-items: centre;
      justify-content: space-between;
      gap: 20px;
    }

    .topbar-links {
      display: flex;
      align-items: centre;
      justify-content: flex-end;
      gap: 18px;
    }

    .topbar a {
      transition: color 0.2s ease;
    }

    .topbar a:hover {
      color: #ffffff;
    }

    .header {
      position: relative;
      z-index: 110;
      background: rgba(255, 255, 255, 0.98);
      border-bottom: 1px solid var(--line);
      box-shadow: 0 7px 24px rgba(16, 24, 40, 0.06);
    }

    .header-inner {
      min-height: 78px;
      display: flex;
      align-items: centre;
      gap: 22px;
    }

    .logo {
      min-width: 190px;
      display: inline-flex;
      align-items: centre;
      gap: 11px;
      color: var(--theme-dark);
      font-weight: 850;
      letter-spacing: -0.02em;
    }

    .logo img {
      width: 42px;
      height: 42px;
      object-fit: contain;
      border-radius: 10px;
    }

    .main-nav {
      min-width: 0;
      flex: 1;
      align-self: stretch;
    }

    .nav-list {
      height: 100%;
      margin: 0;
      padding: 0;
      display: flex;
      align-items: stretch;
      justify-content: centre;
      list-style: none;
    }

    .nav-item {
      position: relative;
      display: flex;
      align-items: centre;
    }

    .nav-link {
      height: 100%;
      padding: 0 13px;
      display: inline-flex;
      align-items: centre;
      color: #26344e;
      font-size: 0.92rem;
      font-weight: 720;
      white-space: nowrap;
      transition: color 0.2s ease, background 0.2s ease;
    }

    .nav-link:hover,
    .nav-item:focus-within > .nav-link {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .has-arrow::after {
      width: 6px;
      height: 6px;
      margin: -3px 0 0 8px;
      border-right: 1.5px solid currentColor;
      border-bottom: 1.5px solid currentColor;
      content: "";
      transform: rotate(45deg);
    }

    .dropdown-panel,
    .mega-menu {
      position: absolute;
      top: 100%;
      left: 0;
      z-index: 150;
      visibility: hidden;
      opacity: 0;
      pointer-events: none;
      color: var(--ink);
      background: var(--surface);
      border: 1px solid var(--line);
      border-radius: 0 0 16px 16px;
      box-shadow: 0 24px 55px rgba(16, 24, 40, 0.18);
      transform: translateY(8px);
      transition: opacity 0.18s ease, visibility 0.18s ease, transform 0.18s ease;
    }

    .dropdown-panel::before,
    .mega-menu::before {
      position: absolute;
      right: 0;
      bottom: 100%;
      left: 0;
      height: 10px;
      content: "";
    }

    .dropdown-panel {
      width: 330px;
      padding: 20px;
    }

    .mega-menu {
      width: min(780px, 82vw);
      padding: 22px;
    }

    .nav-item:nth-last-child(-n+3) .mega-menu {
      right: 0;
      left: auto;
    }

    .nav-item:hover > .dropdown-panel,
    .nav-item:hover > .mega-menu,
    .nav-item:focus-within > .dropdown-panel,
    .nav-item:focus-within > .mega-menu {
      visibility: visible;
      opacity: 1;
      pointer-events: auto;
      transform: translateY(0);
    }

    .panel-heading {
      margin-bottom: 13px;
      color: var(--theme-dark);
      font-size: 0.78rem;
      font-weight: 850;
      letter-spacing: 0.11em;
      text-transform: uppercase;
    }

    .panel-list {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 8px;
    }

    .dropdown-panel .panel-list {
      grid-template-columns: 1fr;
    }

    .panel-list a {
      padding: 9px 11px;
      overflow: hidden;
      color: #34415a;
      background: #f7f9fc;
      border-radius: 9px;
      font-size: 0.86rem;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .panel-list a:hover {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .broker-grid,
    .video-grid,
    .tool-grid,
    .product-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 12px;
    }

    .mega-card {
      min-width: 0;
      min-height: 92px;
      padding: 13px;
      display: flex;
      flex-direction: column;
      gap: 7px;
      background: #f8faff;
      border: 1px solid #e5eaf3;
      border-radius: 12px;
      transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .mega-card:hover {
      border-color: #9fb9e6;
      box-shadow: 0 10px 22px rgba(11, 61, 145, 0.11);
      transform: translateY(-2px);
    }

    .mega-card img {
      width: 100%;
      height: 72px;
      object-fit: cover;
      background: #e9eef7;
      border-radius: 8px;
    }

    .tool-grid .mega-card img {
      width: 36px;
      height: 36px;
      object-fit: contain;
    }

    .mega-card strong {
      overflow: hidden;
      color: #18243a;
      font-size: 0.89rem;
      line-height: 1.35;
      text-overflow: ellipsis;
      white-space: nowrap;
    }

    .mega-card small {
      display: -webkit-box;
      overflow: hidden;
      color: var(--muted);
      font-size: 0.75rem;
      line-height: 1.45;
      -webkit-box-orient: vertical;
      -webkit-line-clamp: 2;
    }

    .mega-footer {
      margin-top: 16px;
      padding: 11px 14px;
      display: flex;
      align-items: centre;
      justify-content: space-between;
      color: #ffffff;
      background: var(--theme);
      border-radius: 10px;
      font-size: 0.85rem;
      font-weight: 780;
    }

    .mega-footer::after {
      content: "→";
    }

    .header-btns {
      display: flex;
      align-items: centre;
      gap: 9px;
    }

    .member-link,
    .account-link {
      min-height: 42px;
      padding: 9px 14px;
      display: inline-flex;
      align-items: centre;
      justify-content: centre;
      border-radius: 10px;
      font-size: 0.83rem;
      font-weight: 800;
      white-space: nowrap;
    }

    .member-link {
      color: var(--theme);
      background: #ffffff;
      border: 1px solid #b8c9e5;
    }

    .account-link {
      color: #ffffff;
      background: var(--scarlet);
      border: 1px solid var(--scarlet);
      box-shadow: 0 8px 18px rgba(181, 23, 47, 0.2);
    }

    .member-link:hover {
      background: var(--theme-soft);
    }

    .account-link:hover {
      background: #921126;
      border-color: #921126;
    }

    .hamburger {
      width: 44px;
      height: 42px;
      padding: 9px;
      display: none;
      align-items: centre;
      justify-content: centre;
      flex-direction: column;
      gap: 5px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 10px;
      cursor: pointer;
    }

    .hamburger span {
      width: 21px;
      height: 2px;
      display: block;
      background: var(--theme-dark);
      border-radius: 10px;
      transition: transform 0.2s ease, opacity 0.2s ease;
    }

    .hamburger.active span:nth-child(1) {
      transform: translateY(7px) rotate(45deg);
    }

    .hamburger.active span:nth-child(2) {
      opacity: 0;
    }

    .hamburger.active span:nth-child(3) {
      transform: translateY(-7px) rotate(-45deg);
    }

    .drawer-overlay {
      position: fixed;
      inset: 0;
      z-index: 190;
      visibility: hidden;
      opacity: 0;
      background: rgba(4, 12, 27, 0.66);
      backdrop-filter: blur(3px);
      transition: opacity 0.25s ease, visibility 0.25s ease;
    }

    .drawer-overlay.open {
      visibility: visible;
      opacity: 1;
    }

    .mobile-drawer {
      position: fixed;
      top: 0;
      right: 0;
      bottom: 0;
      z-index: 200;
      width: min(420px, 92vw);
      overflow-y: auto;
      background: #ffffff;
      box-shadow: -24px 0 50px rgba(4, 12, 27, 0.2);
      transform: translateX(105%);
      transition: transform 0.28s ease;
    }

    .mobile-drawer.open {
      transform: translateX(0);
    }

    .drawer-head {
      min-height: 82px;
      padding: 16px 20px;
      display: flex;
      align-items: centre;
      gap: 10px;
      color: #ffffff;
      background: var(--theme-dark);
    }

    .drawer-head > span {
      min-width: 0;
      flex: 1;
      font-weight: 800;
    }

    .drawer-head > a {
      padding: 8px 10px;
      color: #ffffff;
      background: var(--scarlet);
      border-radius: 8px;
      font-size: 0.78rem;
      font-weight: 800;
      white-space: nowrap;
    }

    .drawer-close {
      width: 38px;
      height: 38px;
      padding: 0;
      color: #ffffff;
      background: rgba(255, 255, 255, 0.12);
      border: 0;
      border-radius: 9px;
      cursor: pointer;
      font-size: 1.55rem;
      line-height: 1;
    }

    .drawer-menu {
      padding: 18px;
    }

    .drawer-link,
    .drawer-toggle {
      width: 100%;
      min-height: 48px;
      padding: 12px 14px;
      display: flex;
      align-items: centre;
      justify-content: space-between;
      text-align: left;
      color: #23304a;
      background: transparent;
      border: 0;
      border-bottom: 1px solid #e7ebf2;
      cursor: pointer;
      font-weight: 760;
    }

    .drawer-toggle::after {
      content: "+";
      color: var(--theme);
      font-size: 1.25rem;
      font-weight: 500;
    }

    .drawer-toggle.active::after {
      content: "−";
    }

    .drawer-link:hover,
    .drawer-toggle:hover {
      color: var(--theme);
      background: #f6f8fc;
    }

    .drawer-submenu {
      max-height: 0;
      overflow: hidden;
      background: #f6f8fc;
      transition: max-height 0.3s ease;
    }

    .drawer-submenu.open {
      max-height: 720px;
    }

    .drawer-submenu a {
      padding: 10px 16px 10px 25px;
      display: block;
      color: #536078;
      border-bottom: 1px solid #e6ebf2;
      font-size: 0.87rem;
    }

    .drawer-submenu a:hover {
      color: var(--theme);
      background: var(--theme-soft);
    }

    .tag-index-page {
      min-height: 680px;
    }

    .tag-index-page .tag-hero {
      position: relative;
      overflow: hidden;
      color: #ffffff;
      background:
        radial-gradient(circle at 12% 18%, rgba(216, 169, 54, 0.22), transparent 24%),
        radial-gradient(circle at 89% 36%, rgba(181, 23, 47, 0.22), transparent 25%),
        linear-gradient(135deg, #061225 0%, #0b2d64 54%, #0B3D91 100%);
    }

    .tag-index-page .tag-hero::before,
    .tag-index-page .tag-hero::after {
      position: absolute;
      content: "";
      border: 1px solid rgba(255, 255, 255, 0.09);
      border-radius: 50%;
    }

    .tag-index-page .tag-hero::before {
      top: -180px;
      right: -80px;
      width: 470px;
      height: 470px;
    }

    .tag-index-page .tag-hero::after {
      bottom: -230px;
      left: -110px;
      width: 410px;
      height: 410px;
    }

    .tag-index-page .tag-hero-inner {
      position: relative;
      z-index: 2;
      max-width: 820px;
      padding: 82px 0 86px;
    }

    .tag-index-page .eyebrow {
      margin-bottom: 18px;
      display: inline-flex;
      align-items: centre;
      gap: 9px;
      color: #f6d477;
      font-size: 0.78rem;
      font-weight: 850;
      letter-spacing: 0.13em;
      text-transform: uppercase;
    }

    .tag-index-page .eyebrow::before {
      width: 34px;
      height: 2px;
      content: "";
      background: var(--gold);
    }

    .tag-index-page h1 {
      max-width: 760px;
      margin: 0 0 20px;
      font-size: clamp(2.45rem, 6vw, 5.2rem);
      line-height: 0.98;
      letter-spacing: -0.055em;
    }

    .tag-index-page .tag-hero p {
      max-width: 680px;
      margin: 0;
      color: #dce7f9;
      font-size: clamp(1rem, 2vw, 1.18rem);
    }

    .tag-index-page .hero-notice {
      margin-top: 28px;
      padding: 13px 16px;
      display: inline-flex;
      align-items: centre;
      gap: 11px;
      color: #f7f9fd;
      background: rgba(255, 255, 255, 0.08);
      border: 1px solid rgba(255, 255, 255, 0.14);
      border-radius: 12px;
      backdrop-filter: blur(10px);
      font-size: 0.86rem;
    }

    .tag-index-page .hero-notice strong {
      color: #f6d477;
    }

    .tag-index-page .tag-directory {
      padding: 68px 0 76px;
    }

    .tag-index-page .section-heading {
      margin-bottom: 30px;
      display: flex;
      align-items: end;
      justify-content: space-between;
      gap: 24px;
    }

    .tag-index-page .section-heading h2 {
      margin: 0 0 7px;
      color: #14223b;
      font-size: clamp(1.8rem, 4vw, 2.7rem);
      line-height: 1.1;
      letter-spacing: -0.035em;
    }

    .tag-index-page .section-heading p {
      max-width: 680px;
      margin: 0;
      color: var(--muted);
    }

    .tag-index-page .directory-badge {
      flex: 0 0 auto;
      padding: 8px 12px;
      color: var(--theme);
      background: var(--theme-soft);
      border: 1px solid #c8d8f0;
      border-radius: 999px;
      font-size: 0.78rem;
      font-weight: 820;
      letter-spacing: 0.05em;
      text-transform: uppercase;
    }

    .tag-index-page .tag-cloud-panel {
      position: relative;
      padding: clamp(25px, 5vw, 48px);
      overflow: hidden;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 24px;
      box-shadow: var(--shadow);
    }

    .tag-index-page .tag-cloud-panel::after {
      position: absolute;
      right: -90px;
      bottom: -110px;
      width: 260px;
      height: 260px;
      content: "";
      background: radial-gradient(circle, rgba(11, 61, 145, 0.11), transparent 68%);
      pointer-events: none;
    }

    .tag-index-page .tag-cloud {
      position: relative;
      z-index: 1;
      display: flex;
      flex-wrap: wrap;
      align-items: centre;
      justify-content: centre;
      gap: 13px;
    }

    .tag-index-page .tag-chip {
      min-height: 48px;
      padding: 11px 17px;
      display: inline-flex;
      align-items: centre;
      gap: 9px;
      color: #233554;
      background: #f8faff;
      border: 1px solid #dbe3f0;
      border-radius: 999px;
      font-weight: 760;
      transition: color 0.2s ease, background 0.2s ease, border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
    }

    .tag-index-page .tag-chip:nth-child(4n+1) {
      color: #ffffff;
      background: var(--theme);
      border-color: var(--theme);
      font-size: 1.05rem;
    }

    .tag-index-page .tag-chip:nth-child(4n+2) {
      border-color: #e2c56f;
    }

    .tag-index-page .tag-chip:nth-child(6n) {
      color: #ffffff;
      background: #8d1729;
      border-color: #8d1729;
    }

    .tag-index-page .tag-chip:hover {
      color: #ffffff;
      background: var(--scarlet);
      border-color: var(--scarlet);
      box-shadow: 0 12px 24px rgba(181, 23, 47, 0.18);
      transform: translateY(-3px);
    }

    .tag-index-page .tag-count {
      min-width: 25px;
      height: 25px;
      padding: 0 7px;
      display: inline-flex;
      align-items: centre;
      justify-content: centre;
      color: inherit;
      background: rgba(255, 255, 255, 0.18);
      border: 1px solid currentColor;
      border-radius: 999px;
      font-size: 0.7rem;
      line-height: 1;
      opacity: 0.78;
    }

    .tag-index-page .guide-strip {
      margin-top: 28px;
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 18px;
    }

    .tag-index-page .guide-card {
      padding: 24px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 17px;
    }

    .tag-index-page .guide-card span {
      width: 40px;
      height: 40px;
      margin-bottom: 17px;
      display: inline-flex;
      align-items: centre;
      justify-content: centre;
      color: #ffffff;
      background: var(--theme);
      border-radius: 11px;
      font-weight: 850;
    }

    .tag-index-page .guide-card:nth-child(2) span {
      background: var(--gold);
      color: #302306;
    }

    .tag-index-page .guide-card:nth-child(3) span {
      background: var(--scarlet);
    }

    .tag-index-page .guide-card h3 {
      margin: 0 0 8px;
      color: #19263e;
      font-size: 1.05rem;
    }

    .tag-index-page .guide-card p {
      margin: 0;
      color: var(--muted);
      font-size: 0.9rem;
    }

    .tag-index-page .responsible-panel {
      margin-top: 34px;
      padding: 28px;
      display: flex;
      align-items: centre;
      justify-content: space-between;
      gap: 28px;
      color: #ffffff;
      background: #101a2d;
      border-radius: 18px;
    }

    .tag-index-page .responsible-panel h2 {
      margin: 0 0 8px;
      font-size: 1.35rem;
    }

    .tag-index-page .responsible-panel p {
      max-width: 760px;
      margin: 0;
      color: #cbd4e3;
      font-size: 0.9rem;
    }

    .tag-index-page .responsible-panel a {
      flex: 0 0 auto;
      min-height: 44px;
      padding: 10px 17px;
      display: inline-flex;
      align-items: centre;
      justify-content: centre;
      color: #162033;
      background: var(--gold);
      border-radius: 10px;
      font-weight: 850;
      white-space: nowrap;
    }

    .footer {
      padding: 58px 0 0;
      color: #cbd5e6;
      background: #07152b;
    }

    .footer-grid {
      display: grid;
      grid-template-columns: 1.55fr repeat(3, 1fr);
      gap: 42px;
    }

    .footer h3 {
      margin: 0 0 15px;
      color: #ffffff;
      font-size: 0.92rem;
      letter-spacing: 0.03em;
    }

    .footer-brand strong {
      display: block;
      margin-bottom: 13px;
      color: #ffffff;
      font-size: 1.25rem;
    }

    .footer p {
      margin: 0 0 11px;
      color: #aebbd0;
      font-size: 0.85rem;
    }

    .footer-grid > div:not(.footer-brand) a {
      margin-bottom: 9px;
      display: block;
      color: #b9c5d8;
      font-size: 0.86rem;
      transition: color 0.2s ease, transform 0.2s ease;
    }

    .footer-grid > div:not(.footer-brand) a:hover {
      color: #ffffff;
      transform: translateX(3px);
    }

    .footer-bottom {
      margin-top: 44px;
      padding: 20px 0;
      display: flex;
      align-items: centre;
      justify-content: space-between;
      gap: 20px;
      color: #91a1ba;
      border-top: 1px solid rgba(255, 255, 255, 0.1);
      font-size: 0.78rem;
    }

    @media (max-width: 1120px) {
      .main-nav {
        display: none;
      }

      .hamburger {
        display: flex;
      }

      .header-inner {
        justify-content: space-between;
      }

      .header-btns {
        margin-left: auto;
      }
    }

    @media (max-width: 820px) {
      .topbar .container {
        padding: 8px 0;
        align-items: flex-start;
      }

      .topbar-links {
        align-items: flex-end;
        flex-direction: column;
        gap: 2px;
      }

      .tag-index-page .tag-hero-inner {
        padding: 66px 0 70px;
      }

      .tag-index-page .section-heading {
        align-items: flex-start;
        flex-direction: column;
      }

      .tag-index-page .guide-strip {
        grid-template-columns: 1fr;
      }

      .tag-index-page .responsible-panel {
        align-items: flex-start;
        flex-direction: column;
      }

      .footer-grid {
        grid-template-columns: repeat(2, minmax(0, 1fr));
      }
    }

    @media (max-width: 600px) {
      .container {
        width: min(100% - 28px, 1180px);
      }

      .topbar .container {
        flex-direction: column;
        gap: 4px;
      }

      .topbar-links {
        width: 100%;
        align-items: flex-start;
      }

      .topbar-links span {
        display: none;
      }

      .header-inner {
        min-height: 68px;
        gap: 10px;
      }

      .logo {
        min-width: 0;
        flex: 1;
      }

      .logo img {
        width: 37px;
        height: 37px;
      }

      .logo span {
        max-width: 145px;
        overflow: hidden;
        text-overflow: ellipsis;
        white-space: nowrap;
      }

      .member-link {
        display: none;
      }

      .account-link {
        padding: 8px 10px;
        font-size: 0.75rem;
      }

      .tag-index-page h1 {
        font-size: clamp(2.35rem, 15vw, 3.7rem);
      }

      .tag-index-page .tag-cloud-panel {
        padding: 24px 16px;
        border-radius: 18px;
      }

      .tag-index-page .tag-cloud {
        gap: 9px;
        justify-content: flex-start;
      }

      .tag-index-page .tag-chip {
        min-height: 42px;
        padding: 9px 13px;
        font-size: 0.86rem;
      }

      .footer-grid {
        grid-template-columns: 1fr;
        gap: 28px;
      }

      .footer-bottom {
        align-items: flex-start;
        flex-direction: column;
      }
    }