:root {
  --sdn-ink: #183f42;
  --sdn-accent: #087b64;
  --sdn-accent-deep: #16494a;
  --sdn-muted: #465963;
  --sdn-paper: #f6f9fc;
  --sdn-surface: #ffffff;
  --sdn-green: #dae7c7;
  --sdn-yellow: #f0d96c;
  --sdn-blue: #dcecf1;
  --sdn-line: #dce3d9;
  --sdn-shadow: 0 18px 44px rgba(24, 63, 66, .09);
  --sdn-ease: cubic-bezier(.2, .8, .2, 1);
}

/* Keep the configured school caption readable below the brand name. */
body.sdn4-public-theme .site-header .brand > span > small{font-size:14px!important;font-weight:600;line-height:1.5;letter-spacing:.06em;margin-top:6px;color:var(--sdn-ink);white-space:normal}
@media(max-width:767.98px){body.sdn4-public-theme .site-header .brand > span > small{font-size:13px!important;letter-spacing:.04em;margin-top:4px}}

/* Shared visual language, adapted to the school palette and existing page layouts. */
body.sdn4-public-theme,
body.sdn4-login-theme,
body.sdn4-admin-theme,
body.school-cbt-layout {
  color: var(--sdn-ink);
  font-family: "Plus Jakarta Sans", sans-serif;
}

body.sdn4-public-theme {
  background: radial-gradient(ellipse at 96% 4%, rgba(218, 231, 199, .42), transparent 36rem), var(--sdn-paper);
}

body.sdn4-public-theme .site-header {
  border-bottom-color: var(--sdn-line);
  background: rgba(255, 254, 250, .94);
  box-shadow: 0 5px 20px rgba(24, 63, 66, .035);
}

body.sdn4-public-theme :is(.button, .hero-slide-navigation button, .staff-controls button) {
  transition: color .22s var(--sdn-ease), background-color .22s var(--sdn-ease), border-color .22s var(--sdn-ease), transform .22s var(--sdn-ease), box-shadow .22s var(--sdn-ease);
}

body.sdn4-public-theme :is(.button, .hero-slide-navigation button:hover, .staff-controls button:hover) {
  border-color: var(--sdn-accent);
}

body.sdn4-public-theme :is(.service-card, .portal-card, .contact-card, .info-feature, .about-poster) {
  transition: transform .34s var(--sdn-ease), box-shadow .34s var(--sdn-ease), border-color .34s var(--sdn-ease);
}

body.sdn4-public-theme :is(.service-card, .portal-card):hover {
  transform: translateY(-4px);
  box-shadow: var(--sdn-shadow);
}

body.sdn4-public-theme .hero-slide.is-active .hero-slide-copy {
  animation: sdn-rise-in .62s var(--sdn-ease) both;
}

body.sdn4-public-theme :is(a, button, summary, input, select, textarea):focus-visible {
  outline: 3px solid rgba(240, 217, 108, .92);
  outline-offset: 3px;
}

body.sdn4-public-theme .rich-content {
  color: var(--sdn-ink);
  line-height: 1.85;
  overflow-wrap: anywhere;
}

body.sdn4-public-theme .rich-content :is(h2, h3, h4) {
  margin: 1.35em 0 .5em;
  color: var(--sdn-ink);
  line-height: 1.3;
}

body.sdn4-public-theme .rich-content p { margin: 0 0 1em; }
body.sdn4-public-theme .rich-content :is(ul, ol) { padding-left: 1.5em; margin: .6em 0 1.2em; }
body.sdn4-public-theme .rich-content blockquote {
  margin: 1.1em 0;
  padding: .8em 1.1em;
  border-left: 4px solid var(--sdn-yellow);
  border-radius: 0 12px 12px 0;
  background: rgba(218, 231, 199, .35);
}
body.sdn4-public-theme .rich-content a { color: var(--sdn-accent-deep); text-decoration-thickness: 1px; text-underline-offset: 3px; }

body.sdn4-login-theme {
  min-height: 100vh;
  background: radial-gradient(ellipse at 12% 8%, rgba(240, 217, 108, .34), transparent 29rem), radial-gradient(ellipse at 92% 92%, rgba(218, 231, 199, .74), transparent 35rem), var(--sdn-paper);
}

body.sdn4-login-theme .login-card {
  border: 1px solid rgba(255, 255, 255, .9);
  box-shadow: 0 26px 70px rgba(24, 63, 66, .17);
  animation: sdn-rise-in .58s var(--sdn-ease) both;
}

body.sdn4-login-theme .login-header {
  background: linear-gradient(135deg, #143b3d, #087b64 72%, #54866c);
}

body.sdn4-login-theme .login-header::before,
body.sdn4-login-theme .login-header::after { background: rgba(218, 231, 199, .14); }

body.sdn4-login-theme .btn-login {
  background: var(--sdn-accent);
  box-shadow: 0 8px 18px rgba(36, 107, 96, .2);
  transition: transform .2s var(--sdn-ease), background-color .2s ease, box-shadow .2s ease;
}

body.sdn4-login-theme .btn-login:hover { background: var(--sdn-accent-deep); transform: translateY(-1px); }
body.sdn4-login-theme .input-icon :is(input, select):focus { border-color: var(--sdn-accent); box-shadow: 0 0 0 3px rgba(36, 107, 96, .13); }
body.sdn4-login-theme .portal-link { color: var(--sdn-accent-deep); background: #f1f6eb; border-color: var(--sdn-line); }

body.sdn4-admin-theme { background: var(--sdn-paper); }
body.sdn4-admin-theme .content-wrapper { background: radial-gradient(ellipse at 96% 0, rgba(218, 231, 199, .44), transparent 42rem), var(--sdn-paper); }
body.sdn4-admin-theme .content-header h1 { animation: sdn-rise-in .42s var(--sdn-ease) both; }
body.sdn4-admin-theme .main-header { border-bottom: 1px solid var(--sdn-line); box-shadow: 0 4px 18px rgba(24, 63, 66, .045); }
body.sdn4-admin-theme .main-sidebar { background: linear-gradient(165deg, #173d3f, #102e31) !important; box-shadow: 5px 0 24px rgba(14, 44, 47, .13); }
body.sdn4-admin-theme .main-sidebar .brand-link { border-bottom-color: rgba(255, 255, 255, .12); }
body.sdn4-admin-theme .main-sidebar .nav-sidebar > .nav-item > .nav-link { transition: background-color .22s ease, color .22s ease, transform .22s var(--sdn-ease); }
body.sdn4-admin-theme .main-sidebar .nav-sidebar > .nav-item > .nav-link:hover { transform: translateX(2px); }
body.sdn4-admin-theme .main-sidebar .nav-sidebar > .nav-item > .nav-link.active { background: linear-gradient(105deg, #087b64, #087663); box-shadow: 0 6px 16px rgba(8, 20, 18, .18); }
body.sdn4-admin-theme :is(.card, .info-box, .small-box) { border-color: var(--sdn-line); border-radius: 14px; box-shadow: 0 8px 26px rgba(24, 63, 66, .055); }
body.sdn4-admin-theme .card-header { border-bottom-color: var(--sdn-line); }
body.sdn4-admin-theme :is(.btn-primary, .btn-info) { background-color: var(--sdn-accent); border-color: var(--sdn-accent); }
body.sdn4-admin-theme :is(.btn-primary, .btn-info):hover { background-color: var(--sdn-accent-deep); border-color: var(--sdn-accent-deep); }
body.sdn4-admin-theme :is(.form-control, .custom-select):focus { border-color: var(--sdn-accent); box-shadow: 0 0 0 3px rgba(36, 107, 96, .12); }
body.sdn4-admin-theme .website-editor .website-tabs .nav-link.active { background: var(--sdn-accent); box-shadow: 0 5px 14px rgba(36, 107, 96, .18); }
body.sdn4-admin-theme .cms-news-count { margin-top: .35rem; font-size: .82rem; }
body.sdn4-admin-theme .note-editor.note-frame { border-color: var(--sdn-line); border-radius: 10px; overflow: hidden; }
body.sdn4-admin-theme .note-editor .note-toolbar { background: #f3f6ee; border-color: var(--sdn-line); }
body.sdn4-admin-theme .note-editor .note-editable { color: var(--sdn-ink); line-height: 1.75; }
body.sdn4-admin-theme .note-editor .note-statusbar { background: #f8f8f3; border-color: var(--sdn-line); }

body.school-cbt-layout { background: var(--sdn-paper); }
body.school-cbt-layout .content-wrapper { background: radial-gradient(ellipse at 96% 0, rgba(218, 231, 199, .4), transparent 40rem), var(--sdn-paper); }
body.school-cbt-layout .main-header { background: var(--sdn-surface); border-bottom: 1px solid var(--sdn-line); box-shadow: 0 4px 18px rgba(24, 63, 66, .04); }
body.school-cbt-layout .main-sidebar { background: linear-gradient(165deg, #173d3f, #102e31); }
body.school-cbt-layout .main-sidebar .nav-sidebar > .nav-item > .nav-link.active { background: linear-gradient(105deg, #087b64, #087663); }
body.school-cbt-layout .card { border-color: var(--sdn-line); border-radius: 14px; box-shadow: 0 8px 25px rgba(24, 63, 66, .055); }
body.school-cbt-layout .btn-primary { background-color: var(--sdn-accent); border-color: var(--sdn-accent); }
body.school-cbt-layout .btn-primary:hover { background-color: var(--sdn-accent-deep); border-color: var(--sdn-accent-deep); }
body.school-cbt-layout :is(.form-control, .custom-select):focus { border-color: var(--sdn-accent); box-shadow: 0 0 0 3px rgba(36, 107, 96, .12); }
body.school-cbt-layout.participant-portal { background: radial-gradient(ellipse at 90% 0, rgba(218, 231, 199, .7), transparent 36rem), var(--sdn-paper); }
body.school-cbt-layout .school-participant-heading { border-color: var(--sdn-line); }
body.school-cbt-layout .content-header h1,
body.school-cbt-layout .school-participant-heading { animation: sdn-rise-in .42s var(--sdn-ease) both; }
body.school-cbt-layout .school-participant-heading .eyebrow { color: var(--sdn-accent); }
body.school-cbt-layout .school-participant-nav { border-bottom: 1px solid var(--sdn-line); box-shadow: 0 4px 18px rgba(24, 63, 66, .045); }

@keyframes sdn-rise-in {
  from { opacity: 0; transform: translateY(9px); }
  to { opacity: 1; transform: translateY(0); }
}

@media (max-width: 767.98px) {
  body.sdn4-public-theme .hero-slide.is-active .hero-slide-copy,
  body.sdn4-login-theme .login-card { animation-duration: .4s; }
  body.sdn4-admin-theme :is(.card, .info-box, .small-box),
  body.school-cbt-layout .card { border-radius: 11px; }
}

@media (prefers-reduced-motion: reduce) {
  body.sdn4-public-theme *, body.sdn4-public-theme *::before, body.sdn4-public-theme *::after,
  body.sdn4-login-theme *, body.sdn4-login-theme *::before, body.sdn4-login-theme *::after,
  body.sdn4-admin-theme *, body.sdn4-admin-theme *::before, body.sdn4-admin-theme *::after,
  body.school-cbt-layout *, body.school-cbt-layout *::before, body.school-cbt-layout *::after {
    animation-duration: .01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: .01ms !important;
  }
}

/* The selected school theme is published with the homepage revision and
   applies consistently to public pages, login, administration, and CBT. */
body[data-school-theme="langkah-ceria"],
[data-school-theme="langkah-ceria"] {
  --sdn-ink:#103d39;--sdn-accent:#087469;--sdn-accent-deep:#10594f;--sdn-muted:#3a625c;
  --sdn-paper:#d9f3ec;--sdn-surface:#eefbf6;--sdn-green:#c3ecdb;--sdn-yellow:#ffb0a0;--sdn-blue:#d5f5f4;--sdn-line:#a5d6c7;
  --sdn-shadow:0 18px 44px rgba(24,63,66,.09);--sdn-glow-one:#c3ecdb70;--sdn-glow-two:#ffb0a040;
  --sdn-header-bg:#eefbf6;--sdn-sidebar-start:#137e70;--sdn-sidebar-end:#10423d;
  --sdn-accent-gradient:linear-gradient(105deg,#10594f,#087469);--sdn-focus-color:#087469;
  --sdn-card-radius:22px;--sdn-control-radius:12px;--sdn-soft-shadow:0 18px 44px rgba(24,63,66,.09);
}
body[data-school-theme="biru-cendekia"],
[data-school-theme="biru-cendekia"] {
  --sdn-ink:#142b4c;--sdn-accent:#254e91;--sdn-accent-deep:#142b4c;--sdn-muted:#445772;
  --sdn-paper:#e5ecf8;--sdn-surface:#f2f6fd;--sdn-green:#ccdbf4;--sdn-yellow:#e1b45d;--sdn-blue:#d4e0ed;--sdn-line:#bbcbe5;
  --sdn-shadow:0 18px 44px rgba(30,53,83,.09);--sdn-glow-one:#ccdbf470;--sdn-glow-two:#e1b45d40;
  --sdn-header-bg:#f2f6fd;--sdn-sidebar-start:#254e91;--sdn-sidebar-end:#142b4c;
  --sdn-accent-gradient:linear-gradient(105deg,#142b4c,#254e91);--sdn-focus-color:#254e91;
  --sdn-card-radius:26px;--sdn-control-radius:16px;--sdn-soft-shadow:0 18px 44px rgba(30,53,83,.09);
}
body[data-school-theme="taman-belajar"],
[data-school-theme="taman-belajar"] {
  --sdn-ink:#283a20;--sdn-accent:#4b651e;--sdn-accent-deep:#314918;--sdn-muted:#4c613b;
  --sdn-paper:#edf3da;--sdn-surface:#f8fbe8;--sdn-green:#d9e9a7;--sdn-yellow:#bbd76b;--sdn-blue:#e3edd6;--sdn-line:#bfcf9b;
  --sdn-shadow:0 20px 48px rgba(40,72,59,.1);--sdn-glow-one:#d9e9a770;--sdn-glow-two:#bbd76b40;
  --sdn-header-bg:#f8fbe8;--sdn-sidebar-start:#547426;--sdn-sidebar-end:#293e1b;
  --sdn-accent-gradient:linear-gradient(105deg,#314918,#4b651e);--sdn-focus-color:#4b651e;
  --sdn-card-radius:30px;--sdn-control-radius:15px;--sdn-soft-shadow:0 20px 48px rgba(40,72,59,.1);
}
body[data-school-theme="warna-nusantara"],
[data-school-theme="warna-nusantara"] {
  --sdn-ink:#4c172c;--sdn-accent:#88244e;--sdn-accent-deep:#681d3d;--sdn-muted:#714459;
  --sdn-paper:#f4e0e8;--sdn-surface:#fdf3f7;--sdn-green:#ecc8d8;--sdn-yellow:#dfb065;--sdn-blue:#f4ddeb;--sdn-line:#d9aebf;
  --sdn-shadow:0 18px 42px rgba(67,42,78,.12);--sdn-glow-one:#ecc8d870;--sdn-glow-two:#dfb06540;
  --sdn-header-bg:#fdf3f7;--sdn-sidebar-start:#9a2857;--sdn-sidebar-end:#4b162c;
  --sdn-accent-gradient:linear-gradient(105deg,#681d3d,#88244e);--sdn-focus-color:#88244e;
  --sdn-card-radius:18px;--sdn-control-radius:999px;--sdn-soft-shadow:0 18px 42px rgba(67,42,78,.12);
}

body.sdn4-public-theme[data-school-theme] { background:radial-gradient(ellipse at 96% 4%,var(--sdn-glow-one),transparent 36rem),var(--sdn-paper); }
body.sdn4-login-theme[data-school-theme] { background:radial-gradient(ellipse at 12% 8%,var(--sdn-glow-two),transparent 29rem),radial-gradient(ellipse at 92% 92%,var(--sdn-glow-one),transparent 35rem),var(--sdn-paper); }
body.sdn4-admin-theme[data-school-theme] .content-wrapper,
body.school-cbt-layout[data-school-theme] .content-wrapper { background:radial-gradient(ellipse at 96% 0,var(--sdn-glow-one),transparent 42rem),var(--sdn-paper); }
body.school-cbt-layout.participant-portal[data-school-theme] { background:radial-gradient(ellipse at 90% 0,var(--sdn-glow-one),transparent 36rem),var(--sdn-paper); }
body[data-school-theme] .site-header { background:var(--sdn-header-bg); }
body.sdn4-login-theme[data-school-theme] .login-header { background:linear-gradient(135deg,var(--sdn-sidebar-start),var(--sdn-accent) 72%,var(--sdn-accent-deep)); }
body.sdn4-admin-theme[data-school-theme] .main-sidebar,
body.school-cbt-layout[data-school-theme] .main-sidebar { background:linear-gradient(165deg,var(--sdn-sidebar-start),var(--sdn-sidebar-end)) !important; }
body.sdn4-admin-theme[data-school-theme] .main-sidebar .nav-sidebar > .nav-item > .nav-link.active,
body.school-cbt-layout[data-school-theme] .main-sidebar .nav-sidebar > .nav-item > .nav-link.active { background:var(--sdn-accent-gradient); }
body.sdn4-admin-theme[data-school-theme] :is(.card,.info-box,.small-box),
body.school-cbt-layout[data-school-theme] .card { border-radius:var(--sdn-card-radius); box-shadow:var(--sdn-soft-shadow); }
body.sdn4-public-theme[data-school-theme] :is(.service-card,.portal-card,.contact-card,.info-feature,.about-poster) { border-radius:var(--sdn-card-radius); }
body.sdn4-public-theme[data-school-theme] :is(.button,.hero-slide-navigation button,.staff-controls button) { border-radius:var(--sdn-control-radius); }
body.sdn4-login-theme[data-school-theme] .btn-login,
body.sdn4-admin-theme[data-school-theme] :is(.btn-primary,.btn-info),
body.school-cbt-layout[data-school-theme] .btn-primary { border-radius:var(--sdn-control-radius); }
body[data-school-theme] :is(a,button,summary,input,select,textarea):focus-visible { outline-color:var(--sdn-focus-color); }

/* Each preset has its own surface rhythm as well as its palette. */
body.sdn4-public-theme[data-school-theme="taman-belajar"] .hero-slide-copy { border-radius:0 34px 34px 0; }
body.sdn4-public-theme[data-school-theme="taman-belajar"] :is(.service-card,.portal-card,.contact-card) { border-radius:28px 28px 8px 28px; }
body.sdn4-public-theme[data-school-theme="warna-nusantara"] .hero-slide.is-active .hero-slide-copy { animation:sdn-playful-in .58s var(--sdn-ease) both; }
body.sdn4-public-theme[data-school-theme="warna-nusantara"] .eyebrow { letter-spacing:.13em; }
body.sdn4-public-theme[data-school-theme="warna-nusantara"] .button { box-shadow:0 7px 0 var(--sdn-accent-deep); }
body.sdn4-public-theme[data-school-theme="warna-nusantara"] .button:active { transform:translateY(2px);box-shadow:0 4px 0 var(--sdn-accent-deep); }

.school-theme-options { display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:14px; }
.school-theme-option { display:block;position:relative;margin:0;cursor:pointer; }
.school-theme-option input { position:absolute;width:1px;height:1px;opacity:0; }
.school-theme-option-content { display:flex;min-height:150px;height:100%;flex-direction:column;gap:8px;padding:17px;border:2px solid var(--sdn-line);border-inline-start:5px solid var(--sdn-accent);border-radius:15px;background:color-mix(in srgb,var(--sdn-green) 58%,var(--sdn-surface));color:var(--sdn-ink);transition:border-color .2s ease,transform .2s var(--sdn-ease),box-shadow .2s ease; }
.school-theme-option:hover .school-theme-option-content { transform:translateY(-2px);box-shadow:var(--sdn-soft-shadow); }
.school-theme-option.is-selected .school-theme-option-content,.school-theme-option input:focus-visible + .school-theme-option-content { border-color:var(--sdn-accent);box-shadow:0 0 0 3px var(--sdn-line); }
.school-theme-swatches { display:flex;gap:6px;margin-bottom:3px; }
.school-theme-swatches span { width:24px;height:24px;border-radius:50%;border:1px solid rgba(0,0,0,.12); }
.school-theme-option-content strong { font-size:1rem; }
.school-theme-option-content small { color:var(--sdn-muted);line-height:1.45; }
.school-theme-check { display:none;align-items:center;gap:6px;color:var(--sdn-accent);font-size:.8rem;font-weight:700;margin-top:auto; }
.school-theme-option.is-selected .school-theme-check { display:flex; }
.school-theme-live-preview { max-width:900px; }
.school-theme-preview-label { display:flex;justify-content:space-between;gap:10px;align-items:center;margin-bottom:8px;color:#687b7a; }
.school-theme-preview { overflow:hidden;border:1px solid var(--sdn-line);border-radius:var(--sdn-card-radius);background:var(--sdn-paper);color:var(--sdn-ink);box-shadow:var(--sdn-soft-shadow);transition:all .25s var(--sdn-ease); }
.school-theme-preview-nav { display:flex;align-items:center;gap:10px;padding:12px 17px;background:var(--sdn-header-bg);border-bottom:1px solid var(--sdn-line);font-size:.8rem; }
.school-theme-preview-nav > span:nth-of-type(2) { margin-left:auto;color:var(--sdn-muted); }
.school-theme-preview-mark { display:grid;place-items:center;width:30px;height:30px;border-radius:10px;background:var(--sdn-accent);color:#fff;font-weight:800; }
.school-theme-preview-login,.school-theme-preview-button { display:inline-block;padding:7px 11px;border-radius:var(--sdn-control-radius);background:var(--sdn-accent);color:#fff;font-size:.75rem;font-weight:700; }
.school-theme-preview-hero { padding:24px 28px;background:radial-gradient(ellipse at 96% 4%,var(--sdn-glow-one),transparent 22rem),var(--sdn-paper); }
.school-theme-preview-eyebrow { color:var(--sdn-accent);font-size:.66rem;font-weight:800;letter-spacing:.12em; }
.school-theme-preview-hero h3 { margin:9px 0 5px;color:var(--sdn-ink);font-size:clamp(1.35rem,3vw,2rem);line-height:1.08; }
.school-theme-preview-hero p { margin:0 0 13px;color:var(--sdn-muted);font-size:.85rem; }
.school-theme-preview-cards { display:flex;gap:8px;margin-top:20px; }
.school-theme-preview-cards span { padding:10px 13px;border:1px solid var(--sdn-line);border-radius:var(--sdn-card-radius);background:var(--sdn-surface);font-size:.74rem; }
@keyframes sdn-playful-in { from { opacity:0;transform:translateY(10px) scale(.985); } to { opacity:1;transform:translateY(0) scale(1); } }

body.sdn4-public-theme[data-school-theme] .button { background:var(--sdn-accent);border-color:var(--sdn-accent);color:#fff; }
body.sdn4-public-theme[data-school-theme] .button:hover { background:var(--sdn-accent-deep);border-color:var(--sdn-accent-deep);color:#fff; }
body.sdn4-public-theme[data-school-theme] .text-link,
body.sdn4-public-theme[data-school-theme] .desktop-nav a:hover,
body.sdn4-public-theme[data-school-theme] .mobile-menu nav a:hover { color:var(--sdn-accent-deep); }
body.sdn4-public-theme[data-school-theme] .site-footer { border-top-color:var(--sdn-line); }
body.sdn4-login-theme[data-school-theme] .btn-login { background:var(--sdn-accent); }
body.sdn4-admin-theme[data-school-theme] .website-editor .website-tabs .nav-link.active { background:var(--sdn-accent); }
body.sdn4-admin-theme[data-school-theme] .note-editor .note-toolbar { background:var(--sdn-green); }

body.sdn4-public-theme[data-school-theme] .content-card { border-color:var(--sdn-line);border-radius:var(--sdn-card-radius);background:var(--sdn-surface); }
body.sdn4-public-theme[data-school-theme] .content-card a,
body.sdn4-public-theme[data-school-theme] .content-back { color:var(--sdn-accent-deep); }
body.sdn4-public-theme[data-school-theme] .faq-list summary > span { color:var(--sdn-accent); }
body.sdn4-public-theme[data-school-theme] .school-chat .chat-launcher,
body.sdn4-public-theme[data-school-theme] .school-chat .chat-header,
body.sdn4-public-theme[data-school-theme] .school-chat .chat-user { background:var(--sdn-accent-deep); }
body.sdn4-public-theme[data-school-theme] .school-chat .chat-header small { color:var(--sdn-green); }
body.sdn4-public-theme[data-school-theme] .school-chat .chat-bubble:not(.chat-user) { background:var(--sdn-green);color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .school-chat .chat-scroll input { border-color:var(--sdn-line);color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .school-chat .chat-questions button { border-color:var(--sdn-line);color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .school-chat .chat-questions button:hover { background:var(--sdn-green); }
body.sdn4-public-theme[data-school-theme] .school-chat .chat-footer { border-color:var(--sdn-line);background:var(--sdn-paper); }
body.sdn4-public-theme[data-school-theme] .school-chat :is(.chat-launcher,.chat-panel):focus-visible { outline-color:var(--sdn-focus-color); }


@media (max-width:640px) {
  .school-theme-options { grid-template-columns:1fr; }
  .school-theme-option-content { min-height:132px; }
  .school-theme-preview-nav > span:nth-of-type(2) { display:none; }
  .school-theme-preview-hero { padding:20px; }
}

/* Additional presets share the same tokens on public pages and every portal. */
[data-school-theme="langit-impian"] {
  --sdn-ink:#12405c;--sdn-accent:#047196;--sdn-accent-deep:#12516b;--sdn-muted:#3d6479;
  --sdn-paper:#def3fa;--sdn-surface:#effaff;--sdn-green:#beeafa;--sdn-yellow:#73bedc;--sdn-blue:#d6f2ff;--sdn-line:#a7d8e9;
  --sdn-shadow:0 18px 44px rgba(35,67,91,.09);--sdn-glow-one:#beeafa70;--sdn-glow-two:#73bedc40;
  --sdn-header-bg:#effaff;--sdn-sidebar-start:#0a789d;--sdn-sidebar-end:#17445e;
  --sdn-accent-gradient:linear-gradient(105deg,#12516b,#047196);--sdn-focus-color:#047196;
  --sdn-card-radius:26px;--sdn-control-radius:16px;--sdn-soft-shadow:0 18px 44px rgba(35,67,91,.09);
}
[data-school-theme="senja-kreatif"] {
  --sdn-ink:#562b16;--sdn-accent:#a24513;--sdn-accent-deep:#76300d;--sdn-muted:#75482d;
  --sdn-paper:#fae2c9;--sdn-surface:#fff1e2;--sdn-green:#f7cea9;--sdn-yellow:#ee8b50;--sdn-blue:#f5dfc7;--sdn-line:#dfb493;
  --sdn-shadow:0 18px 44px rgba(96,58,49,.1);--sdn-glow-one:#f7cea970;--sdn-glow-two:#ee8b5040;
  --sdn-header-bg:#fff1e2;--sdn-sidebar-start:#ae5018;--sdn-sidebar-end:#572a13;
  --sdn-accent-gradient:linear-gradient(105deg,#76300d,#a24513);--sdn-focus-color:#a24513;
  --sdn-card-radius:20px;--sdn-control-radius:12px;--sdn-soft-shadow:0 18px 44px rgba(96,58,49,.1);
}
[data-school-theme="ungu-imajinasi"] {
  --sdn-ink:#372659;--sdn-accent:#6734a5;--sdn-accent-deep:#543083;--sdn-muted:#66517f;
  --sdn-paper:#eee4fa;--sdn-surface:#f7f0fe;--sdn-green:#ddcaf4;--sdn-yellow:#8ad8c7;--sdn-blue:#e7ddfb;--sdn-line:#c6afe0;
  --sdn-shadow:0 18px 44px rgba(65,52,94,.1);--sdn-glow-one:#ddcaf470;--sdn-glow-two:#8ad8c740;
  --sdn-header-bg:#f7f0fe;--sdn-sidebar-start:#7540ad;--sdn-sidebar-end:#392657;
  --sdn-accent-gradient:linear-gradient(105deg,#543083,#6734a5);--sdn-focus-color:#6734a5;
  --sdn-card-radius:24px;--sdn-control-radius:14px;--sdn-soft-shadow:0 18px 44px rgba(65,52,94,.1);
}
.school-theme-swatches [data-swatch="0"] { background:var(--sdn-ink); }
.school-theme-swatches [data-swatch="1"] { background:var(--sdn-accent); }
.school-theme-swatches [data-swatch="2"] { background:var(--sdn-green); }
.school-theme-swatches [data-swatch="3"] { background:var(--sdn-yellow); }

/* Connect each published preset to the legacy landing-page variables too. */
body.sdn4-public-theme[data-school-theme],
body.sdn4-login-theme[data-school-theme],
body.sdn4-admin-theme[data-school-theme],
body.school-cbt-layout[data-school-theme] {
  --ink:var(--sdn-ink);
  --muted:var(--sdn-muted);
  --paper:var(--sdn-paper);
  --line:var(--sdn-line);
  --yellow:var(--sdn-yellow);
  --green:var(--sdn-green);
  --blue:var(--sdn-blue);
  --radius:var(--sdn-card-radius);
  --sdn-shadow:var(--sdn-soft-shadow);
}

/* Landing surfaces were using several fixed colors; bind them to the preset. */
body.sdn4-public-theme[data-school-theme] .site-header { background:var(--sdn-header-bg); }
body.sdn4-public-theme[data-school-theme] .brand-mark { background:var(--sdn-ink);color:var(--sdn-yellow); }
body.sdn4-public-theme[data-school-theme] .desktop-nav a:hover { color:var(--sdn-accent); }
body.sdn4-public-theme[data-school-theme] .hero-slider { background-color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .hero-slide-copy .eyebrow { color:var(--sdn-yellow); }
body.sdn4-public-theme[data-school-theme] .hero-slide-copy h1 > span::after { background:var(--sdn-yellow); }
body.sdn4-public-theme[data-school-theme] .hero-slide-copy .button { background:var(--sdn-yellow);border-color:var(--sdn-yellow);color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .service-card {
  border:1px solid var(--sdn-line);
  border-top:5px solid var(--sdn-accent);
  background:var(--sdn-surface);
  color:var(--sdn-ink);
  box-shadow:var(--sdn-soft-shadow);
}
body.sdn4-public-theme[data-school-theme] .service-card :is(h3,.card-link,.number) { color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .service-symbol { background:var(--sdn-green);color:var(--sdn-accent-deep); }
body.sdn4-public-theme[data-school-theme] .values-band { background:var(--sdn-green);border-color:var(--sdn-line);color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .values-band i { color:var(--sdn-accent); }
body.sdn4-public-theme[data-school-theme] .about-poster { background:linear-gradient(145deg,var(--sdn-sidebar-start),var(--sdn-sidebar-end)); }
body.sdn4-public-theme[data-school-theme] .info-section { background:color-mix(in srgb,var(--sdn-green) 45%,var(--sdn-paper));border-color:var(--sdn-line); }
body.sdn4-public-theme[data-school-theme] .info-feature { background:var(--sdn-yellow);color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .info-feature p { color:var(--sdn-muted); }
body.sdn4-public-theme[data-school-theme] .feature-spark { color:color-mix(in srgb,var(--sdn-ink) 16%,transparent); }
body.sdn4-public-theme[data-school-theme] .contact-section { background:var(--sdn-green); }
body.sdn4-public-theme[data-school-theme] .contact-card,
body.sdn4-public-theme[data-school-theme] .school-updates-card { background:var(--sdn-surface);border-color:var(--sdn-line); }
body.sdn4-public-theme[data-school-theme] .site-footer { background:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .site-footer .brand-mark { background:rgba(255,255,255,.14); }
body.sdn4-public-theme[data-school-theme] .hero-slider-controls button { border-color:var(--sdn-line);color:var(--sdn-ink); }
body.sdn4-public-theme[data-school-theme] .hero-slide-dots button[aria-pressed="true"] span { background:var(--sdn-accent); }

/* Keep the selected palette visible on the whole sign-in experience. */
body.sdn4-login-theme[data-school-theme] .login-card { border-color:var(--sdn-line);background:var(--sdn-surface); }
body.sdn4-login-theme[data-school-theme] .login-card::before { background:linear-gradient(90deg,var(--sdn-accent),var(--sdn-yellow),var(--sdn-green),var(--sdn-accent)); }
body.sdn4-login-theme[data-school-theme] .login-header { background:linear-gradient(135deg,var(--sdn-sidebar-start),var(--sdn-accent) 65%,var(--sdn-sidebar-end)); }
body.sdn4-login-theme[data-school-theme] .login-body { background:var(--sdn-surface); }
body.sdn4-login-theme[data-school-theme] .form-group label { color:var(--sdn-ink)!important; }
body.sdn4-login-theme[data-school-theme] .input-icon :is(input,select) { border-color:var(--sdn-line);background:var(--sdn-paper); }
body.sdn4-login-theme[data-school-theme] .btn-login { background:var(--sdn-accent-gradient); }
body.sdn4-login-theme[data-school-theme] .portal-link { border-color:var(--sdn-line);background:var(--sdn-green);color:var(--sdn-accent-deep); }

/* Admin and CBT shells receive the same identity, beyond the website editor. */
body.sdn4-admin-theme[data-school-theme] .main-header,
body.school-cbt-layout[data-school-theme] .main-header { background:var(--sdn-header-bg); }
body.sdn4-admin-theme[data-school-theme] .content-wrapper,
body.school-cbt-layout[data-school-theme] .content-wrapper { color:var(--sdn-ink); }
body.sdn4-admin-theme[data-school-theme] .main-sidebar .brand-link,
body.school-cbt-layout[data-school-theme] .main-sidebar .brand-link { color:#fff; }
body.sdn4-admin-theme[data-school-theme] .main-sidebar .nav-sidebar > .nav-item > .nav-link.active,
body.school-cbt-layout[data-school-theme] .main-sidebar .nav-sidebar > .nav-item > .nav-link.active { background:var(--sdn-accent-gradient); }
body.sdn4-admin-theme[data-school-theme] :is(.card,.info-box,.small-box,.website-editor),
body.school-cbt-layout[data-school-theme] :is(.card,.info-box,.small-box) { border-color:var(--sdn-line);background-color:var(--sdn-surface); }
body.sdn4-admin-theme[data-school-theme] .card-header,
body.school-cbt-layout[data-school-theme] .card-header { background:color-mix(in srgb,var(--sdn-green) 42%,var(--sdn-surface));color:var(--sdn-ink); }
body.sdn4-admin-theme[data-school-theme] :is(.btn-primary,.btn-info),
body.school-cbt-layout[data-school-theme] :is(.btn-primary,.btn-info) { background:var(--sdn-accent);border-color:var(--sdn-accent); }
body.sdn4-admin-theme[data-school-theme] :is(.form-control,.custom-select):focus,
body.school-cbt-layout[data-school-theme] :is(.form-control,.custom-select):focus { border-color:var(--sdn-accent);box-shadow:0 0 0 3px var(--sdn-focus-color); }
body.sdn4-admin-theme[data-school-theme] .content-header h1 { color:var(--sdn-ink); }

/* Each preset has a distinct motion signature across the hero, login, and admin. */
body.sdn4-public-theme[data-school-theme="langkah-ceria"] .hero-slide.is-active .hero-slide-copy { animation:sdn-ceria-arrive .72s var(--sdn-ease) both; }
body.sdn4-login-theme[data-school-theme="langkah-ceria"] .login-card { animation:sdn-ceria-arrive .68s var(--sdn-ease) both; }
body.sdn4-admin-theme[data-school-theme="langkah-ceria"] .content-header { animation:sdn-ceria-arrive .55s var(--sdn-ease) both; }
body.school-cbt-layout[data-school-theme="langkah-ceria"] .content-header { animation:sdn-ceria-arrive .55s var(--sdn-ease) both; }
body.sdn4-public-theme[data-school-theme="langkah-ceria"] .hero-slide-copy .tiny-star { transform-origin:center;animation:sdn-ceria-twinkle 3.2s ease-in-out infinite; }


body.sdn4-public-theme[data-school-theme="taman-belajar"] .hero-slide.is-active .hero-slide-copy { animation:sdn-taman-grow .8s cubic-bezier(.16,1,.3,1) both; }
body.sdn4-login-theme[data-school-theme="taman-belajar"] .login-card { animation:sdn-taman-grow .72s cubic-bezier(.16,1,.3,1) both; }
body.sdn4-admin-theme[data-school-theme="taman-belajar"] .content-header { animation:sdn-taman-grow .58s cubic-bezier(.16,1,.3,1) both; }
body.school-cbt-layout[data-school-theme="taman-belajar"] .content-header { animation:sdn-taman-grow .58s cubic-bezier(.16,1,.3,1) both; }
body.sdn4-public-theme[data-school-theme="taman-belajar"] .hero-slide-copy .tiny-star { animation:sdn-taman-sway 4.4s ease-in-out infinite;transform-origin:center; }

body.sdn4-public-theme[data-school-theme="warna-nusantara"] .hero-slide.is-active .hero-slide-copy { animation:sdn-nusantara-step .68s cubic-bezier(.2,.8,.25,1) both; }
body.sdn4-login-theme[data-school-theme="warna-nusantara"] .login-card { animation:sdn-nusantara-step .62s cubic-bezier(.2,.8,.25,1) both; }
body.sdn4-admin-theme[data-school-theme="warna-nusantara"] .content-header { animation:sdn-nusantara-step .52s cubic-bezier(.2,.8,.25,1) both; }
body.school-cbt-layout[data-school-theme="warna-nusantara"] .content-header { animation:sdn-nusantara-step .52s cubic-bezier(.2,.8,.25,1) both; }
body.sdn4-public-theme[data-school-theme="warna-nusantara"] .hero-slide-copy .tiny-star { animation:sdn-nusantara-spark 2.8s ease-in-out infinite;transform-origin:center; }

@keyframes sdn-ceria-arrive { from{opacity:0;transform:translateY(18px) scale(.975)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes sdn-ceria-twinkle { 0%,100%{transform:rotate(0) scale(1)} 50%{transform:rotate(24deg) scale(1.13)} }
@keyframes sdn-taman-grow { from{opacity:0;transform:translateY(14px) scale(.96)} to{opacity:1;transform:translateY(0) scale(1)} }
@keyframes sdn-taman-sway { 0%,100%{transform:rotate(-5deg) translateY(0)} 50%{transform:rotate(8deg) translateY(-5px)} }
@keyframes sdn-nusantara-step { 0%{opacity:0;transform:translateY(12px) rotate(-.6deg) scale(.985)} 70%{opacity:1;transform:translateY(-2px) rotate(.15deg) scale(1.002)} 100%{opacity:1;transform:translateY(0) rotate(0) scale(1)} }
@keyframes sdn-nusantara-spark { 0%,100%{transform:rotate(0) scale(1)} 40%{transform:rotate(-15deg) scale(1.15)} 70%{transform:rotate(10deg) scale(.96)} }

/* Repeating motifs are painted once per layer and moved with transforms. */
[data-school-theme] {
  --sdn-backdrop-one-size:100% 100%;
  --sdn-backdrop-size:100% 100%;
  --sdn-backdrop-drop:0px;
  --sdn-backdrop-second-motion:var(--sdn-backdrop-motion);
  --sdn-backdrop-second-timing:ease-in-out;
  --sdn-backdrop-second-direction:alternate-reverse;
}
[data-school-theme="langkah-ceria"] {
  --sdn-backdrop-one:radial-gradient(circle at 12% 25%,transparent 0 46px,color-mix(in srgb,var(--sdn-yellow) 65%,transparent) 47px 49px,transparent 50px),radial-gradient(circle at 88% 70%,color-mix(in srgb,var(--sdn-accent) 16%,transparent) 0 82px,transparent 83px);
  --sdn-backdrop-two:radial-gradient(circle at 34px 27px,color-mix(in srgb,var(--sdn-accent) 34%,transparent) 0 2px,transparent 2.6px),radial-gradient(circle at 118px 95px,color-mix(in srgb,var(--sdn-yellow) 76%,transparent) 0 3px,transparent 3.6px);
  --sdn-backdrop-size:175px 148px;
  --sdn-backdrop-drop:148px;
  --sdn-backdrop-motion:sdn-background-bob;
  --sdn-backdrop-duration:19s;
}
[data-school-theme="taman-belajar"] {
  --sdn-backdrop-one:radial-gradient(ellipse 145px 91px at 9% 28%,#53874523 98%,transparent),radial-gradient(ellipse 210px 105px at 91% 73%,#7d9f3c27 98%,transparent);
  --sdn-backdrop-two:radial-gradient(ellipse 13px 5px at 44px 38px,#52845060 90%,transparent),radial-gradient(ellipse 6px 12px at 185px 153px,#819b4062 90%,transparent);
  --sdn-backdrop-size:248px 218px;
  --sdn-backdrop-drop:218px;
  --sdn-backdrop-motion:sdn-background-leaves;
  --sdn-backdrop-duration:23s;
}
[data-school-theme="warna-nusantara"] {
  --sdn-backdrop-one:repeating-linear-gradient(45deg,transparent 0 33px,#88244e28 34px 36px,transparent 37px 68px),repeating-linear-gradient(-45deg,transparent 0 33px,#4c172c23 34px 36px,transparent 37px 68px);
  --sdn-backdrop-two:radial-gradient(circle at 12% 15%,#dfb0652a 0 80px,transparent 81px),radial-gradient(circle at 89% 78%,#88244e22 0 116px,transparent 117px);
  --sdn-backdrop-motion:sdn-background-weave;
  --sdn-backdrop-duration:30s;
}
:is([data-school-theme="langit-impian"],[data-school-theme="biru-cendekia"]) {
  --sdn-backdrop-one:radial-gradient(ellipse 148px 50px at 12% 24%,color-mix(in srgb,var(--sdn-accent) 23%,transparent) 95%,transparent),radial-gradient(ellipse 180px 63px at 84% 70%,color-mix(in srgb,var(--sdn-accent) 19%,transparent) 95%,transparent);
  --sdn-backdrop-two:radial-gradient(ellipse 83px 28px at 25% 20%,color-mix(in srgb,var(--sdn-accent) 15%,transparent) 95%,transparent),radial-gradient(ellipse 117px 42px at 80% 59%,color-mix(in srgb,var(--sdn-accent) 17%,transparent) 95%,transparent);
  --sdn-backdrop-motion:sdn-background-clouds;
  --sdn-backdrop-duration:31s;
}
[data-school-theme="senja-kreatif"] {
  --sdn-backdrop-one:radial-gradient(circle at 89% 24%,#e4a24a37 0 72px,transparent 73px 91px,#b6684244 92px 94px,transparent 95px 115px,#b6684228 116px 118px,transparent 119px);
  --sdn-backdrop-two:radial-gradient(circle at 12% 78%,transparent 0 76px,#a44d3240 77px 79px,transparent 80px 106px,#a44d322b 107px 109px,transparent 110px);
  --sdn-backdrop-motion:sdn-background-sun;
  --sdn-backdrop-duration:22s;
}
[data-school-theme="ungu-imajinasi"] {
  --sdn-backdrop-one:radial-gradient(circle at 13% 18%,#7944b42c 0 82px,transparent 83px),radial-gradient(circle at 87% 77%,transparent 0 91px,#7944b433 92px 94px,transparent 95px);
  --sdn-backdrop-two:radial-gradient(ellipse 1.7px 5px at 28px 29px,#6734a56b 85%,transparent),radial-gradient(ellipse 5px 1.7px at 28px 29px,#6734a56b 85%,transparent),radial-gradient(circle at 132px 135px,#388a7b6e 0 2.5px,transparent 3.1px);
  --sdn-backdrop-size:218px 196px;
  --sdn-backdrop-drop:196px;
  --sdn-backdrop-motion:sdn-background-aurora;
  --sdn-backdrop-duration:24s;
}
:is([data-school-theme="langkah-ceria"],[data-school-theme="taman-belajar"],[data-school-theme="ungu-imajinasi"]) {
  --sdn-backdrop-second-motion:sdn-background-fall;
  --sdn-backdrop-second-timing:linear;
  --sdn-backdrop-second-direction:normal;
}

body.sdn4-public-theme[data-school-theme],
body.sdn4-login-theme[data-school-theme] { position:relative;isolation:isolate; }
body.sdn4-public-theme[data-school-theme]::before,
body.sdn4-public-theme[data-school-theme]::after,
body.sdn4-login-theme[data-school-theme]::before,
body.sdn4-login-theme[data-school-theme]::after {
  content:"";
  position:fixed;
  inset:-6vmax;
  z-index:-1;
  pointer-events:none;
  background-repeat:repeat;
}
body.sdn4-public-theme[data-school-theme]::before,
body.sdn4-login-theme[data-school-theme]::before {
  background-image:var(--sdn-backdrop-one);
  background-size:var(--sdn-backdrop-one-size,100% 100%);
  animation:var(--sdn-backdrop-motion) var(--sdn-backdrop-duration) ease-in-out infinite alternate;
}
body.sdn4-public-theme[data-school-theme]::after,
body.sdn4-login-theme[data-school-theme]::after {
  top:calc(-6vmax - var(--sdn-backdrop-drop));
  background-image:var(--sdn-backdrop-two);
  background-size:var(--sdn-backdrop-size,100% 100%);
  animation:var(--sdn-backdrop-second-motion) calc(var(--sdn-backdrop-duration) + 7s) var(--sdn-backdrop-second-timing) infinite var(--sdn-backdrop-second-direction);
}
/* Retain the pattern through full-width tinted homepage sections. */
body.sdn4-public-theme[data-school-theme] .portal-tint { background:color-mix(in srgb,var(--sdn-green) 38%,transparent); }
body.sdn4-public-theme[data-school-theme] .portal-card { background:var(--sdn-surface); }
body.sdn4-public-theme[data-school-theme] .staff-monogram { background:var(--sdn-green);color:var(--sdn-accent-deep); }

/* The teacher-facing theme preview shows the real motif and motion too. */
.school-theme-preview-hero { position:relative;isolation:isolate;overflow:hidden; }
.school-theme-preview-hero::before,
.school-theme-preview-hero::after { content:"";position:absolute;inset:-24px;z-index:-1;pointer-events:none; }
.school-theme-preview-hero::before {
  background-image:var(--sdn-backdrop-one);
  background-size:var(--sdn-backdrop-one-size,100% 100%);
  animation:var(--sdn-backdrop-motion) var(--sdn-backdrop-duration) ease-in-out infinite alternate;
}
.school-theme-preview-hero::after {
  top:calc(-24px - var(--sdn-backdrop-drop));
  background-image:var(--sdn-backdrop-two);
  background-size:var(--sdn-backdrop-size,100% 100%);
  animation:var(--sdn-backdrop-second-motion) calc(var(--sdn-backdrop-duration) + 7s) var(--sdn-backdrop-second-timing) infinite var(--sdn-backdrop-second-direction);
}

body.sdn4-public-theme:is([data-school-theme="langit-impian"],[data-school-theme="biru-cendekia"]) .hero-slide.is-active .hero-slide-copy,
body.sdn4-login-theme:is([data-school-theme="langit-impian"],[data-school-theme="biru-cendekia"]) .login-card,
body.sdn4-admin-theme:is([data-school-theme="langit-impian"],[data-school-theme="biru-cendekia"]) .content-header,
body.school-cbt-layout:is([data-school-theme="langit-impian"],[data-school-theme="biru-cendekia"]) .content-header { animation:sdn-ceria-arrive .8s var(--sdn-ease) both; }
body.sdn4-public-theme[data-school-theme="senja-kreatif"] .hero-slide.is-active .hero-slide-copy,
body.sdn4-login-theme[data-school-theme="senja-kreatif"] .login-card,
body.sdn4-admin-theme[data-school-theme="senja-kreatif"] .content-header,
body.school-cbt-layout[data-school-theme="senja-kreatif"] .content-header { animation:sdn-taman-grow .85s var(--sdn-ease) both; }
body.sdn4-public-theme[data-school-theme="ungu-imajinasi"] .hero-slide.is-active .hero-slide-copy,
body.sdn4-login-theme[data-school-theme="ungu-imajinasi"] .login-card,
body.sdn4-admin-theme[data-school-theme="ungu-imajinasi"] .content-header,
body.school-cbt-layout[data-school-theme="ungu-imajinasi"] .content-header { animation:sdn-nusantara-step .75s var(--sdn-ease) both; }

@keyframes sdn-background-bob { from{transform:translate3d(-1%,-1%,0)} to{transform:translate3d(2%,3%,0)} }
@keyframes sdn-background-leaves { from{transform:translate3d(-1%,1%,0) rotate(-1deg)} to{transform:translate3d(1%,-2%,0) rotate(1deg)} }
@keyframes sdn-background-weave { from{transform:translate3d(-12px,0,0)} to{transform:translate3d(12px,18px,0)} }
@keyframes sdn-background-clouds { from{transform:translate3d(-3%,0,0)} to{transform:translate3d(3%,1%,0)} }
@keyframes sdn-background-sun { from{transform:translate3d(0,1%,0) scale(.99);opacity:.75} to{transform:translate3d(0,-1%,0) scale(1.035);opacity:1} }
@keyframes sdn-background-aurora { from{transform:translate3d(-2%,1%,0) rotate(-1deg);opacity:.75} to{transform:translate3d(2%,-1%,0) rotate(1deg);opacity:1} }
@keyframes sdn-background-fall {
  0% { transform:translate3d(0,0,0); }
  33% { transform:translate3d(9px,calc(var(--sdn-backdrop-drop) / 3),0); }
  66% { transform:translate3d(-9px,calc(var(--sdn-backdrop-drop) * 2 / 3),0); }
  100% { transform:translate3d(0,var(--sdn-backdrop-drop),0); }
}

@media(max-width:640px) {
  body.sdn4-public-theme[data-school-theme]::before,
  body.sdn4-public-theme[data-school-theme]::after,
  body.sdn4-login-theme[data-school-theme]::before,
  body.sdn4-login-theme[data-school-theme]::after { opacity:.7; }
}
@media(prefers-reduced-motion:reduce) {
  body.sdn4-public-theme[data-school-theme]::before,
  body.sdn4-public-theme[data-school-theme]::after,
  body.sdn4-login-theme[data-school-theme]::before,
  body.sdn4-login-theme[data-school-theme]::after,
  .school-theme-preview-hero::before,
  .school-theme-preview-hero::after { animation:none!important;transform:none!important; }
}
@media print {
  body.sdn4-public-theme[data-school-theme]::before,
  body.sdn4-public-theme[data-school-theme]::after,
  body.sdn4-login-theme[data-school-theme]::before,
  body.sdn4-login-theme[data-school-theme]::after { display:none; }
}

@media (prefers-reduced-motion:reduce) {
  body[data-school-theme] :is(.hero-slide-copy,.login-card,.content-header,.tiny-star),
  body[data-school-theme] :is(.hero-slide-copy,.login-card,.content-header,.tiny-star)::before,
  body[data-school-theme] :is(.hero-slide-copy,.login-card,.content-header,.tiny-star)::after { animation:none!important;clip-path:none!important; }
}

/* Keep the school crest readable in the public header across every theme. */
body.sdn4-public-theme .site-header .brand { min-width:0;flex-shrink:1; }
body.sdn4-public-theme .site-header .brand > img {
  width:72px;height:72px;flex:0 0 72px;object-fit:contain;
  background:transparent;border:0;border-radius:0;padding:0;
}
body.sdn4-public-theme .site-header .brand > span { min-width:0;overflow-wrap:anywhere; }
body.sdn4-public-theme .footer-top .brand { min-width:0; }
body.sdn4-public-theme .footer-top .brand > img { flex:none; }
body.sdn4-public-theme .brand .school-brand-expansion {
  max-width:42ch;
  white-space:normal;
  overflow-wrap:anywhere;
}
@media (max-width:580px) {
  body.sdn4-public-theme .site-header .brand > img { width:56px;height:56px;flex-basis:56px; }
}

/* Crisp surfaces and lightweight motion shared by published school themes. */
.school-developer-credit{display:inline-block;font-size:13px;line-height:1.7;margin:4px 0}.school-developer-credit a{color:inherit;text-decoration:underline;text-underline-offset:3px}.school-developer-credit a:focus-visible{outline:2px solid currentColor;outline-offset:4px}.school-developer-row{padding-top:10px;padding-bottom:16px;border-top:1px solid #ffffff20}.main-footer>.school-developer-credit,.school-participant-footer>.school-developer-credit{margin-left:8px}@media(max-width:600px){.main-footer>.school-developer-credit,.school-participant-footer>.school-developer-credit{display:block;margin-left:0}}
body[data-school-theme]{--sdn-soft-shadow:0 8px 24px #152a4010;--sdn-shadow:0 12px 32px #152a4018}
body.sdn4-admin-theme[data-school-theme],body.school-cbt-layout[data-school-theme]{position:relative;isolation:isolate;background:var(--sdn-paper)}
body.school-cbt-layout[data-school-theme]:not(.participant-portal)::before{content:"";position:fixed;inset:-6%;z-index:-1;pointer-events:none;background:radial-gradient(ellipse at 10% 12%,var(--sdn-green) 0,transparent 38%),radial-gradient(ellipse at 90% 84%,var(--sdn-blue) 0,transparent 40%);opacity:.65}
body.sdn4-admin-theme[data-school-theme] .content-wrapper{background:var(--sdn-paper)!important}
body.school-cbt-layout[data-school-theme]:not(.participant-portal) .content-wrapper{background:transparent}
body[data-school-theme] :is(.main-header,.site-header){background:var(--sdn-surface)!important;border-bottom:2px solid var(--sdn-accent);box-shadow:0 3px 16px #122a4010}
body.sdn4-admin-theme[data-school-theme] :is(.card,.info-box),body.school-cbt-layout[data-school-theme] .card{background:var(--sdn-surface);border:1px solid var(--sdn-line);box-shadow:0 7px 22px #152a4010}
body.sdn4-admin-theme[data-school-theme] .card-header,body.school-cbt-layout[data-school-theme] .card-header{background:var(--sdn-surface)!important;color:var(--sdn-ink);border-top:3px solid var(--sdn-accent);border-bottom:1px solid var(--sdn-line)}
body.sdn4-admin-theme[data-school-theme] :is(.card,.info-box){border-color:var(--sdn-line)!important}
body.sdn4-admin-theme[data-school-theme] :is(.form-control,.custom-select){background-color:var(--sdn-paper);color:var(--sdn-ink)}
body.sdn4-admin-theme[data-school-theme] :is(.form-control,.custom-select):not(.is-invalid):not(.is-valid){border-color:var(--sdn-line)}
body.sdn4-admin-theme[data-school-theme] :is(.form-control,.custom-select):focus{border-color:var(--sdn-accent)}
body.sdn4-admin-theme[data-school-theme] .text-muted{color:var(--sdn-muted)!important}
body.sdn4-admin-theme[data-school-theme] :is(.class-chart-stat,.class-chart-track){background-color:var(--sdn-paper)}
body.sdn4-admin-theme[data-school-theme] .class-chart-track {
  background-image:repeating-linear-gradient(to right,transparent 0,transparent calc(25% - 1px),var(--sdn-line) calc(25% - 1px),var(--sdn-line) 25%);
}
body.sdn4-public-theme[data-school-theme] :is(.content-popup,.popup-toolbar,.popup-footer,.portal-empty) {
  color:var(--sdn-ink);
  background:var(--sdn-surface);
  border-color:var(--sdn-line);
}
body.sdn4-public-theme[data-school-theme] :is(.popup-hero,.popup-hero-text,.popup-facts) {
  background:var(--sdn-paper);
  border-color:var(--sdn-line);
}
body.sdn4-public-theme[data-school-theme] :is(.popup-lead,.popup-prose p,.popup-facts dt) { color:var(--sdn-muted); }
body.sdn4-public-theme[data-school-theme] :is(.popup-heading-line,.popup-toolbar-dot) { background:var(--sdn-accent); }
body.sdn4-public-theme[data-school-theme] :is(.teacher-filters,.school-video-sidebar) :is(input,select) {
  color:var(--sdn-ink);
  background-color:var(--sdn-paper);
  border-color:var(--sdn-line);
}
body[data-school-theme] :is(.main-footer,.site-footer){background:var(--sdn-sidebar-end,#102e31)!important;color:#edf5ff!important;border-top:3px solid var(--sdn-accent)}
body[data-school-theme] :is(.main-footer,.site-footer) :is(p,small,a,strong){color:inherit}
body[data-school-theme] :is(.main-footer,.site-footer) a:hover{color:#fff;text-decoration:underline}
body[data-school-theme] :is(.form-control,input,select,textarea){border-color:#bac9d7}
body[data-school-theme] :is(.btn,.button){font-weight:650;transition:transform .18s ease,box-shadow .18s ease}
body[data-school-theme] :is(.btn,.button):active{transform:translateY(1px)!important;box-shadow:inset 0 2px 4px #0002!important}
body[data-school-theme] :is(.btn,.button):focus-visible{outline:3px solid var(--sdn-accent);outline-offset:3px}
body[data-school-theme] :is(.desktop-nav,.mobile-menu) a{font-weight:650;color:var(--sdn-ink)}
body.sdn4-public-theme[data-school-theme] :is(.portal-tint,.portal-section){background:transparent}
@media(prefers-reduced-motion:no-preference){
 body.school-cbt-layout[data-school-theme]:not(.participant-portal)::before{animation:school-ambient-drift 26s ease-in-out infinite alternate}
 body.sdn4-admin-theme[data-school-theme] .card,body.school-cbt-layout[data-school-theme]:not(.participant-portal) .card,body.sdn4-public-theme[data-school-theme] :is(.portal-card,.service-card,.content-card,.contact-card),body.sdn4-login-theme[data-school-theme] .login-card{animation:school-surface-arrive .45s ease-out backwards}
 body[data-school-theme] :is(.btn,.button):hover{transform:translateY(-2px);box-shadow:0 7px 18px #102e3228}
 @keyframes school-ambient-drift{from{transform:translate3d(-1%,-1%,0)}to{transform:translate3d(2%,2%,0)}}
 @keyframes school-surface-arrive{from{opacity:.6;transform:translate3d(0,10px,0)}to{opacity:1;transform:translate3d(0,0,0)}}
}
@media(max-width:767.98px){body.school-cbt-layout[data-school-theme]::before{inset:0;opacity:.4}body.sdn4-admin-theme[data-school-theme] .card{animation-duration:.3s}}
@media(prefers-reduced-motion:reduce){body[data-school-theme]::before,body[data-school-theme]::after{animation:none!important;transform:none!important}}
@media print{body.sdn4-admin-theme[data-school-theme]::before,body.school-cbt-layout[data-school-theme]::before{display:none}body[data-school-theme] :is(.card,.content-card){animation:none!important;transform:none!important;box-shadow:none!important}body[data-school-theme] :is(.main-footer,.site-footer){background:white!important;color:#111!important}}

/* Occasion palettes and their matching editor swatches. */
[data-school-theme]:is([data-school-theme="kemerdekaan"],[data-school-theme="hari-guru"],[data-school-theme="hari-pahlawan"],[data-school-theme="sumpah-pemuda"],[data-school-theme="maulid-nabi"],[data-school-theme="hari-kartini"],[data-school-theme="hari-pendidikan"],[data-school-theme="hari-pancasila"],[data-school-theme="hari-batik"],[data-school-theme="hari-olahraga"],[data-school-theme="hari-pramuka"]) {
  --sdn-ink:var(--occasion-ink);
  --sdn-accent:var(--occasion-accent);
  --sdn-accent-deep:var(--occasion-ink);
  --sdn-muted:color-mix(in srgb,var(--occasion-ink) 77%,#fff);
  --sdn-paper:color-mix(in srgb,var(--occasion-tint) 46%,#fff);
  --sdn-surface:color-mix(in srgb,var(--occasion-tint) 22%,#fff);
  --sdn-green:var(--occasion-tint);
  --sdn-blue:var(--occasion-tint);
  --sdn-yellow:var(--occasion-trim);
  --sdn-line:color-mix(in srgb,var(--occasion-tint) 72%,var(--occasion-accent));
  --sdn-glow-one:var(--occasion-tint);
  --sdn-glow-two:color-mix(in srgb,var(--occasion-trim) 22%,transparent);
  --sdn-header-bg:var(--sdn-surface);
  --sdn-sidebar-start:var(--occasion-accent);
  --sdn-sidebar-end:var(--occasion-ink);
  --sdn-accent-gradient:linear-gradient(110deg,var(--occasion-ink),var(--occasion-accent));
  --sdn-focus-color:var(--occasion-accent);
  --sdn-card-radius:20px;
  --sdn-control-radius:12px;
}
[data-school-theme="kemerdekaan"] { --occasion-ink:#571622;--occasion-accent:#b51e32;--occasion-tint:#f6d9dd;--occasion-trim:#f5ede4; }
[data-school-theme="hari-guru"] { --occasion-ink:#193750;--occasion-accent:#285f83;--occasion-tint:#d6e9f4;--occasion-trim:#f4cf70; }
[data-school-theme="hari-pahlawan"] { --occasion-ink:#362025;--occasion-accent:#6f2937;--occasion-tint:#e0c8ce;--occasion-trim:#b9843a; }
[data-school-theme="sumpah-pemuda"] { --occasion-ink:#252556;--occasion-accent:#4843a1;--occasion-tint:#dbd8f7;--occasion-trim:#f29363; }
[data-school-theme="maulid-nabi"] { --occasion-ink:#103b37;--occasion-accent:#14695c;--occasion-tint:#cdeee3;--occasion-trim:#d6b567; }
[data-school-theme="hari-kartini"] { --occasion-ink:#5c244a;--occasion-accent:#a13872;--occasion-tint:#f3cae2;--occasion-trim:#ba9fdf; }
[data-school-theme="hari-pendidikan"] { --occasion-ink:#203750;--occasion-accent:#036985;--occasion-tint:#c4e9f5;--occasion-trim:#ee9a68; }
[data-school-theme="hari-pancasila"] { --occasion-ink:#503519;--occasion-accent:#805413;--occasion-tint:#f0dfb0;--occasion-trim:#b43638; }
[data-school-theme="hari-batik"] { --occasion-ink:#30231b;--occasion-accent:#6e422f;--occasion-tint:#e9d1b7;--occasion-trim:#d3af7c; }
[data-school-theme="hari-olahraga"] { --occasion-ink:#1e402b;--occasion-accent:#317140;--occasion-tint:#d0eebf;--occasion-trim:#ed9448; }
[data-school-theme="hari-pramuka"] { --occasion-ink:#36311c;--occasion-accent:#655a29;--occasion-tint:#e7deb9;--occasion-trim:#90a15c; }

/* Public banners, filters and map panels use the selected palette. */
body.sdn4-public-theme[data-school-theme] .achievements-banner {
  background:linear-gradient(118deg,color-mix(in srgb,var(--sdn-green) 55%,transparent),color-mix(in srgb,var(--sdn-paper) 34%,transparent));
  border-color:var(--sdn-line);
}
body.sdn4-public-theme[data-school-theme] .hero-slide-shade {
  --hero-ink:var(--sdn-sidebar-end,var(--sdn-ink));
  background:linear-gradient(90deg,color-mix(in srgb,var(--hero-ink) 94%,transparent) 0%,color-mix(in srgb,var(--hero-ink) 78%,transparent) 54%,color-mix(in srgb,var(--hero-ink) 12%,transparent) 100%),linear-gradient(0deg,color-mix(in srgb,var(--hero-ink) 74%,transparent),transparent 56%);
}
body.sdn4-public-theme[data-school-theme] .hero-slide-copy .text-link { color:#fff; }
body.sdn4-public-theme[data-school-theme] .hero-slider-status,
body.sdn4-public-theme[data-school-theme] .hero-slide-count { color:var(--sdn-paper); }
body.sdn4-public-theme[data-school-theme] .site-footer .brand-mark { background:var(--sdn-accent); }
body.sdn4-public-theme[data-school-theme] .achievement-emblem {
  background:var(--sdn-accent-gradient);
  color:#fff;
}
body.sdn4-public-theme[data-school-theme] .achievement-emblem > span { color:var(--sdn-yellow); }
body.sdn4-public-theme[data-school-theme] :is(.contact-information,.achievement-filters) { background:var(--sdn-surface); }
body.sdn4-public-theme[data-school-theme] :is(.school-identity,.school-map-frame,.achievement-card-art,.popup-achievement .achievement-recipient) {
  background:var(--sdn-paper);
  border-color:var(--sdn-line);
}
body.sdn4-public-theme[data-school-theme] :is(.school-map-placeholder > span,.achievement-card-art) { color:var(--sdn-accent); }
body.sdn4-public-theme[data-school-theme] :is(.contact-data-grid dl > div,.achievement-filters select) { border-color:var(--sdn-line); }
body.sdn4-public-theme[data-school-theme] .achievement-filters select { background:var(--sdn-paper); }
body.sdn4-public-theme[data-school-theme] .achievement-filters select:focus-visible { outline-color:var(--sdn-focus-color); }
body.sdn4-public-theme[data-school-theme] :is(.agenda-facts,.popup-visual) {
  background:var(--sdn-paper);
  color:var(--sdn-ink);
}
body.sdn4-public-theme[data-school-theme] .agenda-state[data-state="Mendatang"] {
  background:var(--sdn-green);
  color:var(--sdn-accent-deep);
}
body.sdn4-public-theme[data-school-theme] .agenda-state[data-state="Berlangsung"] {
  background:var(--sdn-accent);
  color:#fff;
}
body.sdn4-public-theme[data-school-theme] .content-popup::backdrop {
  background:color-mix(in srgb,var(--sdn-sidebar-end) 76%,transparent);
}
@media (max-width:800px) {
  body.sdn4-public-theme[data-school-theme] .hero-slide-shade {
    background:linear-gradient(0deg,color-mix(in srgb,var(--hero-ink) 96%,transparent),color-mix(in srgb,var(--hero-ink) 75%,transparent) 56%,color-mix(in srgb,var(--hero-ink) 16%,transparent) 100%);
  }
}

.school-theme-schedule-row {
  display:grid;
  grid-template-columns:repeat(2,minmax(0,1fr));
  gap:.75rem;
  padding:1rem;
  margin-bottom:.75rem;
  border:1px solid var(--sdn-line);
  border-radius:12px;
  background:var(--sdn-paper);
}
.school-theme-schedule-row label { margin:0;min-width:0; }
.school-theme-schedule-row button { justify-self:start; }
@media (max-width:560px) {
  .school-theme-schedule-row { grid-template-columns:1fr; }
}

/* Decorative layers use transforms and stay behind the page controls. */
[data-school-motion] {
  --motion-first:"";
  --motion-second:"";
  --motion-paint:none;
  --motion-paint-second:var(--motion-paint);
  --motion-width:auto;
  --motion-width-second:var(--motion-width);
  --motion-ratio:auto;
  --motion-radius:0;
  --motion-clip:none;
  --motion-animation:school-motif-float;
  --motion-animation-second:var(--motion-animation);
  --motion-duration:22s;
  --motion-direction:alternate;
  --motion-opacity:.42;
}
[data-school-motion="alat-tulis"] { --motion-first:"✏️  📐";--motion-second:"📚  🖍️"; }
[data-school-motion="berhitung"] { --motion-first:"2 + 3 = 5";--motion-second:"9 − 4 = 5"; }
[data-school-motion="bunga"] { --motion-first:"🌸  🌼";--motion-second:"🌺  🌷";--motion-animation:school-motif-fall;--motion-direction:normal; }
[data-school-motion="awan"] { --motion-first:"☁️  ☁️";--motion-second:"☁️";--motion-animation:school-motif-drift;--motion-direction:normal;--motion-opacity:.75; }
[data-school-motion="angin"] { --motion-first:"𓏲 ࣪ ༄";--motion-second:"༄  🍃";--motion-animation:school-motif-drift;--motion-direction:normal; }
[data-school-motion="dodol-garut"] {
  --motion-first:"";
  --motion-second:"";
  --motion-width:clamp(1.75rem,3.2vw,2.75rem);
  --motion-ratio:2/1;
  --motion-paint:linear-gradient(90deg,#a7752d 0 22%,#724528 22% 78%,#a7752d 78%);
  --motion-clip:polygon(0 8%,22% 24%,31% 16%,69% 16%,78% 24%,100% 8%,94% 50%,100% 92%,78% 76%,69% 84%,31% 84%,22% 76%,0 92%,6% 50%);
}
[data-school-motion="intan-garut"] { --motion-first:"💎";--motion-second:"💎  ✧"; }
[data-school-motion="olahraga"] { --motion-first:"⚽  🏀";--motion-second:"🏸  🏐"; }
[data-school-motion="pramuka"] { --motion-first:"🧭  ⛺";--motion-second:"🪢  🎒"; }
[data-school-motion="merah-putih"],[data-school-motion="hut-ri"] {
  --motion-first:"";
  --motion-second:"";
  --motion-animation:school-motif-wave;
  --motion-opacity:.72;
  --motion-duration:7s;
  --motion-width:clamp(1.75rem,3.2vw,2.75rem);
  --motion-ratio:3/2;
  --motion-paint:linear-gradient(112deg,#0002,transparent 34%,#fff4 56%,transparent 80%),linear-gradient(#d4152c 50%,#fff 50%);
}
[data-school-motion="hut-ri"] {
  --motion-second:"🎉  ✦";
  --motion-paint-second:none;
  --motion-width-second:auto;
  --motion-animation-second:school-motif-float;
}
[data-school-motion="bulan-bintang"] { --motion-first:"☾  ✦";--motion-second:"✧   ✦"; }
[data-school-motion="anyaman"] {
  --motion-first:"";
  --motion-second:"";
  --motion-width:clamp(1.75rem,3.2vw,2.75rem);
  --motion-ratio:1;
  --motion-radius:50%;
  --motion-paint:repeating-linear-gradient(45deg,var(--sdn-accent) 0 3px,transparent 3px 12px),repeating-linear-gradient(-45deg,var(--sdn-yellow) 0 3px,transparent 3px 12px);
}

body[data-school-theme][data-school-motion]:not([data-school-motion="default"],[data-school-motion="off"]) .content-wrapper { background:transparent !important; }
:is(body[data-school-theme][data-school-motion]:not([data-school-motion="default"]),.school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero)::before,
:is(body[data-school-theme][data-school-motion]:not([data-school-motion="default"]),.school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero)::after {
  position:fixed;
  inset:auto;
  z-index:-1;
  pointer-events:none;
  color:var(--sdn-accent);
  background:var(--motion-paint,none);
  width:var(--motion-width,auto);
  aspect-ratio:var(--motion-ratio,auto);
  border-radius:var(--motion-radius,0);
  clip-path:var(--motion-clip,none);
  opacity:var(--motion-opacity,.42);
  font:750 clamp(1rem,1.8vw,1.375rem)/1.25 system-ui,sans-serif;
  white-space:nowrap;
  animation:var(--motion-animation,school-motif-float) var(--motion-duration,22s) ease-in-out infinite var(--motion-direction,alternate);
}
:is(body[data-school-theme][data-school-motion]:not([data-school-motion="default"]),.school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero)::before {
  content:var(--motion-first,normal) / "";
  top:25%;
  left:6%;
}
:is(body[data-school-theme][data-school-motion]:not([data-school-motion="default"]),.school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero)::after {
  content:var(--motion-second,normal) / "";
  bottom:12%;
  right:6%;
  background:var(--motion-paint-second,var(--motion-paint,none));
  width:var(--motion-width-second,var(--motion-width,auto));
  animation-name:var(--motion-animation-second,var(--motion-animation,school-motif-float));
  animation-delay:-6s;
}
.school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero::before,
.school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero::after { position:absolute; }
:is(body[data-school-theme][data-school-motion="off"],.school-theme-preview[data-school-motion="off"] .school-theme-preview-hero)::before,
:is(body[data-school-theme][data-school-motion="off"],.school-theme-preview[data-school-motion="off"] .school-theme-preview-hero)::after { display:none;animation:none; }

@keyframes school-motif-float {
  from { transform:translate3d(0,0,0) rotate(-11deg); }
  to { transform:translate3d(2vw,-6vh,0) rotate(13deg); }
}
@keyframes school-motif-fall {
  0% { transform:translate3d(0,-28vh,0) rotate(-15deg);opacity:0; }
  20%,72% { opacity:var(--motion-opacity,.42); }
  100% { transform:translate3d(6vw,28vh,0) rotate(55deg);opacity:0; }
}
@keyframes school-motif-drift {
  0% { transform:translate3d(-15vw,0,0);opacity:0; }
  30%,70% { opacity:var(--motion-opacity,.42); }
  100% { transform:translate3d(14vw,-3vh,0);opacity:0; }
}
@keyframes school-motif-wave {
  0%,100% { transform:skewY(-7deg) scaleY(.94);clip-path:polygon(0 5%,34% 0,67% 5%,100% 0,100% 95%,67% 100%,34% 95%,0 100%); }
  50% { transform:skewY(7deg);clip-path:polygon(0 0,34% 5%,67% 0,100% 5%,100% 100%,67% 95%,34% 100%,0 95%); }
}
@media (prefers-reduced-motion:reduce) {
  .school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero::before,
  .school-theme-preview[data-school-motion]:not([data-school-motion="default"]) .school-theme-preview-hero::after { animation:none !important; }
}
@media print {
  body[data-school-theme][data-school-motion]::before,body[data-school-theme][data-school-motion]::after { display:none !important; }
}

.school-background-motifs { display:none; }

@media screen {
  :is(.sdn4-public-theme,.sdn4-login-theme)[data-school-motion]:not([data-school-motion="default"],[data-school-motion="off"])::before,
  :is(.sdn4-public-theme,.sdn4-login-theme)[data-school-motion]:not([data-school-motion="default"],[data-school-motion="off"])::after {
    display:none;
  }
  :is(.sdn4-public-theme,.sdn4-login-theme)[data-school-motion]:not([data-school-motion="default"],[data-school-motion="off"]) > .school-background-motifs,
  .sdn4-login-theme[data-school-motion="default"] > .school-background-motifs {
    display:block;
    position:fixed;
    inset:0;
    z-index:-1;
    overflow:hidden;
    pointer-events:none;
  }
  .sdn4-login-theme[data-school-motion="default"] > .school-background-motifs {
    --motion-first:"✦";
    --motion-second:"·";
    --motion-opacity:.36;
  }
  .school-background-motifs > span {
    --motif-edge:clamp(2rem,16vw,14rem);
    position:absolute;
    top:var(--motif-y);
    left:var(--motif-x);
    color:var(--sdn-accent);
    opacity:var(--motion-opacity);
    animation:school-public-motif-fall calc(14s + var(--motion-duration) + var(--motif-spread,0s)) linear infinite;
    animation-delay:var(--motif-delay,-2s);
  }
  .school-background-motifs > span::before {
    content:var(--motion-first) / "";
    display:block;
    width:var(--motion-width);
    aspect-ratio:var(--motion-ratio);
    background:var(--motion-paint);
    border-radius:var(--motion-radius);
    clip-path:var(--motion-clip);
    font:750 clamp(1rem,1.8vw,1.375rem)/1.25 system-ui,sans-serif;
    white-space:nowrap;
  }
  .school-background-motifs > span:nth-child(even) {
    animation-name:school-public-motif-drift;
    --motif-spread:4s;
  }
  .school-background-motifs > span:is(:nth-child(1),:nth-child(4),:nth-child(5),:nth-child(7),:nth-child(9),:nth-child(10),:nth-child(12),:nth-child(13),:nth-child(15)) {
    --motif-edge:clamp(-14rem,-16vw,-2rem);
  }
  :is(.sdn4-public-theme,.sdn4-login-theme):is([data-school-motion="awan"],[data-school-motion="angin"]) .school-background-motifs > span {
    animation-name:school-public-motif-drift;
  }
  .school-background-motifs > span:nth-child(even)::before {
    content:var(--motion-second) / "";
    width:var(--motion-width-second);
    background:var(--motion-paint-second);
  }
  .school-background-motifs > span:nth-child(1) { --motif-x:6%;--motif-y:14%;--motif-delay:-3s; }
  .school-background-motifs > span:nth-child(2) { --motif-x:57%;--motif-y:19%;--motif-delay:-9s; }
  .school-background-motifs > span:nth-child(3) { --motif-x:80%;--motif-y:27%;--motif-delay:-5s; }
  .school-background-motifs > span:nth-child(4) { --motif-x:30%;--motif-y:32%;--motif-delay:-12s; }
  .school-background-motifs > span:nth-child(5) { --motif-x:14%;--motif-y:50%;--motif-delay:-16s; }
  .school-background-motifs > span:nth-child(6) { --motif-x:64%;--motif-y:45%;--motif-delay:-4s; }
  .school-background-motifs > span:nth-child(7) { --motif-x:38%;--motif-y:62%;--motif-delay:-7s; }
  .school-background-motifs > span:nth-child(8) { --motif-x:74%;--motif-y:70%;--motif-delay:-19s; }
  .school-background-motifs > span:nth-child(9) { --motif-x:8%;--motif-y:82%;--motif-delay:-11s; }
  .school-background-motifs > span:nth-child(10) { --motif-x:49%;--motif-y:91%;--motif-delay:-23s; }
  .school-background-motifs > span:nth-child(11) { --motif-x:88%;--motif-y:86%;--motif-delay:-13s; }
  .school-background-motifs > span:nth-child(12) { --motif-x:23%;--motif-y:90%;--motif-delay:-17s; }
  .school-background-motifs > span:nth-child(13) { --motif-x:45%;--motif-y:12%;--motif-delay:-20s; }
  .school-background-motifs > span:nth-child(14) { --motif-x:91%;--motif-y:56%;--motif-delay:-24s; }
  .school-background-motifs > span:nth-child(15) { --motif-x:3%;--motif-y:67%;--motif-delay:-8s; }
  .school-background-motifs > span:nth-child(16) { --motif-x:54%;--motif-y:74%;--motif-delay:-15s; }
  [data-school-motion="merah-putih"] .school-background-motifs > span::before,
  [data-school-motion="hut-ri"] .school-background-motifs > span:nth-child(odd)::before {
    transform-origin:left center;
    animation:school-motif-wave 3.8s ease-in-out infinite;
    animation-delay:var(--motif-delay);
  }
}
@keyframes school-public-motif-fall {
  0% { transform:translate3d(0,-12vh,0);opacity:0; }
  16%,78% { opacity:var(--motion-opacity); }
  100% { transform:translate3d(var(--motif-edge),26vh,0);opacity:0; }
}
@keyframes school-public-motif-drift {
  0% { transform:translate3d(calc(var(--motif-edge) * -.4),-2vh,0);opacity:0; }
  18%,80% { opacity:var(--motion-opacity); }
  100% { transform:translate3d(var(--motif-edge),5vh,0);opacity:0; }
}
@media (max-width:600px) {
  .school-background-motifs > span:nth-child(n+11) { display:none; }
  .sdn4-login-theme .school-background-motifs > span:nth-child(odd) { --motif-x:1%;--motif-edge:-.8rem; }
  .sdn4-login-theme .school-background-motifs > span:nth-child(even) { --motif-x:92%;--motif-edge:.75rem; }
}
@media (prefers-reduced-motion:reduce) {
  .school-background-motifs > span,
  [data-school-motion="merah-putih"] .school-background-motifs > span::before,
  [data-school-motion="hut-ri"] .school-background-motifs > span:nth-child(odd)::before { animation:none; }
}

.school-language-switch {
  display:inline-flex;
  flex:none;
  align-items:center;
  gap:2px;
  padding:2px;
  border:1px solid var(--sdn-line,#d5e1ec);
  border-radius:9px;
  background:var(--sdn-surface,#fff);
  color:var(--sdn-ink,#183f42);
  font-size:.75rem;
  font-weight:700;
  white-space:nowrap;
}
.school-language-switch a,.school-language-current {
  display:inline-grid;
  place-items:center;
  min-width:28px;
  min-height:32px;
  padding:0 3px;
  border-radius:6px;
}
.school-language-switch a { color:inherit; }
.school-language-switch a:hover { text-decoration:underline; }
.school-language-current { background:var(--sdn-accent-deep,#185f87);color:#fff; }
.school-language-slot { display:flex;align-items:center; }
.login-language { margin-top:10px; }
