:root {
  --simolah-primary: #2563eb;
  --simolah-primary-dark: #1e40af;
  --simolah-accent: #0f766e;
  --simolah-warning: #f59e0b;
  --simolah-ink: #1f2937;
  --simolah-soft: #f6f8fb;
}

/* Portal Siswa — Ruang Curhat (scoped, asynchronous counseling conversation). */
.student-portal .student-portal-page-hero.is-curhat {
  background:
    radial-gradient(circle at 88% 18%, rgba(71, 82, 219, .14), transparent 34%),
    linear-gradient(135deg, #ffffff 0%, #f4f6ff 100%);
}

.student-portal .student-portal-page-head .student-portal-curhat-cta {
  min-height: 44px;
  margin-top: .85rem;
  font-size: .72rem;
}

.student-portal .student-portal-brand,
.student-portal .btn-close {
  min-width: 44px;
  min-height: 44px;
}

.student-portal .student-portal-privacy-callout {
  display: flex;
  align-items: flex-start;
  gap: .85rem;
  margin-bottom: .85rem;
  border-color: rgba(71, 82, 219, .18);
  background: #f8f9ff;
}

.student-portal .student-portal-privacy-icon {
  flex: 0 0 42px;
  display: grid;
  place-items: center;
  width: 42px;
  height: 42px;
  border-radius: 12px;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  font-size: 1.25rem;
}

.student-portal .student-portal-privacy-callout h2 {
  margin: 0 0 .2rem;
  color: var(--portal-text);
  font-size: .94rem;
}

.student-portal .student-portal-privacy-callout p {
  margin: 0;
  color: var(--portal-muted);
  font-size: .82rem;
  line-height: 1.55;
}

.student-portal .student-portal-curhat-list {
  display: grid;
}

.student-portal .student-portal-curhat-list > a {
  display: grid;
  grid-template-columns: 10px minmax(0, 1fr) auto auto;
  align-items: center;
  gap: .7rem;
  min-height: 68px;
  padding: .85rem 0;
  border-bottom: 1px solid #edf1f6;
  color: var(--portal-text);
  text-decoration: none;
}

.student-portal .student-portal-curhat-list > a:last-child {
  border-bottom: 0;
}

.student-portal .student-portal-curhat-list > a:hover,
.student-portal .student-portal-curhat-list > a:focus-visible {
  color: var(--portal-primary);
}

.student-portal .student-portal-curhat-list > a:focus-visible,
.student-portal .student-portal-curhat-back:focus-visible {
  outline: 3px solid rgba(71, 82, 219, .22);
  outline-offset: 3px;
}

.student-portal .student-portal-curhat-list strong,
.student-portal .student-portal-curhat-list small {
  display: block;
}

.student-portal .student-portal-curhat-list strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-size: .88rem;
}

.student-portal .student-portal-curhat-list small {
  margin-top: .22rem;
  color: var(--portal-muted);
  font-size: .74rem;
}

.student-portal .student-portal-curhat-dot {
  width: 7px;
  height: 7px;
  border-radius: 50%;
  background: #cbd3df;
}

.student-portal .student-portal-curhat-dot.is-unread {
  background: var(--portal-primary);
  box-shadow: 0 0 0 3px rgba(71, 82, 219, .12);
}

.student-portal .student-portal-curhat-list > a.is-unread strong {
  color: var(--portal-primary);
  font-weight: 750;
}

.student-portal .student-portal-curhat-unread-badge {
  align-items: center;
  background: var(--portal-primary);
  border-radius: 999px;
  color: #fff;
  display: inline-flex;
  font-size: .64rem;
  font-weight: 750;
  justify-content: center;
  line-height: 1;
  min-height: 1.3rem;
  min-width: 1.4rem;
  padding: .14rem .38rem;
}

.student-portal .student-portal-curhat-summary {
  display: flex;
  flex-wrap: wrap;
  gap: .35rem;
  justify-content: flex-end;
}

.student-portal .student-portal-curhat-summary > span {
  align-items: center;
  background: #f4f6fb;
  border: 1px solid var(--portal-border);
  border-radius: 999px;
  color: var(--portal-muted);
  display: inline-flex;
  gap: .28rem;
  padding: .24rem .48rem;
}

.student-portal .student-portal-curhat-summary small {
  font-size: .62rem;
}

.student-portal .student-portal-curhat-summary b {
  color: var(--portal-text);
  font-size: .68rem;
}

.student-portal .student-portal-curhat-activity {
  align-items: center;
  background: #f5f6ff;
  border: 1px solid rgba(71, 82, 219, .2);
  border-radius: .75rem;
  color: #323b80;
  gap: .75rem;
  justify-content: space-between;
  margin-bottom: .85rem;
  padding: .62rem .7rem .62rem .85rem;
}

.student-portal .student-portal-curhat-activity:not([hidden]) {
  display: flex;
}

.student-portal .student-portal-curhat-activity > span {
  align-items: center;
  display: inline-flex;
  font-size: .74rem;
  gap: .45rem;
}

.student-portal .student-portal-curhat-modal {
  border: 0;
  border-radius: 16px;
  box-shadow: 0 24px 64px rgba(35, 44, 78, .18);
}

.student-portal .student-portal-curhat-modal .btn-close {
  flex: 0 0 44px;
  width: 44px;
  height: 44px;
  margin: -.5rem -.5rem -.5rem auto;
}

.student-portal .student-portal-curhat-modal textarea {
  min-height: 142px;
  max-height: 320px;
  resize: vertical;
}

.student-portal .student-portal-curhat-detail-head {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr) auto;
  align-items: center;
  gap: 1rem;
}

.student-portal .student-portal-curhat-detail-head .btn,
.student-portal .student-portal-curhat-modal .btn {
  min-height: 44px;
  font-size: .72rem;
}

.student-portal .student-portal-curhat-back {
  display: inline-flex;
  align-items: center;
  gap: .3rem;
  min-height: 44px;
  color: var(--portal-primary);
  font-weight: 700;
  text-decoration: none;
}

.student-portal .student-portal-curhat-conversation {
  padding-bottom: 0;
}

.student-portal .student-portal-curhat-messages {
  display: flex;
  flex-direction: column;
  gap: 1rem;
  min-height: 300px;
  padding-bottom: 1rem;
}

.student-portal .student-portal-curhat-realtime-status {
  margin-bottom: .75rem;
  padding: .55rem .7rem;
  border: 1px solid var(--portal-border);
  border-radius: 10px;
  background: #f8fafc;
  color: var(--portal-muted);
  font-size: .78rem;
}

.student-portal .student-portal-curhat-realtime-status[data-state="closed"] {
  border-color: #bbf7d0;
  background: #f0fdf4;
  color: #047857;
}

.student-portal .student-portal-curhat-realtime-status[data-state="session"],
.student-portal .student-portal-curhat-realtime-status[data-state="access"] {
  border-color: #fed7aa;
  background: #fff7ed;
  color: #9a3412;
}

.student-portal .student-portal-curhat-new-message {
  position: fixed;
  z-index: 12;
  right: max(1rem, calc((100vw - 1180px) / 2 + 1rem));
  bottom: 6.5rem;
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  padding: .55rem .78rem;
  border: 0;
  border-radius: 999px;
  background: var(--portal-primary);
  box-shadow: 0 8px 24px rgba(71, 82, 219, .24);
  color: #fff;
  font-size: .8rem;
  font-weight: 750;
}

.student-portal .student-portal-curhat-realtime-status[hidden],
.student-portal .student-portal-curhat-new-message[hidden] {
  display: none;
}

.student-portal .student-portal-curhat-message {
  align-self: flex-start;
  width: min(84%, 680px);
}

.student-portal .student-portal-curhat-message.is-mine {
  align-self: flex-end;
}

.student-portal .student-portal-curhat-message header {
  display: flex;
  align-items: flex-end;
  justify-content: space-between;
  gap: .75rem;
  margin-bottom: .35rem;
  color: var(--portal-muted);
  font-size: .72rem;
}

.student-portal .student-portal-curhat-message header span,
.student-portal .student-portal-curhat-message header strong,
.student-portal .student-portal-curhat-message header small {
  display: block;
}

.student-portal .student-portal-curhat-message header strong {
  color: var(--portal-text);
  font-size: .78rem;
}

.student-portal .student-portal-curhat-message > div {
  padding: .82rem .92rem;
  border: 1px solid var(--portal-border);
  border-radius: 12px;
  background: #f8fafc;
  color: var(--portal-text);
  line-height: 1.6;
  overflow-wrap: anywhere;
}

.student-portal .student-portal-curhat-message.is-mine > div {
  border-color: rgba(71, 82, 219, .2);
  background: var(--portal-primary-soft);
}

.student-portal .student-portal-curhat-composer {
  position: sticky;
  bottom: .5rem;
  z-index: 4;
  padding: .9rem 0 1rem;
  border-top: 1px solid var(--portal-border);
  background: rgba(255, 255, 255, .97);
}

.student-portal .student-portal-curhat-composer > div {
  display: flex;
  align-items: flex-end;
  gap: .65rem;
}

.student-portal .student-portal-curhat-composer textarea {
  min-height: 48px;
  max-height: 180px;
  resize: vertical;
}

.student-portal .student-portal-curhat-composer .btn {
  min-width: 94px;
  min-height: 48px;
}

.student-portal .student-portal-curhat-closed {
  display: flex;
  align-items: center;
  gap: .7rem;
  padding: .9rem 0 1rem;
  border-top: 1px solid var(--portal-border);
  color: var(--portal-muted);
}

.student-portal .student-portal-curhat-closed > i {
  color: #059669;
  font-size: 1.3rem;
}

.student-portal .student-portal-curhat-closed strong,
.student-portal .student-portal-curhat-closed small {
  display: block;
}

.student-portal .student-portal-curhat-closed a {
  margin-left: auto;
  color: var(--portal-primary);
  font-weight: 700;
  white-space: nowrap;
}

@media (max-width: 767.98px) {
  .student-portal .student-portal-curhat-detail-head {
    grid-template-columns: 1fr;
    align-items: start;
  }

  .student-portal .student-portal-curhat-detail-head > form,
  .student-portal .student-portal-curhat-detail-head > form .btn {
    width: 100%;
  }

  .student-portal .student-portal-curhat-message {
    width: 92%;
  }

  .student-portal .student-portal-curhat-composer {
    position: static;
    padding-bottom: .75rem;
  }

  .student-portal .student-portal-curhat-closed {
    align-items: flex-start;
    flex-wrap: wrap;
  }

  .student-portal .student-portal-curhat-closed a {
    width: 100%;
    margin-left: 2rem;
  }
}

@media (max-width: 479.98px) {
  .student-portal .student-portal-privacy-callout {
    gap: .7rem;
  }

  .student-portal .student-portal-curhat-composer > div {
    align-items: stretch;
    flex-direction: column;
  }

  .student-portal .student-portal-curhat-composer .btn {
    width: 100%;
  }
}

.student-portal .student-portal-curhat-followup {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: .85rem;
  margin-bottom: .85rem;
  border-color: rgba(5, 150, 105, .2);
  background: linear-gradient(135deg, #f0fdf8 0%, #f8fafc 100%);
}

.student-portal .student-portal-curhat-followup-icon {
  display: grid;
  place-items: center;
  width: 44px;
  height: 44px;
  border-radius: 13px;
  background: #dcfce7;
  color: #047857;
  font-size: 1.25rem;
}

.student-portal .student-portal-curhat-followup h2 {
  margin: .1rem 0 .25rem;
  color: var(--portal-text);
  font-size: .96rem;
}

.student-portal .student-portal-curhat-followup p {
  margin: 0;
  color: var(--portal-muted);
  font-size: .8rem;
}

.student-portal .student-portal-curhat-appointment {
  display: flex;
  flex-wrap: wrap;
  gap: .55rem 1rem;
  margin-top: .7rem;
  padding: .65rem .75rem;
  border-radius: 12px;
  background: #fff;
}

.student-portal .student-portal-curhat-appointment span {
  display: inline-flex;
  align-items: center;
  gap: .35rem;
  color: var(--portal-text);
  font-size: .76rem;
}

.student-portal .student-portal-curhat-appointment i {
  color: #059669;
}

.student-portal .student-portal-curhat-followup-note {
  display: block;
  margin-top: .55rem;
  color: var(--portal-muted);
  font-size: .75rem;
}

body {
  background: var(--simolah-soft);
}

.simolah-auth {
  min-height: 100vh;
  background:
    linear-gradient(135deg, rgba(37, 99, 235, 0.08), rgba(15, 118, 110, 0.08)),
    #f8fafc;
}

.simolah-login-auth {
  min-height: 100dvh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}

.simolah-login-page {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.simolah-login-main {
  display: flex;
  flex: 1 1 auto;
  min-height: 0;
  width: 100%;
}

.simolah-login-shell {
  align-items: center;
  display: grid;
  gap: clamp(2.5rem, 6vw, 7rem);
  grid-template-columns: minmax(0, 1.05fr) minmax(420px, 0.95fr);
  margin: auto;
  max-width: 1380px;
  padding-block: clamp(1.5rem, 3.5vh, 3rem);
  padding-inline: clamp(1.25rem, 5vw, 5rem);
  width: 100%;
}

.simolah-login-branding {
  min-width: 0;
  padding: 1rem 0;
  position: relative;
}

.simolah-login-branding::before,
.simolah-login-branding::after {
  border-radius: 50%;
  content: '';
  pointer-events: none;
  position: absolute;
  z-index: -1;
}

.simolah-login-branding::before {
  background: rgba(37, 99, 235, 0.06);
  height: 20rem;
  left: -8rem;
  top: -8rem;
  width: 20rem;
}

.simolah-login-branding::after {
  background: rgba(16, 185, 129, 0.06);
  bottom: -6rem;
  height: 14rem;
  right: 2rem;
  width: 14rem;
}

.simolah-login-brandmark {
  display: inline-flex;
  max-width: min(100%, 460px);
  position: relative;
  z-index: 1;
}

.simolah-login-brandmark img {
  display: block;
  height: auto;
  max-width: 100%;
  object-fit: contain;
  width: 100%;
}

.simolah-login-branding-copy {
  margin-top: clamp(2rem, 3vw, 3rem);
  max-width: 650px;
}

.simolah-login-branding-copy h1 {
  color: #14264d;
  font-size: clamp(2.2rem, 4.2vw, 3.55rem);
  font-weight: 800;
  letter-spacing: -0.04em;
  line-height: 1.12;
  margin: 0;
}

.simolah-login-branding-copy h1 span {
  color: #1976d2;
}

.simolah-login-branding-copy h1 em {
  color: #16a34a;
  font-style: normal;
}

.simolah-login-branding-copy p {
  color: #536789;
  font-size: clamp(1rem, 1.4vw, 1.18rem);
  line-height: 1.65;
  margin: 1.25rem 0 0;
  max-width: 620px;
}

.simolah-login-features {
  display: grid;
  gap: 1.25rem;
  margin-top: clamp(1.5rem, 2.5vw, 2.5rem);
  max-width: 500px;
}

.simolah-login-feature {
  align-items: center;
  color: #14264d;
  display: flex;
  gap: 1rem;
}

.simolah-login-feature > span:last-child {
  display: grid;
  gap: 0.15rem;
}

.simolah-login-feature strong {
  font-size: 1rem;
  font-weight: 700;
}

.simolah-login-feature small {
  color: #536789;
  font-size: 0.82rem;
  line-height: 1.45;
}

.simolah-login-feature-icon {
  align-items: center;
  border-radius: 1.1rem;
  display: inline-flex;
  flex: 0 0 4rem;
  font-size: 1.7rem;
  height: 4rem;
  justify-content: center;
  width: 4rem;
}

.simolah-login-feature-icon-blue {
  background: #e4efff;
  color: #1672e8;
}

.simolah-login-feature-icon-purple {
  background: #eee9ff;
  color: #6d28d9;
}

.simolah-login-feature-icon-green {
  background: #e5f7eb;
  color: #16a34a;
}

.simolah-login-panel {
  min-width: 0;
  width: 100%;
}

.simolah-login-card {
  background: rgba(255, 255, 255, 0.96);
  border: 1px solid rgba(255, 255, 255, 0.78);
  border-radius: 1.25rem;
  box-shadow: 0 24px 70px rgba(31, 41, 55, 0.13);
  margin: 0;
  max-width: none;
}

.simolah-login-card .card-body {
  padding: clamp(1.5rem, 3.2vh, 2.5rem) clamp(1.5rem, 3vw, 2.75rem);
}

.simolah-login-heading {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
}

.simolah-login-heading h2 {
  color: #14264d;
  font-size: clamp(1.55rem, 2.2vw, 2rem);
  font-weight: 800;
  letter-spacing: -0.03em;
  line-height: 1.2;
}

.simolah-login-heading p {
  color: #536789;
  font-size: 0.98rem;
  line-height: 1.6;
  max-width: 540px;
}

.simolah-login-heading .badge {
  flex: 0 0 auto;
  font-size: 0.78rem;
  margin-top: 0.15rem;
  padding: 0.45rem 0.65rem;
}

.simolah-login-form {
  margin-top: clamp(1.5rem, 3vh, 2.25rem);
}

.simolah-login-field {
  margin-bottom: clamp(1rem, 2vh, 1.35rem);
  position: relative;
}

.simolah-login-field .form-control {
  padding-inline-start: 3.1rem;
}

.simolah-login-field label {
  left: 2.45rem;
}

/* Keep the input text clear of the leading icon after form-floating changes its padding. */
.simolah-login-field.form-floating.form-floating-outline > .form-control,
.simolah-login-field.form-floating.form-floating-outline > .form-control:focus,
.simolah-login-field.form-floating.form-floating-outline > .form-control:not(:placeholder-shown) {
  padding-inline-start: 3.1rem;
}

.simolah-login-field.form-floating.form-floating-outline > .form-control {
  min-height: 54px;
}

.simolah-login-field-password .form-control {
  padding-inline-end: 3.25rem;
}

.simolah-login-password-toggle {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.5rem;
  color: #63789d;
  display: inline-flex;
  height: 2.5rem;
  justify-content: center;
  padding: 0;
  position: absolute;
  right: 0.65rem;
  top: 50%;
  transform: translateY(-50%);
  width: 2.5rem;
  z-index: 3;
}

.simolah-login-password-toggle:hover {
  background: rgba(37, 99, 235, 0.08);
  color: var(--simolah-primary);
}

.simolah-login-password-toggle:focus-visible {
  outline: 2px solid rgba(37, 99, 235, 0.45);
  outline-offset: 2px;
}

.simolah-login-password-toggle i {
  font-size: 1.2rem;
  line-height: 1;
}

.simolah-login-field-password.form-floating.form-floating-outline > .form-control,
.simolah-login-field-password.form-floating.form-floating-outline > .form-control:focus,
.simolah-login-field-password.form-floating.form-floating-outline > .form-control:not(:placeholder-shown) {
  padding-inline-end: 3.25rem;
}

.simolah-login-field-icon {
  color: #63789d;
  font-size: 1.25rem;
  left: 1rem;
  pointer-events: none;
  position: absolute;
  top: 50%;
  transform: translateY(-50%);
  z-index: 2;
}

.simolah-login-divider {
  align-items: center;
  color: #657493;
  display: flex;
  gap: 1rem;
  margin: 1.5rem 0;
}

.simolah-login-divider::before,
.simolah-login-divider::after {
  background: #e8edf4;
  content: '';
  flex: 1;
  height: 1px;
}

.simolah-login-divider span {
  font-size: 0.82rem;
}

.simolah-credit {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-wrap: wrap;
  font-size: 0.82rem;
  gap: 0.3rem;
  justify-content: center;
  line-height: 1.35;
  margin: auto auto 0;
  max-width: 1380px;
  padding: 1rem clamp(1rem, 5vw, 5rem) calc(1rem + env(safe-area-inset-bottom));
  width: 100%;
  text-align: center;
}

.simolah-credit-line {
  display: inline-block;
}

.simolah-auth-button,
.simolah-modal-button {
  align-items: center !important;
  display: inline-flex !important;
  gap: 0.55rem;
  justify-content: center !important;
  line-height: 1.2;
  white-space: nowrap;
}

.simolah-auth-button {
  border-radius: 8px;
  font-size: 1rem;
  font-weight: 600;
  min-height: 52px;
  padding: 0.8rem 1rem;
}

.simolah-auth-button i,
.simolah-modal-button i {
  flex: 0 0 auto;
  font-size: 1.18rem;
  line-height: 1;
}

.simolah-auth-button span,
.simolah-modal-button span {
  line-height: 1.2;
}

.simolah-auth-button-outline {
  background: #fff;
}

.simolah-modal-button {
  border-radius: 8px;
  min-height: 38px;
}

.simolah-toast-stack {
  display: flex;
  flex-direction: column;
  gap: 0.75rem;
  max-width: min(420px, calc(100vw - 2rem));
  pointer-events: none;
  position: fixed;
  right: 1rem;
  top: 1rem;
  width: 420px;
  z-index: 1095;
}

@media (max-width: 991.98px) {
  .simolah-login-shell {
    gap: 2rem;
    grid-template-columns: minmax(0, 760px);
    justify-content: center;
    max-width: 900px;
  }

  .simolah-login-branding {
    text-align: center;
  }

  .simolah-login-brandmark {
    max-width: min(100%, 380px);
  }

  .simolah-login-branding-copy {
    margin-left: auto;
    margin-right: auto;
  }

  .simolah-login-features {
    margin-left: auto;
    margin-right: auto;
    text-align: left;
  }
}

@media (min-width: 992px) and (max-height: 760px) {
  .simolah-login-shell {
    align-items: start;
    gap: clamp(1.75rem, 4vw, 5rem);
    padding-block: clamp(1rem, 2.5vh, 1.75rem);
  }

  .simolah-login-branding-copy {
    margin-top: clamp(1rem, 2vh, 2rem);
  }

  .simolah-login-features {
    gap: clamp(0.75rem, 1.5vh, 1.25rem);
    margin-top: clamp(1rem, 1.75vh, 1.75rem);
  }
}

.simolah-toast {
  --toast-accent: #2563eb;
  --toast-bg: #ffffff;
  --toast-ink: #111827;
  --toast-muted: #4b5563;
  align-items: flex-start;
  background: var(--toast-bg);
  border: 1px solid rgba(17, 24, 39, 0.08);
  border-left: 5px solid var(--toast-accent);
  border-radius: 8px;
  box-shadow: 0 18px 45px rgba(15, 23, 42, 0.18);
  color: var(--toast-ink);
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto 1fr auto;
  min-height: 74px;
  opacity: 0;
  overflow: hidden;
  padding: 0.95rem 0.9rem 0.9rem 0.95rem;
  pointer-events: auto;
  position: relative;
  transform: translate3d(18px, -8px, 0) scale(0.98);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.simolah-toast.is-visible {
  opacity: 1;
  transform: translate3d(0, 0, 0) scale(1);
}

.simolah-toast.is-leaving {
  opacity: 0;
  transform: translate3d(18px, -8px, 0) scale(0.98);
}

.simolah-toast-icon {
  align-items: center;
  background: color-mix(in srgb, var(--toast-accent) 12%, #ffffff);
  border-radius: 8px;
  color: var(--toast-accent);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.simolah-toast-title {
  font-size: 0.92rem;
  font-weight: 700;
  line-height: 1.2;
  margin-bottom: 0.16rem;
}

.simolah-toast-message {
  color: var(--toast-muted);
  font-size: 0.86rem;
  line-height: 1.4;
}

.simolah-toast-close {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 8px;
  color: #64748b;
  display: inline-flex;
  height: 30px;
  justify-content: center;
  margin: -0.25rem -0.25rem 0 0;
  padding: 0;
  transition: background 0.18s ease, color 0.18s ease;
  width: 30px;
}

.simolah-toast-close:hover {
  background: rgba(15, 23, 42, 0.06);
  color: #111827;
}

.simolah-toast-progress {
  background: color-mix(in srgb, var(--toast-accent) 72%, #ffffff);
  bottom: 0;
  height: 3px;
  left: 0;
  position: absolute;
  transform-origin: left center;
  width: 100%;
}

.simolah-toast.is-visible .simolah-toast-progress {
  animation: simolah-toast-progress var(--toast-timeout, 5200ms) linear forwards;
}

.simolah-toast-success {
  --toast-accent: #15803d;
}

.simolah-toast-danger {
  --toast-accent: #dc2626;
}

.simolah-toast-warning {
  --toast-accent: #b45309;
}

.simolah-toast-info {
  --toast-accent: #0369a1;
}

.simolah-toast-primary {
  --toast-accent: var(--simolah-primary);
}

@keyframes simolah-toast-progress {
  from {
    transform: scaleX(1);
  }

  to {
    transform: scaleX(0);
  }
}

.simolah-confirm-modal {
  border: 0;
  border-radius: 8px;
  box-shadow: 0 22px 70px rgba(15, 23, 42, 0.25);
}

.simolah-confirm-icon {
  align-items: center;
  background: #fef2f2;
  border-radius: 8px;
  color: #dc2626;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.simolah-confirm-icon.is-danger {
  background: #fef2f2;
  color: #dc2626;
}

.simolah-confirm-icon.is-warning {
  background: #fff7ed;
  color: #c2410c;
}

.simolah-confirm-icon.is-primary {
  background: #eef2ff;
  color: var(--simolah-primary);
}

.simolah-confirm-icon.is-success {
  background: #ecfdf5;
  color: #15803d;
}

@media (max-width: 575.98px) {
  #simolahConfirmModal .modal-dialog {
    margin: 1rem;
  }

  #simolahConfirmModal .modal-header,
  #simolahConfirmModal .modal-body,
  #simolahConfirmModal .modal-footer {
    padding-left: 1rem;
    padding-right: 1rem;
  }
}

.simolah-installer {
  max-width: 920px;
}

.simolah-installer-logo {
  height: auto;
  max-width: 230px;
}

.simolah-brand img {
  width: 34px;
  height: 34px;
  object-fit: contain;
}

.simolah-page {
  padding-bottom: 5.5rem;
}

.simolah-hero {
  align-items: center;
  background: linear-gradient(135deg, #ffffff, #eef6ff 62%, #ecfdf5);
  border: 1px solid rgba(37, 99, 235, 0.08);
  border-radius: 8px;
  display: flex;
  gap: 1.5rem;
  justify-content: space-between;
  min-height: 180px;
  overflow: hidden;
  padding: 1.5rem;
}

.simolah-hero h2 {
  color: var(--simolah-ink);
  font-size: 1.75rem;
  line-height: 1.2;
}

.simolah-hero p {
  color: #475569;
  max-width: 680px;
}

.simolah-hero-logo {
  max-height: 96px;
  max-width: 36%;
  object-fit: contain;
}

.simolah-stat-card {
  border: 0;
  min-height: 112px;
}

.simolah-stat-card h3 {
  color: var(--simolah-primary-dark);
}

.simolah-action-card {
  align-items: flex-start;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  color: var(--simolah-ink);
  display: flex;
  flex-direction: column;
  gap: 0.45rem;
  min-height: 132px;
  padding: 1rem;
  text-decoration: none;
  transition: transform 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.simolah-action-card:hover {
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 10px 26px rgba(31, 41, 55, 0.08);
  color: var(--simolah-primary-dark);
  transform: translateY(-2px);
}

.simolah-action-icon {
  align-items: center;
  background: rgba(37, 99, 235, 0.1);
  border-radius: 8px;
  color: var(--simolah-primary);
  display: inline-flex;
  font-size: 1.45rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.simolah-action-card small {
  color: #64748b;
}

.empty-state {
  align-items: center;
  border: 1px dashed rgba(100, 116, 139, 0.28);
  border-radius: 8px;
  display: flex;
  flex-direction: column;
  padding: 2rem;
  text-align: center;
}

.empty-state i {
  color: var(--simolah-primary);
  font-size: 2.5rem;
  margin-bottom: 0.75rem;
}

.simolah-data-table {
  min-width: 980px;
}

.simolah-data-table th {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 700;
  white-space: nowrap;
}

.simolah-data-table td {
  font-size: 0.86rem;
  vertical-align: middle;
}

.simolah-check-col {
  width: 46px;
}

.simolah-bool-icon {
  font-size: 1.1rem;
  line-height: 1;
}

.simolah-bool-yes {
  color: #22c55e;
}

.simolah-bool-no {
  color: #ef4444;
}

.simolah-table-footer {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 1rem;
  justify-content: space-between;
  padding-top: 1rem;
}

.simolah-table-footer .pagination {
  flex-wrap: wrap;
  gap: 0.25rem;
}

.simolah-scroll-modal .modal-dialog {
  max-height: calc(100vh - 1.5rem);
}

.simolah-scroll-modal .modal-content {
  max-height: calc(100vh - 1.5rem);
  overflow: hidden;
}

.simolah-scroll-modal .modal-body {
  max-height: calc(100vh - 11.5rem);
  overflow-y: auto;
}

.simolah-member-select {
  min-height: 13rem;
}

[data-lesson-schedule-form] select.form-select {
  text-overflow: ellipsis;
  overflow: hidden;
  white-space: nowrap;
}

.simolah-profile-logo {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 170px;
  padding: 1rem;
}

.simolah-profile-logo img {
  max-height: 110px;
  max-width: 100%;
  object-fit: contain;
}

.simolah-letterhead-preview {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 130px;
  overflow: hidden;
  padding: 0.75rem;
}

.simolah-letterhead-preview img {
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
}

.simolah-login-banner-preview {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 130px;
  overflow: hidden;
  padding: 0.75rem;
}

.simolah-login-banner-preview img {
  max-height: 150px;
  max-width: 100%;
  object-fit: contain;
}

.simolah-login-slider-preview {
  aspect-ratio: 9 / 10;
  background:
    radial-gradient(circle at 20% 18%, rgba(96, 165, 250, .48), transparent 42%),
    linear-gradient(145deg, #172554, #2563eb 54%, #0f766e);
  margin-inline: auto;
  max-height: 360px;
  padding: 0;
}

.simolah-login-slider-preview img {
  height: 100%;
  max-height: none;
  object-fit: cover;
  object-position: center;
  width: 100%;
}

.simolah-login-slider-preview .simolah-signature-empty {
  color: rgba(255, 255, 255, .88);
  padding: 1.5rem;
}

.simolah-signature-preview {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: flex;
  justify-content: center;
  min-height: 118px;
  padding: 0.75rem;
}

.simolah-signature-preview img {
  max-height: 96px;
  max-width: 100%;
  object-fit: contain;
}

.simolah-signature-empty {
  align-items: center;
  color: #7b8194;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  text-align: center;
}

.simolah-signature-empty i {
  font-size: 1.75rem;
}

.simolah-map-preview {
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.simolah-map-preview iframe {
  border: 0;
  display: block;
  height: 260px;
  width: 100%;
}

.simolah-calendar-tabs {
  gap: 0.5rem;
}

.simolah-calendar-tabs .nav-link {
  align-items: center;
  border-radius: 8px;
  display: inline-flex;
  min-height: 42px;
}

.simolah-calendar-legend {
  align-items: center;
  color: #475569;
  display: inline-flex;
  font-size: 0.82rem;
  gap: 0.38rem;
}

.simolah-calendar-legend span {
  border-radius: 4px;
  display: inline-block;
  height: 0.72rem;
  width: 0.72rem;
}

.simolah-national-status {
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  padding: 0.85rem;
}

.simolah-national-status > div {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 8px;
  padding: 0.85rem;
}

.simolah-mini-label {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.25rem;
  text-transform: uppercase;
}

.simolah-national-status strong {
  color: #111827;
  display: block;
  line-height: 1.2;
}

.simolah-national-status small {
  color: #64748b;
  display: block;
  line-height: 1.35;
  margin-top: 0.25rem;
}

.simolah-calendar-grid {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simolah-calendar-grid-1 {
  grid-template-columns: minmax(0, 1fr);
}

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

.simolah-calendar-grid-6,
.simolah-calendar-grid-12 {
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simolah-calendar-month {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.24);
  border-radius: 8px;
  overflow: hidden;
}

.simolah-calendar-month-title {
  background: #dbeafe;
  border-bottom: 2px solid var(--simolah-primary);
  color: #111827;
  font-size: 1rem;
  font-weight: 800;
  line-height: 1.2;
  padding: 0.62rem 0.75rem;
  text-align: center;
}

.simolah-calendar-weekdays {
  background: #ffffff;
  border-bottom: 1px solid rgba(100, 116, 139, 0.22);
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.simolah-calendar-weekdays div {
  color: #111827;
  font-size: 0.78rem;
  font-weight: 800;
  padding: 0.38rem 0.2rem;
  text-align: center;
}

.simolah-calendar-days {
  display: grid;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.simolah-calendar-day {
  background: #ffffff;
  border: 0;
  border-bottom: 1px solid rgba(100, 116, 139, 0.16);
  border-right: 1px solid rgba(100, 116, 139, 0.16);
  color: #111827;
  display: flex;
  flex-direction: column;
  min-height: 104px;
  padding: 0.45rem 0.4rem;
  position: relative;
  text-align: left;
  width: 100%;
}

.simolah-calendar-day:nth-child(7n) {
  border-right: 0;
}

.simolah-calendar-day.is-weekend {
  background: #fff7f7;
}

.simolah-calendar-day.is-outside {
  background: #f1f5f9;
  color: #94a3b8;
}

.simolah-calendar-day.is-clickable {
  cursor: pointer;
}

.simolah-calendar-day.is-clickable:hover {
  background: #eff6ff;
  box-shadow: inset 0 0 0 2px rgba(37, 99, 235, 0.22);
}

.simolah-calendar-day-number {
  align-self: flex-end;
  color: inherit;
  font-size: 0.82rem;
  font-weight: 800;
  line-height: 1;
}

.simolah-calendar-events {
  display: flex;
  flex-direction: column;
  gap: 0.22rem;
  margin-top: 0.45rem;
  min-width: 0;
}

.simolah-calendar-chip {
  --event-color: #2563eb;
  background: var(--event-color);
  border-radius: 5px;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.12);
  color: #ffffff;
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  line-height: 1.15;
  max-width: 100%;
  overflow: hidden;
  padding: 0.25rem 0.35rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simolah-calendar-more {
  color: #64748b;
  font-size: 0.7rem;
  font-weight: 700;
}

.simolah-event-dot {
  border-radius: 999px;
  display: inline-block;
  height: 0.62rem;
  width: 0.62rem;
}

.simolah-summary-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.simolah-summary-badges span {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: 0.78rem;
  gap: 0.35rem;
  min-height: 30px;
  padding: 0.28rem 0.65rem;
}

.simolah-summary-badges strong {
  color: #111827;
}

.simolah-category-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
}

.simolah-category-pill,
.simolah-category-chip {
  --event-color: #2563eb;
  align-items: center;
  background: color-mix(in srgb, var(--event-color) 10%, #ffffff);
  border: 1px solid color-mix(in srgb, var(--event-color) 32%, #ffffff);
  border-radius: 999px;
  color: #111827;
  display: inline-flex;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 0.4rem;
  min-height: 28px;
  padding: 0.26rem 0.58rem;
}

.simolah-category-pill i {
  background: var(--event-color);
  border-radius: 999px;
  display: inline-block;
  height: 0.52rem;
  width: 0.52rem;
}

.simolah-category-pill strong {
  background: #ffffff;
  border-radius: 999px;
  color: #111827;
  font-size: 0.68rem;
  line-height: 1;
  padding: 0.2rem 0.36rem;
}

.simolah-summary-table {
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 8px;
}

.simolah-summary-table tbody tr {
  transition: background 0.16s ease;
}

.simolah-summary-table tbody tr:hover {
  background: #f8fafc;
}

.simolah-heb-semester-recap {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  padding: 1rem;
}

.simolah-semester-total {
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-left: 5px solid var(--simolah-primary);
  border-radius: 8px;
  height: 100%;
  padding: 0.9rem;
}

.simolah-semester-total-head {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.simolah-semester-total-head strong {
  color: #111827;
  display: block;
  font-size: 0.95rem;
}

.simolah-semester-total-head small {
  color: #64748b;
  display: block;
  font-size: 0.76rem;
  margin-top: 0.18rem;
}

.simolah-semester-total-head span {
  background: rgba(105, 108, 255, 0.12);
  border-radius: 999px;
  color: var(--simolah-primary);
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 800;
  padding: 0.32rem 0.62rem;
}

.simolah-semester-total-grid {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simolah-semester-total-grid span {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.12);
  border-radius: 8px;
  padding: 0.6rem;
}

.simolah-semester-total-grid small,
.simolah-semester-total-grid em {
  color: #64748b;
  display: block;
  font-size: 0.68rem;
  font-style: normal;
}

.simolah-semester-total-grid strong {
  color: #111827;
  display: block;
  font-size: 1.12rem;
  line-height: 1.1;
  margin: 0.18rem 0;
}

.simolah-academic-poster {
  display: none;
}

.simolah-print-preview {
  background: #e5e7eb;
  margin: 0;
  padding: 16px;
}

.simolah-print-fallback-toolbar {
  align-items: center;
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 12px;
  box-shadow: 0 12px 30px rgba(15, 23, 42, 0.12);
  box-sizing: border-box;
  color: #334155;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  margin: 0 auto 16px;
  max-width: 210mm;
  padding: 12px 14px;
}

.simolah-print-fallback-toolbar strong,
.simolah-print-fallback-toolbar span {
  display: block;
}

.simolah-print-fallback-toolbar strong {
  color: #0f172a;
  font-size: 0.95rem;
  margin-bottom: 2px;
}

.simolah-print-fallback-toolbar span {
  font-size: 0.82rem;
  line-height: 1.45;
}

.simolah-print-fallback-actions {
  display: flex;
  flex: 0 0 auto;
  gap: 8px;
}

.simolah-print-fallback-actions button {
  background: #ffffff;
  border: 1px solid #cbd5e1;
  border-radius: 8px;
  color: #334155;
  cursor: pointer;
  font: inherit;
  font-size: 0.82rem;
  font-weight: 700;
  min-height: 38px;
  padding: 8px 12px;
}

.simolah-print-fallback-actions .simolah-print-fallback-primary {
  background: #0d6efd;
  border-color: #0d6efd;
  color: #ffffff;
}

.simolah-print-fallback-actions button:focus-visible {
  outline: 3px solid rgba(13, 110, 253, 0.28);
  outline-offset: 2px;
}

@media (max-width: 767.98px) {
  .simolah-print-fallback-toolbar {
    align-items: stretch;
    flex-direction: column;
    min-width: min(210mm, calc(100vw - 32px));
  }

  .simolah-print-fallback-actions {
    flex-wrap: wrap;
  }

  .simolah-print-fallback-actions button {
    flex: 1 1 150px;
  }
}

.simolah-print-preview .simolah-academic-poster {
  display: block;
  font-family: Arial, Helvetica, sans-serif;
  margin: 0 auto;
  width: 210mm;
}

.simolah-print-preview .simolah-poster-mode-one {
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
  min-height: 297mm;
  padding: 10mm;
}

.simolah-print-preview .simolah-poster-mode-one .simolah-poster-page {
  background: transparent;
  box-shadow: none;
  padding: 0;
}

.simolah-print-preview .simolah-poster-mode-two .simolah-poster-page {
  background: #ffffff;
  box-shadow: 0 18px 48px rgba(15, 23, 42, 0.18);
  box-sizing: border-box;
  min-height: 297mm;
  padding: 10mm;
}

.simolah-print-preview .simolah-poster-mode-two .simolah-poster-page + .simolah-poster-page {
  margin-top: 16px;
}

.simolah-poster-header {
  align-items: center;
  display: grid;
  gap: 4mm;
  grid-template-columns: 62mm 1fr 51mm;
}

.simolah-poster-brand {
  border-right: 1px solid #94a3b8;
  padding-right: 4mm;
}

.simolah-poster-brand img {
  display: block;
  max-height: 18mm;
  max-width: 100%;
  object-fit: contain;
}

.simolah-poster-title h1 {
  color: #073b82;
  font-size: 21pt;
  font-weight: 900;
  line-height: 1;
  margin: 0 0 2mm;
}

.simolah-poster-title h2 {
  color: #16a34a;
  font-size: 12.5pt;
  font-weight: 900;
  line-height: 1.1;
  margin: 0;
}

.simolah-poster-title h3 {
  color: #16a34a;
  font-size: 12pt;
  font-weight: 900;
  line-height: 1.08;
  margin: 1mm 0 0;
}

.simolah-poster-meta {
  display: grid;
  font-size: 6.3pt;
  gap: 0.8mm 1.6mm;
  grid-template-columns: 18mm 1mm 1fr;
  margin: 0;
}

.simolah-poster-meta dt {
  color: #0f172a;
  font-weight: 700;
  margin: 0;
}

.simolah-poster-meta dt::after {
  content: " :";
}

.simolah-poster-meta dd {
  color: #0f172a;
  font-weight: 700;
  grid-column: 3;
  margin: 0;
}

.simolah-poster-rule {
  background: linear-gradient(90deg, #0c6bd8, #1fa64a 52%, #ffb703);
  border-radius: 999px;
  height: 1.6mm;
  margin: 2.6mm 0 2mm;
}

.simolah-poster-summary-header,
.simolah-poster-summary-rule {
  display: none;
}

.simolah-poster-semester-title,
.simolah-poster-recap h3,
.simolah-poster-summaries h3 {
  background: linear-gradient(90deg, #073b82, #0758bb);
  border-radius: 1.2mm;
  color: #ffffff;
  font-size: 8.2pt;
  font-weight: 900;
  line-height: 1.2;
  margin: 0;
  padding: 0.9mm 2mm;
  text-align: center;
  text-transform: uppercase;
}

.simolah-poster-semester-title {
  margin: 1.6mm auto 1.3mm;
  width: 88mm;
}

.simolah-poster-months {
  display: grid;
  gap: 0.75mm;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.simolah-poster-month {
  border: 0.35mm solid #94a3b8;
  border-radius: 1.5mm;
  overflow: hidden;
}

.simolah-poster-month header {
  background: linear-gradient(90deg, #073b82, #0758bb);
  color: #ffffff;
  font-size: 6.5pt;
  font-weight: 900;
  line-height: 1;
  padding: 0.85mm 1mm;
  text-align: center;
}

.simolah-poster-month table,
.simolah-poster-summaries table,
.simolah-poster-recap table {
  border-collapse: collapse;
  width: 100%;
}

.simolah-poster-month th {
  border-bottom: 0.2mm solid #cbd5e1;
  color: #0f172a;
  font-size: 4.25pt;
  font-weight: 800;
  padding: 0.42mm 0.15mm;
  text-align: center;
}

.simolah-poster-month th.is-weekend,
.simolah-poster-month td.is-weekend span {
  color: #dc2626;
}

.simolah-poster-month td {
  height: 3.95mm;
  padding: 0.12mm;
  text-align: center;
  vertical-align: middle;
}

.simolah-poster-month td.is-outside {
  background: #f1f5f9;
}

.simolah-poster-month td span {
  align-items: center;
  border-radius: 999px;
  color: #111827;
  display: inline-flex;
  font-size: 5pt;
  font-weight: 800;
  height: 3.35mm;
  justify-content: center;
  line-height: 1;
  min-width: 3.35mm;
}

.simolah-poster-month td span.has-marker {
  background: var(--poster-marker);
  color: #ffffff;
}

.simolah-poster-month-events {
  display: none;
}

.simolah-poster-legend {
  align-items: center;
  border-bottom: 0.2mm solid #cbd5e1;
  display: flex;
  flex-wrap: wrap;
  gap: 1mm 4mm;
  justify-content: center;
  margin: 1.4mm 0 1.6mm;
  padding-bottom: 1mm;
}

.simolah-poster-legend span {
  align-items: center;
  color: #0f172a;
  display: inline-flex;
  font-size: 6.2pt;
  font-weight: 700;
  gap: 1.4mm;
}

.simolah-poster-legend i {
  border-radius: 999px;
  display: inline-block;
  height: 3mm;
  width: 3mm;
}

.simolah-poster-summaries {
  display: grid;
  gap: 2.2mm;
  grid-template-columns: 1fr 1fr;
  margin-top: 1.5mm;
}

.simolah-poster-summaries h3 {
  background: linear-gradient(90deg, #15803d, #16a34a);
  border-radius: 1mm 1mm 0 0;
}

.simolah-poster-summaries th,
.simolah-poster-summaries td,
.simolah-poster-recap th,
.simolah-poster-recap td {
  border: 0.2mm solid #cbd5e1;
  color: #111827;
  font-size: 4.9pt;
  line-height: 1.12;
  padding: 0.55mm 0.75mm;
  vertical-align: top;
}

.simolah-poster-summaries th,
.simolah-poster-recap th {
  background: #f8fafc;
  font-weight: 900;
  text-align: center;
}

.simolah-poster-summaries td:first-child,
.simolah-poster-recap td:not(:first-child) {
  text-align: center;
}

.simolah-poster-summaries .is-group td,
.simolah-poster-summaries tr.is-group td {
  background: #fef3c7;
  color: #92400e;
  font-weight: 900;
  text-align: center;
}

.simolah-poster-summaries .is-empty {
  color: #64748b;
  font-style: italic;
  text-align: center !important;
}

.simolah-poster-recap {
  margin-top: 1.6mm;
}

.simolah-poster-recap h3 {
  border-radius: 1mm 1mm 0 0;
}

.simolah-poster-recap th small {
  color: #334155;
  font-size: 3.8pt;
  font-weight: 700;
}

.simolah-poster-recap .is-total td {
  background: #eff6ff;
  color: #073b82;
  font-weight: 900;
}

.simolah-poster-recap .is-year-total td {
  background: #ecfccb;
  color: #0f172a;
  font-size: 6.3pt;
  font-weight: 900;
}

.simolah-poster-recap th.simolah-recap-spacer,
.simolah-poster-recap td.simolah-recap-spacer {
  background: transparent !important;
  border-top: none !important;
  border-bottom: none !important;
  border-left: none !important;
  border-right: none !important;
  padding: 0 !important;
  width: 4mm !important;
  min-width: 4mm !important;
  max-width: 4mm !important;
}

.simolah-poster-year-totals {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 1.5mm;
  justify-content: space-between;
  padding: 0.2mm 1mm;
  text-align: center;
  white-space: nowrap;
  width: 100%;
}

.simolah-poster-year-totals span,
.simolah-poster-year-totals strong {
  display: inline-block;
  line-height: 1.15;
}

.simolah-poster-year-totals span {
  color: #073b82;
  font-weight: 900;
}

.simolah-poster-footer {
  align-items: stretch;
  display: grid;
  gap: 5mm;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.4mm;
}

.simolah-poster-notes {
  border-right: 0.2mm solid #cbd5e1;
  padding-right: 4mm;
}

.simolah-poster-notes h3 {
  border: 0.2mm solid #86efac;
  color: #16a34a;
  display: inline-block;
  font-size: 6.8pt;
  font-weight: 900;
  margin: 0 0 1mm;
  padding: 0.7mm 1.4mm;
  text-transform: uppercase;
}

.simolah-poster-notes ol {
  margin: 0;
  padding-left: 5mm;
}

.simolah-poster-notes li,
.simolah-poster-signatures {
  color: #0f172a;
  font-size: 5.6pt;
  line-height: 1.32;
}

.simolah-poster-signature-grid {
  display: grid;
  gap: 8mm;
  grid-template-columns: 1fr 1fr;
  margin-top: 2.5mm;
  text-align: center;
}

.simolah-poster-signature-grid strong {
  display: block;
  font-size: 6.4pt;
  margin-bottom: 10mm;
}

.simolah-poster-signature-grid span,
.simolah-poster-signature-grid small {
  display: block;
}

.simolah-poster-mode-two .simolah-poster-page-calendar {
  display: flex;
  flex-direction: column;
}

.simolah-poster-mode-two .simolah-poster-page-summary {
  display: flex;
  flex-direction: column;
}

.simolah-poster-mode-two .simolah-poster-header {
  gap: 4mm;
  grid-template-columns: 56mm 1fr 55mm;
}

.simolah-poster-mode-two .simolah-poster-brand img {
  max-height: 21mm;
}

.simolah-poster-mode-two .simolah-poster-title h1 {
  font-size: 22pt;
  white-space: nowrap;
}

.simolah-poster-mode-two .simolah-poster-title h2 {
  font-size: 12pt;
}

.simolah-poster-mode-two .simolah-poster-meta {
  font-size: 7pt;
  gap: 1mm 1.6mm;
  grid-template-columns: 20mm 1mm 1fr;
}

.simolah-poster-mode-two .simolah-poster-rule {
  height: 1.4mm;
  margin: 2.4mm 0 2mm;
}

.simolah-poster-mode-two .simolah-poster-summary-header {
  display: grid;
}

.simolah-poster-mode-two .simolah-poster-summary-rule {
  display: block;
}

.simolah-poster-mode-two .simolah-poster-semester-title {
  font-size: 9.6pt;
  margin: 1.8mm auto 1.5mm;
  padding: 1.1mm 2.5mm;
  width: 96mm;
}

.simolah-poster-mode-two .simolah-poster-months {
  gap: 2mm;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simolah-poster-mode-two .simolah-poster-month {
  border-radius: 1.8mm;
  min-height: 51mm;
}

.simolah-poster-mode-two .simolah-poster-month header {
  font-size: 8.4pt;
  padding: 1mm 1.2mm;
}

.simolah-poster-mode-two .simolah-poster-month th {
  font-size: 5.8pt;
  padding: 0.55mm 0.2mm;
}

.simolah-poster-mode-two .simolah-poster-month td {
  height: 4.5mm;
  padding: 0.1mm;
}

.simolah-poster-mode-two .simolah-poster-month td span {
  font-size: 6.6pt;
  height: 3.95mm;
  min-width: 3.95mm;
}

.simolah-poster-mode-two .simolah-poster-month-events {
  border: 0.2mm solid #bfdbfe;
  border-radius: 1.1mm;
  display: grid;
  gap: 0.55mm;
  list-style: none;
  margin: 0.75mm 1mm 1mm;
  min-height: 8.8mm;
  padding: 0.8mm 1mm;
}

.simolah-poster-mode-two .simolah-poster-month-events li {
  align-items: flex-start;
  color: #073b82;
  display: grid;
  font-size: 5.8pt;
  font-weight: 800;
  gap: 0.9mm;
  grid-template-columns: 2.2mm 1fr;
  line-height: 1.12;
}

.simolah-poster-mode-two .simolah-poster-month-events li.is-more {
  color: #64748b;
  display: block;
  font-style: italic;
  font-weight: 700;
  padding-left: 3.1mm;
}

.simolah-poster-mode-two .simolah-poster-month-events i {
  border-radius: 999px;
  display: inline-block;
  height: 2.2mm;
  margin-top: 0.25mm;
  width: 2.2mm;
}

.simolah-poster-mode-two .simolah-poster-legend {
  border-bottom: 0;
  gap: 1.6mm 7mm;
  margin: 2.3mm 0 0;
  padding-bottom: 0;
}

.simolah-poster-mode-two .simolah-poster-legend span {
  font-size: 7.2pt;
}

.simolah-poster-mode-two .simolah-poster-legend i {
  height: 3.2mm;
  width: 3.2mm;
}

.simolah-poster-mode-two .simolah-poster-summaries {
  gap: 3mm;
  grid-template-columns: 1fr;
  margin-top: 2.8mm;
}

.simolah-poster-mode-two .simolah-poster-summaries h3,
.simolah-poster-mode-two .simolah-poster-recap h3 {
  font-size: 11.2pt;
  padding: 1.1mm 2mm;
}

.simolah-poster-mode-two .simolah-poster-summaries th,
.simolah-poster-mode-two .simolah-poster-summaries td {
  font-size: 7.2pt;
  line-height: 1.18;
  padding: 0.65mm 1mm;
}

.simolah-poster-mode-two .simolah-poster-recap {
  margin-top: 3mm;
}

.simolah-poster-mode-two .simolah-poster-recap th,
.simolah-poster-mode-two .simolah-poster-recap td {
  font-size: 7pt;
  line-height: 1.18;
  padding: 0.65mm 0.8mm;
}

.simolah-poster-mode-two .simolah-poster-recap th small {
  font-size: 5.3pt;
}

.simolah-poster-mode-two .simolah-poster-year-totals {
  font-size: 7.5pt;
  gap: 1.5mm;
}

.simolah-poster-mode-two .simolah-poster-footer {
  gap: 7mm;
  margin-top: 4mm;
}

.simolah-poster-mode-two .simolah-poster-notes h3 {
  font-size: 8pt;
}

.simolah-poster-mode-two .simolah-poster-notes li,
.simolah-poster-mode-two .simolah-poster-signatures {
  font-size: 7pt;
}

.simolah-poster-mode-two .simolah-poster-signature-grid {
  margin-top: 4mm;
}

.simolah-poster-mode-two .simolah-poster-signature-grid strong {
  font-size: 7.5pt;
  margin-bottom: 14mm;
}

.simolah-metric-tile {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-left: 5px solid var(--tile-color, var(--simolah-primary));
  border-radius: 8px;
  box-shadow: 0 10px 26px rgba(15, 23, 42, 0.06);
  min-height: 112px;
  padding: 1rem;
}

.simolah-metric-tile span {
  color: #64748b;
  display: block;
  font-size: 0.74rem;
  font-weight: 800;
  letter-spacing: 0;
}

.simolah-metric-tile strong {
  color: #111827;
  display: block;
  font-size: 1.75rem;
  line-height: 1.1;
  margin: 0.25rem 0;
}

.simolah-metric-tile small {
  color: #64748b;
  line-height: 1.35;
}

.simolah-metric-tile.is-school-day {
  --tile-color: #0f766e;
}

.simolah-metric-tile.is-learning-day {
  --tile-color: #2563eb;
}

.simolah-metric-tile.is-school-week {
  --tile-color: #f59e0b;
}

.simolah-metric-tile.is-learning-week {
  --tile-color: #7c3aed;
}

.simolah-kbm-report-head {
  align-items: flex-start;
  background: linear-gradient(135deg, rgba(102, 99, 255, 0.1), rgba(14, 165, 233, 0.08));
  border-bottom: 1px solid rgba(100, 116, 139, 0.18);
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem;
}

.simolah-kbm-report-head h5 {
  color: #27314f;
  font-weight: 800;
}

.simolah-kbm-report-head p {
  color: #64748b;
  font-size: 0.86rem;
  line-height: 1.45;
}

.simolah-report-eyebrow {
  color: var(--simolah-primary);
  display: block;
  font-size: 0.72rem;
  font-weight: 800;
  letter-spacing: 0;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.simolah-kbm-report-legend {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
  justify-content: flex-end;
  min-width: 230px;
}

.simolah-kbm-report-legend span {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 6px;
  color: #475569;
  font-size: 0.76rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.42rem 0.55rem;
}

.simolah-kbm-summary-strip,
.simolah-kbm-detail-intro {
  background: #f8fafc !important;
}

.simolah-kbm-summary-card {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-left: 4px solid #64748b;
  border-radius: 8px;
  min-height: 74px;
  padding: 0.85rem;
}

.simolah-kbm-summary-card span {
  color: #64748b;
  display: block;
  font-size: 0.75rem;
  font-weight: 800;
}

.simolah-kbm-summary-card strong {
  color: #1f2a44;
  display: block;
  font-size: 1.25rem;
  line-height: 1.1;
  margin-top: 0.22rem;
}

.simolah-kbm-summary-card.is-success {
  border-left-color: #16a34a;
}

.simolah-kbm-summary-card.is-info {
  border-left-color: #0284c7;
}

.simolah-kbm-summary-card.is-warning {
  border-left-color: #d97706;
}

.simolah-kbm-summary-card.is-danger {
  border-left-color: #dc2626;
}

.simolah-kbm-summary-card.is-muted {
  border-left-color: #94a3b8;
}

.simolah-kbm-report-print .table {
  border-color: rgba(100, 116, 139, 0.18);
}

.simolah-kbm-report-print .table thead th {
  color: #566276;
  font-size: 0.76rem;
  font-weight: 800;
  text-transform: uppercase;
}

.simolah-kbm-print-header,
.simolah-kbm-print-rule,
.simolah-kbm-print-signatures,
.simolah-kbm-print-footer {
  display: none;
}

.simolah-kbm-report-panels {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 1rem;
}

.simolah-kbm-report-panel {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.simolah-kbm-report-panel h6 {
  background: #0b3f91;
  color: #ffffff;
  font-weight: 800;
  margin: 0;
  padding: 0.62rem 0.85rem;
  text-align: center;
}

.simolah-kbm-report-panel table {
  margin: 0;
  width: 100%;
}

.simolah-kbm-report-panel td {
  border-bottom: 1px solid rgba(100, 116, 139, 0.16);
  padding: 0.48rem 0.7rem;
}

.simolah-kbm-report-panel td:last-child {
  font-weight: 800;
  text-align: right;
}

.simolah-kbm-report-panel ol,
.simolah-kbm-report-panel ul {
  color: #334155;
  margin: 0;
  padding: 0.85rem 1rem 0.85rem 1.6rem;
}

.simolah-kbm-report-panel li + li {
  margin-top: 0.35rem;
}

.simolah-print-header {
  display: none;
  margin-bottom: 1rem;
  text-align: center;
}

.simolah-print-signature {
  display: none;
  margin-left: auto;
  margin-top: 3rem;
  max-width: 260px;
  min-height: 120px;
  text-align: left;
}

.simolah-bottom-nav {
  align-items: center;
  background: rgba(255, 255, 255, 0.96);
  border-top: 1px solid rgba(100, 116, 139, 0.16);
  bottom: 0;
  box-shadow: 0 -10px 24px rgba(31, 41, 55, 0.08);
  display: grid;
  grid-template-columns: repeat(5, 1fr);
  left: 0;
  padding: 0.45rem 0.25rem calc(0.45rem + env(safe-area-inset-bottom));
  position: fixed;
  right: 0;
  z-index: 1080;
}

.simolah-bottom-nav a {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  font-size: 0.72rem;
  gap: 0.18rem;
  min-height: 48px;
  justify-content: center;
  text-decoration: none;
}

.simolah-bottom-nav i {
  font-size: 1.25rem;
}

.simolah-bottom-nav a.active {
  color: var(--simolah-primary);
}

.layout-menu .menu-item.simolah-menu-disabled > .menu-link {
  cursor: not-allowed;
  opacity: 0.62;
}

.layout-menu .menu-item.simolah-menu-disabled > .menu-link .menu-icon {
  opacity: 0.76;
}

.simolah-menu-link-label {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  min-width: 0;
  width: 100%;
}

.simolah-menu-link-label span {
  min-width: 0;
}

.simolah-menu-badge {
  background: #4752db;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  color: #fff;
  flex-shrink: 0;
  font-size: 0.58rem;
  font-weight: 700;
  letter-spacing: 0;
  line-height: 1;
  padding: 0.18rem 0.38rem;
}

.simolah-menu-badge[hidden] {
  display: none !important;
}

.layout-menu .menu-link > .simolah-menu-badge,
.student-portal .dropdown-item > .simolah-menu-badge {
  margin-left: auto;
}

.student-portal-bottom-nav button,
.student-portal-more-grid > a {
  position: relative;
}

.student-portal-bottom-nav .simolah-menu-badge {
  position: absolute;
  right: calc(50% - 22px);
  top: 4px;
}

.student-portal-more-grid > a > .simolah-menu-badge {
  margin-left: auto;
}

@media (max-width: 575.98px) {
  .student-portal .student-portal-curhat-activity {
    align-items: stretch;
    flex-direction: column;
  }

  .student-portal .student-portal-curhat-activity .btn {
    width: 100%;
  }

  .student-portal .student-portal-card-head:has(.student-portal-curhat-summary) {
    align-items: stretch;
    flex-direction: column;
  }

  .student-portal .student-portal-curhat-summary {
    justify-content: flex-start;
  }
}

@media (max-width: 767.98px) {
  .container-p-y {
    padding-top: 1rem !important;
  }

  .simolah-toast-stack {
    left: 0.75rem;
    max-width: none;
    right: 0.75rem;
    top: 0.75rem;
    width: auto;
  }

  .simolah-toast {
    grid-template-columns: auto 1fr auto;
    min-height: 68px;
    padding: 0.85rem;
  }

  .simolah-credit {
    flex-direction: column;
    font-size: 0.78rem;
    gap: 0.08rem;
  }

  .simolah-credit-separator {
    display: none;
  }

  .simolah-login-page {
    display: block;
  }

  .simolah-login-main {
    display: block;
  }

  .simolah-login-shell {
    display: block;
    padding: 1.25rem 1rem 1.75rem;
  }

  .simolah-login-branding {
    padding: 0.5rem 0 1.25rem;
  }

  .simolah-login-branding::before,
  .simolah-login-branding::after,
  .simolah-login-branding-copy,
  .simolah-login-features {
    display: none;
  }

  .simolah-login-brandmark {
    max-width: 210px;
  }

  .simolah-login-card {
    border-radius: 1.25rem;
  }

  .simolah-login-card .card-body {
    padding: 1.5rem;
  }

  .simolah-login-form {
    margin-top: 1.75rem;
  }

  .simolah-login-auth .simolah-credit {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .simolah-hero {
    align-items: flex-start;
    flex-direction: column;
    min-height: 0;
  }

  .simolah-hero-logo {
    max-height: 64px;
    max-width: 72%;
  }

  .simolah-hero h2 {
    font-size: 1.35rem;
  }

  .simolah-action-card {
    min-height: 124px;
    padding: 0.85rem;
  }

  .simolah-calendar-tabs {
    overflow-x: auto;
    padding-bottom: 0.1rem;
    white-space: nowrap;
  }

  .simolah-calendar-grid,
  .simolah-calendar-grid-3,
  .simolah-calendar-grid-6,
  .simolah-calendar-grid-12 {
    grid-template-columns: minmax(0, 1fr);
  }

  .simolah-national-status {
    grid-template-columns: minmax(0, 1fr);
  }

  .simolah-semester-total-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-calendar-day {
    min-height: 82px;
    padding: 0.38rem 0.3rem;
  }

  .simolah-calendar-chip {
    font-size: 0.62rem;
  }

  .simolah-kbm-report-head {
    flex-direction: column;
  }

  .simolah-kbm-report-legend {
    justify-content: flex-start;
    min-width: 0;
  }
}

@media (min-width: 768px) and (max-width: 1199.98px) {
  .simolah-calendar-grid,
  .simolah-calendar-grid-3,
  .simolah-calendar-grid-6,
  .simolah-calendar-grid-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Compact Table Cell Wrappers for Long Text (Mata Pelajaran, Guru, dll) without Horizontal Scrolling */
.simolah-cell-subject {
  max-width: 210px;
  white-space: normal !important;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.35;
}

.simolah-cell-teacher {
  max-width: 190px;
  white-space: normal !important;
  word-wrap: break-word;
  word-break: break-word;
  line-height: 1.35;
}

@media print {
  @page {
    margin: 10mm;
    size: A4 portrait;
  }

  @page simolah-kbm-portrait {
    margin: 10mm;
    size: A4 portrait;
  }

  @page simolah-kbm-landscape {
    margin: 10mm;
    size: A4 landscape;
  }

  body {
    background: #ffffff !important;
    print-color-adjust: exact;
    -webkit-print-color-adjust: exact;
  }

  .simolah-print-preview {
    background: #ffffff !important;
    padding: 0 !important;
  }

  .layout-menu,
  .layout-navbar,
  .content-footer,
  .simolah-bottom-nav,
  .menu-mobile-toggler,
  .simolah-print-hide,
  .simolah-toast-stack {
    display: none !important;
  }

  .layout-wrapper,
  .layout-container,
  .layout-page,
  .content-wrapper,
  .container-xxl,
  .simolah-page {
    margin: 0 !important;
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .card {
    border: 0 !important;
    box-shadow: none !important;
  }

  .card-body {
    padding: 0 !important;
  }

  .simolah-calendar-print {
    display: none !important;
  }

  .simolah-academic-poster {
    display: block !important;
    font-family: Arial, Helvetica, sans-serif;
    width: 100%;
  }

  .simolah-print-preview .simolah-academic-poster,
  .simolah-print-preview .simolah-poster-mode-one,
  .simolah-print-preview .simolah-poster-mode-two .simolah-poster-page {
    box-shadow: none !important;
    min-height: auto !important;
    padding: 0 !important;
    width: 100% !important;
  }

  .simolah-print-preview .simolah-poster-mode-two .simolah-poster-page + .simolah-poster-page {
    margin-top: 0 !important;
  }

  .simolah-poster-mode-two .simolah-poster-page-calendar {
    break-after: page;
    page-break-after: always;
  }

  body.simolah-print-kbm-report * {
    visibility: hidden !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print,
  body.simolah-print-kbm-report .simolah-kbm-report-print * {
    visibility: visible !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print {
    background: #ffffff !important;
    position: static !important;
    width: 100% !important;
  }

  body.simolah-print-kbm-report .layout-wrapper,
  body.simolah-print-kbm-report .layout-container,
  body.simolah-print-kbm-report .layout-page,
  body.simolah-print-kbm-report .content-wrapper,
  body.simolah-print-kbm-report .simolah-page,
  body.simolah-print-kbm-report .card {
    background: #ffffff !important;
    box-shadow: none !important;
    margin: 0 !important;
    max-width: none !important;
    min-height: 0 !important;
    padding: 0 !important;
    position: static !important;
    transform: none !important;
    width: 100% !important;
  }

  body.simolah-print-kbm-report .simolah-page > .row,
  body.simolah-print-kbm-report .simolah-page > .card > .card-header {
    display: none !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print .table-responsive {
    overflow: visible !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-header {
    align-items: center;
    display: grid !important;
    gap: 7mm;
    grid-template-columns: 52mm 1fr 65mm;
    margin-bottom: 4mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-brand {
    border-right: 1px solid #94a3b8;
    padding-right: 6mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-brand img {
    display: block;
    max-height: 25mm;
    max-width: 100%;
    object-fit: contain;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-title h1 {
    color: #052b73 !important;
    font-size: 20pt;
    font-weight: 900;
    letter-spacing: 0;
    line-height: 1.08;
    margin: 0;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-title h2 {
    color: #006bd6 !important;
    font-size: 14pt;
    font-weight: 800;
    line-height: 1.15;
    margin: 1.5mm 0 0;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-title strong {
    color: #0f9f43 !important;
    display: block;
    font-size: 13pt;
    margin-top: 1.5mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-meta {
    color: #052b73 !important;
    display: grid;
    font-size: 8.5pt;
    gap: 1mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-meta div {
    display: grid;
    gap: 2mm;
    grid-template-columns: 25mm 1fr;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-meta span::after {
    content: " :";
  }

  body.simolah-print-kbm-report .simolah-kbm-print-meta b {
    font-weight: 700;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-rule {
    background: linear-gradient(90deg, #0b74de 0%, #00a651 58%, #f59e0b 100%) !important;
    border-radius: 999px;
    display: block !important;
    height: 2.2mm;
    margin: 0 0 5mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-head {
    display: none !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-head h5 {
    font-size: 14pt;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-head p,
  body.simolah-print-kbm-report .simolah-kbm-report-legend span {
    font-size: 8.5pt;
  }

  body.simolah-print-kbm-report .simolah-kbm-summary-strip,
  body.simolah-print-kbm-report .simolah-kbm-detail-intro {
    background: #ffffff !important;
    border: 0 !important;
    padding: 0 0 4mm !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-summary-strip .row {
    display: grid !important;
    gap: 3mm !important;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin: 0 !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-summary-strip [class*="col-"] {
    max-width: none !important;
    padding: 0 !important;
    width: 100% !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-summary-card {
    align-items: center;
    border: 1px solid #b6c6de;
    border-radius: 2mm;
    display: flex;
    gap: 2mm;
    justify-content: space-between;
    min-height: 16mm;
    padding: 2.2mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-summary-card span {
    color: #052b73 !important;
    font-size: 7.5pt;
    line-height: 1.15;
  }

  body.simolah-print-kbm-report .simolah-kbm-summary-card strong {
    color: #052b73 !important;
    font-size: 16pt;
    margin: 0;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print table {
    border-collapse: collapse !important;
    font-size: 8.2pt;
    width: 100% !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print th,
  body.simolah-print-kbm-report .simolah-kbm-report-print td {
    border: 1px solid #bfd0e6 !important;
    line-height: 1.25;
    padding: 1.6mm !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print thead th {
    background: #eef6ff !important;
    color: #052b73 !important;
    font-size: 7.6pt;
    text-transform: none;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print .table-light th {
    background: #eef6ff !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-panels {
    display: grid !important;
    gap: 5mm;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 5mm 0 0;
    page-break-inside: avoid;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-panel {
    border: 1px solid #bfd0e6;
    border-radius: 2mm;
    overflow: hidden;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-panel h6 {
    background: #073b88 !important;
    color: #ffffff !important;
    font-size: 10pt;
    padding: 1.8mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-panel td {
    font-size: 8pt;
    padding: 1.4mm 2mm !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-panel ol,
  body.simolah-print-kbm-report .simolah-kbm-report-panel ul {
    font-size: 8.2pt;
    line-height: 1.55;
    padding: 3mm 4mm 3mm 7mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-signatures {
    display: grid !important;
    gap: 12mm;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: 8mm;
    page-break-inside: avoid;
    text-align: center;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-signatures div {
    min-height: 28mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-signatures span,
  body.simolah-print-kbm-report .simolah-kbm-print-signatures strong,
  body.simolah-print-kbm-report .simolah-kbm-print-signatures small {
    color: #052b73 !important;
    display: block;
    font-size: 8.5pt;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-signatures em {
    border-bottom: 1px solid #052b73;
    display: block;
    height: 18mm;
    margin: 0 auto 1.5mm;
    width: 55mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-footer {
    align-items: center;
    border-top: 1.5px solid #0b3f91;
    color: #052b73 !important;
    display: grid !important;
    font-size: 7.5pt;
    gap: 5mm;
    grid-template-columns: 26mm 1fr 1fr auto;
    margin-top: 5mm;
    padding-top: 2mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-print-footer img {
    max-height: 9mm;
    object-fit: contain;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print.is-meetings-report table {
    font-size: 6.6pt;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print.is-meetings-report th,
  body.simolah-print-kbm-report .simolah-kbm-report-print.is-meetings-report td {
    padding: 1mm !important;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print.is-meetings-report .simolah-kbm-print-header {
    grid-template-columns: 50mm 1fr 75mm;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print.is-meetings-report .simolah-kbm-print-title h1 {
    font-size: 17pt;
  }

  body.simolah-print-kbm-report .simolah-kbm-report-print.is-meetings-report .simolah-kbm-print-title h2 {
    font-size: 12pt;
  }

  .simolah-print-header,
  .simolah-print-signature {
    display: block;
  }

  .simolah-calendar-grid,
  .simolah-calendar-grid-1,
  .simolah-calendar-grid-3,
  .simolah-calendar-grid-6,
  .simolah-calendar-grid-12 {
    gap: 0.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .simolah-calendar-month {
    break-inside: avoid;
    border-color: #94a3b8;
  }

  .simolah-calendar-month-title {
    background: #bfdbfe !important;
    color: #000000 !important;
    font-size: 0.82rem;
    padding: 0.35rem;
  }

  .simolah-calendar-weekdays div {
    font-size: 0.62rem;
    padding: 0.18rem;
  }

  .simolah-calendar-day {
    min-height: 49px;
    padding: 0.18rem;
  }

  .simolah-calendar-day-number {
    font-size: 0.6rem;
  }

  .simolah-calendar-chip {
    box-shadow: none;
    font-size: 0.48rem;
    padding: 0.1rem 0.18rem;
  }

  .simolah-event-summary,
  .simolah-heb-summary,
  .simolah-heb-semester-recap {
    break-inside: avoid;
  }

  .simolah-heb-semester-recap {
    border-color: #94a3b8;
    margin-top: 0.45rem !important;
    padding: 0.55rem;
  }

  .simolah-semester-total {
    background: #ffffff !important;
    border-color: #94a3b8;
    box-shadow: none;
    padding: 0.55rem;
  }

  .simolah-semester-total-grid {
    gap: 0.35rem;
  }

  .simolah-semester-total-grid span {
    padding: 0.38rem;
  }

  .table {
    font-size: 0.62rem;
  }
}

/* Guru Wali workspace refinement */
.student-advisor-workspace {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  grid-template-areas:
    "heading action"
    "tabs summary";
  column-gap: 1rem;
  row-gap: 0.7rem;
  margin-bottom: 1.25rem;
}

.student-advisor-workspace:not(.is-detail-context) {
  background:
    radial-gradient(circle at 92% 8%, rgba(99, 102, 241, 0.1), transparent 12rem),
    linear-gradient(112deg, #fff 0%, #fafaff 66%, #f1f1ff 100%);
  border: 1px solid rgba(99, 102, 241, 0.14);
  border-radius: 1rem;
  padding: 0.9rem 1rem 0.5rem;
}

.student-advisor-workspace__heading {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  grid-area: heading;
  min-width: 0;
}

.student-advisor-workspace__heading > div {
  min-width: 0;
}

.student-advisor-workspace__icon {
  align-items: center;
  background: #eeeeff;
  border: 1px solid rgba(85, 72, 232, 0.14);
  border-radius: 0.7rem;
  color: #5548e8;
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.student-advisor-workspace__icon .ri {
  background-color: currentColor;
  font-size: 1.2rem;
}

.student-advisor-workspace__heading p {
  font-size: 0.875rem;
}

.student-advisor-workspace__heading h4 {
  color: #1d273b;
  letter-spacing: -0.02em;
}

.student-advisor-workspace__period {
  display: inline-flex;
  align-items: center;
  gap: 0.35rem;
  color: var(--bs-secondary-color);
  font-size: 0.8125rem;
  font-weight: 500;
}

.student-advisor-workspace__action {
  grid-area: action;
  align-self: end;
}

.student-advisor-workspace__tabs {
  grid-area: tabs;
  display: flex;
  min-width: 0;
  gap: 0.3rem;
  overflow-x: auto;
  overflow-y: hidden;
  border: 1px solid rgba(var(--bs-emphasis-color-rgb), 0.08);
  border-radius: 0.75rem;
  background: #f5f6fa;
  padding: 0.25rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.student-advisor-workspace:not(.is-detail-context) .student-advisor-workspace__tabs {
  border-color: rgba(99, 102, 241, 0.12);
}

.student-advisor-workspace__tab {
  position: relative;
  display: inline-flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 0.4rem;
  min-height: 38px;
  padding: 0.45rem 0.7rem;
  border: 1px solid transparent;
  border-radius: 0.55rem;
  color: var(--bs-secondary-color);
  font-size: 0.875rem;
  font-weight: 500;
  text-decoration: none;
  white-space: nowrap;
}

.student-advisor-workspace__tab:hover {
  color: var(--bs-primary);
}

.student-advisor-workspace__tab.is-active {
  background: #fff;
  border-color: #dfe3ee;
  box-shadow: 0 3px 9px rgba(33, 45, 78, 0.06);
  color: var(--bs-primary);
  font-weight: 700;
}

.student-advisor-workspace__tab:focus-visible,
.student-advisor-workspace__action .btn:focus-visible {
  outline: 3px solid rgba(var(--bs-primary-rgb), 0.3);
  outline-offset: 2px;
}

.student-advisor-workspace__summary {
  grid-area: summary;
  display: flex;
  align-items: center;
  align-self: end;
  flex-wrap: wrap;
  justify-content: flex-end;
  gap: 0.4rem;
  min-height: 38px;
  padding-bottom: 0.15rem;
}

.student-advisor-tag {
  display: inline-flex;
  align-items: center;
  max-width: 100%;
  gap: 0.3rem;
  overflow: hidden;
  border: 1px solid transparent !important;
  border-radius: 999px;
  font-size: 0.7rem;
  font-weight: 800;
  line-height: 1.15;
  padding: 0.34rem 0.52rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-advisor-tag strong {
  color: currentColor;
  font-size: 0.8rem;
  font-weight: 800;
}

.student-advisor-workspace__summary .student-advisor-tag {
  min-height: 32px;
}

.student-advisor-workspace .student-advisor-tag.bg-label-primary,
.student-advisor-table .student-advisor-tag.bg-label-primary,
.student-advisor-detail .student-advisor-tag.bg-label-primary {
  background: #eeecff !important;
  border-color: #d8d5ff !important;
  color: #4f46c9 !important;
}

.student-advisor-workspace .student-advisor-tag.bg-label-secondary,
.student-advisor-table .student-advisor-tag.bg-label-secondary,
.student-advisor-detail .student-advisor-tag.bg-label-secondary {
  background: #f0f2f5 !important;
  border-color: #e0e4ea !important;
  color: #475467 !important;
}

.student-advisor-workspace .student-advisor-tag.bg-label-success,
.student-advisor-table .student-advisor-tag.bg-label-success,
.student-advisor-detail .student-advisor-tag.bg-label-success {
  background: #e9f7ed !important;
  border-color: #c3e9d0 !important;
  color: #137333 !important;
}

.student-advisor-workspace .student-advisor-tag.bg-label-info,
.student-advisor-table .student-advisor-tag.bg-label-info,
.student-advisor-detail .student-advisor-tag.bg-label-info {
  background: #eaf5ff !important;
  border-color: #c8e5fb !important;
  color: #0f609b !important;
}

.student-advisor-workspace .student-advisor-tag.bg-label-warning,
.student-advisor-table .student-advisor-tag.bg-label-warning,
.student-advisor-detail .student-advisor-tag.bg-label-warning {
  background: #fff4df !important;
  border-color: #f6daa2 !important;
  color: #9a5b00 !important;
}

.student-advisor-workspace .student-advisor-tag.bg-label-danger,
.student-advisor-table .student-advisor-tag.bg-label-danger,
.student-advisor-detail .student-advisor-tag.bg-label-danger {
  background: #fff0f1 !important;
  border-color: #f8c8cd !important;
  color: #b4232d !important;
}

.student-advisor-info-callout {
  display: flex;
  align-items: flex-start;
  gap: 0.55rem;
  margin-bottom: 1rem;
  padding: 0.65rem 0.8rem;
  border: 1px solid rgba(var(--bs-info-rgb), 0.2);
  border-radius: var(--bs-border-radius);
  background: rgba(var(--bs-info-rgb), 0.08);
  color: var(--bs-body-color);
  font-size: 0.8125rem;
  line-height: 1.45;
}

.student-advisor-info-callout > i {
  flex: 0 0 auto;
  color: var(--bs-info);
  font-size: 1rem;
  line-height: 1.25rem;
}

.student-advisor-assignments__card > .card-body {
  padding: 1.1rem 1.25rem;
}

.student-advisor-filter .form-label,
.student-advisor-bulk-panel .form-label {
  margin-bottom: 0.35rem;
  font-size: 0.8125rem;
  font-weight: 600;
}

.student-advisor-bulk-panel {
  margin-bottom: 1rem;
  padding: 0.9rem;
  border: 1px solid var(--bs-border-color);
  border-radius: var(--bs-border-radius);
  background: rgba(var(--bs-secondary-rgb), 0.035);
}

.student-advisor-bulk-panel > .col-12:last-child {
  margin-top: 0.65rem;
}

.student-advisor-table-wrap {
  border: 1px solid #e5e9f1;
  border-radius: var(--bs-border-radius);
  overflow-x: auto;
  overflow-y: hidden;
}

.student-advisor-table {
  margin-bottom: 0;
}

.student-advisor-table > :not(caption) > * > * {
  padding-top: 0.65rem;
  padding-bottom: 0.65rem;
}

.student-advisor-table > thead > tr > th {
  background: rgba(var(--bs-secondary-rgb), 0.045);
  color: var(--bs-secondary-color);
  font-size: 0.75rem;
  letter-spacing: 0.025em;
  text-transform: uppercase;
}

@media (min-width: 992px) {
  .student-advisor-assignment-table,
  .student-advisor-my-students-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .student-advisor-assignment-table > :not(caption) > * > *,
  .student-advisor-my-students-table > :not(caption) > * > * {
    min-width: 0;
    overflow: hidden;
    padding-inline: 0.55rem;
  }

  .student-advisor-assignment-table th:nth-child(1) { width: 5%; }
  .student-advisor-assignment-table th:nth-child(2) { width: 21%; }
  .student-advisor-assignment-table th:nth-child(3) { width: 10%; }
  .student-advisor-assignment-table th:nth-child(4) { width: 18%; }
  .student-advisor-assignment-table th:nth-child(5) { width: 10%; }
  .student-advisor-assignment-table th:nth-child(6) { width: 36%; }

  .student-advisor-my-students-table th:nth-child(1) { width: 21%; }
  .student-advisor-my-students-table th:nth-child(2) { width: 13%; }
  .student-advisor-my-students-table th:nth-child(3) { width: 25%; }
  .student-advisor-my-students-table th:nth-child(4) { width: 10%; }
  .student-advisor-my-students-table th:nth-child(5) { width: 21%; }
  .student-advisor-my-students-table th:nth-child(6) { width: 10%; }

  .student-advisor-assignment-table td[data-label="Siswa"] a,
  .student-advisor-assignment-table td[data-label="Siswa"] .small,
  .student-advisor-my-students-table td[data-label="Siswa"] > div,
  .student-advisor-my-students-table td[data-label="Siswa"] > small {
    display: block;
    overflow: hidden;
    overflow-wrap: anywhere;
    white-space: normal;
  }

  .student-advisor-assignment-table td[data-label="Siswa"] a {
    line-height: 1.28;
  }

  .student-advisor-assignment-table td[data-label="Siswa"] .small,
  .student-advisor-my-students-table td[data-label="Siswa"] > small {
    white-space: nowrap;
    text-overflow: ellipsis;
  }

  .student-advisor-reports-table {
    min-width: 0;
    table-layout: fixed;
    width: 100%;
  }

  .student-advisor-reports-table > :not(caption) > * > * {
    min-width: 0 !important;
    overflow-wrap: anywhere;
    padding: 0.55rem 0.5rem;
    vertical-align: top;
  }

  .student-advisor-reports-table th:nth-child(1) { width: 9%; }
  .student-advisor-reports-table th:nth-child(2) { width: 17%; }
  .student-advisor-reports-table th:nth-child(3) { width: 14%; }
  .student-advisor-reports-table th:nth-child(4) { width: 11%; }
  .student-advisor-reports-table th:nth-child(5) { width: 16%; }
  .student-advisor-reports-table th:nth-child(6) { width: 19%; }
  .student-advisor-reports-table th:nth-child(7) { width: 14%; }
  .student-advisor-reports-table td[data-label="Tanggal"] {
    white-space: nowrap;
  }
  .student-advisor-reports-table td[data-label="Siswa"] a {
    display: block;
    font-weight: 700;
    line-height: 1.28;
  }
  .student-advisor-reports-table td[data-label="Catatan"],
  .student-advisor-reports-table td[data-label="Tindak Lanjut"] {
    font-size: 0.75rem;
    line-height: 1.38;
  }

  .student-advisor-assignment-table td[data-label="Kelola Penugasan"] {
    overflow: visible;
  }
}

.student-advisor-list-header {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.75rem 1rem;
  justify-content: space-between;
}

.student-advisor-month-filter,
.student-advisor-export-actions {
  display: flex;
  gap: 0.5rem;
}

.student-advisor-attendance-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.student-advisor-attendance-chips span {
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.32rem 0.46rem;
}

.student-advisor-attendance-chips .is-present {
  background: #ecfdf3;
  color: #168053;
}

.student-advisor-attendance-chips .is-late {
  background: #eff6ff;
  color: #2563eb;
}

.student-advisor-attendance-chips .is-permit {
  background: #fff7ed;
  color: #d97706;
}

.student-advisor-attendance-chips .is-absent {
  background: #fef2f2;
  color: #dc2626;
}

.student-advisor-section-heading {
  margin-bottom: 0.85rem;
}

.student-advisor-section-heading p {
  font-size: 0.8125rem;
}

.student-advisor-monitoring__stat {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-height: 84px;
  padding: 0.9rem;
}

.student-advisor-monitoring__icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 0.65rem;
  color: #4f46e5;
  display: inline-flex;
  flex: 0 0 40px;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.student-advisor-monitoring__icon.is-success {
  background: #ecfdf3;
  color: #168053;
}

.student-advisor-monitoring__icon.is-warning {
  background: #fff7ed;
  color: #d97706;
}

.student-advisor-monitoring__icon.is-danger {
  background: #fef2f2;
  color: #dc2626;
}

.student-advisor-monitoring__icon.is-info {
  background: #eff6ff;
  color: #2563eb;
}

.student-advisor-monitoring__stat strong {
  color: #202a3c;
  display: block;
  font-size: 1.45rem;
  line-height: 1.05;
  margin-top: 0.15rem;
}

.student-advisor-reports > .card-header {
  padding-bottom: 0.85rem;
}

.student-advisor-student-heading {
  margin-top: -0.15rem;
}

.student-advisor-workspace.is-detail-context {
  align-items: center;
  grid-template-areas: "tabs action";
  grid-template-columns: minmax(0, 1fr) auto;
  margin-bottom: 0.85rem;
}

.student-advisor-workspace.is-detail-context .student-advisor-workspace__tabs {
  border-bottom-width: 1px;
}

.student-advisor-workspace.is-detail-context .student-advisor-workspace__action {
  align-self: center;
}

.student-advisor-detail {
  --advisor-detail-border: #e3e8f2;
  --advisor-detail-muted: #68758c;
  --advisor-detail-primary: #5548e8;
  --advisor-detail-primary-soft: #f0f0ff;
  --advisor-status-present: #16a34a;
  --advisor-status-present-soft: #ecfdf3;
  --advisor-status-late: #d97706;
  --advisor-status-late-soft: #fff7ed;
  --advisor-status-info: #2563eb;
  --advisor-status-info-soft: #eff6ff;
  --advisor-status-sick: #e11d48;
  --advisor-status-sick-soft: #fff1f2;
  --advisor-status-danger: #dc2626;
  --advisor-status-danger-soft: #fef2f2;
  --advisor-status-net: #4f46e5;
  --advisor-status-net-soft: #eef2ff;
  color: #172033;
  min-width: 0;
}

.student-advisor-detail-hero {
  align-items: center;
  background:
    radial-gradient(circle at 88% 18%, rgba(99, 102, 241, 0.12), transparent 14rem),
    linear-gradient(112deg, #fff 0%, #f9f9ff 64%, #f0f1ff 100%);
  border: 1px solid #dfe3f3;
  border-radius: 1rem;
  display: flex;
  gap: 1.25rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  min-height: 122px;
  overflow: hidden;
  padding: 1.1rem 1.25rem;
}

.student-advisor-detail-hero__identity {
  min-width: 0;
}

.student-advisor-detail-back {
  align-items: center;
  color: var(--advisor-detail-muted);
  display: inline-flex;
  font-size: 0.75rem;
  font-weight: 700;
  gap: 0.3rem;
  margin-bottom: 0.65rem;
}

.student-advisor-detail-back:hover,
.student-advisor-detail-back:focus-visible {
  color: var(--advisor-detail-primary);
}

.student-advisor-detail-hero__student {
  align-items: center;
  display: flex;
  gap: 0.85rem;
  min-width: 0;
}

.student-advisor-detail-avatar {
  align-items: center;
  background: var(--advisor-detail-primary-soft);
  border: 1px solid rgba(85, 72, 232, 0.16);
  border-radius: 0.85rem;
  color: var(--advisor-detail-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.45rem;
  font-weight: 800;
  height: 58px;
  justify-content: center;
  width: 58px;
}

.student-advisor-detail-eyebrow,
.student-advisor-panel-heading p,
.student-advisor-section-head p {
  color: var(--advisor-detail-primary);
  font-size: 0.64rem;
  font-weight: 800;
  letter-spacing: 0.065em;
  margin: 0;
  text-transform: uppercase;
}

.student-advisor-detail-hero h1 {
  color: #172033;
  font-size: clamp(1.35rem, 2.2vw, 1.8rem);
  letter-spacing: -0.025em;
  margin: 0.08rem 0 0.2rem;
}

.student-advisor-detail-hero__student p:last-child {
  color: var(--advisor-detail-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.76rem;
  gap: 0.35rem 0.8rem;
  margin: 0;
}

.student-advisor-detail-hero__student p:last-child span {
  align-items: center;
  display: inline-flex;
}

.student-advisor-detail-hero__student p:last-child span + span::before {
  background: #aab3c5;
  border-radius: 50%;
  content: "";
  height: 4px;
  margin-right: 0.8rem;
  width: 4px;
}

.student-advisor-detail-hero__action {
  flex: 0 0 auto;
  min-height: 42px;
}

.student-advisor-insight-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.student-advisor-insight-card {
  align-items: center;
  background: #fff;
  border: 1px solid var(--advisor-detail-border);
  border-radius: 0.85rem;
  display: flex;
  gap: 0.75rem;
  min-height: 96px;
  min-width: 0;
  padding: 1rem;
}

.student-advisor-insight-card__icon,
.student-advisor-panel-heading > span {
  align-items: center;
  background: var(--advisor-detail-primary-soft);
  border-radius: 0.65rem;
  color: var(--advisor-detail-primary);
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.student-advisor-insight-card__icon {
  flex-basis: 42px;
  font-size: 1.25rem;
  height: 42px;
  line-height: 1;
  width: 42px;
}

.student-advisor-insight-card__icon > i {
  display: block;
  font-size: inherit;
  line-height: 1;
}

.student-advisor-insight-card__icon > svg {
  display: block;
  height: 20px;
  width: 20px;
}

.student-advisor-panel-heading > span {
  font-size: 1.05rem;
  height: 36px;
  width: 36px;
}

.student-advisor-insight-card.is-homeroom .student-advisor-insight-card__icon {
  background: #eaf8f7;
  color: #13877e;
}

.student-advisor-insight-card.is-attendance .student-advisor-insight-card__icon {
  background: #eaf8f0;
  color: #168053;
}

.student-advisor-insight-card.is-discipline .student-advisor-insight-card__icon {
  background: #fff4e8;
  color: #c76d0a;
}

.student-advisor-insight-card__content {
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-width: 0;
}

.student-advisor-insight-card__content > span,
.student-advisor-insight-card__content > strong,
.student-advisor-insight-card__content > small {
  display: block;
}

.student-advisor-insight-card__content > span {
  color: var(--advisor-detail-muted);
  font-size: 0.66rem;
  font-weight: 600;
}

.student-advisor-insight-card strong {
  color: #1d273b;
  font-size: 0.79rem;
  line-height: 1.35;
  margin-top: 0.18rem;
  overflow-wrap: anywhere;
}

.student-advisor-insight-card small {
  color: var(--advisor-detail-muted);
  font-size: 0.64rem;
  line-height: 1.35;
  margin-top: 0.2rem;
}

.student-advisor-insight-card strong em {
  color: #12814d;
  font-style: normal;
}

.student-advisor-insight-card strong b {
  color: #c73838;
  font-weight: 700;
}

.student-advisor-detail-surface {
  background: #fff;
  border: 1px solid var(--advisor-detail-border);
  border-radius: 1rem;
  min-width: 0;
  overflow: hidden;
}

.student-advisor-detail-tabs {
  background: #f6f7fb;
  display: flex;
  gap: 0.28rem;
  min-width: 0;
  overflow-x: auto;
  padding: 0.42rem;
  scrollbar-width: thin;
  -webkit-overflow-scrolling: touch;
}

.student-advisor-detail-tabs a {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 0.65rem;
  color: #68758c;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 0.38rem;
  min-height: 40px;
  padding: 0.55rem 0.75rem;
  white-space: nowrap;
}

.student-advisor-detail-tabs a:hover,
.student-advisor-detail-tabs a:focus-visible {
  color: var(--advisor-detail-primary);
}

.student-advisor-detail-tabs a > i {
  color: #748198;
  font-size: 1rem;
  line-height: 1;
}

.student-advisor-detail-tabs a:hover > i,
.student-advisor-detail-tabs a:focus-visible > i,
.student-advisor-detail-tabs a.is-active > i {
  color: var(--advisor-detail-primary);
}

.student-advisor-detail-tabs a:focus-visible,
.student-advisor-detail button:focus-visible,
.student-advisor-note-modal button:focus-visible,
.student-advisor-note-modal input:focus-visible,
.student-advisor-note-modal select:focus-visible,
.student-advisor-note-modal textarea:focus-visible {
  outline: 3px solid rgba(85, 72, 232, 0.24);
  outline-offset: 2px;
}

.student-advisor-detail-tabs a.is-active {
  background: #fff;
  border-color: #dfe3f0;
  box-shadow: 0 3px 9px rgba(33, 45, 78, 0.06);
  color: var(--advisor-detail-primary);
}

.student-advisor-detail-tabs a b {
  align-items: center;
  background: #e8e8ff;
  border-radius: 999px;
  color: var(--advisor-detail-primary);
  display: inline-flex;
  font-size: 0.62rem;
  height: 21px;
  justify-content: center;
  min-width: 21px;
  padding: 0 0.3rem;
}

.student-advisor-detail-panel {
  min-width: 0;
  padding: 1rem;
}

.student-advisor-overview-grid {
  display: grid;
  gap: 0.9rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-advisor-info-panel {
  border: 1px solid #e7ebf3;
  border-radius: 0.8rem;
  min-width: 0;
  padding: 0.9rem;
}

.student-advisor-panel-heading {
  align-items: center;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  gap: 0.65rem;
  margin-bottom: 0.35rem;
  padding-bottom: 0.75rem;
}

.student-advisor-panel-heading h2,
.student-advisor-section-head h2 {
  color: #1d273b;
  font-size: 0.95rem;
  margin: 0.06rem 0 0;
}

.student-advisor-info-list {
  margin: 0;
}

.student-advisor-info-list > div {
  align-items: baseline;
  border-bottom: 1px solid #f0f2f6;
  display: grid;
  gap: 0.7rem;
  grid-template-columns: 120px minmax(0, 1fr);
  padding: 0.65rem 0.15rem;
}

.student-advisor-info-list > div:last-child {
  border-bottom: 0;
}

.student-advisor-info-list dt {
  color: var(--advisor-detail-muted);
  font-size: 0.69rem;
  font-weight: 600;
}

.student-advisor-info-list dd {
  color: #1d273b;
  font-size: 0.75rem;
  font-weight: 700;
  margin: 0;
  min-width: 0;
  overflow-wrap: anywhere;
}

.student-advisor-status-dot {
  background: #a5afbf;
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  margin-right: 0.35rem;
  width: 7px;
}

.student-advisor-status-dot.is-active {
  background: #16a05d;
}

.student-advisor-history-list {
  display: grid;
  gap: 0;
}

.student-advisor-history-list article {
  display: grid;
  gap: 0.6rem;
  grid-template-columns: 14px minmax(0, 1fr);
  padding: 0.65rem 0.1rem;
}

.student-advisor-history-marker {
  background: var(--advisor-detail-primary);
  border: 3px solid #e9e9ff;
  border-radius: 50%;
  height: 12px;
  margin-top: 0.25rem;
  width: 12px;
}

.student-advisor-history-list article > div > div {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: space-between;
}

.student-advisor-history-list strong {
  font-size: 0.76rem;
}

.student-advisor-history-list p,
.student-advisor-history-list small {
  color: var(--advisor-detail-muted);
  display: block;
  font-size: 0.66rem;
  margin: 0.16rem 0 0;
}

.student-advisor-section-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.85rem;
}

.student-advisor-section-head > div {
  min-width: 0;
}

.student-advisor-section-head > span,
.student-advisor-section-head > div > small {
  color: var(--advisor-detail-muted);
  font-size: 0.66rem;
}

.student-advisor-metric-strip {
  display: grid;
  gap: 0.55rem;
  margin-bottom: 0.9rem;
}

.student-advisor-metric-strip.is-attendance {
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.student-advisor-metric-strip.is-discipline {
  grid-template-columns: repeat(3, minmax(0, 1fr));
  max-width: 680px;
}

.student-advisor-metric-strip > div {
  align-items: center;
  background: #f8fafc;
  border: 1px solid #e8ecf3;
  border-radius: 0.7rem;
  display: flex;
  gap: 0.55rem;
  min-height: 64px;
  min-width: 0;
  padding: 0.55rem;
}

.student-advisor-metric-icon {
  align-items: center;
  background: #eceeff;
  border-radius: 0.55rem;
  color: var(--advisor-detail-primary);
  display: inline-flex;
  flex: 0 0 42px;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.student-advisor-metric-icon > i {
  background-color: currentColor;
  display: inline-block;
  flex: 0 0 22px;
  font-size: 1.25rem;
  height: 22px;
  width: 22px;
}

.student-advisor-metric-strip small,
.student-advisor-metric-strip strong {
  display: block;
}

.student-advisor-metric-strip small {
  color: var(--advisor-detail-muted);
  font-size: 0.6rem;
}

.student-advisor-metric-strip strong {
  color: #1d273b;
  font-size: 1rem;
  line-height: 1.1;
  margin-top: 0.1rem;
}

.student-advisor-metric-strip .is-present .student-advisor-metric-icon,
.student-advisor-metric-strip .is-positive .student-advisor-metric-icon {
  background: var(--advisor-status-present-soft);
  color: var(--advisor-status-present);
}

.student-advisor-metric-strip .is-late .student-advisor-metric-icon {
  background: var(--advisor-status-late-soft);
  color: var(--advisor-status-late);
}

.student-advisor-metric-strip .is-permit .student-advisor-metric-icon {
  background: var(--advisor-status-info-soft);
  color: var(--advisor-status-info);
}

.student-advisor-metric-strip .is-sick .student-advisor-metric-icon {
  background: var(--advisor-status-sick-soft);
  color: var(--advisor-status-sick);
}

.student-advisor-metric-strip .is-absent .student-advisor-metric-icon,
.student-advisor-metric-strip .is-violation .student-advisor-metric-icon {
  background: var(--advisor-status-danger-soft);
  color: var(--advisor-status-danger);
}

.student-advisor-metric-strip .is-early_leave .student-advisor-metric-icon {
  background: #fff7ed;
  color: #ea580c;
}

.student-advisor-metric-strip .is-net .student-advisor-metric-icon {
  background: var(--advisor-status-net-soft);
  color: var(--advisor-status-net);
}

.student-advisor-metric-strip .is-positive strong {
  color: var(--advisor-status-present);
}

.student-advisor-metric-strip .is-violation strong {
  color: var(--advisor-status-danger);
}

.student-advisor-metric-strip .is-net strong {
  color: var(--advisor-status-net);
}

.student-advisor-history-table-wrap {
  border: 1px solid #e7ebf3;
  border-radius: 0.75rem;
}

.student-advisor-history-table {
  margin: 0;
  min-width: 700px;
}

.student-advisor-history-table > :not(caption) > * > * {
  padding: 0.65rem 0.75rem;
}

.student-advisor-history-table thead th {
  background: #f7f8fb;
  color: var(--advisor-detail-muted);
  font-size: 0.67rem;
  white-space: nowrap;
}

.student-advisor-history-table tbody td {
  font-size: 0.72rem;
}

.student-advisor-mobile-records {
  display: none;
}

.student-advisor-discipline-list,
.student-advisor-note-list {
  display: grid;
  gap: 0.65rem;
}

.student-advisor-discipline-list article {
  align-items: center;
  border: 1px solid #e7ebf3;
  border-left: 3px solid #cf3b38;
  border-radius: 0.7rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 105px minmax(0, 1fr) 48px;
  min-width: 0;
  padding: 0.7rem 0.8rem;
}

.student-advisor-discipline-list article.is-positive {
  border-left-color: #168053;
}

.student-advisor-discipline-list time {
  color: var(--advisor-detail-muted);
  font-size: 0.67rem;
  white-space: nowrap;
}

.student-advisor-discipline-list article > div {
  min-width: 0;
}

.student-advisor-discipline-list span {
  align-items: center;
  background: #f1f5f9;
  border-radius: 999px;
  color: #64748b;
  display: inline-flex;
  font-size: 0.59rem;
  font-weight: 700;
  line-height: 1.2;
  padding: 0.22rem 0.45rem;
}

.student-advisor-discipline-list article.is-violation span {
  background: var(--advisor-status-danger-soft);
  color: var(--advisor-status-danger);
}

.student-advisor-discipline-list article.is-positive span {
  background: var(--advisor-status-present-soft);
  color: var(--advisor-status-present);
}

.student-advisor-discipline-list strong {
  display: block;
  font-size: 0.75rem;
  margin-top: 0.1rem;
}

.student-advisor-discipline-list p {
  color: var(--advisor-detail-muted);
  font-size: 0.65rem;
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
}

.student-advisor-discipline-list article > b {
  color: #c73a36;
  font-size: 0.9rem;
  text-align: right;
}

.student-advisor-discipline-list article.is-positive > b {
  color: #168053;
}

.student-advisor-note-card {
  border: 1px solid #e5e9f2;
  border-radius: 0.8rem;
  overflow: hidden;
}

.student-advisor-note-card > header {
  align-items: center;
  background: #fafbfe;
  border-bottom: 1px solid #edf0f5;
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  justify-content: space-between;
  padding: 0.7rem 0.8rem;
}

.student-advisor-note-card > header > div {
  display: flex;
  flex-wrap: wrap;
  gap: 0.35rem;
}

.student-advisor-note-card > header small {
  color: var(--advisor-detail-muted);
  font-size: 0.65rem;
}

.student-advisor-note-card > header small i {
  color: var(--advisor-detail-primary);
  margin-right: 0.25rem;
}

.student-advisor-note-card__body {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  padding: 0.8rem;
}

.student-advisor-note-card__body > div {
  min-width: 0;
}

.student-advisor-note-card__body > div:first-child {
  grid-column: 1 / -1;
}

.student-advisor-note-card__body span {
  color: var(--advisor-detail-muted);
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
}

.student-advisor-note-card__body p,
.student-advisor-note-card__body strong {
  color: #273247;
  display: block;
  font-size: 0.72rem;
  line-height: 1.5;
  margin: 0.18rem 0 0;
  overflow-wrap: anywhere;
}

.student-advisor-note-card__evaluation {
  background: #f7f8fb;
  border-radius: 0.55rem;
  padding: 0.55rem 0.65rem;
}

.student-advisor-note-card > footer {
  align-items: center;
  border-top: 1px solid #edf0f5;
  display: flex;
  gap: 0.45rem;
  justify-content: flex-end;
  padding: 0.6rem 0.8rem;
}

.student-advisor-note-card > footer form {
  margin: 0;
}

.student-advisor-empty-state {
  align-items: center;
  background: #fafbfe;
  border: 1px dashed #dce2ed;
  border-radius: 0.75rem;
  color: var(--advisor-detail-muted);
  display: flex;
  gap: 0.65rem;
  min-height: 78px;
  padding: 0.8rem;
}

.student-advisor-empty-icon {
  align-items: center;
  background: #f1f5f9;
  border-radius: 0.6rem;
  color: #64748b;
  display: inline-flex;
  flex: 0 0 auto;
  height: 40px;
  justify-content: center;
  width: 40px;
}

.student-advisor-empty-icon > i {
  background-color: currentColor;
  display: inline-block;
  font-size: 1.1rem;
  height: 1.1rem;
  width: 1.1rem;
}

.student-advisor-empty-state strong,
.student-advisor-empty-state small {
  display: block;
}

.student-advisor-empty-state strong {
  color: #273247;
  font-size: 0.74rem;
}

.student-advisor-empty-state small {
  font-size: 0.65rem;
  margin-top: 0.15rem;
}

.student-advisor-note-modal {
  --bs-modal-width: 780px;
}

.student-advisor-note-modal__dialog {
  max-height: calc(100dvh - 2rem);
}

.student-advisor-note-modal .modal-content,
.student-advisor-note-modal .modal-content > form {
  max-height: calc(100dvh - 2rem);
}

.student-advisor-note-modal .modal-content > form {
  display: flex;
  flex-direction: column;
  min-height: 0;
}

.student-advisor-note-modal .modal-header {
  border-bottom: 1px solid #edf0f5;
  padding: 0.9rem 1rem;
}

.student-advisor-note-modal .modal-header small {
  color: #7b8498;
  display: block;
  font-size: 0.65rem;
}

.student-advisor-note-modal .modal-title {
  font-size: 1rem;
  margin-top: 0.08rem;
}

.student-advisor-note-modal .modal-body {
  min-height: 0;
  overflow-y: auto;
  padding: 0.9rem 1rem;
}

.student-advisor-note-modal .modal-footer {
  background: #fff;
  border-top: 1px solid #edf0f5;
  padding: 0.75rem 1rem;
}

.student-advisor-note-fields .form-label {
  font-size: 0.72rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

@media (max-width: 767.98px) {
  .student-advisor-workspace {
    grid-template-columns: minmax(0, 1fr);
    grid-template-areas:
      "heading"
      "tabs"
      "action"
      "summary";
    row-gap: 0.65rem;
  }

  .student-advisor-workspace:not(.is-detail-context) {
    padding: 0.8rem;
  }

  .student-advisor-workspace__heading {
    gap: 0.65rem;
  }

  .student-advisor-workspace__icon {
    flex-basis: 38px;
    height: 38px;
    width: 38px;
  }

  .student-advisor-workspace__action {
    justify-self: start;
    width: 100%;
  }

  .student-advisor-workspace__action .btn {
    justify-content: center;
    width: 100%;
  }

  .student-advisor-workspace__summary {
    justify-content: flex-start;
    min-height: auto;
    padding-bottom: 0;
  }

  .student-advisor-workspace__tabs {
    margin-right: 0;
    padding: 0.25rem;
  }

  .student-advisor-assignments__card > .card-body {
    padding: 1rem;
  }

  .student-advisor-bulk-panel {
    margin-right: 0;
    margin-left: 0;
    padding: 0.8rem;
  }

  .student-advisor-filter > [class*="col-"],
  .student-advisor-bulk-panel > [class*="col-"] {
    width: 100%;
  }

  .student-advisor-filter .btn,
  .student-advisor-bulk-panel .btn {
    min-height: 44px;
  }

  .student-advisor-list-header {
    align-items: stretch;
    flex-direction: column;
  }

  .student-advisor-month-filter,
  .student-advisor-export-actions {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto;
    width: 100%;
  }

  .student-advisor-export-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-advisor-month-filter .btn,
  .student-advisor-export-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
  }

  .student-advisor-table-wrap.is-card-list {
    border: 0;
    overflow: visible;
  }

  .student-advisor-responsive-table,
  .student-advisor-responsive-table tbody {
    display: block;
    min-width: 0 !important;
    width: 100%;
  }

  .student-advisor-responsive-table thead {
    display: none;
  }

  .student-advisor-responsive-table tbody {
    display: grid;
    gap: 0.7rem;
  }

  .student-advisor-responsive-table tbody tr {
    background: #fff;
    border: 1px solid #e4e8f1;
    border-radius: 0.8rem;
    box-shadow: 0 4px 12px rgba(31, 41, 74, 0.04);
    display: grid;
    gap: 0;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    overflow: hidden;
    padding: 0.8rem;
  }

  .student-advisor-responsive-table tbody td {
    background: transparent !important;
    border: 0 !important;
    box-shadow: none !important;
    display: grid;
    gap: 0.2rem;
    min-width: 0;
    padding: 0.5rem 0 !important;
    text-align: left !important;
  }

  .student-advisor-responsive-table tbody td::before {
    color: #748096;
    content: attr(data-label);
    font-size: 0.61rem;
    font-weight: 800;
    letter-spacing: 0.045em;
    line-height: 1.2;
    text-transform: uppercase;
  }

  .student-advisor-responsive-table tbody td:nth-child(n + 3) {
    border-top: 1px dashed #e6eaf1 !important;
  }

  .student-advisor-responsive-table tbody td[data-label="Siswa"],
  .student-advisor-responsive-table tbody td[data-label="Kehadiran Bulan Ini"],
  .student-advisor-responsive-table tbody td[data-label="Pendampingan"],
  .student-advisor-responsive-table tbody td[data-label="Kelola Penugasan"],
  .student-advisor-responsive-table tbody td[data-label="Catatan"],
  .student-advisor-responsive-table tbody td[data-label="Tindak Lanjut"],
  .student-advisor-responsive-table tbody td[data-label="Aksi"] {
    grid-column: 1 / -1;
  }

  .student-advisor-responsive-table tbody td[data-label="Siswa"]:first-of-type {
    border-top: 0 !important;
  }

  .student-advisor-responsive-table tbody tr:has(td[colspan]) {
    display: block;
  }

  .student-advisor-responsive-table tbody td[colspan] {
    display: block;
    padding: 1.8rem 0.6rem !important;
    text-align: center !important;
  }

  .student-advisor-responsive-table tbody td[colspan]::before {
    content: none;
  }

  .student-advisor-row-actions > .btn,
  .student-advisor-row-actions > a.btn {
    justify-content: center;
    min-height: 42px;
    width: 100%;
  }

  .student-advisor-assignment-table .student-advisor-row-actions > form {
    margin: 0;
    width: 100%;
  }

  .student-advisor-assignment-table .student-advisor-row-actions > form + form {
    margin-top: 0.6rem;
  }

  .student-advisor-assignment-table .student-advisor-row-actions > form.row {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: minmax(0, 1fr);
  }

  .student-advisor-assignment-table .student-advisor-row-actions > form.row > [class*="col-"] {
    padding: 0;
    width: 100%;
  }

  .student-advisor-assignment-table .student-advisor-row-actions > form.d-flex {
    align-items: stretch;
    flex-direction: column;
  }

  .student-advisor-assignment-table .student-advisor-row-actions .form-control,
  .student-advisor-assignment-table .student-advisor-row-actions .form-select,
  .student-advisor-assignment-table .student-advisor-row-actions .btn {
    min-height: 42px;
  }

  .student-advisor-monitoring__stat {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
    min-height: 118px;
    padding: 0.75rem;
  }

  .student-advisor-monitoring__icon {
    flex-basis: 36px;
    height: 36px;
    width: 36px;
  }

  .student-advisor-monitoring__stat strong {
    font-size: 1.3rem;
  }

  .student-advisor-reports > .card-header {
    align-items: flex-start;
  }

  .student-advisor-workspace.is-detail-context {
    grid-template-areas:
      "tabs"
      "action";
    grid-template-columns: minmax(0, 1fr);
  }

  .student-advisor-detail-hero {
    align-items: stretch;
    flex-direction: column;
    padding: 0.9rem;
  }

  .student-advisor-detail-hero__action {
    justify-content: center;
    width: 100%;
  }

  .student-advisor-insight-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-advisor-overview-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-advisor-metric-strip.is-attendance {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-advisor-history-table-wrap {
    display: none;
  }

  .student-advisor-mobile-records {
    display: grid;
    gap: 0.55rem;
  }

  .student-advisor-mobile-records article {
    border: 1px solid #e6eaf2;
    border-radius: 0.7rem;
    padding: 0.7rem;
  }

  .student-advisor-mobile-records article > div {
    align-items: center;
    display: flex;
    gap: 0.5rem;
    justify-content: space-between;
  }

  .student-advisor-mobile-records article > div strong {
    font-size: 0.72rem;
  }

  .student-advisor-mobile-records dl {
    display: grid;
    gap: 0.5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin: 0.6rem 0 0;
  }

  .student-advisor-mobile-records dt {
    color: var(--advisor-detail-muted);
    font-size: 0.6rem;
  }

  .student-advisor-mobile-records dd {
    font-size: 0.72rem;
    font-weight: 700;
    margin: 0.08rem 0 0;
  }

  .student-advisor-note-modal {
    --bs-modal-margin: 0.75rem;
  }

  .student-advisor-note-modal__dialog,
  .student-advisor-note-modal .modal-content,
  .student-advisor-note-modal .modal-content > form {
    max-height: calc(100dvh - 1.5rem);
  }
}

@media (max-width: 575.98px) {
  .student-advisor-workspace__heading h4 {
    font-size: 1.25rem;
  }

  .student-advisor-workspace__heading p {
    font-size: 0.8125rem;
  }

  .student-advisor-workspace__tab {
    min-height: 44px;
    font-size: 0.8125rem;
  }

  .student-advisor-workspace__action .btn {
    min-height: 44px;
  }

  .student-advisor-info-callout {
    padding: 0.6rem 0.7rem;
  }

  .student-advisor-reports > .card-header .btn {
    min-height: 40px;
  }

  .student-advisor-detail-hero__student {
    align-items: flex-start;
  }

  .student-advisor-detail-avatar {
    height: 48px;
    width: 48px;
  }

  .student-advisor-detail-hero h1 {
    font-size: 1.25rem;
  }

  .student-advisor-detail-hero__student p:last-child {
    display: grid;
    gap: 0.12rem;
  }

  .student-advisor-detail-hero__student p:last-child span + span::before {
    display: none;
  }

  .student-advisor-insight-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-advisor-insight-card {
    gap: 0.75rem;
    min-height: 0;
    padding: 0.875rem;
  }

  .student-advisor-insight-card__icon {
    flex-basis: 40px;
    font-size: 1.125rem;
    height: 40px;
    width: 40px;
  }

  .student-advisor-insight-card__icon > svg {
    height: 18px;
    width: 18px;
  }

  .student-advisor-detail-tabs {
    margin-right: -1px;
  }

  .student-advisor-detail-tabs a {
    min-height: 44px;
  }

  .student-advisor-detail-panel {
    padding: 0.8rem;
  }

  .student-advisor-section-head {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-advisor-section-head .btn {
    justify-content: center;
    width: 100%;
  }

  .student-advisor-metric-strip.is-attendance {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-advisor-metric-strip.is-discipline {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-advisor-discipline-list article {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .student-advisor-discipline-list time {
    grid-column: 1 / -1;
  }

  .student-advisor-note-card > header {
    align-items: flex-start;
    flex-direction: column;
  }

  .student-advisor-note-card__body {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-advisor-note-card__body > div:first-child {
    grid-column: auto;
  }

  .student-advisor-note-card > footer {
    align-items: stretch;
  }

  .student-advisor-note-card > footer .btn {
    justify-content: center;
    min-height: 42px;
  }

  .student-advisor-note-modal .modal-footer {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-advisor-note-modal .modal-footer .btn {
    min-height: 44px;
  }
}

/* ==========================================================================
   EXECUTIVE COMMAND CENTER DASHBOARD (MODERN, ANIMATIF, INTERAKTIF, RINGAN)
   ========================================================================== */

@keyframes simolahPulseDot {
  0% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0.7); }
  70% { transform: scale(1); box-shadow: 0 0 0 8px rgba(34, 197, 94, 0); }
  100% { transform: scale(0.95); box-shadow: 0 0 0 0 rgba(34, 197, 94, 0); }
}

@keyframes simolahFloat {
  0%, 100% { transform: translateY(0); }
  50% { transform: translateY(-4px); }
}

@keyframes simolahHeroSunrise {
  0%, 100% { opacity: 0.72; transform: translate3d(0, 12px, 0) scale(0.94); }
  50% { opacity: 0.96; transform: translate3d(-8px, 0, 0) scale(1); }
}

@keyframes simolahHeroDaylight {
  0%, 100% { transform: translate3d(0, 0, 0); }
  50% { transform: translate3d(-10px, 5px, 0); }
}

@keyframes simolahHeroSunset {
  0%, 100% { opacity: 0.78; transform: translate3d(0, 7px, 0) scale(0.96); }
  50% { opacity: 0.98; transform: translate3d(-8px, -2px, 0) scale(1); }
}

@keyframes simolahHeroTwinkle {
  0%, 100% { opacity: 0.35; transform: scale(0.85); }
  50% { opacity: 0.92; transform: scale(1); }
}

.simolah-dash-hero {
  position: relative;
  overflow: hidden;
  border-radius: 18px;
  background: linear-gradient(135deg, #1e3a8a 0%, #2563eb 55%, #0d9488 100%);
  color: #ffffff;
  padding: 2.2rem 2.4rem;
  box-shadow: 0 16px 40px rgba(37, 99, 235, 0.22);
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  gap: 1.5rem;
  transition: background 1.2s ease, box-shadow 1.2s ease;
}

.simolah-dash-hero--morning {
  background: linear-gradient(135deg, #30468f 0%, #3d79d4 55%, #e99a6a 100%);
  box-shadow: 0 16px 40px rgba(61, 121, 212, 0.2);
}

.simolah-dash-hero--day {
  background: linear-gradient(135deg, #263d92 0%, #2f75d0 55%, #1d9aae 100%);
  box-shadow: 0 16px 40px rgba(47, 117, 208, 0.2);
}

.simolah-dash-hero--evening {
  background: linear-gradient(135deg, #443b91 0%, #6b54a4 55%, #e78f6a 100%);
  box-shadow: 0 16px 40px rgba(107, 84, 164, 0.2);
}

.simolah-dash-hero--night {
  background: linear-gradient(135deg, #151f52 0%, #263c77 55%, #275b7f 100%);
  box-shadow: 0 16px 40px rgba(21, 31, 82, 0.28);
}

.simolah-dash-hero::before {
  content: "";
  position: absolute;
  top: -60%;
  right: -10%;
  width: 420px;
  height: 420px;
  background: radial-gradient(circle, rgba(255, 255, 255, 0.16) 0%, rgba(255, 255, 255, 0) 70%);
  border-radius: 50%;
  pointer-events: none;
}

.simolah-dash-hero-visual {
  position: absolute;
  inset: 0 0 0 auto;
  width: min(42%, 420px);
  pointer-events: none;
  z-index: 1;
}

.simolah-dash-sky-object,
.simolah-dash-sky-cloud,
.simolah-dash-sky-star {
  position: absolute;
  display: block;
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.simolah-dash-sky-object {
  top: 16%;
  right: 18%;
  width: 96px;
  height: 96px;
  border-radius: 50%;
  background: #fde68a;
  box-shadow: 0 0 0 16px rgba(253, 230, 138, 0.08), 0 0 52px rgba(253, 230, 138, 0.3);
}

.simolah-dash-sky-cloud {
  width: 132px;
  height: 25px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.16);
}

.simolah-dash-sky-cloud::before,
.simolah-dash-sky-cloud::after {
  content: "";
  position: absolute;
  bottom: 5px;
  border-radius: 50%;
  background: inherit;
}

.simolah-dash-sky-cloud::before {
  left: 22px;
  width: 38px;
  height: 38px;
}

.simolah-dash-sky-cloud::after {
  right: 20px;
  width: 28px;
  height: 28px;
}

.simolah-dash-sky-cloud--one {
  top: 24%;
  right: 42%;
  transform: scale(0.82);
}

.simolah-dash-sky-cloud--two {
  top: 56%;
  right: 5%;
  transform: scale(0.62);
}

.simolah-dash-sky-cloud--three {
  top: 70%;
  right: 30%;
  transform: scale(0.46);
  opacity: 0.58;
}

.simolah-dash-moon-crater {
  position: absolute;
  z-index: 1;
  display: block;
  width: 11px;
  height: 11px;
  border-radius: 50%;
  background: rgba(148, 163, 184, 0.28);
  opacity: 0;
  visibility: hidden;
  transition: opacity 1s ease, visibility 1s ease;
}

.simolah-dash-moon-crater--one {
  top: 40%;
  right: 26%;
}

.simolah-dash-moon-crater--two {
  top: 58%;
  right: 14%;
  width: 7px;
  height: 7px;
}

.simolah-dash-sky-star {
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: #fef3c7;
  box-shadow: 0 0 10px rgba(254, 243, 199, 0.72);
}

.simolah-dash-sky-star--one { top: 24%; right: 26%; }
.simolah-dash-sky-star--two { top: 38%; right: 43%; }
.simolah-dash-sky-star--three { top: 17%; right: 52%; }

.simolah-dash-hero--morning .simolah-dash-sky-object,
.simolah-dash-hero--day .simolah-dash-sky-object,
.simolah-dash-hero--evening .simolah-dash-sky-object {
  opacity: 0.9;
  visibility: visible;
}

.simolah-dash-hero--morning .simolah-dash-sky-object { animation: simolahHeroSunrise 8s ease-in-out infinite; }
.simolah-dash-hero--day .simolah-dash-sky-object { animation: simolahHeroDaylight 11s ease-in-out infinite; }
.simolah-dash-hero--evening .simolah-dash-sky-object { animation: simolahHeroSunset 9s ease-in-out infinite; }

.simolah-dash-hero--morning .simolah-dash-sky-cloud,
.simolah-dash-hero--day .simolah-dash-sky-cloud,
.simolah-dash-hero--evening .simolah-dash-sky-cloud {
  opacity: 0.72;
  visibility: visible;
  animation: simolahHeroDaylight 14s ease-in-out infinite;
}

.simolah-dash-hero--night .simolah-dash-sky-object {
  opacity: 0.92;
  visibility: visible;
  width: 76px;
  height: 76px;
  background: #f8fafc;
  box-shadow: 0 0 34px rgba(248, 250, 252, 0.22);
}

.simolah-dash-hero--night .simolah-dash-sky-object::after {
  content: "";
  position: absolute;
  top: -8px;
  left: -14px;
  width: 72px;
  height: 72px;
  border-radius: 50%;
  background: #263c77;
}

.simolah-dash-hero--night .simolah-dash-moon-crater {
  opacity: 1;
  visibility: visible;
}

.simolah-dash-hero--night .simolah-dash-sky-cloud {
  opacity: 0.28;
  visibility: visible;
  animation: simolahHeroDaylight 18s ease-in-out infinite;
}

.simolah-dash-hero--night .simolah-dash-sky-star {
  opacity: 0.72;
  visibility: visible;
  animation: simolahHeroTwinkle 3.2s ease-in-out infinite;
}

.simolah-dash-hero--night .simolah-dash-sky-star--two { animation-delay: 0.8s; }
.simolah-dash-hero--night .simolah-dash-sky-star--three { animation-delay: 1.5s; }

.simolah-dash-hero-top {
  display: flex;
  align-items: center;
  justify-content: flex-start;
  flex-wrap: wrap;
  gap: 1rem;
  position: relative;
  z-index: 2;
}

.simolah-dashboard-hero-footer {
  align-items: center;
  display: flex;
  justify-content: flex-start;
  margin-top: auto;
  min-height: 32px;
  position: relative;
  z-index: 2;
}

.simolah-live-clock {
  display: inline-flex;
  align-items: center;
  gap: 0.6rem;
  background: rgba(255, 255, 255, 0.18);
  backdrop-filter: blur(10px);
  -webkit-backdrop-filter: blur(10px);
  border: 1px solid rgba(255, 255, 255, 0.25);
  border-radius: 50px;
  padding: 0.45rem 1rem;
  font-size: 0.9rem;
  font-weight: 600;
  letter-spacing: 0.3px;
  color: #ffffff;
}

.simolah-pulse-dot {
  width: 10px;
  height: 10px;
  border-radius: 50%;
  background-color: #22c55e;
  animation: simolahPulseDot 2s infinite;
}

.simolah-dash-badge {
  display: inline-flex;
  align-items: center;
  gap: 0.4rem;
  background: rgba(255, 255, 255, 0.15);
  border: 1px solid rgba(255, 255, 255, 0.22);
  border-radius: 8px;
  padding: 0.35rem 0.8rem;
  font-size: 0.8rem;
  font-weight: 600;
  color: #f1f5f9;
}

.simolah-dash-hero-content {
  position: relative;
  z-index: 2;
  max-width: 680px;
}

.simolah-dash-hero-content h2 {
  font-size: 1.85rem;
  font-weight: 700;
  color: #ffffff;
  margin-bottom: 0.4rem;
  letter-spacing: -0.5px;
}

.simolah-dash-hero-content p {
  color: rgba(255, 255, 255, 0.88);
  font-size: 0.95rem;
  line-height: 1.5;
  margin-bottom: 0;
}

/* Executive Stat Cards */
.simolah-exec-card {
  border: 1px solid rgba(226, 232, 240, 0.8);
  border-radius: 16px;
  background: #ffffff;
  padding: 1.35rem 1.45rem;
  transition: all 0.25s cubic-bezier(0.16, 1, 0.3, 1);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
}

.simolah-exec-card:hover {
  transform: translateY(-4px);
  border-color: rgba(37, 99, 235, 0.35);
  box-shadow: 0 14px 30px rgba(37, 99, 235, 0.1);
}

.simolah-exec-header {
  display: flex;
  align-items: flex-start;
  justify-content: space-between;
  gap: 0.75rem;
  margin-bottom: 1rem;
}

.simolah-exec-icon {
  width: 44px;
  height: 44px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.35rem;
  flex-shrink: 0;
}

.simolah-exec-icon.bg-primary-subtle { background: rgba(37, 99, 235, 0.12); color: #2563eb; }
.simolah-exec-icon.bg-success-subtle { background: rgba(34, 197, 94, 0.12); color: #16a34a; }
.simolah-exec-icon.bg-info-subtle { background: rgba(14, 165, 233, 0.12); color: #0284c7; }
.simolah-exec-icon.bg-warning-subtle { background: rgba(245, 158, 11, 0.14); color: #d97706; }

.simolah-exec-label {
  font-size: 0.82rem;
  font-weight: 600;
  color: #64748b;
  text-transform: uppercase;
  letter-spacing: 0.5px;
}

.simolah-exec-value {
  font-size: 1.95rem;
  font-weight: 700;
  color: #0f172a;
  line-height: 1.1;
  margin-bottom: 0.5rem;
}

.simolah-exec-sub {
  font-size: 0.82rem;
  color: #64748b;
  display: flex;
  align-items: center;
  gap: 0.5rem;
  flex-wrap: wrap;
}

.simolah-exec-sub span {
  display: inline-flex;
  align-items: center;
  gap: 0.25rem;
}

/* Quick Action Grid Hub */
.simolah-qa-card {
  border: 1px solid rgba(226, 232, 240, 0.85);
  border-radius: 14px;
  background: #ffffff;
  padding: 1.15rem 1.1rem;
  display: flex;
  align-items: center;
  gap: 1rem;
  text-decoration: none !important;
  color: #1e293b;
  transition: all 0.22s cubic-bezier(0.16, 1, 0.3, 1);
  height: 100%;
}

.simolah-qa-card:hover {
  transform: translateY(-3px);
  background: #f8fafc;
  border-color: #3b82f6;
  box-shadow: 0 10px 24px rgba(59, 130, 246, 0.1);
}

.simolah-qa-icon {
  width: 48px;
  height: 48px;
  border-radius: 12px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.5rem;
  flex-shrink: 0;
  transition: transform 0.22s ease;
}

.simolah-qa-card:hover .simolah-qa-icon {
  transform: scale(1.1) rotate(-3deg);
}

.simolah-qa-info {
  display: flex;
  flex-direction: column;
  min-width: 0;
}

.simolah-qa-title {
  font-size: 0.95rem;
  font-weight: 700;
  color: #0f172a;
  margin-bottom: 0.15rem;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simolah-qa-desc {
  font-size: 0.78rem;
  color: #64748b;
  margin-bottom: 0;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
}

/* Donut Chart & Attendance Visual Card */
.simolah-attendance-box {
  border-radius: 16px;
  background: #ffffff;
  border: 1px solid rgba(226, 232, 240, 0.85);
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.03);
  padding: 1.5rem;
}

.simolah-chart-donut-wrapper {
  position: relative;
  width: 170px;
  height: 170px;
  margin: 0 auto;
}

.simolah-chart-donut-wrapper svg {
  transform: rotate(-90deg);
  width: 100%;
  height: 100%;
}

.simolah-chart-donut-center {
  position: absolute;
  inset: 0;
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  text-align: center;
}

.simolah-chart-donut-center h4 {
  font-size: 1.65rem;
  font-weight: 700;
  color: #0f172a;
  margin: 0;
  line-height: 1.1;
}

.simolah-chart-donut-center span {
  font-size: 0.76rem;
  color: #64748b;
  font-weight: 600;
  text-transform: uppercase;
}

.simolah-att-legend-item {
  display: flex;
  align-items: center;
  justify-content: space-between;
  padding: 0.55rem 0.75rem;
  border-radius: 10px;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.7);
  transition: all 0.2s ease;
}

.simolah-att-legend-item:hover {
  background: #f1f5f9;
  border-color: #cbd5e1;
}

.simolah-att-legend-label {
  display: flex;
  align-items: center;
  gap: 0.5rem;
  font-size: 0.86rem;
  font-weight: 600;
  color: #334155;
}

.simolah-att-legend-dot {
  width: 10px;
  height: 10px;
  border-radius: 3px;
}

/* Activity Feed */
.simolah-activity-feed {
  display: grid;
  gap: 0.1rem;
}

.simolah-activity-live {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
  white-space: nowrap;
}

.simolah-activity-item {
  display: grid;
  grid-template-columns: 38px minmax(0, 1fr);
  align-items: flex-start;
  gap: 0.9rem;
  padding: 0.75rem 0;
  border-bottom: 1px solid rgba(226, 232, 240, 0.6);
}

.simolah-activity-item:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.simolah-activity-avatar {
  width: 38px;
  height: 38px;
  border-radius: 10px;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 1.15rem;
  flex-shrink: 0;
}

.simolah-activity-content {
  min-width: 0;
}

.simolah-activity-top {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.25rem;
  min-width: 0;
}

.simolah-activity-name {
  color: #1e293b;
  display: block;
  font-size: 0.86rem;
  font-weight: 800;
  line-height: 1.25;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simolah-activity-badge {
  flex-shrink: 0;
  font-size: 0.68rem;
  line-height: 1;
  max-width: 96px;
  overflow: hidden;
  padding: 0.35rem 0.5rem;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simolah-activity-meta {
  align-items: center;
  color: #64748b;
  display: flex;
  font-size: 0.74rem;
  gap: 0.5rem;
  justify-content: space-between;
  min-width: 0;
}

.simolah-activity-context,
.simolah-activity-time {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
  min-width: 0;
}

.simolah-activity-context {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simolah-activity-time {
  flex-shrink: 0;
  font-variant-numeric: tabular-nums;
}

.simolah-activity-source {
  color: #94a3b8;
  font-size: 0.68rem;
  line-height: 1.25;
  margin-top: 0.2rem;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

/* Dashboard refinement: compact hierarchy and responsive operational focus. */
.simolah-dashboard-page {
  display: grid;
  gap: 1rem;
  min-width: 0;
}

.simolah-dashboard-hero-section {
  display: grid;
  gap: 0.75rem;
}

.simolah-dashboard-hero-kicker,
.simolah-dashboard-section-kicker {
  color: rgba(255, 255, 255, 0.72);
  display: block;
  font-size: 0.68rem;
  font-weight: 700;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

.simolah-dashboard-navbar-heading {
  min-width: 0;
}

.simolah-dashboard-navbar-actions {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  margin-left: auto;
  min-width: 0;
}

.simolah-dashboard-header-context {
  align-items: center;
  display: flex;
  flex-wrap: nowrap;
  gap: 0.35rem;
  min-width: 0;
}

.simolah-dashboard-navbar .simolah-dash-badge {
  background: #f1f5ff;
  border-color: rgba(99, 102, 241, 0.16);
  border-radius: 999px;
  color: #415276;
  font-size: 0.66rem;
  padding: 0.24rem 0.55rem;
  white-space: nowrap;
}

.simolah-dashboard-navbar .simolah-dash-badge--period {
  background: #f5f3ff;
  border-color: rgba(124, 58, 237, 0.16);
  color: #6d28d9;
}

.simolah-dashboard-navbar .simolah-live-clock {
  background: #f8fafc;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
  border-color: #e2e8f0;
  color: #475569;
  font-size: 0.66rem;
  padding: 0.24rem 0.55rem;
}

@media (min-width: 768px) {
  .simolah-dashboard-navbar-heading small {
    white-space: nowrap;
  }

  .simolah-dashboard-navbar .simolah-live-clock {
    display: inline-flex;
    font-size: 0.72rem;
    padding: 0.34rem 0.68rem;
    white-space: nowrap;
  }

  .simolah-dashboard-navbar .simolah-dash-badge--period {
    font-size: 0.74rem;
    padding: 0.34rem 0.72rem;
  }
}

.simolah-dashboard-section-kicker {
  color: #64748b;
  margin-bottom: 0.25rem;
}

.simolah-dashboard-context {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  min-width: 0;
}

.simolah-dash-badge--period {
  background: rgba(255, 255, 255, 0.2);
}

.simolah-dashboard-page .simolah-dash-hero {
  gap: clamp(1rem, 2.5vw, 1.5rem);
  min-height: 158px;
  padding: clamp(1.35rem, 2.7vw, 2rem) clamp(1.25rem, 3vw, 2.25rem);
}

.simolah-dash-weather-art {
  position: absolute;
  top: 7%;
  right: 9%;
  width: clamp(112px, 13vw, 168px);
  height: auto;
  display: block;
  opacity: 0;
  visibility: hidden;
  object-fit: contain;
  filter: drop-shadow(0 14px 18px rgba(15, 23, 42, 0.18));
  transition: opacity 0.9s ease, visibility 0.9s ease, transform 0.9s ease;
}

.simolah-dash-hero--morning .simolah-dash-weather-art--day,
.simolah-dash-hero--day .simolah-dash-weather-art--day,
.simolah-dash-hero--evening .simolah-dash-weather-art--day,
.simolah-dash-hero--night .simolah-dash-weather-art--night {
  opacity: 0.82;
  visibility: visible;
}

.simolah-dash-hero--morning .simolah-dash-weather-art--day { animation: simolahHeroSunrise 8s ease-in-out infinite; }
.simolah-dash-hero--day .simolah-dash-weather-art--day { animation: simolahHeroDaylight 11s ease-in-out infinite; }
.simolah-dash-hero--evening .simolah-dash-weather-art--day { filter: hue-rotate(335deg) saturate(0.92) drop-shadow(0 14px 18px rgba(15, 23, 42, 0.18)); animation: simolahHeroSunset 9s ease-in-out infinite; }
.simolah-dash-hero--night .simolah-dash-weather-art--night { animation: simolahHeroTwinkle 5s ease-in-out infinite; }

.simolah-dash-hero--morning .simolah-dash-weather-art--day {
  top: 13%;
  filter: sepia(0.18) saturate(1.18) drop-shadow(0 14px 18px rgba(15, 23, 42, 0.18));
}

.simolah-dash-hero--day .simolah-dash-weather-art--day {
  top: 3%;
  filter: saturate(1.08) drop-shadow(0 14px 18px rgba(15, 23, 42, 0.16));
}

.simolah-dash-hero--evening .simolah-dash-weather-art--day {
  top: 16%;
  filter: hue-rotate(335deg) saturate(1.12) sepia(0.16) drop-shadow(0 14px 18px rgba(15, 23, 42, 0.2));
}

.simolah-dash-hero--night .simolah-dash-weather-art--night {
  top: 4%;
  filter: saturate(0.92) drop-shadow(0 14px 18px rgba(15, 23, 42, 0.22));
}

.simolah-dashboard-page .simolah-dash-hero-content {
  max-width: min(100%, 680px);
}

.simolah-dashboard-page .simolah-dash-hero-content h1,
.simolah-dashboard-page .simolah-dash-hero-content h2 {
  color: #fff;
  font-size: clamp(1.45rem, 2.5vw, 1.95rem);
  font-weight: 700;
  letter-spacing: -0.5px;
  line-height: 1.15;
  margin: 0 0 0.45rem;
}

.simolah-dashboard-page .simolah-dash-hero-content p {
  color: rgba(255, 255, 255, 0.86);
  font-size: clamp(0.82rem, 1.15vw, 0.95rem);
  line-height: 1.5;
  max-width: 56ch;
}

.simolah-dashboard-kpis {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simolah-dashboard-kpi {
  gap: 0.9rem;
  justify-content: space-between;
  min-height: 116px;
  padding: 1rem 1.1rem;
}

.simolah-dashboard-kpi-main {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.simolah-dashboard-kpi-copy {
  min-width: 0;
}

.simolah-dashboard-kpi .simolah-exec-icon {
  height: 40px;
  width: 40px;
  font-size: 1.2rem;
}

.simolah-dashboard-kpi .simolah-exec-label {
  display: block;
  font-size: 0.72rem;
  letter-spacing: 0.25px;
  overflow-wrap: anywhere;
  text-transform: none;
}

.simolah-dashboard-kpi .simolah-exec-value {
  display: block;
  font-size: clamp(1.35rem, 2vw, 1.75rem);
  margin: 0.25rem 0 0;
}

.simolah-dashboard-kpi .simolah-exec-value small {
  color: #64748b;
  font-size: 0.68rem;
  font-weight: 600;
}

.simolah-dashboard-kpi .simolah-exec-sub {
  font-size: 0.7rem;
  gap: 0.35rem;
  line-height: 1.35;
}

.simolah-dashboard-advisor {
  margin: 0;
}

.simolah-dashboard-main-grid {
  align-items: start;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(0, 2fr) minmax(300px, 0.92fr);
  min-width: 0;
}

.simolah-dashboard-panel {
  min-width: 0;
}

.simolah-dashboard-panel-body {
  padding: clamp(1rem, 2vw, 1.35rem);
}

.simolah-dashboard-panel-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 1rem;
  min-width: 0;
}

.simolah-dashboard-panel-header h2,
.simolah-dashboard-panel-header h3 {
  color: #172033;
  font-size: 1rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.simolah-dashboard-panel-header h3 {
  font-size: 0.92rem;
}

.simolah-dashboard-panel-header small {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  margin-top: 0.25rem;
}

.simolah-dashboard-panel-header .btn {
  flex: 0 0 auto;
}

.simolah-dashboard-attendance-overview {
  align-items: center;
  display: grid;
  gap: clamp(1rem, 2.5vw, 2rem);
  grid-template-columns: 170px minmax(0, 1fr);
  margin-bottom: 1.15rem;
}

.simolah-dashboard-attendance-overview .simolah-chart-donut-wrapper {
  height: 150px;
  width: 150px;
}

.simolah-dashboard-attendance-overview .simolah-chart-donut-center strong {
  color: #0f172a;
  font-size: 1.55rem;
  line-height: 1.1;
}

.simolah-dashboard-attendance-overview .simolah-chart-donut-center span {
  font-size: 0.68rem;
}

.simolah-dashboard-attendance-stats {
  display: grid;
  gap: 0.75rem 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simolah-dashboard-attendance-stat {
  border-left: 3px solid #cbd5e1;
  min-width: 0;
  padding-left: 0.75rem;
}

.simolah-dashboard-attendance-stat.is-success { border-color: #22c55e; }
.simolah-dashboard-attendance-stat.is-warning { border-color: #f59e0b; }
.simolah-dashboard-attendance-stat.is-info { border-color: #0ea5e9; }
.simolah-dashboard-attendance-stat.is-danger { border-color: #ef4444; }

.simolah-dashboard-attendance-stat span {
  color: #64748b;
  display: block;
  font-size: 0.72rem;
  line-height: 1.35;
}

.simolah-dashboard-attendance-stat strong {
  color: #172033;
  display: block;
  font-size: 1.05rem;
  line-height: 1.25;
  margin-top: 0.2rem;
}

.simolah-dashboard-quick-section {
  border-top: 1px solid rgba(226, 232, 240, 0.9);
  padding-top: 1rem;
}

.simolah-dashboard-subheader {
  align-items: center;
  margin-bottom: 0.75rem;
}

.simolah-dashboard-quick-count {
  color: #64748b;
  font-size: 0.7rem;
  white-space: nowrap;
}

.simolah-dashboard-quick-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.simolah-dashboard-page .simolah-qa-card {
  align-items: center;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 36px minmax(0, 1fr);
  min-height: 68px;
  padding: 0.75rem;
}

.simolah-dashboard-page .simolah-qa-icon {
  border-radius: 50%;
  font-size: 1.1rem;
  height: 36px;
  width: 36px;
}

.simolah-dashboard-page .simolah-qa-info {
  overflow: hidden;
  min-width: 0;
}

.simolah-dashboard-page .simolah-qa-title,
.simolah-dashboard-page .simolah-qa-desc {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simolah-dashboard-page .simolah-qa-title {
  color: #172033;
  font-size: 0.78rem;
  line-height: 1.25;
  margin-bottom: 0.2rem;
}

.simolah-dashboard-page .simolah-qa-desc {
  color: #64748b;
  font-size: 0.68rem;
  line-height: 1.3;
}

.simolah-dashboard-activity-panel .simolah-dashboard-panel-body {
  min-height: 0;
}

.simolah-dashboard-page .simolah-activity-feed {
  gap: 0;
}

.simolah-dashboard-page .simolah-activity-item {
  grid-template-columns: 36px minmax(0, 1fr);
  gap: 0.7rem;
  padding: 0.55rem 0;
}

.simolah-dashboard-page .simolah-activity-avatar {
  border-radius: 12px;
  font-size: 1.05rem;
  height: 36px;
  width: 36px;
  border: 1px solid transparent;
  box-shadow: 0 5px 12px rgba(15, 23, 42, 0.06);
  transition: box-shadow 0.2s ease, transform 0.2s ease;
}

.simolah-dashboard-page .simolah-activity-avatar--primary { background: #eef2ff !important; color: #4f46e5 !important; }
.simolah-dashboard-page .simolah-activity-avatar--success { background: #ecfdf3 !important; color: #16a34a !important; }
.simolah-dashboard-page .simolah-activity-avatar--warning { background: #fff7ed !important; color: #d97706 !important; }
.simolah-dashboard-page .simolah-activity-avatar--danger { background: #fff1f2 !important; color: #dc2626 !important; }
.simolah-dashboard-page .simolah-activity-avatar--info { background: #eff6ff !important; color: #0284c7 !important; }

.simolah-dashboard-page .simolah-activity-avatar--arrival {
  background: #dcfce7 !important;
  border-color: #bbf7d0;
  color: #15803d !important;
}

.simolah-dashboard-page .simolah-activity-avatar--departure {
  background: #ffedd5 !important;
  border-color: #fed7aa;
  color: #ea580c !important;
}

.simolah-dashboard-page .simolah-activity-avatar--daily {
  background: #e0e7ff !important;
  border-color: #c7d2fe;
  color: #4f46e5 !important;
}

.simolah-dashboard-page .simolah-activity-avatar--activity {
  background: #fee2e2 !important;
  border-color: #fecaca;
  color: #dc2626 !important;
}

.simolah-dashboard-page .simolah-activity-avatar--kbm {
  background: #dbeafe !important;
  border-color: #bfdbfe;
  color: #2563eb !important;
}

@keyframes simolahActivityIconPulse {
  0%, 100% { box-shadow: 0 5px 12px rgba(15, 23, 42, 0.06); transform: scale(1); }
  50% { box-shadow: 0 7px 16px rgba(37, 99, 235, 0.16); transform: scale(1.04); }
}

.simolah-dashboard-page .simolah-activity-item.is-latest .simolah-activity-avatar {
  animation: simolahActivityIconPulse 2.8s ease-in-out infinite;
}

@media (prefers-reduced-motion: reduce) {
  .simolah-dashboard-page .simolah-activity-item.is-latest .simolah-activity-avatar {
    animation: none;
  }
}

.simolah-dashboard-page .simolah-activity-name {
  font-size: 0.8rem;
}

.simolah-dashboard-page .simolah-activity-meta {
  font-size: 0.68rem;
}

.simolah-dashboard-page .simolah-activity-source {
  font-size: 0.62rem;
  margin-top: 0.12rem;
}

.simolah-dashboard-empty-state {
  align-items: center;
  color: #64748b;
  display: flex;
  flex-direction: column;
  gap: 0.5rem;
  justify-content: center;
  min-height: 180px;
  text-align: center;
}

.simolah-dashboard-empty-state i {
  color: #94a3b8;
  font-size: 1.8rem;
}

@media (max-width: 1199.98px) {
  .simolah-dashboard-main-grid {
    grid-template-columns: 1fr;
  }

  .simolah-dashboard-page .simolah-dashboard-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-dashboard-activity-panel {
    order: 2;
  }
}

@media (max-width: 767.98px) {
  .simolah-dashboard-navbar {
    align-items: flex-start !important;
    height: auto !important;
    min-height: 64px;
  }

  .simolah-dashboard-navbar #navbar-collapse {
    align-self: flex-start;
    column-gap: 0.4rem;
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto;
    height: auto;
    min-height: 64px;
  }

  .simolah-dashboard-navbar-heading {
    min-width: 0;
  }

  .simolah-dashboard-navbar-heading small {
    font-size: 0.68rem;
    letter-spacing: -0.01em;
    white-space: nowrap;
  }

  .simolah-dashboard-page {
    gap: 0.75rem;
  }

  .simolah-dashboard-page .simolah-dash-hero {
    min-height: 146px;
    padding: 1.25rem;
  }

  .simolah-dashboard-navbar .simolah-dashboard-header-context {
    align-items: flex-end;
    flex-direction: column;
    gap: 0.25rem;
    flex-wrap: nowrap;
    justify-content: flex-end;
    max-width: none;
    width: max-content;
  }

  .simolah-dashboard-navbar-actions {
    align-items: center;
    flex: 0 0 auto;
    flex-wrap: nowrap;
    gap: 0.35rem;
    justify-content: flex-end;
    max-width: none;
    min-width: 0;
  }

  .simolah-dashboard-navbar .simolah-dash-badge,
  .simolah-dashboard-navbar .simolah-live-clock {
    font-size: 0.55rem;
    padding: 0.18rem 0.38rem;
    white-space: nowrap;
  }

  .simolah-dash-weather-art {
    right: 2%;
    width: 106px;
  }

  .simolah-dash-hero-visual {
    opacity: 0.72;
    width: 54%;
  }

  .simolah-dash-sky-object {
    right: 10%;
    transform: scale(0.78);
  }

  .simolah-dash-hero--night .simolah-dash-sky-object {
    transform: scale(0.75);
  }

  .simolah-dashboard-context {
    gap: 0.35rem;
  }

  .simolah-dashboard-page .simolah-dash-badge {
    font-size: 0.68rem;
    padding: 0.3rem 0.55rem;
  }

  .simolah-dashboard-page .simolah-live-clock {
    font-size: 0.75rem;
    padding: 0.35rem 0.65rem;
  }

  .simolah-dashboard-hero-footer {
    margin-top: 0.85rem;
  }

  .simolah-dashboard-page .simolah-dash-hero-content h1,
  .simolah-dashboard-page .simolah-dash-hero-content h2 {
    font-size: 1.35rem;
  }

  .simolah-dashboard-page .simolah-dash-hero-content p {
    max-width: 34ch;
  }

  .simolah-dashboard-kpis {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-dashboard-kpi {
    min-height: 126px;
    padding: 0.85rem;
  }

  .simolah-dashboard-kpi-main {
    align-items: flex-start;
    display: block;
  }

  .simolah-dashboard-kpi .simolah-exec-icon {
    display: inline-flex;
    margin-bottom: 0.55rem;
  }

  .simolah-dashboard-kpi .simolah-exec-label {
    line-height: 1.25;
  }

  .simolah-dashboard-kpi .simolah-exec-sub {
    font-size: 0.66rem;
  }

  .simolah-dashboard-attendance-overview {
    gap: 0.75rem;
    grid-template-columns: 112px minmax(0, 1fr);
  }

  .simolah-dashboard-attendance-overview .simolah-chart-donut-wrapper {
    height: 112px;
    width: 112px;
  }

  .simolah-dashboard-attendance-overview .simolah-chart-donut-center strong {
    font-size: 1.2rem;
  }

  .simolah-dashboard-attendance-stats {
    gap: 0.6rem;
  }

  .simolah-dashboard-attendance-stat {
    padding-left: 0.55rem;
  }

  .simolah-dashboard-attendance-stat span {
    font-size: 0.66rem;
  }

  .simolah-dashboard-attendance-stat strong {
    font-size: 0.9rem;
  }

  .simolah-dashboard-quick-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-dashboard-page .simolah-qa-card {
    grid-template-columns: 34px minmax(0, 1fr);
    min-height: 62px;
    padding: 0.65rem;
  }

  .simolah-dashboard-page .simolah-qa-icon {
    height: 34px;
    width: 34px;
  }

  .simolah-dashboard-page .simolah-qa-title {
    font-size: 0.73rem;
  }

  .simolah-dashboard-page .simolah-qa-desc {
    font-size: 0.64rem;
  }

  .simolah-dashboard-panel-header {
    gap: 0.65rem;
  }
}

@media (max-width: 430px) {
  .simolah-dashboard-page .simolah-dash-hero-top {
    align-items: flex-start;
    flex-direction: column;
  }

  .simolah-dashboard-page .simolah-live-clock {
    align-self: flex-start;
  }

  .simolah-dashboard-attendance-overview {
    grid-template-columns: 100px minmax(0, 1fr);
  }

  .simolah-dashboard-attendance-overview .simolah-chart-donut-wrapper {
    height: 100px;
    width: 100px;
  }

  .simolah-dashboard-attendance-stat span {
    overflow-wrap: anywhere;
  }

  .simolah-dashboard-quick-count {
    font-size: 0.64rem;
  }
}

@media (prefers-reduced-motion: reduce) {
  .simolah-dashboard-page .simolah-dash-hero,
  .simolah-dashboard-page .simolah-dash-hero * {
    animation: none !important;
    scroll-behavior: auto !important;
    transition: none !important;
  }
}

.simolah-student-photo,
.simolah-student-photo-lg {
  align-items: center;
  background: #eef2ff;
  color: #6366f1;
  display: inline-flex;
  flex-shrink: 0;
  justify-content: center;
  overflow: hidden;
}

.simolah-student-photo {
  border: 1px solid rgba(99, 102, 241, 0.16);
  border-radius: 8px;
  height: 44px;
  width: 32px;
}

.simolah-student-photo img,
.simolah-student-photo-lg img {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.simolah-student-photo.is-empty,
.simolah-student-photo-lg.is-empty {
  border-style: dashed;
}

.simolah-student-photo-lg {
  border: 1px solid rgba(99, 102, 241, 0.18);
  border-radius: 10px;
  font-size: 2rem;
  height: 108px;
  width: 72px;
}

.simolah-photo-upload-panel {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(226, 232, 240, 0.9);
  border-radius: 10px;
  display: flex;
  gap: 1rem;
  padding: 1rem;
}

@media (max-width: 767.98px) {
  .simolah-dash-hero {
    padding: 1.5rem;
  }
  .simolah-dash-hero-content h2 {
    font-size: 1.45rem;
  }
  .simolah-exec-value {
    font-size: 1.6rem;
  }
  .simolah-photo-upload-panel {
    align-items: flex-start;
  }
  .simolah-activity-item {
    grid-template-columns: 34px minmax(0, 1fr);
    gap: 0.75rem;
  }
  .simolah-activity-avatar {
    border-radius: 9px;
    font-size: 1rem;
    height: 34px;
    width: 34px;
  }
  .simolah-activity-top {
    align-items: flex-start;
  }
  .simolah-activity-badge {
    max-width: 86px;
  }
  .simolah-activity-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.15rem;
  }
  .simolah-activity-time {
    flex-shrink: 1;
  }
}
.simolah-student-card-tabs .nav-link {
  display: inline-flex;
  align-items: center;
  min-height: 46px;
  font-weight: 700;
}

.simolah-card-preview-stack {
  display: grid;
  gap: 16px;
  width: min(100%, 620px);
}

.simolah-card-preview-set {
  display: grid;
  gap: 16px;
  min-width: 0;
}

.simolah-card-preview-set.is-portrait {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.simolah-card-preview-set.is-portrait .simolah-student-card {
  margin: 0 auto;
  max-width: 280px;
}

.simolah-card-settings-section {
  border-bottom: 1px solid rgba(100, 116, 139, 0.14);
  margin-bottom: 1rem;
  padding-bottom: 1rem;
}

.simolah-card-settings-section > h6 {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.simolah-card-settings-section > h6 > span {
  align-items: center;
  background: rgba(var(--bs-primary-rgb), 0.1);
  border-radius: 50%;
  color: var(--bs-primary);
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 0.72rem;
  height: 24px;
  justify-content: center;
}

.simolah-card-editor {
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  overflow: hidden;
}

.simolah-card-editor-toolbar {
  background: rgba(100, 116, 139, 0.06);
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  padding: 0.55rem;
}

.simolah-card-editor-toolbar .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.35rem;
}

.simolah-card-editor-font-size {
  align-items: center;
  color: var(--bs-secondary-color);
  display: inline-flex;
  gap: 0.4rem;
  margin-left: auto;
}

.simolah-card-editor-font-size .form-select {
  min-width: 84px;
  width: auto;
}

.simolah-card-editor > textarea {
  border: 0;
  border-radius: 0;
  min-height: 132px;
  resize: vertical;
}

.simolah-card-editor > textarea:focus {
  box-shadow: inset 0 0 0 2px rgba(var(--bs-primary-rgb), 0.18);
}

.simolah-card-editor-meta {
  align-items: center;
  background: rgba(100, 116, 139, 0.04);
  border-top: 1px solid var(--bs-border-color);
  color: var(--bs-secondary-color);
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.48rem 0.7rem;
}

.simolah-card-editor-meta small:last-child {
  flex: 0 0 auto;
  font-variant-numeric: tabular-nums;
}

.simolah-color-field,
.simolah-switch-panel,
.simolah-template-upload {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 76px;
  padding: 14px;
  border: 1px solid var(--bs-border-color);
  border-radius: 8px;
  background: var(--bs-body-bg);
}

.simolah-color-field { cursor: pointer; }
.simolah-color-field input[type="color"] {
  width: 42px;
  height: 42px;
  flex: 0 0 auto;
  padding: 2px;
  border: 0;
  border-radius: 6px;
  background: transparent;
}
.simolah-color-field span { display: grid; gap: 2px; min-width: 0; }
.simolah-color-field small,
.simolah-switch-panel small,
.simolah-template-upload small { display: block; color: var(--bs-secondary-color); }

.simolah-switch-panel { justify-content: space-between; cursor: pointer; }
.simolah-switch-panel > span:first-child { min-width: 0; }
.simolah-switch-panel .form-check-input { width: 42px; height: 22px; margin: 0; }

.simolah-card-template-grid {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(180px, 1fr));
  gap: 14px;
}
.simolah-card-template-option {
  position: relative;
  display: grid;
  gap: 7px;
  padding: 12px;
  border: 2px solid var(--bs-border-color);
  border-radius: 8px;
  cursor: pointer;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}
.simolah-card-template-option:hover { transform: translateY(-2px); border-color: rgba(99,102,241,.45); }
.simolah-card-template-option.is-selected { border-color: var(--bs-primary); box-shadow: 0 8px 22px rgba(99,102,241,.14); }
.simolah-card-template-option input { position: absolute; opacity: 0; pointer-events: none; }
.simolah-card-template-option small { color: var(--bs-secondary-color); line-height: 1.35; }
.simolah-card-template-heading {
  align-items: center;
  display: flex;
  gap: 8px;
  justify-content: space-between;
}
.simolah-card-template-heading > strong { min-width: 0; }
.simolah-card-template-badge {
  border-radius: 999px;
  color: #42526b;
  background: #edf1f7;
  flex: 0 0 auto;
  font-size: 9px;
  font-weight: 800;
  letter-spacing: .04em;
  padding: 3px 7px;
  text-transform: uppercase;
}
.simolah-card-template-badge.is-portrait {
  color: #6d3cb0;
  background: #f2eafb;
}
.simolah-card-template-size {
  color: var(--bs-secondary-color);
  font-size: 11px;
  font-weight: 700;
}
.simolah-template-mini {
  position: relative;
  display: block;
  width: 100%;
  aspect-ratio: var(--template-aspect, 85.6 / 54);
  overflow: hidden;
  border: 1px solid rgba(100, 116, 139, .12);
  border-radius: 5px;
  background: #f3f5f9;
}
.simolah-template-mini.is-portrait {
  width: 46%;
  margin-inline: auto;
}
.simolah-template-mini i,
.simolah-template-mini b { position: absolute; display: block; }
.simolah-template-mini.template-classic i { inset: 0 0 auto; height: 24%; background: #1259a7; }
.simolah-template-mini.template-classic b { inset: auto 0 0; height: 9%; background: #22a447; }
.simolah-template-mini.template-modern {
  background: #fff url("../img/student-cards/modern-front.jpg") center / cover no-repeat;
}
.simolah-template-mini.template-modern i,
.simolah-template-mini.template-modern b { display: none; }
.simolah-template-mini.template-geometric { background: linear-gradient(135deg,#e8f0fc,#fff 48%,#e7f7ec); }
.simolah-template-mini.template-geometric i { top: 0; right: 0; width: 42%; height: 45%; clip-path: polygon(30% 0,100% 0,100% 100%,0 30%); background: linear-gradient(135deg,#1259a7,#22a447); }
.simolah-template-mini.template-custom { border: 1px dashed #8d99ae; background: repeating-linear-gradient(135deg,#f5f6fa,#f5f6fa 8px,#e9ebf2 8px,#e9ebf2 16px); }
.simolah-template-mini.template-modern_v2_landscape,
.simolah-template-mini.template-modern_v2_portrait {
  background:
    radial-gradient(circle at 94% 4%, rgba(18,89,167,.2) 0 24%, transparent 24.5%),
    radial-gradient(circle at 0 100%, rgba(34,164,71,.16) 0 21%, transparent 21.5%),
    #f8fafc;
}
.simolah-template-mini.template-modern_v2_landscape::before,
.simolah-template-mini.template-modern_v2_portrait::before {
  content: "";
  position: absolute;
  left: 5%;
  top: 5%;
  width: .7%;
  height: 14%;
  border-radius: 999px;
  background: #1259a7;
}
.simolah-template-mini.template-modern_v2_landscape i {
  left: 6%;
  top: 27%;
  width: 23.4%;
  height: 50%;
  border-radius: 12%;
  background: linear-gradient(145deg,#dbe7f5,#eef6ea);
  box-shadow: 0 2px 5px rgba(15,23,42,.12);
}
.simolah-template-mini.template-modern_v2_landscape b {
  left: 5%;
  right: 5%;
  bottom: 5%;
  height: 8%;
  border-radius: 999px;
  background: linear-gradient(90deg,#22a447 0 7%,#1259a7 7%);
}
.simolah-template-mini.template-modern_v2_portrait i {
  left: 29%;
  top: 23%;
  width: 42%;
  height: 27%;
  border-radius: 12%;
  background: linear-gradient(145deg,#dbe7f5,#eef6ea);
  box-shadow: 0 2px 5px rgba(15,23,42,.12);
}
.simolah-template-mini.template-modern_v2_portrait b {
  left: 7%;
  right: 7%;
  bottom: 4%;
  height: 5%;
  border-radius: 999px;
  background: linear-gradient(90deg,#22a447 0 7%,#1259a7 7%);
}
.simolah-template-upload { display: grid; align-items: stretch; }
.simolah-card-student-thumb { display: inline-flex; width: 42px; height: 54px; align-items: center; justify-content: center; object-fit: cover; border-radius: 5px; background: #e9edf5; color: #748198; font-weight: 800; }

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

@media (max-width: 575.98px) {
  .simolah-card-template-grid { grid-template-columns: 1fr; }
  .simolah-card-preview-stack { width: 100%; }
  .simolah-card-preview-set.is-portrait {
    display: flex;
    gap: 12px;
    overflow-x: auto;
    padding: 2px 2px 10px;
    scroll-snap-type: x mandatory;
  }
  .simolah-card-preview-set.is-portrait .simolah-student-card {
    width: min(72vw, 260px);
    max-width: none;
    flex: 0 0 min(72vw, 260px);
    scroll-snap-align: start;
  }
  .simolah-card-editor-meta {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.2rem;
  }
  .simolah-card-editor-toolbar .btn span { display: none; }
  .simolah-card-editor-font-size {
    margin-left: 0;
  }
  .simolah-card-editor-font-size > span { display: none; }
}

@media (min-width: 992px) {
  [data-card-preview-stack] {
    position: sticky;
    top: 92px;
  }
}

/* Kartu Pelajar: page-level refinement. Render/export/QR card geometry stays
 * in the existing partial; these rules only compose the admin surface. */
.simolah-student-card-page {
  --student-card-line: rgba(100, 116, 139, .16);
  --student-card-soft: #f8faff;
  min-width: 0;
}

.simolah-card-page-header {
  align-items: flex-end;
  display: flex;
  gap: 16px 24px;
  justify-content: space-between;
  margin-bottom: 16px;
  min-width: 0;
}

.simolah-card-page-header > div:first-child {
  min-width: 0;
}

.simolah-card-page-header h4 {
  color: #17223b;
  font-size: clamp(1.2rem, 1.7vw, 1.55rem);
  font-weight: 800;
  letter-spacing: -.02em;
}

.simolah-card-eyebrow {
  align-items: center;
  color: var(--bs-primary);
  display: flex;
  font-size: .7rem;
  font-weight: 800;
  gap: 6px;
  letter-spacing: .08em;
  margin-bottom: 5px;
  text-transform: uppercase;
}

.simolah-card-dimension {
  align-items: center;
  background: rgba(var(--bs-primary-rgb), .08);
  border: 1px solid rgba(var(--bs-primary-rgb), .14);
  border-radius: 999px;
  color: var(--bs-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .76rem;
  font-weight: 700;
  gap: 7px;
  max-width: 100%;
  padding: 8px 12px;
}

.simolah-card-dimension i { font-size: 15px; }

.simolah-student-card-page > .card,
.simolah-student-card-page .simolah-card-settings-card,
.simolah-student-card-page .simolah-card-template-card,
.simolah-student-card-page .simolah-card-filter-card,
.simolah-student-card-page .simolah-card-print-card {
  border: 1px solid var(--student-card-line) !important;
  border-radius: 16px;
  overflow: hidden;
  box-shadow: 0 10px 28px rgba(28, 42, 74, .06) !important;
}

.simolah-student-card-page .card-header,
.simolah-student-card-page .card-footer {
  background: #fff;
}

.simolah-card-section-header {
  padding: 15px 20px;
}

.simolah-card-section-header h5 { color: #17223b; font-weight: 800; }
.simolah-card-section-header small { display: block; line-height: 1.4; }
.simolah-card-settings-body { padding: 20px !important; }
.simolah-card-settings-section { margin-bottom: .85rem; padding-bottom: .85rem; }
.simolah-card-settings-grid > [class*="col-"] { min-width: 0; }

.simolah-card-print-filter > [class*="col-"] { min-width: 0; }
.simolah-card-filter-submit { min-height: 40px; }

.simolah-card-print-header {
  align-items: center;
  min-width: 0;
  padding: 15px 20px;
}

.simolah-card-print-header > div:first-child { min-width: 0; }
.simolah-card-print-toolbar {
  align-items: center;
  justify-content: flex-end;
  max-width: 100%;
  min-width: 0;
}

.simolah-card-print-toolbar > * { min-width: 0; }
.simolah-card-print-toolbar .form-select { max-width: 100%; }
.simolah-card-print-scope { width: 158px; }
.simolah-card-print-side { width: 208px; }
.simolah-card-print-toolbar .btn { white-space: nowrap; }

.simolah-card-print-table {
  table-layout: fixed;
  width: 100%;
}

.simolah-card-print-table th,
.simolah-card-print-table td {
  border-color: var(--student-card-line);
  padding: 11px 12px;
  vertical-align: middle;
}

.simolah-card-print-table th {
  background: var(--student-card-soft);
  color: #64748b;
  font-size: .68rem;
  font-weight: 800;
  letter-spacing: .05em;
  text-transform: uppercase;
  white-space: nowrap;
}

.simolah-card-print-table th:nth-child(1) { width: 4%; }
.simolah-card-print-table th:nth-child(2) { width: 8%; }
.simolah-card-print-table th:nth-child(3) { width: 15%; }
.simolah-card-print-table th:nth-child(4) { width: 27%; }
.simolah-card-print-table th:nth-child(5) { width: 16%; }
.simolah-card-print-table th:nth-child(6) { width: 16%; }
.simolah-card-print-table th:nth-child(7) { width: 14%; }
.simolah-card-print-table td strong { color: #273454; }
.simolah-card-print-table td small { line-height: 1.3; }
.simolah-card-print-table td .badge { white-space: normal; }
.simolah-card-student-thumb { flex: 0 0 auto; }

.simolah-card-print-footer { padding: 12px 20px; }
.simolah-card-print-footer > div:first-child { min-width: 0; }

@media (min-width: 992px) {
  .simolah-card-print-header {
    display: grid !important;
    gap: 12px 18px !important;
    grid-template-columns: minmax(0, 1fr) minmax(0, auto);
  }
}

@media (max-width: 991.98px) {
  .simolah-card-page-header { align-items: flex-start; flex-direction: column; }
  .simolah-card-dimension { align-self: flex-start; }
  .simolah-card-print-toolbar { justify-content: flex-start; }
  [data-card-preview-stack] { position: static; }
}

@media (max-width: 767.98px) {
  .simolah-card-page-header { gap: 10px; margin-bottom: 12px; }
  .simolah-card-page-header h4 { font-size: 1.25rem; }
  .simolah-card-page-header p { font-size: .8rem; line-height: 1.45; }
  .simolah-card-eyebrow { font-size: .63rem; }
  .simolah-card-dimension { font-size: .7rem; padding: 7px 10px; }
  .simolah-student-card-tabs { gap: 4px; margin-bottom: 12px !important; overflow-x: auto; padding-bottom: 1px; scrollbar-width: none; }
  .simolah-student-card-tabs::-webkit-scrollbar { display: none; }
  .simolah-student-card-tabs .nav-item { flex: 0 0 auto; }
  .simolah-student-card-tabs .nav-link { font-size: .78rem; min-height: 40px; padding: 8px 11px; white-space: nowrap; }
  .simolah-card-section-header,
  .simolah-card-print-header { padding: 14px 16px; }
  .simolah-card-settings-body,
  .simolah-card-filter-card .card-body { padding: 14px !important; }
  .simolah-card-settings-grid { --bs-gutter-y: 1rem; }
  .simolah-card-settings-section { margin-bottom: .7rem; padding-bottom: .7rem; }
  .simolah-card-settings-section > h6 { margin-bottom: .65rem; }
  .simolah-card-settings-card .card-header .btn { width: 100%; }
  .simolah-card-template-card .card-body { padding: 14px !important; }
  .simolah-card-print-filter { --bs-gutter-y: .8rem; }
  .simolah-card-print-filter .form-select,
  .simolah-card-print-filter .form-control { min-height: 42px; }
  .simolah-card-filter-submit { min-height: 44px; }
  .simolah-card-print-header { display: flex !important; align-items: stretch !important; }
  .simolah-card-print-toolbar { display: grid !important; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); width: 100%; }
  .simolah-card-print-toolbar .simolah-card-print-scope,
  .simolah-card-print-toolbar .simolah-card-print-side { width: 100%; grid-column: 1 / -1; }
  .simolah-card-print-toolbar .btn { min-height: 40px; width: 100%; }
  .simolah-card-print-table-wrap,
  .simolah-card-print-card .table-responsive { overflow: visible; }
  .simolah-card-print-table { display: block; min-width: 0; table-layout: auto; width: 100%; }
  .simolah-card-print-table thead { display: none; }
  .simolah-card-print-table tbody { display: grid; gap: 9px; padding: 12px; }
  .simolah-card-print-table tbody tr {
    background: #fff;
    border: 1px solid var(--student-card-line);
    border-radius: 13px;
    display: grid;
    gap: 8px 10px;
    grid-template-columns: 22px 42px minmax(0, 1fr);
    padding: 12px;
  }
  .simolah-card-print-table tbody td {
    border: 0;
    min-width: 0;
    padding: 0;
    width: auto !important;
  }
  .simolah-card-print-table tbody td:nth-child(1) { grid-column: 1; grid-row: 1; padding-top: 3px; }
  .simolah-card-print-table tbody td:nth-child(2) { grid-column: 2; grid-row: 1; }
  .simolah-card-print-table tbody td:nth-child(3) { grid-column: 3; grid-row: 1; }
  .simolah-card-print-table tbody td:nth-child(4) { grid-column: 3; grid-row: 2; }
  .simolah-card-print-table tbody td:nth-child(n+5) {
    align-items: center;
    border-top: 1px dashed var(--student-card-line);
    display: flex;
    gap: 10px;
    grid-column: 1 / -1;
    justify-content: space-between;
    padding-top: 8px;
  }
  .simolah-card-print-table tbody td:nth-child(n+5)::before {
    color: #64748b;
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: .66rem;
    font-weight: 800;
    letter-spacing: .04em;
    text-transform: uppercase;
  }
  .simolah-card-print-table tbody td:nth-child(n+5) > * { max-width: 68%; text-align: right; }
  .simolah-card-print-table tbody td:nth-child(3) strong,
  .simolah-card-print-table tbody td:nth-child(4) strong {
    display: -webkit-box;
    line-height: 1.25;
    overflow: hidden;
    overflow-wrap: anywhere;
    -webkit-box-orient: vertical;
    -webkit-line-clamp: 2;
  }
  .simolah-card-print-table tbody td[colspan] { display: block !important; grid-column: 1 / -1; padding: 24px !important; text-align: center; }
  .simolah-card-print-footer { align-items: stretch !important; padding: 12px 16px; }
  .simolah-card-print-footer > div:first-child { align-items: flex-start !important; flex-wrap: wrap; }
  .simolah-card-print-footer .pagination { align-self: center; flex-wrap: wrap; }
}

/* Kalender Pendidikan: filter ringkas, slider sentuh, dan rangkuman yang dapat dilipat. */
.simolah-calendar-page .simolah-calendar-tabs {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: inline-flex;
  gap: 0.25rem;
  padding: 0.3rem;
}

.simolah-calendar-page .simolah-calendar-tabs .nav-link {
  color: #64748b;
  font-weight: 700;
  justify-content: center;
  padding: 0.6rem 0.85rem;
}

.simolah-calendar-page .simolah-calendar-tabs .nav-link.active {
  background: var(--simolah-primary);
  box-shadow: 0 5px 14px rgba(99, 102, 241, 0.18);
  color: #ffffff;
}

.simolah-calendar-filter {
  align-items: end;
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
  padding: 0.9rem;
}

.simolah-calendar-filter-field {
  grid-column: span 2;
  min-width: 0;
}

.simolah-calendar-filter-field.is-wide {
  grid-column: span 2;
}

.simolah-calendar-filter-field.is-compact {
  grid-column: span 2;
}

.simolah-calendar-filter .form-label {
  color: #475569;
  font-size: 0.78rem;
  font-weight: 700;
  margin-bottom: 0.35rem;
}

.simolah-calendar-filter .form-select,
.simolah-calendar-filter .btn {
  min-height: 44px;
}

.simolah-calendar-filter-action {
  grid-column: span 2;
}

.simolah-calendar-filter-action .btn {
  align-items: center;
  display: inline-flex;
  justify-content: center;
  width: 100%;
}

.simolah-calendar-filter-action.is-heb {
  display: flex;
  gap: 0.45rem;
}

.simolah-calendar-filter-action.is-heb .btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.simolah-calendar-filter-action.is-reference {
  display: flex;
  gap: 0.45rem;
}

.simolah-calendar-filter-action.is-reference .btn {
  flex: 1 1 0;
  min-width: 0;
  width: auto;
}

.simolah-calendar-filter-legend {
  align-items: center;
  border-top: 1px solid rgba(100, 116, 139, 0.12);
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem 0.85rem;
  grid-column: 1 / -1;
  padding-top: 0.75rem;
}

.simolah-calendar-slider {
  max-width: 100%;
  overflow: hidden;
}

.simolah-calendar-page .simolah-calendar-grid {
  gap: 0.8rem;
}

.simolah-calendar-page .simolah-calendar-month {
  border-color: rgba(100, 116, 139, 0.2);
  box-shadow: 0 5px 16px rgba(15, 23, 42, 0.05);
}

.simolah-calendar-page .simolah-calendar-month-title {
  background: #eff6ff;
  border-bottom-width: 1px;
  color: #1e3a5f;
  padding: 0.58rem 0.7rem;
}

.simolah-calendar-page .simolah-calendar-day {
  min-height: 88px;
}

.simolah-calendar-navigation {
  align-items: center;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  margin-top: 0.85rem;
}

.simolah-calendar-navigation .btn {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
  justify-content: center;
  min-height: 42px;
}

.simolah-calendar-position {
  color: #334155;
  display: grid;
  gap: 0.1rem;
  min-width: 0;
  text-align: center;
}

.simolah-calendar-position strong {
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simolah-calendar-position small {
  color: #64748b;
  font-size: 0.74rem;
}

.simolah-event-summary {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.18);
  border-radius: 8px;
  overflow: hidden;
}

.simolah-event-summary > summary {
  list-style: none;
}

.simolah-event-summary > summary::-webkit-details-marker {
  display: none;
}

.simolah-event-summary-head {
  align-items: center;
  cursor: pointer;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  min-height: 68px;
  padding: 0.85rem 1rem;
  user-select: none;
}

.simolah-event-summary-head:focus-visible {
  box-shadow: inset 0 0 0 3px rgba(99, 102, 241, 0.2);
  outline: 0;
}

.simolah-event-summary-title {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-width: 0;
}

.simolah-event-summary-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 8px;
  color: var(--simolah-primary);
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 1.25rem;
  height: 42px;
  justify-content: center;
}

.simolah-event-summary-title strong,
.simolah-event-summary-title small {
  display: block;
}

.simolah-event-summary-title small {
  color: #64748b;
  font-size: 0.78rem;
  font-weight: 500;
  margin-top: 0.12rem;
}

.simolah-event-summary-meta {
  align-items: center;
  display: flex;
  gap: 0.75rem;
}

.simolah-summary-chevron {
  color: #64748b;
  font-size: 1.35rem;
  transition: transform 0.18s ease;
}

.simolah-event-summary[open] .simolah-summary-chevron {
  transform: rotate(180deg);
}

.simolah-event-summary-body {
  border-top: 1px solid rgba(100, 116, 139, 0.14);
  padding: 1rem;
}

.simolah-summary-search {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.85rem;
  min-height: 46px;
  padding: 0 0.75rem;
}

.simolah-summary-search > i {
  color: #64748b;
  flex: 0 0 auto;
}

.simolah-summary-search .form-control {
  background: transparent;
  border: 0;
  box-shadow: none;
  min-width: 0;
  padding-left: 0;
}

.simolah-summary-search > span {
  color: #64748b;
  flex: 0 0 auto;
  font-size: 0.74rem;
  font-weight: 700;
}

@media (max-width: 1199.98px) {
  .simolah-calendar-filter-field,
  .simolah-calendar-filter-field.is-wide,
  .simolah-calendar-filter-field.is-compact {
    grid-column: span 3;
  }

  .simolah-calendar-filter-action {
    grid-column: span 3;
  }
}

@media (max-width: 767.98px) {
  .simolah-calendar-page .simolah-calendar-tabs {
    display: flex;
    overflow-x: auto;
    padding: 0.25rem;
    scrollbar-width: none;
    width: 100%;
  }

  .simolah-calendar-page .simolah-calendar-tabs::-webkit-scrollbar,
  .simolah-calendar-slider.is-slidable .simolah-calendar-grid::-webkit-scrollbar {
    display: none;
  }

  .simolah-calendar-page .simolah-calendar-tabs .nav-item {
    flex: 1 0 auto;
  }

  .simolah-calendar-page .simolah-calendar-tabs .nav-link {
    min-height: 44px;
    padding: 0.55rem 0.7rem;
  }

  .simolah-calendar-filter {
    background: #ffffff !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    padding: 0.75rem;
  }

  .simolah-calendar-filter-field,
  .simolah-calendar-filter-field.is-wide,
  .simolah-calendar-filter-field.is-compact,
  .simolah-calendar-filter-action {
    grid-column: span 1;
  }

  .simolah-calendar-filter-field.is-wide {
    grid-column: 1 / -1;
  }

  .simolah-calendar-filter-legend {
    gap: 0.45rem 0.7rem;
  }

  .simolah-calendar-slider.is-slidable {
    margin-inline: -0.15rem;
    overflow: visible;
  }

  .simolah-calendar-slider.is-slidable .simolah-calendar-grid {
    display: flex;
    gap: 0.75rem;
    grid-template-columns: none;
    overflow-x: auto;
    overscroll-behavior-inline: contain;
    padding: 0.15rem;
    scroll-behavior: smooth;
    scroll-snap-type: x mandatory;
    scrollbar-width: none;
    touch-action: pan-x pan-y;
  }

  .simolah-calendar-slider.is-slidable .simolah-calendar-month {
    flex: 0 0 calc(100% - 0.3rem);
    scroll-snap-align: center;
    scroll-snap-stop: always;
  }

  .simolah-calendar-page .simolah-calendar-day {
    min-height: 76px;
    padding: 0.34rem 0.28rem;
  }

  .simolah-calendar-navigation {
    gap: 0.45rem;
  }

  .simolah-calendar-navigation .btn {
    min-width: 44px;
    padding-inline: 0.65rem;
  }

  .simolah-calendar-navigation .btn span,
  .simolah-calendar-position small {
    display: none;
  }

  .simolah-event-summary-head {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.65rem;
  }

  .simolah-event-summary-meta {
    justify-content: space-between;
    width: 100%;
  }

  .simolah-summary-badges {
    gap: 0.35rem;
  }

  .simolah-summary-badges span {
    min-height: 28px;
    padding: 0.22rem 0.5rem;
  }

  .simolah-event-summary-body {
    padding: 0.75rem;
  }

  .simolah-summary-search > span {
    display: none;
  }
}

@media (max-width: 479.98px) {
  .simolah-calendar-filter {
    grid-template-columns: minmax(0, 1fr);
  }

  .simolah-calendar-filter-field,
  .simolah-calendar-filter-field.is-wide,
  .simolah-calendar-filter-field.is-compact,
  .simolah-calendar-filter-action {
    grid-column: 1 / -1;
  }

  .simolah-calendar-filter-action .btn {
    width: 100%;
  }

  .simolah-calendar-page .simolah-calendar-weekdays div {
    font-size: 0.7rem;
  }

  .simolah-calendar-page .simolah-calendar-day {
    min-height: 70px;
  }

  .simolah-calendar-page .simolah-calendar-chip {
    font-size: 0.58rem;
  }

  .simolah-event-summary-title small {
    line-height: 1.35;
  }
}

/* Kalender Pendidikan: compact hierarchy and responsive page structures. */
.simolah-calendar-toolbar {
  box-shadow: 0 5px 18px rgba(15, 23, 42, 0.04);
}

.simolah-calendar-toolbar .card-body {
  padding: 1rem;
}

.simolah-calendar-header {
  align-items: flex-start;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.simolah-calendar-header h5 {
  color: var(--simolah-ink);
  font-size: 1.25rem;
  font-weight: 800;
}

.simolah-calendar-header-preview,
.simolah-calendar-header-preview form {
  align-items: center;
  display: flex;
  gap: 0.5rem;
}

.simolah-calendar-header-preview .form-select,
.simolah-calendar-header-preview .btn {
  min-height: 38px;
}

.simolah-calendar-context-actions {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 8px;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding: 0.55rem 0.7rem;
}

.simolah-calendar-context-label {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.76rem;
  font-weight: 700;
  gap: 0.35rem;
}

.simolah-calendar-context-label i {
  color: var(--simolah-primary);
  font-size: 1rem;
}

.simolah-calendar-page .simolah-calendar-tabs {
  margin-bottom: 0.75rem !important;
  flex-wrap: nowrap !important;
}

.simolah-calendar-page {
  transition: opacity 180ms ease;
}

.simolah-calendar-page.is-loading {
  cursor: progress;
  opacity: 0.66;
  pointer-events: none;
}

  .simolah-calendar-page .simolah-calendar-tabs .nav-link {
    min-height: 38px;
    padding: 0.45rem 0.8rem;
    white-space: nowrap;
  }

  .simolah-calendar-page .simolah-calendar-tabs .nav-item {
    flex: 0 0 auto;
  }

.simolah-calendar-filter {
  gap: 0.6rem;
  padding: 0.7rem;
}

.simolah-calendar-filter-disclosure > summary {
  list-style: none;
}

.simolah-calendar-filter-disclosure > summary::-webkit-details-marker {
  display: none;
}

.simolah-calendar-filter-summary {
  display: none;
}

@media (min-width: 768px) {
  .simolah-calendar-filter-disclosure:not([open]) > .simolah-calendar-filter {
    display: grid;
  }
}

.simolah-calendar-filter .form-select,
.simolah-calendar-filter .btn {
  min-height: 40px;
}

.simolah-calendar-filter-legend {
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.12rem;
  scrollbar-width: none;
}

.simolah-calendar-filter-legend::-webkit-scrollbar {
  display: none;
}

.simolah-calendar-filter-legend .simolah-calendar-legend {
  flex: 0 0 auto;
  white-space: nowrap;
}

.simolah-calendar-management .card-body {
  padding: 0.8rem 1rem;
}

.simolah-calendar-management .badge {
  max-width: 100%;
  overflow-wrap: anywhere;
  text-align: left;
  white-space: normal;
}

.simolah-calendar-management-actions {
  align-items: center;
}

.simolah-calendar-source-form {
  align-items: center;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: minmax(190px, 1fr) auto;
}

.simolah-calendar-source-form .form-select,
.simolah-calendar-management .btn {
  min-height: 38px;
}

.simolah-calendar-status-form {
  align-self: stretch;
  display: flex;
}

.simolah-calendar-status-form .btn {
  align-items: center;
  display: inline-flex;
}

.simolah-calendar-print > .card-body {
  padding: 0.85rem;
}

.simolah-calendar-page .simolah-category-strip {
  flex-wrap: nowrap;
  max-width: 100%;
  overflow-x: auto;
  overscroll-behavior-inline: contain;
  padding-bottom: 0.15rem;
  scrollbar-width: none;
}

.simolah-calendar-page .simolah-category-strip::-webkit-scrollbar {
  display: none;
}

.simolah-calendar-page .simolah-category-strip .simolah-category-pill {
  flex: 0 0 auto;
  white-space: nowrap;
}

.simolah-calendar-page .simolah-event-summary-head {
  min-height: 60px;
  padding: 0.7rem 0.85rem;
}

.simolah-calendar-page .simolah-event-summary-icon {
  flex-basis: 38px;
  height: 38px;
}

.simolah-calendar-page .simolah-event-summary-body {
  padding: 0.8rem;
}

.simolah-calendar-page .simolah-summary-table th,
.simolah-calendar-page .simolah-summary-table td {
  padding-block: 0.42rem;
}

.simolah-calendar-summary-cards {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simolah-calendar-academic-summary {
  grid-template-columns: repeat(5, minmax(0, 1fr));
}

.simolah-calendar-summary-card {
  align-items: center;
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  display: flex;
  gap: 0.65rem;
  min-width: 0;
  padding: 0.7rem;
}

.simolah-calendar-summary-card > span:last-child {
  min-width: 0;
}

.simolah-calendar-summary-card strong,
.simolah-calendar-summary-card small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
}

.simolah-calendar-summary-card strong {
  color: #111827;
  font-size: 0.84rem;
  line-height: 1.25;
  white-space: nowrap;
}

.simolah-calendar-summary-card small {
  color: #64748b;
  font-size: 0.7rem;
  line-height: 1.35;
  margin-top: 0.18rem;
  white-space: nowrap;
}

.simolah-calendar-summary-card .simolah-mini-label {
  font-size: 0.68rem;
  margin-bottom: 0.12rem;
}

.simolah-calendar-summary-icon {
  align-items: center;
  background: #eef2ff;
  border-radius: 999px;
  color: var(--simolah-primary);
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 1.05rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.simolah-calendar-summary-icon.is-blue,
.simolah-calendar-year-stats i.is-blue { color: #2563eb; }
.simolah-calendar-summary-icon.is-purple { background: #f1edff; color: #7c3aed; }
.simolah-calendar-summary-icon.is-green,
.simolah-calendar-year-stats i.is-green { background: #ecfdf5; color: #16a34a; }
.simolah-calendar-summary-icon.is-orange,
.simolah-calendar-year-stats i.is-orange { background: #fff7ed; color: #ea580c; }
.simolah-calendar-summary-icon.is-indigo { background: #eef2ff; color: #4f46e5; }
.simolah-calendar-summary-icon.is-red,
.simolah-calendar-year-stats i.is-red { background: #fef2f2; color: #dc2626; }

.simolah-calendar-section-heading {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.simolah-calendar-section-heading h6 {
  color: #1e3a5f;
  font-weight: 800;
}

.simolah-calendar-reference-layout,
.simolah-calendar-academic-layout {
  align-items: start;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 1.65fr) minmax(260px, 0.85fr);
}

.simolah-calendar-reference-layout {
  grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.8fr);
}

.simolah-calendar-year-overview,
.simolah-calendar-current-month,
.simolah-calendar-side-panel {
  background: #ffffff;
  border: 1px solid rgba(100, 116, 139, 0.16);
  border-radius: 8px;
  min-width: 0;
  padding: 0.75rem;
}

.simolah-calendar-reference-aside,
.simolah-calendar-academic-aside {
  display: grid;
  gap: 0.9rem;
  min-width: 0;
}

.simolah-calendar-side-panel {
  padding: 0.85rem;
}

.simolah-calendar-side-heading {
  align-items: center;
  color: #1e3a5f;
  display: flex;
  font-size: 0.85rem;
  gap: 0.5rem;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.simolah-calendar-side-heading > i {
  color: var(--simolah-primary);
  font-size: 1.05rem;
}

.simolah-calendar-side-heading a {
  color: var(--simolah-primary);
  font-size: 0.72rem;
  font-weight: 700;
}

.simolah-calendar-year-stats {
  display: grid;
  gap: 0.48rem;
  margin: 0;
}

.simolah-calendar-year-stats > div {
  align-items: center;
  display: flex;
  gap: 0.5rem;
  justify-content: space-between;
}

.simolah-calendar-year-stats dt,
.simolah-calendar-year-stats dd {
  font-size: 0.75rem;
  margin: 0;
}

.simolah-calendar-year-stats dt {
  align-items: center;
  color: #64748b;
  display: flex;
  gap: 0.4rem;
  min-width: 0;
}

.simolah-calendar-year-stats dt i {
  align-items: center;
  background: #f8fafc;
  border-radius: 999px;
  display: inline-flex;
  flex: 0 0 24px;
  font-size: 0.85rem;
  height: 24px;
  justify-content: center;
  width: 24px;
}

.simolah-calendar-year-stats dd {
  color: #111827;
  font-weight: 800;
  white-space: nowrap;
}

.simolah-calendar-agenda-list {
  display: grid;
  gap: 0.55rem;
  list-style: none;
  margin: 0;
  padding: 0;
}

.simolah-calendar-agenda-list li {
  align-items: center;
  display: grid;
  gap: 0.45rem;
  grid-template-columns: auto minmax(0, 1fr) auto;
  min-width: 0;
}

.simolah-calendar-agenda-list li.is-empty {
  color: #64748b;
  display: block;
  font-size: 0.76rem;
  padding: 0.3rem 0;
}

.simolah-calendar-agenda-title {
  color: #334155;
  font-size: 0.74rem;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.simolah-calendar-agenda-list time {
  color: #64748b;
  font-size: 0.68rem;
  white-space: nowrap;
}

.simolah-calendar-month-arrows {
  align-items: center;
  display: flex;
  gap: 0.55rem;
}

.simolah-calendar-month-arrows strong {
  color: #1e3a5f;
  font-size: 0.92rem;
  min-width: 110px;
  text-align: center;
}

.simolah-calendar-month-nav-list {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.simolah-calendar-month-nav-item {
  align-items: center;
  background: #f8fafc;
  border: 1px solid rgba(100, 116, 139, 0.14);
  border-radius: 7px;
  color: #475569;
  display: flex;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 0.35rem;
  justify-content: space-between;
  min-height: 34px;
  padding: 0.35rem 0.45rem;
  transition: background 0.16s ease, border-color 0.16s ease, color 0.16s ease;
}

.simolah-calendar-month-nav-item:hover,
.simolah-calendar-month-nav-item:focus-visible {
  background: #eff6ff;
  border-color: rgba(37, 99, 235, 0.35);
  color: var(--simolah-primary);
}

.simolah-calendar-month-nav-item.is-active {
  background: #eef2ff;
  border-color: var(--simolah-primary);
  box-shadow: inset 0 0 0 1px rgba(37, 99, 235, 0.12);
  color: var(--simolah-primary);
}

.simolah-calendar-month-nav-item i {
  background: var(--simolah-primary);
  border-radius: 999px;
  display: inline-block;
  flex: 0 0 6px;
  height: 6px;
  width: 6px;
}

.simolah-calendar-page .simolah-calendar-grid {
  gap: 0.55rem;
}

.simolah-calendar-page .simolah-calendar-month-title {
  font-size: 0.82rem;
  padding: 0.42rem 0.5rem;
}

.simolah-calendar-page .simolah-calendar-day {
  min-height: 68px;
  padding: 0.3rem;
}

.simolah-calendar-reference-layout .simolah-calendar-day {
  min-height: 34px;
  padding: 0.22rem;
}

.simolah-calendar-reference-layout .simolah-calendar-month-title {
  font-size: 0.74rem;
}

.simolah-calendar-reference-layout .simolah-calendar-weekdays div,
.simolah-calendar-reference-layout .simolah-calendar-day-number {
  font-size: 0.64rem;
}

.simolah-calendar-reference-layout .simolah-calendar-events {
  gap: 0.14rem;
  margin-top: 0.24rem;
}

.simolah-calendar-current-month .simolah-calendar-day {
  min-height: 60px;
}

.simolah-calendar-chip {
  border-radius: 999px;
  box-shadow: none;
  display: inline-block;
  flex: 0 0 6px;
  height: 6px;
  overflow: visible;
  padding: 0;
  width: 6px;
}

.simolah-calendar-events {
  align-items: center;
  flex-direction: row;
  flex-wrap: wrap;
}

.simolah-calendar-more {
  font-size: 0.62rem;
  line-height: 1;
}

.simolah-summary-toolbar {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  margin-bottom: 0.7rem;
}

.simolah-summary-search {
  flex: 1 1 auto;
  margin-bottom: 0;
  min-height: 40px;
}

.simolah-summary-page-size {
  align-items: center;
  color: #64748b;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 0.72rem;
  gap: 0.4rem;
}

.simolah-summary-page-size .form-select {
  min-width: 112px;
}

.simolah-category-pill {
  border: 1px solid color-mix(in srgb, var(--event-color, #2563eb) 32%, #ffffff);
  cursor: pointer;
  font-family: inherit;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

.simolah-category-pill:hover,
.simolah-category-pill:focus-visible,
.simolah-category-pill.is-active {
  box-shadow: 0 0 0 2px color-mix(in srgb, var(--event-color, #2563eb) 16%, transparent);
}

.simolah-category-pill.is-active {
  background: color-mix(in srgb, var(--event-color, #2563eb) 15%, #ffffff);
}

.simolah-summary-table table {
  font-size: 0.76rem;
}

.simolah-summary-table th,
.simolah-summary-table td {
  padding: 0.48rem 0.55rem;
  vertical-align: middle;
}

.simolah-summary-table th {
  color: #64748b;
  font-size: 0.68rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.simolah-summary-pagination {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  padding-top: 0.7rem;
}

.simolah-summary-pagination > span,
.simolah-summary-pagination-actions {
  color: #64748b;
  font-size: 0.74rem;
}

.simolah-summary-pagination-actions {
  align-items: center;
  display: inline-flex;
  gap: 0.55rem;
}

.simolah-summary-pagination-actions button {
  min-height: 30px;
  min-width: 30px;
  padding: 0.2rem;
}

.simolah-heb-metrics {
  --bs-gutter-x: 0.7rem;
  --bs-gutter-y: 0.7rem;
}

.simolah-heb-metrics .simolah-metric-tile {
  min-height: 86px;
  padding: 0.75rem;
}

.simolah-heb-metrics .simolah-metric-tile strong {
  font-size: 1.45rem;
  margin: 0.15rem 0;
}

.simolah-heb-summary .table-responsive {
  border: 1px solid rgba(100, 116, 139, 0.12);
  border-radius: 7px;
}

.simolah-heb-summary table {
  font-size: 0.72rem;
  white-space: nowrap;
}

.simolah-heb-summary th,
.simolah-heb-summary td {
  padding: 0.4rem 0.45rem;
}

@media (min-width: 1200px) {
  .simolah-calendar-management .card-body {
    flex-wrap: nowrap !important;
  }

  .simolah-calendar-management .card-body > div:first-child {
    flex: 1 1 auto;
    min-width: 0;
  }

  .simolah-calendar-management-actions {
    display: grid !important;
    flex: 0 1 610px;
    grid-template-columns: minmax(0, 1fr) auto;
  }

  .simolah-calendar-page .simolah-calendar-grid-12 {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .simolah-calendar-page .simolah-calendar-grid-6 {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 1199.98px) {
  .simolah-calendar-management .card-body,
  .simolah-calendar-management-actions {
    align-items: stretch !important;
  }

  .simolah-calendar-management .card-body > div,
  .simolah-calendar-management-actions {
    width: 100%;
  }

  .simolah-calendar-reference-layout,
  .simolah-calendar-academic-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .simolah-calendar-reference-aside,
  .simolah-calendar-academic-aside {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-calendar-academic-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .simolah-calendar-toolbar .card-body {
    padding: 0.85rem;
  }

  .simolah-calendar-header {
    flex-direction: column;
    margin-bottom: 0.65rem;
  }

  .simolah-calendar-header-preview,
  .simolah-calendar-header-preview form,
  .simolah-calendar-header-preview .btn,
  .simolah-calendar-header-preview .form-select {
    width: 100%;
  }

  .simolah-calendar-header-preview form {
    display: grid;
    grid-template-columns: minmax(0, 1fr) minmax(0, 1.4fr);
  }

  .simolah-calendar-filter-summary {
    align-items: center;
    background: #f8fafc;
    border: 1px solid rgba(100, 116, 139, 0.16);
    border-radius: 8px;
    cursor: pointer;
    display: flex;
    gap: 0.65rem;
    min-height: 50px;
    padding: 0.55rem 0.65rem;
  }

  .simolah-calendar-filter-summary:focus-visible {
    border-color: var(--simolah-primary);
    box-shadow: 0 0 0 3px rgba(99, 102, 241, 0.14);
    outline: 0;
  }

  .simolah-calendar-filter-summary-icon {
    align-items: center;
    background: #eef2ff;
    border-radius: 8px;
    color: var(--simolah-primary);
    display: inline-flex;
    flex: 0 0 34px;
    font-size: 1rem;
    height: 34px;
    justify-content: center;
  }

  .simolah-calendar-filter-summary-copy {
    min-width: 0;
  }

  .simolah-calendar-filter-summary-copy strong,
  .simolah-calendar-filter-summary-copy small {
    display: block;
  }

  .simolah-calendar-filter-summary-copy strong {
    color: #1e293b;
    font-size: 0.8rem;
  }

  .simolah-calendar-filter-summary-copy small {
    color: #64748b;
    font-size: 0.68rem;
    margin-top: 0.1rem;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .simolah-calendar-filter-summary-chevron {
    color: #64748b;
    flex: 0 0 auto;
    font-size: 1.15rem;
    margin-left: auto;
    transition: transform 180ms ease;
  }

  .simolah-calendar-filter-disclosure[open] .simolah-calendar-filter-summary-chevron {
    transform: rotate(180deg);
  }

  .simolah-calendar-filter-disclosure[open] .simolah-calendar-filter {
    margin-top: 0.55rem;
  }

  .simolah-calendar-filter-legend {
    margin-inline: -0.1rem;
  }

  .simolah-calendar-management .card-body {
    align-items: stretch !important;
    padding: 0.75rem;
  }

  .simolah-calendar-management .card-body > div,
  .simolah-calendar-management-actions,
  .simolah-calendar-source-form,
  .simolah-calendar-status-form,
  .simolah-calendar-management .form-select,
  .simolah-calendar-management .btn {
    width: 100%;
  }

  .simolah-calendar-management-actions {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr);
  }

  .simolah-calendar-source-form {
    grid-template-columns: minmax(0, 1fr);
  }

  .simolah-calendar-print > .card-body {
    padding: 0.75rem;
  }

  .simolah-calendar-context-actions {
    align-items: flex-start;
    flex-direction: column;
  }

  .simolah-calendar-context-actions > div,
  .simolah-calendar-context-actions > div > form,
  .simolah-calendar-context-actions > div > .dropdown,
  .simolah-calendar-context-actions > div > .btn {
    width: 100%;
  }

  .simolah-calendar-context-actions > div {
    display: grid !important;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-calendar-context-actions .btn {
    width: 100%;
  }

  .simolah-calendar-filter-action.is-heb {
    flex-direction: column;
  }

  .simolah-calendar-filter-action.is-heb .btn {
    width: 100%;
  }

  .simolah-calendar-filter-action.is-reference {
    grid-column: 1 / -1;
  }

  .simolah-calendar-summary-cards,
  .simolah-calendar-academic-summary {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-calendar-summary-card {
    padding: 0.6rem;
  }

  .simolah-calendar-summary-card strong {
    font-size: 0.78rem;
  }

  .simolah-calendar-summary-card small {
    white-space: normal;
  }

  .simolah-calendar-reference-aside,
  .simolah-calendar-academic-aside {
    grid-template-columns: minmax(0, 1fr);
  }

  .simolah-calendar-section-heading {
    align-items: flex-start;
    flex-direction: column;
    gap: 0.55rem;
  }

  .simolah-calendar-month-arrows {
    align-self: stretch;
    justify-content: space-between;
  }

  .simolah-calendar-reference-layout .simolah-calendar-grid-12 {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .simolah-calendar-reference-layout .simolah-calendar-day {
    min-height: 36px;
  }

  .simolah-calendar-month-nav-list {
    display: flex;
    gap: 0.45rem;
    overflow-x: auto;
    padding-bottom: 0.2rem;
    scrollbar-width: none;
  }

  .simolah-calendar-month-nav-list::-webkit-scrollbar {
    display: none;
  }

  .simolah-calendar-month-nav-item {
    flex: 0 0 112px;
  }

  .simolah-summary-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .simolah-calendar-page .simolah-event-summary-head {
    min-height: 0;
    padding: 0.7rem;
  }

  .simolah-calendar-page .simolah-event-summary-body {
    padding: 0.7rem;
  }

  .simolah-summary-page-size {
    justify-content: space-between;
  }

  .simolah-summary-page-size .form-select {
    flex: 0 0 120px;
  }

  .simolah-summary-table {
    overflow-x: auto;
  }

  .simolah-summary-table table {
    min-width: 640px;
  }

  .simolah-summary-table th:nth-child(1),
  .simolah-summary-table td:nth-child(1),
  .simolah-summary-table th:nth-child(6),
  .simolah-summary-table td:nth-child(6),
  .simolah-summary-table th:nth-child(7),
  .simolah-summary-table td:nth-child(7) {
    display: none;
  }

  .simolah-summary-pagination {
    align-items: flex-start;
    flex-direction: column;
  }

  .simolah-calendar-page .simolah-calendar-day {
    min-height: 62px;
  }

  .simolah-calendar-reference-layout .simolah-calendar-day {
    min-height: 54px;
  }

  .simolah-heb-summary .table-responsive {
    overflow-x: auto;
  }

  .simolah-heb-summary table {
    min-width: 720px;
  }
}

@media print {
  .simolah-calendar-filter-summary,
  .simolah-calendar-filter,
  .simolah-calendar-navigation,
  .simolah-summary-search {
    display: none !important;
  }

  .simolah-calendar-slider,
  .simolah-calendar-slider.is-slidable {
    overflow: visible !important;
  }

  .simolah-calendar-slider.is-slidable .simolah-calendar-grid {
    display: grid !important;
    overflow: visible !important;
  }

  .simolah-calendar-slider.is-slidable .simolah-calendar-month {
    flex: initial !important;
  }

  .simolah-event-summary {
    border: 0;
    overflow: visible;
  }

  .simolah-event-summary-head {
    padding-inline: 0;
  }

  .simolah-event-summary-body {
    border-top: 0;
    padding: 0;
  }
}

/* Activities: compact, precise and responsive */
.activity-ui {
  --activity-primary: var(--bs-primary, #696cff);
  --activity-primary-rgb: 105, 108, 255;
  --activity-ink: #32354a;
  --activity-muted: #73778f;
  --activity-border: rgba(84, 88, 116, 0.14);
  --activity-surface: #f8f8fc;
}

.activity-form-shell {
  margin: 0 auto;
  max-width: 1320px;
}

.activity-form-card {
  border-radius: 0.8rem;
  overflow: hidden;
}

.activity-form-header {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  padding: 1rem 1.25rem;
}

.activity-form-heading {
  min-width: 0;
}

.activity-form-heading h5 {
  font-size: 1.1rem;
}

.activity-form-heading p {
  font-size: 0.78rem;
}

.activity-eyebrow {
  align-items: center;
  color: var(--activity-primary);
  display: flex;
  font-size: 0.67rem;
  font-weight: 700;
  gap: 0.3rem;
  letter-spacing: 0.08em;
  margin-bottom: 0.2rem;
  text-transform: uppercase;
}

.activity-form-context {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
}

.activity-period-chip {
  align-items: center;
  background: var(--activity-surface);
  border: 1px solid var(--activity-border);
  border-radius: 0.55rem;
  display: flex;
  gap: 0.55rem;
  min-height: 42px;
  padding: 0.4rem 0.7rem;
}

.activity-period-chip > i {
  color: var(--activity-primary);
  font-size: 1.05rem;
}

.activity-period-chip span {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
}

.activity-period-chip small {
  color: var(--activity-muted);
  font-size: 0.63rem;
}

.activity-period-chip strong {
  color: var(--activity-ink);
  font-size: 0.75rem;
  white-space: nowrap;
}

.activity-back-button {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
  min-height: 42px;
}

.activity-form-body {
  padding: 0 1.25rem;
}

.activity-form-section {
  border-top: 1px solid var(--activity-border);
  padding: 1rem 0;
}

.activity-form-section.is-first {
  border-top: 0;
}

.activity-section-head {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  margin-bottom: 0.8rem;
}

.activity-section-head h6 {
  color: var(--activity-ink);
  font-size: 0.83rem;
  font-weight: 700;
  line-height: 1.25;
  margin: 0;
}

.activity-section-head p {
  color: var(--activity-muted);
  font-size: 0.69rem;
  line-height: 1.35;
  margin: 0.08rem 0 0;
}

.activity-section-icon {
  align-items: center;
  background: rgba(var(--activity-primary-rgb), 0.09);
  border-radius: 0.45rem;
  color: var(--activity-primary);
  display: inline-flex;
  flex: 0 0 32px;
  font-size: 1rem;
  height: 32px;
  justify-content: center;
}

.activity-form-page .form-label {
  color: var(--activity-ink);
  font-size: 0.75rem;
  margin-bottom: 0.32rem;
}

.activity-form-page .form-control,
.activity-form-page .form-select {
  font-size: 0.84rem;
  min-height: 42px;
}

.activity-form-page textarea.form-control {
  line-height: 1.45;
  min-height: 70px;
  resize: vertical;
}

.activity-schedule-options {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  max-width: 760px;
}

.activity-schedule-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--activity-border);
  border-radius: 0.65rem;
  cursor: pointer;
  display: flex;
  gap: 0.65rem;
  min-height: 58px;
  padding: 0.55rem 0.7rem;
  position: relative;
  transition: border-color 0.18s ease, background-color 0.18s ease, box-shadow 0.18s ease;
}

.activity-schedule-option:hover {
  border-color: rgba(var(--activity-primary-rgb), 0.42);
}

.activity-schedule-options .btn-check:focus-visible + .activity-schedule-option,
.activity-weekday-grid .btn-check:focus-visible + .activity-weekday {
  box-shadow: 0 0 0 0.2rem rgba(var(--activity-primary-rgb), 0.16);
}

.activity-schedule-options .btn-check:checked + .activity-schedule-option {
  background: rgba(var(--activity-primary-rgb), 0.055);
  border-color: var(--activity-primary);
  box-shadow: inset 0 0 0 1px var(--activity-primary);
}

.activity-option-icon {
  align-items: center;
  background: var(--activity-surface);
  border-radius: 0.48rem;
  color: var(--activity-muted);
  display: inline-flex;
  flex: 0 0 34px;
  font-size: 1rem;
  height: 34px;
  justify-content: center;
}

.activity-schedule-options .btn-check:checked + .activity-schedule-option .activity-option-icon {
  background: rgba(var(--activity-primary-rgb), 0.12);
  color: var(--activity-primary);
}

.activity-option-copy {
  display: flex;
  flex-direction: column;
  line-height: 1.25;
  min-width: 0;
}

.activity-option-copy strong {
  color: var(--activity-ink);
  font-size: 0.79rem;
}

.activity-option-copy small {
  color: var(--activity-muted);
  font-size: 0.66rem;
  margin-top: 0.12rem;
}

.activity-option-check {
  align-items: center;
  background: var(--activity-primary);
  border-radius: 50%;
  color: #fff;
  display: inline-flex;
  height: 20px;
  justify-content: center;
  margin-left: auto;
  opacity: 0;
  transform: scale(0.75);
  transition: opacity 0.18s ease, transform 0.18s ease;
  width: 20px;
}

.activity-schedule-options .btn-check:checked + .activity-schedule-option .activity-option-check {
  opacity: 1;
  transform: scale(1);
}

.activity-inline-note,
.activity-schedule-helper {
  align-items: flex-start;
  color: var(--activity-muted);
  display: flex;
  font-size: 0.67rem;
  gap: 0.3rem;
  line-height: 1.4;
  margin-top: 0.45rem;
}

.activity-inline-note i,
.activity-schedule-helper i {
  color: var(--activity-primary);
  margin-top: 0.05rem;
}

.activity-recurring-panel {
  background: rgba(var(--activity-primary-rgb), 0.035);
  border: 1px solid rgba(var(--activity-primary-rgb), 0.18);
  border-radius: 0.7rem;
  margin-top: 0.75rem;
  padding: 0.8rem;
}

.activity-recurring-head {
  align-items: center;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.activity-recurring-head > div:first-child,
.activity-target-head > div:first-child {
  display: flex;
  flex-direction: column;
}

.activity-recurring-head strong,
.activity-target-head strong {
  color: var(--activity-ink);
  font-size: 0.76rem;
}

.activity-recurring-head small,
.activity-target-head small {
  color: var(--activity-muted);
  font-size: 0.64rem;
}

.activity-holiday-switch {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  gap: 0.5rem;
  margin: 0;
  padding-left: 0;
}

.activity-holiday-switch .form-check-input {
  float: none;
  margin: 0;
  order: 2;
}

.activity-holiday-switch .form-check-label {
  display: flex;
  flex-direction: column;
  line-height: 1.2;
  text-align: right;
}

.activity-holiday-switch .form-check-label strong {
  font-size: 0.7rem;
}

.activity-holiday-switch .form-check-label small {
  font-size: 0.6rem;
}

.activity-weekday-grid {
  display: grid;
  gap: 0.42rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.activity-weekday {
  align-items: center;
  background: #fff;
  border: 1px solid var(--activity-border);
  border-radius: 0.5rem;
  color: var(--activity-muted);
  cursor: pointer;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 46px;
  padding: 0.35rem 0.2rem;
  transition: border-color 0.18s ease, background-color 0.18s ease, color 0.18s ease;
}

.activity-weekday span {
  font-size: 0.73rem;
  font-weight: 700;
}

.activity-weekday small {
  font-size: 0.58rem;
  line-height: 1.1;
}

.activity-weekday-grid .btn-check:checked + .activity-weekday {
  background: var(--activity-primary);
  border-color: var(--activity-primary);
  color: #fff;
}

.activity-timing-grid {
  display: grid;
  gap: 0.75rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-top: 0.8rem;
}

.activity-target-panel {
  background: var(--activity-surface);
  border: 1px solid var(--activity-border);
  border-radius: 0.7rem;
  margin-top: 0.75rem;
  padding: 0.75rem;
}

.activity-target-head {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  justify-content: space-between;
  margin-bottom: 0.6rem;
}

.activity-choice-grid {
  display: grid;
  gap: 0.4rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activity-choice-grid.is-students {
  max-height: 248px;
  overflow: auto;
  padding-right: 0.2rem;
}

.activity-choice-item {
  align-items: flex-start;
  background: #fff;
  border: 1px solid var(--activity-border);
  border-radius: 0.45rem;
  display: flex;
  margin: 0;
  min-height: 38px;
  padding: 0.48rem 0.55rem 0.45rem 1.85rem;
}

.activity-choice-item .form-check-input {
  margin-left: -1.25rem;
  margin-top: 0.08rem;
}

.activity-choice-item .form-check-label {
  color: var(--activity-ink);
  display: flex;
  flex-direction: column;
  font-size: 0.7rem;
  line-height: 1.25;
  min-width: 0;
}

.activity-choice-item .form-check-label small {
  color: var(--activity-muted);
  font-size: 0.61rem;
}

.activity-student-search {
  align-items: center;
  display: flex;
  max-width: 260px;
  position: relative;
  width: 100%;
}

.activity-student-search i {
  color: var(--activity-muted);
  left: 0.65rem;
  position: absolute;
  z-index: 2;
}

.activity-student-search .form-control {
  min-height: 34px;
  padding-left: 1.9rem;
}

.activity-notification-section {
  padding-bottom: 1rem;
}

.activity-notification-card {
  align-items: center;
  background: rgba(40, 199, 111, 0.055);
  border: 1px solid rgba(40, 199, 111, 0.2);
  border-radius: 0.65rem;
  display: flex;
  gap: 0.65rem;
  padding: 0.65rem 0.75rem;
}

.activity-notification-icon {
  align-items: center;
  background: rgba(40, 199, 111, 0.12);
  border-radius: 0.5rem;
  color: #28c76f;
  display: inline-flex;
  flex: 0 0 36px;
  font-size: 1.15rem;
  height: 36px;
  justify-content: center;
}

.activity-notification-copy {
  display: flex;
  flex: 1 1 auto;
  flex-direction: column;
  line-height: 1.3;
  min-width: 0;
}

.activity-notification-copy strong {
  color: var(--activity-ink);
  font-size: 0.75rem;
}

.activity-notification-copy small {
  color: var(--activity-muted);
  font-size: 0.64rem;
}

.activity-notification-card .form-check-input {
  height: 1.35rem;
  margin: 0;
  width: 2.55rem;
}

.activity-form-actions {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: flex-end;
  padding: 0.8rem 1.25rem;
}

.activity-form-actions .btn {
  min-width: 120px;
}

.activity-hero {
  background: linear-gradient(135deg, #4f46e5 0%, #696cff 62%, #7c7ff4 100%) !important;
  border-radius: 0.8rem;
  overflow: hidden;
}

.activity-hero .card-body {
  padding: 1.15rem 1.25rem;
}

.activity-hero::after {
  border: 1px solid rgba(255, 255, 255, 0.12);
  border-radius: 50%;
  content: "";
  height: 190px;
  position: absolute;
  right: 14%;
  top: -125px;
  width: 190px;
}

.activity-hero h4 {
  font-size: 1.05rem;
}

.activity-hero p {
  font-size: 0.72rem;
}

.activity-hero-eyebrow {
  display: block;
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.09em;
  margin-bottom: 0.18rem;
  opacity: 0.72;
  text-transform: uppercase;
}

.activity-hero-period {
  align-items: center;
  background: rgba(255, 255, 255, 0.12);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 999px;
  display: inline-flex;
  font-size: 0.65rem;
  gap: 0.3rem;
  margin-top: 0.5rem;
  padding: 0.2rem 0.5rem;
}

.activity-hero-action {
  border: 0 !important;
  color: #4f46e5 !important;
  min-height: 40px;
  padding-inline: 1rem;
}

.activity-filter-card,
.activity-list-card {
  border-radius: 0.8rem;
}

.activity-filter-card .card-body {
  padding: 0.8rem 1rem;
}

.activity-filter-grid {
  align-items: end;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 160px 180px minmax(220px, 1fr) 110px;
}

.activity-filter-grid .form-label {
  font-size: 0.67rem;
}

.activity-filter-grid .form-control,
.activity-filter-grid .form-select,
.activity-filter-grid .btn {
  font-size: 0.78rem;
  min-height: 38px;
}

.activity-list-card .card-header {
  align-items: center;
  display: flex;
  justify-content: space-between;
  padding: 0.8rem 1rem;
}

.activity-list-card .card-title {
  font-size: 0.9rem;
}

.activity-list-card .card-header small {
  font-size: 0.65rem;
}

.activity-list-table {
  font-size: 0.72rem;
  min-width: 1040px;
}

.activity-list-table th {
  color: var(--activity-muted);
  font-size: 0.64rem;
  font-weight: 700;
  letter-spacing: 0.035em;
  padding: 0.62rem 0.7rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.activity-list-table td {
  padding: 0.62rem 0.7rem;
}

.activity-name-line {
  align-items: center;
  display: flex;
  flex-wrap: wrap;
  gap: 0.3rem;
}

.activity-name-line .badge,
.activity-list-table .badge {
  font-size: 0.58rem;
  padding: 0.25rem 0.4rem;
}

.activity-index-actions {
  display: inline-flex;
  flex-wrap: wrap;
  gap: 0.3rem;
  justify-content: flex-end;
}

.activity-list-table th:last-child,
.activity-list-table .activity-cell-actions {
  min-width: 205px;
}

.activity-index-actions .btn {
  align-items: center;
  display: inline-flex;
  font-size: 0.65rem;
  justify-content: center;
  min-height: 30px;
  padding: 0.28rem 0.48rem;
}

.activity-module-header {
  border-radius: 0.8rem;
}

.activity-module-header .card-body {
  padding: 1rem 1.15rem;
}

.activity-module-header h4 {
  color: var(--activity-ink);
  font-size: 1.05rem;
}

.activity-module-meta {
  color: var(--activity-muted);
  font-size: 0.7rem;
}

.activity-module-actions {
  align-items: flex-start;
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.activity-module-actions .btn {
  font-size: 0.72rem;
  min-height: 36px;
  padding: 0.42rem 0.65rem;
}

.activity-session-list-card,
.activity-session-info-card,
.activity-session-action-card,
.activity-recap-card {
  border-radius: 0.8rem;
}

.activity-session-list-card .card-header,
.activity-session-action-card .card-header,
.activity-recap-card .card-header {
  padding: 0.75rem 0.9rem;
}

.activity-session-list-card .card-header h5,
.activity-session-action-card .card-header h5,
.activity-recap-card .card-header h5 {
  font-size: 0.85rem;
}

.activity-session-list-card .card-header small,
.activity-session-action-card .card-header small,
.activity-recap-card .card-header small {
  font-size: 0.62rem;
}

.activity-session-list-table,
.activity-recap-table {
  font-size: 0.71rem;
}

.activity-session-list-table th,
.activity-recap-table th {
  color: var(--activity-muted);
  font-size: 0.62rem;
  letter-spacing: 0.03em;
  padding: 0.58rem 0.7rem;
  text-transform: uppercase;
  white-space: nowrap;
}

.activity-session-list-table td,
.activity-recap-table td {
  padding: 0.56rem 0.7rem;
}

.activity-session-info-card .card-body {
  padding: 0.9rem;
}

.activity-session-info-card {
  height: auto !important;
}

.activity-session-facts {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.activity-session-facts > div {
  background: var(--activity-surface);
  border: 1px solid var(--activity-border);
  border-radius: 0.55rem;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 60px;
  padding: 0.55rem 0.65rem;
}

.activity-session-facts small {
  color: var(--activity-muted);
  font-size: 0.61rem;
}

.activity-session-facts strong {
  color: var(--activity-ink);
  font-size: 0.76rem;
}

.activity-session-facts .badge {
  align-self: flex-start;
  font-size: 0.58rem;
  margin-top: 0.15rem;
}

.activity-session-action-card .card-body {
  padding: 0.75rem;
}

.activity-session-action-card .btn {
  font-size: 0.72rem;
  min-height: 36px;
}

.activity-session-action-card details {
  font-size: 0.7rem;
  padding: 0.65rem !important;
}

.activity-session-action-card details .form-label {
  font-size: 0.66rem;
  margin-bottom: 0.25rem;
}

.activity-session-action-card details .form-control {
  font-size: 0.72rem;
  min-height: 36px;
}

.activity-session-metrics {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(7, minmax(0, 1fr));
}

.activity-session-metric {
  background: #fff;
  border: 1px solid var(--activity-border);
  border-radius: 0.65rem;
  box-shadow: 0 0.15rem 0.4rem rgba(47, 43, 61, 0.05);
  display: flex;
  flex-direction: column;
  min-height: 60px;
  padding: 0.55rem 0.65rem;
}

.activity-session-metric small {
  color: var(--activity-muted);
  font-size: 0.61rem;
}

.activity-session-metric strong {
  color: var(--activity-ink);
  font-size: 1.05rem;
  line-height: 1.25;
}

.activity-recap-scroll {
  border-radius: 0 0 0.8rem 0.8rem;
}

.activity-session-row-actions {
  white-space: nowrap;
}

.activity-session-row-actions .btn {
  font-size: 0.65rem;
  min-height: 30px;
  padding: 0.28rem 0.48rem;
}

@media (max-width: 991.98px) {
  .activity-timing-grid,
  .activity-choice-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

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

  .activity-filter-search {
    grid-column: 1 / -1;
  }

  .activity-session-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-session-metrics {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (max-width: 767.98px) {
  .activity-form-header {
    align-items: flex-start;
    flex-direction: column;
    padding: 0.85rem;
  }

  .activity-form-context {
    justify-content: space-between;
    width: 100%;
  }

  .activity-period-chip {
    flex: 1 1 auto;
    min-width: 0;
  }

  .activity-period-chip strong {
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .activity-back-button span {
    display: none;
  }

  .activity-back-button {
    flex: 0 0 42px;
    justify-content: center;
    padding-inline: 0;
  }

  .activity-form-body {
    padding: 0 0.85rem;
  }

  .activity-form-section {
    padding: 0.85rem 0;
  }

  .activity-schedule-options {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-recurring-head,
  .activity-target-head {
    align-items: stretch;
    flex-direction: column;
  }

  .activity-holiday-switch {
    background: #fff;
    border: 1px solid var(--activity-border);
    border-radius: 0.5rem;
    justify-content: space-between;
    padding: 0.45rem 0.55rem;
    width: 100%;
  }

  .activity-holiday-switch .form-check-label {
    text-align: left;
  }

  .activity-weekday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .activity-student-search {
    max-width: none;
  }

  .activity-form-actions {
    padding: 0.75rem 0.85rem;
  }

  .activity-form-actions .btn {
    flex: 1 1 0;
    min-width: 0;
  }

  .activity-hero .card-body {
    padding: 0.9rem;
  }

  .activity-hero::after {
    right: -80px;
  }

  .activity-hero h4 {
    font-size: 0.95rem;
  }

  .activity-hero-action {
    width: 100%;
  }

  .activity-filter-card .card-body {
    padding: 0.75rem;
  }

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

  .activity-filter-search,
  .activity-filter-action {
    grid-column: 1 / -1;
  }

  .activity-list-card .table-responsive {
    overflow: visible;
  }

  .activity-list-table,
  .activity-list-table tbody {
    display: block;
    min-width: 0;
    width: 100%;
  }

  .activity-list-table thead {
    display: none;
  }

  .activity-list-table tr {
    border: 1px solid var(--activity-border);
    border-radius: 0.65rem;
    display: grid;
    margin: 0.65rem;
    overflow: hidden;
    padding: 0.6rem;
  }

  .activity-list-table tr + tr {
    margin-top: 0;
  }

  .activity-list-table td {
    align-items: flex-start;
    border: 0;
    display: flex;
    gap: 0.7rem;
    justify-content: space-between;
    padding: 0.28rem 0;
    text-align: right;
    width: 100%;
  }

  .activity-list-table td[data-label]::before {
    color: var(--activity-muted);
    content: attr(data-label);
    flex: 0 0 74px;
    font-size: 0.62rem;
    font-weight: 600;
    text-align: left;
  }

  .activity-list-table .activity-cell-number {
    display: none;
  }

  .activity-list-table .activity-cell-primary {
    border-bottom: 1px solid var(--activity-border);
    display: block;
    padding: 0 0 0.5rem;
    text-align: left;
  }

  .activity-cell-primary small {
    max-width: none !important;
  }

  .activity-list-table .activity-cell-actions {
    align-items: stretch;
    border-top: 1px solid var(--activity-border);
    display: block;
    margin-top: 0.2rem;
    padding-top: 0.55rem;
  }

  .activity-list-table .activity-cell-actions::before {
    display: none;
  }

  .activity-index-actions {
    display: grid;
    grid-template-columns: repeat(4, minmax(0, 1fr));
    width: 100%;
  }

  .activity-index-actions > *,
  .activity-index-actions form,
  .activity-index-actions .btn {
    width: 100%;
  }

  .activity-module-header .card-body {
    padding: 0.85rem;
  }

  .activity-module-actions,
  .activity-module-actions .btn {
    width: 100%;
  }

  .activity-module-actions {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-session-list-card .table-responsive {
    overflow: visible;
  }

  .activity-session-list-table,
  .activity-session-list-table tbody {
    display: block;
    width: 100%;
  }

  .activity-session-list-table thead {
    display: none;
  }

  .activity-session-list-table tr {
    border: 1px solid var(--activity-border);
    border-radius: 0.65rem;
    display: grid;
    margin: 0.65rem;
    padding: 0.55rem 0.65rem;
  }

  .activity-session-list-table tr + tr {
    margin-top: 0;
  }

  .activity-session-list-table td {
    align-items: flex-start;
    border: 0;
    display: flex;
    gap: 0.75rem;
    justify-content: space-between;
    padding: 0.25rem 0;
    text-align: right;
    width: 100%;
  }

  .activity-session-list-table td::before {
    color: var(--activity-muted);
    content: attr(data-label);
    flex: 0 0 90px;
    font-size: 0.61rem;
    font-weight: 600;
    text-align: left;
  }

  .activity-session-list-table .activity-session-row-actions {
    border-top: 1px solid var(--activity-border);
    display: grid;
    gap: 0.4rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    margin-top: 0.25rem;
    padding-top: 0.5rem;
  }

  .activity-session-list-table .activity-session-row-actions::before {
    display: none;
  }

  .activity-session-row-actions .btn {
    width: 100%;
  }

  .activity-session-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .activity-recap-scroll {
    overflow-x: auto;
  }

  .activity-recap-table {
    min-width: 720px;
  }
}

@media (max-width: 575.98px) {
  .activity-timing-grid,
  .activity-choice-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .activity-weekday-grid {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }

  .activity-index-actions {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

/* Student portal: authenticated, mobile-first read layer. */
.student-portal {
  --portal-bg: #f4f7fc;
  --portal-surface: #fff;
  --portal-text: #17223b;
  --portal-muted: #667085;
  --portal-border: #e1e8f2;
  --portal-primary: #4f46e5;
  --portal-primary-soft: #eef2ff;
  --portal-shadow: 0 8px 24px rgba(33, 45, 78, 0.06);
  background: var(--portal-bg);
  color: var(--portal-text);
  min-height: 100vh;
  overflow-x: hidden;
}

.student-portal *,
.student-portal *::before,
.student-portal *::after {
  box-sizing: border-box;
}

.student-portal a {
  text-decoration: none;
}

.student-portal-skip-link {
  background: var(--portal-primary);
  border-radius: 0 0 0.55rem 0;
  color: #fff;
  left: 0;
  padding: 0.7rem 1rem;
  position: fixed;
  top: -100px;
  z-index: 1100;
  min-height: 44px;
}

.student-portal-skip-link:focus {
  top: 0;
}

.student-portal-header {
  background: rgba(255, 255, 255, 0.96);
  border-bottom: 1px solid var(--portal-border);
  position: sticky;
  top: 0;
  z-index: 1020;
}

.student-portal-header-inner {
  align-items: center;
  display: flex;
  gap: 1.25rem;
  height: 66px;
  margin: 0 auto;
  max-width: 1240px;
  padding: 0 1.25rem;
}

.student-portal-brand {
  align-items: center;
  color: var(--portal-text);
  display: inline-flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  max-width: 250px;
  min-width: 180px;
}

.student-portal-brand img {
  background: #fff;
  border-radius: 0.65rem;
  flex: 0 0 auto;
  height: 38px;
  object-fit: contain;
  width: 38px;
}

.student-portal-brand span,
.student-portal-brand strong,
.student-portal-brand small {
  display: block;
  min-width: 0;
}

.student-portal-brand strong {
  font-size: 0.88rem;
  line-height: 1.2;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-portal-brand small {
  color: var(--portal-muted);
  font-size: 0.67rem;
  margin-top: 0.12rem;
}

.student-portal-desktop-nav {
  align-items: center;
  display: flex;
  gap: 0.2rem;
  justify-content: center;
  margin-left: auto;
}

.student-portal-desktop-nav > a,
.student-portal-nav-button {
  align-items: center;
  background: transparent;
  border: 0;
  border-radius: 0.55rem;
  color: #48546c;
  display: inline-flex;
  font-size: 0.78rem;
  font-weight: 600;
  gap: 0.15rem;
  min-height: 42px;
  padding: 0.55rem 0.65rem;
  white-space: nowrap;
}

.student-portal-desktop-nav > a:hover,
.student-portal-desktop-nav > a:focus-visible,
.student-portal-nav-button:hover,
.student-portal-nav-button:focus-visible,
.student-portal-desktop-nav .is-active {
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  outline: 0;
}

.student-portal-dropdown {
  border: 1px solid var(--portal-border);
  border-radius: 0.7rem;
  box-shadow: var(--portal-shadow);
  min-width: 220px;
  padding: 0.4rem;
}

.student-portal-dropdown .dropdown-item {
  align-items: center;
  border-radius: 0.5rem;
  display: flex;
  font-size: 0.8rem;
  gap: 0.55rem;
  min-height: 42px;
}

.student-portal-dropdown .dropdown-item i {
  color: var(--portal-primary);
  font-size: 1rem;
}

.student-portal-account {
  align-items: center;
  border-left: 1px solid var(--portal-border);
  display: flex;
  flex: 0 0 auto;
  gap: 0.65rem;
  margin-left: 0.35rem;
  padding-left: 1rem;
}

.student-portal-account-copy {
  max-width: 125px;
  text-align: right;
}

.student-portal-account-copy strong,
.student-portal-account-copy small {
  display: block;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.student-portal-account-copy strong {
  font-size: 0.76rem;
}

.student-portal-account-copy small {
  color: var(--portal-muted);
  font-size: 0.65rem;
}

.student-portal-avatar-button {
  align-items: center;
  background: var(--portal-primary-soft);
  border: 1px solid #d8ddfb;
  border-radius: 50%;
  display: inline-flex;
  height: 42px;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  width: 42px;
}

.student-portal-avatar-button img,
.student-portal-avatar-button span {
  height: 100%;
  object-fit: cover;
  width: 100%;
}

.student-portal-avatar-button {
  position: relative;
}

.student-portal-avatar-button img {
  position: absolute;
  inset: 0;
}

.student-portal-avatar-button span {
  align-items: center;
  color: var(--portal-primary);
  display: flex;
  font-size: 1.2rem;
  justify-content: center;
}

.student-portal-mobile-context,
.student-portal-bottom-nav,
.student-portal-more {
  display: none;
}

.student-portal-main {
  margin: 0 auto;
  max-width: 1240px;
  min-height: calc(100vh - 66px);
  padding: 1.15rem 1.25rem 2rem;
  width: 100%;
}

.student-portal-greeting {
  align-items: center;
  background: linear-gradient(100deg, #fff, #f8faff);
  border: 1px solid var(--portal-border);
  border-radius: 0.85rem;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
  min-height: 78px;
  padding: 0.85rem 1rem;
}

.student-portal-eyebrow {
  color: var(--portal-primary);
  font-size: 0.65rem;
  font-weight: 700;
  letter-spacing: 0.075em;
  margin: 0 0 0.18rem;
  text-transform: uppercase;
}

.student-portal-greeting h1,
.student-portal-page-head h1 {
  color: var(--portal-text);
  font-size: clamp(1.25rem, 2vw, 1.7rem);
  line-height: 1.18;
  margin: 0;
}

.student-portal-greeting > div > p:last-child {
  color: var(--portal-muted);
  font-size: 0.75rem;
  margin: 0.3rem 0 0;
}

.student-portal-homeroom {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 0.7rem;
  display: flex;
  flex: 0 0 auto;
  gap: 0.6rem;
  max-width: 280px;
  padding: 0.55rem 0.75rem;
}

.student-portal-homeroom > i {
  color: var(--portal-primary);
  font-size: 1.2rem;
}

.student-portal-homeroom small,
.student-portal-homeroom strong {
  display: block;
}

.student-portal-homeroom small {
  color: var(--portal-muted);
  font-size: 0.62rem;
}

.student-portal-homeroom strong {
  font-size: 0.74rem;
  line-height: 1.25;
}

.student-portal-dashboard {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(12, minmax(0, 1fr));
}

.student-portal-card {
  background: var(--portal-surface);
  border: 1px solid var(--portal-border);
  border-radius: 0.85rem;
  box-shadow: var(--portal-shadow);
  min-width: 0;
  padding: 0.95rem;
}

.student-portal-card-head {
  align-items: flex-start;
  display: flex;
  gap: 0.65rem;
  justify-content: space-between;
  margin-bottom: 0.75rem;
}

.student-portal-card-head h2 {
  color: var(--portal-text);
  font-size: 0.95rem;
  line-height: 1.25;
  margin: 0;
}

.student-portal-card-head > a,
.student-portal-card-head > span {
  color: var(--portal-muted);
  font-size: 0.66rem;
  font-weight: 600;
  white-space: nowrap;
}

.student-portal-card-head > a {
  color: var(--portal-primary);
  min-height: 32px;
  padding-top: 0.18rem;
}

.student-portal-card-icon {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 0.6rem;
  color: var(--portal-primary);
  display: inline-flex;
  font-size: 1.15rem;
  height: 36px;
  justify-content: center;
  width: 36px;
}

.student-portal-attendance-today,
.student-portal-next-lesson {
  grid-column: span 6;
}

.student-portal-quick-actions {
  grid-column: 1 / -1;
}

.student-portal-today-schedule {
  grid-column: span 8;
}

.student-portal-timeline-card {
  grid-column: span 4;
}

.student-portal-semester-summary,
.student-portal-discipline-summary {
  grid-column: span 6;
}

.student-portal-status {
  background: #f2f4f7;
  border-radius: 999px;
  color: #475467;
  display: inline-flex;
  font-size: 0.67rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.4rem 0.65rem;
  white-space: nowrap;
}

.student-portal-status.is-success {
  background: #eafaf1;
  color: #147a43;
}

.student-portal-status.is-warning {
  background: #fff7e3;
  color: #9a5b00;
}

.student-portal-status.is-danger {
  background: #fff0f0;
  color: #b42318;
}

.student-portal-status.is-info,
.student-portal-status.is-primary {
  background: #edf4ff;
  color: #2458a6;
}

.student-portal-today-metrics {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-portal-today-metrics > div {
  background: #f8fafc;
  border: 1px solid #eef2f6;
  border-radius: 0.65rem;
  min-width: 0;
  padding: 0.6rem 0.7rem;
}

.student-portal-today-metrics small,
.student-portal-today-metrics strong {
  display: block;
}

.student-portal-today-metrics small {
  color: var(--portal-muted);
  font-size: 0.64rem;
}

.student-portal-today-metrics strong {
  color: var(--portal-text);
  font-size: 1rem;
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
}

.student-portal-inline-notes {
  display: flex;
  flex-wrap: wrap;
  gap: 0.4rem;
  margin-top: 0.6rem;
}

.student-portal-inline-notes span {
  align-items: center;
  background: #f8fafc;
  border-radius: 0.45rem;
  color: var(--portal-muted);
  display: inline-flex;
  font-size: 0.65rem;
  gap: 0.28rem;
  padding: 0.33rem 0.5rem;
}

.student-portal-inline-notes .is-warning {
  background: #fff8e8;
  color: #9a5b00;
}

.student-portal-inline-notes .is-danger {
  background: #fff1f1;
  color: #b42318;
}

.student-portal-text-link {
  align-items: center;
  color: var(--portal-primary);
  display: inline-flex;
  font-size: 0.69rem;
  font-weight: 700;
  gap: 0.2rem;
  margin-top: 0.65rem;
  min-height: 30px;
}

.student-portal-next-lesson h3 {
  font-size: 1.05rem;
  margin: 0;
}

.student-portal-next-time {
  color: var(--portal-primary);
  font-size: 0.9rem;
  font-weight: 700;
  margin: 0.2rem 0 0.45rem;
}

.student-portal-next-meta {
  color: var(--portal-muted);
  display: flex;
  flex-wrap: wrap;
  font-size: 0.68rem;
  gap: 0.4rem 0.8rem;
}

.student-portal-next-meta span {
  align-items: center;
  display: inline-flex;
  gap: 0.25rem;
}

.student-portal-section-heading h2 {
  font-size: 0.95rem;
  margin: 0;
}

.student-portal-quick-grid {
  display: grid;
  gap: 0.65rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-top: 0.55rem;
}

.student-portal-quick-grid a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 0.7rem;
  color: #344054;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.55rem;
  min-height: 48px;
  padding: 0.55rem 0.7rem;
}

.student-portal-quick-grid a:hover,
.student-portal-quick-grid a:focus-visible {
  background: var(--portal-primary-soft);
  border-color: #cfd4ff;
  color: var(--portal-primary);
  outline: 0;
}

.student-portal-quick-grid i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 0.5rem;
  color: var(--portal-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1rem;
  height: 30px;
  justify-content: center;
  width: 30px;
}

.student-portal-schedule-list {
  display: grid;
  gap: 0.2rem;
}

.student-portal-schedule-list article {
  align-items: flex-start;
  border-bottom: 1px solid #eef2f6;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 82px minmax(0, 1fr);
  padding: 0.55rem 0;
}

.student-portal-schedule-list article:first-child {
  padding-top: 0;
}

.student-portal-schedule-list article:last-child {
  border-bottom: 0;
  padding-bottom: 0;
}

.student-portal-schedule-list time {
  color: var(--portal-primary);
  font-size: 0.76rem;
  font-weight: 700;
  white-space: nowrap;
}

.student-portal-schedule-list time span {
  color: var(--portal-muted);
  display: block;
  font-size: 0.61rem;
  font-weight: 500;
}

.student-portal-schedule-list h3,
.student-portal-timeline h3,
.student-portal-event-list h3 {
  font-size: 0.78rem;
  line-height: 1.3;
  margin: 0;
}

.student-portal-schedule-list p,
.student-portal-timeline p,
.student-portal-event-list p {
  color: var(--portal-muted);
  font-size: 0.65rem;
  margin: 0.16rem 0 0;
}

.student-portal-schedule-list small {
  color: var(--portal-muted);
  display: inline-flex;
  font-size: 0.62rem;
  gap: 0.2rem;
  margin-top: 0.22rem;
}

.student-portal-timeline {
  display: grid;
  gap: 0.3rem;
}

.student-portal-timeline article {
  align-items: flex-start;
  border-bottom: 1px solid #eef2f6;
  display: grid;
  gap: 0.5rem;
  grid-template-columns: auto minmax(0, 1fr);
  padding: 0.45rem 0;
}

.student-portal-timeline article:first-child {
  padding-top: 0;
}

.student-portal-timeline article:last-child {
  border-bottom: 0;
}

.student-portal-kind {
  background: #f2f4f7;
  border-radius: 999px;
  color: #475467;
  display: inline-flex;
  font-size: 0.57rem;
  font-weight: 700;
  line-height: 1;
  padding: 0.3rem 0.45rem;
  white-space: nowrap;
}

.student-portal-kind.is-activity {
  background: #ecfdf3;
  color: #067647;
}

.student-portal-kind.is-agenda {
  background: #eef2ff;
  color: #4338ca;
}

.student-portal-kind.is-violation {
  background: #fff1f1;
  color: #b42318;
}

.student-portal-kind.is-positive {
  background: #ecfdf3;
  color: #067647;
}

.student-portal-summary-grid {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
}

.student-portal-summary-grid > div {
  background: #f8fafc;
  border-radius: 0.55rem;
  min-width: 0;
  padding: 0.5rem 0.25rem;
  text-align: center;
}

.student-portal-summary-grid strong,
.student-portal-summary-grid span {
  display: block;
}

.student-portal-summary-grid strong {
  color: var(--portal-text);
  font-size: 1rem;
}

.student-portal-summary-grid span {
  color: var(--portal-muted);
  font-size: 0.58rem;
  overflow-wrap: anywhere;
}

.student-portal-summary-note,
.student-portal-card-policy {
  align-items: flex-start;
  color: var(--portal-muted);
  display: flex;
  font-size: 0.63rem;
  gap: 0.35rem;
  margin: 0.55rem 0 0;
}

.student-portal-points {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-portal-points > div {
  border: 1px solid var(--portal-border);
  border-radius: 0.65rem;
  padding: 0.55rem 0.65rem;
}

.student-portal-points span,
.student-portal-points strong,
.student-portal-points small {
  display: block;
}

.student-portal-points span,
.student-portal-points small {
  color: var(--portal-muted);
  font-size: 0.61rem;
}

.student-portal-points strong {
  font-size: 1.05rem;
  margin-top: 0.08rem;
}

.student-portal-points .is-violation strong {
  color: #b42318;
}

.student-portal-points .is-positive strong {
  color: #067647;
}

.student-portal-points .is-net strong {
  color: var(--portal-primary);
}

.student-portal-empty {
  align-items: center;
  background: #f8fafc;
  border: 1px dashed #d8e0eb;
  border-radius: 0.65rem;
  color: var(--portal-muted);
  display: flex;
  font-size: 0.68rem;
  gap: 0.6rem;
  min-height: 66px;
  padding: 0.65rem 0.75rem;
}

.student-portal-empty > i {
  color: #98a2b3;
  flex: 0 0 auto;
  font-size: 1.15rem;
}

.student-portal-empty strong,
.student-portal-empty small {
  display: block;
}

.student-portal-empty strong {
  color: #475467;
  font-size: 0.7rem;
}

.student-portal-empty small {
  margin-top: 0.12rem;
}

.student-portal-empty.is-compact {
  min-height: 48px;
}

.student-portal-page-head {
  align-items: flex-end;
  display: flex;
  gap: 1rem;
  justify-content: space-between;
  margin-bottom: 0.9rem;
}

.student-portal-page-head p:last-child {
  color: var(--portal-muted);
  font-size: 0.76rem;
  margin: 0.25rem 0 0;
}

.student-portal-page-head .btn,
.student-portal-page-actions .btn {
  min-height: 42px;
}

.student-portal-page-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.45rem;
}

.student-portal-day-selector {
  display: none;
}

.student-portal-week-grid {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-portal-day-card {
  box-shadow: none;
}

.student-portal-attendance-overview {
  margin-bottom: 0.85rem;
}

.student-portal-attendance-overview .student-portal-today-metrics {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-portal-main > .student-portal-card + .student-portal-card,
.student-portal-history-section {
  margin-top: 0.85rem;
}

.student-portal-record-list {
  display: grid;
  gap: 0.5rem;
}

.student-portal-record-list article {
  align-items: center;
  border: 1px solid #e9eef5;
  border-radius: 0.7rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 2fr);
  padding: 0.65rem 0.75rem;
}

.student-portal-record-date {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
  min-width: 0;
}

.student-portal-record-date > strong {
  font-size: 0.75rem;
  overflow-wrap: anywhere;
}

.student-portal-record-facts {
  display: grid;
  gap: 0.5rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-portal-record-facts span {
  min-width: 0;
}

.student-portal-record-facts small,
.student-portal-record-facts strong {
  display: block;
}

.student-portal-record-facts small {
  color: var(--portal-muted);
  font-size: 0.58rem;
}

.student-portal-record-facts strong {
  font-size: 0.7rem;
  margin-top: 0.12rem;
  overflow-wrap: anywhere;
}

.student-portal-pagination {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  margin-top: 0.75rem;
}

.student-portal-pagination a {
  align-items: center;
  border: 1px solid var(--portal-border);
  border-radius: 0.55rem;
  color: var(--portal-primary);
  display: inline-flex;
  font-size: 0.67rem;
  font-weight: 700;
  gap: 0.2rem;
  min-height: 40px;
  padding: 0.45rem 0.65rem;
}

.student-portal-pagination a.is-disabled {
  opacity: 0.45;
  pointer-events: none;
}

.student-portal-pagination > span {
  color: var(--portal-muted);
  font-size: 0.65rem;
}

.student-portal-two-column {
  display: grid;
  gap: 0.85rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-portal-event-list {
  display: grid;
  gap: 0.45rem;
}

.student-portal-event-list article {
  align-items: flex-start;
  border-bottom: 1px solid #eef2f6;
  display: grid;
  gap: 0.65rem;
  grid-template-columns: 92px minmax(0, 1fr);
  padding: 0.5rem 0;
}

.student-portal-event-list article:first-child {
  padding-top: 0;
}

.student-portal-event-list article:last-child {
  border-bottom: 0;
}

.student-portal-event-date strong,
.student-portal-event-date span {
  display: block;
}

.student-portal-event-date strong {
  color: var(--portal-text);
  font-size: 0.67rem;
}

.student-portal-event-date span {
  color: var(--portal-primary);
  font-size: 0.64rem;
  font-weight: 700;
  margin-top: 0.12rem;
}

.student-portal-event-list p {
  align-items: center;
  display: flex;
  gap: 0.25rem;
}

.student-portal-event-list.is-agenda article {
  grid-template-columns: 10px minmax(0, 1fr);
}

.student-portal-event-dot {
  background: var(--event-color, var(--portal-primary));
  border-radius: 999px;
  height: 10px;
  margin-top: 0.2rem;
  width: 10px;
}

.student-portal-discipline-identity {
  display: grid;
  gap: 0.7rem;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  margin-bottom: 0.85rem;
}

.student-portal-discipline-identity small,
.student-portal-discipline-identity strong {
  display: block;
}

.student-portal-discipline-identity small {
  color: var(--portal-muted);
  font-size: 0.6rem;
}

.student-portal-discipline-identity strong {
  font-size: 0.73rem;
  margin-top: 0.15rem;
  overflow-wrap: anywhere;
}

.student-portal-points.is-detail > div {
  padding: 0.7rem 0.8rem;
}

.student-portal-segmented {
  background: #f2f4f7;
  border-radius: 0.65rem;
  display: inline-flex;
  gap: 0.2rem;
  margin-bottom: 0.75rem;
  padding: 0.25rem;
}

.student-portal-segmented a {
  border-radius: 0.48rem;
  color: var(--portal-muted);
  font-size: 0.67rem;
  font-weight: 700;
  min-height: 38px;
  padding: 0.55rem 0.75rem;
}

.student-portal-segmented a.is-active {
  background: #fff;
  box-shadow: 0 2px 7px rgba(33, 45, 78, 0.08);
  color: var(--portal-primary);
}

.student-portal-discipline-list {
  display: grid;
  gap: 0.55rem;
}

.student-portal-discipline-list article {
  align-items: center;
  border: 1px solid #e9eef5;
  border-radius: 0.7rem;
  display: grid;
  gap: 0.75rem;
  grid-template-columns: 120px minmax(0, 1fr) 54px;
  padding: 0.7rem;
}

.student-portal-discipline-row-head {
  align-items: flex-start;
  display: flex;
  flex-direction: column;
  gap: 0.35rem;
}

.student-portal-discipline-row-head time {
  color: var(--portal-muted);
  font-size: 0.6rem;
}

.student-portal-discipline-list h3 {
  font-size: 0.75rem;
  margin: 0;
}

.student-portal-discipline-list p {
  color: var(--portal-muted);
  font-size: 0.66rem;
  line-height: 1.45;
  margin: 0.18rem 0;
  overflow-wrap: anywhere;
}

.student-portal-discipline-list small {
  color: var(--portal-muted);
  font-size: 0.58rem;
}

.student-portal-point-value {
  font-size: 0.95rem;
  text-align: right;
}

.student-portal-point-value.is-negative {
  color: #b42318;
}

.student-portal-point-value.is-positive {
  color: #067647;
}

.student-portal-profile {
  margin: 0 auto;
  max-width: 900px;
}

.student-portal-profile-identity {
  align-items: center;
  border-bottom: 1px solid var(--portal-border);
  display: flex;
  gap: 1rem;
  padding-bottom: 1rem;
}

.student-portal-profile-identity > img,
.student-portal-profile-identity > span {
  border-radius: 0.8rem;
  height: 96px;
  object-fit: cover;
  width: 72px;
}

.student-portal-profile-identity > span {
  align-items: center;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  display: flex;
  font-size: 2rem;
  justify-content: center;
}

.student-portal-profile-identity h2 {
  font-size: 1.2rem;
  margin: 0;
}

.student-portal-profile-identity p:last-child {
  color: var(--portal-muted);
  font-size: 0.72rem;
  margin: 0.2rem 0 0;
}

.student-portal-profile-grid {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  margin: 0;
}

.student-portal-profile-grid > div {
  border-bottom: 1px solid #eef2f6;
  padding: 0.8rem 0.25rem;
}

.student-portal-profile-grid dt {
  color: var(--portal-muted);
  font-size: 0.62rem;
  font-weight: 500;
}

.student-portal-profile-grid dd {
  color: var(--portal-text);
  font-size: 0.76rem;
  font-weight: 700;
  margin: 0.15rem 0 0;
  overflow-wrap: anywhere;
}

.student-portal-digital-card {
  margin: 0 auto;
  max-width: 1040px;
}

.student-portal-card-notice {
  align-items: flex-start;
  background: var(--portal-primary-soft);
  border-radius: 0.7rem;
  color: var(--portal-primary);
  display: flex;
  gap: 0.6rem;
  margin-bottom: 0.9rem;
  padding: 0.7rem 0.8rem;
}

.student-portal-card-notice > i {
  font-size: 1.2rem;
}

.student-portal-card-notice p {
  margin: 0;
}

.student-portal-card-notice strong,
.student-portal-card-notice span {
  display: block;
}

.student-portal-card-notice strong {
  font-size: 0.72rem;
}

.student-portal-card-notice span {
  color: #5c6285;
  font-size: 0.65rem;
  margin-top: 0.1rem;
}

.student-portal-card-preview {
  display: grid;
  gap: 1rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-portal-card-side {
  min-width: 0;
}

.student-portal-card-side .simolah-student-card {
  box-shadow: 0 14px 32px rgba(33, 45, 78, 0.12);
  font-size: clamp(8px, 1.15vw, 14px);
}

.student-portal-error {
  align-items: center;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 0.9rem;
  box-shadow: var(--portal-shadow);
  display: flex;
  flex-direction: column;
  margin: 8vh auto 0;
  max-width: 560px;
  padding: 2rem;
  text-align: center;
}

.student-portal-error-icon {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 50%;
  color: var(--portal-primary);
  display: flex;
  font-size: 1.7rem;
  height: 60px;
  justify-content: center;
  margin-bottom: 0.7rem;
  width: 60px;
}

.student-portal-error h1 {
  font-size: 1.3rem;
  margin: 0;
}

.student-portal-error > p:not(.student-portal-eyebrow) {
  color: var(--portal-muted);
  font-size: 0.76rem;
  line-height: 1.55;
  margin: 0.5rem 0 1rem;
}

.student-portal-error-actions {
  display: flex;
  flex-wrap: wrap;
  gap: 0.5rem;
  justify-content: center;
}

@media (max-width: 1099.98px) {
  .student-portal-header-inner,
  .student-portal-main {
    padding-left: 1rem;
    padding-right: 1rem;
  }

  .student-portal-brand {
    min-width: 155px;
  }

  .student-portal-brand strong {
    max-width: 120px;
  }

  .student-portal-desktop-nav > a,
  .student-portal-nav-button {
    padding-left: 0.48rem;
    padding-right: 0.48rem;
  }

  .student-portal-account-copy {
    display: none;
  }

  .student-portal-account {
    padding-left: 0.7rem;
  }

  .student-portal-week-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 899.98px) {
  .student-portal-brand {
    min-width: auto;
  }

  .student-portal-brand span {
    display: none;
  }

  .student-portal-today-schedule,
  .student-portal-timeline-card {
    grid-column: span 6;
  }

  .student-portal-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-portal-record-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }
}

@media (max-width: 799.98px) {
  .student-portal {
    padding-bottom: calc(68px + env(safe-area-inset-bottom));
  }

  .student-portal-header-inner {
    gap: 0.75rem;
    height: 58px;
    padding: 0 0.85rem;
  }

  .student-portal-brand img {
    height: 36px;
    width: 36px;
  }

  .student-portal-desktop-nav,
  .student-portal-account-copy {
    display: none;
  }

  .student-portal-account {
    border-left: 0;
    margin-left: auto;
    padding-left: 0;
  }

  .student-portal-avatar-button {
    height: 40px;
    width: 40px;
  }

  .student-portal-mobile-context {
    display: block;
    padding: 0 0.85rem 0.55rem;
  }

  .student-portal-mobile-context span,
  .student-portal-mobile-context small {
    display: block;
    max-width: 100%;
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  .student-portal-mobile-context span {
    font-size: 0.78rem;
  }

  .student-portal-mobile-context small {
    color: var(--portal-muted);
    font-size: 0.62rem;
    margin-top: 0.08rem;
  }

  .student-portal-main {
    min-height: calc(100vh - 102px);
    padding: 0.75rem 0.75rem 1.25rem;
  }

  .student-portal-greeting {
    display: none;
  }

  .student-portal-dashboard {
    display: block;
  }

  .student-portal-dashboard > * + * {
    margin-top: 0.7rem;
  }

  .student-portal-card {
    border-radius: 0.75rem;
    padding: 0.85rem;
  }

  .student-portal-card-head {
    margin-bottom: 0.65rem;
  }

  .student-portal-card-head h2 {
    font-size: 0.9rem;
  }

  .student-portal-today-metrics > div {
    min-height: 62px;
  }

  .student-portal-quick-grid {
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-quick-grid a {
    font-size: 0.72rem;
    min-height: 52px;
  }

  .student-portal-schedule-list article {
    grid-template-columns: 74px minmax(0, 1fr);
  }

  .student-portal-summary-grid {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-portal-bottom-nav {
    align-items: stretch;
    background: rgba(255, 255, 255, 0.98);
    border-top: 1px solid var(--portal-border);
    bottom: 0;
    display: grid;
    grid-template-columns: repeat(5, minmax(0, 1fr));
    left: 0;
    padding: 0.3rem 0.35rem calc(0.3rem + env(safe-area-inset-bottom));
    position: fixed;
    right: 0;
    z-index: 1030;
  }

  .student-portal-bottom-nav a,
  .student-portal-bottom-nav button {
    align-items: center;
    background: transparent;
    border: 0;
    border-radius: 0.55rem;
    color: #7b8498;
    display: flex;
    flex-direction: column;
    font-size: 0.58rem;
    font-weight: 600;
    gap: 0.12rem;
    justify-content: center;
    min-height: 52px;
    min-width: 0;
    padding: 0.3rem 0.15rem;
  }

  .student-portal-bottom-nav i {
    font-size: 1.18rem;
  }

  .student-portal-bottom-nav .is-active {
    background: var(--portal-primary-soft);
    color: var(--portal-primary);
  }

  .student-portal-more {
    border-radius: 1rem 1rem 0 0;
    display: block;
    height: auto !important;
    max-height: min(78vh, 560px);
  }

  .student-portal-more-grid {
    display: grid;
    gap: 0.55rem;
  }

  .student-portal-more-grid > a,
  .student-portal-more-grid form button {
    align-items: center;
    background: #f8fafc;
    border: 1px solid var(--portal-border);
    border-radius: 0.7rem;
    color: var(--portal-text);
    display: flex;
    gap: 0.7rem;
    min-height: 58px;
    padding: 0.65rem 0.75rem;
    text-align: left;
    width: 100%;
  }

  .student-portal-more-grid > a > i,
  .student-portal-more-grid form button > i {
    color: var(--portal-primary);
    flex: 0 0 auto;
    font-size: 1.2rem;
  }

  .student-portal-more-grid span,
  .student-portal-more-grid strong,
  .student-portal-more-grid small {
    display: block;
  }

  .student-portal-more-grid strong {
    font-size: 0.74rem;
  }

  .student-portal-more-grid small {
    color: var(--portal-muted);
    font-size: 0.62rem;
    margin-top: 0.1rem;
  }

  .student-portal-page-head {
    align-items: flex-start;
    margin-bottom: 0.75rem;
  }

  .student-portal-page-head .btn {
    font-size: 0;
    min-width: 44px;
    padding-left: 0.7rem;
    padding-right: 0.7rem;
  }

  .student-portal-page-head .btn i {
    font-size: 1rem;
    margin: 0 !important;
  }

  .student-portal-page-head p:last-child {
    font-size: 0.69rem;
  }

  .student-portal-day-selector {
    display: grid;
    gap: 0.35rem;
    grid-template-columns: repeat(6, minmax(0, 1fr));
    margin-bottom: 0.7rem;
  }

  .student-portal-day-selector a {
    align-items: center;
    background: #fff;
    border: 1px solid var(--portal-border);
    border-radius: 0.6rem;
    color: var(--portal-muted);
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    font-weight: 700;
    justify-content: center;
    min-height: 48px;
    min-width: 0;
    padding: 0.35rem 0.15rem;
  }

  .student-portal-day-selector small {
    display: none;
  }

  .student-portal-day-selector a.is-active {
    background: var(--portal-primary);
    border-color: var(--portal-primary);
    color: #fff;
  }

  .student-portal-week-grid {
    display: block;
  }

  .student-portal-day-card {
    display: none;
  }

  .student-portal-day-card.is-selected {
    display: block;
  }

  .student-portal-attendance-overview .student-portal-today-metrics {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-summary-grid.is-wide {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-portal-record-list article {
    display: block;
  }

  .student-portal-record-date {
    align-items: center;
    flex-direction: row;
    justify-content: space-between;
    margin-bottom: 0.6rem;
  }

  .student-portal-record-facts {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-record-facts span {
    background: #f8fafc;
    border-radius: 0.5rem;
    padding: 0.45rem 0.5rem;
  }

  .student-portal-pagination a {
    min-height: 44px;
  }

  .student-portal-pagination a span {
    display: none;
  }

  .student-portal-two-column {
    display: block;
  }

  .student-portal-two-column > * + * {
    margin-top: 0.7rem;
  }

  .student-portal-discipline-identity {
    gap: 0.55rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-segmented {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .student-portal-segmented a {
    align-items: center;
    display: flex;
    justify-content: center;
    min-width: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
    text-align: center;
  }

  .student-portal-discipline-list article {
    align-items: flex-start;
    grid-template-columns: minmax(0, 1fr) 44px;
  }

  .student-portal-discipline-row-head {
    align-items: center;
    flex-direction: row;
    grid-column: 1 / -1;
    justify-content: space-between;
  }

  .student-portal-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-portal-card-preview {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-portal-card-side .simolah-student-card {
    font-size: clamp(7px, 2.6vw, 13px);
  }

  .student-portal-error {
    margin-top: 3vh;
    padding: 1.3rem;
  }
}

@media (max-width: 419.98px) {
  .student-portal-main {
    padding-left: 0.65rem;
    padding-right: 0.65rem;
  }

  .student-portal-card {
    padding: 0.75rem;
  }

  .student-portal-points {
    gap: 0.4rem;
  }

  .student-portal-points > div {
    padding: 0.5rem;
  }

  .student-portal-points span {
    font-size: 0.56rem;
  }

  .student-portal-summary-grid > div {
    padding-left: 0.15rem;
    padding-right: 0.15rem;
  }

  .student-portal-page-actions {
    gap: 0.3rem;
  }

  .student-portal-page-actions .btn {
    font-size: 0.62rem;
    padding-left: 0.5rem;
    padding-right: 0.5rem;
  }
}

/* Student portal visual refinement: calm, contextual, modern. */
.student-portal {
  --portal-bg: #f7f9fd;
  --portal-surface: #ffffff;
  --portal-surface-soft: #f8faff;
  --portal-text: #14213d;
  --portal-muted: #69758d;
  --portal-border: #e3e9f4;
  --portal-border-strong: #d5dff0;
  --portal-primary: #5146ed;
  --portal-primary-strong: #4338ca;
  --portal-primary-soft: #f0f1ff;
  --portal-success: #159455;
  --portal-warning: #e98518;
  --portal-danger: #dc3444;
  --portal-info: #3478f6;
  --portal-shadow: 0 8px 24px rgba(43, 57, 102, 0.045);
  --portal-shadow-hover: 0 12px 30px rgba(43, 57, 102, 0.085);
  background:
    radial-gradient(circle at 8% 0%, rgba(80, 70, 237, 0.035), transparent 25rem),
    var(--portal-bg);
  color: var(--portal-text);
}

.student-portal-header {
  backdrop-filter: blur(14px);
  background: rgba(255, 255, 255, 0.94);
}

.student-portal-header-inner,
.student-portal-main {
  max-width: 1320px;
}

.student-portal-header-inner {
  gap: 1.4rem;
  height: 76px;
  padding-left: 1.75rem;
  padding-right: 1.75rem;
}

.student-portal-brand {
  gap: 0.75rem;
  min-width: 215px;
}

.student-portal-brand img {
  border-radius: 0;
  height: 44px;
  width: 44px;
}

.student-portal-brand strong {
  color: #13213e;
  font-size: 0.98rem;
}

.student-portal-brand small {
  font-size: 0.7rem;
}

.student-portal-desktop-nav {
  gap: 0.25rem;
}

.student-portal-desktop-nav > a,
.student-portal-nav-button {
  border-radius: 0.75rem;
  font-size: 0.78rem;
  gap: 0.38rem;
  min-height: 46px;
  padding: 0.62rem 0.8rem;
  transition: background-color 170ms ease, color 170ms ease, transform 170ms ease;
}

.student-portal-desktop-nav > a > i,
.student-portal-nav-button > i:first-child {
  color: #75819a;
  font-size: 1.05rem;
}

.student-portal-desktop-nav > a:hover,
.student-portal-nav-button:hover {
  transform: translateY(-1px);
}

.student-portal-desktop-nav .is-active > i,
.student-portal-nav-button.is-active > i:first-child {
  color: var(--portal-primary);
}

.student-portal-account {
  gap: 0.75rem;
  padding-left: 1.25rem;
}

.student-portal-account-copy {
  max-width: 150px;
}

.student-portal-account-copy strong {
  font-size: 0.8rem;
}

.student-portal-avatar-button {
  height: 46px;
  transition: box-shadow 170ms ease, transform 170ms ease;
  width: 46px;
}

.student-portal-avatar-button:hover,
.student-portal-avatar-button:focus-visible {
  box-shadow: 0 0 0 4px rgba(81, 70, 237, 0.1);
  outline: 0;
  transform: translateY(-1px);
}

.student-portal-main {
  min-height: calc(100vh - 76px);
  padding: 1.15rem 1.75rem 2.5rem;
}

.student-portal-greeting,
.student-portal-page-hero {
  isolation: isolate;
  overflow: hidden;
  position: relative;
}

.student-portal-greeting::before,
.student-portal-page-hero::before {
  background:
    radial-gradient(circle, rgba(81, 70, 237, 0.12) 1px, transparent 1.5px);
  background-size: 12px 12px;
  content: "";
  height: 110px;
  opacity: 0.35;
  pointer-events: none;
  position: absolute;
  right: 30%;
  top: -15px;
  transform: rotate(-8deg);
  width: 180px;
  z-index: -1;
}

.student-portal-greeting::after,
.student-portal-page-hero::after {
  background:
    radial-gradient(circle at 100% 0%, rgba(99, 102, 241, 0.18), transparent 55%),
    linear-gradient(135deg, transparent 40%, rgba(99, 102, 241, 0.08));
  border-radius: 50% 0 0 50%;
  bottom: -65%;
  content: "";
  pointer-events: none;
  position: absolute;
  right: -2%;
  top: -35%;
  width: 42%;
  z-index: -1;
}

.student-portal-greeting {
  align-items: stretch;
  background: linear-gradient(112deg, #fbfcff 0%, #f7f8ff 58%, #eef0ff 100%);
  border-color: #dfe4f5;
  border-radius: 1rem;
  min-height: 144px;
  padding: 1.4rem 1.55rem;
}

.student-portal-greeting-copy {
  align-self: center;
  min-width: 0;
}

.student-portal-greeting-copy > p {
  color: var(--portal-muted);
  font-size: 0.84rem;
  margin: 0 0 0.2rem;
}

.student-portal-greeting h1 {
  font-size: clamp(1.75rem, 3vw, 2.25rem);
  letter-spacing: -0.035em;
}

.student-portal-context-chips {
  display: flex;
  flex-wrap: wrap;
  gap: 0.55rem;
  margin-top: 0.85rem;
}

.student-portal-context-chips > span,
.student-portal-period-chip {
  align-items: center;
  background: rgba(255, 255, 255, 0.76);
  border: 1px solid rgba(220, 226, 242, 0.9);
  border-radius: 0.6rem;
  color: #536078;
  display: inline-flex;
  font-size: 0.71rem;
  font-weight: 600;
  gap: 0.38rem;
  min-height: 34px;
  padding: 0.42rem 0.65rem;
}

.student-portal-context-chips i,
.student-portal-period-chip i {
  color: var(--portal-primary);
  font-size: 0.93rem;
}

.student-portal-homeroom {
  align-self: center;
  background: rgba(255, 255, 255, 0.9);
  border: 1px solid rgba(220, 226, 242, 0.95);
  border-radius: 0.9rem;
  box-shadow: 0 8px 24px rgba(43, 57, 102, 0.06);
  max-width: 310px;
  min-width: 270px;
  padding: 0.85rem 0.95rem;
}

.student-portal-homeroom-icon {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 50%;
  color: var(--portal-primary);
  display: inline-flex;
  flex: 0 0 auto;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.student-portal-homeroom-icon > i {
  font-size: 1.35rem;
}

.student-portal-homeroom > i:last-child {
  color: #8b96a9;
  margin-left: auto;
}

.student-portal-homeroom small {
  font-size: 0.66rem;
}

.student-portal-homeroom strong {
  font-size: 0.82rem;
  margin-top: 0.13rem;
}

.student-portal-dashboard {
  gap: 0.9rem;
}

.student-portal-card {
  border-color: var(--portal-border);
  border-radius: 1rem;
  box-shadow: var(--portal-shadow);
  padding: 1.1rem 1.15rem;
}

.student-portal-card,
.student-portal-quick-grid a,
.student-portal-record-list article,
.student-portal-event-list article {
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.student-portal-card:hover {
  border-color: var(--portal-border-strong);
}

.student-portal-card-head {
  margin-bottom: 0.9rem;
}

.student-portal-card-head h2 {
  font-size: 1rem;
}

.student-portal-card-head > a {
  align-items: center;
  display: inline-flex;
  font-size: 0.7rem;
  gap: 0.2rem;
}

.student-portal-card-head > a::after {
  content: "→";
  font-family: inherit;
  font-size: 0.82rem;
}

.student-portal-eyebrow {
  font-size: 0.66rem;
  letter-spacing: 0.07em;
}

.student-portal-attendance-today,
.student-portal-next-lesson {
  min-height: 210px;
}

.student-portal-attendance-today,
.student-portal-next-lesson,
.student-portal-today-schedule,
.student-portal-timeline-card,
.student-portal-semester-summary,
.student-portal-discipline-summary {
  display: flex;
  flex-direction: column;
}

.student-portal-today-schedule,
.student-portal-timeline-card {
  grid-column: span 6;
}

.student-portal-text-link {
  margin-top: auto;
  padding-top: 0.7rem;
}

.student-portal-today-metrics {
  gap: 0.7rem;
}

.student-portal-today-metrics > div {
  align-items: center;
  display: flex;
  gap: 0.65rem;
  min-height: 66px;
  padding: 0.65rem 0.75rem;
}

.student-portal-today-metrics > div > i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 0.65rem;
  color: var(--portal-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.15rem;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.student-portal-today-metrics > div > i.is-success {
  background: #e9f9f0;
  color: var(--portal-success);
}

.student-portal-today-metrics > div > i.is-warning {
  background: #fff5e8;
  color: var(--portal-warning);
}

.student-portal-today-metrics strong {
  font-size: 1.03rem;
}

.student-portal-inline-notes {
  margin-bottom: 0.1rem;
}

.student-portal-next-lesson h3 {
  font-size: 1.22rem;
}

.student-portal-next-time {
  font-size: 0.95rem;
}

.student-portal-next-lesson .student-portal-empty {
  flex: 1;
}

.student-portal-quick-actions {
  margin-top: 0.15rem;
}

.student-portal-quick-grid {
  gap: 0.75rem;
}

.student-portal-quick-grid a {
  align-items: center;
  border-radius: 0.9rem;
  flex-direction: column;
  gap: 0.45rem;
  justify-content: center;
  min-height: 102px;
  padding: 0.8rem 0.55rem;
  text-align: center;
}

.student-portal-quick-grid a:hover,
.student-portal-quick-grid a:focus-visible {
  background: #fff;
  box-shadow: var(--portal-shadow-hover);
  transform: translateY(-1px);
}

.student-portal-quick-grid a:active {
  transform: translateY(0);
}

.student-portal-quick-grid a > i {
  font-size: 1.28rem;
  height: 40px;
  width: 40px;
}

.student-portal-quick-grid a > span,
.student-portal-quick-grid a strong,
.student-portal-quick-grid a small {
  display: block;
}

.student-portal-quick-grid a strong {
  color: var(--portal-text);
  font-size: 0.74rem;
}

.student-portal-quick-grid a small {
  color: var(--portal-muted);
  font-size: 0.59rem;
  font-weight: 500;
  margin-top: 0.1rem;
}

.student-portal-quick-grid .is-attendance > i {
  background: #eaf8f0;
  color: var(--portal-success);
}

.student-portal-quick-grid .is-activity > i {
  background: #eaf3ff;
  color: var(--portal-info);
}

.student-portal-quick-grid .is-discipline > i {
  background: #fff3e7;
  color: var(--portal-warning);
}

.student-portal-quick-grid .is-card > i {
  background: #edf5ff;
  color: #2581e8;
}

.student-portal-schedule-list {
  gap: 0;
}

.student-portal-schedule-list article {
  align-items: center;
  gap: 0.7rem;
  grid-template-columns: 72px 38px minmax(0, 1fr);
  min-height: 64px;
  padding: 0.7rem 0;
  position: relative;
}

.student-portal-schedule-list article::before {
  background: #dce3f1;
  bottom: -9px;
  content: "";
  left: 90px;
  position: absolute;
  top: 47px;
  width: 1px;
}

.student-portal-schedule-list article:last-child::before {
  display: none;
}

.student-portal-schedule-icon {
  align-items: center;
  background: var(--portal-primary-soft);
  border: 4px solid #fff;
  border-radius: 50%;
  color: var(--portal-primary);
  display: inline-flex;
  height: 34px;
  justify-content: center;
  position: relative;
  width: 34px;
  z-index: 1;
}

.student-portal-schedule-list article.is-ongoing {
  background: #f1fbf5;
  border: 1px solid #bfe8d0;
  border-radius: 0.8rem;
  margin: 0.25rem 0;
  padding-left: 0.65rem;
  padding-right: 0.65rem;
}

.student-portal-schedule-list article.is-ongoing::before {
  display: none;
}

.student-portal-schedule-list article.is-ongoing .student-portal-schedule-icon {
  background: #dcf6e7;
  color: var(--portal-success);
}

.student-portal-live-badge {
  align-items: center;
  background: #e5f8ed;
  border-radius: 999px;
  color: #0d7f46;
  display: inline-flex;
  font-size: 0.58rem;
  font-weight: 700;
  gap: 0.22rem;
  margin-top: 0.3rem;
  padding: 0.3rem 0.48rem;
}

.student-portal-timeline article {
  align-items: center;
  gap: 0.65rem;
  grid-template-columns: auto minmax(0, 1fr) 18px;
  min-height: 57px;
  padding: 0.55rem 0;
}

.student-portal-timeline article > i {
  color: #929caf;
}

.student-portal-kind {
  font-size: 0.59rem;
  padding: 0.34rem 0.5rem;
}

.student-portal-summary-grid {
  gap: 0.5rem;
}

.student-portal-summary-grid > div {
  background: #fff;
  border: 1px solid #e8edf5;
  border-radius: 0.7rem;
  padding: 0.65rem 0.25rem;
}

.student-portal-summary-grid > div > i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 50%;
  color: var(--portal-primary);
  display: inline-flex;
  font-size: 0.9rem;
  height: 27px;
  justify-content: center;
  margin-bottom: 0.25rem;
  width: 27px;
}

.student-portal-summary-grid > div.is-success > i,
.student-portal-summary-grid > div.is-success > strong {
  color: var(--portal-success);
}

.student-portal-summary-grid > div.is-warning > i,
.student-portal-summary-grid > div.is-warning > strong {
  color: var(--portal-warning);
}

.student-portal-summary-grid > div.is-info > i,
.student-portal-summary-grid > div.is-info > strong {
  color: var(--portal-info);
}

.student-portal-summary-grid > div.is-sick > i,
.student-portal-summary-grid > div.is-sick > strong {
  color: #e95788;
}

.student-portal-summary-grid > div.is-danger > i,
.student-portal-summary-grid > div.is-danger > strong {
  color: var(--portal-danger);
}

.student-portal-points > div {
  overflow: hidden;
  padding: 0.75rem 0.8rem;
  position: relative;
}

.student-portal-points > div > i {
  color: #dce2ed;
  font-size: 1.75rem;
  position: absolute;
  right: 0.65rem;
  top: 0.75rem;
}

.student-portal-points strong {
  font-size: 1.35rem;
}

.student-portal-empty {
  background: linear-gradient(120deg, #fbfcff, #f7f9ff);
  min-height: 72px;
}

.student-portal-empty > i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 0.65rem;
  color: #7770ee;
  display: inline-flex;
  height: 38px;
  justify-content: center;
  width: 38px;
}

.student-portal-page-hero {
  align-items: center;
  background: linear-gradient(112deg, #fbfcff 0%, #f7f8ff 62%, #eef0ff 100%);
  border: 1px solid #e1e6f5;
  border-radius: 1rem;
  margin-bottom: 1rem;
  min-height: 138px;
  padding: 1.35rem 1.55rem;
}

.student-portal-page-hero-copy {
  min-width: 0;
  position: relative;
  z-index: 1;
}

.student-portal-page-hero h1 {
  font-size: clamp(1.7rem, 3vw, 2.2rem);
  letter-spacing: -0.035em;
}

.student-portal-page-hero p:last-of-type {
  max-width: 640px;
}

.student-portal-hero-icon {
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(215, 222, 242, 0.9);
  border-radius: 1.1rem;
  color: var(--portal-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 2.6rem;
  height: 88px;
  justify-content: center;
  margin-left: auto;
  width: 98px;
}

.student-portal-page-hero .student-portal-page-actions {
  align-self: center;
  margin-left: auto;
  position: relative;
  z-index: 1;
}

.student-portal-page-actions .btn {
  background: rgba(255, 255, 255, 0.8);
  border-radius: 0.65rem;
  font-size: 0.72rem;
  font-weight: 700;
}

.student-portal-day-selector {
  display: grid;
  gap: 0.55rem;
  grid-template-columns: repeat(6, minmax(0, 1fr));
  margin-bottom: 0.9rem;
}

.student-portal-day-selector a {
  align-items: center;
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 0.75rem;
  color: var(--portal-muted);
  display: flex;
  flex-direction: column;
  font-size: 0.74rem;
  font-weight: 700;
  justify-content: center;
  min-height: 58px;
  padding: 0.45rem;
  transition: border-color 170ms ease, box-shadow 170ms ease, transform 170ms ease;
}

.student-portal-day-selector a:hover,
.student-portal-day-selector a:focus-visible {
  border-color: #cbd2f6;
  box-shadow: var(--portal-shadow);
  outline: 0;
  transform: translateY(-1px);
}

.student-portal-day-selector a small {
  font-size: 0.58rem;
  font-weight: 500;
  margin-top: 0.08rem;
}

.student-portal-day-selector a.is-active {
  background: linear-gradient(135deg, #5c50f2, #4338ca);
  border-color: var(--portal-primary);
  color: #fff;
}

.student-portal-schedule-board {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-portal-schedule-board .student-portal-day-card.is-selected {
  border-color: #cfd4fb;
  box-shadow: 0 12px 28px rgba(81, 70, 237, 0.08);
  grid-column: 1 / -1;
  order: -1;
}

.student-portal-schedule-board .student-portal-day-card.is-selected .student-portal-schedule-list {
  display: grid;
  gap: 0 1.25rem;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-portal-today-panel {
  background: rgba(255, 255, 255, 0.92);
  border: 1px solid rgba(215, 222, 242, 0.95);
  border-radius: 0.9rem;
  box-shadow: var(--portal-shadow);
  flex: 0 0 390px;
  padding: 0.85rem 1rem;
}

.student-portal-today-panel-head {
  align-items: center;
  display: flex;
  justify-content: space-between;
  margin-bottom: 0.65rem;
}

.student-portal-today-panel-head span {
  align-items: center;
  display: inline-flex;
  font-size: 0.72rem;
  font-weight: 700;
  gap: 0.35rem;
}

.student-portal-today-panel-head span i {
  color: var(--portal-primary);
}

.student-portal-today-panel-head small {
  color: var(--portal-muted);
  font-size: 0.61rem;
}

.student-portal-today-panel-body {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-portal-today-panel-body > span {
  align-items: center;
  display: grid;
  gap: 0.08rem 0.5rem;
  grid-template-columns: 34px minmax(0, 1fr);
  padding: 0.15rem 0.75rem;
}

.student-portal-today-panel-body > span + span {
  border-left: 1px solid var(--portal-border);
}

.student-portal-today-panel-body > span > i {
  align-items: center;
  background: #fff5e8;
  border-radius: 0.55rem;
  color: var(--portal-warning);
  display: inline-flex;
  font-size: 1rem;
  grid-row: 1 / span 2;
  height: 34px;
  justify-content: center;
  width: 34px;
}

.student-portal-today-panel-body > span.is-success > i {
  background: #e8f8ef;
  color: var(--portal-success);
}

.student-portal-today-panel-body small {
  color: var(--portal-muted);
  font-size: 0.6rem;
}

.student-portal-today-panel-body strong {
  font-size: 0.77rem;
}

.student-portal-content-tabs {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 0.8rem;
  display: inline-grid;
  gap: 0.25rem;
  grid-template-columns: repeat(3, minmax(120px, 1fr));
  margin-top: 0.85rem;
  padding: 0.28rem;
}

.student-portal-content-tabs a {
  align-items: center;
  border-radius: 0.6rem;
  color: var(--portal-muted);
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 0.35rem;
  justify-content: center;
  min-height: 42px;
  padding: 0.5rem 0.8rem;
}

.student-portal-content-tabs a:first-child,
.student-portal-content-tabs a:hover,
.student-portal-content-tabs a:focus-visible {
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  outline: 0;
}

.student-portal-record-list article {
  border-radius: 0.8rem;
  min-height: 76px;
  padding: 0.8rem 0.9rem;
}

.student-portal-record-list article:hover {
  border-color: var(--portal-border-strong);
  box-shadow: 0 6px 18px rgba(43, 57, 102, 0.04);
}

.student-portal-activity-summary {
  display: grid;
  gap: 0;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  margin-bottom: 0.9rem;
  padding: 0.95rem 1.15rem;
}

.student-portal-activity-summary > div {
  align-items: center;
  display: flex;
  gap: 0.75rem;
  min-height: 58px;
  padding: 0 1.1rem;
}

.student-portal-activity-summary > div + div {
  border-left: 1px solid var(--portal-border);
}

.student-portal-activity-summary > div > i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 0.7rem;
  color: var(--portal-primary);
  display: inline-flex;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.student-portal-activity-summary small,
.student-portal-activity-summary strong {
  display: block;
}

.student-portal-activity-summary small {
  color: var(--portal-muted);
  font-size: 0.63rem;
}

.student-portal-activity-summary strong {
  font-size: 1.18rem;
  margin-top: 0.05rem;
}

.student-portal-two-column {
  gap: 0.9rem;
}

.student-portal-event-list article {
  align-items: center;
  grid-template-columns: 94px minmax(0, 1fr) 18px;
  min-height: 68px;
  padding: 0.65rem 0;
}

.student-portal-event-list article > i {
  color: #929caf;
}

.student-portal-event-list .student-portal-kind {
  margin-bottom: 0.25rem;
}

.student-portal-event-list.is-agenda article {
  grid-template-columns: 10px minmax(0, 1fr);
}

.student-portal-discipline-identity {
  background: transparent;
  border: 0;
  box-shadow: none;
  padding: 0.15rem 0.35rem 0.95rem;
}

.student-portal-points.is-detail {
  grid-template-columns: repeat(4, minmax(0, 1fr));
}

.student-portal-points.is-detail > div {
  min-height: 112px;
  padding: 0.9rem 0.95rem;
}

.student-portal-points.is-detail strong {
  font-size: 1.65rem;
}

.student-portal-points .is-count strong {
  color: var(--portal-info);
}

.student-portal-report-toolbar {
  align-items: center;
  display: flex;
  gap: 0.7rem;
  justify-content: space-between;
  margin-bottom: 0.8rem;
}

.student-portal-report-toolbar .student-portal-segmented {
  margin-bottom: 0;
}

.student-portal-period-chip {
  background: #fff;
}

.student-portal-discipline-list article {
  border-radius: 0.8rem;
  min-height: 82px;
  padding: 0.8rem 0.9rem;
}

.student-portal-discipline-list article:hover {
  border-color: var(--portal-border-strong);
  box-shadow: 0 6px 18px rgba(43, 57, 102, 0.04);
}

.student-portal-card-layout {
  align-items: start;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.8fr);
}

.student-portal-digital-card {
  margin: 0;
  max-width: none;
}

.student-portal-card-preview {
  grid-template-columns: minmax(0, 1fr);
}

.student-portal-card-side .simolah-student-card {
  font-size: clamp(8px, 1.3vw, 14px);
  margin: 0 auto;
  max-width: 690px;
}

.student-portal-card-aside {
  display: grid;
  gap: 0.9rem;
}

.student-portal-info-panel {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
}

.student-portal-info-panel > i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 0.7rem;
  color: var(--portal-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.25rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.student-portal-info-panel.is-success > i {
  background: #e9f9f0;
  color: var(--portal-success);
}

.student-portal-info-panel small,
.student-portal-info-panel strong {
  display: block;
}

.student-portal-info-panel small {
  color: var(--portal-muted);
  font-size: 0.65rem;
}

.student-portal-info-panel strong {
  color: var(--portal-success);
  font-size: 1rem;
  margin-top: 0.08rem;
}

.student-portal-info-panel p {
  color: var(--portal-muted);
  font-size: 0.67rem;
  line-height: 1.5;
  margin: 0.35rem 0 0;
}

.student-portal-validity {
  align-items: center;
  border-top: 1px solid var(--portal-border);
  display: flex;
  gap: 0.65rem;
  margin-top: 0.8rem;
  padding-top: 0.75rem;
}

.student-portal-validity > i {
  color: var(--portal-primary);
  font-size: 1.05rem;
}

.student-portal-validity small,
.student-portal-validity strong {
  display: block;
}

.student-portal-validity small {
  color: var(--portal-muted);
  font-size: 0.6rem;
}

.student-portal-validity strong {
  font-size: 0.7rem;
}

.student-portal-card-actions h2 {
  font-size: 0.9rem;
  margin: 0 0 0.75rem;
}

.student-portal-card-actions .btn {
  align-items: center;
  border-radius: 0.65rem;
  display: flex;
  font-size: 0.72rem;
  font-weight: 700;
  justify-content: center;
  min-height: 44px;
  width: 100%;
}

.student-portal-card-actions .btn + .btn {
  margin-top: 0.55rem;
}

.student-portal-card-notice.student-portal-card {
  margin: 0.9rem 0 0;
}

.student-portal-qr-modal .modal-content {
  border: 0;
  border-radius: 1rem;
  box-shadow: 0 18px 50px rgba(30, 41, 74, 0.16);
}

.student-portal-qr-large {
  background: #fff;
  border: 1px solid var(--portal-border);
  border-radius: 0.9rem;
  margin: 0 auto;
  max-width: 310px;
  padding: 1rem;
}

.student-portal-qr-large img,
.student-portal-qr-large svg {
  display: block;
  height: auto;
  width: 100%;
}

.student-portal-qr-modal .modal-body > p {
  color: var(--portal-muted);
  font-size: 0.7rem;
  margin: 0.75rem 0 0;
}

.student-portal-profile-layout {
  align-items: stretch;
  display: grid;
  gap: 0.9rem;
  grid-template-columns: minmax(0, 2fr) minmax(280px, 0.9fr);
}

.student-portal-profile {
  margin: 0;
  max-width: none;
}

.student-portal-profile-identity {
  border: 0;
  gap: 1.15rem;
  padding: 0;
}

.student-portal-profile-avatar {
  flex: 0 0 auto;
  position: relative;
}

.student-portal-profile-avatar img,
.student-portal-profile-avatar span {
  border-radius: 50%;
  height: 112px;
  object-fit: cover;
  width: 112px;
}

.student-portal-profile-avatar span {
  align-items: center;
  background: var(--portal-primary-soft);
  color: var(--portal-primary);
  display: flex;
  font-size: 2.7rem;
  justify-content: center;
}

.student-portal-profile-identity h2 {
  font-size: 1.35rem;
}

.student-portal-profile-identity p:last-of-type {
  align-items: center;
  display: flex;
  gap: 0.3rem;
}

.student-portal-profile-identity p:last-of-type i {
  color: var(--portal-primary);
}

.student-portal-profile-key {
  display: flex;
  gap: 1.2rem;
  margin-top: 0.75rem;
}

.student-portal-profile-key span + span {
  border-left: 1px solid var(--portal-border);
  padding-left: 1.2rem;
}

.student-portal-profile-key small,
.student-portal-profile-key strong {
  display: block;
}

.student-portal-profile-key small {
  color: var(--portal-muted);
  font-size: 0.61rem;
}

.student-portal-profile-key strong {
  font-size: 0.78rem;
  margin-top: 0.1rem;
}

.student-portal-profile-period {
  align-items: center;
  background: var(--portal-surface-soft);
  border-radius: 0.6rem;
  color: var(--portal-muted);
  display: inline-flex;
  font-size: 0.7rem;
  gap: 0.4rem;
  margin-top: 1rem;
  min-height: 36px;
  padding: 0.45rem 0.65rem;
}

.student-portal-profile-period i {
  color: var(--portal-primary);
}

.student-portal-profile-context {
  display: grid;
  gap: 0;
}

.student-portal-profile-context > div {
  align-items: flex-start;
  display: flex;
  gap: 0.75rem;
  padding: 0.65rem 0;
}

.student-portal-profile-context > div + div {
  border-top: 1px solid var(--portal-border);
}

.student-portal-profile-context > div > i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 50%;
  color: var(--portal-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.15rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.student-portal-profile-context small,
.student-portal-profile-context strong {
  display: block;
}

.student-portal-profile-context small {
  color: var(--portal-muted);
  font-size: 0.62rem;
}

.student-portal-profile-context strong {
  font-size: 0.76rem;
  margin-top: 0.12rem;
}

.student-portal-profile-context p {
  color: var(--portal-muted);
  font-size: 0.63rem;
  line-height: 1.45;
  margin: 0.2rem 0 0;
}

.student-portal-profile-data {
  margin-top: 0.9rem;
}

.student-portal-profile-grid {
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.student-portal-profile-grid > div {
  align-items: center;
  display: grid;
  gap: 1rem;
  grid-template-columns: minmax(150px, 0.8fr) minmax(0, 1.2fr);
  padding: 0.75rem 0.4rem;
}

.student-portal-profile-grid dt {
  align-items: center;
  display: flex;
  gap: 0.4rem;
}

.student-portal-profile-grid dt i {
  color: var(--portal-primary);
  font-size: 0.95rem;
}

.student-portal-profile-grid dd {
  text-align: right;
}

.student-portal-profile-note {
  align-items: center;
  display: flex;
  gap: 0.8rem;
  margin-top: 0.9rem;
}

.student-portal-profile-note > i {
  align-items: center;
  background: var(--portal-primary-soft);
  border-radius: 50%;
  color: var(--portal-primary);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.2rem;
  height: 44px;
  justify-content: center;
  width: 44px;
}

.student-portal-profile-note strong {
  font-size: 0.75rem;
}

.student-portal-profile-note p {
  color: var(--portal-muted);
  font-size: 0.65rem;
  margin: 0.15rem 0 0;
}

.student-portal a:focus-visible,
.student-portal button:focus-visible {
  outline: 3px solid rgba(81, 70, 237, 0.22);
  outline-offset: 2px;
}

@media (max-width: 1099.98px) {
  .student-portal-header-inner,
  .student-portal-main {
    padding-left: 1.25rem;
    padding-right: 1.25rem;
  }

  .student-portal-header-inner {
    gap: 0.8rem;
  }

  .student-portal-brand {
    min-width: 165px;
  }

  .student-portal-brand img {
    height: 40px;
    width: 40px;
  }

  .student-portal-desktop-nav > a,
  .student-portal-nav-button {
    padding-left: 0.55rem;
    padding-right: 0.55rem;
  }

  .student-portal-account {
    padding-left: 0.7rem;
  }

  .student-portal-today-panel {
    flex-basis: 340px;
  }

  .student-portal-card-layout,
  .student-portal-profile-layout {
    grid-template-columns: minmax(0, 1.7fr) minmax(260px, 0.9fr);
  }
}

@media (max-width: 899.98px) {
  .student-portal-greeting {
    min-height: 130px;
  }

  .student-portal-homeroom {
    min-width: 240px;
  }

  .student-portal-attendance-today,
  .student-portal-next-lesson {
    min-height: 220px;
  }

  .student-portal-page-hero {
    align-items: flex-start;
  }

  .student-portal-today-panel {
    flex-basis: 310px;
  }

  .student-portal-card-layout,
  .student-portal-profile-layout {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-portal-card-aside {
    grid-template-columns: repeat(3, minmax(0, 1fr));
  }

  .student-portal-card-aside .student-portal-card {
    min-height: 100%;
  }

  .student-portal-profile-context {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-profile-context > div + div {
    border-left: 1px solid var(--portal-border);
    border-top: 0;
    padding-left: 1rem;
  }
}

@media (max-width: 799.98px) {
  .student-portal {
    padding-bottom: calc(72px + env(safe-area-inset-bottom));
  }

  .student-portal-header-inner {
    height: 58px;
    padding-left: 0.9rem;
    padding-right: 0.9rem;
  }

  .student-portal-header {
    backdrop-filter: blur(10px);
  }

  .student-portal-brand img {
    height: 38px;
    width: 38px;
  }

  .student-portal-mobile-context {
    padding: 0 0.9rem 0.6rem;
  }

  .student-portal-mobile-context span {
    font-size: 0.8rem;
  }

  .student-portal-mobile-context small {
    font-size: 0.64rem;
  }

  .student-portal-main {
    padding: 0.8rem 0.9rem 1.5rem;
  }

  .student-portal-greeting {
    display: none;
  }

  .student-portal-card {
    border-radius: 0.85rem;
    padding: 0.9rem;
  }

  .student-portal-attendance-today,
  .student-portal-next-lesson {
    min-height: 0;
  }

  .student-portal-quick-grid a {
    align-items: center;
    flex-direction: row;
    justify-content: flex-start;
    min-height: 72px;
    padding: 0.65rem 0.7rem;
    text-align: left;
  }

  .student-portal-quick-grid a > i {
    height: 38px;
    width: 38px;
  }

  .student-portal-schedule-list article {
    gap: 0.5rem;
    grid-template-columns: 58px 30px minmax(0, 1fr);
  }

  .student-portal-schedule-list article::before {
    left: 72px;
  }

  .student-portal-schedule-icon {
    border-width: 3px;
    height: 30px;
    width: 30px;
  }

  .student-portal-summary-grid > div {
    min-height: 78px;
  }

  .student-portal-points > div {
    min-height: 82px;
  }

  .student-portal-page-hero {
    align-items: center;
    min-height: 112px;
    padding: 1rem;
  }

  .student-portal-page-hero::before {
    display: none;
  }

  .student-portal-page-hero::after {
    opacity: 0.75;
    width: 48%;
  }

  .student-portal-page-hero h1 {
    font-size: 1.45rem;
  }

  .student-portal-page-hero p:last-of-type {
    font-size: 0.68rem;
    max-width: 82%;
  }

  .student-portal-page-hero .student-portal-context-chips {
    gap: 0.35rem;
    margin-top: 0.6rem;
  }

  .student-portal-page-hero .student-portal-context-chips > span {
    font-size: 0.61rem;
    min-height: 30px;
    padding: 0.35rem 0.45rem;
  }

  .student-portal-hero-icon {
    font-size: 1.7rem;
    height: 60px;
    width: 60px;
  }

.student-portal-page-hero .student-portal-page-actions {
    align-items: stretch;
    align-self: stretch;
    display: flex;
    flex-direction: column;
    justify-content: center;
  }

  .student-portal-page-actions .btn {
    min-height: 38px;
  }

  .student-portal-day-selector {
    display: flex;
    gap: 0.45rem;
    margin: 0 -0.9rem 0.75rem;
    overflow-x: auto;
    padding: 0 0.9rem 0.25rem;
    scrollbar-width: none;
  }

  .student-portal-day-selector::-webkit-scrollbar {
    display: none;
  }

  .student-portal-day-selector a {
    flex: 0 0 56px;
    min-height: 50px;
  }

  .student-portal-day-selector small {
    display: block;
  }

  .student-portal-schedule-board .student-portal-day-card.is-selected .student-portal-schedule-list {
    display: block;
  }

  .student-portal-today-panel {
    display: none;
  }

  .student-portal-page-hero.is-attendance {
    display: block;
  }

  .student-portal-page-hero.is-attendance .student-portal-today-panel {
    display: block;
    margin-top: 0.8rem;
    width: 100%;
  }

  .student-portal-content-tabs {
    display: grid;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    width: 100%;
  }

  .student-portal-content-tabs a {
    min-width: 0;
    padding-left: 0.35rem;
    padding-right: 0.35rem;
  }

  .student-portal-activity-summary {
    gap: 0.45rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    padding: 0.75rem;
  }

  .student-portal-activity-summary > div {
    align-items: center;
    flex-direction: column;
    gap: 0.3rem;
    min-width: 0;
    padding: 0.15rem 0.35rem;
    text-align: center;
  }

  .student-portal-activity-summary > div > i {
    height: 36px;
    width: 36px;
  }

  .student-portal-activity-summary small {
    font-size: 0.56rem;
    overflow-wrap: anywhere;
  }

  .student-portal-event-list article {
    grid-template-columns: 78px minmax(0, 1fr) 16px;
  }

  .student-portal-points.is-detail {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-points.is-detail > div {
    min-height: 100px;
  }

  .student-portal-report-toolbar {
    align-items: stretch;
    flex-direction: column;
  }

  .student-portal-report-toolbar .student-portal-segmented {
    width: 100%;
  }

  .student-portal-period-chip {
    justify-content: center;
    width: 100%;
  }

  .student-portal-card-aside {
    display: grid;
    grid-template-columns: minmax(0, 1fr);
  }

  .student-portal-card-side .simolah-student-card {
    font-size: clamp(7px, 2.55vw, 13px);
  }

  .student-portal-card-actions .btn {
    min-height: 46px;
  }

  .student-portal-profile-identity {
    align-items: flex-start;
  }

  .student-portal-profile-avatar img,
  .student-portal-profile-avatar span {
    height: 86px;
    width: 86px;
  }

  .student-portal-profile-identity h2 {
    font-size: 1.05rem;
  }

  .student-portal-profile-key {
    gap: 0.7rem;
  }

  .student-portal-profile-key span + span {
    padding-left: 0.7rem;
  }

  .student-portal-profile-context {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-portal-profile-context > div + div {
    border-left: 0;
    border-top: 1px solid var(--portal-border);
    padding-left: 0;
  }

  .student-portal-profile-grid {
    grid-template-columns: minmax(0, 1fr);
  }

  .student-portal-profile-grid > div {
    grid-template-columns: minmax(120px, 0.8fr) minmax(0, 1.2fr);
  }

  .student-portal-profile-note {
    align-items: flex-start;
  }

  .student-portal-bottom-nav {
    box-shadow: 0 -8px 24px rgba(43, 57, 102, 0.055);
    padding-bottom: calc(0.35rem + env(safe-area-inset-bottom));
  }

  .student-portal-bottom-nav a,
  .student-portal-bottom-nav button {
    min-height: 54px;
  }

  .student-portal #simolah-debug-toolbar {
    bottom: calc(76px + env(safe-area-inset-bottom));
  }
}

/* Guru Wali Phase 1 integration: dashboard, rombel, and student-safe portal projection. */
.simolah-advisor-capability {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(99, 102, 241, 0.2);
  border-radius: 14px;
  box-shadow: 0 4px 14px rgba(15, 23, 42, 0.035);
  display: grid;
  gap: 1.25rem;
  grid-template-columns: minmax(210px, 1fr) auto auto;
  min-height: 92px;
  padding: 1rem 1.2rem;
}

.simolah-advisor-capability__identity,
.simolah-advisor-capability__metrics,
.simolah-advisor-capability__metrics > div {
  align-items: center;
  display: flex;
}

.simolah-advisor-capability__identity {
  gap: 0.8rem;
  min-width: 0;
}

.simolah-advisor-capability__icon {
  align-items: center;
  background: rgba(99, 102, 241, 0.12);
  border-radius: 12px;
  color: #4f46e5;
  display: inline-flex;
  flex: 0 0 auto;
  font-size: 1.35rem;
  height: 46px;
  justify-content: center;
  width: 46px;
}

.simolah-advisor-capability__eyebrow {
  color: #64748b;
  display: block;
  font-size: 0.66rem;
  font-weight: 700;
  letter-spacing: 0.05em;
  text-transform: uppercase;
}

.simolah-advisor-capability h3 {
  color: #172033;
  font-size: 1rem;
  margin: 0.15rem 0 0;
}

.simolah-advisor-capability__metrics {
  gap: 1rem;
}

.simolah-advisor-capability__metrics > div {
  align-items: flex-start;
  flex-direction: column;
  min-width: 112px;
}

.simolah-advisor-capability__metrics > div + div {
  border-left: 1px solid #e5e7eb;
  padding-left: 1rem;
}

.simolah-advisor-capability__metrics strong {
  color: #172033;
  font-size: 1.2rem;
  line-height: 1;
}

.simolah-advisor-capability__metrics span {
  color: #64748b;
  font-size: 0.72rem;
  margin-top: 0.25rem;
  white-space: nowrap;
}

.simolah-advisor-capability__action {
  min-height: 38px;
  white-space: nowrap;
}

.simolah-class-advisor-coverage {
  align-items: center;
  display: flex;
  gap: 0.55rem;
  justify-content: center;
  margin-top: 0.35rem;
}

.simolah-class-advisor-coverage > span {
  align-items: center;
  display: inline-flex;
  font-size: 0.7rem;
  font-weight: 700;
  gap: 0.2rem;
}

.simolah-class-advisor-coverage .is-assigned {
  color: #16815a;
}

.simolah-class-advisor-coverage .is-unassigned {
  color: #a16207;
}

.simolah-class-advisor-table {
  min-width: 720px;
}

.simolah-class-advisor-name {
  align-items: center;
  color: #4338ca;
  display: inline-flex;
  font-weight: 600;
  gap: 0.35rem;
  white-space: nowrap;
}

.simolah-class-advisor-empty {
  color: #8b96a9;
  font-size: 0.78rem;
  white-space: nowrap;
}

.student-portal .student-portal-support {
  display: grid;
  grid-template-columns: 46px minmax(0, 1fr);
  max-width: 340px;
}

.student-portal-support__content,
.student-portal-support__row,
.student-portal-mobile-support small,
.student-portal-mobile-support strong {
  display: block;
  min-width: 0;
}

.student-portal .student-portal-support__title {
  color: var(--portal-primary);
  font-size: 0.62rem;
  font-weight: 700;
  letter-spacing: 0.045em;
  text-transform: uppercase;
}

.student-portal-support__row {
  display: grid;
  gap: 0.45rem;
  grid-template-columns: 72px minmax(0, 1fr);
  margin-top: 0.3rem;
}

.student-portal-support__row > span {
  color: var(--portal-muted);
  font-size: 0.62rem;
}

.student-portal .student-portal-support__row strong {
  font-size: 0.72rem;
  margin: 0;
  overflow-wrap: anywhere;
}

.student-portal .is-muted {
  color: var(--portal-muted);
  font-weight: 600;
}

.student-portal-mobile-support {
  display: none;
}

@media (max-width: 991.98px) {
  .simolah-advisor-capability {
    grid-template-columns: minmax(200px, 1fr) auto;
  }

  .simolah-advisor-capability__metrics {
    grid-column: 1 / -1;
    grid-row: 2;
  }

  .simolah-advisor-capability__action {
    grid-column: 2;
    grid-row: 1;
  }
}

@media (max-width: 767.98px) {
  .simolah-advisor-capability {
    gap: 0.85rem;
    grid-template-columns: minmax(0, 1fr);
    padding: 0.9rem;
  }

  .simolah-advisor-capability__identity,
  .simolah-advisor-capability__metrics,
  .simolah-advisor-capability__action {
    grid-column: 1;
    grid-row: auto;
  }

  .simolah-advisor-capability__metrics {
    justify-content: space-between;
    width: 100%;
  }

  .simolah-advisor-capability__metrics > div {
    min-width: 0;
    width: 50%;
  }

  .simolah-advisor-capability__metrics span {
    white-space: normal;
  }

  .simolah-advisor-capability__action {
    justify-content: center;
    width: 100%;
  }
}

@media (max-width: 799.98px) {
  .student-portal-mobile-support {
    align-items: center;
    background: var(--portal-surface);
    border: 1px solid var(--portal-border);
    border-radius: 0.85rem;
    box-shadow: var(--portal-shadow);
    display: grid;
    gap: 0.65rem;
    grid-template-columns: auto minmax(0, 1fr);
    margin-bottom: 0.8rem;
    padding: 0.75rem 0.85rem;
  }

  .student-portal-mobile-support__heading {
    align-items: center;
    color: var(--portal-primary);
    display: flex;
    flex-direction: column;
    font-size: 0.68rem;
    gap: 0.25rem;
    text-align: center;
  }

  .student-portal-mobile-support__heading i {
    font-size: 1.2rem;
  }

  .student-portal-mobile-support > div:last-child {
    display: grid;
    gap: 0.65rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .student-portal-mobile-support > div:last-child > span {
    min-width: 0;
  }

  .student-portal-mobile-support > div:last-child > span + span {
    border-left: 1px solid var(--portal-border);
    padding-left: 0.65rem;
  }

  .student-portal-mobile-support small {
    color: var(--portal-muted);
    font-size: 0.58rem;
  }

  .student-portal-mobile-support strong {
    font-size: 0.68rem;
    line-height: 1.25;
    margin-top: 0.15rem;
    overflow-wrap: anywhere;
  }
}

@media (min-width: 800px) and (max-width: 899.98px) {
  .student-portal-profile-context > div:last-child {
    border-left: 0;
    border-top: 1px solid var(--portal-border);
    grid-column: 1 / -1;
    padding-left: 0;
  }
}

.student-portal-page-actions .btn,
.student-portal-content-tabs a,
.student-portal-segmented a {
  min-height: 44px;
}

@media (max-width: 419.98px) {
  .student-portal-main {
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .student-portal-card {
    padding: 0.82rem;
  }

  .student-portal-page-hero {
    padding: 0.9rem;
  }

  .student-portal-page-hero p:last-of-type {
    max-width: 100%;
  }

  .student-portal-hero-icon {
    display: none;
  }

  .student-portal-page-hero .student-portal-context-chips > span:last-child {
    display: none;
  }

  .student-portal-day-selector {
    margin-left: -0.75rem;
    margin-right: -0.75rem;
    padding-left: 0.75rem;
    padding-right: 0.75rem;
  }

  .student-portal-quick-grid a {
    min-height: 68px;
    padding: 0.55rem;
  }

  .student-portal-quick-grid a small {
    font-size: 0.55rem;
  }

  .student-portal-points > div > i {
    font-size: 1.35rem;
  }

  .student-portal-page-actions .btn {
    font-size: 0;
    min-height: 44px;
    min-width: 44px;
  }

  .student-portal-page-actions .btn i {
    font-size: 1rem;
    margin: 0 !important;
  }

  .student-portal-profile-identity {
    display: block;
  }

  .student-portal-profile-avatar {
    margin-bottom: 0.75rem;
  }
}

/* Student portal contrast refinement: solid foreground icons on calm tint tiles. */
.student-portal .student-portal-greeting,
.student-portal .student-portal-page-hero {
  background: linear-gradient(112deg, #fbfcff 0%, #f6f7ff 56%, #e9ebff 100%);
}

.student-portal .student-portal-quick-grid a > i {
  opacity: 1;
}

.student-portal .student-portal-quick-grid .is-schedule > i {
  background: #e9efff;
  color: #3d64d8;
}

.student-portal .student-portal-quick-grid .is-attendance > i {
  background: #e5f7ed;
  color: #12804d;
}

.student-portal .student-portal-quick-grid .is-activity > i {
  background: #e4f7fb;
  color: #087f98;
}

.student-portal .student-portal-quick-grid .is-discipline > i {
  background: #fff1df;
  color: #b65e05;
}

.student-portal .student-portal-quick-grid .is-card > i {
  background: #ecebff;
  color: #4f46d8;
}

.student-portal .student-portal-quick-grid .student-portal-quick-more > i {
  background: #f3eaff;
  color: #7b3fc2;
}

.student-portal .student-portal-quick-grid a:hover,
.student-portal .student-portal-quick-grid a:focus-visible {
  border-color: #cfd4f7;
}

.student-portal .student-portal-quick-grid a:focus-visible,
.student-portal .student-portal-bottom-nav a:focus-visible,
.student-portal .student-portal-bottom-nav button:focus-visible {
  outline: 3px solid rgba(81, 70, 237, 0.22);
  outline-offset: 2px;
}

.student-portal .student-portal-summary-grid > div.is-success > i {
  background: #e5f7ed;
  color: #0f7547;
}

.student-portal .student-portal-summary-grid > div.is-warning > i {
  background: #fff1df;
  color: #a85200;
}

.student-portal .student-portal-summary-grid > div.is-info > i {
  background: #e7f0ff;
  color: #255eb8;
}

.student-portal .student-portal-summary-grid > div.is-sick > i {
  background: #fff0f5;
  color: #b53663;
}

.student-portal .student-portal-summary-grid > div.is-danger > i {
  background: #fff0ef;
  color: #b42318;
}

.student-portal .student-portal-summary-grid > div.is-primary > i {
  background: #ecebff;
  color: #4338ca;
}

.student-portal .student-portal-points .is-violation > i {
  color: #cc514b;
}

.student-portal .student-portal-points .is-positive > i {
  color: #269660;
}

.student-portal .student-portal-points .is-net > i {
  color: #665bea;
}

.student-portal .student-portal-empty > i {
  background: #ecebff;
  color: #5b50df;
}

.student-portal .student-portal-timeline article > i {
  color: #657188;
}

@media (max-width: 799.98px) {
  .student-portal .student-portal-bottom-nav a,
  .student-portal .student-portal-bottom-nav button {
    color: #667085;
  }

  .student-portal .student-portal-bottom-nav i {
    color: #59657b;
  }

  .student-portal .student-portal-bottom-nav .is-active,
  .student-portal .student-portal-bottom-nav .is-active i {
    color: var(--portal-primary);
  }

  .student-portal .student-portal-more-grid > a > i,
  .student-portal .student-portal-more-grid form button > i {
    align-items: center;
    background: #ecebff;
    border-radius: 0.55rem;
    color: #5548e8;
    display: inline-flex;
    height: 38px;
    justify-content: center;
    width: 38px;
  }
}

@media print {
  .student-portal:has(.student-portal-card-layout) {
    background: #fff;
    padding: 0;
  }

  .student-portal:has(.student-portal-card-layout) .student-portal-header,
  .student-portal:has(.student-portal-card-layout) .student-portal-page-hero,
  .student-portal:has(.student-portal-card-layout) .student-portal-card-aside,
  .student-portal:has(.student-portal-card-layout) .student-portal-card-notice,
  .student-portal:has(.student-portal-card-layout) .student-portal-bottom-nav,
  .student-portal:has(.student-portal-card-layout) .debug-toolbar {
    display: none !important;
  }

  .student-portal:has(.student-portal-card-layout) .student-portal-main {
    max-width: none;
    padding: 0;
  }

  .student-portal:has(.student-portal-card-layout) .student-portal-card-layout {
    display: block;
  }

  .student-portal:has(.student-portal-card-layout) .student-portal-digital-card {
    border: 0;
    box-shadow: none;
    padding: 0;
  }
}

/* Kartu Digital Modern V2 portrait uses its real orientation without stretching. */
.student-portal-card-preview.is-portrait {
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: start;
}

.student-portal-card-preview.is-portrait .student-portal-card-side .simolah-student-card {
  width: 100%;
  max-width: 360px;
}

@media (max-width: 575.98px) {
  .student-portal-card-preview.is-portrait {
    display: flex;
    gap: 0.75rem;
    overflow-x: auto;
    padding: 0.15rem 0.15rem 0.7rem;
    scroll-snap-type: x mandatory;
  }

  .student-portal-card-preview.is-portrait .student-portal-card-side {
    width: min(76vw, 280px);
    flex: 0 0 min(76vw, 280px);
    scroll-snap-align: start;
  }
}

@media print {
  .student-portal-card-preview.is-portrait {
    display: grid;
    grid-template-columns: repeat(2, 54mm);
    gap: 5mm;
    justify-content: start;
    overflow: visible;
  }

  .student-portal-card-preview.is-portrait .student-portal-card-side,
  .student-portal-card-preview.is-portrait .student-portal-card-side .simolah-student-card {
    width: 54mm;
    max-width: 54mm;
  }
}

/* ============================================================
   WhatsApp workspace — scoped presentation refinement
   ============================================================ */
.wa-workspace {
  --wa-ink: #17213b;
  --wa-ink-soft: #475569;
  --wa-muted: #64748b;
  --wa-line: rgba(15, 23, 42, .09);
  --wa-primary: #4f46e5;
  --wa-surface-soft: #f8fafc;
}

.wa-workspace > [class*="col-"] {
  min-width: 0;
}

.wa-workspace .card {
  border: 1px solid var(--wa-line) !important;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(23, 34, 79, .07) !important;
  overflow: hidden;
}

.wa-inline-header {
  align-items: center;
  background: linear-gradient(135deg, #f8faff 0%, #fff 58%, #f4f2ff 100%);
  border: 1px solid rgba(79, 70, 229, .14);
  border-radius: 16px;
  display: flex;
  gap: 16px;
  justify-content: space-between;
  padding: 16px 18px;
}

.wa-inline-header__main {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.wa-inline-header__icon,
.wa-summary-icon {
  align-items: center;
  display: inline-flex;
  flex: 0 0 auto;
  justify-content: center;
}

.wa-inline-header__icon {
  background: #e9e7ff;
  border-radius: 12px;
  color: #4f46e5;
  font-size: 22px;
  height: 44px;
  width: 44px;
}

.wa-eyebrow {
  color: #64748b;
  display: block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
  line-height: 1.2;
  margin-bottom: 3px;
}

.wa-inline-header h4 {
  color: var(--wa-ink);
  font-size: 1.12rem;
  font-weight: 750;
  line-height: 1.25;
  margin: 0;
}

.wa-inline-header p {
  color: var(--wa-muted);
  font-size: .78rem;
  line-height: 1.45;
  margin: 3px 0 0;
}

.wa-inline-header__status {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.wa-status-chip {
  align-items: center;
  background: #f1f5f9;
  border: 1px solid rgba(100, 116, 139, .15);
  border-radius: 999px;
  color: #475569;
  display: inline-flex;
  font-size: .72rem;
  font-weight: 700;
  gap: 6px;
  min-height: 30px;
  padding: 0 10px;
  white-space: nowrap;
}

.wa-status-chip.is-success {
  background: #ecfdf3;
  border-color: rgba(22, 163, 74, .18);
  color: #15803d;
}

.wa-status-chip.is-danger {
  background: #fff1f2;
  border-color: rgba(220, 38, 38, .18);
  color: #b91c1c;
}

.wa-status-chip.is-muted { color: #64748b; }
.wa-status-chip .ri { font-size: 15px; }

.wa-status-dot {
  background: currentColor;
  border-radius: 50%;
  display: inline-block;
  height: 7px;
  width: 7px;
}

.wa-hero-card {
  background: linear-gradient(135deg, rgba(34, 197, 94, .08), rgba(99, 102, 241, .08));
}

.wa-hero-card .card-body { padding: clamp(18px, 3vw, 30px) !important; }
.wa-hero-card h3 { color: var(--wa-ink); font-size: clamp(1.25rem, 2.2vw, 1.7rem); }
.wa-hero-card p { max-width: 560px; }

.wa-summary-card { min-height: 86px; }

.wa-summary-body {
  min-height: 84px;
  padding: 14px 16px !important;
}

.wa-summary-icon {
  border-radius: 12px !important;
  height: 42px;
  width: 42px;
}

.wa-summary-copy { min-width: 0; }
.wa-summary-copy h4 { color: var(--wa-ink); font-size: 1.16rem; font-weight: 750; }
.wa-summary-copy small { font-size: .75rem; }

.wa-connection-icon {
  align-items: center;
  border-radius: 12px !important;
  cursor: default;
  display: inline-flex !important;
  flex: 0 0 44px;
  height: 44px !important;
  justify-content: center;
  line-height: 1;
  width: 44px !important;
}

.wa-connection-icon .ri {
  display: inline-flex;
  font-size: 20px !important;
  line-height: 1;
  margin: 0 !important;
}

.wa-connection-icon.bg-label-success { background: #ecfdf3 !important; color: #15803d !important; }
.wa-connection-icon.bg-label-danger { background: #fff1f2 !important; color: #b91c1c !important; }
.wa-connection-icon.bg-label-secondary { background: #f1f5f9 !important; color: #64748b !important; }

.wa-section-tabs {
  background: var(--wa-surface-soft);
  border: 1px solid var(--wa-line);
  border-radius: 14px;
  display: flex;
  gap: 4px;
  margin: 0;
  max-width: 100%;
  overflow-x: auto;
  padding: 4px;
  scrollbar-width: thin;
}

.wa-section-tab {
  align-items: center;
  border: 1px solid transparent;
  border-radius: 10px;
  color: var(--wa-muted);
  display: inline-flex;
  flex: 0 0 auto;
  font-size: .82rem;
  font-weight: 650;
  gap: 7px;
  justify-content: center;
  min-height: 38px;
  padding: 0 14px;
  text-decoration: none;
  transition: background-color .15s ease, border-color .15s ease, color .15s ease, box-shadow .15s ease;
  white-space: nowrap;
}

.wa-section-tab:hover,
.wa-section-tab:focus-visible {
  background: #eef2ff;
  color: var(--wa-primary);
}

.wa-section-tab.is-active {
  background: #fff;
  border-color: rgba(79, 70, 229, .22);
  box-shadow: 0 3px 8px rgba(79, 70, 229, .08);
  color: var(--wa-primary);
}

.wa-section-tab .ri { font-size: 16px; }

.wa-panel-body { padding: 20px !important; }

.wa-panel-heading > div:first-child,
.wa-panel-heading p {
  min-width: 0;
}

.wa-panel-heading p,
.wa-panel > .card-body > p,
.wa-panel .text-muted {
  overflow-wrap: anywhere;
}

.wa-panel .card-footer {
  background: #fff;
  border-top: 1px solid var(--wa-line);
  padding: 12px 20px;
}

.wa-panel .btn {
  min-height: 40px;
  white-space: nowrap;
}

.wa-settings-grid { row-gap: 18px; }

.wa-check-grid {
  display: grid !important;
  gap: 8px !important;
  grid-template-columns: repeat(2, minmax(0, 1fr));
}

.wa-check-row {
  align-items: center;
  background: #fff;
  border: 1px solid rgba(79, 70, 229, .13);
  border-radius: 10px;
  cursor: pointer;
  display: flex;
  font-size: .78rem;
  font-weight: 650;
  gap: 12px;
  justify-content: space-between;
  min-height: 43px;
  padding: 9px 11px;
  transition: border-color .15s ease, background-color .15s ease, box-shadow .15s ease;
}

.wa-check-row:hover {
  background: #fafaff;
  border-color: rgba(79, 70, 229, .28);
}

.wa-check-row span { min-width: 0; overflow-wrap: anywhere; }
.wa-check-row input { flex: 0 0 auto; height: 18px; width: 18px; }

.wa-switch {
  align-items: center;
  cursor: pointer;
  display: inline-flex;
  flex: 0 0 auto;
}

.wa-switch input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.wa-switch-track {
  background: #d6dbe6;
  border: 1px solid rgba(99, 102, 241, .16);
  border-radius: 999px;
  height: 30px;
  padding: 3px;
  transition: background .2s ease, box-shadow .2s ease;
  width: 54px;
}

.wa-switch-thumb {
  background: #fff;
  border-radius: 50%;
  box-shadow: 0 3px 8px rgba(15, 23, 42, .24);
  display: block;
  height: 22px;
  transition: transform .2s ease;
  width: 22px;
}

.wa-switch input:focus-visible + .wa-switch-track { outline: 3px solid rgba(79, 70, 229, .22); outline-offset: 2px; }
.wa-switch input:checked + .wa-switch-track { background: #22c55e; box-shadow: 0 0 0 4px rgba(34, 197, 94, .12); }
.wa-switch input:checked + .wa-switch-track .wa-switch-thumb { transform: translateX(24px); }

.wa-template-grid { row-gap: 14px; }

.wa-template-box {
  background: rgba(248, 250, 252, .74);
  border: 1px solid rgba(79, 70, 229, .14);
  border-radius: 12px;
  padding: 14px;
}

.wa-template-box textarea {
  min-height: 142px;
  resize: vertical;
}

.wa-log-filters {
  background: var(--wa-surface-soft);
  border: 1px solid var(--wa-line);
  border-radius: 12px;
  margin-inline: 0 !important;
  padding: 12px;
}

.wa-log-filters > [class*="col-"] { min-width: 0; }

.wa-log-table-wrap {
  border: 1px solid var(--wa-line);
  border-radius: 12px;
  overflow-x: auto;
}

.wa-log-table {
  margin-bottom: 0;
  min-width: 840px;
}

.wa-log-table th {
  background: var(--wa-surface-soft);
  color: var(--wa-muted);
  font-size: .68rem;
  letter-spacing: .05em;
  padding: 11px 12px;
  text-transform: uppercase;
  white-space: nowrap;
}

.wa-log-table td {
  color: var(--wa-ink-soft);
  font-size: .78rem;
  padding: 11px 12px;
  vertical-align: middle;
}

.wa-log-table td > div { overflow-wrap: anywhere; }
.wa-log-table .badge { white-space: nowrap; }

.system-center--whatsapp .system-center-tabs { scroll-behavior: smooth; }

@media (max-width: 991.98px) {
  .wa-inline-header { align-items: flex-start; flex-direction: column; }
  .wa-inline-header__status { justify-content: flex-start; }
  .wa-panel-body { padding: 16px !important; }
  .wa-panel .card-footer { padding-inline: 16px; }
  .wa-panel .card-footer .btn { width: 100%; }
}

@media (max-width: 767.98px) {
  .wa-workspace { row-gap: 12px; }
  .wa-inline-header { border-radius: 14px; padding: 14px; }
  .wa-inline-header__main { align-items: flex-start; }
  .wa-inline-header__icon { height: 40px; width: 40px; }
  .wa-inline-header p { font-size: .74rem; }
  .wa-inline-header__status { width: 100%; }
  .wa-status-chip { font-size: .68rem; min-height: 28px; }
  .wa-summary-card { min-height: 76px; }
  .wa-summary-body { min-height: 74px; padding: 11px 12px !important; }
  .wa-summary-icon { height: 38px; width: 38px; }
  .wa-summary-icon .ri { font-size: 17px !important; }
  .wa-connection-icon { flex-basis: 42px; height: 42px !important; width: 42px !important; }
  .wa-connection-icon .ri { font-size: 19px !important; }
  .wa-summary-copy h4 { font-size: 1.04rem; }
  .wa-summary-copy small { font-size: .7rem; }
  .wa-section-tabs { border-radius: 12px; }
  .wa-section-tab { font-size: .76rem; min-height: 36px; padding-inline: 11px; }
  .wa-check-grid { grid-template-columns: 1fr; }
  .wa-log-table-wrap { border: 0; border-radius: 0; overflow: visible; }
  .wa-log-table { display: block; min-width: 0; }
  .wa-log-table thead { display: none; }
  .wa-log-table tbody { display: grid; gap: 10px; }
  .wa-log-table tbody tr {
    background: #fff;
    border: 1px solid var(--wa-line);
    border-radius: 12px;
    display: grid;
    gap: 8px;
    padding: 11px 12px;
  }
  .wa-log-table tbody tr:hover td { background: transparent; }
  .wa-log-table tbody td[data-label] {
    align-items: flex-start;
    border: 0;
    border-top: 1px dashed var(--wa-line);
    display: flex;
    gap: 10px;
    justify-content: space-between;
    min-width: 0;
    padding: 8px 0 0;
    text-align: right;
  }
  .wa-log-table tbody td[data-label]:first-child { border-top: 0; padding-top: 0; }
  .wa-log-table tbody td[data-label]::before {
    color: var(--wa-muted);
    content: attr(data-label);
    flex: 0 0 auto;
    font-size: .64rem;
    font-weight: 800;
    letter-spacing: .05em;
    text-align: left;
    text-transform: uppercase;
  }
  .wa-log-table tbody td[data-label] > * { max-width: 68%; text-align: right; }
  .wa-log-table tbody td[colspan] { border: 0; display: block; min-width: 0; padding: 12px; text-align: center; }
  .wa-log-table tbody tr:has(td[colspan]) { display: block; }
}

@media (max-width: 575.98px) {
  .system-center--whatsapp .system-center-tabs { padding-inline: 8px; }
  .system-center--whatsapp .system-center-tab { border-bottom: 0; border-radius: 9px; min-height: 42px; padding-inline: 12px; }
  .system-center--whatsapp .system-center-tab.is-active { background: #fff; border-bottom: 0; box-shadow: 0 3px 8px rgba(79, 70, 229, .08); }
  .wa-summary-body { gap: 9px !important; }
  .wa-summary-icon { border-radius: 10px !important; }
  .wa-panel-heading h5 { font-size: 1rem; }
  .wa-panel-heading p { font-size: .74rem; line-height: 1.45; }
  .wa-log-filters { padding: 10px; }
}

/* AI Assistant workspace: compact, responsive presentation only. */
.ai-workspace {
  --ai-ink: #17213b;
  --ai-muted: #64748b;
  --ai-line: rgba(15, 23, 42, .09);
  --ai-primary: #4f46e5;
  --ai-soft: #f8fafc;
  min-width: 0;
}

.ai-workspace > * { min-width: 0; }

.ai-workspace .card {
  border: 1px solid var(--ai-line) !important;
  border-radius: 16px;
  box-shadow: 0 8px 22px rgba(23, 34, 79, .07) !important;
  overflow: hidden;
}

.ai-hero {
  background: linear-gradient(135deg, #f6f7ff 0%, #fff 58%, #eefbf7 100%);
  border-left: 4px solid var(--ai-primary) !important;
}

.ai-hero-body { padding: clamp(18px, 3vw, 28px) !important; }

.ai-hero-layout {
  align-items: center;
  display: flex;
  gap: 18px;
  justify-content: space-between;
}

.ai-hero-main {
  align-items: center;
  display: flex;
  gap: 12px;
  min-width: 0;
}

.ai-hero-icon {
  flex: 0 0 auto;
  height: 48px;
  width: 48px;
}

.ai-hero-copy { min-width: 0; }

.ai-eyebrow {
  color: #64748b;
  display: block;
  font-size: .66rem;
  font-weight: 800;
  letter-spacing: .11em;
  margin-bottom: 3px;
}

.ai-hero-copy h3 {
  color: var(--ai-ink);
  font-size: clamp(1.25rem, 2.2vw, 1.7rem);
  font-weight: 750;
}

.ai-hero-copy p {
  font-size: .82rem;
  line-height: 1.45;
  max-width: 620px;
}

.ai-hero-status {
  align-items: center;
  display: flex;
  flex: 0 0 auto;
  flex-wrap: wrap;
  gap: 7px;
  justify-content: flex-end;
}

.ai-hero-status .badge {
  border: 1px solid rgba(79, 70, 229, .14);
  border-radius: 999px;
  font-size: .72rem !important;
  font-weight: 700;
  padding: .45rem .65rem;
  white-space: nowrap;
}

.ai-panel-header {
  background: transparent !important;
  padding: 17px 20px !important;
}

.ai-panel-header h5 {
  color: var(--ai-ink);
  font-weight: 750;
}

.ai-panel-header small {
  color: var(--ai-muted);
  line-height: 1.45;
}

.ai-panel-body { padding: 20px !important; }

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

.ai-provider-option {
  align-items: center;
  background: #fff;
  border: 1px solid var(--ai-line);
  border-radius: 12px;
  cursor: pointer;
  display: grid;
  gap: 12px;
  grid-template-columns: 44px minmax(0, 1fr) auto;
  min-height: 88px;
  padding: 13px;
  transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.ai-provider-option:hover {
  border-color: rgba(79, 70, 229, .32);
  box-shadow: 0 6px 16px rgba(79, 70, 229, .09);
  transform: translateY(-1px);
}

.ai-provider-option:has(input:checked) {
  background: #fafaff;
  border-color: rgba(79, 70, 229, .62);
  box-shadow: 0 0 0 3px rgba(79, 70, 229, .08);
}

.ai-provider-option input {
  opacity: 0;
  pointer-events: none;
  position: absolute;
}

.ai-provider-option:has(input:focus-visible) {
  outline: 3px solid rgba(79, 70, 229, .22);
  outline-offset: 2px;
}

.ai-provider-icon {
  align-items: center;
  border-radius: 12px;
  display: inline-flex;
  flex: 0 0 42px;
  font-size: 1.25rem;
  height: 42px;
  justify-content: center;
  width: 42px;
}

.ai-provider-name {
  color: var(--ai-ink);
  line-height: 1.25;
  overflow-wrap: anywhere;
}

.ai-provider-option small { line-height: 1.35; }

.ai-provider-state {
  border-radius: 999px;
  font-size: .7rem;
  font-weight: 700;
  justify-self: end;
  padding: .35rem .5rem;
  white-space: nowrap;
}

.ai-config-status {
  display: grid;
  gap: 8px;
  grid-template-columns: repeat(3, minmax(0, 1fr));
}

.ai-config-status > div {
  background: var(--ai-soft);
  border: 1px solid var(--ai-line);
  border-radius: 11px;
  min-width: 0;
  padding: 11px 12px;
}

.ai-config-status .value {
  color: var(--ai-ink);
  display: block;
  font-size: .78rem;
  font-weight: 700;
  margin-top: 3px;
  overflow-wrap: anywhere;
}

.ai-provider-notice {
  background: #eff6ff !important;
  border-color: rgba(14, 165, 233, .16) !important;
  border-radius: 11px;
  color: #475569;
}

.ai-action-row .btn { min-height: 42px; white-space: nowrap; }

.ai-prompt-input {
  height: 128px !important;
  min-height: 128px;
  resize: vertical;
}

.ai-workbench-result {
  background: var(--ai-soft) !important;
  border: 1px dashed rgba(79, 70, 229, .2) !important;
  border-radius: 12px !important;
  max-height: 360px;
  min-height: 178px;
  overflow: auto;
}

.ai-workbench-result .ri { color: var(--ai-primary); }
.ai-error-alert { border-radius: 12px; }

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

@media (max-width: 991.98px) {
  .ai-hero-layout {
    align-items: flex-start;
    flex-direction: column;
  }

  .ai-hero-status {
    justify-content: flex-start;
    width: 100%;
  }

  .ai-panel-body { padding: 16px !important; }
  .ai-panel-header { padding: 15px 16px !important; }
  .ai-action-row .btn { flex: 1 1 auto; }
}

@media (max-width: 767.98px) {
  .ai-workspace .card { border-radius: 14px; }
  .ai-hero-body { padding: 16px !important; }
  .ai-hero-main { align-items: flex-start; }
  .ai-hero-icon { height: 42px; width: 42px; }
  .ai-hero-copy p { font-size: .76rem; }
  .ai-hero-status { gap: 6px; }
  .ai-hero-status .badge { font-size: .68rem !important; padding: .4rem .55rem; }
  .ai-provider-grid { grid-template-columns: 1fr; }
  .ai-provider-option { min-height: 70px; padding: 11px; }
  .ai-config-status { grid-template-columns: 1fr; }
  .ai-action-row { flex-direction: column; }
  .ai-action-row .btn { width: 100%; }
  .ai-prompt-input { height: 144px !important; min-height: 144px; }
  .ai-workbench-result { min-height: 160px; }
}

@media (max-width: 575.98px) {
  .ai-provider-option { grid-template-columns: 40px minmax(0, 1fr) auto; gap: 10px; }
  .ai-provider-icon { height: 40px; width: 40px; }
  .ai-provider-state { font-size: .66rem; padding: .32rem .45rem; }
  .ai-provider-name { font-size: .82rem; }
}
.simolah-first-run {
    display: grid;
    grid-template-columns: minmax(220px, .8fr) minmax(0, 2fr);
    gap: 24px;
    margin: 0 0 24px;
    padding: 24px;
    background: linear-gradient(135deg, #f7f6ff, #fff);
    border: 1px solid #dddafe;
    border-radius: 18px;
}

.simolah-first-run-heading h2 {
    margin: 4px 0 8px;
    font-size: 1.25rem;
}

.simolah-first-run-heading p {
    margin: 0;
    color: #687086;
    font-size: .86rem;
}

.simolah-first-run-list {
    display: grid;
    grid-template-columns: repeat(2, minmax(0, 1fr));
    gap: 10px;
    margin: 0;
    padding: 0;
    list-style: none;
}

.simolah-first-run-list a {
    display: grid;
    grid-template-columns: 30px minmax(0, 1fr);
    gap: 0 10px;
    min-height: 72px;
    padding: 11px;
    color: inherit;
    background: #fff;
    border: 1px solid #e4e5ef;
    border-radius: 12px;
    text-decoration: none;
}

.simolah-first-run-list a > span {
    display: grid;
    grid-row: span 2;
    place-items: center;
    width: 28px;
    height: 28px;
    color: #fff;
    background: #5b55d9;
    border-radius: 9px;
    font-size: .75rem;
    font-weight: 800;
}

.simolah-first-run-list strong,
.simolah-first-run-list small {
    display: block;
}

.simolah-first-run-list strong {
    font-size: .83rem;
}

.simolah-first-run-list small {
    color: #71768a;
    font-size: .72rem;
}

.simolah-first-run-list a:hover,
.simolah-first-run-list a:focus-visible {
    border-color: #8c86eb;
    box-shadow: 0 6px 18px rgba(91, 85, 217, .10);
}

@media (max-width: 991.98px) {
    .simolah-first-run {
        grid-template-columns: 1fr;
    }
}

@media (max-width: 575.98px) {
    .simolah-first-run {
        padding: 18px;
    }

    .simolah-first-run-list {
        grid-template-columns: 1fr;
    }
}

/* Login modern visual layer shared by Petugas and Portal Siswa without changing their auth contracts. */
.simolah-auth-modern {
    background: #f7f9fc;
}

.simolah-auth-modern > .simolah-credit {
    display: none;
}

.simolah-login-page-modern {
    background: #fff;
    min-height: 100%;
}

.simolah-login-page-modern .simolah-login-main,
.simolah-login-page-modern .simolah-login-shell {
    min-height: 100%;
}

.simolah-login-page-modern .simolah-login-shell {
    align-items: stretch;
    background: #fff;
    display: grid;
    gap: 0;
    grid-template-columns: minmax(0, 1.12fr) minmax(400px, .88fr);
    margin: 0;
    max-width: none;
    padding: 0;
}

.simolah-login-page-modern .simolah-login-branding {
    background:
        linear-gradient(135deg, #22c55e 0%, #0ea5e9 48%, #2563eb 100%);
    color: #fff;
    display: flex;
    flex-direction: column;
    isolation: isolate;
    justify-content: space-between;
    min-height: 100%;
    overflow: hidden;
    padding: clamp(2rem, 5vw, 5rem);
}

.simolah-login-page-modern .simolah-login-branding::before {
    background: rgba(255, 255, 255, .2);
    height: 32rem;
    left: auto;
    right: -12rem;
    top: -15rem;
    width: 32rem;
    z-index: -1;
}

.simolah-login-page-modern .simolah-login-branding::after {
    background: rgba(52, 211, 153, .36);
    bottom: -12rem;
    height: 28rem;
    right: auto;
    left: -10rem;
    width: 28rem;
    z-index: -1;
}

.simolah-login-page-modern .simolah-login-visual,
.simolah-login-page-modern .simolah-login-visual-scrim {
    inset: 0;
    pointer-events: none;
    position: absolute;
}

.simolah-login-page-modern .simolah-login-visual {
    background:
        radial-gradient(circle at 14% 16%, rgba(255, 255, 255, .78), transparent 31%),
        radial-gradient(circle at 82% 78%, rgba(110, 231, 183, .82), transparent 40%),
        linear-gradient(125deg, #22c55e 2%, #0ea5e9 48%, #2563eb 98%);
    background-position: 0% 0%, 100% 100%, 0% 50%;
    background-size: 170% 170%, 180% 180%, 220% 220%;
    animation: simolah-login-modern-gradient 16s ease-in-out infinite;
    z-index: -3;
}

.simolah-login-page-modern .simolah-login-visual.has-slide {
    animation: none;
    background: #173b91;
}

.simolah-login-page-modern .simolah-login-visual img {
    display: block;
    height: 100%;
    object-fit: cover;
    opacity: .64;
    width: 100%;
}

.simolah-login-page-modern .simolah-login-visual-scrim {
    background:
        linear-gradient(180deg, rgba(3, 49, 65, .28), rgba(3, 65, 82, .14) 44%, rgba(6, 40, 79, .58)),
        linear-gradient(90deg, rgba(4, 84, 68, .34), rgba(30, 64, 175, .1));
    z-index: -2;
}

.simolah-login-page-modern .simolah-login-brandmark {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(255, 255, 255, .9);
    border: 1px solid rgba(255, 255, 255, .6);
    border-radius: 1rem;
    box-shadow: 0 14px 34px rgba(8, 27, 76, .2);
    display: flex;
    height: 88px;
    justify-content: flex-start;
    max-width: min(100%, 340px);
    overflow: hidden;
    padding: .7rem 1rem;
    width: 340px;
    z-index: 1;
}

.simolah-login-page-modern .simolah-login-brandmark img {
    display: block;
    height: 100%;
    max-height: 100%;
    max-width: 100%;
    object-fit: contain;
    object-position: left center;
    width: 100%;
}

.simolah-login-page-modern .simolah-login-branding-copy {
    margin-top: clamp(2rem, 8vh, 6rem);
    max-width: 680px;
    position: relative;
    z-index: 1;
}

.simolah-login-page-modern .simolah-login-branding-copy h1 {
    color: #105090;
    font-size: clamp(2.25rem, 4.3vw, 4.5rem);
    -webkit-text-stroke: 1.6px rgba(255, 255, 255, .88);
    paint-order: stroke fill;
    text-shadow:
        0 2px 0 rgba(255, 255, 255, .82),
        0 5px 16px rgba(4, 47, 65, .34),
        0 12px 32px rgba(8, 47, 73, .24);
}

.simolah-login-page-modern .simolah-login-branding-copy h1 span {
    color: #1070d0;
}

.simolah-login-page-modern .simolah-login-branding-copy h1 em {
    color: #50b050;
}

.simolah-login-page-modern .simolah-login-branding-copy p {
    color: rgba(255, 255, 255, .96);
    max-width: 610px;
    text-shadow: 0 2px 8px rgba(5, 46, 64, .54);
}

.simolah-login-page-modern .simolah-login-features {
    display: grid;
    gap: .85rem;
    grid-template-columns: repeat(3, minmax(0, 1fr));
    margin-top: clamp(1.5rem, 4vh, 3rem);
    max-width: none;
    position: relative;
    z-index: 1;
}

.simolah-login-page-modern .simolah-login-feature {
    align-items: flex-start;
    backdrop-filter: blur(12px);
    background: rgba(4, 58, 68, .24);
    border: 1px solid rgba(255, 255, 255, .38);
    border-radius: 1rem;
    color: #fff;
    display: grid;
    gap: .8rem;
    min-height: 132px;
    padding: 1rem;
    transition: background-color .2s ease, transform .2s ease;
}

.simolah-login-page-modern .simolah-login-feature:hover {
    background: rgba(4, 58, 68, .34);
    transform: translateY(-2px);
}

.simolah-login-page-modern .simolah-login-feature > span:last-child {
    gap: .25rem;
}

.simolah-login-page-modern .simolah-login-feature strong {
    color: #fff;
}

.simolah-login-page-modern .simolah-login-feature small {
    color: rgba(255, 255, 255, .9);
}

.simolah-login-page-modern .simolah-login-feature-icon {
    background: rgba(255, 255, 255, .16);
    color: #fff;
    flex-basis: 2.8rem;
    font-size: 1.3rem;
    height: 2.8rem;
    width: 2.8rem;
}

.simolah-login-page-modern .simolah-login-panel {
    align-items: center;
    background:
        radial-gradient(circle at 80% 12%, rgba(37, 99, 235, .08), transparent 24rem),
        #fff;
    display: flex;
    justify-content: center;
    min-height: 100%;
    padding: clamp(1.5rem, 5vw, 5rem);
    position: relative;
}

.simolah-login-page-modern .simolah-login-card {
    background: transparent;
    border: 0;
    box-shadow: none;
    max-width: 540px;
    width: 100%;
}

.simolah-login-page-modern .simolah-login-card .card-body {
    padding: 0;
}

.simolah-login-page-modern .simolah-login-heading {
    display: block;
}

.simolah-login-page-modern .simolah-login-heading h2 {
    color: #101828;
    font-size: clamp(1.8rem, 3vw, 2.8rem);
}

.simolah-login-page-modern .simolah-login-heading p {
    color: #667085;
}

.simolah-login-page-modern .simolah-login-heading .badge {
    display: none;
}

.simolah-login-page-modern .simolah-login-field .form-control {
    min-height: 58px;
}

.simolah-login-page-modern .simolah-demo-login {
    background: #f8faff;
    border: 1px solid #dbe5ff;
    border-radius: 1rem;
    margin-bottom: 1rem;
    padding: .9rem;
}

.simolah-login-page-modern .simolah-demo-login-head {
    align-items: flex-start;
    display: flex;
    justify-content: space-between;
    margin-bottom: .7rem;
}

.simolah-login-page-modern .simolah-demo-login-head span {
    align-items: center;
    color: #1d4ed8;
    display: inline-flex;
    font-size: .84rem;
    font-weight: 800;
    gap: .35rem;
}

.simolah-login-page-modern .simolah-demo-login-head small {
    color: #667085;
    font-size: .69rem;
    text-align: right;
}

.simolah-login-page-modern .simolah-demo-login-grid {
    display: grid;
    gap: .5rem;
    grid-template-columns: repeat(2, minmax(0, 1fr));
}

.simolah-login-page-modern .simolah-demo-login-button {
    align-items: center;
    background: #fff;
    border: 1px solid #d0d5dd;
    border-radius: .72rem;
    color: #344054;
    display: flex;
    font-size: .75rem;
    font-weight: 700;
    gap: .45rem;
    min-height: 42px;
    padding: .55rem .7rem;
    text-align: left;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.simolah-login-page-modern .simolah-demo-login-button i {
    color: #2563eb;
    font-size: 1rem;
}

.simolah-login-page-modern .simolah-demo-login-button:hover,
.simolah-login-page-modern .simolah-demo-login-button:focus-visible,
.simolah-login-page-modern .simolah-demo-login-button.is-selected {
    border-color: #2563eb;
    box-shadow: 0 0 0 3px rgba(37, 99, 235, .12);
    color: #1d4ed8;
    outline: 0;
}

.simolah-login-page-modern .simolah-demo-login-button:active {
    transform: translateY(1px);
}

.simolah-login-page-modern .simolah-demo-login-button.is-success i {
    color: #039855;
}

.simolah-login-page-modern .simolah-demo-login-button.is-warning i {
    color: #dc6803;
}

.simolah-login-page-modern .simolah-demo-login-button.is-danger i {
    color: #d92d20;
}

.simolah-login-page-modern .simolah-demo-login-button.is-purple i {
    color: #7f56d9;
}

.simolah-login-page-modern .simolah-demo-login-status {
    color: #667085;
    font-size: .68rem;
    line-height: 1.45;
    margin: .65rem 0 0;
}

.simolah-login-page-modern .simolah-auth-button {
    background: linear-gradient(135deg, #2563eb, #1d4ed8);
    border: 0;
    border-radius: .85rem;
    box-shadow: 0 12px 28px rgba(37, 99, 235, .22);
    min-height: 56px;
}

.simolah-login-page-modern .simolah-auth-button-outline {
    background: #fff;
    border: 1px solid #cbd5e1;
    box-shadow: none;
    color: #1d4ed8;
}

.simolah-login-page-modern .simolah-login-help {
    position: absolute;
    right: clamp(1rem, 3vw, 3rem);
    top: clamp(1rem, 3vw, 3rem);
    z-index: 2;
}

.simolah-login-page-modern .simolah-login-help summary {
    align-items: center;
    background: #fff;
    border: 1px solid #dbe5ff;
    border-radius: 999px;
    box-shadow: 0 10px 28px rgba(37, 99, 235, .1);
    color: #2563eb;
    cursor: pointer;
    display: inline-flex;
    font-size: .82rem;
    font-weight: 700;
    gap: .4rem;
    list-style: none;
    padding: .7rem 1rem;
}

.simolah-login-page-modern .simolah-login-help summary::-webkit-details-marker {
    display: none;
}

.simolah-login-page-modern .simolah-login-help summary:focus-visible {
    outline: 3px solid rgba(37, 99, 235, .26);
    outline-offset: 3px;
}

.simolah-login-page-modern .simolah-login-help p {
    background: #fff;
    border: 1px solid #e4e7ec;
    border-radius: .75rem;
    box-shadow: 0 12px 30px rgba(16, 24, 40, .12);
    color: #667085;
    font-size: .75rem;
    line-height: 1.5;
    margin: .5rem 0 0;
    padding: .75rem;
    width: 220px;
}

.simolah-login-page-modern .simolah-login-field label {
    left: 2.45rem;
    max-width: calc(100% - 3.25rem);
    overflow: hidden;
    right: auto;
    text-overflow: ellipsis;
    white-space: nowrap;
}

.simolah-login-page-modern .simolah-login-panel::after {
    bottom: 1.25rem;
    color: #98a2b3;
    content: 'SIMOLAH · Sistem Manajemen Sekolah';
    font-size: .72rem;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    white-space: nowrap;
}

@keyframes simolah-login-modern-gradient {
    0%, 100% { background-position: 0% 0%, 100% 100%, 0% 48%; }
    50% { background-position: 72% 30%, 30% 62%, 100% 54%; }
}

@media (max-width: 1199.98px) and (min-width: 992px) {
    .simolah-login-page-modern .simolah-login-shell {
        grid-template-columns: minmax(0, 1fr) minmax(390px, .85fr);
    }

    .simolah-login-page-modern .simolah-login-branding {
        padding: 2.5rem;
    }

    .simolah-login-page-modern .simolah-login-features {
        gap: .6rem;
    }

    .simolah-login-page-modern .simolah-login-feature {
        padding: .8rem;
    }
}

@media (max-width: 991.98px) {
    .simolah-login-page-modern .simolah-login-shell {
        display: block;
        min-height: 100%;
    }

    .simolah-login-page-modern .simolah-login-branding {
        min-height: 240px;
        padding: 2rem;
    }

    .simolah-login-page-modern .simolah-login-branding-copy {
        margin: 1.5rem 0 0;
    }

    .simolah-login-page-modern .simolah-login-branding-copy h1 {
        font-size: clamp(2rem, 5vw, 3rem);
    }

    .simolah-login-page-modern .simolah-login-features {
        display: none;
    }

    .simolah-login-page-modern .simolah-login-panel {
        min-height: 0;
        padding: 3rem 2rem 4rem;
    }

    .simolah-login-page-modern .simolah-login-help {
        top: 1rem;
    }

    .simolah-login-page-modern .simolah-login-panel::after {
        bottom: 1rem;
    }
}

@media (max-width: 575.98px) {
    .simolah-login-page-modern .simolah-login-branding {
        min-height: 150px;
        padding: 1.25rem;
    }

    .simolah-login-page-modern .simolah-login-brandmark {
        border-radius: .75rem;
        height: 60px;
        max-width: 190px;
        padding: .45rem .65rem;
        width: 190px;
    }

    .simolah-login-page-modern .simolah-login-brandmark img {
        max-height: 100%;
    }

    .simolah-login-page-modern .simolah-login-branding-copy {
        display: none;
    }

    .simolah-login-page-modern .simolah-login-panel {
        padding: 3.25rem 1.25rem 3.5rem;
    }

    .simolah-login-page-modern .simolah-login-card .card-body {
        padding: 0;
    }

    .simolah-login-page-modern .simolah-login-help {
        right: 1.25rem;
        top: .75rem;
    }

    .simolah-login-page-modern .simolah-login-help summary {
        font-size: .75rem;
        padding: .58rem .78rem;
    }

    .simolah-login-page-modern .simolah-login-help p {
        position: absolute;
        right: 0;
        top: calc(100% + .5rem);
        width: min(220px, calc(100vw - 2.5rem));
    }

    .simolah-login-page-modern .simolah-login-panel::after {
        font-size: .66rem;
    }

    .simolah-login-page-modern .simolah-demo-login-grid {
        grid-template-columns: 1fr;
    }

    .simolah-login-page-modern .simolah-demo-login-head {
        display: block;
    }

    .simolah-login-page-modern .simolah-demo-login-head small {
        display: block;
        margin-top: .2rem;
        text-align: left;
    }
}

@media (prefers-reduced-motion: reduce) {
    .simolah-login-page-modern .simolah-login-visual {
        animation: none;
    }

    .simolah-login-page-modern .simolah-login-feature {
        transition: none;
    }
}

/* Full-demo root gateway. It is rendered only when the staged demo marker is active. */
.simolah-auth-demo {
    background: #071b38;
}

.simolah-demo-landing {
    align-items: center;
    background:
        radial-gradient(circle at 18% 18%, rgba(52, 211, 153, .32), transparent 28rem),
        radial-gradient(circle at 84% 22%, rgba(56, 189, 248, .28), transparent 30rem),
        linear-gradient(135deg, #0a3d62 0%, #075985 42%, #1d4ed8 100%);
    display: grid;
    flex: 1 1 auto;
    isolation: isolate;
    justify-items: center;
    min-height: 100dvh;
    overflow: hidden;
    padding: clamp(1.25rem, 4vw, 3rem);
    position: relative;
    width: 100%;
}

.simolah-demo-landing::before {
    background-image:
        linear-gradient(rgba(255, 255, 255, .055) 1px, transparent 1px),
        linear-gradient(90deg, rgba(255, 255, 255, .055) 1px, transparent 1px);
    background-size: 44px 44px;
    content: '';
    inset: 0;
    mask-image: linear-gradient(to bottom, rgba(0, 0, 0, .8), transparent 88%);
    pointer-events: none;
    position: absolute;
    z-index: -3;
}

.simolah-demo-landing__scene {
    inset: 0;
    overflow: hidden;
    pointer-events: none;
    position: absolute;
    z-index: -2;
}

.simolah-demo-landing__orb {
    border: 1px solid rgba(255, 255, 255, .26);
    border-radius: 50%;
    position: absolute;
}

.simolah-demo-landing__orb--one {
    background: rgba(45, 212, 191, .16);
    height: 25rem;
    left: -8rem;
    top: -7rem;
    width: 25rem;
}

.simolah-demo-landing__orb--two {
    background: rgba(96, 165, 250, .16);
    bottom: -10rem;
    height: 31rem;
    right: -9rem;
    width: 31rem;
}

.simolah-demo-landing__preview {
    bottom: clamp(1.25rem, 4vw, 3rem);
    display: flex;
    gap: .7rem;
    justify-content: center;
    left: 50%;
    position: absolute;
    transform: translateX(-50%);
    width: min(94vw, 860px);
}

.simolah-demo-landing__preview span {
    align-items: center;
    backdrop-filter: blur(14px);
    background: rgba(4, 47, 76, .25);
    border: 1px solid rgba(255, 255, 255, .25);
    border-radius: 999px;
    color: rgba(255, 255, 255, .9);
    display: inline-flex;
    font-size: .73rem;
    font-weight: 650;
    gap: .4rem;
    padding: .55rem .85rem;
}

.simolah-demo-gateway {
    backdrop-filter: blur(22px);
    background: rgba(255, 255, 255, .97);
    border: 1px solid rgba(255, 255, 255, .72);
    border-radius: 1.5rem;
    box-shadow: 0 32px 90px rgba(3, 18, 43, .34);
    color: #172033;
    max-width: 640px;
    padding: clamp(1.5rem, 4vw, 2.5rem);
    position: relative;
    width: min(100%, 640px);
    z-index: 1;
}

.simolah-demo-gateway__brand {
    align-items: center;
    display: flex;
    gap: .75rem;
    margin-bottom: 1.4rem;
}

.simolah-demo-gateway__brand img {
    background: #f4f7ff;
    border: 1px solid #e4eaf7;
    border-radius: .9rem;
    height: 52px;
    object-fit: contain;
    padding: .35rem;
    width: 52px;
}

.simolah-demo-gateway__brand div {
    display: grid;
    gap: .1rem;
}

.simolah-demo-gateway__brand strong {
    color: #182230;
    font-size: 1.05rem;
    letter-spacing: .02em;
}

.simolah-demo-gateway__brand span {
    color: #2563eb;
    font-size: .72rem;
    font-weight: 800;
    text-transform: uppercase;
}

.simolah-demo-gateway__eyebrow {
    align-items: center;
    background: #eef4ff;
    border-radius: 999px;
    color: #2563eb;
    display: inline-flex;
    font-size: .75rem;
    font-weight: 800;
    gap: .35rem;
    margin-bottom: .8rem;
    padding: .4rem .7rem;
}

.simolah-demo-gateway h1 {
    color: #101828;
    font-size: clamp(1.75rem, 5vw, 2.45rem);
    letter-spacing: -.035em;
    line-height: 1.12;
    margin: 0 0 .8rem;
}

.simolah-demo-gateway > p {
    color: #667085;
    line-height: 1.6;
    margin-bottom: 1.4rem;
}

.simolah-demo-gateway__choices {
    display: grid;
    gap: .8rem;
}

.simolah-demo-gateway__choice {
    align-items: center;
    background: #fff;
    border: 1px solid #dfe6f1;
    border-radius: 1rem;
    color: #344054;
    display: grid;
    gap: .85rem;
    grid-template-columns: auto minmax(0, 1fr) auto;
    min-height: 88px;
    padding: .95rem 1rem;
    transition: border-color .18s ease, box-shadow .18s ease, transform .18s ease;
}

.simolah-demo-gateway__choice:hover,
.simolah-demo-gateway__choice:focus-visible {
    border-color: #60a5fa;
    box-shadow: 0 12px 30px rgba(37, 99, 235, .13);
    color: #1d4ed8;
    outline: 0;
    transform: translateY(-2px);
}

.simolah-demo-gateway__choice--student:hover,
.simolah-demo-gateway__choice--student:focus-visible {
    border-color: #34d399;
    box-shadow: 0 12px 30px rgba(5, 150, 105, .12);
    color: #047857;
}

.simolah-demo-gateway__choice-icon {
    align-items: center;
    background: #eef4ff;
    border-radius: .85rem;
    color: #2563eb;
    display: flex;
    font-size: 1.45rem;
    height: 52px;
    justify-content: center;
    width: 52px;
}

.simolah-demo-gateway__choice--student .simolah-demo-gateway__choice-icon {
    background: #ecfdf3;
    color: #039855;
}

.simolah-demo-gateway__choice-copy {
    display: grid;
    gap: .2rem;
    min-width: 0;
}

.simolah-demo-gateway__choice-copy strong {
    color: currentColor;
    font-size: .94rem;
}

.simolah-demo-gateway__choice-copy small {
    color: #667085;
    line-height: 1.4;
}

.simolah-demo-gateway__arrow {
    color: #98a2b3;
    font-size: 1.2rem;
}

.simolah-demo-gateway__note {
    align-items: center;
    color: #667085;
    display: flex;
    font-size: .72rem;
    gap: .4rem;
    justify-content: center;
    margin: 1.25rem 0 0 !important;
    text-align: center;
}

@media (max-width: 575.98px) {
    .simolah-demo-landing {
        align-items: center;
        padding: 1rem;
    }

    .simolah-demo-landing__preview {
        display: none;
    }

    .simolah-demo-gateway {
        border-radius: 1.2rem;
        padding: 1.3rem;
    }

    .simolah-demo-gateway__brand {
        margin-bottom: 1rem;
    }

    .simolah-demo-gateway__choice {
        gap: .65rem;
        min-height: 80px;
        padding: .8rem;
    }

    .simolah-demo-gateway__choice-icon {
        height: 46px;
        width: 46px;
    }
}

@media (prefers-reduced-motion: reduce) {
    .simolah-demo-gateway__choice {
        transition: none;
    }
}

/* Portal Orang Tua/Wali reuses the student portal component system. */
.student-portal .parent-portal-children {
    display: grid;
    gap: 1rem;
}

.student-portal .parent-portal-child-card {
    display: grid;
    gap: 1rem;
}

.student-portal .parent-portal-child-head,
.student-portal .parent-portal-child-identity {
    align-items: center;
    display: flex;
    gap: .8rem;
}

.student-portal .parent-portal-child-head {
    justify-content: space-between;
}

.student-portal .parent-portal-child-actions {
    display: flex;
    flex: 0 0 auto;
    flex-wrap: wrap;
    gap: .5rem;
    justify-content: flex-end;
}

.student-portal .parent-portal-child-actions .btn {
    align-items: center;
    display: inline-flex;
    justify-content: center;
    min-height: 44px;
}

.student-portal .parent-portal-child-identity {
    min-width: 0;
}

.student-portal .parent-portal-child-identity > img,
.student-portal .parent-portal-child-identity > span {
    align-items: center;
    background: var(--portal-primary-soft);
    border-radius: .75rem;
    color: var(--portal-primary);
    display: flex;
    flex: 0 0 auto;
    font-size: 1.5rem;
    height: 72px;
    justify-content: center;
    object-fit: cover;
    width: 56px;
}

.student-portal .parent-portal-child-identity h2,
.student-portal .parent-portal-child-grid h3,
.student-portal .parent-portal-attendance-history h3 {
    color: var(--portal-text);
    font-size: .92rem;
    margin: 0;
}

.student-portal .parent-portal-child-identity small {
    color: var(--portal-muted);
    display: block;
    font-size: .67rem;
    margin-top: .25rem;
}

.student-portal .parent-portal-points {
    margin: 0;
}

.student-portal .parent-portal-discipline-status {
    font-size: .82rem;
    line-height: 1.25;
    margin: .45rem 0 .3rem;
}

.student-portal .parent-portal-discipline-status.is-success {
    color: #067647;
}

.student-portal .parent-portal-discipline-status.is-warning {
    color: #b54708;
}

.student-portal .parent-portal-discipline-status.is-danger {
    color: #b42318;
}

.student-portal .parent-portal-child-grid {
    display: grid;
    gap: 1rem;
    grid-template-columns: minmax(0, 1.2fr) minmax(320px, .8fr);
}

.student-portal .parent-portal-child-grid > section,
.student-portal .parent-portal-attendance-history {
    border-top: 1px solid var(--portal-border);
    min-width: 0;
    padding-top: 1rem;
}

.student-portal .student-portal-discipline-list.is-compact article {
    grid-template-columns: 105px minmax(0, 1fr) 44px;
    min-height: 68px;
    padding: .65rem .7rem;
}

.student-portal .student-portal-discipline-list.is-compact h4 {
    color: var(--portal-text);
    font-size: .72rem;
    margin: 0 0 .15rem;
}

.student-portal .parent-portal-attendance-summary {
    grid-template-columns: repeat(3, minmax(0, 1fr));
}

.student-portal .parent-portal-attendance-summary > div {
    min-height: 76px;
    padding: .6rem .35rem;
}

.student-portal .parent-portal-attendance-summary i {
    display: block;
    font-size: 1.05rem;
    margin-bottom: .2rem;
}

@media (max-width: 799.98px) {
    .student-portal .parent-portal-child-head {
        align-items: stretch;
        flex-direction: column;
    }

    .student-portal .parent-portal-child-actions {
        display: grid;
        grid-template-columns: repeat(2, minmax(0, 1fr));
        width: 100%;
    }

    .student-portal .parent-portal-child-grid {
        grid-template-columns: minmax(0, 1fr);
    }

    .student-portal .student-portal-discipline-list.is-compact article {
        align-items: flex-start;
        grid-template-columns: minmax(0, 1fr) 44px;
    }

    .student-portal .student-portal-discipline-list.is-compact .student-portal-discipline-row-head {
        align-items: center;
        flex-direction: row;
        grid-column: 1 / -1;
        justify-content: space-between;
    }
}

@media (max-width: 479.98px) {
    .student-portal .parent-portal-child-actions {
        grid-template-columns: minmax(0, 1fr);
    }

    .student-portal .parent-portal-child-identity {
        align-items: flex-start;
    }

    .student-portal .parent-portal-child-identity small {
        overflow-wrap: anywhere;
    }

    .student-portal .parent-portal-attendance-summary {
        grid-template-columns: repeat(2, minmax(0, 1fr));
    }
}
