    #navProgressBar {
      position: fixed;
      top: 0;
      left: 0;
      width: 0%;
      height: 2.5px;
      background: linear-gradient(90deg, #2563eb, #38bdf8);
      z-index: 99999;
      opacity: 0;
      pointer-events: none;
      transition: width 0.35s cubic-bezier(0.22, 1, 0.36, 1), opacity 0.18s ease;
    }
    #navProgressBar.active { opacity: 1; width: 78%; }
    #navProgressBar.done {
      opacity: 0;
      width: 100%;
      transition: width 0.16s ease, opacity 0.22s ease 0.12s;
    }
    body { background: var(--color-bg, #f8fafc); color: var(--color-text-main, #0f172a); min-height: 100vh; display: flex; flex-direction: column; }
    .topbar { background: var(--color-surface, #fff); border-bottom: 1px solid var(--color-border, #e2e8f0); padding: 0.75rem 1.25rem; position: sticky; top: 0; z-index: 40; }
    .topbar-inner { max-width: 1640px; margin: 0 auto; display: flex; align-items: center; justify-content: space-between; gap: 1rem; flex-wrap: wrap; }
    .brand { font-weight: 700; font-size: 1.05rem; color: var(--color-primary, #2563eb); text-decoration: none !important; display: inline-flex; align-items: center; gap: 0.45rem; line-height: 1; white-space: nowrap; flex-shrink: 0; }
    .brand:hover, .brand:focus, .brand:active, .brand:focus-visible, .brand *, .brand:hover * {
      text-decoration: none !important;
      text-decoration-line: none !important;
      -webkit-text-decoration-line: none !important;
      border-bottom: none !important;
    }
    .brand i.ph { font-weight: 700; font-size: 1.25rem; display: inline-flex; align-items: center; line-height: 1; }
    .brand > span { display: inline-block; line-height: 1; }
    .nav-links { display: flex; align-items: center; gap: 0.35rem; flex-wrap: nowrap; }
    .nav-link {
      position: relative;
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 0.42rem;
      width: 38px;
      height: 36px;
      padding: 0;
      border-radius: 8px;
      text-decoration: none !important;
      text-decoration-line: none !important;
      -webkit-text-decoration-line: none !important;
      color: var(--color-text-muted, #334155);
      font-size: 0.875rem;
      font-weight: 600;
      line-height: 1;
      transition: background 0.15s, color 0.15s;
      white-space: nowrap;
    }
    .nav-link svg { width: 19px; height: 19px; flex-shrink: 0; stroke: currentColor; fill: none; stroke-width: 2; stroke-linecap: round; stroke-linejoin: round; }
    .nav-link i.ph { display: inline-flex; align-items: center; justify-content: center; font-size: 1.22rem; font-weight: 700; flex-shrink: 0; line-height: 1; }
    .nav-label-text { display: none; text-decoration: none !important; text-decoration-line: none !important; }
    .nav-link:hover, .nav-link:focus-visible, .nav-link.active,
    .nav-link:hover *, .nav-link:focus-visible *, .nav-link.active * {
      text-decoration: none !important;
      text-decoration-line: none !important;
      -webkit-text-decoration-line: none !important;
      border-bottom: none !important;
    }
    .nav-link:hover, .nav-link:focus-visible, .nav-link.active {
      background: var(--color-primary-light, #eff6ff);
      color: var(--color-primary, #2563eb);
      outline: none;
    }
    .nav-link.active i.ph { font-weight: 800; color: #2563eb; }
    .nav-logout-form { margin: 0; padding: 0; display: inline-flex; align-items: center; }
    button.nav-link { border: none; background: transparent; cursor: pointer; font-family: inherit; }
    .nav-link.nav-logout { color: #dc2626; }
    .nav-link.nav-logout:hover, .nav-link.nav-logout:focus-visible { background: #fef2f2; color: #b91c1c; }

    /* Topbar Ironclad Anti-Underline */
    .topbar a,
    .topbar a:hover,
    .topbar a:focus,
    .topbar a:active,
    .topbar a:focus-visible,
    .topbar a *,
    .topbar a:hover * {
      text-decoration: none !important;
      text-decoration-line: none !important;
      -webkit-text-decoration-line: none !important;
      border-bottom: none !important;
    }
    @media (min-width: 769px) {
      .nav-link[data-nav-tip]::after {
        content: attr(data-nav-tip);
        display: none;
        position: absolute;
        top: calc(100% + 8px);
        left: 50%;
        transform: translateX(-50%) translateY(-2px);
        background: #0f172a;
        color: #ffffff;
        font-size: 0.75rem;
        font-weight: 600;
        padding: 0.3rem 0.6rem;
        border-radius: 6px;
        white-space: nowrap;
        box-shadow: 0 6px 16px rgba(15, 23, 42, 0.2);
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.14s ease, transform 0.14s ease;
        z-index: 100;
      }
      .nav-link[data-nav-tip]::before {
        content: "";
        display: none;
        position: absolute;
        top: calc(100% + 3px);
        left: 50%;
        transform: translateX(-50%);
        border: 5px solid transparent;
        border-bottom-color: #0f172a;
        opacity: 0;
        pointer-events: none;
        transition: opacity 0.14s ease;
        z-index: 100;
      }
      .nav-link[data-nav-tip]:last-child::after {
        left: auto;
        right: 0;
        transform: translateY(-2px);
      }
      .nav-link[data-nav-tip]:hover::after,
      .nav-link[data-nav-tip]:focus-visible::after {
        display: block;
        opacity: 1;
        transform: translateX(-50%) translateY(0);
      }
      .nav-link[data-nav-tip]:last-child:hover::after,
      .nav-link[data-nav-tip]:last-child:focus-visible::after {
        display: block;
        transform: translateY(0);
      }
      .nav-link[data-nav-tip]:hover::before,
      .nav-link[data-nav-tip]:focus-visible::before {
        display: block;
        opacity: 1;
      }
      .nav-links.nav-guest { gap: 0.45rem; }
      .nav-links.nav-guest .nav-link {
        width: auto;
        height: 36px;
        padding: 0 0.72rem;
      }
      .nav-links.nav-guest .nav-label-text {
        display: inline-flex;
        align-items: center;
        font-size: 0.85rem;
        font-weight: 600;
        line-height: 1;
      }
      .nav-links.nav-guest .nav-link[data-nav-tip]::before,
      .nav-links.nav-guest .nav-link[data-nav-tip]::after { display: none; }
    }
    .main-wrap { max-width: 1640px; width: 100%; margin: 1.15rem auto; padding: 0 1.5rem; flex: 1; box-sizing: border-box; overflow-x: clip; }
    .mobile-page-title { display: none; }
    .mobile-menu-btn {
      display: none;
      align-items: center;
      justify-content: center;
      gap: 0.3rem;
      padding: 0.35rem 0.6rem;
      border-radius: 7px;
      border: 1px solid #cbd5e1;
      background: #f8fafc;
      color: #0f172a;
      font-size: 0.85rem;
      font-weight: 600;
      line-height: 1;
      cursor: pointer;
      flex-shrink: 0;
    }
    .mobile-menu-btn i.ph {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      line-height: 1;
      font-size: 1.15rem;
      flex-shrink: 0;
    }
    @media (max-width: 768px) {
      .topbar { padding: 0.55rem 0.75rem; }
      .topbar-inner { flex-wrap: nowrap; gap: 0.5rem; }
      .brand { font-size: 0.92rem; gap: 0.3rem; }
      .mobile-page-title {
        display: inline-flex;
        align-items: center;
        gap: 0.25rem;
        padding: 0.24rem 0.55rem;
        border-radius: 6px;
        border: 1px solid #bfdbfe;
        background: #eff6ff;
        color: #1d4ed8;
        font-size: 0.78rem;
        font-weight: 700;
        line-height: 1;
        white-space: nowrap;
        overflow: hidden;
        text-overflow: ellipsis;
        max-width: 175px;
      }
      .mobile-menu-btn { display: inline-flex; }
      .nav-links {
        display: none;
        position: absolute;
        top: 100%;
        left: 0;
        right: 0;
        background: var(--color-surface, #fff);
        border-bottom: 1px solid var(--color-border, #e2e8f0);
        box-shadow: 0 12px 28px rgba(15, 23, 42, 0.12);
        padding: 0.65rem 0.85rem;
        flex-direction: column;
        align-items: stretch;
        gap: 0.25rem;
        z-index: 45;
      }
      .nav-links.open { display: flex; }
      .nav-logout-form { width: 100%; display: block; }
      .nav-link {
        width: 100%;
        height: auto;
        justify-content: flex-start;
        padding: 0.55rem 0.75rem;
        font-size: 0.88rem;
        border-radius: 8px;
      }
      .nav-label-text { display: inline; }
      .nav-teacher-label-long { display: inline; }
      .nav-teacher-label-short { display: none; }
      .main-wrap { padding: 0 0.75rem; margin: 0.85rem auto; }
    }
    @media (max-width: 640px) {
      .topbar-inner { min-height: 44px; padding: 0.35rem 0.6rem; gap: 0.4rem; }
      .brand { font-size: 0.95rem; }
      .mobile-page-title { font-size: 0.76rem; padding: 0.14rem 0.45rem; max-width: 155px; }
      .mobile-menu-btn { padding: 0.28rem 0.55rem; font-size: 0.82rem; }
      .main-wrap { padding: 0 0.5rem; margin: 0.55rem auto; }
      .card { border-radius: 10px; }
    }
    @media (max-width: 420px) {
      .brand-online-suffix { display: none; }
    }
    @media (min-width: 769px) {
      .nav-teacher-label-short { display: none; }
    }
    #toast-container { position: fixed; bottom: 1.25rem; right: 1.25rem; z-index: 99999; display: flex; flex-direction: column; gap: 0.5rem; }
    .toast-item { padding: 0.75rem 1rem; border-radius: 8px; color: #fff; font-size: 0.875rem; font-weight: 500; box-shadow: 0 10px 25px rgba(0,0,0,0.15); animation: slideIn 0.2s ease; }
    .toast-success { background: #16a34a; }
    .toast-error { background: #dc2626; }
    .toast-info { background: #2563eb; }
    @keyframes slideIn { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: translateY(0); } }
    .word-link-editor {
      min-height: 76px;
      max-height: 220px;
      overflow-y: auto;
      resize: vertical;
      white-space: pre-wrap;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.5;
      cursor: text;
      font-family: inherit;
    }
    .word-link-editor:empty::before {
      content: attr(data-placeholder);
      color: #94a3b8;
      pointer-events: none;
    }
    .word-link-editor a.word-autolink {
      color: #2563eb;
      text-decoration: underline;
      font-weight: 600;
      cursor: pointer;
      word-break: break-all;
    }
