:root {
      --navy: #061b3e;
      --navy2: #0b2854;
      --navy3: #0e3768;
      --blue: #2e62ad;
      --gold: #efb62b;
      --teal: #12a8a6;
      --text: #142b47;
      --muted: #71829a;
      --line: #e4ebf4;
      --bg: #f4f7fc;
      --card: #fff;
      --shadow: 0 12px 34px rgba(13, 40, 74, .055)
    }

    * {
      box-sizing: border-box
    }

    html {
      scroll-behavior: smooth
    }

    body {
      margin: 0;
      background: var(--bg);
      font-family: Inter, 'Segoe UI', Arial, sans-serif;
      color: var(--text);
      font-size: 14px
    }

    button,
    input,
    select,
    textarea {
      font: inherit
    }

    button {
      cursor: pointer
    }

    button:disabled {
      opacity: .45;
      cursor: not-allowed
    }

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

    svg {
      flex-shrink: 0
    }

    img {
      object-fit: cover
    }

    .app-shell {
      display: flex;
      min-height: 100vh
    }

    .sidebar {
      position: fixed;
      top: 0;
      left: 0;
      bottom: 0;
      width: 252px;
      background: #001b4c;
      color: #d6e2f6;
      display: flex;
      flex-direction: column;
      z-index: 15;
      padding: 24px 15px;
      box-shadow: 12px 0 35px rgba(7, 25, 59, .07)
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 10px;
      padding: 2px 10px 26px;
      border-bottom: 1px solid #ffffff16
    }

    .brand-emblem {
      width: 43px;
      height: 43px;
      border-radius: 13px;
      background: #ffffff16;
      display: grid;
      place-items: center;
      flex-shrink: 0;
      position: relative;
      color: white;
      font-weight: 900;
      font-size: 20px
    }

    .brand-emblem:after {
      content: '★';
      font-size: 10px;
      color: var(--gold);
      position: absolute;
      right: 5px;
      bottom: 6px
    }

    .brand-name {
      font-size: 19px;
      font-weight: 850;
      letter-spacing: .6px;
      color: #fff;
      line-height: 1.1
    }

    .brand-caption {
      font-size: 10px;
      letter-spacing: 1.5px;
      color: #9eb9dc;
      margin-top: 5px;
      font-weight: 700
    }

    .nav-section {
      margin: 26px 12px 10px;
      color: #718aa9;
      font-size: 10px;
      font-weight: 800;
      letter-spacing: 1.7px
    }

    .nav {
      display: flex;
      flex-direction: column;
      gap: 5px
    }

    .nav button {
      background: transparent;
      border: none;
      color: #bacbe4;
      text-align: left;
      display: flex;
      align-items: center;
      gap: 13px;
      padding: 13px 14px;
      border-radius: 11px;
      font-size: 13.5px;
      font-weight: 650;
      transition: .18s
    }

    .nav button:hover {
      background: #ffffff14;
      color: #fff
    }

    .nav button.active {
      background: linear-gradient(110deg, #123b73, #0d2b55);
      color: white;
      box-shadow: inset 3px 0 0 var(--gold)
    }

    .nav button.active .nav-ico {
      color: var(--gold)
    }

    .nav-ico {
      display: grid;
      place-items: center;
      opacity: .93
    }

    .nav svg {
      width: 18px;
      height: 18px
    }

    .aside-bottom {
      margin-top: auto;
      padding: 18px 13px 0;
      border-top: 1px solid #ffffff20
    }

    .aside-bottom .flag {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      color: #8fe1db;
      font-size: 11px;
      font-weight: 800;
      letter-spacing: .5px
    }

    .flag i {
      height: 8px;
      width: 8px;
      border-radius: 50%;
      background: #29c6b8;
      box-shadow: 0 0 0 4px #29c6b825
    }

    .aside-bottom p {
      font-size: 11px;
      color: #889dbe;
      line-height: 1.6;
      margin: 10px 0
    }

    .aside-bottom button {
      width: 100%;
      text-align: center;
      background: #ffffff12;
      border: 1px solid #ffffff24;
      border-radius: 10px;
      color: #dbe8fb;
      padding: 10px;
      font-size: 12px;
      font-weight: 700
    }

    .main {
      margin-left: 252px;
      width: calc(100% - 252px);
      min-width: 0
    }

    .topbar {
      height: 79px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 20px;
      padding: 0 35px;
      background: #ffffffd9;
      border-bottom: 1px solid var(--line);
      position: sticky;
      top: 0;
      z-index: 10;
      backdrop-filter: blur(15px)
    }

    .breadcrumb {
      font-size: 12px;
      color: #93a2b6
    }

    .breadcrumb strong {
      display: block;
      color: #17345b;
      font-size: 17px;
      margin-top: 2px;
      font-weight: 800
    }

    .top-actions {
      display: flex;
      align-items: center;
      gap: 10px
    }

    .chip {
      display: inline-flex;
      align-items: center;
      gap: 8px;
      border: 1px solid #dfebf4;
      background: #f5f8fd;
      color: #51708d;
      border-radius: 999px;
      padding: 8px 12px;
      font-size: 11px;
      font-weight: 760;
      white-space: nowrap
    }

    .chip-demo {
      background: #fff7e7;
      border-color: #ffebc2;
      color: #9b6e13
    }

    .avatar-mini {
      width: 34px;
      height: 34px;
      border-radius: 11px;
      background: var(--navy);
      color: white;
      display: grid;
      place-items: center;
      font-weight: 800
    }

    .content {
      max-width: 1450px;
      margin: 0 auto;
      padding: 27px 34px 55px
    }

    .page-header {
      display: flex;
      justify-content: space-between;
      align-items: flex-end;
      gap: 20px;
      margin-bottom: 24px
    }

    .eyebrow {
      font-size: 11px;
      text-transform: uppercase;
      letter-spacing: 2.1px;
      color: #6184ab;
      font-weight: 850
    }

    .page-title {
      font-size: 27px;
      letter-spacing: -.8px;
      font-weight: 860;
      margin: 7px 0 6px
    }

    .page-desc {
      font-size: 13.4px;
      color: #7d8ca1;
      line-height: 1.7;
      margin: 0;
      max-width: 750px
    }

    .btn {
      border: 1px solid #dde7f1;
      background: #fff;
      border-radius: 11px;
      padding: 11px 15px;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 9px;
      color: #193b68;
      font-size: 12px;
      font-weight: 780;
      transition: transform .15s, border-color .15s, box-shadow .15s
    }

    .btn svg {
      height: 16px;
      width: 16px
    }

    .btn:hover {
      transform: translateY(-1px);
      box-shadow: 0 6px 18px #12294d10;
      border-color: #adc6de
    }

    .btn-primary {
      background: #092956;
      border-color: #092956;
      color: white
    }

    .btn-primary:hover {
      background: #113e78
    }

    .btn-gold {
      background: var(--gold);
      border-color: var(--gold);
      color: #152749
    }

    .btn-quiet {
      background: #eef5fd;
      border-color: #e3edf6;
      color: #255383
    }

    .btn.small {
      padding: 8px 11px;
      font-size: 11px
    }

    .btn.danger {
      color: #b64c5a;
      border-color: #f4d7dd
    }

    .btnbar {
      display: flex;
      gap: 10px;
      flex-wrap: wrap
    }

    .muted {
      color: var(--muted)
    }

    .section-title {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      margin: 31px 0 14px
    }

    .section-title h2 {
      font-size: 17px;
      letter-spacing: -.3px;
      margin: 0
    }

    .section-title span {
      font-size: 12px;
      color: #91a0af
    }

    .stat-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 15px
    }

    .honors-stat-grid {
      width: 100%;
      max-width: none;
      margin-inline: auto;
      grid-template-columns: repeat(3, minmax(0, 1fr));
    }

    .stat {
      background: white;
      border: 1px solid var(--line);
      border-radius: 15px;
      padding: 17px 18px;
      box-shadow: var(--shadow);
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px
    }

    .stat .number {
      font-size: 25px;
      font-weight: 860;
      color: #142e51;
      letter-spacing: -1px
    }

    .stat .label {
      font-size: 11.5px;
      color: #8798ad;
      margin-top: 6px
    }

    .stat .stat-icon {
      width: 46px;
      height: 46px;
      border-radius: 13px;
      background: #edf5fc;
      color: #2c6299;
      display: grid;
      place-items: center
    }

    .stat:nth-child(2) .stat-icon {
      background: #ecfaf7;
      color: #12978c
    }

    .stat:nth-child(3) .stat-icon {
      background: #fff7e6;
      color: #c18c21
    }

    .stat:nth-child(4) .stat-icon {
      background: #f2f0ff;
      color: #7264ca
    }

    .stat-icon svg {
      width: 22px;
      height: 22px
    }

    .hero {
      min-height: 300px;
      background: radial-gradient(circle at 83% 24%, #214d84 0%, transparent 36%), linear-gradient(110deg, #061b3e, #0b3262 76%, #0e4776);
      border-radius: 21px;
      color: white;
      padding: 32px 36px;
      position: relative;
      overflow: hidden;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 30px;
      box-shadow: 0 18px 45px #0a2a5c20
    }

    .hero:before {
      content: '';
      position: absolute;
      inset: 0;
      background-image: radial-gradient(#b7d9ff55 1px, transparent 1px);
      background-size: 23px 23px;
      opacity: .19;
      mask-image: linear-gradient(90deg, transparent 26%, black)
    }

    .hero-content {
      position: relative;
      z-index: 1;
      max-width: 570px
    }

    .hero-mark {
      color: #f1c65d;
      font-size: 11px;
      letter-spacing: 2px;
      font-weight: 800;
      text-transform: uppercase
    }

    .hero h1 {
      font-size: clamp(26px, 3.3vw, 40px);
      line-height: 1.17;
      letter-spacing: -1.3px;
      margin: 14px 0 12px;
      font-weight: 900
    }

    .hero h1 em {
      font-style: normal;
      color: #f1bb39
    }

    .hero p {
      line-height: 1.7;
      color: #c4d6ed;
      font-size: 13px;
      max-width: 505px;
      margin: 0 0 22px
    }

    .hero-visual {
      height: 245px;
      width: 340px;
      min-width: 260px;
      position: relative;
      z-index: 1
    }

    .orbit {
      position: absolute;
      border: 1px solid #ffffff26;
      border-radius: 50%;
      inset: 22px 14px;
      transform: rotate(-22deg)
    }

    .orbit:nth-child(2) {
      inset: 52px 4px;
      transform: rotate(26deg)
    }

    .orb-center {
      width: 112px;
      height: 112px;
      position: absolute;
      left: 114px;
      top: 69px;
      border-radius: 50%;
      border: 1px solid #ffffff40;
      background: radial-gradient(circle, #245a90, #0c2c56);
      box-shadow: 0 0 0 12px #ffffff08, 0 0 60px #5fb8fd20;
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden
    }

    .orb-center img {
      width: 96px;
      height: 96px;
      border-radius: 50%;
      object-fit: contain;
      background: #fff
    }

    .orb-center b {
      color: #f2c457;
      font-size: 23px
    }

    .orb {
      position: absolute;
      width: 41px;
      height: 41px;
      background: #fff;
      border: 4px solid #204a78;
      border-radius: 14px;
      display: grid;
      place-items: center;
      box-shadow: 0 10px 25px #05132d70;
      font-size: 17px;
      color: #10335d
    }

    .orb.a {
      top: 10px;
      left: 59px
    }

    .orb.b {
      top: 5px;
      right: 43px
    }

    .orb.c {
      bottom: 7px;
      left: 35px
    }

    .orb.d {
      right: 0;
      bottom: 24px
    }

    .orb.e {
      top: 110px;
      left: 0
    }

    .dash-columns {
      display: grid;
      grid-template-columns: 1.5fr 1fr;
      gap: 18px
    }

    .panel {
      background: white;
      border: 1px solid var(--line);
      border-radius: 17px;
      box-shadow: var(--shadow);
      padding: 22px
    }

    .panel-head {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px
    }

    .panel h3 {
      margin: 0;
      font-size: 16px;
      letter-spacing: -.2px
    }

    .panel p {
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.7
    }

    .steps {
      display: flex;
      gap: 14px;
      margin-top: 21px
    }

    .step {
      flex: 1;
      min-width: 0;
      background: #f6f9fd;
      border: 1px solid #e6edf6;
      border-radius: 14px;
      padding: 16px
    }

    .step-num {
      font-size: 11px;
      color: #b68420;
      font-weight: 800
    }

    .step b {
      display: block;
      font-size: 12.5px;
      margin: 8px 0
    }

    .step p {
      margin: 0;
      font-size: 11.5px;
      line-height: 1.6
    }

    .sample-list {
      display: flex;
      flex-direction: column;
      gap: 10px;
      margin-top: 14px
    }

    .sample-row {
      display: flex;
      align-items: center;
      gap: 10px;
      border: 1px solid #ecf0f5;
      padding: 9px 10px;
      border-radius: 11px
    }

    .sample-row img {
      height: 43px;
      width: 43px;
      border-radius: 10px;
      background: #eef3f9
    }

    .sample-row b {
      font-size: 11.8px;
      display: block
    }

    .sample-row small {
      display: block;
      color: #8ea0b2;
      margin-top: 4px
    }

    .sample-row .go {
      margin-left: auto;
      color: #7f94ad
    }

    .grid3 {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 16px
    }

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

    .person-card {
      border: 1px solid #e3ebf4;
      background: white;
      border-radius: 17px;
      padding: 17px;
      box-shadow: var(--shadow);
      display: flex;
      flex-direction: column;
      gap: 13px;
      transition: transform .18s, box-shadow .18s
    }

    .person-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 32px #0f315b17
    }

    .person-head {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .person-avatar {
      width: 57px;
      height: 57px;
      border-radius: 13px;
      border: 1px solid #e5ecf5;
      background: #eef3fb;
      display: grid;
      place-items: center;
      color: #2d6195;
      font-size: 16px;
      font-weight: 800;
      object-fit: cover
    }

    .person-head b {
      font-size: 14px;
      display: block
    }

    .person-head small {
      font-size: 11px;
      color: #8c9bb0;
      margin-top: 5px;
      display: block
    }

    .kind-tag {
      margin-left: auto;
      font-size: 9px;
      color: #376c8e;
      border-radius: 30px;
      background: #edf7fa;
      padding: 5px 8px;
      font-weight: 800;
      letter-spacing: .3px;
      white-space: nowrap
    }

    .offerneed {
      display: flex;
      flex-direction: column;
      gap: 10px
    }

    .offerneed .row-label {
      font-size: 10px;
      font-weight: 850;
      letter-spacing: .8px;
      color: #6c8bac;
      text-transform: uppercase
    }

    .offerneed strong {
      display: block;
      font-size: 12.5px;
      margin-top: 3px;
      font-weight: 710;
      color: #304b68;
      line-height: 1.5
    }

    .tags {
      display: flex;
      flex-wrap: wrap;
      gap: 5px
    }

    .tag {
      background: #f1f5fa;
      border: 1px solid #e8edf3;
      border-radius: 6px;
      color: #58718d;
      font-size: 10px;
      padding: 4px 7px;
      font-weight: 700
    }

    .tag.teal {
      background: #ebfaf7;
      border-color: #d8f4ef;
      color: #179284
    }

    .tag.gold {
      background: #fff6e7;
      border-color: #ffe8bb;
      color: #ac7920
    }

    .search-area {
      display: flex;
      gap: 10px;
      align-items: center;
      margin: 0 0 18px
    }

    .field-search {
      background: white;
      border: 1px solid #dfe9f2;
      border-radius: 10px;
      padding: 0 14px;
      display: flex;
      align-items: center;
      gap: 8px;
      flex: 1;
      max-width: 510px
    }

    .field-search input {
      height: 43px;
      border: none;
      outline: none;
      width: 100%;
      font-size: 12px;
      color: #284466;
      background: transparent
    }

    .field-search svg {
      height: 17px;
      width: 17px;
      color: #9babbb
    }

    .select {
      border: 1px solid #dfe9f2;
      background: #fff;
      border-radius: 10px;
      padding: 12px;
      color: #335576;
      outline: none;
      min-width: 120px;
      font-size: 12px
    }

    .match-layout {
      display: grid;
      grid-template-columns: 315px minmax(0, 1fr);
      gap: 20px
    }

    .matching-profile {
      position: sticky;
      top: 100px;
      align-self: start
    }

    .match-card {
      display: grid;
      grid-template-columns: 60px 1fr auto;
      gap: 17px;
      align-items: center;
      border: 1px solid #e4edf5;
      border-radius: 14px;
      padding: 18px;
      margin-bottom: 13px;
      background: white;
      box-shadow: var(--shadow)
    }

    .match-card h3 {
      margin: 0 0 5px;
      font-size: 15px
    }

    .match-card p {
      margin: 0 0 9px;
      font-size: 12px;
      color: #8193a8;
      line-height: 1.6
    }

    .score {
      font-size: 26px;
      font-weight: 850;
      color: #128a7c;
      text-align: center
    }

    .score small {
      font-size: 10px;
      font-weight: 700;
      color: #8a9caf;
      display: block;
      margin-top: 2px
    }

    .progress {
      height: 6px;
      background: #e9f2f2;
      border-radius: 6px;
      overflow: hidden;
      margin: 8px 0 0
    }

    .progress span {
      display: block;
      height: 100%;
      background: linear-gradient(90deg, #11a6aa, #5dd5bc);
      border-radius: 6px
    }

    .empty {
      border: 1px dashed #cddce8;
      border-radius: 16px;
      background: #ffffffa8;
      padding: 42px 24px;
      text-align: center;
      color: #7a8fa5
    }

    .empty svg {
      width: 35px;
      height: 35px;
      color: #8eabc7;
      margin-bottom: 10px
    }

    .empty b {
      display: block;
      color: #315273;
      font-size: 15px
    }

    .empty p {
      margin: 10px auto 19px;
      max-width: 420px;
      line-height: 1.7;
      font-size: 12px
    }

    .row-flex {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 15px
    }

    .status {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      border-radius: 30px;
      padding: 6px 10px;
      font-size: 10px;
      font-weight: 850;
      background: #eef4fb;
      color: #4774a1
    }

    .status.pending {
      background: #fff6e6;
      color: #a3761f
    }

    .status.scheduled {
      background: #eaf6fe;
      color: #2582ad
    }

    .status.completed {
      background: #e7f8f1;
      color: #13916e
    }

    .connection-card {
      background: white;
      border: 1px solid var(--line);
      border-radius: 15px;
      padding: 17px;
      display: flex;
      align-items: center;
      gap: 15px;
      margin: 12px 0
    }

    .connection-card .between {
      font-size: 22px;
      color: #d6a438
    }

    .connection-card .people {
      display: flex;
      align-items: center;
      gap: 9px;
      flex: 1
    }

    .connection-card .people b {
      font-size: 13px
    }

    .connection-card p {
      font-size: 11px;
      color: #8c9fb0;
      margin: 5px 0 0
    }

    .connection-card .actions {
      display: flex;
      align-items: center;
      gap: 9px
    }

    .network-wrap {
      background: radial-gradient(circle at 50% 50%, #0d2647 0%, #08172c 55%, #050f1d 100%);
      border-radius: 20px;
      overflow: hidden;
      position: relative;
      box-shadow: 0 20px 50px rgba(4, 13, 26, 0.5), inset 0 0 0 1px rgba(255, 255, 255, 0.08);
      margin-bottom: 24px;
    }

    .network-top-bar {
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      padding: 20px 18px 12px;
      position: relative;
      z-index: 5;
    }

    .network-toggle-pill {
      display: inline-flex;
      align-items: center;
      background: rgba(10, 26, 48, 0.85);
      border: 1px solid rgba(255, 255, 255, 0.16);
      border-radius: 9999px;
      padding: 4px;
      gap: 4px;
      box-shadow: 0 4px 20px rgba(0, 0, 0, 0.4);
      backdrop-filter: blur(8px);
    }

    .network-toggle-btn {
      border: none;
      border-radius: 9999px;
      height: 36px;
      padding: 0 22px;
      font-size: 13.5px;
      font-weight: 500;
      line-height: 1;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      transition: all 0.2s cubic-bezier(0.4, 0, 0.2, 1);
      background: transparent;
      color: #cbd5e1;
      white-space: nowrap;
      user-select: none;
    }

    .network-toggle-btn svg {
      width: 16px !important;
      height: 16px !important;
      max-width: 16px !important;
      max-height: 16px !important;
      min-width: 16px !important;
      min-height: 16px !important;
      display: block !important;
      flex-shrink: 0 !important;
      overflow: hidden !important;
      stroke: currentColor !important;
    }

    .network-toggle-btn .toggle-label {
      line-height: 1;
      display: inline-block;
    }

    .network-toggle-btn:hover {
      color: #ffffff;
    }

    .network-toggle-btn.active {
      background: linear-gradient(135deg, #fcd34d 0%, #f59e0b 100%) !important;
      color: #0b192c !important;
      font-weight: 700 !important;
      box-shadow: 0 0 16px rgba(245, 158, 11, 0.45) !important;
    }

    .network-toggle-btn.active .toggle-icon,
    .network-toggle-btn.active svg {
      stroke: #0b192c !important;
    }

    .network-filter-strip {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 7px;
      flex-wrap: wrap;
      margin-top: 14px;
      max-width: 920px;
      padding: 0 10px;
    }

    .network-filter-chip {
      background: rgba(255, 255, 255, 0.06);
      border: 1px solid rgba(255, 255, 255, 0.12);
      color: #cbd5e1;
      padding: 5px 12px;
      border-radius: 20px;
      font-size: 11.5px;
      cursor: pointer;
      transition: all 0.2s ease;
    }

    .network-filter-chip:hover {
      background: rgba(255, 255, 255, 0.14);
      color: #ffffff;
    }

    .network-filter-chip.active {
      background: #2563eb;
      border-color: #60a5fa;
      color: #ffffff;
      font-weight: 600;
    }

    .network-wrap > svg,
    .network-wrap .network-map-svg {
      width: 100%;
      height: auto;
      display: block;
    }

    .network-bottom-caption {
      text-align: center;
      font-size: 12px;
      color: #7492b3;
      padding: 8px 16px 14px;
      letter-spacing: 0.2px;
    }

    .network-legend {
      display: flex;
      gap: 24px;
      align-items: center;
      justify-content: center;
      flex-wrap: wrap;
      padding: 13px 20px;
      background: rgba(6, 17, 34, 0.95);
      border-top: 1px solid rgba(255, 255, 255, 0.06);
      color: #9cb4cf;
      font-size: 12px;
    }

    .member-roster-grid {
      display: grid;
      grid-template-columns: repeat(auto-fill, minmax(290px, 1fr));
      gap: 14px;
      margin-top: 16px;
    }

    .member-roster-card {
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 12px;
      padding: 14px 16px;
      display: flex;
      align-items: center;
      gap: 14px;
      transition: all 0.2s ease;
      box-shadow: 0 2px 6px rgba(0, 0, 0, 0.03);
    }

    .member-roster-card:hover {
      border-color: #93c5fd;
      transform: translateY(-2px);
      box-shadow: 0 6px 14px rgba(37, 99, 235, 0.08);
    }

    .dot {
      display: inline-block;
      width: 9px;
      height: 9px;
      border-radius: 50%;
      margin-right: 5px
    }

    .note {
      border-left: 3px solid #dfa52c;
      background: #fffaf0;
      color: #77633d;
      padding: 13px 16px;
      border-radius: 5px 11px 11px 5px;
      font-size: 12px;
      line-height: 1.6
    }

    .knowledge-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 15px;
      padding: 19px;
      display: flex;
      flex-direction: column;
      gap: 13px;
      min-height: 182px
    }

    .knowledge-card .knowledge-ico {
      width: 43px;
      height: 43px;
      background: #edf5fb;
      color: #28629b;
      border-radius: 11px;
      display: grid;
      place-items: center
    }

    .knowledge-card h3 {
      font-size: 14px;
      line-height: 1.5;
      margin: 0
    }

    .knowledge-card p {
      margin: 0;
      font-size: 12px;
      color: var(--muted);
      line-height: 1.7
    }

    .knowledge-controls {
      display: grid;
      grid-template-columns: minmax(0, 1fr) repeat(2, minmax(150px, 190px));
      gap: 12px;
      align-items: center;
      margin: 14px 0
    }

    .knowledge-controls .field-search {
      max-width: none
    }

    .knowledge-controls .select {
      display: flex;
      flex-direction: column;
      gap: 4px;
      padding: 7px 10px
    }

    .knowledge-controls .select span {
      font-size: 10px;
      color: var(--muted)
    }

    .knowledge-controls .select select {
      border: 0;
      outline: 0;
      width: 100%;
      color: var(--text);
      background: transparent;
      font-size: 12px
    }

    .knowledge-detail {
      display: grid;
      gap: 14px
    }

    .knowledge-detail section h3 {
      margin: 0 0 6px;
      font-size: 13px
    }

    .knowledge-detail section p,
    .knowledge-detail > p {
      margin: 0;
      line-height: 1.7;
      overflow-wrap: anywhere
    }

    .reward-card {
      border: 1px solid var(--line);
      border-radius: 16px;
      background: #fff;
      padding: 23px;
      min-height: 173px
    }

    .reward-icon {
      background: #fffbef;
      width: 50px;
      height: 50px;
      display: grid;
      place-items: center;
      border-radius: 13px;
      color: #b98a25;
      margin-bottom: 13px
    }

    .reward-card h3 {
      margin: 0 0 8px;
      font-size: 15px
    }

    .reward-card p {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.65;
      margin: 0
    }

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

    .form-tile {
      border: 1px solid #dfebf3;
      background: #fff;
      border-radius: 16px;
      padding: 24px;
      position: relative;
      overflow: hidden;
    }

    .form-tile > * {
      position: relative;
      z-index: 1;
    }

    .form-tile:after {
      content: '';
      position: absolute;
      right: -36px;
      top: -40px;
      width: 145px;
      height: 145px;
      border-radius: 50%;
      background: #f0f6fb;
      z-index: 0;
      pointer-events: none;
    }

    .form-tile .form-number {
      font-size: 10px;
      letter-spacing: 1.6px;
      font-weight: 800;
      color: #a6b4c0
    }

    .form-tile h3 {
      font-size: 19px;
      margin: 14px 0 8px
    }

    .form-tile p {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.8;
      max-width: 420px;
      margin-bottom: 20px
    }

    .settings-form {
      display: grid;
      grid-template-columns: 1fr;
      gap: 15px;
      max-width: 780px
    }

    .field label {
      display: block;
      font-weight: 750;
      font-size: 11.5px;
      margin: 0 0 7px;
      color: #2f5172
    }

    .field input,
    .field select,
    .field textarea {
      width: 100%;
      background: #fff;
      border: 1px solid #d9e5ef;
      border-radius: 10px;
      padding: 12px 13px;
      color: #203f5f;
      outline: none;
      font-size: 12px
    }

    .field textarea {
      min-height: 90px;
      resize: vertical
    }

    .field input:focus,
    .field textarea:focus,
    .field select:focus {
      border-color: #5f91bf;
      box-shadow: 0 0 0 3px #1d649a14
    }

    .field small {
      font-size: 10px;
      color: #94a5b4;
      line-height: 1.6;
      display: block;
      margin-top: 6px
    }

    .field-grid {
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 13px
    }

    .checkline {
      display: flex;
      gap: 8px;
      align-items: flex-start;
      font-size: 12px;
      color: #55718e;
      line-height: 1.6
    }

    .checkline input {
      accent-color: #0c5a8d;
      margin-top: 4px
    }

    .modal-backdrop {
      position: fixed;
      inset: 0;
      background: #071a35aa;
      backdrop-filter: blur(6px);
      z-index: 50;
      display: none;
      align-items: center;
      justify-content: center;
      padding: 18px
    }

    .modal-backdrop.open {
      display: flex
    }

    .modal {
      background: white;
      border-radius: 19px;
      box-shadow: 0 28px 100px #061b3e7a;
      width: min(720px, 100%);
      max-height: 92vh;
      overflow: auto;
      position: relative;
      animation: rise .23s ease
    }

    .modal-head {
      padding: 25px 28px 18px;
      border-bottom: 1px solid var(--line);
      display: flex;
      align-items: start;
      justify-content: space-between;
      gap: 12px
    }

    .modal-head h2 {
      font-size: 20px;
      margin: 4px 0 0
    }

    .modal-body {
      padding: 24px 28px
    }

    .modal-close {
      border: none;
      border-radius: 9px;
      background: #eff3f8;
      height: 34px;
      width: 34px;
      display: grid;
      place-items: center
    }

    .modal-foot {
      padding: 15px 28px 24px;
      display: flex;
      gap: 10px;
      justify-content: flex-end
    }

    .toastbox {
      position: fixed;
      right: 22px;
      bottom: 22px;
      z-index: 99;
      display: flex;
      flex-direction: column;
      gap: 8px
    }

    .toast {
      padding: 14px 17px;
      border-radius: 13px;
      color: white;
      background: #0a2a55;
      box-shadow: 0 12px 34px #132d4d40;
      font-size: 12px;
      animation: rise .2s ease;
      max-width: 380px
    }

    .toast.good {
      background: #0b796b
    }

    .toast.warn {
      background: #966619
    }

    .mobile-toggle {
      display: none
    }

    .footer {
      margin-top: 30px;
      padding-top: 17px;
      border-top: 1px solid #e0e8f1;
      color: #9aacba;
      font-size: 10.5px;
      display: flex;
      justify-content: space-between;
      gap: 15px
    }

    .kv {
      display: grid;
      grid-template-columns: 120px 1fr;
      gap: 12px;
      padding: 10px 0;
      border-bottom: 1px solid #eff2f7;
      font-size: 12px
    }

    .kv span {
      color: #8d9db0
    }

    .kv b {
      color: #2e4d6e
    }

    .status-banner {
      background: #fff7e8;
      color: #8e6d2d;
      border: 1px solid #f5e5bd;
      border-radius: 10px;
      padding: 11px 13px;
      font-size: 11.5px;
      margin-bottom: 18px;
      display: flex;
      gap: 9px;
      align-items: center
    }

    .lightbar {
      border-top: 1px solid var(--line);
      padding-top: 13px;
      margin-top: 15px
    }

    @keyframes rise {
      from {
        opacity: 0;
        transform: translateY(9px)
      }

      to {
        opacity: 1;
        transform: translateY(0)
      }
    }

    @keyframes pulse {

      0%,
      100% {
        opacity: .6
      }

      50% {
        opacity: 1
      }
    }

    .shine {
      animation: pulse 3s infinite
    }

    @media(max-width:1200px) {
      .grid3 {
        grid-template-columns: repeat(2, minmax(0, 1fr))
      }

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

      .honors-stat-grid {
        grid-template-columns: repeat(3, minmax(0, 1fr));
      }

      .match-layout {
        grid-template-columns: 270px 1fr
      }

      .hero-visual {
        width: 260px;
        min-width: 220px;
        transform: scale(.9);
        transform-origin: center
      }
    }

    @media(max-width:940px) {
      .sidebar {
        transform: translateX(-102%);
        transition: transform .24s;
        width: 250px
      }

      .sidebar.show {
        transform: translateX(0)
      }

      .main {
        width: 100%;
        margin-left: 0
      }

      .mobile-toggle {
        display: inline-flex
      }

      .topbar {
        padding: 0 20px
      }

      .content {
        padding: 22px 18px 40px
      }

      .dash-columns,
      .match-layout {
        grid-template-columns: 1fr
      }

      .matching-profile {
        position: static
      }

      .hero-visual {
        display: none
      }

      .hero {
        min-height: 245px
      }
    }

    @media(max-width:620px) {
      .honors-stat-grid {
        width: 100%;
        grid-template-columns: 1fr;
      }

      .knowledge-controls {
        grid-template-columns: 1fr
      }

      .hero {
        padding: 25px
      }

      .hero h1 {
        font-size: 29px
      }

      .stat-grid,
      .grid3,
      .grid2,
      .form-grid,
      .field-grid {
        grid-template-columns: 1fr
      }

      .steps {
        flex-direction: column
      }

      .topbar {
        height: 65px
      }

      .top-actions .chip-demo {
        display: none
      }

      .page-title {
        font-size: 22px
      }

      .page-header {
        flex-direction: column;
        align-items: flex-start
      }

      .match-card {
        grid-template-columns: 48px 1fr;
        gap: 10px
      }

      .match-card .score {
        grid-column: 2;
        text-align: left;
        font-size: 19px
      }

      .connection-card {
        flex-direction: column;
        align-items: stretch
      }

      .form-tile {
        padding: 20px
      }

      .footer {
        display: block
      }

      .hero p {
        font-size: 12px
      }
    }

    @media(prefers-reduced-motion:reduce) {

      *,
      *:before,
      *:after {
        animation: none !important;
        scroll-behavior: auto !important;
        transition: none !important
      }
    }

    .fireworks-layer {
      position: fixed;
      inset: 0;
      pointer-events: none;
      z-index: 120;
      mix-blend-mode: screen
    }

    .gate-layout {
      display: grid;
      grid-template-columns: 1.45fr .95fr;
      gap: 18px
    }

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

    .gate-card {
      background: #fff;
      border: 1px solid var(--line);
      border-radius: 18px;
      box-shadow: var(--shadow);
      padding: 17px;
      display: flex;
      flex-direction: column;
      gap: 12px;
      position: relative;
      overflow: hidden
    }

    .gate-card:before {
      content: '';
      position: absolute;
      inset: 0 auto auto 0;
      width: 100%;
      height: 4px;
      background: linear-gradient(90deg, #2f6dd0, #f2c657, #47d7c7);
      opacity: .95
    }

    .gate-head {
      display: flex;
      align-items: center;
      gap: 12px
    }

    .gate-meta {
      font-size: 11px;
      color: #8aa0b5;
      margin-top: 4px
    }

    .gate-status {
      margin-left: auto;
      font-size: 10px;
      font-weight: 800;
      border-radius: 999px;
      padding: 7px 10px;
      letter-spacing: .3px;
      white-space: nowrap;
      border: 1px solid #dce8f4;
      background: #f5f8fd;
      color: #48688b
    }

    .gate-status.passed {
      background: #ecfbf4;
      border-color: #cdeedc;
      color: #167953
    }

    .gate-status.valid {
      background: #eef5ff;
      border-color: #d8e4fb;
      color: #325ea3
    }

    .gate-status.reviewing {
      background: #fff6e8;
      border-color: #f5e2b9;
      color: #a06a09
    }

    .gate-status.revise {
      background: #fff1f0;
      border-color: #f3d0ca;
      color: #b24c45
    }

    .gate-status.pending {
      background: #f7f8fb;
      border-color: #e5e9f0;
      color: #7f8e9f
    }

    .gate-status.failed {
      background: #fbefef;
      border-color: #f1d4d4;
      color: #ab4343
    }

    .gate-card h3 {
      font-size: 15px;
      margin: 0
    }

    .gate-card p {
      margin: 0;
      font-size: 12.5px;
      line-height: 1.65;
      color: #6f8195
    }

    .gate-kv {
      display: grid;
      gap: 10px
    }

    .gate-kv div {
      border: 1px dashed #e4ebf4;
      border-radius: 12px;
      padding: 10px 12px;
      background: #fbfdff
    }

    .gate-kv span {
      display: block;
      font-size: 10px;
      color: #7f91a7;
      font-weight: 800;
      letter-spacing: .45px;
      text-transform: uppercase;
      margin-bottom: 4px
    }

    .gate-actions {
      display: flex;
      gap: 9px;
      flex-wrap: wrap;
      margin-top: auto
    }

    .gate-banner {
      background: linear-gradient(120deg, #091f47, #0d315f 68%, #123f73);
      color: #fff;
      border-radius: 21px;
      padding: 24px;
      position: relative;
      overflow: hidden;
      box-shadow: 0 18px 45px rgba(10, 42, 92, .20)
    }

    .gate-banner:after {
      content: '';
      position: absolute;
      right: -80px;
      top: -50px;
      width: 240px;
      height: 240px;
      border-radius: 50%;
      background: radial-gradient(circle, #ffffff18, transparent 64%)
    }

    .gate-banner h2 {
      margin: 8px 0 10px;
      font-size: 27px;
      line-height: 1.2;
      letter-spacing: -.8px
    }

    .gate-banner p {
      color: #d2dff0;
      max-width: 670px;
      line-height: 1.7;
      font-size: 13px
    }

    .gate-strip {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 12px;
      margin-top: 16px
    }

    .gate-step {
      background: #ffffff10;
      border: 1px solid #ffffff16;
      border-radius: 14px;
      padding: 14px
    }

    .gate-step b {
      display: block;
      margin: 8px 0 4px;
      font-size: 12px;
      color: #fff
    }

    .gate-step small {
      display: block;
      line-height: 1.6;
      color: #c6d7eb
    }

    .gate-principles {
      display: grid;
      gap: 10px;
      margin-top: 16px
    }

    .gate-principles .rule {
      display: flex;
      gap: 10px;
      align-items: flex-start;
      border: 1px solid #e7eef6;
      background: #fbfdff;
      border-radius: 12px;
      padding: 12px
    }

    .gate-principles .rule .mini {
      width: 28px;
      height: 28px;
      border-radius: 10px;
      background: #eff5fd;
      color: #27558b;
      display: grid;
      place-items: center;
      font-weight: 900;
      flex-shrink: 0
    }

    .gate-mini-stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
      margin-top: 16px
    }

    .gate-mini {
      background: #fff;
      border: 1px solid #e6edf5;
      border-radius: 14px;
      padding: 13px
    }

    .gate-mini b {
      display: block;
      font-size: 22px;
      color: #193b68
    }

    .gate-mini small {
      display: block;
      margin-top: 6px;
      color: #7f91a7;
      font-size: 11px
    }

    .gate-legend {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-top: 14px
    }

    .gate-legend span {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      border: 1px solid #e2ebf5;
      border-radius: 999px;
      padding: 6px 10px;
      font-size: 11px;
      color: #57728f;
      background: #fff
    }

    .gate-legend i {
      width: 8px;
      height: 8px;
      border-radius: 50%;
      display: inline-block
    }

    .gate-note {
      font-size: 12px;
      line-height: 1.7;
      color: #70839a;
      margin-top: 10px
    }

    .timeline-box {
      display: grid;
      gap: 12px
    }

    .timeline-card {
      border: 1px solid #e4ebf4;
      background: #fbfdff;
      border-radius: 14px;
      padding: 14px
    }

    .timeline-card b {
      display: block;
      font-size: 13px;
      margin-bottom: 6px
    }

    .timeline-card p {
      font-size: 12px;
      line-height: 1.65;
      color: #71849a;
      margin: 0
    }

    .pulse-star {
      display: inline-grid;
      place-items: center;
      width: 34px;
      height: 34px;
      border-radius: 12px;
      background: #ffffff16;
      color: #ffd25c;
      box-shadow: 0 0 0 10px #ffffff08, 0 0 25px rgba(255, 210, 92, .18)
    }

    @media (max-width:1180px) {
      .gate-layout {
        grid-template-columns: 1fr
      }

      .gate-grid {
        grid-template-columns: 1fr
      }

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

    @media (max-width:720px) {

      .gate-strip,
      .gate-mini-stats {
        grid-template-columns: 1fr
      }
    }

    /* Village Card with Logo */
    .village-card {
      display: flex;
      flex-direction: column;
      transition: transform .18s, box-shadow .18s;
    }

    .village-card:hover {
      transform: translateY(-3px);
      box-shadow: 0 12px 32px rgba(15, 49, 91, 0.09);
    }

    .village-head {
      display: flex;
      align-items: flex-start;
      gap: 14px;
      margin-bottom: 14px;
    }

    .village-logo-wrap {
      width: 72px;
      height: 72px;
      min-width: 72px;
      flex-shrink: 0;
      border-radius: 14px;
      border: 1px solid var(--line);
      background: #ffffff;
      box-shadow: 0 4px 12px rgba(13, 40, 74, 0.04);
      display: flex;
      align-items: center;
      justify-content: center;
      overflow: hidden;
    }

    .village-logo {
      width: 100%;
      height: 100%;
      max-width: 100%;
      max-height: 100%;
      object-fit: contain !important;
      padding: 4px;
      display: block;
    }

    .village-logo-placeholder {
      width: 100%;
      height: 100%;
      display: grid;
      place-items: center;
      background: #eef3fb;
      color: #2d6195;
      font-size: 20px;
      font-weight: 800;
      letter-spacing: .5px;
    }

    .village-head-info {
      flex: 1;
      min-width: 0;
    }

    .village-head-info .row-flex {
      gap: 8px;
      align-items: flex-start;
    }

    .village-head-info b {
      font-size: 15px;
      line-height: 1.35;
      display: block;
      word-break: break-word;
    }

    .village-slogan {
      margin: 6px 0 0 0;
      font-size: 12.5px;
      color: var(--muted);
      line-height: 1.55;
      word-break: break-word;
    }

    @media (max-width: 640px) {
      .village-head {
        gap: 12px;
        margin-bottom: 12px;
      }

      .village-logo-wrap {
        width: 62px;
        height: 62px;
        min-width: 62px;
        border-radius: 12px;
      }

      .village-logo-placeholder {
        font-size: 17px;
      }
    }

    /* ===== AXANH LOGIN SCREEN ===== */
    .axanh-auth-screen {
      position: fixed;
      inset: 0;
      z-index: 9000;
      background: linear-gradient(145deg, #061328 0%, #091c38 50%, #0b2854 100%);
      display: flex;
      align-items: center;
      justify-content: center;
      padding: 20px;
    }
    .axanh-auth-screen::before {
      content: '';
      position: absolute;
      inset: 0;
      background: radial-gradient(ellipse 60% 50% at 70% 30%, rgba(0,214,185,.07) 0%, transparent 70%),
                  radial-gradient(ellipse 40% 40% at 20% 80%, rgba(242,198,87,.05) 0%, transparent 70%);
      pointer-events: none;
    }
    .axanh-login-card {
      position: relative;
      width: min(420px, 100%);
      background: rgba(255,255,255,.04);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 24px;
      padding: 40px 36px 36px;
      backdrop-filter: blur(16px);
      box-shadow: 0 32px 80px rgba(0,0,0,.45), 0 0 0 1px rgba(255,255,255,.06);
      text-align: center;
      animation: loginFadeIn .4s ease both;
    }
    @keyframes loginFadeIn {
      from { opacity: 0; transform: translateY(18px) }
      to   { opacity: 1; transform: translateY(0) }
    }
    .axanh-login-logo {
      width: 100%;
      max-width: 180px;
      height: auto;
      margin: 0 auto 20px;
      display: block;
      object-fit: contain;
    }
    .axanh-login-badge {
      display: inline-flex;
      align-items: center;
      gap: 7px;
      background: rgba(242,198,87,.12);
      border: 1px solid rgba(242,198,87,.3);
      color: #f2c657;
      font-size: 11px;
      font-weight: 700;
      letter-spacing: 1.2px;
      padding: 5px 13px;
      border-radius: 20px;
      margin-bottom: 20px;
    }
    .axanh-login-badge::before { content: '✦'; font-size: 10px; }
    .axanh-login-title {
      font-size: 22px;
      font-weight: 800;
      color: #eff5ff;
      margin: 0 0 8px;
      line-height: 1.25;
    }
    .axanh-login-desc {
      font-size: 13.5px;
      color: #8aaece;
      line-height: 1.65;
      margin: 0 0 20px;
    }
    .axanh-login-input-group {
      text-align: left;
      margin-bottom: 16px;
    }
    .axanh-login-label {
      display: block;
      font-size: 12px;
      font-weight: 700;
      color: #c0d4ee;
      margin-bottom: 7px;
      letter-spacing: .4px;
    }
    .axanh-login-input {
      box-sizing: border-box;
      width: 100%;
      padding: 13px 16px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.16);
      border-radius: 12px;
      color: #eff5ff;
      font-size: 15px;
      outline: none;
      transition: border-color .15s, background .15s;
    }
    .axanh-login-input:focus {
      border-color: #00d6b9;
      background: rgba(0,214,185,.06);
    }
    .axanh-login-input::placeholder {
      color: rgba(255,255,255,.3);
    }
    .axanh-otp-input {
      font-family: Consolas, monaco, monospace;
      font-size: 26px;
      font-weight: 800;
      letter-spacing: 8px;
      text-align: center;
      padding: 14px;
      color: #00d6b9;
      border-color: rgba(0,214,185,.4);
      background: rgba(0,214,185,.05);
    }
    .axanh-otp-input:focus {
      border-color: #00d6b9;
      box-shadow: 0 0 0 3px rgba(0,214,185,.15);
    }
    .axanh-otp-meta {
      font-size: 12.5px;
      color: #9cbddc;
      margin: 10px 0 18px;
      line-height: 1.6;
    }
    .axanh-otp-timer {
      display: inline-block;
      font-weight: 700;
      color: #f2c657;
    }
    .axanh-otp-actions {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 10px;
      margin-top: 14px;
    }
    .axanh-link-btn {
      background: none;
      border: none;
      color: #7a9cbe;
      font-size: 12.5px;
      cursor: pointer;
      padding: 6px 4px;
      text-decoration: underline;
      transition: color .15s;
    }
    .axanh-link-btn:hover {
      color: #c0d4ee;
    }
    .axanh-link-btn:disabled {
      color: rgba(255,255,255,.25);
      cursor: not-allowed;
      text-decoration: none;
    }
    .axanh-login-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 10px;
      width: 100%;
      padding: 14px 20px;
      background: linear-gradient(135deg, #efb62b 0%, #d89e1a 100%);
      color: #071932;
      font-size: 15px;
      font-weight: 800;
      text-decoration: none;
      border-radius: 13px;
      border: none;
      cursor: pointer;
      box-shadow: 0 6px 20px rgba(239,182,43,.3);
      transition: transform .15s ease, box-shadow .15s ease;
      letter-spacing: .3px;
    }
    .axanh-login-btn:hover {
      transform: translateY(-2px);
      box-shadow: 0 10px 28px rgba(239,182,43,.4);
    }
    .axanh-login-btn.btn-teal {
      background: linear-gradient(135deg, #00d6b9 0%, #00bfa5 100%);
      color: #041829;
      box-shadow: 0 6px 24px rgba(0,214,185,.35);
    }
    .axanh-login-btn.btn-teal:hover {
      box-shadow: 0 10px 32px rgba(0,214,185,.45);
    }
    .axanh-secondary-btn {
      display: flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      width: 100%;
      padding: 11px 16px;
      background: rgba(255,255,255,.06);
      border: 1px solid rgba(255,255,255,.12);
      border-radius: 11px;
      color: #d2e4f8;
      font-size: 13.5px;
      font-weight: 600;
      text-decoration: none;
      cursor: pointer;
      transition: background .15s;
    }
    .axanh-secondary-btn:hover {
      background: rgba(255,255,255,.1);
      color: #ffffff;
    }
    .axanh-login-btn:active { transform: translateY(0); }
    .axanh-login-btn svg { flex-shrink: 0; }
    .axanh-login-divider {
      display: flex;
      align-items: center;
      gap: 12px;
      margin: 22px 0 18px;
      color: rgba(255,255,255,.25);
      font-size: 11px;
      font-weight: 600;
      letter-spacing: .8px;
    }
    .axanh-login-divider::before,
    .axanh-login-divider::after {
      content: '';
      flex: 1;
      height: 1px;
      background: rgba(255,255,255,.1);
    }
    .axanh-dev-block {
      text-align: left;
    }
    .axanh-dev-toggle {
      display: block;
      width: 100%;
      padding: 10px 14px;
      background: rgba(255,255,255,.05);
      border: 1px solid rgba(255,255,255,.1);
      border-radius: 10px;
      color: rgba(255,255,255,.45);
      font-size: 12px;
      cursor: pointer;
      text-align: left;
      transition: background .15s;
    }
    .axanh-dev-toggle:hover { background: rgba(255,255,255,.08); color: rgba(255,255,255,.65); }
    .axanh-dev-form {
      margin-top: 10px;
      display: none;
    }
    .axanh-dev-form.open { display: block; }
    .axanh-dev-input {
      box-sizing: border-box;
      width: 100%;
      padding: 11px 14px;
      background: rgba(255,255,255,.07);
      border: 1px solid rgba(255,255,255,.15);
      border-radius: 9px;
      color: #eff5ff;
      font-size: 14px;
      outline: none;
      margin-bottom: 8px;
    }
    .axanh-dev-input:focus { border-color: rgba(0,214,185,.5); background: rgba(0,214,185,.06); }
    .axanh-dev-submit {
      width: 100%;
      padding: 11px;
      background: rgba(242,198,87,.15);
      border: 1px solid rgba(242,198,87,.3);
      border-radius: 9px;
      color: #f2c657;
      font-weight: 700;
      font-size: 13px;
      cursor: pointer;
      transition: background .15s;
    }
    .axanh-dev-submit:hover { background: rgba(242,198,87,.25); }
    .axanh-login-error {
      margin-top: 10px;
      padding: 9px 13px;
      background: rgba(220,38,38,.15);
      border: 1px solid rgba(220,38,38,.3);
      border-radius: 8px;
      color: #fca5a5;
      font-size: 12.5px;
      text-align: left;
    }
    .axanh-login-footer {
      margin-top: 24px;
      font-size: 11.5px;
      color: rgba(255,255,255,.25);
      line-height: 1.6;
    }
    .axanh-auth-loading {
      display: flex;
      flex-direction: column;
      align-items: center;
      gap: 16px;
      color: rgba(255,255,255,.5);
      font-size: 14px;
    }
    .axanh-auth-spinner {
      width: 36px;
      height: 36px;
      border: 3px solid rgba(0,214,185,.2);
      border-top-color: #00d6b9;
      border-radius: 50%;
      animation: spin .8s linear infinite;
    }
    @keyframes spin { to { transform: rotate(360deg); } }

    /* ===== USER DROPDOWN (TOPBAR) ===== */
    .user-menu-wrap {
      position: relative;
    }
    .user-avatar-btn {
      display: flex;
      align-items: center;
      gap: 9px;
      padding: 4px 12px 4px 5px;
      background: #f4f7fc;
      border: 1px solid var(--line);
      border-radius: 24px;
      cursor: pointer;
      transition: background .15s, border-color .15s, box-shadow .15s;
    }
    .user-avatar-btn:hover {
      background: #ebf1f9;
      border-color: #cbdbee;
      box-shadow: 0 2px 8px rgba(6, 27, 62, .06);
    }
    .user-avatar-img {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      object-fit: cover;
      border: 2px solid #edbd4b;
      flex-shrink: 0;
    }
    .user-avatar-initials {
      width: 32px;
      height: 32px;
      border-radius: 50%;
      background: var(--navy);
      border: 2px solid #edbd4b;
      display: grid;
      place-items: center;
      font-weight: 700;
      font-size: 12px;
      color: #fff;
      flex-shrink: 0;
    }
    .user-avatar-name {
      font-size: 13px;
      font-weight: 750;
      color: var(--navy);
      max-width: 130px;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .user-avatar-caret {
      color: var(--muted);
      font-size: 11px;
      transition: transform .2s;
    }
    .user-avatar-btn[aria-expanded="true"] .user-avatar-caret { transform: rotate(180deg); }
    .user-dropdown {
      position: absolute;
      top: calc(100% + 8px);
      right: 0;
      width: 250px;
      background: #ffffff;
      border: 1px solid var(--line);
      border-radius: 16px;
      box-shadow: 0 16px 40px rgba(6, 27, 62, .13), 0 3px 10px rgba(0, 0, 0, .04);
      z-index: 1000;
      overflow: hidden;
      display: none;
      animation: dropIn .18s ease both;
    }
    .user-dropdown.open { display: block; }
    @keyframes dropIn {
      from { opacity: 0; transform: translateY(-8px); }
      to   { opacity: 1; transform: translateY(0); }
    }
    .user-dropdown-header {
      padding: 16px 18px;
      background: #f8fafd;
      border-bottom: 1px solid var(--line);
    }
    .user-dropdown-name {
      font-weight: 800;
      color: var(--navy);
      font-size: 14.5px;
      margin-bottom: 4px;
    }
    .user-dropdown-meta {
      font-size: 12px;
      color: var(--muted);
      line-height: 1.55;
    }
    .user-dropdown-item {
      display: flex;
      align-items: center;
      gap: 10px;
      width: 100%;
      padding: 12px 18px;
      background: none;
      border: none;
      color: var(--text);
      font-size: 13.5px;
      font-weight: 600;
      cursor: pointer;
      text-align: left;
      transition: background .12s, color .12s;
    }
    .user-dropdown-item:hover {
      background: #f0f4fa;
      color: var(--blue);
    }
    .user-dropdown-item.danger {
      color: #e11d48;
      border-top: 1px solid #f1f5f9;
    }
    .user-dropdown-item.danger:hover {
      background: #fff1f2;
      color: #be123c;
    }

    /* ===== LARK FORM MODAL & INTEGRATION STYLES ===== */
    .modal.modal-lark {
      width: min(1000px, 95vw);
      height: 90vh;
      max-height: 92vh;
      display: flex;
      flex-direction: column;
      overflow: hidden;
      padding: 0;
      border-radius: 20px;
    }
    .modal-lark .modal-head {
      padding: 16px 22px;
      background: #ffffff;
      border-bottom: 1px solid var(--line);
      flex-shrink: 0;
      align-items: center;
      gap: 14px;
    }
    .modal-lark-title-wrap {
      flex: 1;
      min-width: 0;
    }
    .modal-lark-title-wrap h2 {
      font-size: 17.5px;
      font-weight: 800;
      color: var(--navy);
      margin: 2px 0 0;
      white-space: nowrap;
      overflow: hidden;
      text-overflow: ellipsis;
    }
    .modal-lark-actions {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-shrink: 0;
    }
    .lark-fallback-bar {
      background: #fffbeb;
      border-bottom: 1px solid #fef3c7;
      padding: 8px 22px;
      font-size: 12.5px;
      color: #92400e;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      flex-shrink: 0;
    }
    .lark-fallback-bar span {
      display: inline-flex;
      align-items: center;
      gap: 6px;
    }
    .modal-lark .modal-body {
      flex: 1;
      padding: 0;
      position: relative;
      background: #f8fafc;
      overflow: hidden;
      display: flex;
      flex-direction: column;
    }
    .lark-iframe-container {
      width: 100%;
      height: 100%;
      flex: 1;
      position: relative;
    }
    .lark-iframe {
      width: 100%;
      height: 100%;
      border: none;
      display: block;
      background: #ffffff;
    }
    .lark-iframe-loader {
      position: absolute;
      inset: 0;
      background: #ffffff;
      display: flex;
      flex-direction: column;
      align-items: center;
      justify-content: center;
      gap: 12px;
      color: var(--muted);
      font-size: 13.5px;
      z-index: 2;
      transition: opacity .3s ease;
      pointer-events: none;
    }
    .lark-iframe-loader.hidden {
      opacity: 0;
      pointer-events: none;
    }
    .lark-spinner {
      width: 32px;
      height: 32px;
      border: 3px solid #e2e8f0;
      border-top-color: var(--blue);
      border-radius: 50%;
      animation: spin 0.8s linear infinite;
    }
    @keyframes spin {
      to { transform: rotate(360deg); }
    }

    /* Form status badge */
    .form-status-tag {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      font-size: 11.5px;
      font-weight: 700;
      padding: 3px 9px;
      border-radius: 8px;
      text-transform: uppercase;
      letter-spacing: .02em;
      white-space: nowrap;
      position: relative;
      z-index: 2;
    }
    .form-status-tag.ready {
      background: #dcfce7;
      color: #15803d;
    }
    .form-status-tag.missing {
      background: #fef3c7;
      color: #b45309;
    }

    @media (max-width: 640px) {
      .modal.modal-lark {
        width: 100vw;
        height: 100vh;
        max-height: 100vh;
        border-radius: 0;
        margin: 0;
      }
      .modal-lark .modal-head {
        padding: 12px 16px;
      }
      .lark-fallback-bar {
        font-size: 11px;
        padding: 6px 16px;
      }
    }

    .spinner {
      width: 34px;
      height: 34px;
      border: 3px solid #e2e8f0;
      border-top-color: #128a7c;
      border-radius: 50%;
      animation: axanhSpin 0.8s linear infinite;
    }
    @keyframes axanhSpin {
      to { transform: rotate(360deg); }
    }

    /* Topbar Notification Bell */
    .topbar-bell-btn {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      width: 36px;
      height: 36px;
      border-radius: 50%;
      border: 1px solid #e2e8f0;
      background: #f8fafc;
      color: #475569;
      cursor: pointer;
      transition: all 0.2s ease;
      padding: 0;
    }
    .topbar-bell-btn:hover {
      background: #f1f5f9;
      color: #0f172a;
      border-color: #cbd5e1;
    }
    .topbar-bell-badge {
      position: absolute;
      top: -3px;
      right: -3px;
      min-width: 18px;
      height: 18px;
      border-radius: 9px;
      background: #ef4444;
      color: #ffffff;
      font-size: 10px;
      font-weight: 700;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      padding: 0 4px;
      border: 2px solid #ffffff;
      line-height: 1;
    }

    /* Connection Tabs & Cards */
    .conn-tabs {
      display: flex;
      gap: 8px;
      border-bottom: 1px solid #e2e8f0;
      padding-bottom: 8px;
    }
    .conn-tab-btn {
      border: none;
      background: transparent;
      padding: 8px 16px;
      border-radius: 8px;
      font-size: 13px;
      font-weight: 600;
      color: #64748b;
      cursor: pointer;
      transition: all 0.15s ease;
    }
    .conn-tab-btn:hover {
      background: #f1f5f9;
      color: #0f172a;
    }
    .conn-tab-btn.active {
      background: #0f2744;
      color: #ffffff;
    }

    .conn-item-card {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 16px;
      padding: 14px 18px;
      background: #ffffff;
      border: 1px solid #e2e8f0;
      border-radius: 12px;
      margin-bottom: 10px;
      transition: border-color 0.15s;
    }
    .conn-item-card:hover {
      border-color: #94a3b8;
    }
    .conn-item-left {
      display: flex;
      align-items: center;
      gap: 12px;
      flex: 1;
      min-width: 0;
    }
    .conn-item-right {
      display: flex;
      align-items: center;
      gap: 8px;
      flex-shrink: 0;
    }
