
    * {
      box-sizing: border-box;
    }

    :root {
      --navy: #06336f;
      --page: #ffffff;
      --line: #dce8f0;
    }

    html,
    body {
      width: 100%;
      min-height: 100%;
      margin: 0;
      background: var(--page);
      font-family: Arial, Helvetica, sans-serif;
      -webkit-text-size-adjust: 100%;
    }

    body {
      padding:
        max(10px, env(safe-area-inset-top))
        max(10px, env(safe-area-inset-right))
        max(22px, env(safe-area-inset-bottom))
        max(10px, env(safe-area-inset-left));
    }

    .page {
      width: min(1240px, 100%);
      margin: 0 auto;
    }

    .hero {
      position: relative;
      overflow: hidden;
      border-radius: 22px;
      background: #eef5fa;
      box-shadow: 0 18px 52px rgba(14, 55, 91, 0.13);
      animation: heroEnter 0.75s ease both;
    }

    .hero img {
      display: block;
      width: 100%;
      height: auto;
    }

    .hero::after {
      content: "";
      position: absolute;
      inset: -35%;
      pointer-events: none;
      background:
        linear-gradient(
          110deg,
          transparent 38%,
          rgba(255,255,255,0.18) 49%,
          transparent 60%
        );
      transform: translateX(-90%);
      animation: heroShine 6.5s ease-in-out infinite;
    }

    .link-grid {
      display: grid;
      grid-template-columns: repeat(4, minmax(0, 1fr));
      gap: 20px;
      margin-top: 34px;
      padding: 0 12px;
    }

    .link-card {
      --accent: #1689e5;

      display: flex;
      align-items: center;
      min-width: 0;
      min-height: 68px;
      padding: 9px 16px 9px 10px;

      color: var(--navy);
      background:
        linear-gradient(145deg, #ffffff 0%, #ffffff 68%, #eef7fb 100%);

      border: 1px solid var(--line);
      border-radius: 14px;

      box-shadow:
        0 5px 12px rgba(20, 53, 85, 0.10),
        0 13px 27px rgba(20, 53, 85, 0.06);

      text-decoration: none;
      cursor: pointer;

      opacity: 0;
      transform: translateY(14px);

      animation: cardEnter 0.55s ease forwards;
      animation-delay: calc(var(--order) * 90ms + 180ms);

      transition:
        transform 0.18s ease,
        border-color 0.18s ease,
        box-shadow 0.18s ease,
        background 0.18s ease;
    }

    .link-card:hover {
      transform: translateY(-4px);
      border-color: color-mix(in srgb, var(--accent) 48%, white);
      background:
        linear-gradient(145deg, #ffffff 0%, #ffffff 58%, #e7f5fb 100%);
      box-shadow:
        0 10px 20px rgba(20, 53, 85, 0.13),
        0 20px 34px rgba(20, 53, 85, 0.09);
    }

    .link-card:active {
      transform: scale(0.985);
    }

    .link-card:focus-visible {
      outline: 3px solid color-mix(in srgb, var(--accent) 42%, white);
      outline-offset: 3px;
    }

    .icon-box {
      position: relative;
      flex: 0 0 42px;
      width: 42px;
      height: 48px;
      margin-right: 12px;

      display: grid;
      place-items: center;

      color: #ffffff;
      background: var(--accent);
      border-radius: 8px;

      box-shadow:
        inset 0 -4px 0 rgba(0,0,0,0.10),
        0 6px 12px color-mix(in srgb, var(--accent) 26%, transparent);
    }

    .icon-box::before {
      content: "";
      position: absolute;
      top: -5px;
      left: 11px;
      width: 20px;
      height: 9px;
      border: 2px solid var(--accent);
      border-bottom: 0;
      border-radius: 7px 7px 0 0;
      background: #ffffff;
    }

    .icon-box svg {
      width: 24px;
      height: 24px;
      stroke: currentColor;
      fill: none;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .link-label {
      min-width: 0;
      overflow-wrap: anywhere;
      font-size: clamp(16px, 1.55vw, 22px);
      font-weight: 800;
      letter-spacing: -0.25px;
      line-height: 1.08;
    }

    .link-card.long .link-label {
      font-size: clamp(12px, 1.08vw, 15px);
      letter-spacing: -0.15px;
    }

    .link-card.compact .link-label {
  font-size: clamp(11px, 1.04vw, 14px);
  letter-spacing: -0.25px;
  white-space: nowrap;
}

    .arrow {
      flex: 0 0 auto;
      margin-left: auto;
      padding-left: 8px;
      color: var(--accent);
      font-size: 17px;
      font-weight: 900;
      opacity: 0;
      transform: translateX(-5px);
      transition: opacity 0.18s ease, transform 0.18s ease;
    }

    .link-card:hover .arrow {
      opacity: 1;
      transform: translateX(0);
    }

    .footer {
      margin-top: 28px;
      padding: 0 16px;
      color: #6c7b89;
      font-size: 12px;
      text-align: center;
    }

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

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

    @keyframes heroShine {
      0%, 58% {
        transform: translateX(-90%);
      }
      82%, 100% {
        transform: translateX(90%);
      }
    }

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

    @media (max-width: 560px) {
      body {
        padding-left: 8px;
        padding-right: 8px;
      }

      .hero {
        border-radius: 14px;
      }

      .link-grid {
        grid-template-columns: 1fr;
        gap: 12px;
        margin-top: 22px;
        padding: 0 4px;
      }

      .link-card {
        min-height: 64px;
      }

      .link-label,
      .link-card.long .link-label {
        font-size: 17px;
      }
    }

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



    /* ===== PKD BACHOK STAFF ACKNOWLEDGEMENT ===== */

    body.staff-notice-open {
      overflow: hidden;
    }

    .staff-notice {
      position: fixed;
      inset: 0;
      z-index: 10000;

      display: none;
      align-items: center;
      justify-content: center;

      padding:
        max(18px, env(safe-area-inset-top))
        max(18px, env(safe-area-inset-right))
        max(18px, env(safe-area-inset-bottom))
        max(18px, env(safe-area-inset-left));

      background:
        linear-gradient(
          135deg,
          rgba(3, 29, 67, 0.80),
          rgba(4, 73, 105, 0.72)
        );

      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .staff-notice.open {
      display: flex;
      animation: staffNoticeFadeIn 0.24s ease both;
    }

    .staff-notice-card {
      width: min(500px, 100%);
      overflow: hidden;

      color: #18314f;
      background: #ffffff;

      border:
        1px solid
        rgba(255, 255, 255, 0.72);

      border-radius: 22px;

      box-shadow:
        0 28px 80px
        rgba(0, 22, 52, 0.35);

      animation: staffNoticeCardIn 0.27s ease both;
    }

    .staff-notice-topbar {
      height: 6px;

      background:
        linear-gradient(
          90deg,
          #075985,
          #0891b2,
          #0f766e
        );
    }

    .staff-notice-content {
      padding: 30px 30px 26px;
    }

    .staff-notice-icon {
      width: 58px;
      height: 58px;

      display: grid;
      place-items: center;

      margin-bottom: 18px;

      color: #ffffff;

      background:
        linear-gradient(
          145deg,
          #075985,
          #0891b2
        );

      border-radius: 17px;

      box-shadow:
        0 12px 24px
        rgba(8, 145, 178, 0.24);
    }

    .staff-notice-icon svg {
      width: 29px;
      height: 29px;

      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .staff-notice-eyebrow {
      margin: 0 0 8px;

      color: #087a8d;

      font-size: 11px;
      font-weight: 800;
      letter-spacing: 1.25px;
      text-transform: uppercase;
    }

    .staff-notice-title {
      margin: 0 0 12px;

      color: #06336f;

      font-size:
        clamp(
          23px,
          5vw,
          30px
        );

      line-height: 1.18;
      letter-spacing: -0.4px;
    }

    .staff-notice-text {
      margin: 0;

      color: #52687c;

      font-size: 14px;
      line-height: 1.62;
    }

    .staff-notice-question {
      margin: 20px 0 0;

      color: #18314f;

      font-size: 15px;
      font-weight: 800;
      line-height: 1.45;
    }

    .staff-notice-actions {
      display: flex;
      justify-content: center;
      align-items: center;
      gap: 10px;

      margin-top: 24px;
    }

    .staff-notice-button {
      min-height: 46px;
      padding: 11px 18px;

      display: inline-flex;
      align-items: center;
      justify-content: center;

      border: 0;
      border-radius: 11px;

      font: inherit;
      font-size: 14px;
      font-weight: 800;
      line-height: 1;
      text-align: center;
      text-decoration: none;

      cursor: pointer;

      transition:
        transform 0.15s ease,
        box-shadow 0.15s ease,
        background 0.15s ease;
    }

    .staff-notice-button:active {
      transform: scale(0.985);
    }

    .staff-notice-button.secondary {
      color: #52687c;
      background: #edf3f6;
    }

    .staff-notice-button.secondary:hover,
    .staff-notice-button.secondary:focus-visible {
      background: #e3ecef;
    }

    .staff-notice-button.primary {
      color: #ffffff;

      background:
        linear-gradient(
          145deg,
          #087c9a,
          #075985
        );

      box-shadow:
        0 9px 20px
        rgba(8, 124, 154, 0.24);
    }

    .staff-notice-button.primary:hover,
    .staff-notice-button.primary:focus-visible {
      box-shadow:
        0 12px 25px
        rgba(8, 124, 154, 0.30);
    }

    .staff-notice-button:focus-visible {
      outline:
        3px solid
        rgba(8, 145, 178, 0.22);

      outline-offset: 3px;
    }

    .staff-notice-footnote {
      margin: 18px 0 0;

      color: #8493a1;

      font-size: 11px;
      line-height: 1.5;
      text-align: center;
    }

    .staff-notice-denied
    .staff-notice-icon {
      color: #9a3412;
      background: #ffedd5;
      box-shadow: none;
    }

    .staff-notice-denied
    .staff-notice-title {
      color: #7c2d12;
    }

    @keyframes staffNoticeFadeIn {
      from {
        opacity: 0;
      }

      to {
        opacity: 1;
      }
    }

    @keyframes staffNoticeCardIn {
      from {
        opacity: 0;
        transform:
          translateY(14px)
          scale(0.985);
      }

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

    @media (max-width: 560px) {
      .staff-notice {
        align-items: flex-end;
        padding: 10px;
      }

      .staff-notice-card {
        border-radius: 22px 22px 14px 14px;
      }

      .staff-notice-content {
        padding: 25px 20px 20px;
      }

      .staff-notice-actions {
        flex-direction: column-reverse;
      }

      .staff-notice-button {
        width: 100%;
      }
    }


    /* ===== PIAGAM PELANGGAN PASSWORD ACCESS ===== */

    .link-card.piagam-card .link-label {
      font-size: clamp(11px, 1vw, 14px);
      letter-spacing: -0.3px;
      white-space: nowrap;
      overflow-wrap: normal;
    }

    body.piagam-access-open {
      overflow: hidden;
    }

    .piagam-access {
      position: fixed;
      inset: 0;
      z-index: 11000;
      display: none;
      align-items: center;
      justify-content: center;
      padding: max(18px, env(safe-area-inset-top))
               max(18px, env(safe-area-inset-right))
               max(18px, env(safe-area-inset-bottom))
               max(18px, env(safe-area-inset-left));
      background: linear-gradient(135deg, rgba(3, 29, 67, 0.82), rgba(4, 73, 105, 0.76));
      backdrop-filter: blur(8px);
      -webkit-backdrop-filter: blur(8px);
    }

    .piagam-access.open {
      display: flex;
      animation: staffNoticeFadeIn 0.2s ease both;
    }

    .piagam-access-card {
      width: min(420px, 100%);
      overflow: hidden;
      color: #18314f;
      background: #ffffff;
      border: 1px solid rgba(255, 255, 255, 0.72);
      border-radius: 20px;
      box-shadow: 0 28px 80px rgba(0, 22, 52, 0.35);
      animation: staffNoticeCardIn 0.24s ease both;
    }

    .piagam-access-topbar {
      height: 6px;
      background: linear-gradient(90deg, #0f766e, #0891b2, #075985);
    }

    .piagam-access-content {
      padding: 27px 28px 24px;
    }

    .piagam-access-icon {
      width: 52px;
      height: 52px;
      display: grid;
      place-items: center;
      margin: 0 auto 15px;
      color: #ffffff;
      background: linear-gradient(145deg, #0f766e, #0891b2);
      border-radius: 15px;
      box-shadow: 0 10px 22px rgba(15, 118, 110, 0.22);
    }

    .piagam-access-icon svg {
      width: 26px;
      height: 26px;
      fill: none;
      stroke: currentColor;
      stroke-width: 2;
      stroke-linecap: round;
      stroke-linejoin: round;
    }

    .piagam-access-title {
      margin: 0 0 8px;
      color: #06336f;
      font-size: 22px;
      line-height: 1.2;
      text-align: center;
    }

    .piagam-access-text {
      margin: 0 0 10px;
      color: #607386;
      font-size: 13px;
      line-height: 1.5;
      text-align: center;
    }

    .piagam-access-note {
      margin: 0 0 16px;
      padding: 9px 11px;
      color: #496878;
      background: #eef8fa;
      border: 1px solid #d5ebef;
      border-radius: 9px;
      font-size: 11.5px;
      line-height: 1.45;
      text-align: center;
    }

    .piagam-access-note strong {
      color: #0f6672;
    }

    .piagam-access-input {
      width: 100%;
      height: 48px;
      padding: 0 14px;
      color: #18314f;
      background: #f8fbfc;
      border: 1px solid #cddde5;
      border-radius: 11px;
      outline: none;
      font: inherit;
      font-size: 17px;
      letter-spacing: 3px;
      text-align: center;
      transition: border-color 0.15s ease, box-shadow 0.15s ease;
    }

    .piagam-access-input:focus {
      border-color: #0891b2;
      box-shadow: 0 0 0 3px rgba(8, 145, 178, 0.14);
    }

    .piagam-access-error {
      min-height: 18px;
      margin: 7px 0 0;
      color: #b42318;
      font-size: 12px;
      font-weight: 700;
      text-align: center;
    }

    .piagam-access-actions {
      display: flex;
      gap: 10px;
      margin-top: 14px;
    }

    .piagam-access-button {
      flex: 1;
      min-height: 44px;
      padding: 10px 16px;
      border: 0;
      border-radius: 10px;
      font: inherit;
      font-size: 14px;
      font-weight: 800;
      cursor: pointer;
    }

    .piagam-access-button.secondary {
      color: #52687c;
      background: #edf3f6;
    }

    .piagam-access-button.primary {
      color: #ffffff;
      background: linear-gradient(145deg, #0f766e, #087c9a);
      box-shadow: 0 8px 18px rgba(15, 118, 110, 0.20);
    }

    @media (max-width: 560px) {
      .link-card.piagam-card .link-label {
        font-size: 15px;
      }

      .piagam-access {
        align-items: flex-end;
        padding: 10px;
      }

      .piagam-access-card {
        border-radius: 20px 20px 14px 14px;
      }

      .piagam-access-content {
        padding: 24px 20px 20px;
      }
    }

  
/* Homepage maintenance and accessibility. */
[hidden] { display: none !important; }
.sr-only { position: absolute; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0,0,0,0); white-space: nowrap; border: 0; }
.directory-toolbar { display: flex; justify-content: space-between; align-items: center; gap: 20px; margin: 26px 12px 0; }
.directory-toolbar p { margin: 0; color: #657586; font-size: 13px; }
.tool-search input { width: 230px; padding: 10px 12px; border: 1px solid var(--line); border-radius: 8px; font: inherit; font-size: 14px; background: #fff; color: var(--navy); }
.directory-message { margin: 18px 12px 0; color: #657586; font-size: 14px; line-height: 1.6; }
.directory-message:empty { display: none; }
.link-grid { margin-top: 22px; }
button.link-card { font-family: inherit; text-align: left; width: 100%; }
.portal-footer { display: flex; justify-content: space-between; gap: 12px; align-items: center; padding-bottom: 12px; }
.text-button { border: 0; background: transparent; color: #52687d; font: inherit; padding: 9px 6px; cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.portal-modal { position: fixed; inset: 0; z-index: 11000; overflow-y: auto; display: flex; align-items: flex-start; justify-content: center; padding: 32px 18px; background: rgba(9,32,57,.65); backdrop-filter: blur(5px); }
body.portal-modal-open { overflow: hidden; }
.portal-dialog { position: relative; width: 100%; padding: 30px; border-radius: 16px; background: white; color: #18314f; box-shadow: 0 24px 80px rgba(0,22,52,.25); margin: auto; }
.login-dialog { max-width: 440px; }
.admin-dialog { max-width: 1050px; }
.portal-dialog h2 { margin: 5px 0 10px; font-size: 26px; letter-spacing: -.6px; }
.portal-dialog h3 { margin: 0 0 16px; font-size: 17px; }
.eyebrow { color: #64819a; font-size: 10px; font-weight: 700; letter-spacing: .14em; margin: 0 0 8px; }
.dialog-intro { color: #657586; font-size: 14px; line-height: 1.6; margin: 0 0 20px; }
.dialog-close { position: absolute; right: 14px; top: 12px; width: 36px; height: 36px; border: 0; color: #52687d; background: #f0f5f8; border-radius: 8px; font-size: 25px; cursor: pointer; }
.admin-heading { display: flex; justify-content: space-between; gap: 18px; align-items: flex-start; border-bottom: 1px solid var(--line); margin-bottom: 20px; }
.admin-heading-actions { display: flex; gap: 12px; align-items: center; }
.inline-close { position: static; flex-shrink: 0; }
.admin-columns { display: grid; grid-template-columns: minmax(0,1.08fr) minmax(0,1fr); gap: 30px; }
.admin-list-section { min-width: 0; }
.list-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin-bottom: 12px; }
.list-heading h3 { margin: 0; }
.admin-list { display: grid; gap: 8px; max-height: 650px; overflow-y: auto; padding: 2px; }
.admin-row { padding: 12px; border: 1px solid var(--line); border-radius: 8px; background: #fff; min-width: 0; }
.admin-row.disabled { background: #f6f8fa; }
.admin-row-title { display: flex; gap: 9px; align-items: center; margin-bottom: 6px; font-size: 14px; font-weight: 700; overflow-wrap: anywhere; }
.admin-color-dot { width: 8px; height: 8px; border-radius: 50%; flex-shrink: 0; }
.admin-row-url { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; display: block; color: #7b8996; font-size: 11px; }
.admin-row-actions { display: flex; gap: 6px; margin-top: 10px; flex-wrap: wrap; }
.row-action { padding: 6px 9px; min-height: 32px; font: inherit; font-size: 11px; color: #315877; border: 1px solid #dce8f0; border-radius: 5px; background: white; cursor: pointer; }
.row-action.danger { color: #a13939; }
.admin-row-status { font-size: 10px; font-weight: 400; color: #748695; margin-left: auto; white-space: nowrap; }
.admin-editor { min-width: 0; padding-left: 25px; border-left: 1px solid var(--line); }
.admin-field { display: flex; flex-direction: column; gap: 7px; margin: 0 0 16px; font-size: 12px; font-weight: 700; }
.admin-field input, .admin-field select { min-width: 0; width: 100%; font: inherit; font-weight: 400; font-size: 14px; padding: 10px 11px; border: 1px solid #cddce8; border-radius: 6px; color: #18314f; background: white; min-height: 43px; }
.admin-form-row { display: grid; grid-template-columns: 1fr 100px; gap: 14px; }
.color-field input { padding: 4px; cursor: pointer; }
.check-field { display: flex; gap: 9px; align-items: center; font-size: 12px; line-height: 1.5; margin-bottom: 12px; }
.check-field input { width: 16px; height: 16px; accent-color: var(--navy); }
.field-note, .admin-footnote { color: #748695; font-size: 11px; line-height: 1.6; }
.field-note { margin-top: -8px; }
.admin-footnote { border-top: 1px solid var(--line); padding-top: 16px; margin: 24px 0 0; }
.button-preview { padding: 14px 0; }
.button-preview .link-card { animation: none; opacity: 1; transform: none; max-width: 350px; }
.button-preview .link-label { font-size: 17px; }
.editor-actions { display: flex; gap: 12px; align-items: center; }
.action-button, .plain-button { min-height: 40px; padding: 9px 14px; border: 1px solid #cddce8; border-radius: 6px; background: white; color: var(--navy); font: inherit; font-size: 12px; font-weight: 700; cursor: pointer; }
.action-button { background: var(--navy); border-color: var(--navy); color: white; }
button:disabled { opacity: .48; cursor: default; }
.form-message { margin: 12px 0; color: #a13939; font-size: 12px; line-height: 1.6; }
.form-message:empty { display: none; }
.portal-toast { position: fixed; bottom: 22px; left: 50%; transform: translateX(-50%); z-index: 12000; background: #18314f; color: white; padding: 12px 18px; border-radius: 8px; box-shadow: 0 7px 24px rgba(0,0,0,.16); max-width: calc(100% - 32px); font-size: 13px; text-align: center; }
button:focus-visible, input:focus-visible, select:focus-visible { outline: 3px solid #7fc2ef; outline-offset: 3px; }
@media (max-width: 760px) {
  .admin-columns { grid-template-columns: 1fr; gap: 24px; }
  .admin-editor { padding-left: 0; padding-top: 22px; border-left: 0; border-top: 1px solid var(--line); }
  .admin-list { max-height: 360px; }
  .portal-dialog { padding: 24px 18px; }
  .admin-heading { display: block; }
  .admin-heading-actions { position: absolute; right: 14px; top: 14px; }
  .admin-heading .eyebrow { padding-right: 115px; }
  .admin-heading h2 { padding-top: 14px; }
}
@media (max-width: 520px) {
  .directory-toolbar { display: block; margin-inline: 4px; }
  .tool-search input { width: 100%; margin-top: 14px; }
  .portal-modal { padding: 14px 9px; }
  .portal-footer { padding-inline: 4px; }
}
