:root {
      --primary: #6d28d9;
      --primary-dark: #3b0764;
      --primary-soft: #ede9fe;
      --cyan: #06b6d4;
      --pink: #ec4899;
      --orange: #f97316;
      --yellow: #facc15;
      --green: #22c55e;
      --red: #ef4444;
      --text: #111827;
      --muted: #64748b;
      --line: rgba(148, 163, 184, 0.32);
      --glass: rgba(255, 255, 255, 0.78);
      --white: #ffffff;
      --shadow: 0 24px 70px rgba(76, 29, 149, 0.14);
      --radius: 26px;
      --max-width: 1320px;
    }

    * { box-sizing: border-box; }

    html { scroll-behavior: smooth; }

    body {
      margin: 0;
      min-height: 100vh;
      font-family: "Sarabun", "Noto Sans Thai", system-ui, sans-serif;
      line-height: 1.72;
      color: var(--text);
      background:
        radial-gradient(circle at 8% 6%, rgba(236, 72, 153, 0.22), transparent 28%),
        radial-gradient(circle at 92% 10%, rgba(6, 182, 212, 0.22), transparent 30%),
        radial-gradient(circle at 70% 88%, rgba(250, 204, 21, 0.22), transparent 30%),
        linear-gradient(135deg, #fff7ed 0%, #f5f3ff 42%, #ecfeff 100%);
    }

    body::before {
      content: "";
      position: fixed;
      inset: 0;
      z-index: -1;
      pointer-events: none;
      background-image: radial-gradient(circle, rgba(124, 58, 237, 0.08) 1.2px, transparent 1.2px);
      background-size: 34px 34px;
      mask-image: linear-gradient(180deg, rgba(0,0,0,0.7), rgba(0,0,0,0.08));
    }

    a { color: inherit; text-decoration: none; }
    button, input, textarea, select { font: inherit; }
    textarea { resize: vertical; min-height: 90px; }

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

    .topbar {
      position: sticky;
      top: 0;
      z-index: 100;
      background: rgba(255, 255, 255, 0.74);
      backdrop-filter: blur(22px);
      border-bottom: 1px solid rgba(255, 255, 255, 0.8);
      box-shadow: 0 12px 36px rgba(124, 58, 237, 0.08);
    }

    .topbar-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 12px 20px;
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: nowrap;
    }

    .brand {
      display: flex;
      align-items: center;
      gap: 12px;
      min-width: 330px;
      max-width: 390px;
      flex: 0 0 auto;
    }

    .brand-logo {
      width: 56px;
      height: 56px;
      border-radius: 20px;
      display: grid;
      place-items: center;
      background: rgba(255, 255, 255, 0.92);
      box-shadow: 0 16px 38px rgba(236, 72, 153, 0.22);
      overflow: hidden;
      border: 2px solid rgba(255, 255, 255, 0.88);
      padding: 5px;
      flex: 0 0 auto;
    }

    .brand-logo img {
      width: 100%;
      height: 100%;
      object-fit: contain;
    }

    .brand-title {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 900;
      font-size: 14.8px;
      line-height: 1.22;
      letter-spacing: -0.015em;
      word-break: keep-all;
      overflow-wrap: normal;
    }

    .brand-subtitle {
      display: none;
    }

    .nav {
      display: flex;
      align-items: center;
      justify-content: flex-end;
      gap: 4px;
      flex-wrap: nowrap;
      flex: 1 1 auto;
      min-width: 0;
    }

    .nav-button {
      border: 1px solid transparent;
      background: transparent;
      padding: 9px 10px;
      border-radius: 999px;
      color: #475569;
      cursor: pointer;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: 13px;
      font-weight: 700;
      transition: 0.2s ease;
      white-space: nowrap;
    }

    .nav-button:hover,
    .nav-button.active {
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--pink));
      box-shadow: 0 12px 26px rgba(124, 58, 237, 0.22);
      transform: translateY(-1px);
    }

    .mobile-menu-button {
      display: none;
      border: 1px solid var(--line);
      background: rgba(255, 255, 255, 0.84);
      border-radius: 16px;
      padding: 9px 12px;
      color: var(--text);
      font-weight: 800;
    }

    main { flex: 1; }

    .hero {
      position: relative;
      overflow: hidden;
      background:
        radial-gradient(circle at 14% 18%, rgba(236, 72, 153, 0.22), transparent 32%),
        radial-gradient(circle at 84% 8%, rgba(6, 182, 212, 0.26), transparent 34%),
        linear-gradient(135deg, #fdf2f8 0%, #eef2ff 44%, #ecfeff 100%);
      border-bottom: 1px solid rgba(255, 255, 255, 0.8);
    }

    .hero-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 78px 20px 62px;
      display: grid;
      grid-template-columns: 1.15fr 0.85fr;
      gap: 40px;
      align-items: center;
    }

    

    

    .hero h1 {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      margin: 22px 0 18px;
      color: #241044;
      max-width: 760px;
      letter-spacing: -0.045em;
    }

    .hero-title-main {
      display: block;
      font-size: clamp(38px, 5.6vw, 62px);
      line-height: 1.11;
      font-weight: 900;
      text-wrap: balance;
    }

    

    .hero p {
      color: #475569;
      font-size: clamp(16.5px, 1.7vw, 19px);
      margin: 0 0 30px;
      max-width: 660px;
      font-weight: 500;
      line-height: 1.86;
    }

    

    .button {
      display: inline-flex;
      align-items: center;
      justify-content: center;
      gap: 8px;
      min-height: 46px;
      padding: 10px 18px;
      border-radius: 999px;
      border: 1px solid transparent;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 800;
      cursor: pointer;
      transition: 0.2s ease;
      font-size: 14.5px;
    }

    .button-primary {
      background: linear-gradient(135deg, var(--primary), var(--pink), var(--orange));
      color: #fff;
      box-shadow: 0 20px 42px rgba(236, 72, 153, 0.25);
    }

    .button-secondary {
      background: rgba(255, 255, 255, 0.78);
      color: var(--primary);
      border-color: rgba(255, 255, 255, 0.78);
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.07);
    }

    

    .button:hover { transform: translateY(-2px); }

    .hero-card,
    .card,
    .admin-panel {
      background: var(--glass);
      border: 1px solid rgba(255, 255, 255, 0.82);
      border-radius: var(--radius);
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .hero-card {
      padding: 24px;
      position: relative;
    }

    

    

    

    

    

    

    

    .section {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 54px 20px;
    }

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

    .section-kicker {
      color: var(--pink);
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 800;
      font-size: 13px;
      margin-bottom: 8px;
      letter-spacing: 0.08em;
    }

    .section-title {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: clamp(26px, 3.2vw, 38px);
      line-height: 1.25;
      margin: 0;
      letter-spacing: -0.035em;
      color: #1f1147;
    }

    .section-desc {
      color: var(--muted);
      margin: 9px 0 0;
      max-width: 650px;
      font-weight: 500;
      line-height: 1.78;
    }

    .grid { display: grid; gap: 20px; }
    .grid-3 { grid-template-columns: repeat(3, 1fr); }
    .grid-2 { grid-template-columns: repeat(2, 1fr); }

    .card {
      padding: 24px;
      transition: 0.2s ease;
      overflow: hidden;
    }

    .card:hover {
      transform: translateY(-5px);
      box-shadow: 0 26px 62px rgba(124, 58, 237, 0.16);
    }

    

    .card h3 {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      margin: 15px 0 9px;
      font-size: 20px;
      line-height: 1.45;
      color: #1f1147;
      letter-spacing: -0.018em;
    }

    .card p {
      color: var(--muted);
      margin: 0;
      font-weight: 500;
      line-height: 1.76;
    }

    .card-footer {
      margin-top: 18px;
      color: #7c3aed;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: 13px;
      font-weight: 750;
    }

    .staff-card {
      display: flex;
      gap: 15px;
      align-items: center;
    }

    .avatar {
      width: 62px;
      height: 62px;
      border-radius: 22px;
      background: linear-gradient(135deg, #7c3aed, #06b6d4);
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 900;
      flex: 0 0 auto;
      overflow: hidden;
      border: 2px solid rgba(255,255,255,0.72);
    }

    .avatar img { width: 100%; height: 100%; object-fit: cover; }

    .staff-name {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 850;
      font-size: 16.5px;
      margin-bottom: 2px;
      color: #1f1147;
      line-height: 1.38;
    }

    .staff-role {
      color: var(--muted);
      font-size: 13.5px;
      font-weight: 500;
      line-height: 1.55;
    }

    .list {
      display: grid;
      gap: 14px;
    }

    .list-link {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      padding: 18px;
      border: 1px solid rgba(255, 255, 255, 0.76);
      border-radius: 22px;
      background: rgba(255, 255, 255, 0.78);
      transition: 0.2s ease;
      box-shadow: 0 16px 42px rgba(76, 29, 149, 0.08);
      backdrop-filter: blur(16px);
    }

    .list-link:hover {
      transform: translateY(-3px);
      box-shadow: 0 24px 58px rgba(124, 58, 237, 0.15);
    }

    .item-title {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 850;
      margin-bottom: 3px;
      color: #1f1147;
      line-height: 1.42;
    }

    .item-desc {
      color: var(--muted);
      font-size: 13.5px;
      font-weight: 500;
      line-height: 1.65;
    }

    .arrow {
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--pink));
      width: 34px;
      height: 34px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      font-weight: 900;
      flex: 0 0 auto;
    }

    .contact-panel {
      background:
        radial-gradient(circle at 82% 18%, rgba(250, 204, 21, 0.4), transparent 25%),
        radial-gradient(circle at 18% 85%, rgba(6, 182, 212, 0.38), transparent 28%),
        linear-gradient(135deg, #4c1d95, #7c3aed 42%, #ec4899 72%, #f97316);
      color: #fff;
      border-radius: 36px;
      padding: 32px;
      display: grid;
      grid-template-columns: 1fr 1fr;
      gap: 24px;
      align-items: center;
      box-shadow: 0 28px 70px rgba(124, 58, 237, 0.24);
    }

    .contact-panel .section-title { color: #fff; }
    .contact-panel p { color: rgba(255, 255, 255, 0.84); }

    .contact-item {
      padding: 15px 17px;
      border-radius: 20px;
      background: rgba(255, 255, 255, 0.15);
      border: 1px solid rgba(255, 255, 255, 0.2);
      backdrop-filter: blur(12px);
      margin-bottom: 12px;
    }

    

    

    

    .contact-action.disabled {
      opacity: 0.55;
      pointer-events: none;
    }

    .contact-label {
      display: block;
      font-size: 12px;
      font-weight: 800;
      color: rgba(255,255,255,0.72);
      margin-bottom: 4px;
    }

    .footer {
      border-top: 1px solid rgba(255,255,255,0.72);
      background: rgba(255,255,255,0.72);
      color: var(--muted);
      backdrop-filter: blur(18px);
    }

    .footer-inner {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 24px 20px;
      display: flex;
      justify-content: space-between;
      gap: 18px;
      flex-wrap: wrap;
      font-size: 14px;
      font-weight: 650;
    }

    .admin-layout {
      max-width: var(--max-width);
      margin: 0 auto;
      padding: 34px 20px 58px;
      display: grid;
      grid-template-columns: 250px 1fr;
      gap: 20px;
    }

    .admin-sidebar,
    .admin-content {
      background: rgba(255,255,255,0.78);
      border: 1px solid rgba(255,255,255,0.84);
      border-radius: 26px;
      box-shadow: var(--shadow);
      backdrop-filter: blur(18px);
    }

    .admin-sidebar {
      padding: 18px;
      height: fit-content;
      position: sticky;
      top: 92px;
      max-height: calc(100vh - 116px);
      overflow-y: auto;
      overscroll-behavior: contain;
    }

    .admin-content {
      padding: 22px;
      min-height: 480px;
      max-height: calc(100vh - 116px);
      overflow-y: auto;
      overscroll-behavior: contain;
      scroll-behavior: smooth;
    }

    .admin-title {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: 24px;
      font-weight: 900;
      color: #1f1147;
      margin: 0 0 4px;
    }

    .admin-subtitle {
      color: var(--muted);
      margin: 0 0 18px;
      font-size: 14px;
    }

    .admin-tabs { display: grid; gap: 8px; }

    .admin-tab {
      border: 0;
      background: rgba(255,255,255,0.62);
      color: #475569;
      text-align: left;
      border-radius: 16px;
      padding: 11px 13px;
      cursor: pointer;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 750;
    }

    .admin-tab.active {
      background: linear-gradient(135deg, var(--primary), var(--pink));
      color: #fff;
      box-shadow: 0 12px 24px rgba(124,58,237,0.18);
    }

    

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

    .form-grid .full { grid-column: 1 / -1; }

    .field label {
      display: block;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: 13px;
      font-weight: 800;
      margin-bottom: 6px;
      color: #1f1147;
    }

    .field input,
    .field textarea,
    .field select {
      width: 100%;
      border: 1px solid rgba(148, 163, 184, 0.36);
      background: rgba(255,255,255,0.86);
      border-radius: 16px;
      padding: 11px 13px;
      outline: none;
      color: var(--text);
      transition: 0.18s ease;
    }

    .field input:focus,
    .field textarea:focus,
    .field select:focus {
      border-color: rgba(124,58,237,0.5);
      box-shadow: 0 0 0 4px rgba(124,58,237,0.09);
    }

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

    .admin-list {
      margin-top: 24px;
      display: grid;
      gap: 12px;
    }

    .admin-item {
      background: rgba(255,255,255,0.72);
      border: 1px solid rgba(255,255,255,0.78);
      border-radius: 20px;
      padding: 16px;
      display: grid;
      grid-template-columns: 1fr auto;
      gap: 12px;
      align-items: center;
    }

    .admin-item-title {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 850;
      color: #1f1147;
    }

    .admin-item-desc {
      color: var(--muted);
      font-size: 13.5px;
      margin-top: 2px;
    }

    .small-button {
      border: 1px solid rgba(148, 163, 184, 0.34);
      background: rgba(255,255,255,0.78);
      border-radius: 999px;
      padding: 7px 11px;
      cursor: pointer;
      font-size: 13px;
      font-weight: 750;
      color: var(--primary);
    }

    .small-button.danger { color: #991b1b; background: #fee2e2; border-color: #fecaca; }

    .login-box {
      max-width: 540px;
      margin: 60px auto;
      padding: 28px;
      background: rgba(255,255,255,0.82);
      border: 1px solid rgba(255,255,255,0.86);
      border-radius: 28px;
      box-shadow: var(--shadow);
      text-align: center;
      backdrop-filter: blur(18px);
    }

    .admin-login-confirm-backdrop[hidden] {
      display: none !important;
    }

    .admin-login-confirm-backdrop {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: grid;
      place-items: center;
      padding: 22px;
      background: rgba(15, 23, 42, 0.42);
      backdrop-filter: blur(12px) saturate(1.08);
      -webkit-backdrop-filter: blur(12px) saturate(1.08);
    }

    .admin-login-confirm-dialog {
      width: min(460px, 100%);
      border-radius: 30px;
      padding: 28px;
      background: linear-gradient(180deg, rgba(255, 255, 255, 0.98), rgba(248, 250, 252, 0.96));
      border: 1px solid rgba(226, 232, 240, 0.92);
      box-shadow: 0 30px 90px rgba(15, 23, 42, 0.28);
      text-align: center;
      animation: adminLoginModalIn 0.18s ease both;
    }

    @keyframes adminLoginModalIn {
      from { opacity: 0; transform: translateY(8px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .admin-login-confirm-icon {
      width: 58px;
      height: 58px;
      margin: 0 auto 14px;
      border-radius: 22px;
      display: grid;
      place-items: center;
      color: #ffffff;
      font-size: 30px;
      font-weight: 900;
      background: linear-gradient(135deg, #2563eb, #7c3aed);
      box-shadow: 0 18px 40px rgba(37, 99, 235, 0.28);
    }

    .admin-login-confirm-title {
      margin: 0;
      color: #0f172a;
      font-size: 1.22rem;
      font-weight: 900;
      letter-spacing: -0.01em;
    }

    .admin-login-confirm-text {
      margin: 10px auto 0;
      max-width: 360px;
      color: #475569;
      font-size: 0.95rem;
      line-height: 1.75;
    }

    .admin-login-confirm-actions {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
      margin-top: 20px;
    }

    @media (max-width: 560px) {
      .admin-login-confirm-dialog {
        padding: 24px 18px;
        border-radius: 26px;
      }

      .admin-login-confirm-actions .button {
        width: 100%;
      }
    }

    .notice {
      padding: 14px 16px;
      border-radius: 18px;
      background: rgba(255, 247, 237, 0.86);
      color: #9a3412;
      border: 1px solid rgba(253, 186, 116, 0.7);
      font-weight: 650;
      margin: 12px 0;
    }

    .empty-note {
      border: 1px dashed rgba(124, 58, 237, 0.35);
      background: rgba(237, 233, 254, 0.72);
      color: var(--primary-dark);
      border-radius: 20px;
      padding: 17px;
      font-weight: 800;
      backdrop-filter: blur(12px);
    }

    .admin-list-empty {
      margin-top: 14px;
      border: 1px dashed rgba(124, 58, 237, 0.22);
      background: rgba(255,255,255,0.66);
      color: var(--muted);
      border-radius: 14px;
      padding: 11px 14px;
      font-size: 14px;
      font-weight: 700;
      line-height: 1.45;
    }

    .hidden { display: none !important; }

    .image-upload-panel {
      grid-column: 1 / -1;
      border: 1px solid rgba(124, 58, 237, 0.18);
      background:
        radial-gradient(circle at 12% 10%, rgba(255,255,255,0.65), transparent 24%),
        rgba(237, 233, 254, 0.46);
      border-radius: 22px;
      padding: 16px;
      display: grid;
      gap: 12px;
    }

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

    .image-upload-title {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 850;
      color: #1f1147;
    }

    .image-upload-note {
      color: var(--muted);
      font-size: 13px;
      line-height: 1.55;
    }

    .image-upload-controls {
      display: flex;
      align-items: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    .file-input {
      max-width: 100%;
      padding: 10px;
      border-radius: 16px;
      border: 1px dashed rgba(124, 58, 237, 0.34);
      background: rgba(255,255,255,0.72);
    }

    .image-preview-box {
      display: none;
      border-radius: 20px;
      overflow: hidden;
      border: 1px solid rgba(255,255,255,0.82);
      background: rgba(255,255,255,0.72);
      max-width: 420px;
      box-shadow: 0 16px 34px rgba(76, 29, 149, 0.08);
    }

    .image-preview-box.active {
      display: block;
    }

    .image-preview-box img {
      width: 100%;
      height: 210px;
      object-fit: cover;
      display: block;
    }

    .upload-status {
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
    }

    .news-cover {
      width: calc(100% + 48px);
      height: 180px;
      margin: -24px -24px 18px;
      border-radius: 26px 26px 18px 18px;
      overflow: hidden;
      background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.48), transparent 24%),
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.16));
      border-bottom: 1px solid rgba(255, 255, 255, 0.72);
    }

    .news-cover img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
      transition: transform 0.28s ease;
    }

    .card:hover .news-cover img {
      transform: scale(1.035);
    }

    .toast-zone {
      position: fixed;
      right: 18px;
      bottom: 18px;
      z-index: 9999;
      display: grid;
      gap: 10px;
      width: min(360px, calc(100vw - 36px));
      pointer-events: none;
    }

    .toast {
      pointer-events: auto;
      border-radius: 20px;
      padding: 14px 16px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(255, 255, 255, 0.88);
      box-shadow: 0 22px 50px rgba(15, 23, 42, 0.18);
      backdrop-filter: blur(18px);
      display: grid;
      grid-template-columns: auto 1fr;
      gap: 10px;
      align-items: start;
      animation: toastIn 0.22s ease-out;
    }

    .toast-icon {
      width: 28px;
      height: 28px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      color: #fff;
      font-weight: 900;
      background: linear-gradient(135deg, var(--primary), var(--pink));
      margin-top: 1px;
    }

    .toast.success .toast-icon {
      background: linear-gradient(135deg, #16a34a, #22c55e);
    }

    .toast.warn .toast-icon {
      background: linear-gradient(135deg, #f97316, #facc15);
    }

    .toast.danger .toast-icon {
      background: linear-gradient(135deg, #dc2626, #ef4444);
    }

    .toast-title {
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-weight: 850;
      color: #1f1147;
      line-height: 1.35;
    }

    .toast-message {
      color: var(--muted);
      font-size: 13.5px;
      line-height: 1.55;
      margin-top: 2px;
    }

    @keyframes toastIn {
      from { opacity: 0; transform: translateY(10px) scale(0.98); }
      to { opacity: 1; transform: translateY(0) scale(1); }
    }

    .helper-text {
      display: block;
      color: var(--muted);
      font-size: 12.5px;
      line-height: 1.45;
      margin-top: 6px;
    }

    .form-toolbar {
      display: flex;
      justify-content: space-between;
      gap: 12px;
      align-items: center;
      flex-wrap: wrap;
      margin-bottom: 16px;
      padding: 12px 14px;
      border-radius: 18px;
      background: rgba(237, 233, 254, 0.58);
      border: 1px solid rgba(255, 255, 255, 0.76);
      color: #4c1d95;
      font-weight: 700;
      font-size: 13.5px;
    }

    .status-badge {
      display: inline-flex;
      align-items: center;
      gap: 5px;
      width: fit-content;
      border-radius: 999px;
      padding: 4px 9px;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: 12px;
      font-weight: 800;
      margin-right: 6px;
    }

    .status-badge.published {
      color: #166534;
      background: #dcfce7;
      border: 1px solid #bbf7d0;
    }

    .status-badge.hidden-status {
      color: #9a3412;
      background: #ffedd5;
      border: 1px solid #fed7aa;
    }

    .admin-item-actions {
      display: flex;
      gap: 8px;
      justify-content: flex-end;
      flex-wrap: wrap;
    }

    .public-filter-panel {
      display: grid;
      grid-template-columns: 1.5fr 1fr 1fr;
      gap: 12px;
      align-items: end;
      margin-bottom: 22px;
      padding: 16px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.88);
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.08);
    }

    .public-filter-field label {
      display: block;
      font-size: 12px;
      font-weight: 900;
      color: var(--muted);
      margin-bottom: 7px;
    }

    .public-filter-field input,
    .public-filter-field select {
      width: 100%;
      height: 44px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-radius: 15px;
      padding: 0 13px;
      font: inherit;
      font-weight: 700;
      background: #fff;
      outline: none;
    }

    .public-filter-field input:focus,
    .public-filter-field select:focus {
      border-color: rgba(124, 58, 237, 0.42);
      box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10);
    }

    .important-notice-grid {
      display: grid;
      grid-template-columns: 1.2fr 1fr;
      gap: 18px;
      align-items: stretch;
    }

    .important-notice-card {
      position: relative;
      overflow: hidden;
      border-radius: 28px;
      padding: 24px;
      color: #fff;
      background:
        radial-gradient(circle at 15% 15%, rgba(254, 243, 199, 0.32), transparent 30%),
        linear-gradient(135deg, #7c2d12, #b45309 48%, #f59e0b);
      box-shadow: 0 24px 62px rgba(146, 64, 14, 0.26);
      min-height: 230px;
      display: flex;
      flex-direction: column;
      justify-content: space-between;
    }

    .important-notice-card::after {
      content: "";
      position: absolute;
      inset: auto -40px -80px auto;
      width: 190px;
      height: 190px;
      border-radius: 999px;
      background: rgba(255,255,255,0.18);
    }

    .important-notice-card h3 {
      position: relative;
      z-index: 1;
      font-size: clamp(24px, 3vw, 34px);
      line-height: 1.28;
      margin-bottom: 12px;
    }

    .important-notice-card p {
      position: relative;
      z-index: 1;
      color: rgba(255,255,255,0.84);
      font-weight: 650;
      line-height: 1.75;
    }

    .important-notice-meta {
      position: relative;
      z-index: 1;
      display: flex;
      gap: 8px;
      flex-wrap: wrap;
      margin-top: 18px;
      font-weight: 900;
      font-size: 13px;
      color: #7c2d12;
    }

    .important-notice-meta span {
      background: rgba(255,255,255,0.84);
      border-radius: 999px;
      padding: 7px 11px;
    }

    .important-notice-list {
      display: grid;
      gap: 12px;
    }

    .important-mini-card {
      border-radius: 22px;
      padding: 17px;
      background: rgba(255, 255, 255, 0.92);
      border: 1px solid rgba(245, 158, 11, 0.22);
      box-shadow: 0 16px 36px rgba(15, 23, 42, 0.08);
    }

    .important-mini-card strong {
      display: block;
      color: #7c2d12;
      font-size: 17px;
      margin-bottom: 6px;
    }

    .important-mini-card span {
      color: var(--muted);
      font-weight: 800;
      font-size: 13px;
    }

    .site-footer {
      margin-top: 56px;
      background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,0.14), transparent 32%),
        linear-gradient(135deg, #0f172a, #312e81 55%, #075985);
      color: rgba(255,255,255,0.86);
      border-top-left-radius: 34px;
      border-top-right-radius: 34px;
      overflow: hidden;
    }

    .site-footer-inner {
      width: min(1320px, calc(100% - 40px));
      margin: 0 auto;
      display: grid;
      grid-template-columns: 1.4fr 1fr 1fr;
      gap: 28px;
      padding: 34px 0 26px;
    }

    .footer-brand {
      display: flex;
      align-items: flex-start;
      gap: 14px;
    }

    .footer-brand img {
      width: 58px;
      height: 58px;
      object-fit: contain;
      border-radius: 18px;
      background: rgba(255,255,255,0.92);
      padding: 7px;
    }

    .footer-brand h3 {
      color: #fff;
      font-size: 22px;
      line-height: 1.35;
      margin-bottom: 8px;
    }

    .footer-brand p,
    .footer-col p {
      line-height: 1.75;
      color: rgba(255,255,255,0.74);
      font-weight: 650;
    }

    .footer-col h4 {
      color: #fff;
      margin-bottom: 12px;
      font-size: 16px;
    }

    

    

    

    .footer-bottom {
      border-top: 1px solid rgba(255,255,255,0.14);
      padding: 15px 0;
      text-align: center;
      font-size: 13px;
      font-weight: 800;
      color: rgba(255,255,255,0.64);
    }

    

    @media (max-width: 900px) {
      .section {
        padding-top: 42px;
        padding-bottom: 42px;
      }

      .home-flow > .section {
        padding-top: 28px;
        padding-bottom: 28px;
      }

      .hero {
        padding-top: 34px;
      }

      .hero-card,
      .important-notice-card,
      .contact-panel {
        border-radius: 24px;
      }
      .site-footer {
        margin-top: 40px;
        border-top-left-radius: 26px;
        border-top-right-radius: 26px;
      }
    }

    @media (max-width: 520px) {
      .container,
      .site-footer-inner {
        width: min(100% - 26px, 1320px);
      }

      .section-title {
        font-size: 27px;
        line-height: 1.28;
      }

      .hero-title {
        font-size: 34px;
        line-height: 1.22;
      }

      
      .important-mini-card,
      .card {
        border-radius: 20px;
      }

      .important-notice-card {
        padding: 20px;
        min-height: 210px;
      }

      .important-notice-card h3 {
        font-size: 24px;
      }

      .footer-brand {
        flex-direction: column;
      }

      .footer-brand img {
        width: 54px;
        height: 54px;
      }

      .footer-brand h3 {
        font-size: 19px;
      }

      .footer-bottom {
        padding-left: 14px;
        padding-right: 14px;
        line-height: 1.6;
      }
    }

    .admin-overview {
      display: grid;
      grid-template-columns: repeat(3, 1fr);
      gap: 14px;
      margin-bottom: 22px;
    }

    .admin-overview-card {
      padding: 18px;
      border-radius: 22px;
      background: linear-gradient(135deg, rgba(255,255,255,0.96), rgba(248,250,252,0.88));
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 16px 38px rgba(15, 23, 42, 0.07);
    }

    .admin-overview-card span {
      display: block;
      color: var(--muted);
      font-size: 12px;
      font-weight: 900;
      margin-bottom: 7px;
    }

    .admin-overview-card strong {
      display: block;
      color: var(--text);
      font-size: 30px;
      line-height: 1;
      margin-bottom: 7px;
    }

    .admin-overview-card small {
      color: var(--muted);
      font-weight: 750;
    }

    .admin-health {
      margin-bottom: 20px;
      padding: 16px 18px;
      border-radius: 22px;
      background: rgba(236, 253, 245, 0.92);
      border: 1px solid rgba(16, 185, 129, 0.18);
      color: #065f46;
      font-weight: 850;
      line-height: 1.65;
    }

    .admin-health-row {
      display: flex;
      align-items: center;
      justify-content: space-between;
      gap: 14px;
      flex-wrap: wrap;
    }

    .admin-health-row .button {
      min-height: 38px;
      padding: 9px 14px;
      box-shadow: none;
    }

    .admin-health-actions {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
    }

    .admin-quality {
      margin-bottom: 22px;
      padding: 18px;
      border-radius: 24px;
      background: rgba(255,255,255,0.94);
      border: 1px solid rgba(15, 23, 42, 0.08);
      box-shadow: 0 16px 40px rgba(15, 23, 42, 0.07);
    }

    .admin-quality h3 {
      font-size: 20px;
      margin-bottom: 8px;
      color: var(--text);
    }

    .admin-quality p {
      color: var(--muted);
      font-weight: 750;
      margin-bottom: 14px;
      line-height: 1.65;
    }

    .quality-list {
      display: grid;
      gap: 9px;
    }

    .quality-item {
      display: flex;
      align-items: flex-start;
      gap: 9px;
      padding: 11px 13px;
      border-radius: 16px;
      background: rgba(255, 247, 237, 0.9);
      border: 1px solid rgba(249, 115, 22, 0.16);
      color: #9a3412;
      font-weight: 800;
      line-height: 1.55;
    }

    .quality-item.ok {
      background: rgba(236, 253, 245, 0.9);
      border-color: rgba(16, 185, 129, 0.18);
      color: #065f46;
    }

    .back-to-top {
      position: fixed;
      right: 20px;
      bottom: 22px;
      z-index: 80;
      width: 48px;
      height: 48px;
      border-radius: 999px;
      border: 0;
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, var(--primary), var(--accent));
      color: #fff;
      font-size: 21px;
      font-weight: 900;
      cursor: pointer;
      box-shadow: 0 18px 42px rgba(79, 70, 229, 0.28);
      opacity: 0;
      transform: translateY(14px);
      pointer-events: none;
      transition: 0.22s ease;
    }

    .back-to-top.show {
      opacity: 1;
      transform: translateY(0);
      pointer-events: auto;
    }

    .back-to-top:hover {
      transform: translateY(-2px);
      box-shadow: 0 22px 52px rgba(79, 70, 229, 0.34);
    }

    .skip-link {
      position: fixed;
      left: 16px;
      top: 12px;
      z-index: 999;
      padding: 10px 14px;
      border-radius: 999px;
      background: #111827;
      color: #fff;
      font-weight: 900;
      transform: translateY(-140%);
      transition: 0.18s ease;
      box-shadow: 0 14px 36px rgba(15, 23, 42, 0.22);
    }

    .skip-link:focus {
      transform: translateY(0);
    }

    a:focus-visible,
    button:focus-visible,
    input:focus-visible,
    textarea:focus-visible,
    select:focus-visible {
      outline: 4px solid rgba(245, 158, 11, 0.42);
      outline-offset: 3px;
    }

    main:focus {
      outline: none;
    }

    .list-link.disabled {
      cursor: not-allowed;
      opacity: 0.68;
      background: rgba(241, 245, 249, 0.82);
    }

    .list-link.disabled .arrow {
      color: #94a3b8;
    }

    .link-status {
      display: inline-flex;
      width: max-content;
      margin-top: 8px;
      border-radius: 999px;
      padding: 5px 9px;
      font-size: 12px;
      font-weight: 900;
      color: #92400e;
      background: rgba(254, 243, 199, 0.85);
    }

    .network-banner {
      position: fixed;
      left: 50%;
      top: 78px;
      transform: translateX(-50%) translateY(-14px);
      z-index: 95;
      width: min(720px, calc(100% - 28px));
      padding: 12px 16px;
      border-radius: 18px;
      background: rgba(127, 29, 29, 0.96);
      color: #fff;
      font-weight: 900;
      text-align: center;
      box-shadow: 0 18px 44px rgba(127, 29, 29, 0.24);
      opacity: 0;
      pointer-events: none;
      transition: 0.22s ease;
    }

    .network-banner.show {
      opacity: 1;
      transform: translateX(-50%) translateY(0);
      pointer-events: auto;
    }

    .noscript-warning {
      margin: 20px;
      padding: 16px;
      border-radius: 18px;
      background: #fee2e2;
      color: #991b1b;
      font-weight: 900;
      text-align: center;
    }

    .admin-list-tools {
      margin: 18px 0 12px;
      padding: 12px;
      border-radius: 18px;
      background: rgba(255,255,255,0.86);
      border: 1px solid rgba(15, 23, 42, 0.08);
    }

    .admin-list-tools input {
      width: 100%;
      height: 42px;
      border: 1px solid rgba(15, 23, 42, 0.12);
      border-radius: 14px;
      padding: 0 13px;
      font: inherit;
      font-weight: 750;
      outline: none;
      background: #fff;
    }

    .admin-list-tools input:focus {
      border-color: rgba(124, 58, 237, 0.42);
      box-shadow: 0 0 0 4px rgba(124, 58, 237, 0.10);
    }

    .admin-item.search-hidden {
      display: none;
    }

    .admin-list-empty.search-result {
      margin-top: 10px;
    }

    .admin-content {
      scroll-margin-top: 98px;
    }

    .admin-sidebar,
    .admin-content {
      scrollbar-width: none;
      -ms-overflow-style: none;
    }

    .admin-sidebar::-webkit-scrollbar,
    .admin-content::-webkit-scrollbar {
      width: 0;
      height: 0;
      display: none;
    }

    .admin-tab-content {
      transition: opacity 0.16s ease, transform 0.16s ease;
    }

    .admin-tab-content.switching {
      opacity: 0;
      transform: translateY(6px);
    }

    .admin-tab-content.ready {
      animation: adminContentIn 0.18s ease both;
    }

    @keyframes adminContentIn {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    .home-flow {
      padding-bottom: 20px;
    }

    .home-flow > .section {
      padding-top: 34px;
      padding-bottom: 34px;
    }

    .home-flow .section-header {
      margin-bottom: 18px;
    }

    .home-flow .card,
    .home-flow .list-link,
    .home-flow .quick-access-card {
      height: 100%;
    }

    .home-flow .grid {
      align-items: stretch;
    }

    .home-flow .card {
      display: flex;
      flex-direction: column;
    }

    .home-flow .card p {
      flex: 1;
    }

    .hero {
      padding-bottom: 34px;
    }

    .hero-inner {
      gap: 34px;
    }

    

    .hero-card {
      align-self: stretch;
    }

    body {
      letter-spacing: -0.006em;
      text-rendering: optimizeLegibility;
    }

    .brand-title,
    .section-title,
    .hero-title-main,
    .admin-title {
      letter-spacing: -0.025em;
    }

    .section-desc,
    .hero p,
    .item-desc,
    .card p {
      line-height: 1.75;
    }

    .button,
    .small-button,
    .nav-button,
    .admin-tab {
      letter-spacing: -0.01em;
    }

    @media (max-width: 620px) {
      

      .hero-actions .button {
        width: 100%;
        justify-content: center;
      }

      .section-desc {
        font-size: 14.5px;
      }

      .card h3,
      .item-title {
        font-size: 18px;
        line-height: 1.45;
      }
      

      
    }

    .hero-title-main {
      display: block;
      font-size: clamp(42px, 5.3vw, 72px);
      line-height: 1.08;
      word-break: keep-all;
      overflow-wrap: normal;
    }

    

    

    

    @media (max-width: 760px) {
      .hero-title-main {
        font-size: clamp(34px, 10vw, 48px);
      }

      

      

      
    }

    .activity-hero-card {
      padding: 0;
      overflow: hidden;
      min-height: 360px;
      display: grid;
      background: rgba(255,255,255,0.72);
    }

    .hero-activity-media {
      position: relative;
      min-height: 360px;
      border-radius: 28px;
      overflow: hidden;
      background: linear-gradient(135deg, rgba(124,58,237,0.18), rgba(6,182,212,0.14));
    }

    .hero-activity-media img {
      width: 100%;
      height: 100%;
      min-height: 360px;
      object-fit: cover;
      display: block;
    }

    .hero-activity-overlay {
      position: absolute;
      inset: auto 18px 18px 18px;
      padding: 16px 18px;
      border-radius: 22px;
      background: rgba(15, 23, 42, 0.72);
      color: #fff;
      backdrop-filter: blur(14px);
      box-shadow: 0 18px 36px rgba(15, 23, 42, 0.22);
    }

    .hero-activity-overlay strong {
      display: block;
      font-size: 21px;
      line-height: 1.35;
      margin-bottom: 4px;
    }

    .hero-activity-overlay span {
      display: block;
      color: rgba(255,255,255,0.78);
      font-weight: 700;
      line-height: 1.55;
    }

    .hero-activity-fallback {
      min-height: 360px;
      display: grid;
      place-items: center;
      text-align: center;
      padding: 28px;
      background:
        radial-gradient(circle at 20% 15%, rgba(255,255,255,0.32), transparent 26%),
        linear-gradient(135deg, #7c3aed, #db2777 52%, #f97316);
      color: #fff;
      border-radius: 28px;
    }

    .hero-activity-fallback img {
      width: 112px;
      height: 112px;
      object-fit: contain;
      background: rgba(255,255,255,0.92);
      border-radius: 26px;
      padding: 12px;
      margin-bottom: 14px;
    }

    @media (max-width: 760px) {
      .activity-hero-card,
      .hero-activity-media,
      .hero-activity-media img,
      .hero-activity-fallback {
        min-height: 260px;
      }

      .hero-activity-overlay {
        inset: auto 12px 12px 12px;
        padding: 13px 14px;
      }

      .hero-activity-overlay strong {
        font-size: 18px;
      }
    }

    .home-flow > .section:first-child {
      padding-top: 28px;
    }

    .hero {
      min-height: auto;
      padding: 58px 0 46px;
    }

    .hero-inner {
      grid-template-columns: 0.9fr 1.1fr;
      align-items: center;
      gap: 44px;
    }

    .hero h1 {
      margin-bottom: 18px;
    }

    .hero-title-main {
      font-size: clamp(44px, 5.2vw, 70px);
      line-height: 1.04;
      max-width: 720px;
    }

    .hero p {
      max-width: 680px;
      font-size: clamp(17px, 1.5vw, 21px);
      line-height: 1.8;
    }

    

    

    .activity-hero-card {
      min-height: 390px;
      border-radius: 34px;
      box-shadow: 0 26px 74px rgba(15, 23, 42, 0.12);
    }

    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      min-height: 390px;
      border-radius: 30px;
    }

    .hero-activity-overlay {
      background: rgba(15, 23, 42, 0.66);
    }

    .home-flow > .section:first-child {
      padding-top: 22px;
    }

    @media (max-width: 980px) {
      .hero {
        padding: 44px 0 34px;
      }

      .hero-inner {
        grid-template-columns: 1fr;
        gap: 24px;
      }

      .activity-hero-card,
      .hero-activity-media,
      .hero-activity-media img,
      .hero-activity-fallback {
        min-height: 300px;
      }
    }

    .hero {
      padding: 34px 0 26px;
    }

    .hero-inner {
      gap: 28px;
    }

    .hero h1 {
      margin-bottom: 12px;
    }

    .hero-title-main {
      font-size: clamp(38px, 4.4vw, 60px);
      line-height: 1.05;
    }

    .hero p {
      font-size: clamp(16px, 1.25vw, 19px);
      line-height: 1.72;
      max-width: 620px;
    }

    

    .activity-hero-card {
      min-height: 285px;
      border-radius: 30px;
    }

    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      min-height: 285px;
      border-radius: 26px;
    }

    .hero-activity-overlay {
      inset: auto 14px 14px 14px;
      padding: 13px 15px;
    }

    .home-flow > .section {
      padding-top: 26px;
      padding-bottom: 28px;
    }

    .home-flow > .section:first-child {
      padding-top: 18px;
    }

    @media (max-width: 980px) {
      .hero {
        padding: 30px 0 24px;
      }

      .activity-hero-card,
      .hero-activity-media,
      .hero-activity-media img,
      .hero-activity-fallback {
        min-height: 240px;
      }
    }

    .hero-inner {
      padding: 32px 20px 30px;
      gap: 24px;
    }

    

    .hero h1 {
      margin: 12px 0 10px;
    }

    .hero-title-main {
      font-size: clamp(36px, 4vw, 54px);
      line-height: 1.05;
    }

    .hero p {
      margin: 0 0 15px;
      line-height: 1.62;
      font-size: clamp(15.5px, 1.18vw, 18px);
    }

    

    .hero-actions .button {
      min-height: 42px;
      padding: 10px 15px;
    }

    .activity-hero-card,
    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      min-height: 245px;
    }

    .home-flow > .section:first-child {
      padding-top: 12px;
    }

    @media (max-width: 980px) {
      .hero-inner {
        padding: 26px 18px 24px;
      }

      .activity-hero-card,
      .hero-activity-media,
      .hero-activity-media img,
      .hero-activity-fallback {
        min-height: 220px;
      }
    }

    .hero-activity-fallback {
      display: grid;
      place-items: center;
      text-align: center;
    }

    .hero-activity-fallback > div {
      display: grid;
      place-items: center;
      gap: 9px;
      max-width: 88%;
    }

    .hero-activity-fallback img {
      margin: 0 auto 6px;
    }

    .hero-activity-fallback strong {
      display: block;
      color: #fff;
      font-size: clamp(20px, 2.2vw, 28px);
      line-height: 1.35;
      font-weight: 900;
      text-shadow: 0 8px 18px rgba(15, 23, 42, 0.18);
    }

    .hero-activity-fallback div div {
      color: rgba(255,255,255,0.86);
      font-weight: 700;
      line-height: 1.55;
    }

    .hero-title-main {
      font-size: clamp(32px, 3.6vw, 50px);
      line-height: 1.12;
      letter-spacing: -0.035em;
    }

    .section-title {
      font-size: clamp(28px, 3vw, 42px);
      line-height: 1.22;
      letter-spacing: -0.03em;
    }

    .home-flow .section-title {
      font-size: clamp(28px, 2.8vw, 40px);
    }

    .section-kicker {
      font-size: 13px;
      margin-bottom: 8px;
    }

    .hero p {
      font-size: clamp(15.5px, 1.15vw, 18px);
    }

    .card h3,
    .item-title {
      font-size: 20px;
      line-height: 1.42;
    }

    @media (max-width: 760px) {
      .hero-title-main {
        font-size: clamp(30px, 8vw, 40px);
      }

      .section-title,
      .home-flow .section-title {
        font-size: clamp(26px, 7vw, 34px);
      }
    }

    .home-flow .news-cover {
      height: 145px;
      margin-bottom: 14px;
    }

    .home-flow .card {
      padding: 20px;
      border-radius: 22px;
    }

    .home-flow .card .news-cover {
      width: calc(100% + 40px);
      margin-left: -20px;
      margin-right: -20px;
      margin-top: -20px;
      border-radius: 22px 22px 16px 16px;
    }

    .home-flow .card h3 {
      font-size: 18px;
      margin: 12px 0 7px;
      line-height: 1.42;
    }

    .home-flow .card p {
      font-size: 14.5px;
      line-height: 1.65;
    }

    .home-flow .card-footer {
      margin-top: 13px;
      font-size: 12.5px;
    }

    @media (max-width: 760px) {
      .home-flow .news-cover {
        height: 130px;
      }
    }

    @media (max-width: 1100px) {      .site-footer-inner {
        grid-template-columns: 1fr;
      }

      .admin-overview {
        grid-template-columns: repeat(2, 1fr);
      }

      .topbar-inner { align-items: flex-start; flex-wrap: wrap; }
      .mobile-menu-button { display: inline-flex; }
      .nav {
        display: none;
        width: 100%;
        flex-direction: column;
        align-items: stretch;
        margin-top: 12px;
      }
      .nav.open { display: flex; }
      .nav-button { text-align: left; border-radius: 16px; }
      .hero-inner,
      .contact-panel,
      .admin-layout { grid-template-columns: 1fr; }
      .admin-sidebar {
        position: static;
        max-height: none;
        overflow: visible;
      }
      .admin-content {
        max-height: none;
        overflow: visible;
      }
      .grid-3,
      .grid-2,
      .form-grid { grid-template-columns: 1fr; }
      .section-header { flex-direction: column; align-items: flex-start; }
    }

    @media (max-width: 560px) {
      .brand { min-width: 0; max-width: none; }
      .brand-title { font-size: 13.5px; line-height: 1.3; }
      .brand-subtitle { display: none; }
      .hero-inner { padding-top: 44px; }
      
      .section { padding: 42px 16px; }
      .topbar-inner { padding: 12px 16px; }
      
      .admin-item { grid-template-columns: 1fr; }
    }

    .hero {
      padding: 0 !important;
    }

    .hero-inner {
      padding: 24px 20px 22px !important;
      gap: 22px !important;
    }

    

    .hero h1 {
      margin: 10px 0 8px !important;
    }

    .hero-title-main {
      font-size: clamp(30px, 3vw, 42px) !important;
      line-height: 1.16 !important;
      letter-spacing: -0.028em !important;
      max-width: 560px !important;
    }

    .hero p {
      font-size: clamp(14.5px, 1.05vw, 16.5px) !important;
      line-height: 1.58 !important;
      margin: 0 0 12px !important;
      max-width: 560px !important;
    }

    

    .hero-actions .button {
      min-height: 38px !important;
      padding: 8px 13px !important;
      font-size: 14px !important;
    }

    .activity-hero-card,
    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      min-height: 220px !important;
    }

    .section {
      padding-top: 34px !important;
      padding-bottom: 34px !important;
    }

    .home-flow > .section {
      padding-top: 18px !important;
      padding-bottom: 22px !important;
    }

    .home-flow > .section:first-child {
      padding-top: 10px !important;
    }

    .section-kicker {
      font-size: 12.5px !important;
      margin-bottom: 6px !important;
    }

    .section-title,
    .home-flow .section-title {
      font-size: clamp(24px, 2.25vw, 32px) !important;
      line-height: 1.24 !important;
    }

    .section-desc {
      font-size: 14.5px !important;
      line-height: 1.6 !important;
    }

    .home-flow .card {
      padding: 18px !important;
      border-radius: 20px !important;
    }

    .home-flow .card .news-cover {
      height: 120px !important;
      width: calc(100% + 36px) !important;
      margin: -18px -18px 12px !important;
      border-radius: 20px 20px 14px 14px !important;
    }

    .home-flow .card h3 {
      font-size: 16.5px !important;
      line-height: 1.42 !important;
      margin: 10px 0 6px !important;
    }

    .home-flow .card p {
      font-size: 13.8px !important;
      line-height: 1.58 !important;
    }

    .home-flow .card-footer {
      margin-top: 10px !important;
      font-size: 12px !important;
    }

    @media (max-width: 760px) {
      .hero-title-main {
        font-size: clamp(28px, 7vw, 36px) !important;
      }

      .section-title,
      .home-flow .section-title {
        font-size: clamp(23px, 6vw, 30px) !important;
      }
    }


    .site-footer {
      margin-top: 38px !important;
      border-top-left-radius: 24px !important;
      border-top-right-radius: 24px !important;
    }

    .site-footer-inner {
      width: min(1320px, calc(100% - 48px)) !important;
      grid-template-columns: 1.35fr 0.85fr 1fr !important;
      gap: 34px !important;
      align-items: start !important;
      padding: 26px 0 20px !important;
    }

    .footer-brand {
      gap: 13px !important;
      align-items: flex-start !important;
    }

    .footer-brand img {
      width: 48px !important;
      height: 48px !important;
      padding: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      border: 0 !important;
      object-fit: contain !important;
    }

    .footer-brand h3 {
      font-size: 19px !important;
      line-height: 1.35 !important;
      margin-bottom: 6px !important;
    }

    .footer-brand p,
    .footer-col p {
      font-size: 13.5px !important;
      line-height: 1.65 !important;
    }

    .footer-col h4 {
      font-size: 14.5px !important;
      margin-bottom: 9px !important;
      letter-spacing: 0 !important;
    }

    

    

    .footer-bottom {
      padding: 10px 0 !important;
      font-size: 12.5px !important;
    }

    @media (max-width: 900px) {
      .site-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 20px !important;
      }
    }


    .brand-logo {
      width: 48px !important;
      height: 48px !important;
      padding: 0 !important;
      border: 0 !important;
      border-radius: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      overflow: visible !important;
    }

    .brand-logo img {
      width: 48px !important;
      height: 48px !important;
      object-fit: contain !important;
    }

    .footer-brand {
      align-items: center !important;
      gap: 14px !important;
    }

    .footer-brand img {
      width: 46px !important;
      height: 46px !important;
      align-self: center !important;
      margin-top: 0 !important;
    }

    .footer-brand h3 {
      margin-top: 0 !important;
      margin-bottom: 5px !important;
    }

    .footer-brand p {
      margin: 0 !important;
    }


    .footer-brand {
      margin-top: 26px !important;
    }

    @media (max-width: 900px) {
      .footer-brand {
        margin-top: 0 !important;
      }
    }


    .card-desc.collapsible {
      max-height: 7.2em;
      overflow: hidden;
      position: relative;
    }

    .card-desc.collapsible:not(.expanded)::after {
      content: "";
      position: absolute;
      left: 0;
      right: 0;
      bottom: 0;
      height: 2.2em;
      background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.96));
      pointer-events: none;
    }

    .card-desc.expanded {
      max-height: none;
    }

    .read-more-btn {
      display: inline-flex;
      align-items: center;
      margin-top: 10px;
      border: 0;
      background: transparent;
      color: var(--primary);
      font: inherit;
      font-size: 13.5px;
      font-weight: 900;
      cursor: pointer;
      padding: 0;
    }

    .read-more-btn:hover {
      text-decoration: underline;
    }


    .album-upload-panel {
      grid-column: 1 / -1;
      border-radius: 22px;
      padding: 16px;
      background: rgba(255,255,255,0.82);
      border: 1px solid rgba(124,58,237,0.12);
    }

    .album-upload-title {
      font-weight: 900;
      color: var(--text);
      margin-bottom: 6px;
    }

    .album-upload-note {
      color: var(--muted);
      font-size: 13px;
      font-weight: 650;
      margin-bottom: 12px;
      line-height: 1.6;
    }

    .album-upload-controls {
      display: flex;
      gap: 10px;
      flex-wrap: wrap;
      align-items: center;
      margin-bottom: 12px;
    }

    .album-preview-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 10px;
    }

    .album-preview-item {
      position: relative;
      border-radius: 16px;
      overflow: hidden;
      min-height: 95px;
      background: rgba(15,23,42,0.06);
    }

    .album-preview-item img {
      width: 100%;
      height: 100%;
      min-height: 95px;
      object-fit: cover;
      display: block;
    }

    .album-preview-remove {
      position: absolute;
      right: 6px;
      top: 6px;
      border: 0;
      border-radius: 999px;
      width: 26px;
      height: 26px;
      cursor: pointer;
      background: rgba(220,38,38,0.92);
      color: #fff;
      font-weight: 900;
    }

    .activity-album-group {
      margin-bottom: 28px;
    }

    .activity-album-head {
      display: flex;
      justify-content: space-between;
      gap: 14px;
      align-items: flex-end;
      margin-bottom: 12px;
    }

    .activity-album-head h3 {
      font-size: 22px;
      line-height: 1.35;
      color: var(--text);
      margin: 0;
    }

    .activity-album-head span {
      color: var(--muted);
      font-weight: 750;
      font-size: 13px;
    }

    .activity-album-grid {
      display: grid;
      grid-template-columns: repeat(4, 1fr);
      gap: 12px;
    }

    .activity-album-photo {
      border-radius: 20px;
      overflow: hidden;
      min-height: 160px;
      background: rgba(255,255,255,0.82);
      box-shadow: 0 14px 34px rgba(15,23,42,0.08);
    }

    .activity-album-photo img {
      width: 100%;
      height: 100%;
      min-height: 160px;
      object-fit: cover;
      display: block;
      transition: transform 0.25s ease;
    }

    .activity-album-photo:hover img {
      transform: scale(1.035);
    }

    @media (max-width: 900px) {
      .album-preview-grid,
      .activity-album-grid {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 560px) {
      .album-preview-grid,
      .activity-album-grid {
        grid-template-columns: 1fr;
      }
    }


    .hero-activity-overlay.title-only {
      padding: 12px 15px !important;
      max-width: calc(100% - 28px) !important;
    }

    .hero-activity-overlay.title-only strong {
      font-size: clamp(17px, 1.6vw, 22px) !important;
      line-height: 1.35 !important;
      margin-bottom: 0 !important;
    }


    .album-upload-count {
      display: inline-flex;
      border-radius: 999px;
      padding: 6px 10px;
      background: rgba(124,58,237,0.10);
      color: var(--primary);
      font-size: 12.5px;
      font-weight: 900;
    }


    .activity-hero-card {
      max-width: 620px !important;
      width: 100% !important;
      justify-self: end !important;
      min-height: 215px !important;
    }

    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      min-height: 215px !important;
    }

    .hero-activity-overlay {
      left: 12px !important;
      right: 12px !important;
      bottom: 12px !important;
    }

    @media (max-width: 980px) {
      .activity-hero-card {
        max-width: none !important;
        justify-self: stretch !important;
      }
    }


    .activity-album-grid {
      grid-template-columns: repeat(4, 1fr) !important;
      gap: 10px !important;
    }

    .activity-album-photo,
    .activity-album-photo img {
      min-height: 118px !important;
      height: 118px !important;
    }

    .activity-album-photo.is-hidden {
      display: none;
    }

    .album-toggle-btn {
      margin-top: 12px;
      border: 0;
      border-radius: 999px;
      padding: 9px 14px;
      background: rgba(124,58,237,0.10);
      color: var(--primary);
      font: inherit;
      font-size: 13px;
      font-weight: 900;
      cursor: pointer;
    }

    .album-toggle-btn:hover {
      background: rgba(124,58,237,0.16);
    }

    @media (max-width: 900px) {
      .activity-album-grid {
        grid-template-columns: repeat(2, 1fr) !important;
      }
    }

    @media (max-width: 560px) {
      .activity-album-grid {
        grid-template-columns: 1fr !important;
      }

      .activity-album-photo,
      .activity-album-photo img {
        min-height: 160px !important;
        height: 160px !important;
      }
    }


    .hero {
      padding: 22px 0 18px !important;
      background:
        radial-gradient(circle at 14% 20%, rgba(236, 72, 153, 0.16), transparent 28%),
        radial-gradient(circle at 88% 8%, rgba(6, 182, 212, 0.18), transparent 30%),
        linear-gradient(135deg, #fdf2f8 0%, #eef2ff 46%, #ecfeff 100%) !important;
    }

    .hero-inner {
      width: min(1320px, calc(100% - 48px)) !important;
      margin: 0 auto !important;
      padding: 24px !important;
      display: grid !important;
      grid-template-columns: minmax(0, 1fr) 460px !important;
      gap: 26px !important;
      align-items: center !important;
      background: rgba(255,255,255,0.72) !important;
      border: 1px solid rgba(255,255,255,0.86) !important;
      border-radius: 30px !important;
      box-shadow: 0 22px 58px rgba(15, 23, 42, 0.08) !important;
      backdrop-filter: blur(16px) !important;
    }

    .hero-title-main {
      font-size: clamp(30px, 2.8vw, 42px) !important;
      line-height: 1.16 !important;
      max-width: 540px !important;
    }

    .hero p {
      max-width: 620px !important;
      font-size: 15.5px !important;
      line-height: 1.62 !important;
      margin-bottom: 14px !important;
    }

    

    .hero-actions .button {
      min-height: 38px !important;
      padding: 8px 14px !important;
      font-size: 14px !important;
    }

    .activity-hero-card {
      max-width: 460px !important;
      width: 100% !important;
      justify-self: end !important;
      min-height: 210px !important;
      border-radius: 24px !important;
      box-shadow: none !important;
    }

    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      min-height: 210px !important;
      height: 210px !important;
      border-radius: 22px !important;
    }

    .hero-activity-overlay {
      left: 10px !important;
      right: 10px !important;
      bottom: 10px !important;
      padding: 10px 12px !important;
      border-radius: 15px !important;
    }

    .hero-activity-overlay strong {
      font-size: 16px !important;
      line-height: 1.35 !important;
    }

    .home-flow > .section {
      padding-top: 22px !important;
      padding-bottom: 24px !important;
    }

    .home-flow > .section:first-child {
      padding-top: 14px !important;
    }

    @media (max-width: 980px) {
      .hero-inner {
        grid-template-columns: 1fr !important;
        width: min(100% - 28px, 1320px) !important;
      }

      .activity-hero-card {
        max-width: none !important;
        justify-self: stretch !important;
      }
    }


    .hero-activity-overlay,
    .hero-activity-overlay.title-only {
      left: 12px !important;
      right: auto !important;
      bottom: 12px !important;
      width: auto !important;
      max-width: min(72%, 420px) !important;
      padding: 8px 12px !important;
      border-radius: 999px !important;
      background: rgba(15, 23, 42, 0.72) !important;
    }

    .hero-activity-overlay strong,
    .hero-activity-overlay.title-only strong {
      display: block !important;
      font-size: clamp(13.5px, 1.18vw, 17px) !important;
      line-height: 1.25 !important;
      margin: 0 !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }


    .hero-activity-media,
    .activity-album-photo,
    .news-cover {
      position: relative;
      border: 2px solid rgba(255, 255, 255, 0.94) !important;
      box-shadow:
        0 0 0 1px rgba(217, 160, 67, 0.52),
        0 18px 38px rgba(15, 23, 42, 0.12) !important;
    }

    .hero-activity-media::before,
    .activity-album-photo::before,
    .news-cover::before {
      content: "";
      position: absolute;
      inset: 7px;
      border: 1px solid rgba(255, 255, 255, 0.88);
      border-radius: inherit;
      pointer-events: none;
      z-index: 2;
    }

    .hero-activity-media::after,
    .activity-album-photo::after,
    .news-cover::after {
      content: "";
      position: absolute;
      inset: 12px;
      border: 1px solid rgba(217, 160, 67, 0.34);
      border-radius: inherit;
      pointer-events: none;
      z-index: 2;
    }

    .hero-activity-media img,
    .activity-album-photo img,
    .news-cover img {
      position: relative;
      z-index: 1;
    }

    .hero-activity-overlay {
      z-index: 3;
    }


    .hero-inner {
      align-items: stretch !important;
    }

    .hero-inner > div:first-child {
      align-self: center !important;
      min-width: 0 !important;
    }

    .activity-hero-card {
      height: 100% !important;
      min-height: 220px !important;
    }

    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      height: 100% !important;
      min-height: 220px !important;
    }

    .hero p {
      overflow-wrap: break-word !important;
    }

    @media (max-width: 980px) {
      .activity-hero-card,
      .hero-activity-media,
      .hero-activity-media img,
      .hero-activity-fallback {
        height: auto !important;
        min-height: 220px !important;
      }
    }


    .news-cover {
      background:
        radial-gradient(circle at 20% 20%, rgba(255, 255, 255, 0.62), transparent 24%),
        linear-gradient(135deg, rgba(124, 58, 237, 0.12), rgba(236, 72, 153, 0.10)) !important;
    }

    .news-cover img {
      object-fit: contain !important;
      background: rgba(255,255,255,0.82) !important;
    }

    .image-preview-box {
      background:
        radial-gradient(circle at 20% 20%, rgba(255,255,255,0.62), transparent 24%),
        linear-gradient(135deg, rgba(124,58,237,0.10), rgba(6,182,212,0.08)) !important;
    }

    .image-preview-box img {
      object-fit: contain !important;
      background: rgba(255,255,255,0.86) !important;
    }


    .field input[type="number"] {
      appearance: auto;
      -moz-appearance: textfield;
    }

    .form-check-row {
      display: flex;
      flex-wrap: wrap;
      gap: 12px;
      align-items: stretch;
    }

    .form-check-row > label,
    .check-option {
      flex: 1 1 220px;
      display: flex !important;
      align-items: center;
      gap: 10px;
      border-radius: 16px;
      padding: 13px 14px;
      background: rgba(255,255,255,0.86);
      border: 1px solid rgba(148, 163, 184, 0.26);
      font-weight: 850 !important;
      color: var(--text);
      cursor: pointer;
    }

    .form-check-row input[type="checkbox"],
    .check-option input[type="checkbox"] {
      width: 18px;
      height: 18px;
      flex: 0 0 auto;
    }

    .check-option span {
      display: grid;
      gap: 2px;
    }

    .check-option small {
      color: var(--muted);
      font-size: 12.5px;
      font-weight: 650;
    }


    .news-cover img {
      object-fit: cover !important;
    }

    .image-preview-box img {
      object-fit: cover !important;
    }


    

    .news-grid-compact .card {
      padding: 16px !important;
      border-radius: 20px !important;
    }

    .news-grid-compact .news-cover {
      width: calc(100% + 32px) !important;
      height: 118px !important;
      margin: -16px -16px 12px !important;
      border-radius: 18px 18px 12px 12px !important;
    }

    .news-grid-compact .card h3 {
      font-size: 16px !important;
      line-height: 1.42 !important;
      margin: 10px 0 6px !important;
    }

    .news-grid-compact .card p {
      font-size: 13.5px !important;
      line-height: 1.58 !important;
    }

    .news-grid-compact .pill,
    .news-grid-compact .pin-badge {
      font-size: 11.5px !important;
      padding: 5px 9px !important;
    }

    .news-grid-compact .card-footer,
    .news-grid-compact .read-more-btn {
      font-size: 12px !important;
    }

    

    

    


    .grid-5 {
      display: grid;
      grid-template-columns: repeat(5, 1fr);
      gap: 14px;
    }

    .grid-5.news-grid-compact .card {
      padding: 14px !important;
      border-radius: 18px !important;
    }

    .grid-5.news-grid-compact .news-cover {
      width: calc(100% + 28px) !important;
      height: 96px !important;
      margin: -14px -14px 10px !important;
      border-radius: 16px 16px 12px 12px !important;
    }

    .grid-5.news-grid-compact .card h3 {
      font-size: 14.5px !important;
      line-height: 1.38 !important;
      margin: 8px 0 5px !important;
    }

    .grid-5.news-grid-compact .card p {
      font-size: 12.8px !important;
      line-height: 1.5 !important;
    }

    .grid-5.news-grid-compact .pill,
    .grid-5.news-grid-compact .pin-badge {
      font-size: 10.8px !important;
      padding: 4px 8px !important;
    }

    .grid-5.news-grid-compact .card-footer,
    .grid-5.news-grid-compact .read-more-btn {
      font-size: 11.5px !important;
    }

    @media (max-width: 1320px) {
      .grid-5 {
        grid-template-columns: repeat(4, 1fr);
      }
    }

    @media (max-width: 1040px) {
      .grid-5 {
        grid-template-columns: repeat(3, 1fr);
      }
    }

    @media (max-width: 760px) {
      .grid-5 {
        grid-template-columns: repeat(2, 1fr);
      }
    }

    @media (max-width: 520px) {
      .grid-5 {
        grid-template-columns: 1fr;
      }
    }


    .grid-5.news-grid-compact {
      grid-template-columns: repeat(auto-fill, minmax(220px, 220px)) !important;
      justify-content: start !important;
      gap: 18px !important;
      align-items: start !important;
    }

    .grid-5.news-grid-compact .card {
      width: 220px !important;
      max-width: 220px !important;
      padding: 14px !important;
    }

    .grid-5.news-grid-compact .news-cover {
      width: calc(100% + 28px) !important;
      height: 96px !important;
      margin: -14px -14px 10px !important;
      border-radius: 16px 16px 12px 12px !important;
    }

    .grid-5.news-grid-compact .news-cover img {
      width: 100% !important;
      height: 100% !important;
      object-fit: cover !important;
    }

    @media (max-width: 560px) {
      .grid-5.news-grid-compact {
        grid-template-columns: 1fr !important;
      }

      .grid-5.news-grid-compact .card {
        width: 100% !important;
        max-width: none !important;
      }
    }


    .grid-5.news-grid-compact .news-cover {
      height: 150px !important;
    }

    @media (max-width: 560px) {
      .grid-5.news-grid-compact .news-cover {
        height: 180px !important;
      }
    }


    .hero-activity-media img {
      transition: opacity 0.48s ease, transform 0.48s ease;
      will-change: opacity, transform;
    }

    .hero-activity-media.is-switching img {
      opacity: 0;
      transform: scale(1.012);
    }


    .hero {
      padding: 22px 0 18px !important;
    }

    .hero-inner {
      position: relative !important;
      display: block !important;
      width: min(1320px, calc(100% - 48px)) !important;
      min-height: 360px !important;
      padding: 0 !important;
      overflow: hidden !important;
      border-radius: 34px !important;
      background: rgba(15, 23, 42, 0.12) !important;
      box-shadow: 0 26px 72px rgba(15, 23, 42, 0.14) !important;
      border: 1px solid rgba(255,255,255,0.88) !important;
    }

    .hero-inner::before {
      content: "";
      position: absolute;
      inset: 0;
      z-index: 2;
      background:
        linear-gradient(90deg, rgba(15,23,42,0.70) 0%, rgba(15,23,42,0.52) 36%, rgba(15,23,42,0.18) 68%, rgba(15,23,42,0.04) 100%),
        linear-gradient(0deg, rgba(15,23,42,0.32), rgba(15,23,42,0.04));
      pointer-events: none;
    }

    .hero-inner > div:first-child {
      position: absolute !important;
      left: 30px !important;
      bottom: 28px !important;
      z-index: 4 !important;
      width: min(560px, calc(100% - 60px)) !important;
      padding: 0 !important;
      color: #fff !important;
    }

    .hero .eyebrow {
      background: rgba(255,255,255,0.16) !important;
      border-color: rgba(255,255,255,0.24) !important;
      color: #fff !important;
      box-shadow: none !important;
      backdrop-filter: blur(12px) !important;
    }

    .hero-title-main {
      color: #fff !important;
      text-shadow: 0 14px 34px rgba(15,23,42,0.34) !important;
      max-width: 560px !important;
      font-size: clamp(34px, 3.4vw, 52px) !important;
    }

    .hero p {
      color: rgba(255,255,255,0.86) !important;
      max-width: 560px !important;
      text-shadow: 0 10px 24px rgba(15,23,42,0.26) !important;
    }

    .hero-actions .button-secondary {
      background: rgba(255,255,255,0.92) !important;
    }

    .activity-hero-card {
      position: absolute !important;
      inset: 0 !important;
      z-index: 1 !important;
      max-width: none !important;
      width: 100% !important;
      height: 100% !important;
      min-height: 360px !important;
      border-radius: 34px !important;
    }

    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      width: 100% !important;
      height: 100% !important;
      min-height: 360px !important;
      border-radius: 34px !important;
    }

    .hero-activity-media img {
      object-fit: cover !important;
    }

    .hero-activity-overlay {
      display: none !important;
    }

    @media (max-width: 760px) {
      .hero-inner {
        width: min(100% - 28px, 1320px) !important;
        min-height: 420px !important;
      }

      .activity-hero-card,
      .hero-activity-media,
      .hero-activity-media img,
      .hero-activity-fallback {
        min-height: 420px !important;
      }

      .hero-inner > div:first-child {
        left: 18px !important;
        right: 18px !important;
        bottom: 18px !important;
        width: auto !important;
      }

      
    }


    .hero-inner {
      aspect-ratio: 16 / 4.6 !important;
      height: auto !important;
      min-height: 0 !important;
      max-height: 420px !important;
    }

    .activity-hero-card,
    .hero-activity-media,
    .hero-activity-media img,
    .hero-activity-fallback {
      height: 100% !important;
      min-height: 0 !important;
      max-height: none !important;
    }

    .hero-activity-media img {
      object-fit: cover !important;
    }

    @supports not (aspect-ratio: 16 / 4.6) {
      .hero-inner {
        height: 360px !important;
      }
    }

    @media (max-width: 760px) {
      .hero-inner {
        aspect-ratio: 4 / 5 !important;
        max-height: none !important;
      }
    }


    .hero h1 {
      margin-top: 0 !important;
    }


    .home-announcement {
      width: min(1320px, calc(100% - 48px));
      margin: 16px auto 0;
      border-radius: 22px;
      padding: 16px 18px;
      display: flex;
      gap: 12px;
      align-items: flex-start;
      background: linear-gradient(135deg, rgba(255,255,255,0.92), rgba(237,233,254,0.86));
      border: 1px solid rgba(124,58,237,0.16);
      box-shadow: 0 14px 34px rgba(15,23,42,0.08);
      color: var(--text);
      font-weight: 750;
      line-height: 1.65;
    }

    .home-announcement-icon {
      width: 34px;
      height: 34px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      flex: 0 0 auto;
      color: #fff;
      background: linear-gradient(135deg, var(--primary), var(--pink));
      font-weight: 900;
    }

    .home-announcement strong {
      display: block;
      margin-bottom: 2px;
      font-size: 15px;
      color: var(--text);
    }

    .home-announcement p {
      margin: 0;
      color: var(--muted);
      font-size: 14.5px;
    }

    @media (max-width: 760px) {
      .home-announcement {
        width: min(100% - 28px, 1320px);
      }
    }


    .site-footer {
      margin-top: 42px !important;
      border-top-left-radius: 26px !important;
      border-top-right-radius: 26px !important;
    }

    .site-footer-inner {
      grid-template-columns: 1.55fr .72fr .72fr !important;
      gap: 22px !important;
      padding: 22px 0 16px !important;
    }

    .footer-brand {
      gap: 12px !important;
      align-items: center !important;
    }

    .footer-brand img {
      width: 46px !important;
      height: 46px !important;
      padding: 0 !important;
      background: transparent !important;
      border-radius: 0 !important;
    }

    .footer-brand h3 {
      font-size: 18px !important;
      margin-bottom: 4px !important;
      line-height: 1.3 !important;
    }

    .footer-brand p,
    .footer-col p {
      font-size: 13px !important;
      line-height: 1.55 !important;
    }

    .footer-col h4 {
      margin-bottom: 8px !important;
      font-size: 14px !important;
    }

    

    

    .footer-bottom {
      display: flex !important;
      justify-content: center !important;
      align-items: center !important;
      flex-wrap: wrap !important;
      gap: 10px 16px !important;
      padding: 10px 18px !important;
      font-size: 12px !important;
    }

    #footerVisitorCount,
    #footerAdminStatus {
      display: inline-flex;
      align-items: center;
      gap: 6px;
      padding: 4px 9px;
      border-radius: 999px;
      background: rgba(255,255,255,0.10);
      color: rgba(255,255,255,0.82);
      white-space: nowrap;
    }

    

    @media (max-width: 860px) {
      .site-footer-inner {
        grid-template-columns: 1fr !important;
      }

      .footer-brand {
        align-items: flex-start !important;
      }

      .footer-bottom {
        justify-content: flex-start !important;
      }
    }


    .site-footer-inner {
      grid-template-columns: 1.35fr 1fr 1fr !important;
      align-items: start !important;
    }

    .footer-brand {
      align-items: flex-start !important;
    }

    .footer-brand img {
      margin-top: 2px !important;
    }

    .footer-brand p + p {
      margin-top: 4px !important;
    }

    .footer-bullet-list {
      list-style: disc;
      padding-left: 20px;
      margin: 0;
      display: grid;
      gap: 6px;
    }

    .footer-bullet-list li {
      padding-left: 2px;
      color: rgba(255,255,255,0.82);
      line-height: 1.45;
    }

    .footer-bullet-list li::marker {
      color: rgba(255,255,255,0.72);
      font-size: 0.78em;
    }

    .footer-bullet-list a,
    .footer-bullet-list button {
      color: rgba(255,255,255,0.84);
      background: transparent;
      border: 0;
      padding: 0;
      text-align: left;
      font: inherit;
      font-size: 13px;
      font-weight: 750;
      line-height: 1.45;
      cursor: pointer;
    }

    .footer-bullet-list a:hover,
    .footer-bullet-list button:hover {
      color: #fff;
      text-decoration: underline;
    }


    .footer-contact-list {
      display: grid;
      gap: 3px;
      margin-top: 6px;
      color: rgba(255,255,255,0.74);
      font-size: 13px;
      line-height: 1.5;
      font-weight: 700;
    }

    .footer-contact-list a {
      color: rgba(255,255,255,0.78);
      text-decoration: none;
      width: fit-content;
    }

    .footer-contact-list a:hover {
      color: #fff;
      text-decoration: underline;
    }


    .footer-contact-list a {
      display: inline-flex !important;
      align-items: center;
      gap: 8px;
    }

    .footer-contact-icon {
      width: 18px;
      height: 18px;
      display: inline-grid;
      place-items: center;
      flex: 0 0 auto;
      color: rgba(255,255,255,0.86);
    }

    .footer-contact-icon svg {
      width: 18px;
      height: 18px;
      display: block;
      fill: currentColor;
    }


    .footer-brand img {
      width: 64px !important;
      height: 64px !important;
      min-width: 64px !important;
    }

    @media (max-width: 760px) {
      .footer-brand img {
        width: 56px !important;
        height: 56px !important;
        min-width: 56px !important;
      }
    }


    .site-footer-inner {
      grid-template-columns: minmax(520px, 1.75fr) minmax(210px, .78fr) minmax(220px, .82fr) !important;
      gap: 34px !important;
    }

    .footer-brand {
      max-width: 620px;
    }

    .footer-brand h3 {
      max-width: 560px;
    }

    .footer-brand p,
    .footer-contact-list {
      max-width: 560px;
    }

    @media (max-width: 1050px) {
      .site-footer-inner {
        grid-template-columns: 1fr 1fr !important;
      }

      .footer-brand {
        grid-column: 1 / -1;
        max-width: none;
      }
    }

    @media (max-width: 760px) {
      .site-footer-inner {
        grid-template-columns: 1fr !important;
        gap: 18px !important;
      }
    }


    .site-footer {
      margin-top: 34px !important;
    }

    .site-footer-inner {
      padding-top: 16px !important;
      padding-bottom: 10px !important;
      gap: 28px !important;
    }

    .footer-brand h3 {
      margin-bottom: 2px !important;
    }

    .footer-brand p,
    .footer-contact-list {
      line-height: 1.36 !important;
    }

    .footer-contact-list {
      gap: 2px !important;
      margin-top: 4px !important;
    }

    .footer-bullet-list {
      gap: 4px !important;
    }

    .footer-col h4 {
      margin-bottom: 6px !important;
    }

    .footer-bottom {
      padding-top: 7px !important;
      padding-bottom: 7px !important;
      gap: 8px 12px !important;
    }

    @media (max-width: 760px) {
      .site-footer-inner {
        padding-top: 18px !important;
        padding-bottom: 12px !important;
      }
    }


    

    .admin-sidebar {
      padding: 20px 18px 16px !important;
    }

    .admin-sidebar h2 {
      margin-bottom: 6px !important;
      font-size: 24px !important;
      line-height: 1.2 !important;
    }

    .admin-sidebar p {
      margin: 2px 0 !important;
      line-height: 1.35 !important;
    }

    

    .admin-tabs {
      gap: 6px !important;
      margin-top: 10px !important;
    }

    .admin-tab {
      min-height: 0 !important;
      padding: 10px 14px !important;
      border-radius: 16px !important;
      font-size: 14px !important;
      line-height: 1.2 !important;
    }

    

    @media (max-height: 820px) and (min-width: 861px) {
      .admin-sidebar {
        padding-top: 16px !important;
        padding-bottom: 14px !important;
      }

      .admin-sidebar h2 {
        font-size: 22px !important;
      }

      

      .admin-tabs {
        gap: 4px !important;
      }

      .admin-tab {
        padding: 9px 12px !important;
        border-radius: 14px !important;
      }

      
    }


    .admin-sidebar .admin-tabs {
      margin-top: 12px !important;
    }


    .home-main-grid {
      width: min(1320px, calc(100% - 48px));
      margin: 26px auto 0;
      display: grid;
      grid-template-columns: 280px minmax(0, 1fr);
      gap: 28px;
      align-items: start;
    }

    .home-main-grid .home-flow {
      width: 100%;
      margin: 0;
    }

    .principal-card {
      position: relative;
      border-radius: 28px;
      padding: 16px;
      background: rgba(255,255,255,0.90);
      border: 1px solid rgba(255,255,255,0.88);
      box-shadow: 0 18px 44px rgba(15,23,42,0.10);
      overflow: hidden;
    }

    .principal-card::before {
      content: "";
      position: absolute;
      inset: 0;
      background:
        radial-gradient(circle at 20% 0%, rgba(217,70,239,0.13), transparent 42%),
        radial-gradient(circle at 100% 35%, rgba(37,99,235,0.10), transparent 46%);
      pointer-events: none;
    }

    .principal-card > * {
      position: relative;
      z-index: 1;
    }

    .principal-kicker {
      color: var(--pink);
      font-weight: 900;
      font-size: 13px;
      margin-bottom: 10px;
    }

    .principal-photo {
      width: 100%;
      aspect-ratio: 4 / 5;
      border-radius: 22px;
      overflow: hidden;
      background: linear-gradient(135deg, rgba(124,58,237,0.12), rgba(236,72,153,0.10));
      display: grid;
      place-items: center;
      color: var(--primary);
      font-weight: 900;
      font-size: 42px;
      margin-bottom: 14px;
      border: 1px solid rgba(124,58,237,0.12);
    }

    .principal-photo img {
      width: 100%;
      height: 100%;
      object-fit: cover;
      display: block;
    }

    .principal-name {
      font-size: 18px;
      line-height: 1.35;
      font-weight: 900;
      color: var(--text);
      margin-bottom: 4px;
    }

    .principal-role {
      font-size: 13.5px;
      line-height: 1.45;
      color: var(--muted);
      font-weight: 750;
      margin-bottom: 12px;
    }

    .principal-card .button {
      width: 100%;
      min-height: 0;
      padding: 10px 12px;
      font-size: 13px;
      justify-content: center;
    }

    @media (max-width: 980px) {
      .home-main-grid {
        grid-template-columns: 1fr;
      }

      .principal-card {
        position: static;
        display: grid;
        grid-template-columns: 112px 1fr;
        gap: 14px;
        align-items: center;
      }

      .principal-kicker {
        grid-column: 1 / -1;
        margin-bottom: 0;
      }

      .principal-photo {
        margin-bottom: 0;
      }

      .principal-card .button {
        width: fit-content;
      }
    }

    @media (max-width: 560px) {
      .home-main-grid {
        width: min(100% - 28px, 1320px);
      }

      .principal-card {
        grid-template-columns: 1fr;
      }

      .principal-photo {
        max-width: 220px;
      }

      .principal-card .button {
        width: 100%;
      }
    }


    .news-detail-section {
      max-width: min(1060px, calc(100% - 48px)) !important;
    }

    .news-detail-back {
      margin-bottom: 16px;
    }

    .news-detail-page {
      border-radius: 32px;
      overflow: hidden;
      background: rgba(255,255,255,0.94);
      border: 1px solid rgba(255,255,255,0.88);
      box-shadow: 0 22px 56px rgba(15,23,42,0.11);
    }

    .news-detail-cover {
      width: 100%;
      max-height: 440px;
      overflow: hidden;
      background: rgba(15,23,42,0.06);
    }

    .news-detail-cover img {
      width: 100%;
      height: 100%;
      min-height: 320px;
      object-fit: cover;
      display: block;
    }

    .news-detail-body {
      padding: 28px;
    }

    .news-detail-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 14px;
    }

    .news-detail-meta span {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 6px 10px;
      background: rgba(124,58,237,0.09);
      color: var(--primary);
      font-size: 12.5px;
      font-weight: 900;
    }

    .news-detail-body h2 {
      margin: 0 0 14px;
      color: var(--text);
      font-size: clamp(25px, 3vw, 40px);
      line-height: 1.22;
      font-weight: 950;
    }

    .news-detail-body p {
      margin: 0;
      color: var(--muted);
      font-size: 16px;
      line-height: 1.9;
      white-space: pre-line;
    }

    .news-detail-album {
      margin-top: 26px;
      padding-top: 22px;
      border-top: 1px solid rgba(15,23,42,0.08);
    }

    .news-detail-album h3 {
      margin: 0 0 14px;
      color: var(--text);
      font-size: 18px;
      font-weight: 900;
    }

    .news-detail-album-grid {
      display: grid;
      grid-template-columns: repeat(3, minmax(0, 1fr));
      gap: 10px;
    }

    .news-detail-album-grid img {
      width: 100%;
      aspect-ratio: 4 / 3;
      object-fit: cover;
      border-radius: 16px;
      display: block;
    }

    @media (max-width: 760px) {
      .news-detail-section {
        max-width: min(100% - 28px, 1060px) !important;
      }

      .news-detail-body {
        padding: 20px;
      }

      .news-detail-cover img {
        min-height: 220px;
      }

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


    .news-cover-link {
      display: block;
      width: 100%;
      border: 0;
      padding: 0;
      cursor: pointer;
      text-align: inherit;
      background: transparent;
    }

    .news-cover-link img {
      transition: transform .28s ease, filter .28s ease;
    }

    .news-cover-link:hover img {
      transform: scale(1.025);
      filter: brightness(1.03);
    }

    .news-cover-link:focus-visible {
      outline: 3px solid rgba(124,58,237,0.35);
      outline-offset: 3px;
    }


    .news-detail-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-bottom: 16px;
    }

    .news-detail-actions .button {
      min-height: 0;
      padding: 10px 16px;
    }

    .news-detail-body .news-detail-actions {
      margin-top: 26px;
      margin-bottom: 0;
      padding-top: 20px;
      border-top: 1px solid rgba(15,23,42,0.08);
    }


    .principal-card {
      padding: 13px !important;
      border-radius: 24px !important;
    }

    .principal-photo {
      aspect-ratio: 4 / 3 !important;
      border-radius: 18px !important;
      margin-bottom: 10px !important;
      font-size: 34px !important;
    }

    .principal-kicker {
      margin-bottom: 8px !important;
      font-size: 12.5px !important;
    }

    .principal-name {
      font-size: 17px !important;
      margin-bottom: 2px !important;
    }

    .principal-role {
      font-size: 13px !important;
      margin-bottom: 10px !important;
      line-height: 1.35 !important;
    }

    .principal-card .button {
      padding: 9px 10px !important;
    }

    @media (max-width: 980px) {
      .principal-photo {
        aspect-ratio: 1 / 1 !important;
      }
    }


    .principal-card {
      margin-top: 86px !important;
      padding: 16px !important;
      min-height: 360px !important;
    }

    .principal-photo {
      aspect-ratio: 10 / 7 !important;
      margin-bottom: 12px !important;
      font-size: 38px !important;
    }

    .principal-kicker {
      margin-bottom: 10px !important;
    }

    .principal-name {
      font-size: 18px !important;
      margin-bottom: 3px !important;
    }

    .principal-role {
      margin-bottom: 12px !important;
      line-height: 1.4 !important;
    }

    @media (max-width: 980px) {
      .principal-card {
        margin-top: 0 !important;
        min-height: 0 !important;
      }
    }


    .principal-card {
      margin-top: 0 !important;
      min-height: 0 !important;
      padding: 14px !important;
    }

    .principal-photo {
      aspect-ratio: 1 / 1 !important;
      margin-bottom: 10px !important;
      font-size: 36px !important;
    }

    .principal-kicker {
      margin-bottom: 8px !important;
    }

    .principal-name {
      font-size: 17.5px !important;
      margin-bottom: 2px !important;
      line-height: 1.25 !important;
    }

    .principal-role {
      margin-bottom: 10px !important;
      line-height: 1.35 !important;
    }


    @media (min-width: 981px) {
      .home-main-grid {
        align-items: stretch !important;
      }

      .home-main-grid .home-flow {
        height: 100%;
        display: flex;
        flex-direction: column;
      }

      .principal-card {
        height: 100% !important;
        margin-top: 0 !important;
        min-height: 0 !important;
        display: flex !important;
        flex-direction: column !important;
        padding: 16px !important;
      }

      .principal-photo {
        flex: 1 1 auto !important;
        min-height: 190px !important;
        aspect-ratio: auto !important;
        margin-bottom: 13px !important;
      }

      .principal-photo img {
        height: 100% !important;
      }

      .principal-card > div:last-child {
        flex: 0 0 auto;
      }
    }

    @media (max-width: 980px) {
      .principal-card {
        height: auto !important;
        display: grid !important;
      }

      .principal-photo {
        flex: initial !important;
        aspect-ratio: 1 / 1 !important;
      }
    }


    @media (min-width: 981px) {
      .home-main-grid {
        align-items: start !important;
        grid-template-columns: 280px minmax(0, 1fr) !important;
      }

      .home-main-grid .home-flow {
        height: auto !important;
        display: block !important;
      }

      .principal-card {
        height: auto !important;
        min-height: 0 !important;
        margin-top: 0 !important;
        display: block !important;
        padding: 15px !important;
      }

      .principal-photo {
        flex: initial !important;
        aspect-ratio: 1 / 1 !important;
        min-height: 0 !important;
        margin-bottom: 11px !important;
      }

      .principal-photo img {
        height: 100% !important;
      }
    }


    @media (min-width: 981px) {
      .home-main-grid {
        align-items: start !important;
        grid-template-columns: 280px minmax(0, 1fr) !important;
      }

      .principal-card {
        margin-top: 0 !important;
        transform: translateY(0) !important;
        height: auto !important;
        min-height: 0 !important;
      }

      .home-main-grid .home-flow {
        display: block !important;
        height: auto !important;
      }
    }


    @media (min-width: 981px) {
      .principal-card {
        margin-top: 28px !important;
      }
    }

    @media (max-width: 980px) {
      .principal-card {
        margin-top: 0 !important;
      }
    }


    @media (min-width: 981px) {
      .principal-photo {
        aspect-ratio: 10 / 11 !important;
        margin-bottom: 12px !important;
      }

      .principal-card {
        padding-bottom: 16px !important;
      }
    }


    @media (min-width: 981px) {
      .principal-photo {
        aspect-ratio: 20 / 21 !important;
      }
    }


    @media (min-width: 981px) {
      .principal-photo {
        aspect-ratio: 40 / 43 !important;
      }
    }


    .footer-bottom {
      gap: 8px 14px !important;
    }

    #footerVisitorCount {
      background: transparent !important;
      padding: 0 !important;
      border-radius: 0 !important;
      color: rgba(255,255,255,0.68) !important;
      font-weight: 700 !important;
    }

    #footerAdminStatus {
      display: none !important;
    }


    @media (max-width: 760px) {
      body {
        overflow-x: hidden;
      }

      

      .brand {
        min-width: 0;
      }

      .brand-logo {
        width: 42px !important;
        height: 42px !important;
      }

      .brand-title {
        font-size: 15px !important;
        line-height: 1.25 !important;
      }

      .brand-subtitle {
        font-size: 11.5px !important;
      }

      .main-nav.open {
        padding: 10px !important;
        gap: 7px !important;
      }

      .main-nav.open .nav-button {
        width: 100%;
        min-height: 40px;
        justify-content: flex-start;
      }

      .hero {
        padding-top: 12px !important;
        padding-bottom: 12px !important;
      }

      .hero-inner {
        width: min(100% - 24px, 1320px) !important;
        min-height: 390px !important;
        border-radius: 24px !important;
      }

      .hero-inner::before {
        background:
          linear-gradient(0deg, rgba(15,23,42,0.78) 0%, rgba(15,23,42,0.46) 48%, rgba(15,23,42,0.14) 100%) !important;
      }

      .hero-title-main {
        font-size: clamp(28px, 10vw, 38px) !important;
        line-height: 1.12 !important;
      }

      .hero p {
        font-size: 14.5px !important;
        line-height: 1.65 !important;
      }

      

      .hero-actions .button {
        width: 100%;
        justify-content: center;
        min-height: 42px;
      }

      .home-announcement,
      .home-main-grid,
      .section,
      .news-detail-section {
        width: min(100% - 24px, 1320px) !important;
        max-width: min(100% - 24px, 1320px) !important;
      }

      .home-main-grid {
        margin-top: 18px !important;
        gap: 18px !important;
      }

      .principal-card {
        border-radius: 22px !important;
        padding: 14px !important;
      }

      .principal-photo {
        max-width: 180px !important;
        width: 100% !important;
        justify-self: center;
      }

      .principal-name,
      .principal-role {
        text-align: center;
      }

      .principal-card .button {
        width: 100% !important;
      }

      .section {
        margin-top: 28px !important;
      }

      .section-header {
        margin-bottom: 14px !important;
      }

      .section-title {
        font-size: clamp(24px, 8vw, 32px) !important;
        line-height: 1.18 !important;
      }

      .section-desc {
        font-size: 14px !important;
        line-height: 1.55 !important;
      }

      .grid,
      .grid.grid-2,
      .grid.grid-3,
      .grid.grid-5,
      .news-grid-compact {
        grid-template-columns: 1fr !important;
        gap: 14px !important;
      }

      .card {
        border-radius: 22px !important;
      }

      .news-cover,
      .news-cover-link {
        border-radius: 20px 20px 0 0 !important;
      }

      .card h3 {
        font-size: 18px !important;
        line-height: 1.35 !important;
      }

      .card-desc {
        font-size: 14px !important;
        line-height: 1.65 !important;
      }

      .public-filter-panel {
        grid-template-columns: 1fr !important;
        gap: 10px !important;
      }

      .news-detail-body {
        padding: 18px !important;
      }

      .news-detail-actions {
        display: grid !important;
        grid-template-columns: 1fr !important;
      }

      .site-footer {
        margin-top: 34px !important;
        border-top-left-radius: 24px !important;
        border-top-right-radius: 24px !important;
      }

      .site-footer-inner {
        width: min(100% - 28px, 1180px) !important;
        gap: 18px !important;
      }

      .footer-brand {
        align-items: flex-start !important;
      }

      .footer-brand img {
        width: 54px !important;
        height: 54px !important;
        min-width: 54px !important;
      }

      .footer-brand h3 {
        font-size: 16px !important;
        line-height: 1.3 !important;
      }

      .footer-bullet-list {
        gap: 5px !important;
      }

      .footer-bottom {
        justify-content: center !important;
        text-align: center !important;
        padding-inline: 14px !important;
      }
    }


    .empty-note {
      display: flex !important;
      align-items: flex-start !important;
      gap: 14px !important;
      padding: 20px !important;
      border-radius: 22px !important;
      border: 1px solid rgba(148, 163, 184, 0.24) !important;
      background:
        radial-gradient(circle at top left, rgba(14, 165, 233, 0.10), transparent 36%),
        rgba(255, 255, 255, 0.86) !important;
      color: var(--muted) !important;
      box-shadow: 0 16px 36px rgba(15, 23, 42, 0.07) !important;
      text-align: left !important;
    }

    .empty-note .empty-icon {
      width: 34px;
      height: 34px;
      min-width: 34px;
      border-radius: 999px;
      display: grid;
      place-items: center;
      font-weight: 950;
      color: #0369a1;
      background: rgba(14, 165, 233, 0.14);
      border: 1px solid rgba(14, 165, 233, 0.22);
      font-family: ui-sans-serif, system-ui, -apple-system, BlinkMacSystemFont, "Segoe UI", sans-serif;
    }

    .empty-note strong {
      display: block;
      margin-bottom: 3px;
      color: var(--text);
      font-size: 15px;
    }

    .empty-note p {
      margin: 0;
      font-size: 14px;
      line-height: 1.65;
    }

    .not-found-section {
      min-height: 46vh;
    }

    .not-found-card {
      display: grid;
      gap: 18px;
      max-width: 720px;
      margin-inline: auto;
      text-align: center;
    }

    .not-found-code {
      font-size: clamp(64px, 16vw, 120px);
      line-height: 0.95;
      font-weight: 950;
      letter-spacing: -0.08em;
      color: rgba(15, 23, 42, 0.10);
    }

    .not-found-actions {
      display: flex;
      justify-content: center;
      gap: 10px;
      flex-wrap: wrap;
    }

    @media (max-width: 760px) {
      .empty-note {
        padding: 16px !important;
        border-radius: 20px !important;
      }

      .not-found-actions {
        display: grid;
        grid-template-columns: 1fr;
      }
    }


    body {
      background:
        radial-gradient(circle at 10% 14%, rgba(217, 70, 239, 0.08), transparent 28%),
        radial-gradient(circle at 86% 18%, rgba(14, 165, 233, 0.12), transparent 30%),
        linear-gradient(180deg, #f8fbff 0%, #f7f4ff 42%, #f8fbff 100%) !important;
    }

    main#app {
      background: transparent !important;
    }

    .hero {
      background: transparent !important;
      padding-bottom: 28px !important;
    }

    .home-announcement,
    .home-main-grid {
      position: relative;
      z-index: 1;
    }

    .home-main-grid {
      margin-top: 8px !important;
    }

    .section {
      background: transparent !important;
    }

    .home-main-grid::before {
      content: "";
      position: absolute;
      inset: -26px -34px auto -34px;
      height: 180px;
      border-radius: 42px;
      background: linear-gradient(180deg, rgba(255,255,255,0.44), rgba(255,255,255,0));
      pointer-events: none;
      z-index: -1;
    }

    .principal-card,
    .card,
    .home-announcement,
    .news-detail-body {
      backdrop-filter: blur(10px);
      -webkit-backdrop-filter: blur(10px);
    }

    @media (max-width: 760px) {
      body {
        background:
          radial-gradient(circle at 18% 8%, rgba(217, 70, 239, 0.09), transparent 30%),
          radial-gradient(circle at 92% 22%, rgba(14, 165, 233, 0.12), transparent 32%),
          linear-gradient(180deg, #f8fbff 0%, #f7f4ff 48%, #f8fbff 100%) !important;
      }

      .hero {
        padding-bottom: 18px !important;
      }

      .home-main-grid {
        margin-top: 4px !important;
      }

      .home-main-grid::before {
        inset: -18px -12px auto -12px;
        height: 120px;
        border-radius: 28px;
      }
    }


    @keyframes softPageRise {
      from {
        opacity: 0;
        transform: translateY(14px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes softGlowFloat {
      0%, 100% {
        transform: translate3d(0, 0, 0) scale(1);
        opacity: 0.78;
      }
      50% {
        transform: translate3d(10px, -12px, 0) scale(1.04);
        opacity: 1;
      }
    }

    @keyframes heroSoftZoom {
      from {
        transform: scale(1.015);
      }
      to {
        transform: scale(1.065);
      }
    }

    body::before,
    body::after {
      content: "";
      position: fixed;
      width: 360px;
      height: 360px;
      border-radius: 999px;
      pointer-events: none;
      z-index: -1;
      filter: blur(18px);
      opacity: 0.42;
      animation: softGlowFloat 13s ease-in-out infinite;
    }

    body::before {
      left: -120px;
      top: 210px;
      background: radial-gradient(circle, rgba(217, 70, 239, 0.18), transparent 68%);
    }

    body::after {
      right: -130px;
      top: 460px;
      background: radial-gradient(circle, rgba(14, 165, 233, 0.18), transparent 68%);
      animation-delay: -6s;
    }

    .hero,
    .home-announcement,
    .home-main-grid,
    .section,
    .site-footer {
      animation: softPageRise 0.62s ease both;
    }

    .home-announcement {
      animation-delay: 0.06s;
    }

    .home-main-grid,
    .section {
      animation-delay: 0.10s;
    }

    #heroSlideImage {
      will-change: transform, opacity;
      animation: heroSoftZoom 12s ease-in-out infinite alternate;
    }

    .card,
    .principal-card,
    .home-announcement,
    .system-link-card,
    .download-card,
    .staff-card {
      transition:
        transform 0.24s ease,
        box-shadow 0.24s ease,
        border-color 0.24s ease,
        background 0.24s ease;
    }

    .card:hover,
    .principal-card:hover,
    .system-link-card:hover,
    .download-card:hover,
    .staff-card:hover {
      transform: translateY(-5px);
      box-shadow: 0 24px 56px rgba(15, 23, 42, 0.14);
      border-color: rgba(124, 58, 237, 0.18);
    }

    .home-announcement:hover {
      transform: translateY(-3px);
      box-shadow: 0 18px 44px rgba(15, 23, 42, 0.12);
    }

    .news-cover img,
    .news-cover-link img,
    .card img,
    .principal-photo img {
      transition: transform 0.45s ease, filter 0.35s ease;
      will-change: transform;
    }

    .card:hover .news-cover img,
    .card:hover .news-cover-link img,
    .card:hover img,
    .principal-card:hover .principal-photo img {
      transform: scale(1.045);
      filter: saturate(1.04) contrast(1.02);
    }

    .news-cover,
    .news-cover-link,
    .principal-photo {
      overflow: hidden;
    }

    .button,
    .nav-button,
    .admin-tab-btn {
      transition:
        transform 0.2s ease,
        box-shadow 0.2s ease,
        background 0.2s ease,
        color 0.2s ease;
    }

    .button:hover,
    .nav-button:hover,
    .admin-tab-btn:hover {
      transform: translateY(-1px);
    }

    .button-primary:hover,
    .nav-button.active {
      box-shadow: 0 12px 26px rgba(124, 58, 237, 0.25);
    }

    .section-title {
      position: relative;
      display: inline-block;
    }

    .section-title::after {
      content: "";
      position: absolute;
      left: 0;
      bottom: -8px;
      width: 54px;
      height: 4px;
      border-radius: 999px;
      background: linear-gradient(90deg, rgba(124, 58, 237, 0.72), rgba(236, 72, 153, 0.56), rgba(14, 165, 233, 0.52));
      opacity: 0.82;
    }

    .section-header:has(.section-title) {
      overflow: visible;
    }

    .footer-bullet-list a,
    .footer-contact-link {
      transition: color 0.18s ease, transform 0.18s ease;
    }

    .footer-bullet-list a:hover,
    .footer-contact-link:hover {
      transform: translateX(2px);
    }

    @media (max-width: 760px) {
      body::before,
      body::after {
        width: 260px;
        height: 260px;
        opacity: 0.30;
      }

      .card:hover,
      .principal-card:hover,
      .system-link-card:hover,
      .download-card:hover,
      .staff-card:hover,
      .home-announcement:hover,
      .button:hover,
      .nav-button:hover,
      .admin-tab-btn:hover {
        transform: none;
      }

      .section-title::after {
        width: 44px;
        height: 3px;
        bottom: -6px;
      }
    }

    @media (prefers-reduced-motion: reduce) {
      *,
      *::before,
      *::after {
        animation-duration: 0.01ms !important;
        animation-iteration-count: 1 !important;
        scroll-behavior: auto !important;
        transition-duration: 0.01ms !important;
      }

      .card:hover,
      .principal-card:hover,
      .system-link-card:hover,
      .download-card:hover,
      .staff-card:hover,
      .home-announcement:hover,
      .button:hover,
      .nav-button:hover,
      .admin-tab-btn:hover {
        transform: none !important;
      }
    }


    .hero-title-main {
      font-size: clamp(42px, 5.6vw, 72px) !important;
      line-height: 1.12 !important;
      letter-spacing: -0.045em !important;
    }

    @media (max-width: 760px) {
      .hero-title-main {
        font-size: clamp(30px, 8.5vw, 42px) !important;
        line-height: 1.18 !important;
        letter-spacing: -0.035em !important;
      }
    }


    .hero-title-main {
      font-size: clamp(36px, 4.6vw, 58px) !important;
      line-height: 1.16 !important;
      letter-spacing: -0.035em !important;
    }

    @media (max-width: 760px) {
      .hero-title-main {
        font-size: clamp(28px, 7.5vw, 36px) !important;
        line-height: 1.2 !important;
        letter-spacing: -0.025em !important;
      }
    }


    .hero {
      padding-top: 18px !important;
      padding-bottom: 20px !important;
    }

    .hero-inner {
      min-height: clamp(300px, 30vw, 380px) !important;
      border-radius: 26px !important;
    }

    .hero-title-main {
      font-size: clamp(30px, 3.7vw, 48px) !important;
      line-height: 1.18 !important;
      letter-spacing: -0.028em !important;
    }

    .hero p {
      max-width: 680px !important;
      font-size: 15px !important;
      line-height: 1.65 !important;
    }

    

    .hero-actions .button {
      min-height: 42px !important;
      padding: 10px 20px !important;
      font-size: 14px !important;
    }

    @media (max-width: 760px) {
      .hero {
        padding-top: 10px !important;
        padding-bottom: 14px !important;
      }

      .hero-inner {
        min-height: 330px !important;
        border-radius: 22px !important;
      }

      .hero-title-main {
        font-size: clamp(26px, 7vw, 34px) !important;
        line-height: 1.22 !important;
        letter-spacing: -0.018em !important;
      }

      .hero p {
        font-size: 14px !important;
      }

      .hero-actions .button {
        min-height: 40px !important;
        font-size: 13.5px !important;
      }
    }


    .hero-title-main {
      font-size: clamp(26px, 3vw, 40px) !important;
      line-height: 1.22 !important;
      letter-spacing: -0.012em !important;
      font-weight: 850 !important;
    }

    @media (max-width: 760px) {
      .hero-title-main {
        font-size: clamp(23px, 6.2vw, 30px) !important;
        line-height: 1.24 !important;
      }
    }


    html,
    body {
      overflow-x: clip !important;
    }

    .home-main-grid::before {
      content: none !important;
      display: none !important;
    }

    .home-main-grid {
      position: relative !important;
      overflow: visible !important;
    }

    .section,
    .news-detail-section {
      overflow-x: clip !important;
    }


    html,
    body {
      background: #f7f9ff !important;
      overflow-x: clip !important;
    }

    body::before,
    body::after {
      content: none !important;
      display: none !important;
      animation: none !important;
    }

    main#app,
    .hero,
    .section,
    .home-main-grid,
    .home-announcement,
    .news-detail-section {
      background: transparent !important;
    }

    .hero {
      box-shadow: none !important;
    }

    .home-main-grid::before,
    .section::before,
    .section::after {
      content: none !important;
      display: none !important;
    }

    


    :root {
      --page-bg-flat: #f7f9ff;
    }

    html,
    body,
    main#app,
    .hero,
    .section,
    .home-main-grid,
    .news-detail-section {
      background-color: var(--page-bg-flat) !important;
      background-image: none !important;
    }

    body::before,
    body::after,
    .hero::before,
    .hero::after,
    .section::before,
    .section::after,
    .home-main-grid::before,
    .home-main-grid::after {
      content: none !important;
      display: none !important;
      background: none !important;
      box-shadow: none !important;
      filter: none !important;
    }

    .hero-inner {
      box-shadow: none !important;
      border: 1px solid rgba(148, 163, 184, 0.28) !important;
    }

    .hero {
      padding-bottom: 28px !important;
      box-shadow: none !important;
    }

    .home-main-grid {
      margin-top: 24px !important;
    }

    @media (max-width: 760px) {
      .hero {
        padding-bottom: 18px !important;
      }

      .home-main-grid {
        margin-top: 18px !important;
      }
    }


    .card-desc,
    .news-detail-content,
    .news-detail-body p,
    .activity-album-desc,
    .download-desc,
    .system-desc,
    .staff-desc {
      text-align: justify !important;
      text-justify: inter-word;
      line-height: 1.72 !important;
      word-break: normal;
      overflow-wrap: anywhere;
    }

    .card h3,
    .card .meta,
    .read-more-btn,
    .button,
    .nav-button,
    .section-title,
    .section-desc,
    .principal-name,
    .principal-role {
      text-align: left;
    }

    @media (max-width: 760px) {
      .card-desc,
      .news-detail-content,
      .news-detail-body p,
      .activity-album-desc,
      .download-desc,
      .system-desc,
      .staff-desc {
        text-align: left !important;
      }
    }


    textarea[name="desc"],
    textarea.auto-grow-textarea {
      min-height: 220px !important;
      resize: vertical !important;
      line-height: 1.72 !important;
    }

    @media (max-width: 760px) {
      textarea[name="desc"],
      textarea.auto-grow-textarea {
        min-height: 190px !important;
      }
    }


    body.admin-route {
      overflow: hidden !important;
    }

    body.admin-route main#app {
      height: calc(100vh - 82px) !important;
      min-height: 0 !important;
      overflow: hidden !important;
    }

    body.admin-route .admin-layout {
      height: calc(100vh - 96px) !important;
      max-height: calc(100vh - 96px) !important;
      padding-top: 20px !important;
      padding-bottom: 20px !important;
      overflow: hidden !important;
      align-items: stretch !important;
    }

    body.admin-route .admin-sidebar {
      position: static !important;
      height: fit-content !important;
      max-height: 100% !important;
      overflow-y: auto !important;
      align-self: start !important;
      overscroll-behavior: contain !important;
    }

    body.admin-route .admin-content {
      height: 100% !important;
      min-height: 0 !important;
      max-height: none !important;
      overflow-y: auto !important;
      overflow-x: hidden !important;
      overscroll-behavior: contain !important;
      padding-bottom: 34px !important;
    }

    body.admin-route .site-footer {
      display: none !important;
    }

    @media (max-width: 980px) {
      body.admin-route {
        overflow: auto !important;
      }

      body.admin-route main#app,
      body.admin-route .admin-layout,
      body.admin-route .admin-content {
        height: auto !important;
        max-height: none !important;
        overflow: visible !important;
      }

      body.admin-route .site-footer {
        display: block !important;
      }
    }


    .staff-card {
      gap: 18px !important;
    }

    .staff-card .avatar {
      width: 78px !important;
      height: 78px !important;
      border-radius: 24px !important;
    }

    @media (max-width: 760px) {
      .staff-card .avatar {
        width: 70px !important;
        height: 70px !important;
        border-radius: 22px !important;
      }
    }


    .staff-card {
      flex-direction: column !important;
      align-items: center !important;
      justify-content: flex-start !important;
      text-align: center !important;
      gap: 14px !important;
      padding: 20px 18px !important;
      min-height: 260px;
    }

    .staff-card .avatar {
      width: 132px !important;
      height: 132px !important;
      border-radius: 30px !important;
      box-shadow: 0 18px 38px rgba(15, 23, 42, 0.12);
    }

    .staff-card .staff-name,
    .staff-card .staff-role {
      text-align: center !important;
    }

    .staff-card .staff-name {
      font-size: 17.5px !important;
      line-height: 1.35 !important;
      margin-top: 2px;
    }

    .staff-card .staff-role {
      font-size: 14px !important;
      line-height: 1.55 !important;
    }

    @media (max-width: 980px) {
      .grid.grid-3 {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }

      .staff-card .avatar {
        width: 120px !important;
        height: 120px !important;
      }
    }

    @media (max-width: 640px) {
      .grid.grid-3 {
        grid-template-columns: 1fr !important;
      }

      .staff-card {
        min-height: 0;
      }

      .staff-card .avatar {
        width: 112px !important;
        height: 112px !important;
        border-radius: 28px !important;
      }
    }


    .staff-grid {
      grid-template-columns: repeat(auto-fill, minmax(260px, 320px)) !important;
      justify-content: start !important;
      align-items: stretch !important;
      gap: 18px !important;
    }

    .staff-card {
      width: 100% !important;
      max-width: 320px !important;
      min-height: 240px !important;
      border: 1.5px solid rgba(124, 58, 237, 0.22) !important;
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.10) !important;
      background: rgba(255, 255, 255, 0.88) !important;
    }

    .staff-card .avatar {
      width: 118px !important;
      height: 118px !important;
      border-radius: 28px !important;
      border: 3px solid rgba(255, 255, 255, 0.86) !important;
    }

    @media (max-width: 760px) {
      .staff-grid {
        grid-template-columns: 1fr !important;
        justify-content: stretch !important;
      }

      .staff-card {
        max-width: none !important;
      }
    }


    @media (min-width: 1180px) {
      

      .staff-teachers .staff-card,
      .staff-support .staff-card {
        max-width: none !important;
        padding: 16px 14px !important;
      }

      .staff-teachers .staff-card .avatar,
      .staff-support .staff-card .avatar {
        width: 108px !important;
        height: 108px !important;
      }
    }

    


    .image-preview-box {
      max-width: 520px !important;
      background:
        linear-gradient(45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
        linear-gradient(-45deg, rgba(148, 163, 184, 0.12) 25%, transparent 25%),
        linear-gradient(45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
        linear-gradient(-45deg, transparent 75%, rgba(148, 163, 184, 0.12) 75%),
        rgba(255, 255, 255, 0.92) !important;
      background-size: 18px 18px !important;
      background-position: 0 0, 0 9px, 9px -9px, -9px 0 !important;
    }

    .image-preview-box img {
      width: 100% !important;
      height: auto !important;
      min-height: 210px !important;
      max-height: 360px !important;
      object-fit: contain !important;
      object-position: center center !important;
      background: rgba(255, 255, 255, 0.74) !important;
      display: block !important;
    }

    @media (max-width: 760px) {
      .image-preview-box {
        max-width: 100% !important;
      }

      .image-preview-box img {
        max-height: 320px !important;
      }
    }


    .admin-quick-bubble {
      position: fixed;
      right: 22px;
      bottom: 24px;
      z-index: 950;
      border: 0;
      border-radius: 999px;
      padding: 12px 18px 12px 14px;
      display: inline-flex;
      align-items: center;
      gap: 9px;
      cursor: pointer;
      color: #fff;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: 14px;
      font-weight: 850;
      background: linear-gradient(135deg, #7c3aed, #ec4899, #06b6d4);
      box-shadow: 0 18px 42px rgba(76, 29, 149, 0.28);
      transition: transform 0.22s ease, box-shadow 0.22s ease, opacity 0.22s ease;
    }

    .admin-quick-bubble span {
      width: 28px;
      height: 28px;
      display: grid;
      place-items: center;
      border-radius: 999px;
      background: rgba(255, 255, 255, 0.18);
    }

    .admin-quick-bubble:hover {
      transform: translateY(-3px);
      box-shadow: 0 22px 52px rgba(76, 29, 149, 0.36);
    }

    .admin-quick-bubble[hidden],
    body.admin-route .admin-quick-bubble {
      display: none !important;
    }

    @media (max-width: 760px) {
      .admin-quick-bubble {
        right: 14px;
        bottom: 16px;
        padding: 10px 14px 10px 11px;
        font-size: 13px;
      }

      .admin-quick-bubble span {
        width: 26px;
        height: 26px;
      }
    }


    .home-staff-side {
      display: grid;
      gap: 16px;
    }

    .home-person-card .button {
      width: 100%;
      justify-content: center;
      margin-top: 12px;
    }

    .teacher-spotlight-card {
      min-height: 0;
    }

    .teacher-spotlight-frame {
      transition: opacity 0.52s ease, transform 0.52s ease, filter 0.52s ease;
    }

    .teacher-spotlight-frame.is-switching {
      opacity: 0.18;
      transform: translateY(8px);
      filter: blur(2px);
    }

    .teacher-spotlight-card .principal-photo {
      aspect-ratio: 4 / 5;
    }

    .teacher-spotlight-info {
      margin-top: 10px;
    }

    .teacher-spotlight-empty {
      min-height: 120px;
      display: grid;
      place-items: center;
      text-align: center;
      color: var(--muted);
      font-weight: 750;
      background: rgba(255,255,255,0.64);
      border: 1px dashed rgba(124,58,237,0.22);
      border-radius: 20px;
      padding: 16px;
    }

    @media (max-width: 860px) {
      .home-staff-side {
        grid-template-columns: 1fr;
      }
    }


    .staff-org-chart {
      display: grid;
      gap: 30px;
    }

    .staff-org-section {
      display: grid;
      gap: 16px;
    }

    .staff-org-title {
      margin: 0;
      font-family: "Sarabun", "Noto Sans Thai", sans-serif;
      font-size: 20px;
      line-height: 1.35;
      font-weight: 900;
      color: #1f1147;
      display: inline-flex;
      align-items: center;
      gap: 10px;
    }

    .staff-org-title::before {
      content: "";
      width: 10px;
      height: 10px;
      border-radius: 999px;
      background: linear-gradient(135deg, #7c3aed, #ec4899);
      box-shadow: 0 0 0 6px rgba(124, 58, 237, 0.10);
    }

    

    .staff-principal .staff-card {
      max-width: 340px !important;
      border-color: rgba(236, 72, 153, 0.28) !important;
    }

    

    .staff-support .staff-card {
      background: rgba(255, 255, 255, 0.82) !important;
    }

    @media (max-width: 760px) {
      .staff-org-chart {
        gap: 24px;
      }

      

      .staff-principal .staff-card,
      .staff-teachers .staff-card,
      .staff-support .staff-card {
        max-width: none !important;
      }
    }


    .staff-principal .staff-grid.staff-principal-grid {
      grid-template-columns: 360px !important;
      justify-content: center !important;
    }

    .staff-principal .staff-card {
      width: 360px !important;
      max-width: 360px !important;
      min-height: 0 !important;
      padding: 22px 18px !important;
    }

    .staff-teachers .staff-card,
    .staff-support .staff-card {
      min-height: 0 !important;
      padding: 18px 16px !important;
    }

    @media (max-width: 760px) {
      .staff-principal .staff-grid.staff-principal-grid {
        grid-template-columns: 1fr !important;
      }

      .staff-principal .staff-card {
        width: 100% !important;
        max-width: none !important;
      }
    }


    .home-staff-side .principal-card {
      color: #fff !important;
      background:
        radial-gradient(circle at 12% 10%, rgba(236, 72, 153, 0.38), transparent 34%),
        radial-gradient(circle at 95% 28%, rgba(14, 165, 233, 0.30), transparent 38%),
        linear-gradient(135deg, #24104f 0%, #312e81 48%, #0f172a 100%) !important;
      border: 1px solid rgba(255, 255, 255, 0.20) !important;
      box-shadow: 0 22px 52px rgba(15, 23, 42, 0.22) !important;
    }

    .home-staff-side .principal-card::before {
      background:
        linear-gradient(135deg, rgba(255,255,255,0.10) 0 1px, transparent 1px 18px),
        linear-gradient(45deg, rgba(255,255,255,0.05) 0 1px, transparent 1px 22px) !important;
      opacity: 0.62 !important;
    }

    .home-staff-side .principal-kicker {
      color: #f9a8d4 !important;
      text-shadow: 0 1px 10px rgba(0,0,0,0.22);
    }

    .home-staff-side .principal-name {
      color: #ffffff !important;
      text-shadow: 0 2px 12px rgba(0,0,0,0.24);
    }

    .home-staff-side .principal-role {
      color: rgba(255, 255, 255, 0.82) !important;
    }

    .home-staff-side .principal-photo {
      border: 1px solid rgba(255,255,255,0.25) !important;
      background: rgba(255,255,255,0.12) !important;
      box-shadow: 0 16px 36px rgba(0, 0, 0, 0.22);
    }

    .home-staff-side .button.button-secondary {
      background: rgba(255,255,255,0.92) !important;
      color: #4c1d95 !important;
      border-color: rgba(255,255,255,0.76) !important;
      box-shadow: 0 12px 28px rgba(0,0,0,0.18);
    }

    .home-staff-side .button.button-secondary:hover {
      background: #ffffff !important;
      color: #312e81 !important;
    }


    body.has-public-bg:not(.admin-route) {
      background-image:
        linear-gradient(180deg, rgba(247, 249, 255, 0.90), rgba(247, 249, 255, 0.86)),
        var(--public-bg-image) !important;
      background-size: cover !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
      background-attachment: fixed !important;
    }

    body.has-public-bg:not(.admin-route) main#app,
    body.has-public-bg:not(.admin-route) .hero,
    body.has-public-bg:not(.admin-route) .section,
    body.has-public-bg:not(.admin-route) .home-main-grid,
    body.has-public-bg:not(.admin-route) .news-detail-section {
      background: transparent !important;
    }

    body.has-public-bg.admin-route {
      background-image: none !important;
      background-color: #f7f9ff !important;
    }


    .admin-quick-bubble {
      position: fixed;
      right: 22px;
      bottom: 24px;
      z-index: 950;
      width: 72px;
      height: 72px;
      padding: 0;
      border: 0;
      border-radius: 999px;
      display: grid;
      place-items: center;
      cursor: grab;
      color: #7c3aed;
      background: transparent !important;
      box-shadow: none !important;
      transition: transform 0.18s ease, opacity 0.18s ease, filter 0.18s ease;
      touch-action: none;
      user-select: none;
    }

    .admin-quick-bubble svg {
      width: 58px;
      height: 58px;
      fill: currentColor;
      filter: drop-shadow(0 10px 22px rgba(76,29,149,0.28));
      pointer-events: none;
    }

    .admin-quick-bubble:hover {
      transform: translateY(-2px) scale(1.06);
      filter: saturate(1.1);
    }

    .admin-quick-bubble.is-dragging {
      cursor: grabbing;
      transform: scale(1.08);
      opacity: 0.92;
    }

    .admin-quick-bubble[hidden],
    .admin-quick-menu[hidden],
    body.admin-route .admin-quick-bubble,
    body.admin-route .admin-quick-menu {
      display: none !important;
    }

    .admin-quick-menu {
      position: fixed;
      z-index: 960;
      width: 244px;
      max-height: calc(100vh - 24px);
      overflow-y: auto;
      overscroll-behavior: contain;
      display: grid;
      gap: 8px;
      padding: 11px;
      border-radius: 26px;
      background: rgba(15, 23, 42, 0.84);
      border: 1px solid rgba(255,255,255,0.16);
      box-shadow: 0 22px 58px rgba(15, 23, 42, 0.28);
      backdrop-filter: blur(18px);
    }

    .admin-quick-bubble.is-menu-open {
      opacity: 0 !important;
      pointer-events: none !important;
    }

    .admin-quick-menu button {
      min-height: 38px;
      border: 0;
      border-radius: 999px;
      padding: 8px 13px;
      text-align: left;
      color: #fff;
      background: rgba(255,255,255,0.12);
      font-weight: 850;
      cursor: pointer;
      transition: 0.18s ease;
    }

    .admin-quick-menu button:hover {
      background: rgba(255,255,255,0.22);
      transform: translateX(2px);
    }

    .admin-quick-menu button.admin-quick-logout {
      margin-top: 4px;
      color: #fecaca;
      background: rgba(239, 68, 68, 0.18);
    }

    .admin-quick-menu button.admin-quick-logout:hover {
      color: #fff;
      background: rgba(239, 68, 68, 0.34);
    }

    @media (max-width: 760px) {
      .admin-quick-bubble {
        width: 64px;
        height: 64px;
        right: 14px;
        bottom: 16px;
      }

      .admin-quick-bubble svg {
        width: 52px;
        height: 52px;
      }

      .admin-quick-menu {
        width: min(236px, calc(100vw - 28px));
      }
    }


    .card-desc,
    .news-detail-content,
    .news-detail-body p,
    .activity-album-desc,
    .download-desc,
    .system-desc,
    .staff-desc {
      text-align: left !important;
      text-align-last: left !important;
      text-justify: auto !important;
      word-spacing: normal !important;
      letter-spacing: normal !important;
      overflow-wrap: break-word !important;
      word-break: normal !important;
    }

    .card-desc.collapsible {
      max-height: 7.2em !important;
      overflow: hidden !important;
      display: block !important;
      position: relative !important;
    }

    .card-desc.collapsible.expanded {
      max-height: none !important;
      overflow: visible !important;
    }

    .card-desc.collapsible:not(.expanded)::after {
      content: "" !important;
      position: absolute !important;
      left: 0 !important;
      right: 0 !important;
      bottom: 0 !important;
      height: 2.2em !important;
      background: linear-gradient(to bottom, rgba(255,255,255,0), rgba(255,255,255,0.96)) !important;
      pointer-events: none !important;
    }


    .grid-5.news-grid-compact,
    .section .grid.grid-3 {
      align-items: start !important;
    }

    .grid-5.news-grid-compact > .card,
    .section .grid.grid-3 > .card {
      align-self: start !important;
      height: auto !important;
      min-height: 0 !important;
    }

    .grid-5.news-grid-compact > .card .card-desc.collapsible:not(.expanded),
    .section .grid.grid-3 > .card .card-desc.collapsible:not(.expanded) {
      max-height: 7.2em !important;
      overflow: hidden !important;
    }

    .grid-5.news-grid-compact > .card .card-desc.collapsible.expanded,
    .section .grid.grid-3 > .card .card-desc.collapsible.expanded {
      max-height: none !important;
      overflow: visible !important;
    }


    .thai-justify,
    .card-desc.thai-justify,
    .news-detail-body p.thai-justify {
      text-align: justify !important;
      text-align-last: left !important;
      text-justify: inter-character !important;
      line-break: anywhere !important;
      word-break: normal !important;
      overflow-wrap: break-word !important;
      word-spacing: normal !important;
      letter-spacing: 0 !important;
      white-space: normal !important;
    }

    .card-desc.thai-justify.collapsible:not(.expanded) {
      max-height: 7.2em !important;
      overflow: hidden !important;
    }

    .card-desc.thai-justify.collapsible.expanded {
      max-height: none !important;
      overflow: visible !important;
    }


    .thai-justify,
    .card-desc.thai-justify,
    .news-detail-body p.thai-justify {
      text-align: justify !important;
      text-align-last: left !important;
      text-justify: inter-character !important;
      line-break: strict !important;
      word-break: normal !important;
      overflow-wrap: normal !important;
      word-spacing: normal !important;
      letter-spacing: normal !important;
      white-space: normal !important;
    }

    .thai-justify br {
      display: block;
    }


    .news-grid-compact .card-desc,
    .section .grid.grid-3 > .card .card-desc {
      text-align: left !important;
      text-align-last: left !important;
      text-justify: auto !important;
      word-spacing: normal !important;
      letter-spacing: normal !important;
    }

    .news-grid-compact .card-desc.collapsible,
    .section .grid.grid-3 > .card .card-desc.collapsible {
      max-height: 5.4em !important;
      overflow: hidden !important;
    }

    .news-grid-compact .card-desc.collapsible.expanded,
    .section .grid.grid-3 > .card .card-desc.collapsible.expanded {
      max-height: 5.4em !important;
      overflow: hidden !important;
    }

    .news-grid-compact .read-more-btn,
    .section .grid.grid-3 > .card .read-more-btn {
      margin-top: 10px !important;
    }


    .back-to-top {
      width: 56px !important;
      height: 56px !important;
      border-radius: 999px !important;
      background: linear-gradient(135deg, #4c1d95, #7c3aed, #06b6d4) !important;
      border: 2px solid rgba(255,255,255,0.72) !important;
      color: #fff !important;
      box-shadow: 0 18px 46px rgba(76, 29, 149, 0.32) !important;
    }

    .back-to-top svg {
      width: 31px !important;
      height: 31px !important;
      fill: none !important;
      stroke: currentColor !important;
      stroke-width: 3.1 !important;
      stroke-linecap: round !important;
      stroke-linejoin: round !important;
      filter: drop-shadow(0 2px 7px rgba(0,0,0,0.24));
      pointer-events: none;
    }

    .back-to-top:hover {
      transform: translateY(-3px) scale(1.04) !important;
      box-shadow: 0 24px 58px rgba(76, 29, 149, 0.42) !important;
    }

    @media (max-width: 760px) {
      .back-to-top {
        width: 52px !important;
        height: 52px !important;
        right: 16px !important;
        bottom: 18px !important;
      }

      .back-to-top svg {
        width: 29px !important;
        height: 29px !important;
      }
    }


    #newsCoverUploadBtn,
    #newsAlbumUploadBtn,
    #activityCoverUploadBtn,
    #staffPhotoUploadBtn,
    #siteBackgroundImageUploadBtn {
      display: none !important;
    }

    .image-upload-note,
    .album-upload-note {
      color: #475569 !important;
    }

    .upload-status {
      font-weight: 850 !important;
      color: #7c3aed !important;
    }


    body.has-public-bg:not(.admin-route) {
      background-image:
        linear-gradient(180deg, rgba(247, 249, 255, 0.76), rgba(247, 249, 255, 0.68)),
        var(--public-bg-image) !important;
      background-size: cover !important;
      background-position: center center !important;
      background-repeat: no-repeat !important;
      background-attachment: fixed !important;
    }

    body.has-public-bg:not(.admin-route) .section {
      background: rgba(247, 249, 255, 0.18) !important;
    }

    body.has-public-bg:not(.admin-route) .home-main-grid {
      background: transparent !important;
    }


    .hero {
      padding-bottom: 10px !important;
    }

    .home-main-grid {
      margin-top: 8px !important;
    }

    @media (max-width: 760px) {
      .hero {
        padding-bottom: 8px !important;
      }

      .home-main-grid {
        margin-top: 8px !important;
      }
    }


    .home-announcement {
      margin-top: 10px !important;
      margin-bottom: 0 !important;
    }

    .home-announcement + .home-main-grid {
      margin-top: 14px !important;
    }

    .hero + .home-main-grid,
    .hero + .home-announcement + .home-main-grid {
      transition: margin-top 0.18s ease;
    }

    @media (max-width: 760px) {
      .home-announcement {
        margin-top: 8px !important;
      }

      .home-announcement + .home-main-grid {
        margin-top: 12px !important;
      }
    }


    .home-staff-side .principal-name {
      margin-bottom: 10px !important;
    }

    .home-staff-side .principal-role {
      width: fit-content !important;
      max-width: 100% !important;
      margin: 0 0 7px !important;
      padding: 6px 10px !important;
      border-radius: 999px !important;
      display: inline-flex !important;
      align-items: center !important;
      color: rgba(255,255,255,0.92) !important;
      background: rgba(255,255,255,0.12) !important;
      border: 1px solid rgba(255,255,255,0.16) !important;
      font-size: 13.5px !important;
      font-weight: 800 !important;
      line-height: 1.22 !important;
      letter-spacing: 0 !important;
      text-shadow: none !important;
    }

    .home-staff-side .principal-role + .principal-role {
      color: rgba(255,255,255,0.76) !important;
      background: rgba(255,255,255,0.075) !important;
      border-color: rgba(255,255,255,0.10) !important;
      font-size: 12.8px !important;
      font-weight: 750 !important;
    }

    .home-staff-side .teacher-spotlight-info {
      display: grid !important;
      justify-items: start !important;
      gap: 0 !important;
    }

    @media (max-width: 760px) {
      .home-staff-side .principal-role {
        font-size: 13px !important;
        padding: 5px 9px !important;
      }

      .home-staff-side .principal-role + .principal-role {
        font-size: 12.5px !important;
      }
    }


    .home-staff-side .principal-card {
      text-align: center !important;
    }

    .home-staff-side .principal-kicker,
    .home-staff-side .principal-name,
    .home-staff-side .principal-role {
      text-align: center !important;
      justify-content: center !important;
    }

    .home-staff-side .principal-name {
      margin-left: auto !important;
      margin-right: auto !important;
      margin-bottom: 8px !important;
    }

    .home-staff-side .principal-role,
    .home-staff-side .principal-role + .principal-role {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      margin: 3px auto 0 !important;
      padding: 0 !important;
      border-radius: 0 !important;
      border: 0 !important;
      background: transparent !important;
      color: rgba(255,255,255,0.86) !important;
      font-size: 14px !important;
      font-weight: 760 !important;
      line-height: 1.45 !important;
      text-shadow: none !important;
    }

    .home-staff-side .principal-group {
      color: rgba(255,255,255,0.72) !important;
      font-size: 13.5px !important;
      font-weight: 720 !important;
    }

    .home-staff-side .role-label {
      color: rgba(255,255,255,0.70) !important;
      font-weight: 760 !important;
    }

    .home-staff-side .teacher-spotlight-info {
      justify-items: center !important;
      text-align: center !important;
    }


    .home-staff-side .principal-director-label {
      display: grid !important;
      gap: 2px !important;
      justify-items: center !important;
      margin: 2px auto 0 !important;
      color: rgba(255,255,255,0.86) !important;
      font-size: 14px !important;
      font-weight: 780 !important;
      line-height: 1.35 !important;
      text-align: center !important;
    }

    .home-staff-side .principal-director-label span:last-child {
      color: rgba(255,255,255,0.72) !important;
      font-size: 13.5px !important;
      font-weight: 720 !important;
    }


    @media (min-width: 981px) {
      .home-main-grid {
        grid-template-columns: 220px minmax(0, 1fr) !important;
        gap: 18px !important;
      }
    }

    .home-staff-side {
      gap: 10px !important;
    }

    .home-staff-side .principal-card {
      padding: 10px !important;
      border-radius: 20px !important;
    }

    .home-staff-side .principal-photo {
      height: auto !important;
      aspect-ratio: 4 / 5 !important;
      border-radius: 16px !important;
      margin-bottom: 9px !important;
    }

    .home-staff-side .principal-kicker {
      font-size: 11.6px !important;
      margin-bottom: 6px !important;
    }

    .home-staff-side .principal-name {
      font-size: 16px !important;
      line-height: 1.24 !important;
      margin-bottom: 5px !important;
    }

    .home-staff-side .principal-director-label {
      font-size: 11.6px !important;
      line-height: 1.22 !important;
      gap: 1px !important;
    }

    .home-staff-side .principal-director-label span:last-child {
      font-size: 11.2px !important;
    }

    .home-staff-side .principal-role,
    .home-staff-side .principal-role + .principal-role {
      font-size: 11.8px !important;
      line-height: 1.28 !important;
      margin-top: 1px !important;
    }

    .home-staff-side .principal-group {
      font-size: 11.5px !important;
    }

    .home-staff-side .button {
      margin-top: 8px !important;
      padding: 8px 9px !important;
      font-size: 11.8px !important;
    }

    @media (max-width: 980px) {
      .home-staff-side .principal-card {
        padding: 14px !important;
      }
    }

    @media (max-width: 560px) {
      .home-staff-side .principal-photo {
        margin-left: auto !important;
        margin-right: auto !important;
      }
    }

    .home-main-grid .grid-5.news-grid-compact {
      grid-template-columns: repeat(4, 220px) !important;
      justify-content: start !important;
    }

    .home-news-more {
      margin-top: 16px !important;
      display: flex !important;
      justify-content: flex-start !important;
    }

    .home-news-more .button {
      min-height: 42px !important;
      padding: 9px 15px !important;
      font-size: 13.5px !important;
    }

    @media (max-width: 1240px) and (min-width: 981px) {
      .home-main-grid .grid-5.news-grid-compact {
        grid-template-columns: repeat(3, 220px) !important;
      }
    }

    @media (max-width: 980px) {
      .home-main-grid .grid-5.news-grid-compact {
        grid-template-columns: repeat(2, 220px) !important;
      }
    }

    @media (max-width: 560px) {
      .home-main-grid .grid-5.news-grid-compact {
        grid-template-columns: 1fr !important;
      }
    }


    .staff-org-chart .staff-grid,
    .staff-org-chart .staff-teachers-grid,
    .staff-org-chart .staff-support-grid {
      grid-template-columns: repeat(auto-fit, minmax(230px, 260px)) !important;
      justify-content: start !important;
      align-items: start !important;
      gap: 16px !important;
    }

    .staff-org-chart .staff-principal-grid {
      grid-template-columns: minmax(230px, 260px) !important;
      justify-content: center !important;
    }

    .staff-org-chart .staff-card {
      width: 260px !important;
      max-width: 260px !important;
      min-height: 0 !important;
      padding: 14px 13px 16px !important;
      border-radius: 24px !important;
      gap: 10px !important;
      align-self: start !important;
    }

    .staff-org-chart .staff-card .avatar {
      width: 150px !important;
      height: 168px !important;
      border-radius: 22px !important;
      margin-bottom: 4px !important;
    }

    .staff-org-chart .staff-card .staff-name {
      font-size: 16.8px !important;
      line-height: 1.28 !important;
      margin: 0 0 3px !important;
    }

    .staff-org-chart .staff-card .staff-role {
      font-size: 13.3px !important;
      line-height: 1.38 !important;
    }

    @media (max-width: 640px) {
      .staff-org-chart .staff-grid,
      .staff-org-chart .staff-teachers-grid,
      .staff-org-chart .staff-support-grid,
      .staff-org-chart .staff-principal-grid {
        grid-template-columns: 1fr !important;
      }

      .staff-org-chart .staff-card {
        width: 100% !important;
        max-width: 320px !important;
        justify-self: center !important;
      }
    }


    .hero-quickbar {
      display: inline-flex !important;
      align-items: center !important;
      justify-content: flex-start !important;
      gap: 4px !important;
      width: fit-content !important;
      max-width: 100% !important;
      margin-top: 18px !important;
      padding: 6px !important;
      border-radius: 999px !important;
      background: rgba(255, 255, 255, 0.16) !important;
      border: 1px solid rgba(255, 255, 255, 0.24) !important;
      box-shadow: 0 18px 42px rgba(15, 23, 42, 0.18), inset 0 1px 0 rgba(255, 255, 255, 0.18) !important;
      backdrop-filter: blur(18px) saturate(1.15) !important;
      -webkit-backdrop-filter: blur(18px) saturate(1.15) !important;
    }

    .hero-quick-link {
      position: relative !important;
      display: inline-flex !important;
      align-items: center !important;
      justify-content: center !important;
      min-height: 38px !important;
      padding: 8px 17px !important;
      border: 0 !important;
      border-radius: 999px !important;
      background: transparent !important;
      color: rgba(255, 255, 255, 0.94) !important;
      font: inherit !important;
      font-size: 14px !important;
      font-weight: 850 !important;
      line-height: 1.2 !important;
      white-space: nowrap !important;
      cursor: pointer !important;
      text-shadow: 0 8px 20px rgba(15, 23, 42, 0.28) !important;
      transition: transform 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease !important;
    }

    .hero-quick-link + .hero-quick-link::before {
      content: "" !important;
      position: absolute !important;
      left: -2px !important;
      top: 10px !important;
      bottom: 10px !important;
      width: 1px !important;
      background: rgba(255, 255, 255, 0.22) !important;
    }

    .hero-quick-link-primary + .hero-quick-link::before {
      content: none !important;
    }

    .hero-quick-link:hover,
    .hero-quick-link:focus-visible {
      background: rgba(255, 255, 255, 0.22) !important;
      transform: translateY(-1px) !important;
      box-shadow: 0 12px 28px rgba(15, 23, 42, 0.16) !important;
      outline: none !important;
    }

    .hero-quick-link-primary {
      color: #ffffff !important;
      background: linear-gradient(135deg, rgba(124, 58, 237, 0.96), rgba(236, 72, 153, 0.94), rgba(249, 115, 22, 0.92)) !important;
      box-shadow: 0 14px 34px rgba(236, 72, 153, 0.22) !important;
    }

    .hero-quick-link-primary:hover,
    .hero-quick-link-primary:focus-visible {
      background: linear-gradient(135deg, rgba(109, 40, 217, 1), rgba(219, 39, 119, 0.98), rgba(249, 115, 22, 0.96)) !important;
    }

    @media (max-width: 760px) {
      .hero-quickbar {
        width: 100% !important;
        max-width: 100% !important;
        overflow-x: auto !important;
        overscroll-behavior-x: contain !important;
        scrollbar-width: none !important;
        margin-top: 14px !important;
        padding: 5px !important;
      }

      .hero-quickbar::-webkit-scrollbar {
        display: none !important;
      }

      .hero-quick-link {
        flex: 0 0 auto !important;
        min-height: 36px !important;
        padding: 8px 13px !important;
        font-size: 13.2px !important;
      }
    }


    .teacher-spotlight-card {
      overflow: hidden !important;
    }

    .teacher-spotlight-info {
      width: 100% !important;
      min-width: 0 !important;
    }

    .home-staff-side .teacher-spotlight-name {
      display: block !important;
      width: 100% !important;
      max-width: 100% !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: clip !important;
      line-height: 1.18 !important;
      letter-spacing: -0.015em !important;
      transition: font-size 0.2s ease, letter-spacing 0.2s ease !important;
    }

    .home-staff-side .teacher-spotlight-name.teacher-name-fit-normal {
      font-size: 16px !important;
    }

    .home-staff-side .teacher-spotlight-name.teacher-name-fit-md {
      font-size: 15px !important;
      letter-spacing: -0.02em !important;
    }

    .home-staff-side .teacher-spotlight-name.teacher-name-fit-sm {
      font-size: 14px !important;
      letter-spacing: -0.025em !important;
    }

    .home-staff-side .teacher-spotlight-name.teacher-name-fit-xs {
      font-size: 13px !important;
      letter-spacing: -0.032em !important;
    }

    .home-staff-side .teacher-spotlight-info .principal-role {
      width: 100% !important;
      max-width: 100% !important;
      white-space: nowrap !important;
      overflow: hidden !important;
      text-overflow: ellipsis !important;
    }

    @media (max-width: 560px) {
      .home-staff-side .teacher-spotlight-name.teacher-name-fit-normal {
        font-size: 17px !important;
      }

      .home-staff-side .teacher-spotlight-name.teacher-name-fit-md {
        font-size: 15.5px !important;
      }

      .home-staff-side .teacher-spotlight-name.teacher-name-fit-sm {
        font-size: 14.5px !important;
      }

      .home-staff-side .teacher-spotlight-name.teacher-name-fit-xs {
        font-size: 13.5px !important;
      }
    }


    #teacherSpotlightCard.teacher-spotlight-card {
      display: flex !important;
      flex-direction: column !important;
    }

    #teacherSpotlightFrame.teacher-spotlight-frame {
      display: grid !important;
      grid-template-rows: auto 62px !important;
      align-items: start !important;
      width: 100% !important;
      min-width: 0 !important;
      row-gap: 9px !important;
      transition: opacity 0.42s ease, filter 0.42s ease !important;
      will-change: opacity, filter !important;
    }

    #teacherSpotlightFrame.teacher-spotlight-frame.is-switching {
      opacity: 0.22 !important;
      transform: none !important;
      filter: blur(1.2px) !important;
    }

    #teacherSpotlightFrame .teacher-spotlight-photo {
      grid-row: 1 !important;
      width: 100% !important;
      min-width: 0 !important;
      margin: 0 !important;
      align-self: start !important;
    }

    #teacherSpotlightFrame .teacher-spotlight-info {
      grid-row: 2 !important;
      display: grid !important;
      grid-template-rows: 20px 18px 18px !important;
      align-content: start !important;
      justify-items: center !important;
      row-gap: 2px !important;
      width: 100% !important;
      height: 62px !important;
      min-height: 62px !important;
      max-height: 62px !important;
      margin: 0 !important;
      overflow: hidden !important;
    }

    #teacherSpotlightFrame .teacher-spotlight-name {
      align-self: center !important;
      margin: 0 !important;
      line-height: 1.12 !important;
    }

    #teacherSpotlightFrame .principal-role {
      align-self: center !important;
      margin: 0 !important;
      line-height: 1.16 !important;
    }

    #teacherSpotlightCard > .button {
      flex: 0 0 auto !important;
      margin-top: 8px !important;
    }

    @media (max-width: 560px) {
      #teacherSpotlightFrame.teacher-spotlight-frame {
        grid-template-rows: auto 68px !important;
        row-gap: 10px !important;
      }

      #teacherSpotlightFrame .teacher-spotlight-info {
        grid-template-rows: 22px 20px 20px !important;
        height: 68px !important;
        min-height: 68px !important;
        max-height: 68px !important;
      }
    }


    .admin-role-field {
      margin-top: 2px;
    }

    .admin-role-checks {
      display: grid;
      grid-template-columns: repeat(2, minmax(0, 1fr));
      gap: 9px;
    }

    .admin-role-check {
      display: flex !important;
      align-items: center !important;
      gap: 9px !important;
      min-height: 44px !important;
      padding: 10px 12px !important;
      border-radius: 15px !important;
      border: 1px solid rgba(124, 58, 237, 0.14) !important;
      background: rgba(255, 255, 255, 0.76) !important;
      color: #1f1147 !important;
      font-weight: 800 !important;
      line-height: 1.35 !important;
      cursor: pointer !important;
      transition: 0.18s ease !important;
    }

    .admin-role-check:hover {
      background: rgba(237, 233, 254, 0.72) !important;
      border-color: rgba(124, 58, 237, 0.28) !important;
    }

    .admin-role-check input {
      width: 18px !important;
      height: 18px !important;
      accent-color: #7c3aed !important;
      flex: 0 0 auto !important;
    }

    @media (max-width: 720px) {
      .admin-role-checks {
        grid-template-columns: 1fr;
      }
    }


    .contact-side {
      display: grid;
      gap: 12px;
      min-width: 0;
    }

    .contact-map-card {
      border-radius: 24px;
      overflow: hidden;
      border: 1px solid rgba(255, 255, 255, 0.22);
      background: rgba(255, 255, 255, 0.14);
      box-shadow: 0 18px 40px rgba(15, 23, 42, 0.16);
    }

    .contact-map-frame {
      display: block;
      width: 100%;
      height: 260px;
      border: 0;
      background: rgba(255, 255, 255, 0.18);
    }

    .contact-item {
      min-width: 0;
      overflow: hidden;
    }

    .contact-item a {
      overflow-wrap: anywhere;
    }

    @media (max-width: 900px) {
      .contact-map-frame {
        height: 240px;
      }
    }

    @media (max-width: 520px) {
      .contact-map-frame {
        height: 220px;
      }
    }


    .contact-main {
      display: flex;
      flex-direction: column;
      min-width: 0;
    }

    .contact-main .contact-map-card {
      margin-top: 22px;
      max-width: 620px;
    }

    @media (max-width: 900px) {
      .contact-main .contact-map-card {
        max-width: none;
      }
    }


    .contact-main .contact-actions {
      display: grid !important;
      grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
      width: 100% !important;
      max-width: 620px !important;
      gap: 12px !important;
      margin-top: 20px !important;
      align-items: stretch !important;
    }

    .contact-main .contact-action {
      width: 100% !important;
      min-width: 0 !important;
      padding-left: 10px !important;
      padding-right: 10px !important;
      text-align: center !important;
      white-space: nowrap !important;
    }

    @media (max-width: 1100px) {
      .contact-main .contact-actions {
        grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
      }
    }

    @media (max-width: 520px) {
      .contact-main .contact-actions {
        grid-template-columns: 1fr !important;
      }
    }


    .contact-item-link {
      display: block;
      color: #fff;
      text-decoration: none;
      cursor: pointer;
      transition: transform 0.18s ease, background 0.18s ease, border-color 0.18s ease;
    }

    .contact-item-link:hover,
    .contact-item-link:focus-visible {
      transform: translateY(-2px);
      background: rgba(255, 255, 255, 0.23);
      border-color: rgba(255, 255, 255, 0.36);
      outline: none;
    }

    .contact-item-link span:last-child {
      display: inline-block;
      font-weight: 850;
    }


    .contact-url-link span:last-child {
      max-width: 100%;
      overflow-wrap: anywhere;
      word-break: break-word;
      line-height: 1.45;
      text-decoration: underline;
      text-decoration-thickness: 1px;
      text-underline-offset: 3px;
    }


    .contact-url-link,
    .contact-url-link span:last-child {
      text-decoration: none !important;
    }


    .contact-map-frame {
      height: 322px !important;
    }

    @media (max-width: 900px) {
      .contact-map-frame {
        height: 286px !important;
      }
    }

    @media (max-width: 520px) {
      .contact-map-frame {
        height: 250px !important;
      }
    }


    .home-featured-news {
      display: grid;
      grid-template-columns: minmax(260px, 0.88fr) minmax(0, 1fr);
      gap: 18px;
      align-items: stretch;
      margin-bottom: 18px;
      padding: 16px;
      border-radius: 28px;
      background: rgba(255, 255, 255, 0.86);
      border: 1px solid rgba(148, 163, 184, 0.18);
      box-shadow: 0 20px 54px rgba(15, 23, 42, 0.09);
      backdrop-filter: blur(18px);
      -webkit-backdrop-filter: blur(18px);
    }

    .home-featured-news-cover {
      display: block;
      width: 100%;
      min-height: 250px;
      border: 0;
      padding: 0;
      border-radius: 22px;
      overflow: hidden;
      background:
        radial-gradient(circle at 20% 18%, rgba(255,255,255,0.42), transparent 24%),
        linear-gradient(135deg, rgba(124, 58, 237, 0.18), rgba(236, 72, 153, 0.16));
      cursor: pointer;
    }

    .home-featured-news-cover img {
      width: 100%;
      height: 100%;
      min-height: 250px;
      object-fit: cover;
      display: block;
      transition: transform 0.28s ease;
    }

    .home-featured-news-cover:hover img {
      transform: scale(1.025);
    }

    .home-featured-news-cover.is-fallback {
      display: grid;
      place-items: center;
      background: linear-gradient(135deg, rgba(124, 58, 237, 0.14), rgba(236, 72, 153, 0.12));
    }

    .home-featured-news-cover.is-fallback img {
      width: 94px;
      height: 94px;
      min-height: 0;
      object-fit: contain;
      padding: 10px;
      border-radius: 24px;
      background: rgba(255,255,255,0.9);
    }

    .home-featured-news-body {
      display: flex;
      flex-direction: column;
      justify-content: center;
      min-width: 0;
      padding: 4px 2px;
    }

    .home-featured-news-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 8px;
      margin-bottom: 10px;
      color: #6d28d9;
      font-size: 12.5px;
      font-weight: 850;
    }

    .home-featured-news-meta span {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 5px 9px;
      background: rgba(237, 233, 254, 0.86);
    }

    .home-featured-news h3 {
      margin: 0 0 10px;
      color: #1f1147;
      font-size: clamp(22px, 2.3vw, 32px);
      line-height: 1.28;
      letter-spacing: -0.025em;
    }

    .home-featured-news p {
      margin: 0 0 15px;
      color: #475569;
      font-weight: 650;
      line-height: 1.72;
    }

    .home-featured-news .button {
      align-self: flex-start;
      min-height: 42px;
      padding: 9px 15px;
      font-size: 13.5px;
    }

    @media (max-width: 980px) {
      .home-featured-news {
        grid-template-columns: 1fr;
      }

      .home-featured-news-cover,
      .home-featured-news-cover img {
        min-height: 240px;
      }
    }

    @media (max-width: 560px) {
      .home-featured-news {
        padding: 12px;
        border-radius: 24px;
      }

      .home-featured-news-cover,
      .home-featured-news-cover img {
        min-height: 210px;
        border-radius: 18px;
      }

      .home-featured-news h3 {
        font-size: 21px;
      }
    }


    .home-featured-news + .section-header {
      margin-top: 22px;
    }


    body.welcome-open {
      overflow: hidden;
    }

    .welcome-screen {
      position: fixed;
      inset: 0;
      z-index: 10000;
      display: grid;
      place-items: center;
      padding: 22px;
      background:
        radial-gradient(circle at 18% 12%, rgba(236,72,153,0.30), transparent 32%),
        radial-gradient(circle at 86% 18%, rgba(6,182,212,0.28), transparent 34%),
        linear-gradient(135deg, #fdf2f8 0%, #eef2ff 48%, #ecfeff 100%);
    }

    .welcome-screen[hidden] {
      display: none !important;
    }

    .welcome-card {
      width: min(1120px, 100%);
      max-height: calc(100vh - 44px);
      display: grid;
      grid-template-columns: minmax(0, 1.22fr) minmax(280px, 0.78fr);
      gap: 18px;
      padding: 18px;
      border-radius: 34px;
      background: rgba(255,255,255,0.76);
      border: 1px solid rgba(255,255,255,0.86);
      box-shadow: 0 34px 90px rgba(76,29,149,0.24);
      backdrop-filter: blur(22px);
      overflow: hidden;
    }

    .welcome-image-link,
    .welcome-image-static {
      display: block;
      min-height: clamp(360px, 64vh, 660px);
      border-radius: 26px;
      overflow: hidden;
      background:
        radial-gradient(circle at 30% 20%, rgba(255,255,255,0.42), transparent 20%),
        linear-gradient(135deg, #7c3aed, #ec4899 56%, #f97316);
      box-shadow: inset 0 1px 0 rgba(255,255,255,0.32), 0 22px 52px rgba(76,29,149,0.18);
    }

    .welcome-image-link img,
    .welcome-image-static img {
      width: 100%;
      height: 100%;
      min-height: inherit;
      object-fit: cover;
      object-position: center center;
      display: block;
    }

    .welcome-content {
      min-height: 360px;
      display: flex;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      text-align: center;
      gap: 16px;
      padding: clamp(18px, 4vw, 34px);
      border-radius: 26px;
      background: rgba(255,255,255,0.66);
      border: 1px solid rgba(255,255,255,0.78);
    }

    .welcome-content img {
      width: 86px;
      height: 86px;
      object-fit: contain;
      padding: 9px;
      border-radius: 24px;
      background: rgba(255,255,255,0.92);
      box-shadow: 0 18px 42px rgba(124,58,237,0.16);
    }

    .welcome-content h2 {
      margin: 0;
      color: #241044;
      font-size: clamp(28px, 4vw, 42px);
      line-height: 1.22;
      letter-spacing: -0.035em;
    }

    .welcome-content p {
      margin: 0;
      color: #475569;
      font-weight: 700;
      line-height: 1.7;
    }

    .welcome-enter-btn {
      min-width: 190px;
    }

    html.site-theme-mourning-boot body:not(.admin-mode),
    body.site-theme-mourning:not(.admin-mode) {
      --primary: #374151;
      --primary-dark: #111827;
      --primary-soft: #f3f4f6;
      --pink: #6b7280;
      --orange: #9ca3af;
      --cyan: #64748b;
      --yellow: #d1d5db;
      filter: saturate(0.28);
    }

    html.site-theme-mourning-boot body:not(.admin-mode)::after,
    body.site-theme-mourning:not(.admin-mode)::after {
      content: "";
      position: fixed;
      left: 0;
      top: 0;
      z-index: 9998;
      width: 62px;
      height: 62px;
      pointer-events: none;
      background: linear-gradient(135deg, rgba(17,24,39,0.92) 0 50%, transparent 50% 100%);
    }

    html.site-theme-mourning-boot body:not(.admin-mode) img,
    body.site-theme-mourning:not(.admin-mode) img {
      filter: grayscale(0.38) saturate(0.72);
    }

    html.site-theme-mourning-boot body .welcome-screen,
    html.site-theme-mourning-boot body .welcome-screen img,
    body.site-theme-mourning .welcome-screen,
    body.site-theme-mourning .welcome-screen img {
      filter: none;
    }

    @media (max-width: 860px) {
      .welcome-card {
        grid-template-columns: 1fr;
        max-height: calc(100vh - 28px);
        overflow-y: auto;
        padding: 14px;
      }

      .welcome-image-link,
      .welcome-image-static {
        min-height: clamp(260px, 48vh, 470px);
      }

      .welcome-content {
        min-height: auto;
        padding: 22px 18px 24px;
      }
    }

    @media (max-width: 520px) {
      .welcome-screen {
        padding: 12px;
      }

      .welcome-card {
        border-radius: 24px;
      }

      .welcome-image-link,
      .welcome-image-static {
        border-radius: 20px;
        min-height: 52vh;
      }
    }


    .welcome-card,
    .welcome-image-link,
    .welcome-image-static,
    .welcome-content {
      border-radius: 0 !important;
    }

    .welcome-image-link,
    .welcome-image-static {
      position: relative;
    }

    

    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      position: relative;
      z-index: 1;
    }


    .settings-section {
      grid-column: 1 / -1;
      padding: 16px;
      border-radius: 22px;
      background: rgba(255,255,255,0.72);
      border: 1px solid rgba(124,58,237,0.14);
      box-shadow: 0 12px 28px rgba(76,29,149,0.06);
    }

    .settings-section + .settings-section {
      margin-top: 4px;
    }

    .settings-section-head {
      margin-bottom: 14px;
      padding-bottom: 10px;
      border-bottom: 1px solid rgba(148,163,184,0.22);
    }

    .settings-section-head h3 {
      margin: 0;
      color: #1f1147;
      font-size: 18px;
      line-height: 1.35;
    }

    .settings-section-head p {
      margin: 4px 0 0;
      color: var(--muted);
      font-size: 13.5px;
      font-weight: 650;
      line-height: 1.55;
    }

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

    @media (max-width: 760px) {
      .settings-section-grid {
        grid-template-columns: 1fr;
      }
    }


    .welcome-screen {
      padding: clamp(10px, 2.4vw, 28px) !important;
      background:
        radial-gradient(circle at 18% 12%, rgba(17,24,39,0.10), transparent 30%),
        linear-gradient(135deg, #f8fafc 0%, #f1f5f9 100%) !important;
    }

    .welcome-card {
      position: relative;
      width: min(1180px, 100%) !important;
      max-height: calc(100vh - 28px) !important;
      display: flex !important;
      grid-template-columns: none !important;
      align-items: center;
      justify-content: center;
      padding: 0 !important;
      gap: 0 !important;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      overflow: visible !important;
    }

    .welcome-image-link,
    .welcome-image-static {
      width: 100% !important;
      height: min(84vh, 760px) !important;
      min-height: 320px !important;
      display: flex !important;
      align-items: center;
      justify-content: center;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      overflow: visible !important;
    }

    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      width: 100% !important;
      height: 100% !important;
      min-height: 0 !important;
      object-fit: contain !important;
      object-position: center center !important;
      filter: drop-shadow(0 24px 56px rgba(15,23,42,0.18));
    }

    

    .welcome-content {
      position: absolute !important;
      left: 0;
      right: 0;
      bottom: clamp(14px, 4vh, 38px);
      z-index: 5;
      min-height: 0 !important;
      padding: 0 !important;
      background: transparent !important;
      border: 0 !important;
      box-shadow: none !important;
      pointer-events: none;
    }

    .welcome-content img,
    .welcome-content h2,
    .welcome-content p {
      display: none !important;
    }

    .welcome-enter-btn {
      pointer-events: auto;
      min-width: 210px;
      box-shadow: 0 18px 48px rgba(15,23,42,0.24);
    }

    @media (max-width: 720px) {
      .welcome-image-link,
      .welcome-image-static {
        height: 78vh !important;
      }
    }


    .welcome-screen {
      padding: 0 !important;
      background: #f8fafc !important;
    }

    .welcome-card {
      width: 100vw !important;
      height: 100vh !important;
      max-height: 100vh !important;
      padding: clamp(10px, 1.8vw, 22px) !important;
      display: flex !important;
      flex-direction: column;
      justify-content: center;
      align-items: center;
      gap: clamp(10px, 1.8vh, 18px) !important;
      background: transparent !important;
    }

    .welcome-image-link,
    .welcome-image-static {
      position: relative;
      width: min(100%, 1280px) !important;
      flex: 1 1 auto;
      height: auto !important;
      min-height: 0 !important;
      max-height: calc(100vh - 96px) !important;
      display: flex !important;
      align-items: center;
      justify-content: center;
      overflow: hidden !important;
    }

    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      width: 100% !important;
      height: 100% !important;
      object-fit: contain !important;
      object-position: center center !important;
      filter: none !important;
    }

    .welcome-logo-on-image {
      position: absolute;
      left: clamp(14px, 2.6vw, 34px);
      top: clamp(14px, 2.6vw, 34px);
      z-index: 3;
      width: clamp(56px, 7vw, 96px) !important;
      height: clamp(56px, 7vw, 96px) !important;
      object-fit: contain !important;
      padding: 6px;
      background: rgba(255,255,255,0.88);
      box-shadow: 0 12px 32px rgba(15,23,42,0.16);
      filter: none !important;
    }

    .welcome-content {
      position: static !important;
      width: 100%;
      min-height: 0 !important;
      display: flex !important;
      justify-content: center;
      align-items: center;
      padding: 0 0 clamp(4px, 1.2vh, 10px) !important;
      background: transparent !important;
      pointer-events: auto;
    }

    .welcome-enter-btn {
      min-width: min(260px, 84vw);
      box-shadow: 0 14px 38px rgba(15,23,42,0.18);
    }

    


    .welcome-image-link,
    .welcome-image-static {
      box-shadow:
        0 0 0 1px rgba(15,23,42,0.20),
        0 0 0 6px rgba(255,255,255,0.92),
        0 0 0 8px rgba(124,58,237,0.18),
        0 18px 52px rgba(15,23,42,0.12) !important;
      background: rgba(255,255,255,0.82) !important;
    }

    .welcome-card {
      padding-bottom: clamp(10px, 1.8vh, 18px) !important;
    }

    .welcome-content {
      flex-direction: column;
      gap: 8px;
    }

    .welcome-footer {
      color: #475569;
      font-size: 13px;
      font-weight: 700;
      line-height: 1.5;
      text-align: center;
      text-shadow: 0 1px 0 rgba(255,255,255,0.8);
    }


    .welcome-image-link,
    .welcome-image-static {
      flex: 0 1 auto !important;
      width: auto !important;
      height: auto !important;
      min-height: 0 !important;
      max-width: calc(100vw - 44px) !important;
      max-height: calc(100vh - 132px) !important;
      display: inline-block !important;
      line-height: 0 !important;
      overflow: visible !important;
    }

    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      display: block !important;
      width: auto !important;
      height: auto !important;
      max-width: calc(100vw - 44px) !important;
      max-height: calc(100vh - 132px) !important;
      object-fit: contain !important;
      object-position: center center !important;
    }

    @media (max-width: 520px) {
      .welcome-image-link,
      .welcome-image-static,
      .welcome-image-link > img:first-child,
      .welcome-image-static > img:first-child {
        max-width: calc(100vw - 24px) !important;
        max-height: calc(100vh - 128px) !important;
      }
    }


    .welcome-card {
      justify-content: flex-start !important;
      padding-top: clamp(8px, 1.4vh, 18px) !important;
    }

    .welcome-screen {
      align-items: start !important;
    }

    .welcome-image-link,
    .welcome-image-static,
    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      max-height: calc(100vh - 118px) !important;
    }


    html.welcome-open,
    body.welcome-open {
      height: 100%;
      overflow: hidden !important;
      overscroll-behavior: none;
    }

    .welcome-screen {
      height: 100dvh !important;
      max-height: 100dvh !important;
      overflow: hidden !important;
      overscroll-behavior: none;
      touch-action: none;
    }

    .welcome-card {
      height: 100dvh !important;
      max-height: 100dvh !important;
      overflow: hidden !important;
    }

    .welcome-image-link,
    .welcome-image-static,
    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      max-height: calc(100dvh - 128px) !important;
    }

    @supports not (height: 100dvh) {
      .welcome-screen,
      .welcome-card {
        height: 100vh !important;
        max-height: 100vh !important;
      }

      .welcome-image-link,
      .welcome-image-static,
      .welcome-image-link > img:first-child,
      .welcome-image-static > img:first-child {
        max-height: calc(100vh - 128px) !important;
      }
    }


    .welcome-card {
      display: grid !important;
      grid-template-rows: minmax(0, 1fr) auto;
      align-items: stretch !important;
      justify-items: center;
      gap: clamp(8px, 1.2dvh, 14px) !important;
      padding: clamp(8px, 1.2dvh, 16px) clamp(10px, 1.8vw, 22px) calc(clamp(8px, 1.2dvh, 16px) + env(safe-area-inset-bottom, 0px)) !important;
    }

    .welcome-image-link,
    .welcome-image-static {
      align-self: stretch;
      justify-self: center;
      max-height: 100% !important;
    }

    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      max-height: 100% !important;
    }

    .welcome-content {
      position: relative !important;
      bottom: auto !important;
      flex: 0 0 auto !important;
      padding: 0 !important;
    }

    .welcome-enter-btn {
      min-height: 46px;
      padding-top: 10px;
      padding-bottom: 10px;
    }


    .welcome-logo-on-image {
      padding: 0 !important;
      background: transparent !important;
      box-shadow: none !important;
      border: 0 !important;
      filter: none !important;
    }


    .welcome-card {
      justify-items: center !important;
      align-items: start !important;
    }

    .welcome-image-link,
    .welcome-image-static {
      align-self: start !important;
      justify-self: center !important;
      margin-left: auto !important;
      margin-right: auto !important;
    }


    .welcome-card {
      display: flex !important;
      flex-direction: column !important;
      justify-content: flex-start !important;
      align-items: center !important;
      gap: clamp(10px, 1.6dvh, 16px) !important;
    }

    .welcome-image-link,
    .welcome-image-static {
      flex: 0 1 auto !important;
      align-self: center !important;
      justify-self: center !important;
      max-height: calc(100dvh - 120px) !important;
    }

    .welcome-image-link > img:first-child,
    .welcome-image-static > img:first-child {
      max-height: calc(100dvh - 120px) !important;
    }

    .welcome-content {
      flex: 0 0 auto !important;
    }

    @media (max-width: 520px) {
      .welcome-card {
        padding-top: 8px !important;
        gap: 10px !important;
      }

      .welcome-image-link,
      .welcome-image-static,
      .welcome-image-link > img:first-child,
      .welcome-image-static > img:first-child {
        max-height: calc(100dvh - 126px) !important;
      }
    }


    .welcome-logo-on-image {
      width: clamp(38px, 5vw, 64px) !important;
      height: clamp(38px, 5vw, 64px) !important;
      left: clamp(10px, 1.7vw, 22px) !important;
      top: clamp(10px, 1.7vw, 22px) !important;
    }

    @media (max-width: 520px) {
      .welcome-logo-on-image {
        width: 42px !important;
        height: 42px !important;
        left: 10px !important;
        top: 10px !important;
      }
    }


    .welcome-logo-on-image.logo-top-left {
      left: clamp(10px, 1.7vw, 22px) !important;
      right: auto !important;
      top: clamp(10px, 1.7vw, 22px) !important;
      bottom: auto !important;
    }

    .welcome-logo-on-image.logo-top-right {
      left: auto !important;
      right: clamp(10px, 1.7vw, 22px) !important;
      top: clamp(10px, 1.7vw, 22px) !important;
      bottom: auto !important;
    }

    .welcome-logo-on-image.logo-bottom-left {
      left: clamp(10px, 1.7vw, 22px) !important;
      right: auto !important;
      top: auto !important;
      bottom: clamp(10px, 1.7vw, 22px) !important;
    }

    .welcome-logo-on-image.logo-bottom-right {
      left: auto !important;
      right: clamp(10px, 1.7vw, 22px) !important;
      top: auto !important;
      bottom: clamp(10px, 1.7vw, 22px) !important;
    }


    html.public-boot-lock body .app-shell,
    html.public-boot-lock body .back-to-top,
    body.public-boot-lock .app-shell,
    body.public-boot-lock .back-to-top {
      visibility: hidden;
    }

    html.public-boot-lock body .welcome-screen:not([hidden]),
    body.public-boot-lock .welcome-screen:not([hidden]) {
      visibility: visible;
    }


    body.welcome-route .topbar,
    body.welcome-route .site-footer,
    body.welcome-route .back-to-top {
      display: none !important;
    }

    body.welcome-route .app-shell {
      min-height: 100dvh;
    }

    body.welcome-route #app {
      min-height: 100dvh;
      display: grid;
      place-items: stretch;
      padding: 0;
    }

    .welcome-route-page {
      min-height: 100dvh;
      height: 100dvh;
      overflow: hidden;
      display: grid;
      place-items: stretch;
      background: #f8fafc;
    }

    .welcome-route-page .welcome-card {
      width: 100vw !important;
      height: 100dvh !important;
      max-height: 100dvh !important;
      overflow: hidden !important;
    }

    .welcome-loading-blank {
      min-height: 100dvh;
      background: #f8fafc;
    }


    @keyframes welcomeSoftAppear {
      from {
        opacity: 0;
        transform: translateY(6px);
      }
      to {
        opacity: 1;
        transform: translateY(0);
      }
    }

    @keyframes welcomeImageSoftAppear {
      from {
        opacity: 0;
        transform: scale(.992);
      }
      to {
        opacity: 1;
        transform: scale(1);
      }
    }

    .welcome-route-page {
      animation: welcomeSoftAppear .28s ease-out both;
      background: radial-gradient(circle at top, rgba(255,255,255,.92), #f8fafc 54%, #f1f5f9 100%);
    }

    .welcome-route-page .welcome-image-link > img:first-child,
    .welcome-route-page .welcome-image-static > img:first-child {
      animation: welcomeImageSoftAppear .34s ease-out .04s both;
      transform-origin: center center;
    }

    .welcome-loading-blank {
      min-height: 100dvh;
      height: 100dvh;
      display: grid;
      place-items: center;
      overflow: hidden;
      background: radial-gradient(circle at top, rgba(255,255,255,.92), #f8fafc 54%, #f1f5f9 100%);
    }

    .welcome-loading-logo {
      width: 54px;
      height: 54px;
      object-fit: contain;
      opacity: .5;
      animation: welcomeSoftAppear .28s ease-out both;
    }


    @media (min-width: 1180px) {
      .staff-org-chart .staff-teachers-grid,
      .staff-org-chart .staff-support-grid {
        grid-template-columns: repeat(5, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        gap: 16px !important;
      }

      .staff-org-chart .staff-teachers .staff-card,
      .staff-org-chart .staff-support .staff-card {
        width: 100% !important;
        max-width: none !important;
      }
    }

    @media (min-width: 901px) and (max-width: 1179px) {
      .staff-org-chart .staff-teachers-grid,
      .staff-org-chart .staff-support-grid {
        grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
        justify-content: stretch !important;
        align-items: stretch !important;
        gap: 16px !important;
      }

      .staff-org-chart .staff-teachers .staff-card,
      .staff-org-chart .staff-support .staff-card {
        width: 100% !important;
        max-width: none !important;
      }
    }


    .staff-org-chart .staff-card > div:not(.avatar) {
      width: 100% !important;
    }

    .staff-org-chart .staff-card .staff-position {
      min-height: 18px !important;
    }

    .staff-org-chart .staff-card .staff-group {
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
      min-height: 37px !important;
      max-height: 37px !important;
      font-size: 12.8px !important;
      line-height: 1.45 !important;
    }

    @media (min-width: 901px) {
      .staff-org-chart .staff-teachers .staff-card,
      .staff-org-chart .staff-support .staff-card {
        min-height: 318px !important;
        height: 100% !important;
        align-self: stretch !important;
      }
    }


    body > .admin-quick-bubble {
      position: fixed !important;
      z-index: 1200 !important;
      transform: translateZ(0);
      will-change: left, top, right, bottom;
    }

    body > .admin-quick-menu {
      position: fixed !important;
      z-index: 1201 !important;
      transform: translateZ(0);
    }


    html.site-theme-mourning-boot body:not(.admin-mode),
    body.site-theme-mourning:not(.admin-mode) {
      filter: none !important;
    }

    html.site-theme-mourning-boot body:not(.admin-mode) .app-shell,
    body.site-theme-mourning:not(.admin-mode) .app-shell {
      filter: saturate(0.28) !important;
    }

    body > .admin-quick-bubble,
    body > .admin-quick-menu {
      filter: none !important;
      position: fixed !important;
    }


    .home-staff-side .teacher-spotlight-photo-link {
      border: 1px solid rgba(255,255,255,0.25) !important;
      padding: 0 !important;
      cursor: pointer !important;
      appearance: none !important;
      -webkit-appearance: none !important;
      display: grid !important;
      place-items: center !important;
      overflow: hidden !important;
    }

    .home-staff-side .teacher-spotlight-photo-link:hover {
      transform: scale(1.012) !important;
      box-shadow: 0 18px 42px rgba(0, 0, 0, 0.26) !important;
    }

    .home-staff-side .teacher-spotlight-photo-link:focus-visible {
      outline: 3px solid rgba(255,255,255,0.82) !important;
      outline-offset: 4px !important;
    }


    .home-staff-side .teacher-spotlight-photo-link::after {
      content: attr(data-tooltip);
      position: absolute;
      left: 50%;
      bottom: 12px;
      z-index: 4;
      transform: translate(-50%, 6px);
      opacity: 0;
      pointer-events: none;
      white-space: nowrap;
      padding: 7px 12px;
      border-radius: 999px;
      color: #312e81;
      background: rgba(255, 255, 255, 0.94);
      box-shadow: 0 10px 24px rgba(15, 23, 42, 0.20);
      font-size: 12.5px;
      font-weight: 900;
      line-height: 1;
      transition: opacity 0.12s ease, transform 0.12s ease;
    }

    .home-staff-side .teacher-spotlight-photo-link:hover::after,
    .home-staff-side .teacher-spotlight-photo-link:focus-visible::after {
      opacity: 1;
      transform: translate(-50%, 0);
    }


    .admin-busy-dialog {
      width: min(420px, calc(100vw - 32px));
      border-radius: 30px;
      padding: 24px;
      background: rgba(255, 255, 255, 0.96);
      color: #1f2937;
      box-shadow: 0 28px 80px rgba(15, 23, 42, 0.34);
      border: 1px solid rgba(124,58,237,0.16);
      text-align: center;
    }

    .admin-busy-spinner {
      width: 46px;
      height: 46px;
      margin: 0 auto 14px;
      border-radius: 999px;
      border: 5px solid rgba(124,58,237,0.16);
      border-top-color: #7c3aed;
      animation: adminBusySpin 0.82s linear infinite;
    }

    .admin-busy-title {
      margin: 0 0 8px;
      font-size: 20px;
      font-weight: 950;
      color: #312e81;
    }

    .admin-busy-message {
      margin: 0;
      color: #64748b;
      font-weight: 750;
      line-height: 1.7;
    }

    @keyframes adminBusySpin {
      to { transform: rotate(360deg); }
    }


    .home-main-grid .grid-5.news-grid-compact {
      align-items: stretch !important;
    }

    .home-main-grid .grid-5.news-grid-compact > .card {
      height: 100% !important;
      min-height: 0 !important;
      align-self: stretch !important;
      display: flex !important;
      flex-direction: column !important;
    }

    .home-main-grid .grid-5.news-grid-compact > .card h3 {
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
      min-height: 45px !important;
    }

    .home-main-grid .grid-5.news-grid-compact > .card .card-desc {
      display: -webkit-box !important;
      -webkit-line-clamp: 4 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
      min-height: 84px !important;
      max-height: 84px !important;
    }

    .home-main-grid .grid-5.news-grid-compact > .card .read-more-btn {
      width: fit-content !important;
      margin-top: 8px !important;
    }

    .home-main-grid .grid-5.news-grid-compact > .card .card-footer {
      margin-top: auto !important;
      padding-top: 12px !important;
    }


    .image-lightbox-backdrop {
      position: fixed;
      inset: 0;
      z-index: 10020;
      display: grid;
      place-items: center;
      padding: 22px;
      background: rgba(15, 23, 42, 0.82);
      backdrop-filter: blur(12px);
    }

    .image-lightbox-dialog {
      position: relative;
      width: min(1120px, 96vw);
      height: min(86vh, 920px);
      display: grid;
      grid-template-rows: minmax(0, 1fr) auto;
      gap: 12px;
    }

    .image-lightbox-dialog img {
      width: 100%;
      height: 100%;
      max-height: 100%;
      object-fit: contain;
      border-radius: 22px;
      background: rgba(255,255,255,0.96);
      box-shadow: 0 28px 92px rgba(0,0,0,0.42);
    }

    .image-lightbox-caption {
      color: #fff;
      text-align: center;
      font-weight: 850;
      text-shadow: 0 2px 10px rgba(0,0,0,0.35);
    }

    .image-lightbox-close {
      position: absolute;
      right: -10px;
      top: -14px;
      width: 44px;
      height: 44px;
      border: 0;
      border-radius: 999px;
      color: #111827;
      background: rgba(255,255,255,0.94);
      box-shadow: 0 16px 40px rgba(0,0,0,0.28);
      font-size: 26px;
      font-weight: 900;
      cursor: pointer;
    }

    .news-detail-cover[data-open-image-lightbox],
    .activity-album-photo[data-open-image-lightbox],
    .news-detail-album-photo[data-open-image-lightbox] {
      cursor: zoom-in;
    }

    .news-detail-album-photo {
      display: block;
      border: 0;
      padding: 0;
      background: transparent;
      border-radius: 18px;
      overflow: hidden;
    }

    .news-detail-album-photo img {
      width: 100%;
      height: 100%;
      display: block;
      object-fit: cover;
    }


    .activity-album-photo:not([data-open-image-lightbox])::after {
      content: "";
    }


    .image-lightbox-close {
      right: 12px !important;
      top: 12px !important;
      width: 54px !important;
      height: 54px !important;
      display: grid !important;
      place-items: center !important;
      border: 2px solid rgba(255, 255, 255, 0.92) !important;
      color: #ffffff !important;
      background: rgba(15, 23, 42, 0.94) !important;
      box-shadow: 0 18px 46px rgba(0, 0, 0, 0.46) !important;
      font-size: 34px !important;
      line-height: 1 !important;
      z-index: 8 !important;
      transition: transform 0.16s ease, background 0.16s ease, box-shadow 0.16s ease !important;
    }

    .image-lightbox-close:hover,
    .image-lightbox-close:focus-visible {
      background: linear-gradient(135deg, #7c3aed, #db2777) !important;
      transform: scale(1.05) !important;
      outline: none !important;
      box-shadow: 0 22px 54px rgba(124, 58, 237, 0.38), 0 18px 46px rgba(0, 0, 0, 0.42) !important;
    }

    .news-list-section .grid.grid-3 {
      align-items: stretch !important;
    }

    .news-list-section .grid.grid-3 > .card {
      display: flex !important;
      flex-direction: column !important;
      height: 100% !important;
      min-height: 0 !important;
      align-self: stretch !important;
    }

    .news-list-section .grid.grid-3 > .card h3 {
      min-height: 3.1em !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 2 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
    }

    .news-list-section .grid.grid-3 > .card .card-desc {
      min-height: 7.6em !important;
      max-height: 7.6em !important;
      display: -webkit-box !important;
      -webkit-line-clamp: 5 !important;
      -webkit-box-orient: vertical !important;
      overflow: hidden !important;
    }

    .news-list-section .grid.grid-3 > .card .read-more-btn {
      width: fit-content !important;
      margin-top: 10px !important;
    }

    .news-list-section .grid.grid-3 > .card .card-footer {
      margin-top: auto !important;
      padding-top: 12px !important;
    }

    .home-featured-news-body {
      justify-content: center !important;
    }

    .home-featured-news p {
      display: block !important;
      max-height: none !important;
      overflow: visible !important;
    }

    @media (min-width: 901px) {
      .home-featured-news-cover,
      .home-featured-news-cover img {
        min-height: 310px !important;
      }
    }

    @media (max-width: 720px) {
      .image-lightbox-close {
        width: 48px !important;
        height: 48px !important;
        font-size: 30px !important;
        right: 10px !important;
        top: 10px !important;
      }

      .news-list-section .grid.grid-3 > .card h3 {
        min-height: auto !important;
      }

      .news-list-section .grid.grid-3 > .card .card-desc {
        min-height: auto !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
      }
    }


    .home-featured-news p.thai-justify {
      white-space: normal !important;
    }

    .home-featured-news p.thai-justify br {
      display: block;
      content: "";
      margin-top: 6px;
    }


    @media (min-width: 981px) {
      .home-flow > .section:first-child .home-featured-news {
        width: calc(100% + 40px) !important;
        margin-left: -20px !important;
        margin-right: -20px !important;
      }
    }

    @media (max-width: 980px) {
      .home-flow > .section:first-child .home-featured-news {
        width: 100% !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }
    }

    .home-featured-news p,
    .home-featured-news p.thai-justify {
      display: block !important;
      max-height: none !important;
      overflow: visible !important;
      font-weight: 500 !important;
      color: #475569 !important;
      line-height: 1.78 !important;
      letter-spacing: -0.006em !important;
      white-space: normal !important;
    }

    .home-featured-news p.thai-justify br {
      display: block;
      content: "";
      margin-top: 6px;
    }

    @media (min-width: 901px) {
      .home-featured-news-cover,
      .home-featured-news-cover img {
        min-height: 310px !important;
      }
    }

    .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more {
      grid-template-columns: repeat(4, 210px) minmax(148px, max-content) !important;
      justify-content: start !important;
      align-items: stretch !important;
      gap: 14px !important;
    }

    .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more > .card {
      width: 100% !important;
      max-width: 210px !important;
      justify-self: start !important;
    }

    .home-news-more-attached {
      align-self: end !important;
      justify-self: start !important;
      min-height: 42px !important;
      padding: 9px 15px !important;
      font-size: 13.5px !important;
      white-space: normal !important;
      line-height: 1.35 !important;
      max-width: 168px !important;
      text-align: center !important;
      box-shadow: 0 14px 30px rgba(15, 23, 42, 0.08) !important;
    }

    .home-news-more {
      display: none !important;
    }

    @media (max-width: 1240px) and (min-width: 981px) {
      .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more {
        grid-template-columns: repeat(3, 210px) minmax(148px, max-content) !important;
      }
    }

    @media (max-width: 760px) {
      .home-main-grid {
        width: min(100% - 28px, 1320px) !important;
        grid-template-columns: 1fr !important;
      }

      .home-main-grid .home-flow,
      .home-main-grid .home-flow > .section {
        width: 100% !important;
        max-width: none !important;
      }

      .home-main-grid .grid-5.news-grid-compact,
      .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more {
        grid-template-columns: minmax(0, 1fr) !important;
        width: 100% !important;
        max-width: none !important;
        justify-content: stretch !important;
        justify-items: stretch !important;
        gap: 20px !important;
      }

      .home-main-grid .grid-5.news-grid-compact > .card,
      .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more > .card {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        padding: 20px 18px !important;
        border-radius: 24px !important;
      }

      .home-main-grid .grid-5.news-grid-compact .news-cover,
      .home-main-grid .grid-5.news-grid-compact .news-cover-link {
        width: calc(100% + 36px) !important;
        height: 212px !important;
        margin: -20px -18px 18px !important;
        border-radius: 22px 22px 16px 16px !important;
      }

      .home-main-grid .grid-5.news-grid-compact .card h3 {
        font-size: 20px !important;
        line-height: 1.38 !important;
      }

      .home-main-grid .grid-5.news-grid-compact .card p,
      .home-main-grid .grid-5.news-grid-compact .card-desc {
        font-size: 15.5px !important;
        line-height: 1.72 !important;
      }

      .home-news-more-attached {
        width: 100% !important;
        max-width: none !important;
        justify-self: stretch !important;
      }
    }

    @media (max-width: 760px) {
      .news-list-section {
        width: 100% !important;
        max-width: none !important;
        padding-left: 16px !important;
        padding-right: 16px !important;
        margin-left: 0 !important;
        margin-right: 0 !important;
      }

      .news-list-section .grid.grid-3 {
        display: grid !important;
        grid-template-columns: minmax(0, 1fr) !important;
        justify-content: stretch !important;
        justify-items: stretch !important;
        align-items: stretch !important;
        width: 100% !important;
        max-width: none !important;
        gap: 22px !important;
      }

      .news-list-section .grid.grid-3 > .card {
        width: 100% !important;
        max-width: none !important;
        min-width: 0 !important;
        justify-self: stretch !important;
        align-self: stretch !important;
        box-sizing: border-box !important;
        padding: 20px 18px !important;
        border-radius: 24px !important;
      }

      .news-list-section .grid.grid-3 > .card .news-cover,
      .news-list-section .grid.grid-3 > .card .news-cover-link {
        width: calc(100% + 36px) !important;
        max-width: none !important;
        height: 212px !important;
        margin: -20px -18px 18px !important;
        border-radius: 22px 22px 16px 16px !important;
      }

      .news-list-section .grid.grid-3 > .card h3 {
        min-height: auto !important;
        font-size: 20px !important;
        line-height: 1.38 !important;
      }

      .news-list-section .grid.grid-3 > .card .card-desc {
        min-height: auto !important;
        max-height: none !important;
        -webkit-line-clamp: unset !important;
        font-size: 15.5px !important;
        line-height: 1.72 !important;
      }

      .news-list-section .grid.grid-3 > .card .read-more-btn,
      .news-list-section .grid.grid-3 > .card .card-footer {
        font-size: 14px !important;
      }
    }

    .staff-org-chart .staff-card .avatar {
      position: relative !important;
      display: block !important;
      overflow: hidden !important;
    }

    .staff-org-chart .staff-card .avatar img {
      position: absolute !important;
      inset: 0 !important;
      display: block !important;
      width: 100% !important;
      height: 100% !important;
      min-width: 100% !important;
      min-height: 100% !important;
      object-fit: cover !important;
      object-position: center top !important;
      transform: none !important;
    }

    @media (max-width: 640px) {
      .staff-org-chart .staff-card .avatar,
      .staff-org-chart .staff-principal .staff-card .avatar {
        height: 188px !important;
      }
    }

    .site-footer {
      margin-top: 26px !important;
      background:
        radial-gradient(circle at 10% 0%, rgba(255,255,255,0.16), transparent 34%),
        linear-gradient(135deg, rgba(15, 23, 42, 0.90), rgba(49, 46, 129, 0.84) 55%, rgba(7, 89, 133, 0.82)) !important;
      border: 1px solid rgba(255, 255, 255, 0.12) !important;
      border-bottom: 0 !important;
      box-shadow: 0 -18px 54px rgba(15, 23, 42, 0.16) !important;
      backdrop-filter: blur(12px) saturate(1.12) !important;
      -webkit-backdrop-filter: blur(12px) saturate(1.12) !important;
    }

    .footer-bottom {
      background: rgba(15, 23, 42, 0.12) !important;
      border-top-color: rgba(255, 255, 255, 0.16) !important;
    }

    .home-main-grid {
      margin-top: 12px !important;
    }

    .home-flow > .section:first-child {
      padding-top: 0 !important;
    }

    @media (min-width: 981px) {
      .home-staff-side {
        margin-top: -28px !important;
      }
    }

    @media (max-width: 980px) {
      .home-main-grid {
        margin-top: 10px !important;
      }

      .home-flow > .section:first-child,
      .home-staff-side {
        padding-top: 0 !important;
        margin-top: 0 !important;
      }
    }

    @media (max-width: 760px) {
      .site-footer {
        margin-top: 22px !important;
      }
    }

    html.site-theme-mourning-boot body:not(.admin-mode),
    body.site-theme-mourning:not(.admin-mode) {
      --primary: #6d28d9 !important;
      --primary-dark: #3b0764 !important;
      --primary-soft: #ede9fe !important;
      --pink: #ec4899 !important;
      --orange: #f97316 !important;
      --cyan: #06b6d4 !important;
      --yellow: #facc15 !important;
      filter: none !important;
    }

    html.site-theme-mourning-boot body:not(.admin-mode)::after,
    body.site-theme-mourning:not(.admin-mode)::after {
      display: none !important;
      content: none !important;
    }

    html.site-theme-mourning-boot body:not(.admin-mode) .app-shell,
    body.site-theme-mourning:not(.admin-mode) .app-shell,
    html.site-theme-mourning-boot body:not(.admin-mode) img,
    body.site-theme-mourning:not(.admin-mode) img,
    body.site-theme-mourning:not(.admin-mode) .brand-logo img,
    body.site-theme-mourning:not(.admin-mode) img#brandLogo,
    body.site-theme-mourning:not(.admin-mode) .footer-brand img,
    body.site-theme-mourning:not(.admin-mode) .hero-activity-fallback img,
    html.site-theme-mourning-boot body:not(.admin-mode) .brand-logo img,
    html.site-theme-mourning-boot body:not(.admin-mode) img#brandLogo,
    html.site-theme-mourning-boot body:not(.admin-mode) .footer-brand img,
    html.site-theme-mourning-boot body:not(.admin-mode) .hero-activity-fallback img {
      filter: none !important;
      mix-blend-mode: normal !important;
    }

    body.site-theme-mourning:not(.admin-mode) .welcome-route-page,
    body.site-theme-mourning:not(.admin-mode) .welcome-route-page img,
    html.site-theme-mourning-boot body:not(.admin-mode) .welcome-route-page,
    html.site-theme-mourning-boot body:not(.admin-mode) .welcome-route-page img {
      filter: grayscale(1) saturate(0.22) contrast(0.96) !important;
    }

    body.site-theme-mourning:not(.admin-mode) .welcome-route-page .welcome-enter-btn,
    html.site-theme-mourning-boot body:not(.admin-mode) .welcome-route-page .welcome-enter-btn {
      filter: none !important;
    }

    .hero-activity-media {
      background:
        radial-gradient(circle at 18% 20%, rgba(255,255,255,0.38), transparent 26%),
        radial-gradient(circle at 84% 12%, rgba(236, 72, 153, 0.22), transparent 28%),
        linear-gradient(135deg, rgba(124, 58, 237, 0.20), rgba(6, 182, 212, 0.13)) !important;
    }

    .hero-activity-media::before {
      content: "ภาพกิจกรรมโรงเรียน";
      position: absolute;
      left: 18px;
      bottom: 18px;
      z-index: 0;
      color: rgba(255,255,255,0.76);
      font-weight: 900;
      font-size: 18px;
      letter-spacing: -0.02em;
      text-shadow: 0 10px 24px rgba(15,23,42,0.22);
      transition: opacity 0.28s ease;
      pointer-events: none;
    }

    .hero-activity-media.image-ready::before,
    .hero-activity-media.image-error::before {
      opacity: 0;
    }

    .hero-activity-media img#heroSlideImage {
      opacity: 0;
      transition: opacity 0.42s ease, transform 0.42s ease;
      transform: scale(1.006);
      position: relative;
      z-index: 1;
    }

    .hero-activity-media img#heroSlideImage.is-loaded {
      opacity: 1;
      transform: scale(1);
    }

    .hero-activity-media.image-error img#heroSlideImage {
      display: none !important;
    }

    .hero-activity-overlay {
      z-index: 2;
    }


    .welcome-card.has-featured-news {
      display: grid !important;
      grid-template-rows: minmax(0, 1fr) auto auto !important;
      background: #f8fafc !important;
    }

    .welcome-card.has-featured-news .welcome-image-static,
    .welcome-card.has-featured-news .welcome-image-link {
      min-height: 0 !important;
    }

    .welcome-card.has-featured-news .welcome-image-static > img:first-child,
    .welcome-card.has-featured-news .welcome-image-link > img:first-child {
      max-height: calc(100dvh - 250px) !important;
    }

    .welcome-featured-news {
      width: min(980px, calc(100% - 32px));
      margin: 0 auto 10px;
      padding: 16px 18px;
      border-radius: 24px;
      background: rgba(255, 255, 255, 0.94);
      border: 1px solid rgba(226, 232, 240, 0.88);
      box-shadow: 0 18px 52px rgba(15, 23, 42, 0.12);
      text-align: left;
    }

    .welcome-featured-meta {
      display: flex;
      flex-wrap: wrap;
      gap: 7px;
      margin-bottom: 8px;
    }

    .welcome-featured-meta span {
      display: inline-flex;
      align-items: center;
      border-radius: 999px;
      padding: 5px 9px;
      background: rgba(79, 70, 229, 0.10);
      color: #4338ca;
      font-size: 12px;
      font-weight: 900;
    }

    .welcome-featured-news h2 {
      margin: 0 0 6px;
      color: #0f172a;
      font-size: clamp(1.18rem, 2.4vw, 1.7rem);
      line-height: 1.28;
      font-weight: 950;
    }

    .welcome-featured-news p {
      margin: 0;
      color: #475569;
      line-height: 1.72;
      font-weight: 650;
      max-height: 5.2em;
      overflow: hidden;
    }

    .welcome-featured-actions {
      display: flex;
      flex-wrap: wrap;
      gap: 10px;
      margin-top: 12px;
    }

    .welcome-card.has-featured-news .welcome-content {
      padding-top: 0 !important;
    }

    @media (max-width: 720px) {
      .welcome-card.has-featured-news .welcome-image-static > img:first-child,
      .welcome-card.has-featured-news .welcome-image-link > img:first-child {
        max-height: calc(100dvh - 310px) !important;
      }

      .welcome-featured-news {
        width: calc(100% - 22px);
        padding: 14px;
        border-radius: 20px;
      }

      .welcome-featured-news p {
        max-height: 4.9em;
      }

      .welcome-featured-actions {
        display: grid;
        grid-template-columns: 1fr;
      }
    }


/* v2.7.231 Frameless Welcome loading and refined loading bar */
.welcome-loading-blank {
  min-height: 100dvh !important;
  height: 100dvh !important;
  display: grid !important;
  place-items: center !important;
  align-content: center !important;
  justify-items: center !important;
  gap: 13px !important;
  padding: 24px !important;
  overflow: hidden !important;
  background:
    radial-gradient(circle at 50% 28%, rgba(99, 102, 241, .13), transparent 34%),
    radial-gradient(circle at 42% 66%, rgba(14, 165, 233, .10), transparent 36%),
    linear-gradient(180deg, #ffffff 0%, #f8fafc 58%, #eef2ff 100%) !important;
}

.welcome-loading-blank::before {
  content: "";
  position: fixed;
  width: min(72vw, 440px);
  aspect-ratio: 1;
  border-radius: 999px;
  background: radial-gradient(circle, rgba(79, 70, 229, .10), transparent 66%);
  filter: blur(2px);
  animation: welcomeLoaderAura 2.4s ease-in-out infinite alternate;
  pointer-events: none;
}

.welcome-loading-logo {
  position: relative !important;
  width: 94px !important;
  height: 94px !important;
  object-fit: contain !important;
  padding: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  opacity: 1 !important;
  animation: welcomeLoaderLogoPulse 1.9s ease-in-out infinite !important;
  filter: drop-shadow(0 12px 24px rgba(30, 41, 59, .14)) !important;
}

.welcome-loading-text {
  position: relative;
  color: #172554;
  font-size: 15px;
  font-weight: 800;
  letter-spacing: .01em;
  line-height: 1.45;
}

.welcome-loading-text::after {
  content: "กรุณารอสักครู่";
  display: block;
  margin-top: 2px;
  font-size: 12px;
  font-weight: 600;
  color: rgba(71, 85, 105, .76);
  text-align: center;
}

.welcome-loading-bar {
  position: relative;
  width: min(248px, 68vw);
  height: 5px;
  margin-top: 6px;
  border-radius: 999px;
  overflow: hidden;
  background: rgba(203, 213, 225, .42);
  box-shadow: inset 0 1px 2px rgba(15,23,42,.08);
}

.welcome-loading-bar::before {
  content: "";
  position: absolute;
  inset: 0;
  background: linear-gradient(90deg, transparent, rgba(255,255,255,.78), transparent);
  animation: welcomeLoadingBarShine 1.55s ease-in-out infinite;
}

.welcome-loading-bar span {
  position: absolute;
  inset-block: 0;
  left: 0;
  width: 52%;
  border-radius: inherit;
  background: linear-gradient(90deg, #1d4ed8 0%, #4f46e5 45%, #0ea5e9 100%);
  box-shadow: 0 0 16px rgba(59,130,246,.34);
  animation: welcomeLoadingBar 1.45s cubic-bezier(.65,0,.35,1) infinite;
}

@keyframes welcomeLoadingBar {
  0% { transform: translateX(-115%) scaleX(.72); opacity: .58; }
  45% { transform: translateX(62%) scaleX(1); opacity: 1; }
  100% { transform: translateX(205%) scaleX(.78); opacity: .58; }
}

@keyframes welcomeLoadingBarShine {
  0% { transform: translateX(-120%); opacity: 0; }
  35%, 65% { opacity: .75; }
  100% { transform: translateX(120%); opacity: 0; }
}

@keyframes welcomeLoaderLogoPulse {
  0%, 100% { transform: translateY(0) scale(1); }
  50% { transform: translateY(-2px) scale(1.018); }
}

@keyframes welcomeLoaderAura {
  from { transform: scale(.96); opacity: .72; }
  to { transform: scale(1.04); opacity: 1; }
}

@media (max-width: 760px) {
  .home-main-grid .home-flow,
  .home-main-grid .home-flow > .section,
  .home-main-grid .home-flow .news-list-section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
  }

  .home-main-grid .home-flow .home-featured-news,
  .home-main-grid .home-flow .grid-5.news-grid-compact,
  .home-main-grid .home-flow .grid-5.news-grid-compact > .card,
  .home-main-grid .home-flow .news-cover,
  .home-main-grid .home-flow .news-cover-link {
    width: 100% !important;
    max-width: 100% !important;
  }
}

/* v2.7.233 Mobile Home News Width Alignment
   แก้เฉพาะหน้าแรกบนมือถือ: section ข่าวอยู่ซ้อนใน .home-main-grid จึงเคยถูก width ของ .section บีบซ้ำ
   ให้โซนข่าวใช้ความกว้างเต็มเท่ากับกล่องบุคลากรในคอลัมน์เดียวกัน */
@media (max-width: 980px) {
  .home-main-grid .home-flow,
  .home-main-grid .home-flow > .section {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }

  .home-main-grid .home-flow > .section {
    padding-left: 0 !important;
    padding-right: 0 !important;
  }

  .home-main-grid .home-featured-news,
  .home-main-grid .grid-5.news-grid-compact,
  .home-main-grid .home-news-more,
  .home-main-grid .home-news-more-attached {
    width: 100% !important;
    max-width: 100% !important;
    margin-left: 0 !important;
    margin-right: 0 !important;
    box-sizing: border-box !important;
  }
}

@media (max-width: 560px) {
  .home-main-grid .home-featured-news {
    padding: 14px !important;
    border-radius: 22px !important;
  }
}

/* v2.7.234 Responsive Staff Spotlight Tablet Fix
   แก้ช่วงจอกึ่งมือถือ/แท็บเล็ต: กล่องผู้บริหารและครูหน้าแรกต้องเปลี่ยนเป็นแนวตั้ง
   เพื่อไม่ให้รูปเล็กชิดซ้ายหรือรูปครูขยายผิดสัดส่วนเมื่อ viewport แคบ เช่น iPad/หน้าต่างครึ่งจอ */
@media (max-width: 980px) {
  .home-staff-side {
    width: 100% !important;
  }

  .home-staff-side .home-person-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 12px !important;
    padding: 18px !important;
  }

  .home-staff-side .principal-kicker {
    grid-column: auto !important;
    width: 100% !important;
    margin-bottom: 0 !important;
    text-align: center !important;
  }

  .home-staff-side .principal-photo,
  .home-staff-side .teacher-spotlight-photo {
    width: min(260px, 62vw) !important;
    max-width: 260px !important;
    margin: 0 auto !important;
    justify-self: center !important;
  }

  .home-staff-side .teacher-spotlight-frame {
    width: 100% !important;
    display: grid !important;
    justify-items: center !important;
    text-align: center !important;
    gap: 10px !important;
  }

  .home-staff-side .teacher-spotlight-info,
  .home-staff-side .principal-card > div:last-child {
    width: 100% !important;
    text-align: center !important;
  }

  .home-staff-side .principal-name,
  .home-staff-side .principal-role,
  .home-staff-side .principal-director-label {
    text-align: center !important;
  }
}

@media (min-width: 981px) {
  .home-staff-side .home-person-card {
    text-align: center;
  }
}


/* v2.7.236 Home Staff Responsive Stability Fix
   แก้จุดจริงของอาการจอกึ่งมือถือ/แท็บเล็ต: กล่อง ผอ./ครู ต้องไม่ยืดสูงผิดสัดส่วนระหว่างรอรูปโหลด
   และต้องไม่ใช้กฎ .principal-card แบบ global มาชนกับการ์ดอื่นในช่วง viewport แคบ */
.home-staff-side .home-person-card {
  box-sizing: border-box !important;
  contain: layout paint !important;
}

.home-staff-side .principal-photo,
.home-staff-side .teacher-spotlight-photo {
  box-sizing: border-box !important;
  flex: none !important;
  display: grid !important;
  place-items: center !important;
  overflow: hidden !important;
  background:
    linear-gradient(135deg, rgba(255,255,255,.14), rgba(255,255,255,.05)),
    radial-gradient(circle at 35% 25%, rgba(255,255,255,.22), transparent 42%),
    rgba(255,255,255,.10) !important;
}

.home-staff-side .principal-photo img,
.home-staff-side .teacher-spotlight-photo img {
  width: 100% !important;
  height: 100% !important;
  object-fit: cover !important;
  display: block !important;
  opacity: 0;
  transition: opacity .16s ease-out;
}

.home-staff-side .principal-photo img.is-loaded,
.home-staff-side .teacher-spotlight-photo img.is-loaded {
  opacity: 1;
}

@media (min-width: 641px) and (max-width: 980px) {
  .home-main-grid {
    grid-template-columns: 1fr !important;
    width: min(100% - 28px, 1320px) !important;
    gap: 16px !important;
  }

  .home-staff-side {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    align-items: stretch !important;
    gap: 14px !important;
    width: 100% !important;
  }

  .home-staff-side .home-person-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    align-content: start !important;
    text-align: center !important;
    gap: 10px !important;
    min-height: 0 !important;
    height: auto !important;
    padding: 16px !important;
    margin: 0 !important;
  }

  .home-staff-side .principal-kicker {
    grid-column: auto !important;
    width: 100% !important;
    margin: 0 0 4px !important;
    text-align: center !important;
  }

  .home-staff-side .principal-photo,
  .home-staff-side .teacher-spotlight-photo {
    width: min(178px, 38vw) !important;
    max-width: 178px !important;
    min-width: 0 !important;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    max-height: none !important;
    margin: 0 auto 8px !important;
    justify-self: center !important;
    border-radius: 20px !important;
  }

  .home-staff-side .teacher-spotlight-frame {
    width: 100% !important;
    min-height: 0 !important;
    display: grid !important;
    justify-items: center !important;
    align-content: start !important;
    gap: 8px !important;
    text-align: center !important;
  }

  .home-staff-side .teacher-spotlight-info,
  .home-staff-side .principal-card > div:last-child {
    width: 100% !important;
    min-width: 0 !important;
    text-align: center !important;
  }

  .home-staff-side .principal-name {
    font-size: 17px !important;
    line-height: 1.28 !important;
    margin: 0 0 4px !important;
  }

  .home-staff-side .principal-role,
  .home-staff-side .principal-director-label {
    font-size: 12.8px !important;
    line-height: 1.34 !important;
    margin-left: auto !important;
    margin-right: auto !important;
    max-width: 100% !important;
  }
}

@media (max-width: 640px) {
  .home-staff-side {
    grid-template-columns: 1fr !important;
  }

  .home-staff-side .home-person-card {
    display: grid !important;
    grid-template-columns: 1fr !important;
    justify-items: center !important;
    text-align: center !important;
    min-height: 0 !important;
    height: auto !important;
  }

  .home-staff-side .principal-photo,
  .home-staff-side .teacher-spotlight-photo {
    width: min(230px, 68vw) !important;
    max-width: 230px !important;
    aspect-ratio: 4 / 5 !important;
    height: auto !important;
    margin: 0 auto 10px !important;
  }
}

/* v2.7.237 Home Main Grid Containment Fix
   ทำให้โซนหลัง Hero ใช้หลักเดียวกับ Hero: กรอบหลักต้องไม่กว้างเกิน viewport
   จุดเดิมที่ล้นคือช่วงจอกึ่งเดสก์ท็อป (เปิด DevTools / iPad landscape / หน้าต่างครึ่งจอ)
   เพราะ .home-main-grid ยังเป็น 2 คอลัมน์ทั้งที่พื้นที่ไม่พอสำหรับคอลัมน์บุคลากร + ข่าวหลายใบ */
.home-main-grid,
.home-main-grid * {
  box-sizing: border-box !important;
}

.home-main-grid {
  max-width: var(--max-width) !important;
  min-width: 0 !important;
}

.home-main-grid .home-staff-side,
.home-main-grid .home-flow,
.home-main-grid .home-flow > .section,
.home-main-grid .grid,
.home-main-grid .card,
.home-main-grid .home-featured-news {
  min-width: 0 !important;
}

@media (max-width: 1279px) {
  .home-main-grid {
    width: min(calc(100% - 32px), var(--max-width)) !important;
    grid-template-columns: minmax(0, 1fr) !important;
    gap: 18px !important;
    overflow: hidden !important;
  }

  .home-staff-side {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 14px !important;
  }

  .home-staff-side .home-person-card {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
  }
}

@media (max-width: 640px) {
  .home-main-grid {
    width: min(calc(100% - 28px), var(--max-width)) !important;
    overflow: visible !important;
  }

  .home-staff-side {
    grid-template-columns: minmax(0, 1fr) !important;
  }
}

/* v2.7.238 Home News More Button Containment Fix
   จุดที่ v2.7.237 แก้กรอบหลักแล้วทำให้ปุ่ม "ดูข่าวประชาสัมพันธ์ทั้งหมด" ถูกซ่อนไปบางช่วงจอ
   รอบนี้บังคับให้ปุ่มเป็นแถวของตัวเองใน viewport กึ่งเดสก์ท็อป/แท็บเล็ต แทนการเป็นคอลัมน์ที่ 5 ซึ่งเสี่ยงล้นขวา */
@media (max-width: 1279px) and (min-width: 761px) {
  .home-main-grid {
    overflow: visible !important;
  }

  .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more {
    width: 100% !important;
    max-width: 100% !important;
    min-width: 0 !important;
    grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
    justify-content: stretch !important;
    justify-items: stretch !important;
    align-items: stretch !important;
    overflow: visible !important;
  }

  .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more > .card {
    width: 100% !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: stretch !important;
  }

  .home-news-more-attached {
    grid-column: 1 / -1 !important;
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    justify-self: end !important;
    align-self: start !important;
    margin-top: 2px !important;
    white-space: nowrap !important;
  }
}

@media (max-width: 980px) and (min-width: 761px) {
  .home-main-grid .grid-5.news-grid-compact.news-grid-with-attached-more {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
}

/* v2.7.242 Drive trash multi-select cleanup */
.drive-trash-toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 10px;
  align-items: center;
}
.drive-trash-select-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 10px 12px;
  margin-bottom: 10px;
  border: 1px solid rgba(148, 163, 184, .28);
  border-radius: 14px;
  background: rgba(248, 250, 252, .86);
}
.drive-trash-select-all,
.drive-trash-check {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  cursor: pointer;
  user-select: none;
}
.drive-trash-check {
  align-self: flex-start;
  padding-top: 4px;
}
.drive-trash-count {
  font-size: .86rem;
  color: #64748b;
}
.drive-trash-item {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  gap: 12px;
  align-items: start;
}
.drive-trash-info {
  min-width: 0;
}
.drive-trash-info .admin-item-title,
.drive-trash-info .admin-item-desc {
  overflow-wrap: anywhere;
}
@media (max-width: 720px) {
  .drive-trash-item {
    grid-template-columns: auto minmax(0, 1fr);
  }
  .drive-trash-item .admin-item-actions {
    grid-column: 2;
    justify-content: flex-start;
  }
}
