    :root {
      --primary: #2563eb;
      --primary-50: #eff6ff;
      --primary-100: #dbeafe;
      --secondary: #0ea5e9;
      --text: #0f172a;
      --text-muted: #64748b;
      --bg: #f1f5f9;
      --surface: #fff;
      --border: #cbd5e1;
      --radius: 12px;
      --shadow: 0 2px 12px rgba(0,0,0,.06);
      --transition: all .2s ease;
    }

    * {
      box-sizing: border-box;
      margin: 0;
      padding: 0;
    }

    body {
      font-family: Inter, system-ui, sans-serif;
      font-size: 13.5px;
      line-height: 1.5;
      color: var(--text);
      background: var(--bg);
      overflow-wrap: break-word;
    }

    img {
      max-width: 100%;
    }

    a {
      color: var(--primary);
      text-decoration: none;
      transition: var(--transition);
    }

    .header {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #fff;
      padding: .7rem 1.5rem;
      position: sticky;
      top: 0;
      z-index: 100;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 12px;
      box-shadow: 0 4px 20px rgba(37,99,235,.25);
    }

    .header-left {
      flex: 1;
      min-width: 0;
    }

    .header-left img {
      display: block;
      height: 38px;
      width: auto;
      object-fit: contain;
    }

    .btn-home {
      flex-shrink: 0;
      background: #fff;
      color: var(--primary);
      padding: .45rem 1rem;
      border-radius: 8px;
      font-weight: 600;
      font-size: .85rem;
      display: inline-flex;
      align-items: center;
      gap: .35rem;
      white-space: nowrap;
      box-shadow: 0 2px 8px rgba(0,0,0,.1);
    }

    .main {
      width: 100%;
      max-width: 1300px;
      margin: 0 auto;
      padding: 1.25rem 1.5rem;
    }

    .grid {
      display: grid;
      grid-template-columns: repeat(12, minmax(0, 1fr));
      gap: 1rem;
    }

    .card {
      position: relative;
      min-width: 0;
      background: var(--surface);
      border-radius: var(--radius);
      padding: 1rem 1.25rem;
      box-shadow: var(--shadow);
      border: 1px solid var(--border);
    }

    .card.full {
      grid-column: 1 / -1;
    }

    .card.half {
      grid-column: span 6;
    }

    .course-top {
      display: flex;
      align-items: flex-start;
      gap: 1rem;
      min-width: 0;
      padding-bottom: 1rem;
      margin-bottom: 1rem;
      border-bottom: 1px solid #e2e8f0;
    }

    .course-logo {
      width: 64px;
      height: 64px;
      flex: 0 0 64px;
      border-radius: 12px;
      background: var(--primary-50);
      padding: 6px;
      object-fit: contain;
      box-shadow: 0 4px 12px rgba(0,0,0,.08);
    }

    .course-header {
      flex: 1;
      min-width: 0;
    }

    .course-title {
      font-size: 1.35rem;
      font-weight: 700;
      line-height: 1.4;
      margin: 0 0 .6rem;
      overflow-wrap: anywhere;
    }

    .course-meta {
      display: flex;
      gap: .5rem;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: .5rem;
    }

    .uni-tag,
    .level-tag {
      display: inline-flex;
      align-items: center;
      gap: .3rem;
      padding: .25rem .65rem;
      border-radius: 99px;
      font-size: .8rem;
      font-weight: 600;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    .uni-tag {
      background: var(--primary-100);
      color: var(--primary);
    }

    .level-tag {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #fff;
    }

    .course-location {
      color: var(--text-muted);
      font-size: .8rem;
      margin-bottom: .5rem;
    }

    .rankings {
      display: flex;
      gap: .4rem;
      flex-wrap: wrap;
    }

    .rank-badge {
      background: var(--primary-50);
      color: var(--primary);
      padding: .2rem .55rem;
      border-radius: 6px;
      font-size: .7rem;
      font-weight: 600;
      border: 1px solid var(--border);
    }

    #shareBtn {
      position: absolute;
      top: 16px;
      right: 16px;
      z-index: 2;
      background: var(--primary-50);
      color: var(--text);
      border: 1px solid var(--border);
      padding: .45rem .8rem;
      border-radius: 8px;
      font-size: .8rem;
      font-weight: 600;
      cursor: pointer;
      display: inline-flex;
      align-items: center;
      gap: .35rem;
    }

    .stats {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: .65rem;
      margin-top: .85rem;
    }

    .stat {
      min-width: 0;
      min-height: 48px;
      background: var(--primary-50);
      padding: .65rem;
      border-radius: 9px;
      text-align: center;
      border: 1px solid var(--border);
      display: flex;
      flex-direction: column;
      justify-content: center;
    }

    .stat-label {
      font-size: .65rem;
      text-transform: uppercase;
      color: var(--text-muted);
      font-weight: 600;
      margin-bottom: .2rem;
    }

    .stat-value {
      font-size: .95rem;
      font-weight: 700;
      color: var(--text);
      display: flex;
      flex-wrap: wrap;
      gap: 6px;
      justify-content: center;
      align-items: center;
      overflow-wrap: anywhere;
    }

    .fee {
      color: var(--primary);
      font-size: 1rem;
    }

    .intake-badge {
      background: var(--primary);
      color: #fff;
      padding: .35rem .6rem;
      border-radius: 6px;
      font-size: .72rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: 4px;
      line-height: 1.3;
      white-space: normal;
    }

    .action-links {
      display: flex;
      gap: .5rem;
      flex-wrap: wrap;
      margin-top: .85rem;
      padding-top: .85rem;
      border-top: 1px dashed var(--border);
    }

    .action-btn {
      flex: 1 1 140px;
      min-width: 0;
      background: var(--primary-50);
      color: var(--primary);
      padding: .65rem .75rem;
      border-radius: 8px;
      font-size: .8rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: .35rem;
      border: 1px solid rgba(37,99,235,.2);
      text-align: center;
    }

    .card-title {
      font-size: 1rem;
      font-weight: 700;
      color: var(--primary);
      margin-bottom: .85rem;
      padding-bottom: .6rem;
      border-bottom: 1px solid var(--border);
      display: flex;
      align-items: center;
      gap: .45rem;
    }

    .card-title i {
      background: var(--primary-100);
      padding: .35rem;
      border-radius: 7px;
      color: var(--primary);
    }

    .list {
      list-style: none;
    }

    .item {
      display: grid;
      grid-template-columns: minmax(0, 170px) minmax(0, 1fr);
      align-items: center;
      padding: .45rem 0;
      border-bottom: 1px dashed var(--border);
      gap: .65rem;
    }

    .item:last-child {
      border-bottom: none;
    }

    .item-label {
      color: var(--text-muted);
      font-size: .8rem;
      font-weight: 500;
      display: flex;
      align-items: center;
      gap: .35rem;
    }

    .item-label i {
      color: var(--primary);
      width: 13px;
      text-align: center;
    }

    .item-val {
      min-width: 0;
      font-weight: 600;
      font-size: .85rem;
      text-align: right;
      display: flex;
      justify-content: flex-end;
      gap: .35rem;
      flex-wrap: wrap;
      overflow-wrap: anywhere;
    }

    .badge {
      padding: .2rem .55rem;
      border-radius: 5px;
      font-size: .7rem;
      font-weight: 600;
      display: inline-flex;
      align-items: center;
      gap: .2rem;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    .badge-blue {
      background: var(--primary-100);
      color: var(--primary);
      border: 1px solid rgba(37,99,235,.2);
    }

    .badge-green {
      background: #dcfce7;
      color: #166534;
      border: 1px solid rgba(22,101,52,.2);
    }

    .badge-yellow {
      background: #fef3c7;
      color: #92400e;
      border: 1px solid rgba(146,64,14,.2);
    }

    .badge-gray {
      background: #f1f5f9;
      color: #475569;
      border: 1px solid var(--border);
    }

    .chips,
    .badges-row {
      display: flex;
      flex-wrap: wrap;
      gap: .35rem;
    }

    .chip {
      background: #fff;
      border: 1px solid var(--border);
      padding: .25rem .65rem;
      border-radius: 99px;
      font-size: .75rem;
      color: var(--text);
      display: inline-flex;
      align-items: center;
      gap: .25rem;
      max-width: 100%;
      overflow-wrap: anywhere;
    }

    .chip i {
      color: var(--primary);
    }

    .content {
      background: var(--primary-50);
      padding: .85rem 1.1rem;
      border-radius: 9px;
      border-left: 3px solid var(--primary);
      font-size: .85rem;
      line-height: 1.6;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
    }

    .content ul,
    .content ol {
      padding-left: 1.4rem;
      margin: .5rem 0;
    }

    .table-wrap {
      width: 100%;
      overflow-x: auto;
      border-radius: 9px;
      border: 1px solid var(--border);
      margin-top: .4rem;
    }

    table {
      width: 100%;
      min-width: 520px;
      border-collapse: collapse;
      background: #fff;
      font-size: .8rem;
      table-layout: fixed;
    }

    th {
      background: linear-gradient(135deg, var(--primary), var(--secondary));
      color: #fff;
      padding: .6rem .85rem;
      text-align: left;
      font-size: .7rem;
      text-transform: uppercase;
    }

    td {
      padding: .6rem .85rem;
      border-bottom: 1px solid var(--border);
      vertical-align: top;
      overflow-wrap: anywhere;
    }

    .score {
      color: var(--primary);
      font-weight: 700;
      overflow-wrap: anywhere;
    }

    #copyToast {
      position: fixed;
      bottom: 30px;
      left: 50%;
      transform: translateX(-50%);
      background: var(--primary);
      color: #fff;
      padding: .6rem 1.2rem;
      border-radius: 8px;
      font-size: .85rem;
      font-weight: 600;
      opacity: 0;
      pointer-events: none;
      transition: opacity .3s ease;
      box-shadow: 0 6px 20px rgba(0,0,0,.2);
      z-index: 200;
      max-width: calc(100% - 32px);
      text-align: center;
    }

    @media (max-width: 1024px) {
      .grid {
        grid-template-columns: minmax(0, 1fr);
      }

      .card.half {
        grid-column: 1 / -1;
      }
    }

    @media (max-width: 768px) {
      .header {
        padding: 10px 12px;
        gap: 8px;
      }

      .header-left img {
        height: 34px;
      }

      .btn-home {
        padding: 6px 10px;
        font-size: 12px;
      }

      .main {
        padding: 12px;
      }

      .card {
        padding: 14px;
      }

      .course-top {
        display: block;
        padding-top: 48px;
        padding-bottom: 14px;
        margin-bottom: 12px;
      }

      .course-logo {
        width: 48px;
        height: 48px;
        margin-bottom: 10px;
      }

      .course-header {
        width: 100%;
        min-width: 0;
      }

      .course-title {
        font-size: 1.2rem;
        line-height: 1.4;
        overflow-wrap: anywhere;
        word-break: normal;
      }

      #shareBtn {
        top: 10px;
        right: 10px;
        padding: 8px 12px;
        font-size: 12px;
      }

      .course-meta {
        gap: 6px;
      }

      .uni-tag,
      .level-tag {
        font-size: 11px;
        padding: 5px 8px;
      }

      .stats {
        grid-template-columns: minmax(0, 1fr);
        gap: 8px;
      }

      .stat {
        padding: 10px;
        min-height: 50px;
      }

      .action-links {
        flex-direction: column;
      }

      .action-btn {
        width: 100%;
        flex-basis: auto;
      }

      .item {
        grid-template-columns: minmax(0, 1fr);
        gap: 4px;
        padding: 8px 0;
      }

      .item-label {
        white-space: normal;
      }

      .item-val {
        justify-content: flex-start;
        text-align: left;
      }

      .card-title {
        font-size: .95rem;
      }

      .chip {
        font-size: 11px;
      }

      .content {
        padding: 12px;
        font-size: 12px;
      }

      th,
      td {
        padding: 8px;
      }
    }

    @media (max-width: 380px) {
      .main {
        padding: 8px;
      }

      .card {
        padding: 11px;
      }

      .course-title {
        font-size: 1.08rem;
      }

      .btn-home {
        padding: 6px 8px;
      }
    }
