
@import url('https://fonts.googleapis.com/css2?family=DM+Sans:wght@400;500;600;700&family=Orbitron:wght@500;600;700;800&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&family=Rajdhani:wght@400;500;600;700&display=swap') ;
:root {
  --ink: #172b2a;
  --muted: #71817e;
  --teal: #0f766e;
  --teal-dark: #0b5e58;
  --mint: #dff4ef;
  --line: #e5ece9;
  --paper: #f7faf8;
  --white: #fff;
  --amber: #b7791f;
  --shadow: 0 16px 48px rgba(25,57,51,.08);
  --radius: 18px
}
* {
  box-sizing: border-box
}
html {
  scroll-behavior: smooth
}
body {
  margin: 0;
  background: var(--paper);
  color: var(--ink);
  font: 15px/1.6 'DM Sans',sans-serif
}
h1,h2,h3,strong,.brand {
  font-family: 'Plus Jakarta Sans',sans-serif
}
h1,h2,h3,p {
  margin-top: 0
}
h1 {
  font-size: clamp(2rem,4vw,3.35rem);
  line-height: 1.12;
  letter-spacing: -.045em
}
h2 {
  font-size: 1.45rem;
  line-height: 1.25;
  letter-spacing: -.025em
}
h3 {
  font-size: 1.08rem;
  line-height: 1.3
}
p {
  color: #687a76
}
.container {
  width: min(1160px,calc(100% - 48px));
  margin: 0 auto
}
.topbar {
  background: rgba(255,255,255,.94);
  border-bottom: 1px solid var(--line);
  position: sticky;
  top: 0;
  z-index: 20;
  backdrop-filter: blur(12px)
}
.topbar-inner {
  height: 78px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 24px
}
.brand {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
  color: var(--ink);
  font-size: 14px
}
.brand-mark {
  width: 42px;
  height: 42px;
  border-radius: 14px;
  background: var(--teal);
  color: white;
  display: grid;
  place-items: center;
  font-weight: 800;
  font-size: 22px;
  box-shadow: 0 7px 18px rgba(15,118,110,.18)
}
.brand small {
  display: block;
  color: var(--muted);
  font: 11px 'DM Sans',sans-serif;
  margin-top: 2px
}
.nav {
  display: flex;
  align-items: center;
  gap: 26px
}
.nav a {
  font-size: 13px;
  font-weight: 600;
  text-decoration: none;
  color: #52635f;
  transition: .2s
}
.nav a:hover {
  color: var(--teal)
}
.nav-logout {
  margin: 0
}
.nav .nav-logout-button {
  border: 0;
  background: transparent;
  padding: 0;
  color: #52635f;
  font: 600 13px 'DM Sans',sans-serif;
  cursor: pointer
}
.nav .nav-logout-button:hover {
  color: var(--teal)
}
.nav .nav-admin {
  border: 1px solid #c9ded8;
  padding: 9px 15px;
  border-radius: 10px;
  color: var(--teal)
}
.menu-toggle {
  display: none;
  border: 0;
  background: none;
  font-size: 22px;
  color: var(--ink)
}
.main-content {
  min-height: 65vh;
  padding-top: 28px;
  padding-bottom: 70px
}
.footer {
  background: #102d2a;
  color: #dceae6;
  padding: 32px 0
}
.footer-inner {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px
}
.footer p,.footer span {
  color: #a9bfba;
  font-size: 12px;
  margin: 4px 0 0
}
.footer strong {
  font-size: 14px
}
.hero {
  min-height: 460px;
  border-radius: 26px;
  overflow: hidden;
  background: linear-gradient(115deg,#104e49,#0e7770 66%,#1e8b7d);
  color: white;
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  align-items: center;
  padding: 65px 7%;
  position: relative
}
.hero:after {
  content: "";
  position: absolute;
  width: 460px;
  height: 460px;
  border: 1px solid rgba(255,255,255,.12);
  border-radius: 50%;
  right: 8%;
  top: -24%;
  box-shadow: 0 0 0 35px rgba(255,255,255,.025),0 0 0 75px rgba(255,255,255,.02)
}
.hero-copy {
  position: relative;
  z-index: 2;
  max-width: 585px
}
.eyebrow {
  display: block;
  letter-spacing: .15em;
  font-size: 10px;
  font-weight: 800;
  color: var(--teal);
  text-transform: uppercase;
  margin-bottom: 14px
}
.hero .eyebrow,.login-intro .eyebrow {
  color: #a8e5d5
}
.hero h1 {
  font-size: clamp(2.5rem,4.8vw,4.05rem);
  margin-bottom: 20px;
  color: white
}
.hero h1 em,.login-intro h1 em {
  font-style: normal;
  color: #a6e6d4
}
.hero-copy>p {
  color: #c8e5dc;
  max-width: 520px;
  font-size: 15px
}
.hero-actions {
  display: flex;
  gap: 12px;
  margin: 26px 0 22px
}
.btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  padding: 12px 19px;
  border-radius: 11px;
  border: 1px solid transparent;
  text-decoration: none;
  font: 700 13px 'Plus Jakarta Sans',sans-serif;
  cursor: pointer;
  transition: .18s;
  white-space: nowrap
}
.btn:hover {
  transform: translateY(-1px);
  filter: brightness(.98)
}
.btn.primary {
  background: var(--teal);
  color: white;
  box-shadow: 0 7px 18px rgba(15,118,110,.16)
}
.btn.primary:hover {
  background: var(--teal-dark)
}
.hero .btn.primary {
  background: #b7ead9;
  color: #12564e;
  box-shadow: none
}
.btn.outline-light {
  border-color: rgba(255,255,255,.3);
  color: white;
  background: rgba(255,255,255,.04)
}
.btn.outline {
  background: white;
  color: var(--teal);
  border-color: #c9ded8
}
.btn.white {
  background: white;
  color: var(--teal)
}
.btn.ghost {
  background: transparent;
  color: #657570
}
.btn.disabled {
  background: #507b75;
  color: #d4e5e0;
  cursor: not-allowed
}
.btn.full {
  width: 100%
}
.hero-meta {
  display: flex;
  gap: 10px;
  align-items: center;
  color: #b6d9d0;
  font-size: 11px
}
.dot {
  display: inline-block;
  width: 7px;
  height: 7px;
  background: #9de4bc;
  border-radius: 50%;
  margin-right: 7px
}
.hero-art {
  height: 320px;
  position: relative;
  z-index: 1;
  display: grid;
  place-items: center
}
.art-circle {
  position: absolute;
  border-radius: 50%;
  border: 1px solid rgba(255,255,255,.2)
}
.circle-one {
  width: 300px;
  height: 300px
}
.circle-two {
  width: 240px;
  height: 240px;
  background: rgba(255,255,255,.035)
}
.art-card {
  width: 215px;
  height: 255px;
  border-radius: 20px;
  background: linear-gradient(155deg,#f4fffa,#ccece0);
  color: #145a50;
  padding: 28px 23px;
  transform: rotate(5deg);
  box-shadow: 0 25px 45px rgba(0,0,0,.16);
  position: relative;
  z-index: 2
}
.art-icon {
  width: 43px;
  height: 43px;
  background: #1b8575;
  color: #d6f8e9;
  border-radius: 13px;
  display: grid;
  place-items: center;
  font-size: 23px;
  margin-bottom: 24px
}
.art-card strong {
  font-size: 20px;
  line-height: 1.3;
  display: block
}
.art-card>span {
  font-size: 9px;
  color: #4b8277;
  display: block;
  margin-top: 12px
}
.art-lines {
  margin-top: 20px;
  display: grid;
  gap: 7px
}
.art-lines i {
  height: 5px;
  background: #b4d9cd;
  border-radius: 6px
}
.art-lines i:nth-child(2) {
  width: 80%
}
.art-lines i:nth-child(3) {
  width: 58%
}
.floating-tag {
  position: absolute;
  background: white;
  color: #285f56;
  border-radius: 9px;
  padding: 9px 12px;
  font-size: 10px;
  font-weight: 700;
  box-shadow: 0 10px 24px rgba(0,0,0,.12);
  z-index: 3
}
.tag-top {
  top: 35px;
  right: -8px
}
.tag-bottom {
  bottom: 30px;
  left: 0
}
.stats-strip {
  margin: 0 auto 75px;
  background: white;
  border: 1px solid var(--line);
  border-radius: 0 0 18px 18px;
  display: grid;
  grid-template-columns: repeat(3,1fr);
  padding: 22px 8%;
  box-shadow: 0 10px 35px rgba(22,57,50,.035)
}
.stats-strip>div {
  display: flex;
  flex-direction: column;
  gap: 3px;
  border-right: 1px solid var(--line);
  padding-left: 28px
}
.stats-strip>div:last-child {
  border: 0
}
.stats-strip strong {
  font-size: 20px;
  color: #244d47
}
.stats-strip span {
  font-size: 11px;
  color: var(--muted)
}
.section {
  padding: 5px 0 65px
}
.section-heading {
  display: flex;
  align-items: end;
  justify-content: space-between;
  gap: 35px;
  margin-bottom: 27px
}
.section-heading h2 {
  font-size: 32px;
  margin-bottom: 0
}
.section-heading>p {
  max-width: 355px;
  font-size: 13px;
  margin-bottom: 3px
}
.service-grid {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 17px
}
.service-card {
  display: block;
  text-decoration: none;
  color: var(--ink);
  background: white;
  border: 1px solid var(--line);
  border-radius: 16px;
  padding: 25px;
  transition: .2s
}
.service-card:hover {
  transform: translateY(-4px);
  box-shadow: var(--shadow);
  border-color: #c5ded7
}
.service-icon {
  width: 43px;
  height: 43px;
  display: grid;
  place-items: center;
  border-radius: 13px;
  font-size: 20px;
  margin-bottom: 22px
}
.service-icon.teal {
  background: #e2f5ef;
  color: #168274
}
.service-icon.blue {
  background: #e9f1fb;
  color: #4678b5
}
.service-icon.amber {
  background: #fff4df;
  color: #b47a24
}
.service-card h3 {
  margin-bottom: 9px
}
.service-card p {
  font-size: 12px;
  min-height: 58px;
  margin-bottom: 17px
}
.service-card b {
  font-size: 11px;
  color: var(--teal)
}
.service-card b span {
  float: right
}
.guide-section {
  border-top: 1px solid var(--line);
  padding-top: 56px
}
.steps {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 24px
}
.step {
  border-top: 2px solid #cae3dc;
  padding-top: 18px
}
.step>span {
  font-weight: 800;
  color: var(--teal);
  font-size: 12px
}
.step h3 {
  margin: 9px 0 7px
}
.step p {
  font-size: 12px
}
.cta-band {
  border-radius: 18px;
  background: #e0f2ec;
  padding: 35px 42px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 22px
}
.cta-band h2 {
  font-size: 25px;
  margin: 0
}
.cta-band .eyebrow {
  margin-bottom: 8px
}
.page-heading {
  padding: 34px 0 25px;
  max-width: 720px
}
.page-heading h1 {
  font-size: 38px;
  margin-bottom: 11px
}
.page-heading p {
  font-size: 13px
}
.page-heading.center {
  text-align: center;
  margin: 10px auto 20px
}
.form-card,.admin-panel {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  box-shadow: 0 7px 28px rgba(24,55,49,.035)
}
.form-card {
  padding: 30px
}
.form-section {
  padding: 7px 0 29px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 27px
}
.form-section-title {
  display: flex;
  gap: 15px;
  align-items: start;
  margin-bottom: 22px
}
.form-section-title>span {
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 10px;
  background: #e4f4ef;
  color: var(--teal);
  display: grid;
  place-items: center;
  font-size: 12px;
  font-weight: 800
}
.form-section-title h2 {
  font-size: 17px;
  margin-bottom: 4px
}
.form-section-title p {
  font-size: 11px;
  margin: 0
}
.form-grid {
  display: grid;
  grid-template-columns: repeat(2,minmax(0,1fr));
  gap: 18px 20px
}
.form-grid label,.stack label,.status-form label {
  font-size: 12px;
  font-weight: 700;
  color: #405650;
  display: flex;
  flex-direction: column;
  gap: 7px
}
.form-grid .span-2 {
  grid-column: span 2
}
input:not([type="radio"]):not([type="checkbox"]),select,textarea {
  width: 100%;
  font: 13px 'DM Sans',sans-serif;
  color: var(--ink);
  background: #fbfdfc;
  border: 1px solid #dce6e2;
  border-radius: 9px;
  padding: 11px 12px;
  outline: none;
  min-height: 42px
}
textarea {
  resize: vertical;
  min-height: 80px
}
input:focus,select:focus,textarea:focus {
  border-color: #65a99b;
  box-shadow: 0 0 0 3px rgba(15,118,110,.09)
}
input[type=file] {
  padding: 9px
}
label small,.small {
  font-size: 11px;
  font-weight: 400;
  color: var(--muted)
}
.check-label {
  display: flex !important;
  flex-direction: row !important;
  align-items: flex-start;
  gap: 10px !important;
  font-weight: 500 !important;
  color: #526560 !important
}
.check-label input {
  width: 16px;
  min-height: 16px;
  height: 16px;
  margin-top: 2px;
  flex: none;
  accent-color: var(--teal)
}
.check-label span {
  font-size: 12px
}
.privacy-check {
  margin: 0 0 17px
}
.form-actions {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 25px
}
.form-actions p {
  max-width: 600px;
  margin: 0
}
.narrow {
  max-width: 660px;
  margin: 30px auto
}
.success-panel,.empty-state {
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 46px;
  text-align: center;
  box-shadow: var(--shadow)
}
.success-icon,.empty-icon {
  width: 54px;
  height: 54px;
  background: #e3f6ed;
  border-radius: 18px;
  display: grid;
  place-items: center;
  margin: 0 auto 20px;
  color: #17836d;
  font-size: 25px
}
.success-panel h1,.empty-state h1 {
  font-size: 30px
}
.success-panel>p {
  font-size: 13px
}
.registration-number {
  background: #eff8f4;
  border: 1px dashed #78b7a7;
  border-radius: 11px;
  padding: 17px;
  font: 800 24px 'Plus Jakarta Sans',sans-serif;
  letter-spacing: .08em;
  color: var(--teal);
  margin: 23px 0 14px
}
.success-panel .small {
  margin: 22px 0
}
.success-panel .btn {
  margin: 5px
}
.empty-state {
  padding: 55px 25px
}
.empty-state h3 {
  margin-bottom: 8px
}
.empty-state p {
  font-size: 12px
}
.empty-state.compact {
  padding: 35px 20px;
  box-shadow: none
}
.status-layout {
  display: grid;
  grid-template-columns: .8fr 1.2fr;
  gap: 22px;
  align-items: start;
  max-width: 900px;
  margin: 0 auto
}
.status-form {
  display: grid;
  gap: 18px
}
.status-result {
  min-height: 260px
}
.result-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 17px;
  padding: 25px;
  box-shadow: var(--shadow)
}
.result-card h2 {
  margin-bottom: 4px
}
.result-card>.muted {
  font-size: 11px
}
.result-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  border-top: 1px solid var(--line);
  padding: 13px 0;
  font-size: 12px
}
.result-row>span {
  color: var(--muted)
}
.result-row strong {
  font-size: 12px
}
.pill {
  display: inline-flex;
  align-items: center;
  padding: 5px 9px;
  border-radius: 20px;
  font-size: 10px;
  font-weight: 800;
  white-space: nowrap
}
.pill.success {
  background: #e3f7ed;
  color: #16734f
}
.pill.warning {
  background: #fff4dc;
  color: #966414
}
.pill.danger {
  background: #ffebeb;
  color: #b73d3d
}
.pill.secondary {
  background: #edf1ef;
  color: #687872
}
.note-box {
  background: #fff8e9;
  padding: 13px;
  border-radius: 10px;
  margin: 12px 0
}
.note-box strong {
  font-size: 11px
}
.note-box p {
  font-size: 12px;
  margin: 4px 0 0
}
.login-layout {
  display: grid;
  grid-template-columns: 1.1fr .9fr;
  gap: 60px;
  align-items: center;
  max-width: 940px;
  margin: 35px auto
}
.login-intro {
  min-height: 410px;
  border-radius: 20px;
  background: linear-gradient(145deg,#104c47,#0f766e);
  padding: 45px;
  color: white;
  position: relative;
  overflow: hidden
}
.login-intro h1 {
  font-size: 42px;
  color: white;
  margin: 25px 0 15px
}
.login-intro p {
  color: #c1e1d8;
  max-width: 370px
}
.login-art {
  position: absolute;
  right: 30px;
  bottom: -42px;
  font-size: 185px;
  color: rgba(255,255,255,.09)
}
.login-card {
  display: grid;
  gap: 16px;
  padding: 32px
}
.login-card h2 {
  margin: 0
}
.login-card>p {
  font-size: 12px;
  margin: -8px 0 8px
}
.back-link {
  text-decoration: none;
  text-align: center;
  color: var(--teal);
  font-size: 11px;
  font-weight: 700
}
.admin-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  padding: 18px 0 22px
}
.admin-heading h1 {
  font-size: 31px;
  margin-bottom: 6px
}
.admin-heading p {
  font-size: 12px;
  margin: 0
}
.admin-subnav {
  display: flex;
  align-items: center;
  gap: 23px;
  border-bottom: 1px solid var(--line);
  margin-bottom: 23px
}
.admin-subnav a {
  font-size: 12px;
  text-decoration: none;
  color: #75847f;
  padding: 0 0 13px;
  position: relative
}
.admin-subnav a.active {
  color: var(--teal);
  font-weight: 800
}
.admin-subnav a.active:after {
  content: "";
  position: absolute;
  bottom: -1px;
  left: 0;
  right: 0;
  height: 2px;
  background: var(--teal)
}
.metric-grid {
  display: grid;
  grid-template-columns: repeat(4,1fr);
  gap: 14px;
  margin-bottom: 22px
}
.metric-card {
  background: white;
  border: 1px solid var(--line);
  border-radius: 15px;
  padding: 19px;
  position: relative;
  overflow: hidden
}
.metric-card>span {
  display: block;
  font-size: 11px;
  color: var(--muted)
}
.metric-card>strong {
  display: block;
  font-size: 30px;
  margin: 10px 0 2px
}
.metric-card>small {
  font-size: 10px;
  color: #9aa8a3
}
.metric-symbol {
  position: absolute;
  right: 17px;
  top: 17px;
  width: 31px;
  height: 31px;
  border-radius: 10px;
  display: grid;
  place-items: center;
  font-style: normal
}
.metric-symbol.teal {
  background: #e1f5ee;
  color: #0f8575
}
.metric-symbol.amber {
  background: #fff4de;
  color: #b6802b
}
.metric-symbol.blue {
  background: #e8f0fb;
  color: #4f83ba
}
.metric-symbol.purple {
  background: #f1eaff;
  color: #8564b7
}
.admin-panel {
  padding: 23px;
  margin-bottom: 20px
}
.panel-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 15px;
  margin-bottom: 19px
}
.panel-heading h2 {
  font-size: 16px;
  margin-bottom: 4px
}
.panel-heading p {
  font-size: 11px;
  margin: 0
}
.text-link,.table-link {
  color: var(--teal);
  font-size: 11px;
  font-weight: 800;
  text-decoration: none;
  white-space: nowrap
}
.table-wrap {
  overflow: auto
}
table {
  border-collapse: collapse;
  width: 100%;
  min-width: 680px
}
th {
  text-align: left;
  color: #899893;
  font-size: 10px;
  text-transform: uppercase;
  letter-spacing: .06em;
  font-weight: 700;
  padding: 12px 13px;
  border-bottom: 1px solid var(--line);
  white-space: nowrap
}
td {
  font-size: 11px;
  padding: 14px 13px;
  border-bottom: 1px solid #eff3f1;
  vertical-align: middle
}
td strong {
  font-size: 11px
}
.cell-sub {
  display: block;
  color: #96a39e;
  font-size: 9px;
  margin-top: 3px
}
.filter-bar {
  display: flex;
  gap: 9px;
  margin-bottom: 17px
}
.filter-bar input {
  flex: 1;
  min-width: 160px
}
.filter-bar select {
  width: auto;
  min-width: 145px
}
.filter-bar .btn {
  padding: 10px 13px;
  font-size: 11px
}
.table-caption {
  font-size: 10px;
  color: #8b9994;
  margin-bottom: 7px
}
.detail-layout {
  display: grid;
  grid-template-columns: 1.2fr .8fr;
  gap: 18px;
  align-items: start
}
.detail-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 20px;
  padding: 5px 0
}
.detail-grid>div {
  min-width: 0
}
.detail-grid small,.photo-preview small {
  display: block;
  color: #91a09a;
  font-size: 10px;
  margin-bottom: 5px
}
.detail-grid strong {
  font-size: 12px;
  overflow-wrap: anywhere
}
.photo-preview {
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin-top: 15px
}
.photo-preview img {
  display: block;
  max-width: 180px;
  max-height: 220px;
  object-fit: contain;
  border: 1px solid var(--line);
  border-radius: 9px;
  margin-top: 10px
}
.decision-panel form {
  display: grid;
  gap: 17px
}
.current-status {
  border-top: 1px solid var(--line);
  margin-top: 20px;
  padding-top: 15px
}
.current-status>span {
  font-size: 10px;
  color: var(--muted)
}
.current-status p {
  display: flex;
  gap: 7px;
  flex-wrap: wrap;
  margin: 8px 0 0
}
.report-summary {
  display: grid;
  grid-template-columns: repeat(3,1fr);
  gap: 13px;
  margin-bottom: 18px
}
.report-summary>div {
  background: #e9f5f0;
  border-radius: 13px;
  padding: 18px
}
.report-summary span {
  display: block;
  color: #648078;
  font-size: 11px
}
.report-summary strong {
  display: block;
  font-size: 24px;
  color: #185f54;
  margin-top: 5px
}
.report-grid {
  display: grid;
  grid-template-columns: repeat(2,1fr);
  gap: 17px
}
.bar-row {
  margin: 14px 0
}
.bar-row>div:first-child {
  display: flex;
  justify-content: space-between;
  align-items: center;
  margin-bottom: 8px
}
.bar-row strong {
  font-size: 12px
}
.bar-track {
  height: 7px;
  background: #edf2ef;
  border-radius: 10px;
  overflow: hidden
}
.bar-track i {
  height: 100%;
  display: block;
  background: #2d9b85;
  border-radius: 10px
}
.settings-form {
  margin-bottom: 20px
}
.password-panel .form-grid {
  align-items: end
}
.password-submit {
  display: flex;
  align-items: end
}
.flash-wrap {
  padding-top: 12px
}
.alert {
  border-radius: 10px;
  padding: 12px 15px;
  font-size: 12px;
  margin: 0 0 12px
}
.alert.success {
  background: #e5f7ee;
  color: #176e4a
}
.alert.danger {
  background: #ffeded;
  color: #aa3737
}
.alert.warning {
  background: #fff5e1;
  color: #90651c
}
.muted {
  color: var(--muted)
}
.install-body {
  min-height: 100vh;
  display: grid;
  place-items: center;
  padding: 25px
}
.install-card {
  width: min(550px,100%);
  background: white;
  border: 1px solid var(--line);
  border-radius: 20px;
  padding: 35px;
  box-shadow: var(--shadow)
}
.install-card h1 {
  font-size: 31px;
  margin-bottom: 8px
}
.install-card>p {
  font-size: 12px
}
.install-card .brand-mark {
  margin-bottom: 20px
}
.install-card h2 {
  font-size: 15px;
  border-top: 1px solid var(--line);
  padding-top: 18px;
  margin: 8px 0 0
}
.stack {
  display: grid;
  gap: 14px
}
.stack input {
  display: block
}
.install-card .small {
  margin-top: 16px
}
@media(max-width:850px) {
  .hero {
    padding: 50px 5%;
    grid-template-columns: 1fr
  }
  .hero-art {
    display: none
  }
  .hero:after {
    right: -25%;
    top: 4%
  }
  .service-grid {
    gap: 12px
  }
  .service-card {
    padding: 19px
  }
  .metric-grid {
    grid-template-columns: repeat(2,1fr)
  }
  .detail-layout {
    grid-template-columns: 1fr
  }
  .login-layout {
    gap: 22px
  }
  .login-intro {
    padding: 30px
  }
  .login-intro h1 {
    font-size: 34px
  }
  .filter-bar {
    flex-wrap: wrap
  }
  .filter-bar input {
    flex-basis: 100%
  }
  .filter-bar select {
    flex: 1
  }
  .report-grid {
    grid-template-columns: 1fr
  }
}
@media(max-width:620px) {
  .container {
    width: min(100% - 30px,1160px)
  }
  .topbar-inner {
    height: 68px
  }
  .menu-toggle {
    display: block
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    background: white;
    border-bottom: 1px solid var(--line);
    padding: 16px 22px 20px;
    flex-direction: column;
    align-items: flex-start;
    gap: 17px
  }
  .nav-open .nav {
    display: flex
  }
  .brand {
    font-size: 12px
  }
  .brand-mark {
    width: 38px;
    height: 38px
  }
  .main-content {
    padding-top: 18px;
    padding-bottom: 45px
  }
  .hero {
    min-height: auto;
    padding: 42px 25px;
    border-radius: 19px
  }
  .hero h1 {
    font-size: 37px
  }
  .hero-copy>p {
    font-size: 13px
  }
  .hero-actions {
    flex-wrap: wrap
  }
  .stats-strip {
    margin-bottom: 49px;
    padding: 17px 10px
  }
  .stats-strip>div {
    padding: 0 8px
  }
  .stats-strip strong {
    font-size: 15px
  }
  .stats-strip span {
    font-size: 9px
  }
  .section {
    padding-bottom: 45px
  }
  .section-heading {
    display: block
  }
  .section-heading h2 {
    font-size: 26px
  }
  .section-heading>p {
    margin-top: 13px
  }
  .service-grid {
    grid-template-columns: 1fr
  }
  .service-card p {
    min-height: 0
  }
  .steps {
    grid-template-columns: repeat(2,1fr);
    gap: 18px
  }
  .cta-band {
    display: block;
    padding: 28px 23px
  }
  .cta-band h2 {
    font-size: 22px;
    margin-bottom: 20px
  }
  .page-heading {
    padding-top: 25px
  }
  .page-heading h1 {
    font-size: 30px
  }
  .form-card {
    padding: 20px
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 15px
  }
  .form-grid .span-2 {
    grid-column: span 1
  }
  .form-actions {
    display: grid
  }
  .form-actions .btn {
    width: 100%
  }
  .status-layout {
    grid-template-columns: 1fr
  }
  .status-result {
    min-height: 0
  }
  .login-layout {
    grid-template-columns: 1fr;
    margin: 15px auto
  }
  .login-intro {
    min-height: 270px
  }
  .login-art {
    font-size: 120px
  }
  .login-card {
    padding: 23px
  }
  .admin-heading {
    display: block
  }
  .admin-heading .btn {
    margin-top: 15px
  }
  .admin-heading h1 {
    font-size: 26px
  }
  .admin-subnav {
    gap: 17px;
    overflow: auto;
    white-space: nowrap
  }
  .admin-subnav a {
    font-size: 11px
  }
  .metric-grid {
    gap: 9px
  }
  .metric-card {
    padding: 14px
  }
  .metric-card>strong {
    font-size: 25px
  }
  .metric-card>small {
    font-size: 9px
  }
  .admin-panel {
    padding: 16px
  }
  .filter-bar select {
    min-width: calc(50% - 6px)
  }
  .filter-bar .btn {
    flex: 1
  }
  .detail-grid {
    grid-template-columns: 1fr 1fr;
    gap: 15px
  }
  .report-summary {
    grid-template-columns: 1fr
  }
  .report-summary>div {
    padding: 14px
  }
  .report-summary strong {
    font-size: 21px
  }
  .footer-inner {
    display: block
  }
  .footer-inner>span {
    display: block;
    margin-top: 12px
  }
  .success-panel {
    padding: 31px 18px
  }
  .registration-number {
    font-size: 20px
  }
  .install-card {
    padding: 24px
  }
}
.edit-grid label {
  display: flex;
  flex-direction: column;
  gap: 7px;
  min-width: 0;
  color: #788982;
  font-size: 10px;
  font-weight: 700
}
.edit-grid label input,.edit-grid label select,.edit-grid label textarea {
  min-height: 38px;
  padding: 9px;
  font-size: 12px
}
.edit-grid .span-2 {
  grid-column: span 2
}
.edit-grid label input:disabled {
  color: #7d8d87;
  background: #f1f5f2
}
/* Referensi visual portal PMBM: dark navy dengan aksen neon cyan/hijau/magenta. */
.landing-body {
  min-height: 100vh;
  background: #080d18;
  color: #eaf5ff;
  font-family: 'Rajdhani','DM Sans',sans-serif;
  letter-spacing: .01em
}
.landing-body h1,.landing-body h2,.landing-body h3,.landing-body strong,.landing-body .brand {
  font-family: 'Orbitron','Plus Jakarta Sans',sans-serif
}
.landing-header {
  background: #080d18;
  border-bottom: 1px solid rgba(65,217,224,.14);
  box-shadow: 0 8px 25px rgba(0,0,0,.16)
}
.landing-header-inner {
  width: min(980px,calc(100% - 44px));
  min-height: 103px;
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 18px
}
.landing-brand {
  display: flex;
  align-items: center;
  gap: 14px;
  text-decoration: none;
  color: #eaffff;
  min-width: 0
}
.landing-logo {
  width: 58px;
  height: 58px;
  flex: none;
  display: grid;
  place-items: center;
  filter: drop-shadow(0 0 12px rgba(40,243,204,.18))
}
.landing-logo svg {
  display: block;
  width: 100%;
  height: 100%
}
.landing-brand-copy {
  display: grid;
  gap: 3px;
  min-width: 0
}
.landing-brand-copy strong {
  font-size: clamp(14px,2.2vw,21px);
  font-weight: 800;
  letter-spacing: .035em;
  color: #27e9ef;
  line-height: 1.3;
  text-shadow: 0 0 13px rgba(39,233,239,.22)
}
.landing-brand-copy small {
  font: 700 11px 'Rajdhani',sans-serif;
  color: #e1eaf2;
  letter-spacing: .11em
}
.landing-brand-copy .landing-year {
  font-size: 10px;
  color: #8396a8;
  letter-spacing: .13em
}
.landing-admin-link {
  font: 700 10px 'Orbitron',sans-serif;
  color: #768a9e;
  text-decoration: none;
  letter-spacing: .08em;
  border: 1px solid rgba(127,161,191,.17);
  padding: 8px 10px;
  border-radius: 5px;
  white-space: nowrap
}
.landing-admin-link:hover {
  color: #2ef5d1;
  border-color: rgba(46,245,209,.55)
}
.landing-content {
  width: min(980px,calc(100% - 44px));
  margin: 0 auto;
  min-height: calc(100vh - 167px);
  padding: 28px 0 50px
}
.landing-sections {
  display: grid;
  gap: 40px;
  padding-top: 5px
}
.landing-feature {
  display: grid;
  grid-template-columns: 132px minmax(0,1fr);
  gap: 26px;
  align-items: center;
  min-height: 102px
}
.landing-feature-art {
  width: 90px;
  height: 90px;
  justify-self: center;
  position: relative;
  display: grid;
  place-items: center;
  border-radius: 50%;
  background: radial-gradient(circle at 50% 45%,rgba(46,255,212,.19),rgba(21,48,68,.42) 62%,rgba(8,13,24,0) 73%);
  filter: drop-shadow(0 0 15px rgba(30,255,220,.12))
}
.landing-feature-art span {
  font-size: 48px;
  line-height: 1;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.45));
  z-index: 1
}
.landing-feature-art svg {
  position: relative;
  z-index: 1;
  width: 82px;
  height: 82px;
  filter: drop-shadow(0 5px 9px rgba(0,0,0,.45))
}
.landing-feature-art i {
  position: absolute;
  width: 54px;
  height: 54px;
  border: 1px solid rgba(49,235,207,.25);
  border-radius: 50%;
  transform: rotate(-25deg) scaleX(1.35)
}
.art-register {
  background: radial-gradient(circle,rgba(0,255,113,.18),rgba(15,54,53,.38) 61%,transparent 75%)
}
.art-register i {
  border-color: rgba(0,255,125,.29)
}
.art-status {
  background: radial-gradient(circle,rgba(255,0,168,.16),rgba(50,24,59,.38) 61%,transparent 75%)
}
.art-status i {
  border-color: rgba(255,0,168,.28)
}
.landing-feature-copy {
  min-width: 0
}
.landing-feature-copy h2 {
  font-size: clamp(17px,2.2vw,22px);
  line-height: 1.35;
  margin: 0 0 4px;
  letter-spacing: .035em;
  font-weight: 800;
  color: #21e8f0;
  text-shadow: 0 0 12px rgba(33,232,240,.18)
}
.feature-register .landing-feature-copy h2 {
  color: #00ff76;
  text-shadow: 0 0 13px rgba(0,255,118,.16)
}
.feature-status .landing-feature-copy h2 {
  color: #f000a8;
  text-shadow: 0 0 13px rgba(240,0,168,.18)
}
.landing-feature-copy p {
  font: 500 15px/1.5 'Rajdhani',sans-serif;
  letter-spacing: .015em;
  color: #d2dbe8;
  margin: 0 0 10px;
  max-width: 770px
}
.neon-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 9px;
  min-height: 40px;
  border: 0;
  border-radius: 5px;
  padding: 9px 16px;
  text-decoration: none;
  font: 700 13px 'Orbitron','Rajdhani',sans-serif;
  letter-spacing: .025em;
  cursor: pointer;
  transition: transform .15s ease,filter .15s ease,box-shadow .15s ease;
  white-space: normal;
  text-align: center
}
.neon-button:hover {
  transform: translateY(-1px);
  filter: brightness(1.08)
}
.neon-blue {
  background: linear-gradient(110deg,#1676f3,#5aa8ff);
  color: white;
  box-shadow: 0 0 18px rgba(26,120,247,.23)
}
.neon-green {
  background: linear-gradient(110deg,#00c982,#26f47f);
  color: #06251d;
  box-shadow: 0 0 18px rgba(0,255,129,.22)
}
.neon-muted {
  background: #253246;
  color: #7f91a9;
  cursor: not-allowed;
  box-shadow: none
}
.landing-status-search {
  display: grid;
  grid-template-columns: minmax(0,1fr) auto;
  gap: 5px;
  align-items: stretch;
  max-width: 770px;
  padding: 4px;
  background: rgba(13,23,42,.94);
  border: 1px solid rgba(235,0,172,.23);
  box-shadow: 0 0 0 1px rgba(0,255,125,.05),0 0 16px rgba(239,0,166,.08);
  border-radius: 6px
}
.landing-status-search input {
  min-width: 0;
  min-height: 39px;
  border: 1px solid rgba(111,143,182,.1);
  border-radius: 4px;
  background: #0d1729;
  color: #f1fbff;
  padding: 9px 13px;
  font: 600 14px 'Rajdhani',sans-serif;
  letter-spacing: .04em;
  box-shadow: none
}
.landing-status-search input::placeholder {
  color: #75869c
}
.landing-status-search input:focus {
  border-color: #20e8ce;
  box-shadow: 0 0 0 2px rgba(32,232,206,.12)
}
.landing-status-search .neon-button {
  min-width: 138px
}
.landing-secondary-link {
  display: inline-block;
  margin-top: 7px;
  color: #71879c;
  text-decoration: none;
  font: 600 11px 'Rajdhani',sans-serif
}
.landing-secondary-link:hover {
  color: #2beed6
}
.sr-only {
  position: absolute !important;
  width: 1px;
  height: 1px;
  padding: 0;
  margin: -1px;
  overflow: hidden;
  clip: rect(0,0,0,0);
  white-space: nowrap;
  border: 0
}
.landing-footer {
  min-height: 64px;
  border-top: 1px solid rgba(76,102,130,.12);
  display: flex;
  justify-content: center;
  align-items: center;
  padding: 14px 20px;
  color: #607287;
  text-align: center;
  font: 500 11px 'Rajdhani',sans-serif;
  letter-spacing: .08em
}
.landing-footer strong {
  font-family: 'Orbitron',sans-serif;
  font-size: 10px;
  color: #2de7df
}
.landing-body .flash-wrap {
  width: min(980px,calc(100% - 44px));
  padding-top: 12px
}
.landing-body .alert {
  background: #162c36;
  color: #c9fff0;
  border: 1px solid rgba(0,255,130,.23)
}
.landing-dialog {
  width: min(600px,calc(100% - 26px));
  max-width: 600px;
  max-height: 88vh;
  padding: 0;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: #18212a;
  box-shadow: 0 25px 90px rgba(0,0,0,.6);
  overflow: hidden
}
.landing-dialog::backdrop {
  background: rgba(0,0,0,.76);
  backdrop-filter: blur(2px)
}
.dialog-header {
  position: sticky;
  top: 0;
  z-index: 2;
  min-height: 52px;
  padding: 13px 16px;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  background: #fff;
  border-bottom: 1px solid #e8ebef
}
.dialog-header h2 {
  font: 700 14px 'Rajdhani',sans-serif;
  letter-spacing: .015em;
  color: #17222e;
  margin: 0
}
.dialog-close {
  width: 28px;
  height: 28px;
  border: 0;
  background: transparent;
  color: #637080;
  font: 400 26px/1 'Rajdhani',sans-serif;
  cursor: pointer;
  flex: none
}
.dialog-close:hover {
  color: #df2781
}
.dialog-content {
  max-height: calc(88vh - 53px);
  overflow-y: auto;
  padding: 14px 17px 18px;
  overscroll-behavior: contain
}
.registration-dialog .form-card {
  padding: 0;
  border: 0;
  border-radius: 0;
  box-shadow: none;
  background: #fff
}
.registration-dialog .form-section {
  padding: 4px 0 18px;
  margin-bottom: 16px;
  border-bottom: 1px solid #edf0f3
}
.registration-dialog .form-section-title {
  gap: 9px;
  align-items: center;
  margin-bottom: 13px
}
.registration-dialog .form-section-title>span {
  width: 4px;
  height: 22px;
  border-radius: 2px;
  background: #28c8c4;
  color: transparent;
  font-size: 0
}
.registration-dialog .form-section-title h2 {
  font: 700 13px 'Rajdhani',sans-serif;
  color: #263240;
  margin: 0 0 2px
}
.registration-dialog .form-section-title p {
  font: 500 11px 'Rajdhani',sans-serif;
  color: #89939e;
  margin: 0
}
.registration-dialog .form-grid {
  gap: 13px 14px
}
.registration-dialog .form-grid label,.registration-dialog .field-group,.registration-dialog .upload-field {
  font: 600 11px 'Rajdhani',sans-serif;
  color: #3b4652;
  gap: 5px
}
.registration-dialog input:not([type=checkbox]):not([type=radio]),.registration-dialog select,.registration-dialog textarea {
  min-height: 38px;
  padding: 8px 10px;
  border: 1px solid #e3e7eb;
  border-radius: 4px;
  background: #fafbfc;
  color: #26313e;
  font: 500 12px 'Rajdhani',sans-serif;
  box-shadow: none
}
.registration-dialog textarea {
  min-height: 72px
}
.registration-dialog input:focus,.registration-dialog select:focus,.registration-dialog textarea:focus {
  border-color: #78b6eb;
  box-shadow: 0 0 0 2px rgba(54,145,226,.1)
}
.registration-dialog .form-grid label small,.registration-dialog .upload-field small {
  color: #89939e;
  font: 500 10px 'Rajdhani',sans-serif
}
.registration-dialog .field-label {
  font-weight: 700;
  color: #3b4652
}
.registration-dialog .field-group {
  display: flex;
  flex-direction: column;
  gap: 5px
}
.registration-dialog .gender-options {
  display: flex;
  gap: 22px;
  align-items: center;
  min-height: 34px;
  color: #3f4b59
}
.registration-dialog .gender-options label {
  display: inline-flex;
  align-items: center;
  gap: 6px;
  font-size: 12px
}
.registration-dialog .gender-options input,.registration-dialog .check-label input {
  width: 14px;
  height: 14px;
  min-height: 0;
  accent-color: #1e9c86
}
.registration-dialog .check-label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  font: 500 11px 'Rajdhani',sans-serif;
  color: #43505c
}
.registration-dialog .check-label input {
  flex: none;
  margin: 2px 0 0
}
.registration-dialog .upload-field {
  display: flex;
  flex-direction: column;
  gap: 7px
}
.registration-dialog input[type=file] {
  padding: 7px;
  background: #fff
}
.registration-dialog .form-actions {
  display: grid;
  gap: 9px;
  margin: 0;
  padding: 3px 0 0;
  border: 0
}
.registration-dialog .form-actions .small {
  font: 500 10px 'Rajdhani',sans-serif;
  margin: 0;
  color: #81909e
}
.registration-dialog .form-actions .btn {
  justify-self: end;
  border-radius: 4px;
  padding: 10px 15px;
  font: 700 12px 'Rajdhani',sans-serif;
  background: #3994ed;
  color: #fff;
  box-shadow: none
}
.registration-dialog .privacy-check {
  padding: 9px;
  background: #f7f9fb;
  border: 1px solid #edf0f3;
  border-radius: 5px
}
.status-dialog {
  width: min(440px,calc(100% - 26px))
}
.status-modal-form {
  display: grid;
  gap: 14px;
  padding: 5px 2px
}
.status-modal-form p {
  font: 500 13px 'Rajdhani',sans-serif;
  color: #647182;
  margin: 0
}
.status-modal-form label {
  display: grid;
  gap: 6px;
  font: 700 12px 'Rajdhani',sans-serif;
  color: #344152
}
.status-modal-form input {
  background: #f9fafc;
  color: #172334;
  border: 1px solid #dfe5eb;
  border-radius: 5px
}
.status-modal-form .neon-button {
  justify-self: end
}
.guide-content-card {
  max-width: 820px;
  padding: 28px;
  background: #fff;
  border: 1px solid var(--line);
  border-radius: 16px;
  box-shadow: var(--shadow)
}
.guide-content-card h2 {
  margin: 10px 0 10px;
  font-size: 19px;
  color: #203e39
}
.guide-content-card li,.guide-content-card p {
  font-size: 13px;
  color: #5e6f69
}
.guide-content-card li {
  padding: 4px 0
}
.guide-note {
  margin: 20px 0;
  padding: 14px;
  background: #fff8e9;
  border-radius: 9px
}
@media(max-width:700px) {
  .landing-header-inner {
    width: calc(100% - 28px);
    min-height: 86px
  }
  .landing-logo {
    width: 47px;
    height: 47px
  }
  .landing-brand {
    gap: 9px
  }
  .landing-brand-copy strong {
    font-size: 12px;
    line-height: 1.35
  }
  .landing-brand-copy small {
    font-size: 9px
  }
  .landing-brand-copy .landing-year {
    font-size: 8px
  }
  .landing-admin-link {
    font-size: 8px;
    padding: 7px
  }
  .landing-content {
    width: calc(100% - 30px);
    padding: 22px 0 38px;
    min-height: calc(100vh - 150px)
  }
  .landing-sections {
    gap: 32px
  }
  .landing-feature {
    grid-template-columns: 72px minmax(0,1fr);
    gap: 13px;
    align-items: start;
    min-height: 0
  }
  .landing-feature-art {
    width: 67px;
    height: 67px;
    margin-top: 4px
  }
  .landing-feature-art span {
    font-size: 36px
  }
  .landing-feature-art svg {
    width: 62px;
    height: 62px
  }
  .landing-feature-art i {
    width: 42px;
    height: 42px
  }
  .landing-feature-copy h2 {
    font-size: 15px
  }
  .landing-feature-copy p {
    font-size: 13px;
    line-height: 1.45
  }
  .neon-button {
    font-size: 10px;
    padding: 9px 11px;
    min-height: 37px
  }
  .landing-status-search {
    grid-template-columns: 1fr;
    gap: 6px
  }
  .landing-status-search .neon-button {
    width: 100%
  }
  .landing-dialog {
    max-height: 92vh
  }
  .dialog-content {
    max-height: calc(92vh - 53px);
    padding: 12px
  }
  .dialog-header h2 {
    font-size: 12px
  }
  .registration-dialog .form-grid {
    grid-template-columns: 1fr;
    gap: 12px
  }
  .registration-dialog .form-grid .span-2 {
    grid-column: span 1
  }
  .registration-dialog .form-actions .btn {
    width: 100%
  }
}
@media(max-width:390px) {
  .landing-admin-link {
    display: none
  }
  .landing-feature {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 10px
  }
  .landing-feature-art {
    width: 55px;
    height: 55px
  }
  .landing-feature-art span {
    font-size: 29px
  }
  .landing-feature-art svg {
    width: 52px;
    height: 52px
  }
}
/* --------------------------------------------------------------------------
   Theme system and responsive refinements (PHP 7.4+; plain CSS, no framework)
   Default appearance follows the supplied video: dark navy + neon accents.
   -------------------------------------------------------------------------- */
:root {
  color-scheme: light;
  --ink: #172b2a;
  --muted: #71817e;
  --teal: #0f766e;
  --teal-dark: #0b5e58;
  --mint: #dff4ef;
  --line: #e5ece9;
  --paper: #f7faf8;
  --white: #ffffff;
  --amber: #b7791f;
  --shadow: 0 16px 48px rgba(25,57,51,.08);
  --radius: 18px;
}
:root[data-theme="dark"] {
  color-scheme: dark;
  --ink: #e7eff9;
  --muted: #9aaabd;
  --teal: #46c9bd;
  --teal-dark: #2ca99f;
  --mint: #163b3a;
  --line: #27364a;
  --paper: #0b1220;
  --white: #121d2d;
  --amber: #e8b65f;
  --shadow: 0 18px 48px rgba(0,0,0,.24);
}
html {
  -webkit-text-size-adjust: 100%;
}
body {
  background: var(--paper);
  color: var(--ink);
}
button, input, select, textarea {
  font: inherit;
}
button, a, input, select, textarea {
  -webkit-tap-highlight-color: transparent;
}
button:focus-visible, a:focus-visible, input:focus-visible, select:focus-visible, textarea:focus-visible {
  outline: 3px solid rgba(39,190,190,.42);
  outline-offset: 2px;
}
/* Shared theme control */
.landing-header-actions, .topbar-actions {
  display: flex;
  align-items: center;
  gap: 10px;
  flex: none;
}
.theme-toggle {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  min-height: 38px;
  padding: 7px 11px;
  border-radius: 7px;
  border: 1px solid rgba(130,158,184,.30);
  background: rgba(14,27,44,.78);
  color: #dbe9f5;
  font: 700 10px 'Rajdhani',sans-serif;
  letter-spacing: .06em;
  cursor: pointer;
  transition: background .18s ease,border-color .18s ease,transform .18s ease;
}
.theme-toggle:hover {
  border-color: #39d6d2;
  transform: translateY(-1px);
}
.theme-toggle-icon {
  font-size: 16px;
  line-height: 1;
}
.theme-toggle-label {
  text-transform: uppercase;
}
.topbar .theme-toggle {
  background: var(--white);
  border-color: var(--line);
  color: var(--ink);
  font: 700 11px 'DM Sans',sans-serif;
}
/* Dark/light treatment for the original portal-like landing page */
.landing-body {
  min-height: 100vh;
  background: #080d18;
  color: #eaf5ff;
}
:root[data-theme="light"] .landing-body {
  background: #f4f8fc;
  color: #172b3e;
}
:root[data-theme="light"] .landing-header {
  background: #ffffff;
  border-bottom-color: #dbe6ed;
  box-shadow: 0 5px 20px rgba(29,57,81,.07);
}
:root[data-theme="light"] .landing-brand {
  color: #172b3e;
}
:root[data-theme="light"] .landing-brand-copy strong {
  color: #087f96;
  text-shadow: none;
}
:root[data-theme="light"] .landing-brand-copy small {
  color: #41546a;
}
:root[data-theme="light"] .landing-brand-copy .landing-year {
  color: #718096;
}
:root[data-theme="light"] .landing-admin-link {
  color: #38536a;
  border-color: #d5e1e9;
}
:root[data-theme="light"] .landing-admin-link:hover {
  color: #087f96;
  border-color: #55b9c4;
}
:root[data-theme="light"] .landing-body .theme-toggle {
  background: #f7fafc;
  color: #274057;
  border-color: #d7e3eb;
}
:root[data-theme="light"] .landing-content {
  background-image: linear-gradient(rgba(60,105,135,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(60,105,135,.045) 1px,transparent 1px);
  background-size: 28px 28px;
}
:root[data-theme="light"] .landing-feature-copy h2 {
  color: #087f96;
  text-shadow: none;
}
:root[data-theme="light"] .feature-register .landing-feature-copy h2 {
  color: #07834c;
  text-shadow: none;
}
:root[data-theme="light"] .feature-status .landing-feature-copy h2 {
  color: #b21a7d;
  text-shadow: none;
}
:root[data-theme="light"] .landing-feature-copy p {
  color: #46586c;
}
:root[data-theme="light"] .landing-secondary-link {
  color: #63778a;
}
:root[data-theme="light"] .landing-footer {
  color: #66788a;
  border-top-color: #dce6ed;
  background: #f8fbfd;
}
:root[data-theme="light"] .landing-footer strong {
  color: #087f96;
}
:root[data-theme="light"] .landing-status-search {
  background: #fff;
  border-color: #e4c8df;
  box-shadow: 0 5px 16px rgba(44,69,92,.06);
}
:root[data-theme="light"] .landing-status-search input {
  background: #f8fbfd;
  color: #1d3044;
  border-color: #e0e8ef;
}
:root[data-theme="light"] .landing-status-search input::placeholder {
  color: #8a9aab;
}
:root[data-theme="light"] .landing-body .flash-wrap .alert {
  background: #e7f7f0;
  color: #176747;
  border-color: #c5ebd8;
}
/* Preserve the white, legible registration modal in both themes, as in the video. */
.landing-dialog {
  overscroll-behavior: contain;
}
.dialog-content {
  -webkit-overflow-scrolling: touch;
}
.registration-dialog .form-card {
  color: #26313e;
}
.registration-dialog input, .registration-dialog select, .registration-dialog textarea {
  color: #26313e;
}
/* App pages: consistent light palette */
:root[data-theme="light"] .topbar {
  background: rgba(255,255,255,.95);
}
:root[data-theme="light"] .nav a, :root[data-theme="light"] .nav .nav-logout-button {
  color: #52635f;
}
:root[data-theme="light"] .form-card, :root[data-theme="light"] .admin-panel,
:root[data-theme="light"] .metric-card, :root[data-theme="light"] .result-card,
:root[data-theme="light"] .success-panel, :root[data-theme="light"] .empty-state,
:root[data-theme="light"] .install-card, :root[data-theme="light"] .guide-content-card {
  background: #fff;
}
/* App pages: dark palette for admin, login, status, guide and registration pages */
:root[data-theme="dark"] body:not(.landing-body) {
  background: #0b1220;
  color: #e7eff9;
}
:root[data-theme="dark"] .topbar {
  background: rgba(15,25,40,.96);
  border-bottom-color: #27364a;
}
:root[data-theme="dark"] .brand {
  color: #e7eff9;
}
:root[data-theme="dark"] .brand small {
  color: #9aaabd;
}
:root[data-theme="dark"] .nav a, :root[data-theme="dark"] .nav .nav-logout-button {
  color: #c1cede;
}
:root[data-theme="dark"] .nav .nav-admin {
  border-color: #315b60;
  color: #75dbd0;
}
:root[data-theme="dark"] .nav .nav-logout-button:hover, :root[data-theme="dark"] .nav a:hover {
  color: #6fe0d3;
}
:root[data-theme="dark"] .nav {
  background: transparent;
}
:root[data-theme="dark"] .menu-toggle {
  color: #e7eff9;
}
:root[data-theme="dark"] .form-card, :root[data-theme="dark"] .admin-panel,
:root[data-theme="dark"] .metric-card, :root[data-theme="dark"] .result-card,
:root[data-theme="dark"] .success-panel, :root[data-theme="dark"] .empty-state,
:root[data-theme="dark"] .install-card, :root[data-theme="dark"] .guide-content-card {
  background: #121d2d;
  border-color: #27364a;
  color: #e7eff9;
  box-shadow: 0 12px 32px rgba(0,0,0,.18);
}
:root[data-theme="dark"] p, :root[data-theme="dark"] .page-heading p,
:root[data-theme="dark"] .admin-heading p, :root[data-theme="dark"] .panel-heading p,
:root[data-theme="dark"] .guide-content-card li, :root[data-theme="dark"] .guide-content-card p {
  color: #a8b6c8;
}
:root[data-theme="dark"] h1, :root[data-theme="dark"] h2, :root[data-theme="dark"] h3,
:root[data-theme="dark"] .form-section-title h2, :root[data-theme="dark"] .panel-heading h2 {
  color: #e7eff9;
}
:root[data-theme="dark"] .form-section, :root[data-theme="dark"] .admin-subnav,
:root[data-theme="dark"] td, :root[data-theme="dark"] th,
:root[data-theme="dark"] .result-row {
  border-color: #29384c;
}
:root[data-theme="dark"] .admin-subnav a {
  color: #9aaabd;
}
:root[data-theme="dark"] .form-grid label, :root[data-theme="dark"] .stack label,
:root[data-theme="dark"] .status-form label, :root[data-theme="dark"] .field-label {
  color: #c3d0df;
}
:root[data-theme="dark"] input:not([type=checkbox]):not([type=radio]),
:root[data-theme="dark"] select, :root[data-theme="dark"] textarea {
  background: #0c1625;
  color: #e7eff9;
  border-color: #35465c;
}
:root[data-theme="dark"] input::placeholder, :root[data-theme="dark"] textarea::placeholder {
  color: #8292a6;
}
:root[data-theme="dark"] input[type=file] {
  color: #c4d0de;
}
:root[data-theme="dark"] .btn.outline {
  background: #17263a;
  color: #8ce1d6;
  border-color: #365a61;
}
:root[data-theme="dark"] .btn.ghost {
  color: #bdc9d8;
}
:root[data-theme="dark"] .stats-strip, :root[data-theme="dark"] .service-card {
  background: #121d2d;
  border-color: #27364a;
  color: #e7eff9;
}
:root[data-theme="dark"] .service-card p, :root[data-theme="dark"] .step p {
  color: #a8b6c8;
}
:root[data-theme="dark"] .guide-section {
  border-color: #29384c;
}
:root[data-theme="dark"] .step {
  border-color: #315d5b;
}
:root[data-theme="dark"] .cta-band {
  background: #153b38;
}
:root[data-theme="dark"] .cta-band h2 {
  color: #e7eff9;
}
:root[data-theme="dark"] .table-caption, :root[data-theme="dark"] th {
  color: #98a8bb;
}
:root[data-theme="dark"] td {
  color: #d6e0ec;
}
:root[data-theme="dark"] .cell-sub {
  color: #91a2b6;
}
:root[data-theme="dark"] .note-box, :root[data-theme="dark"] .guide-note {
  background: #2a261c;
  color: #f0d9a7;
}
:root[data-theme="dark"] .login-card {
  background: #121d2d;
}
:root[data-theme="dark"] .login-intro {
  border-color: #315c59;
}
:root[data-theme="dark"] .footer {
  background: #07101c;
  border-top: 1px solid #263447;
}
:root[data-theme="dark"] .footer p, :root[data-theme="dark"] .footer span {
  color: #9aaabd;
}
:root[data-theme="dark"] .alert.success {
  background: #12382d;
  color: #a8f0cf;
}
:root[data-theme="dark"] .alert.warning {
  background: #3a2d16;
  color: #f2d28e;
}
:root[data-theme="dark"] .alert.danger {
  background: #421f26;
  color: #ffb9c2;
}
:root[data-theme="dark"] .muted, :root[data-theme="dark"] label small,
:root[data-theme="dark"] .small {
  color: #9aaabd;
}
:root[data-theme="dark"] .landing-dialog {
  color: #18212a;
}
/* Tablet and mobile refinements */
@media (max-width: 850px) {
  .container {
    width: min(100% - 34px,1160px);
  }
  .admin-subnav {
    overflow-x: auto;
    white-space: nowrap;
    scrollbar-width: thin;
  }
  .filter-bar {
    flex-wrap: wrap;
  }
  .filter-bar input {
    flex: 1 1 100%;
    min-width: 0;
  }
  .filter-bar select {
    flex: 1 1 30%;
    min-width: 0;
  }
  .filter-bar .btn {
    flex: 1 1 auto;
  }
  .detail-layout {
    grid-template-columns: 1fr;
  }
  .landing-content {
    width: min(980px,calc(100% - 38px));
  }
}
@media (max-width: 620px) {
  .container {
    width: calc(100% - 28px);
  }
  .topbar-inner {
    min-height: 68px;
    height: auto;
    gap: 10px;
  }
  .brand {
    min-width: 0;
    max-width: calc(100% - 110px);
    font-size: 12px;
  }
  .brand > span:last-child {
    min-width: 0;
  }
  .brand strong, .brand small {
    overflow-wrap: anywhere;
  }
  .topbar-actions {
    gap: 6px;
  }
  .theme-toggle {
    min-height: 40px;
    padding: 7px 9px;
  }
  .theme-toggle-label {
    display: none;
  }
  .menu-toggle {
    display: block;
    width: 40px;
    height: 40px;
    border-radius: 8px;
    background: rgba(120,140,160,.09);
  }
  :root[data-theme="dark"] .nav {
    background: #101b2b;
  }
  .nav {
    display: none;
    position: absolute;
    top: 68px;
    left: 0;
    right: 0;
    z-index: 30;
    padding: 15px 20px 20px;
    flex-direction: column;
    align-items: stretch;
    gap: 13px;
    border-bottom: 1px solid var(--line);
    box-shadow: 0 12px 25px rgba(0,0,0,.12);
  }
  .nav-open .nav {
    display: flex;
  }
  .nav a, .nav .nav-logout-button {
    display: block;
    min-height: 38px;
    padding: 8px 0;
    text-align: left;
  }
  .nav .nav-admin {
    padding: 9px 12px;
  }
  .nav-logout {
    width: 100%;
  }
  .main-content {
    padding-top: 18px;
    padding-bottom: 44px;
  }
  .landing-header-inner {
    width: calc(100% - 26px);
    min-height: 78px;
    gap: 8px;
  }
  .landing-brand {
    gap: 8px;
    min-width: 0;
    flex: 1;
  }
  .landing-logo {
    width: 43px;
    height: 43px;
  }
  .landing-brand-copy strong {
    font-size: clamp(10px,2.7vw,13px);
    line-height: 1.3;
  }
  .landing-brand-copy small {
    font-size: 8px;
    letter-spacing: .07em;
  }
  .landing-brand-copy .landing-year {
    font-size: 7px;
    letter-spacing: .08em;
  }
  .landing-header-actions {
    gap: 6px;
  }
  .landing-header-actions .theme-toggle {
    min-width: 38px;
    width: 38px;
    min-height: 38px;
    padding: 0;
  }
  .landing-header-actions .theme-toggle-label {
    display: none;
  }
  .landing-admin-link {
    font-size: 8px;
    padding: 7px 8px;
  }
  .landing-content {
    width: calc(100% - 28px);
    min-height: calc(100svh - 140px);
    padding: 22px 0 34px;
  }
  .landing-sections {
    gap: 27px;
  }
  .landing-feature {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 11px;
    align-items: start;
    min-height: 0;
  }
  .landing-feature-art {
    width: 54px;
    height: 54px;
    margin-top: 3px;
  }
  .landing-feature-art svg {
    width: 51px;
    height: 51px;
  }
  .landing-feature-art i {
    width: 40px;
    height: 40px;
  }
  .landing-feature-copy {
    min-width: 0;
  }
  .landing-feature-copy h2 {
    font-size: clamp(12px,3.3vw,15px);
    line-height: 1.35;
    margin-bottom: 5px;
    overflow-wrap: anywhere;
  }
  .landing-feature-copy p {
    font-size: 13px;
    line-height: 1.5;
    margin-bottom: 10px;
  }
  .neon-button {
    display: inline-flex;
    justify-content: center;
    align-items: center;
    min-height: 42px;
    max-width: 100%;
    padding: 10px 12px;
    font-size: 10px;
    white-space: normal;
    text-align: center;
  }
  .landing-feature-copy > .neon-button {
    width: 100%;
  }
  .landing-status-search {
    grid-template-columns: minmax(0,1fr);
    gap: 7px;
    padding: 5px;
  }
  .landing-status-search input {
    min-height: 44px;
    font-size: 16px;
  }
  .landing-status-search .neon-button {
    width: 100%;
    min-height: 44px;
  }
  .landing-secondary-link {
    min-height: 34px;
    display: inline-flex;
    align-items: center;
  }
  .landing-footer {
    min-height: 58px;
    padding: 12px 15px;
    font-size: 10px;
  }
  .landing-dialog {
    width: 100vw;
    max-width: none;
    height: 100vh;
    height: 100dvh;
    max-height: none;
    margin: 0;
    border-radius: 0;
  }
  .dialog-header {
    min-height: 54px;
    padding: 10px 13px;
  }
  .dialog-header h2 {
    max-width: calc(100% - 42px);
    font-size: 12px;
    line-height: 1.35;
  }
  .dialog-close {
    width: 38px;
    height: 38px;
    font-size: 28px;
  }
  .dialog-content {
    height: calc(100vh - 54px);
    height: calc(100dvh - 54px);
    max-height: none;
    padding: 12px 13px calc(20px + env(safe-area-inset-bottom));
  }
  .registration-dialog .form-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .registration-dialog .form-grid .span-2 {
    grid-column: span 1;
  }
  .registration-dialog .form-section {
    padding-bottom: 15px;
    margin-bottom: 14px;
  }
  .registration-dialog .form-section-title {
    margin-bottom: 11px;
  }
  .registration-dialog .form-grid label, .registration-dialog .field-group, .registration-dialog .upload-field {
    font-size: 12px;
  }
  .registration-dialog input:not([type=checkbox]):not([type=radio]),
  .registration-dialog select, .registration-dialog textarea {
    min-height: 44px;
    font-size: 16px;
    padding: 10px 11px;
  }
  .registration-dialog textarea {
    min-height: 90px;
  }
  .registration-dialog .gender-options {
    flex-wrap: wrap;
    gap: 15px;
  }
  .registration-dialog .gender-options label {
    min-height: 38px;
  }
  .registration-dialog .upload-field input[type=file] {
    min-height: 48px;
    max-width: 100%;
    font-size: 12px;
  }
  .registration-dialog .form-actions .btn {
    width: 100%;
    min-height: 46px;
  }
  .registration-dialog .privacy-check {
    padding: 11px;
  }
  .status-dialog {
    width: 100vw;
    height: auto;
    max-height: min(92vh,520px);
    top: auto;
    bottom: 0;
    margin: 0;
    border-radius: 15px 15px 0 0;
  }
  .status-dialog .dialog-content {
    height: auto;
    max-height: calc(min(92vh,520px) - 54px);
  }
  .status-modal-form input {
    min-height: 46px;
    font-size: 16px;
  }
  .status-modal-form .neon-button {
    width: 100%;
    min-height: 46px;
  }
  .form-card {
    padding: 19px;
  }
  .form-grid {
    grid-template-columns: 1fr;
    gap: 14px;
  }
  .form-grid .span-2 {
    grid-column: span 1;
  }
  .form-actions {
    display: grid;
    gap: 13px;
  }
  .form-actions .btn {
    width: 100%;
    min-height: 44px;
  }
  .page-heading h1, .admin-heading h1 {
    font-size: clamp(24px,7vw,30px);
  }
  .admin-heading {
    display: block;
  }
  .admin-heading .btn {
    margin-top: 12px;
  }
  .admin-subnav {
    gap: 18px;
    margin-right: -14px;
    padding-right: 14px;
  }
  .admin-panel {
    padding: 16px;
  }
  .metric-grid {
    grid-template-columns: repeat(2,minmax(0,1fr));
    gap: 9px;
  }
  .metric-card {
    min-width: 0;
    padding: 13px;
  }
  .metric-card>strong {
    font-size: 24px;
  }
  .detail-grid {
    grid-template-columns: 1fr;
    gap: 12px;
  }
  .success-panel, .empty-state {
    padding: 28px 17px;
  }
  .success-panel h1, .empty-state h1 {
    font-size: 25px;
  }
  .login-layout {
    gap: 14px;
    margin: 15px auto;
  }
  .login-intro {
    min-height: 240px;
    padding: 26px 21px;
  }
  .login-card {
    padding: 21px;
  }
  .report-summary {
    grid-template-columns: 1fr;
  }
  .footer {
    padding: 24px 0;
  }
  .footer-inner {
    display: block;
  }
  .footer-inner>span {
    display: block;
    margin-top: 12px;
  }
}
@media (max-width:390px) {
  .landing-admin-link {
    display: none;
  }
  .landing-header-inner {
    min-height: 72px;
  }
  .landing-logo {
    width: 38px;
    height: 38px;
  }
  .landing-brand-copy strong {
    font-size: 10px;
  }
  .landing-brand-copy small {
    font-size: 7px;
  }
  .landing-feature {
    grid-template-columns: 49px minmax(0,1fr);
    gap: 9px;
  }
  .landing-feature-art {
    width: 47px;
    height: 47px;
  }
  .landing-feature-art svg {
    width: 45px;
    height: 45px;
  }
  .landing-feature-copy p {
    font-size: 12px;
  }
}
@media (prefers-reduced-motion: reduce) {
  html {
    scroll-behavior: auto;
  }
  *, *::before, *::after {
    transition-duration: .01ms !important;
    animation-duration: .01ms !important;
  }
}
/* Match the reference portal's full-page technical grid and neon service titles. */
:root[data-theme="dark"] .landing-body {
  background-color: #080d18;
  background-image: linear-gradient(rgba(65,94,130,.075) 1px,transparent 1px),linear-gradient(90deg,rgba(65,94,130,.075) 1px,transparent 1px);
  background-size: 28px 28px;
}
:root[data-theme="dark"] .landing-feature-copy h2 {
  color: #21e8f0;
  text-shadow: 0 0 12px rgba(33,232,240,.18);
}
:root[data-theme="dark"] .feature-register .landing-feature-copy h2 {
  color: #00f27a;
  text-shadow: 0 0 13px rgba(0,242,122,.16);
}
:root[data-theme="dark"] .feature-status .landing-feature-copy h2 {
  color: #f000a8;
  text-shadow: 0 0 13px rgba(240,0,168,.18);
}
:root[data-theme="light"] .landing-body {
  background-color: #f4f8fc;
  background-image: linear-gradient(rgba(60,105,135,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(60,105,135,.045) 1px,transparent 1px);
  background-size: 28px 28px;
}
:root[data-theme="light"] .landing-content {
  background-image: none;
}
:root[data-theme="light"] .landing-body .theme-toggle {
  background: #f7fafc;
  color: #274057;
  border-color: #d7e3eb;
}
/* The original PMBM reference uses a white registration/status dialog even
   while the page behind it is dark. Keep modal fields high-contrast. */
:root[data-theme="dark"] .landing-dialog {
  background: #ffffff;
  color: #18212a;
}
:root[data-theme="dark"] .landing-dialog .dialog-header {
  background: #ffffff;
  border-bottom-color: #e8ebef;
}
:root[data-theme="dark"] .landing-dialog .dialog-header h2 {
  color: #17222e;
}
:root[data-theme="dark"] .landing-dialog .dialog-close {
  color: #637080;
}
:root[data-theme="dark"] .landing-dialog .form-card {
  background: #ffffff;
  color: #26313e;
  border-color: transparent;
  box-shadow: none;
}
:root[data-theme="dark"] .landing-dialog .form-section {
  border-bottom-color: #edf0f3;
}
:root[data-theme="dark"] .landing-dialog .form-section-title h2 {
  color: #263240;
}
:root[data-theme="dark"] .landing-dialog .form-section-title p,
:root[data-theme="dark"] .landing-dialog .status-modal-form p {
  color: #89939e;
}
:root[data-theme="dark"] .landing-dialog .form-grid label,
:root[data-theme="dark"] .landing-dialog .field-group,
:root[data-theme="dark"] .landing-dialog .upload-field,
:root[data-theme="dark"] .landing-dialog .field-label,
:root[data-theme="dark"] .landing-dialog .status-modal-form label {
  color: #3b4652;
}
:root[data-theme="dark"] .landing-dialog input:not([type=checkbox]):not([type=radio]),
:root[data-theme="dark"] .landing-dialog select,
:root[data-theme="dark"] .landing-dialog textarea {
  background: #fafbfc;
  color: #26313e;
  border-color: #e3e7eb;
}
:root[data-theme="dark"] .landing-dialog input::placeholder,
:root[data-theme="dark"] .landing-dialog textarea::placeholder {
  color: #89939e;
}
:root[data-theme="dark"] .landing-dialog .form-grid label small,
:root[data-theme="dark"] .landing-dialog .upload-field small,
:root[data-theme="dark"] .landing-dialog .form-actions .small {
  color: #89939e;
}
:root[data-theme="dark"] .landing-dialog .check-label {
  color: #43505c;
}
:root[data-theme="dark"] .landing-dialog .privacy-check {
  background: #f7f9fb;
  border-color: #edf0f3;
}
.topbar .nav {
  order: 2;
}
.topbar .topbar-actions {
  order: 3;
}
/* Full-viewport, fluid landing page layout */
html, body {
  min-height: 100%;
}
.landing-body {
  min-height: 100vh;
  min-height: 100svh;
  display: flex;
  flex-direction: column;
  overflow-x: hidden;
}
.landing-header {
  flex: 0 0 auto;
}
.landing-header-inner {
  width: min(100% - 48px,1160px);
  min-height: clamp(82px,11.3vh,112px);
  margin: 0 auto;
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: clamp(12px,2vw,28px);
}
.landing-content {
  flex: 1 0 auto;
  width: min(980px,calc(100% - 48px));
  min-height: 0;
  margin: 0 auto;
  padding: clamp(18px,3.3vh,38px) 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  background-image: linear-gradient(rgba(67,103,139,.045) 1px,transparent 1px),linear-gradient(90deg,rgba(67,103,139,.045) 1px,transparent 1px);
  background-size: 28px 28px;
}
.landing-sections {
  width: 100%;
  gap: clamp(20px,4.1vh,42px);
  padding-top: 0;
}
.landing-feature {
  grid-template-columns: clamp(82px,10vw,132px) minmax(0,1fr);
  gap: clamp(14px,2vw,26px);
  min-height: 0;
}
.landing-feature-art {
  width: clamp(66px,7vw,90px);
  height: clamp(66px,7vw,90px);
}
.landing-feature-art svg {
  width: clamp(58px,6.4vw,82px);
  height: clamp(58px,6.4vw,82px);
}
.landing-feature-copy h2 {
  font-size: clamp(16px,1.65vw,22px);
}
.landing-feature-copy p {
  font-size: clamp(13px,1.15vw,15px);
}
.landing-footer {
  flex: 0 0 auto;
  min-height: clamp(48px,6.5vh,64px);
  padding-bottom: calc(12px + env(safe-area-inset-bottom));
}
.landing-body .flash-wrap {
  flex: 0 0 auto;
}
@media (min-width:701px) and (max-height:760px) {
  .landing-header-inner {
    min-height: 76px;
  }
  .landing-content {
    padding-top: 14px;
    padding-bottom: 14px;
  }
  .landing-sections {
    gap: clamp(13px,2.5vh,22px);
  }
  .landing-feature-art {
    width: 68px;
    height: 68px;
  }
  .landing-feature-art svg {
    width: 62px;
    height: 62px;
  }
  .landing-feature-copy p {
    margin-bottom: 7px;
  }
  .landing-footer {
    min-height: 46px;
  }
}
@media (max-width:850px) {
  .landing-header-inner {
    width: calc(100% - 36px);
  }
  .landing-content {
    width: calc(100% - 38px);
  }
  .landing-sections {
    gap: clamp(22px,3.2vh,32px);
  }
  .landing-feature {
    grid-template-columns: 76px minmax(0,1fr);
    gap: 14px;
  }
}
@media (max-width:700px) {
  .landing-body {
    min-height: 100vh;
    min-height: 100svh;
  }
  .landing-header-inner {
    width: calc(100% - 28px);
    min-height: 76px;
    padding: 10px 0;
  }
  .landing-content {
    flex: 1 0 auto;
    width: calc(100% - 30px);
    min-height: 0;
    justify-content: flex-start;
    padding: clamp(20px,4vh,30px) 0 30px;
  }
  .landing-sections {
    gap: clamp(24px,4vh,34px);
  }
  .landing-feature {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 11px;
    align-items: start;
  }
  .landing-feature-art {
    width: 54px;
    height: 54px;
    margin-top: 3px;
  }
  .landing-feature-art svg {
    width: 51px;
    height: 51px;
  }
  .landing-feature-copy h2 {
    font-size: clamp(12px,3.5vw,16px);
  }
  .landing-feature-copy p {
    font-size: 13px;
    line-height: 1.5;
  }
  .landing-footer {
    min-height: 54px;
  }
}
@media (max-width:390px) {
  .landing-header-inner {
    width: calc(100% - 22px);
  }
  .landing-content {
    width: calc(100% - 24px);
  }
  .landing-brand-copy strong {
    font-size: clamp(9px,2.6vw,11px);
  }
  .landing-logo {
    width: 40px;
    height: 40px;
  }
  .landing-admin-link {
    padding: 6px;
    font-size: 7px;
  }
}
@media (orientation:landscape) and (max-height:500px) {
  .landing-header-inner {
    min-height: 62px;
  }
  .landing-content {
    padding-top: 10px;
    padding-bottom: 10px;
  }
  .landing-sections {
    gap: 12px;
  }
  .landing-feature-art {
    width: 48px;
    height: 48px;
  }
  .landing-feature-art svg {
    width: 45px;
    height: 45px;
  }
  .landing-feature {
    grid-template-columns: 58px minmax(0,1fr);
  }
  .landing-feature-copy h2 {
    font-size: 14px;
  }
  .landing-feature-copy p {
    font-size: 11px;
    line-height: 1.35;
    margin-bottom: 5px;
  }
  .neon-button {
    min-height: 32px;
    padding: 6px 10px;
    font-size: 10px;
  }
  .landing-footer {
    min-height: 38px;
    padding: 6px 12px;
  }
}
/* --------------------------------------------------------------------------
   Video reference alignment (desktop/tablet), retaining the MTsN 9 identity.
   The landing page uses the same portal proportions, typography and modal
   treatment as the supplied PMBM reference recording.
   -------------------------------------------------------------------------- */
@media (min-width:701px) {
  .landing-header-inner {
    width: min(1310px,calc(100% - 64px));
    min-height: clamp(100px,12.7vh,120px);
    gap: 24px;
  }
  .landing-brand {
    gap: 14px;
  }
  .landing-logo {
    width: 60px;
    height: 60px;
  }
  .landing-brand-copy strong {
    font-size: clamp(18px,1.65vw,25px);
    letter-spacing: .025em;
    line-height: 1.22;
  }
  .landing-brand-copy small {
    font-size: 12px;
  }
  .landing-brand-copy .landing-year {
    font-size: 10px;
  }
  .landing-content {
    width: min(1160px,calc(100% - 64px));
    padding: clamp(30px,4.2vh,42px) 0 clamp(26px,4vh,40px);
    background-size: 30px 30px;
  }
  .landing-sections {
    gap: clamp(30px,4.3vh,44px);
    padding-top: 0;
  }
  .landing-feature {
    grid-template-columns: 132px minmax(0,1fr);
    gap: 26px;
    min-height: 112px;
  }
  .landing-feature-art {
    width: 94px;
    height: 94px;
  }
  .landing-feature-art svg {
    width: 84px;
    height: 84px;
  }
  .landing-feature-copy h2 {
    font-size: clamp(20px,1.55vw,24px);
    line-height: 1.28;
    margin-bottom: 5px;
    letter-spacing: .025em;
  }
  .landing-feature-copy p {
    font-size: 16px;
    line-height: 1.5;
    max-width: 970px;
    margin-bottom: 12px;
  }
  .neon-button {
    min-height: 42px;
    padding: 10px 18px;
    font-size: 13px;
    border-radius: 6px;
  }
  .landing-status-search {
    max-width: 970px;
  }
  .landing-status-search input {
    min-height: 43px;
    font-size: 15px;
  }
  .landing-status-search .neon-button {
    min-width: 174px;
  }
  .landing-secondary-link {
    font-size: 11px;
  }
  .landing-footer {
    min-height: 64px;
    padding: 14px 20px;
    background: #080d18;
  }
  .landing-dialog {
    width: min(750px,calc(100% - 40px));
    max-width: 750px;
    max-height: 82vh;
    border-radius: 12px;
  }
  .dialog-header {
    min-height: 58px;
    padding: 14px 18px;
  }
  .dialog-header h2 {
    font-size: 16px;
  }
  .dialog-close {
    width: 34px;
    height: 34px;
    font-size: 30px;
  }
  .dialog-content {
    max-height: calc(82vh - 58px);
    padding: 18px 22px 18px;
  }
  .registration-dialog .form-section {
    padding-bottom: 19px;
    margin-bottom: 17px;
  }
  .registration-dialog .form-section-title {
    margin-bottom: 15px;
  }
  .registration-dialog .form-section-title h2 {
    font-size: 15px;
  }
  .registration-dialog .form-grid {
    gap: 15px 14px;
  }
  .registration-dialog .form-grid label,
  .registration-dialog .field-group,
  .registration-dialog .upload-field {
    font-size: 13px;
  }
  .registration-dialog input:not([type=checkbox]):not([type=radio]),
  .registration-dialog select,
  .registration-dialog textarea {
    min-height: 49px;
    padding: 11px 12px;
    font-size: 14px;
  }
  .registration-dialog .gender-options {
    min-height: 39px;
  }
  .registration-dialog .gender-options label {
    font-size: 13px;
  }
  .registration-dialog .form-grid label small,
  .registration-dialog .upload-field small {
    font-size: 11px;
  }
  .registration-dialog .form-actions {
    position: sticky;
    bottom: -18px;
    z-index: 3;
    margin: 8px -22px -18px;
    padding: 14px 22px 16px;
    background: rgba(255,255,255,.98);
    border-top: 1px solid #e8ebef;
    box-shadow: 0 -8px 18px rgba(20,35,50,.045);
  }
  .registration-dialog .form-actions .btn {
    min-height: 42px;
    font-size: 13px;
  }
}
@media (max-width:850px) and (min-width:701px) {
  .landing-header-inner,
  .landing-content {
    width: calc(100% - 42px);
  }
  .landing-feature {
    grid-template-columns: 108px minmax(0,1fr);
    gap: 18px;
  }
  .landing-feature-art {
    width: 82px;
    height: 82px;
  }
  .landing-feature-art svg {
    width: 74px;
    height: 74px;
  }
  .landing-feature-copy h2 {
    font-size: clamp(17px,2.3vw,21px);
  }
  .landing-feature-copy p {
    font-size: 14px;
  }
  .landing-status-search {
    max-width: 100%;
  }
}
@media (max-width:700px) {
  .landing-header-inner {
    min-height: 76px;
  }
  .landing-content {
    width: calc(100% - 28px);
    min-height: 0;
    padding: 22px 0 30px;
    justify-content: flex-start;
  }
  .landing-sections {
    gap: clamp(24px,4vh,34px);
  }
  .landing-feature {
    grid-template-columns: 58px minmax(0,1fr);
    gap: 11px;
  }
  .landing-feature-art {
    width: 54px;
    height: 54px;
  }
  .landing-feature-art svg {
    width: 51px;
    height: 51px;
  }
  .landing-feature-copy h2 {
    font-size: clamp(12px,3.5vw,16px);
  }
  .landing-feature-copy p {
    font-size: 13px;
    line-height: 1.5;
  }
  .landing-status-search {
    max-width: 100%;
  }
  .landing-dialog {
    border-radius: 0;
  }
  .registration-dialog .form-actions {
    position: static;
    margin: 0;
    padding: 3px 0 0;
    box-shadow: none;
  }
}
/* Form modal details closely follow the supplied video reference. */
@media (min-width:701px) {
  .registration-dialog .form-section {
    padding: 16px 15px 17px;
    margin: 0 0 13px;
    border: 1px solid #edf0f3;
    border-radius: 6px;
    background: #f8f9fb;
    box-shadow: 0 2px 7px rgba(27,42,58,.035);
  }
  .registration-dialog .form-section-title {
    margin-bottom: 13px;
  }
  .registration-dialog .form-section-title p {
    display: none;
  }
  .registration-dialog .form-grid {
    gap: 14px 9px;
  }
  .registration-dialog .form-grid label,
  .registration-dialog .field-group,
  .registration-dialog .upload-field {
    gap: 0;
  }
  .registration-dialog .form-grid input:not([type=checkbox]):not([type=radio]),
  .registration-dialog .form-grid select,
  .registration-dialog .form-grid textarea {
    background: #fff;
    min-height: 53px;
    font-size: 15px;
  }
  .registration-dialog .date-field {
    display: flex;
    flex-direction: column;
    gap: 0;
  }
  .registration-dialog .date-field-label {
    display: block;
    padding: 6px 11px 0;
    border: 1px solid #dfe4e9;
    border-bottom: 0;
    border-radius: 5px 5px 0 0;
    background: #fff;
    color: #8b95a0;
    font: 500 11px 'Rajdhani',sans-serif;
  }
  .registration-dialog .date-field input {
    border-top: 0 !important;
    border-radius: 0 0 5px 5px !important;
    padding-top: 2px !important;
  }
  .registration-dialog .form-section-title h2 {
    font-size: 14px;
  }
  .registration-dialog .privacy-check {
    display: flex !important;
    margin: 7px 0 5px;
    padding: 10px 11px;
    border: 1px solid #edf0f3;
    border-radius: 5px;
    background: #f8f9fb;
  }
  .registration-dialog .registration-reminder {
    margin: 5px 0 8px;
  }
  .registration-dialog .form-actions {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    gap: 9px;
    position: sticky;
    bottom: -18px;
    z-index: 4;
    margin: 8px -22px -18px;
    padding: 14px 22px 16px;
    border-top: 1px solid #e8ebef;
    background: rgba(255,255,255,.99);
    box-shadow: 0 -8px 18px rgba(20,35,50,.045);
  }
  .registration-dialog .form-actions .btn {
    min-height: 42px;
    padding: 9px 16px;
    border-radius: 6px;
    font: 600 13px 'Rajdhani',sans-serif;
  }
  .registration-dialog .form-actions .btn.cancel {
    background: #747d86;
    color: #fff;
    box-shadow: none;
  }
  .registration-dialog .form-actions .btn.primary {
    background: #3994ed;
    color: #fff;
    box-shadow: none;
  }
}
@media (max-width:700px) {
  .registration-dialog .form-section {
    background: #f8f9fb;
    border: 1px solid #edf0f3;
    border-radius: 6px;
    padding: 13px 11px;
  }
  .registration-dialog .form-section-title p {
    display: none;
  }
  .registration-dialog .form-actions {
    display: grid;
    grid-template-columns: 1fr;
  }
  .registration-dialog .form-actions .btn {
    width: 100%;
  }
  .registration-dialog .form-actions .btn.cancel {
    background: #747d86;
    color: #fff;
  }
}
/* Full-screen guide viewer: no title/header strip or nested page scroll. */
.guide-viewer-dialog {
  position: fixed;
  inset: 0;
  width: 100vw;
  height: 100vh;
  height: 100dvh;
  max-width: none;
  max-height: none;
  margin: 0;
  padding: 0;
  overflow: hidden;
  border: 0;
  border-radius: 0;
  background: #080d18;
}
.guide-viewer-dialog[open] {
  display: block;
}
.guide-viewer-frame {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  min-height: 0;
  display: flex;
  align-items: center;
  justify-content: center;
  overflow: hidden;
  padding: 0;
  background: #080d18;
}
.guide-viewer-frame iframe {
  display: block;
  width: 100%;
  height: 100%;
  border: 0;
  overflow: hidden;
  background: #080d18;
}
.guide-viewer-frame img {
  display: block;
  width: 100%;
  height: 100%;
  max-width: 100%;
  max-height: 100%;
  object-fit: contain;
  margin: auto;
}
.guide-viewer-frame [hidden] {
  display: none !important;
}
.guide-viewer-close {
  position: absolute;
  z-index: 10;
  top: max(12px,env(safe-area-inset-top));
  right: max(14px,env(safe-area-inset-right));
  width: 44px;
  height: 44px;
  display: grid;
  place-items: center;
  padding: 0 0 3px;
  border: 1px solid rgba(255,255,255,.38);
  border-radius: 50%;
  background: rgba(5,12,23,.82);
  color: #fff;
  font: 400 32px/1 'Rajdhani',sans-serif;
  cursor: pointer;
  box-shadow: 0 4px 18px rgba(0,0,0,.35);
  backdrop-filter: blur(8px);
}
.guide-viewer-close:hover,.guide-viewer-close:focus-visible {
  background: #e33f73;
  border-color: #fff;
  outline: 2px solid rgba(255,255,255,.8);
  outline-offset: 2px;
}
.btn.cancel {
  background: #747d86;
  color: #fff;
  border-color: #747d86;
  box-shadow: none;
}
.btn.cancel:hover {
  background: #626b74;
  border-color: #626b74;
}
/* NISN proof upload + privacy-safe example */
.registration-dialog .nisn-source-note {
  margin: 0 0 10px;
  padding: 10px 12px;
  border: 1px solid #dceaf7;
  border-radius: 6px;
  background: #f3f8fd;
}
.registration-dialog .nisn-source-note p {
  margin: 0;
  color: #465b70;
  font: 500 11px/1.55 'Rajdhani',sans-serif;
}
.registration-dialog .nisn-source-note a {
  color: #0878c5;
  font-weight: 700;
  text-decoration: underline;
  text-underline-offset: 2px;
}
.registration-dialog .nisn-example-card {
  margin: 0 0 13px;
  padding: 10px;
  border: 1px solid #e6ebf0;
  border-radius: 7px;
  background: #fbfcfd;
}
.registration-dialog .nisn-example-heading {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  margin-bottom: 8px;
  color: #344457;
  font: 700 11px 'Rajdhani',sans-serif;
}
.registration-dialog .nisn-example-heading span {
  color: #8693a0;
  font: 500 10px 'Rajdhani',sans-serif;
}
.registration-dialog .nisn-example-image-link {
  display: block;
  width: min(100%,430px);
  margin: 0 auto;
  text-align: center;
}
.registration-dialog .nisn-example-image-link img {
  display: block;
  width: 100%;
  max-height: 280px;
  object-fit: contain;
  border: 1px solid #edf0f2;
  border-radius: 4px;
  background: #fff;
}
.registration-dialog .nisn-example-card>small {
  display: block;
  margin-top: 7px;
  color: #8693a0;
  font: 500 10px/1.45 'Rajdhani',sans-serif;
}
.registration-dialog .nisn-document-section .upload-field {
  margin-top: 5px;
}
.nisn-admin-preview .btn {
  display: inline-flex;
  margin-top: 8px;
}
@media(max-width:620px) {
  .registration-dialog .nisn-example-card {
    padding: 8px;
  }
  .registration-dialog .nisn-example-image-link img {
    max-height: 220px;
  }
  .registration-dialog .nisn-source-note {
    padding: 9px 10px;
  }
}
/* Conditional Golden Ticket proof upload */
.golden-ticket-choice-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
}
.golden-ticket-options {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.golden-ticket-options label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 38px;
  padding: 7px 15px;
  border: 1px solid var(--line);
  border-radius: 9px;
  background: #fbfdfc;
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
}
.golden-ticket-options input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  padding: 0;
  accent-color: var(--teal);
}
.golden-ticket-proof-wrap {
  border: 1px dashed #8ebbb0;
  background: #f3faf7;
  border-radius: 12px;
  padding: 15px;
}
.golden-ticket-proof-wrap[hidden] {
  display: none !important;
}
.golden-ticket-proof-heading {
  display: flex;
  flex-direction: column;
  gap: 3px;
  margin-bottom: 10px;
  color: #28574e;
  font-size: 12px;
}
.golden-ticket-proof-heading small,.golden-ticket-proof-help {
  color: #71817e;
  font-size: 11px;
  font-weight: 400;
}
.golden-ticket-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  flex-wrap: wrap;
}
.golden-ticket-upload-row .btn {
  min-height: 42px;
}
.golden-ticket-file-name {
  min-width: 0;
  overflow-wrap: anywhere;
  color: #64756f;
  font-size: 11px;
}
.golden-ticket-proof-help {
  display: block;
  margin-top: 8px;
}
.golden-admin-preview .btn {
  display: inline-flex;
  margin-top: 8px;
}
@media (max-width:600px) {
  .golden-ticket-upload-row {
    align-items: stretch;
    flex-direction: column;
  }
  .golden-ticket-upload-row .btn {
    width: 100%;
    white-space: normal;
  }
}
/* Visual identity controls: site logo, browser icon and administrator avatar. */
.brand-mark img {
  width: 100%;
  height: 100%;
  padding: 4px;
  object-fit: contain;
  border-radius: inherit;
  background: rgba(255,255,255,.96)
}
.landing-logo img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px
}
.admin-profile-link {
  width: 38px;
  height: 38px;
  flex: none;
  border-radius: 50%;
  overflow: hidden;
  display: grid;
  place-items: center;
  text-decoration: none;
  background: var(--teal);
  border: 2px solid rgba(15,118,110,.18);
  color: #fff;
  font-weight: 800;
  font-size: 15px
}
.admin-profile-link img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover
}
.visual-identity-panel {
  margin: 0 0 20px;
  padding: 23px
}
.visual-identity-form {
  display: grid;
  gap: 20px
}
.visual-identity-grid {
  display: grid;
  grid-template-columns: repeat(3,minmax(0,1fr));
  gap: 13px
}
.visual-upload-card {
  min-width: 0;
  display: flex;
  gap: 15px;
  align-items: flex-start;
  padding: 16px;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: rgba(127,157,148,.035)
}
.visual-preview {
  width: 104px;
  height: 104px;
  flex: none;
  display: grid;
  place-items: center;
  overflow: hidden;
  border: 1px solid var(--line);
  border-radius: 13px;
  background: #f7faf8;
  color: #6a8279;
  font-size: 20px;
  font-weight: 800
}
.visual-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  padding: 7px
}
.logo-preview {
  width: 112px;
  height: 82px;
  background: #fff
}
.favicon-preview {
  width: 82px;
  height: 82px;
  background: #fff;
  font-size: 32px
}
.admin-photo-preview {
  width: 82px;
  height: 82px;
  border-radius: 50%;
  background: #e5f4ef;
  color: #0f766e
}
.admin-photo-preview img {
  object-fit: cover;
  padding: 0
}
.visual-upload-copy {
  min-width: 0;
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 5px
}
.visual-upload-copy h3 {
  font-size: 13px;
  margin: 0
}
.visual-upload-copy p {
  font-size: 11px;
  line-height: 1.45;
  margin: 0 0 3px
}
.file-picker-label {
  display: inline-flex;
  flex-direction: column;
  gap: 5px;
  font-size: 11px;
  font-weight: 700;
  color: var(--teal);
  cursor: pointer
}
.file-picker-label input[type=file] {
  max-width: 100%;
  min-height: 0;
  padding: 7px;
  border: 1px dashed #b7d4cc;
  border-radius: 8px;
  background: rgba(255,255,255,.7);
  font-size: 10px;
  color: var(--muted)
}
.remove-visual-check {
  display: flex;
  align-items: center;
  gap: 6px;
  font-size: 10px;
  font-weight: 500;
  color: var(--muted);
  line-height: 1.3
}
.remove-visual-check input {
  width: 14px;
  height: 14px;
  min-height: 14px;
  margin: 0;
  accent-color: var(--teal)
}
:root[data-theme="dark"] .visual-upload-card {
  background: #111d2b;
  border-color: #27364a
}
:root[data-theme="dark"] .visual-preview {
  background: #172437;
  border-color: #304158;
  color: #c4d3e4
}
:root[data-theme="dark"] .visual-preview.logo-preview,:root[data-theme="dark"] .visual-preview.favicon-preview {
  background: #fff
}
:root[data-theme="dark"] .file-picker-label input[type=file] {
  background: #0d1928;
  border-color: #3a526d;
  color: #cbd8e7
}
:root[data-theme="dark"] .visual-upload-copy p,:root[data-theme="dark"] .remove-visual-check {
  color: #a8b8cc
}
@media(max-width:980px) {
  .visual-identity-grid {
    grid-template-columns: repeat(2,minmax(0,1fr))
  }
}
@media(max-width:700px) {
  .visual-identity-panel {
    padding: 16px
  }
  .visual-identity-grid {
    grid-template-columns: 1fr
  }
  .visual-upload-card {
    gap: 12px;
    padding: 13px
  }
  .visual-preview {
    width: 82px;
    height: 82px
  }
  .logo-preview {
    width: 92px;
    height: 72px
  }
  .favicon-preview,.admin-photo-preview {
    width: 72px;
    height: 72px
  }
  .admin-profile-link {
    width: 34px;
    height: 34px
  }
}
@media(max-width:390px) {
  .visual-upload-card {
    align-items: flex-start
  }
  .visual-upload-copy {
    width: calc(100% - 94px)
  }
  .file-picker-label input[type=file] {
    max-width: 100%;
    font-size: 9px
  }
  .topbar-actions {
    gap: 5px
  }
}


/* Registration form: clear, compact gender choices */
.registration-form .gender-field-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 9px;
}
.registration-form .gender-field-group > .field-label {
  display: block;
  margin: 0;
  color: var(--ink);
  font-size: 13px;
  font-weight: 700;
}
.registration-form .gender-choice-list {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  align-items: stretch;
  gap: 10px;
  width: 100%;
  max-width: 540px;
  min-height: 0;
}
.registration-form .gender-choice-list > label {
  display: flex !important;
  flex-direction: row !important;
  align-items: center;
  justify-content: flex-start;
  gap: 11px;
  width: 100%;
  min-height: 50px;
  margin: 0;
  padding: 11px 15px;
  border: 1px solid var(--line);
  border-radius: 11px;
  background: var(--white);
  color: var(--ink);
  font-size: 13px;
  font-weight: 600;
  line-height: 1.35;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease, transform .18s ease;
}
.registration-form .gender-choice-list > label:hover {
  border-color: rgba(15,118,110,.42);
  background: #f5fbf9;
}
.registration-form .gender-choice-list > label:has(input:checked) {
  border-color: rgba(15,118,110,.55);
  background: #eaf7f3;
  color: #0b665d;
  box-shadow: 0 0 0 3px rgba(15,118,110,.08);
}
.registration-form .gender-choice-list > label:focus-within {
  outline: 3px solid rgba(15,118,110,.2);
  outline-offset: 2px;
}
.registration-form .gender-choice-list > label > input[type="radio"] {
  appearance: auto;
  display: inline-block;
  flex: 0 0 18px;
  width: 18px !important;
  height: 18px;
  min-height: 18px !important;
  margin: 0;
  padding: 0;
  accent-color: var(--teal);
  cursor: pointer;
}
:root[data-theme="dark"] .registration-form .gender-choice-list > label {
  background: #0f1b2b;
  border-color: #35465c;
  color: #dce7f4;
}
:root[data-theme="dark"] .registration-form .gender-choice-list > label:hover {
  background: #14283a;
  border-color: #4b7d7b;
}
:root[data-theme="dark"] .registration-form .gender-choice-list > label:has(input:checked) {
  background: #123b3a;
  border-color: #3c9990;
  color: #a5eee2;
  box-shadow: 0 0 0 3px rgba(70,190,177,.12);
}
@media (max-width: 420px) {
  .registration-form .gender-choice-list {
    grid-template-columns: 1fr;
    max-width: none;
    gap: 8px;
  }
  .registration-form .gender-choice-list > label {
    min-height: 46px;
    padding: 10px 13px;
  }
}


/* Low-friction honeypot for basic automated form submissions. */
.pmbm-honeypot { position:absolute !important; left:-10000px !important; top:auto !important; width:1px !important; height:1px !important; overflow:hidden !important; opacity:0 !important; pointer-events:none !important; }

/* Registration form refinement: consistent labels, controls and upload areas. */
.registration-form .form-field,
.registration-form .gender-field-group,
.registration-form .golden-ticket-choice-group {
  min-width: 0;
}
.registration-form .form-field .field-label,
.registration-form .gender-field-group > .field-label,
.registration-form .golden-ticket-choice-group > .field-label {
  display: block;
  margin: 0 0 1px;
  color: #344454;
  font: 700 12px/1.35 'DM Sans', sans-serif;
}
.registration-form .required-mark {
  color: #d34b55;
  font-weight: 800;
}
.registration-form .form-grid {
  align-items: start;
  column-gap: 16px;
  row-gap: 17px;
}
.registration-form .form-grid > label.form-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 7px;
}
.registration-form .form-grid .form-field > input:not([type=radio]):not([type=checkbox]),
.registration-form .form-grid .form-field > select,
.registration-form .form-grid .form-field > textarea {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 50px;
  padding: 12px 13px;
  border-radius: 8px;
  border: 1px solid #dce4eb;
  background: #fff;
  color: #263545;
  font: 400 13px/1.4 'DM Sans', sans-serif;
  transition: border-color .18s ease, box-shadow .18s ease, background .18s ease;
}
.registration-form .form-grid .form-field > textarea {
  min-height: 104px;
  line-height: 1.55;
}
.registration-form .form-grid .form-field > input::placeholder,
.registration-form .form-grid .form-field > textarea::placeholder {
  color: #8995a2;
  opacity: 1;
}
.registration-form .form-grid .form-field > input:focus,
.registration-form .form-grid .form-field > select:focus,
.registration-form .form-grid .form-field > textarea:focus,
.registration-form .upload-field input[type=file]:focus-visible {
  outline: none;
  border-color: #38a69b;
  box-shadow: 0 0 0 3px rgba(33, 160, 147, .13);
}
.registration-form .form-field > small,
.registration-form .upload-field > small {
  display: block;
  margin-top: 1px;
  color: #7b8794;
  font: 400 11px/1.45 'DM Sans', sans-serif;
}
.registration-form .date-field {
  display: flex;
  flex-direction: column;
  gap: 7px;
}
.registration-form .date-field .field-label {
  padding: 0;
  border: 0;
  background: transparent;
  color: #344454;
  font: 700 12px/1.35 'DM Sans', sans-serif;
}
.registration-form .date-field input[type=date] {
  min-height: 50px;
  padding: 11px 13px;
  border: 1px solid #dce4eb !important;
  border-radius: 8px !important;
  background: #fff;
  color: #263545;
  font: 400 13px 'DM Sans', sans-serif;
}
.registration-form .gender-field-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.registration-form .gender-choice-list {
  width: 100%;
  max-width: none;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px;
}
.registration-form .gender-choice-list > label {
  min-height: 50px;
  padding: 11px 16px;
  border-radius: 9px;
  font: 600 13px/1.4 'DM Sans', sans-serif;
}
.registration-form .golden-ticket-choice-group {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
}
.registration-form .golden-ticket-options {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  width: 100%;
  gap: 12px;
}
.registration-form .golden-ticket-options > label {
  display: flex;
  align-items: center;
  min-height: 50px;
  margin: 0;
  padding: 11px 16px;
  border: 1px solid #dce4eb;
  border-radius: 9px;
  background: #fff;
  color: #344454;
  font: 600 13px/1.4 'DM Sans', sans-serif;
  cursor: pointer;
  transition: border-color .18s ease, background .18s ease, box-shadow .18s ease;
}
.registration-form .golden-ticket-options > label:has(input:checked) {
  border-color: rgba(15,118,110,.55);
  background: #eaf7f3;
  color: #0b665d;
  box-shadow: 0 0 0 3px rgba(15,118,110,.08);
}
.registration-form .golden-ticket-options > label:focus-within {
  outline: 3px solid rgba(15,118,110,.18);
  outline-offset: 2px;
}
.registration-form .golden-ticket-options input[type=radio] {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 0 10px 0 0;
  padding: 0;
  flex: 0 0 18px;
  accent-color: #0f766e;
}
.registration-form .golden-ticket-proof-wrap {
  padding: 16px;
  border: 1px dashed #9bc8bd;
  border-radius: 10px;
  background: #f3faf7;
}
.registration-form .golden-ticket-proof-heading {
  margin-bottom: 11px;
  font: 700 12px/1.4 'DM Sans', sans-serif;
}
.registration-form .golden-ticket-upload-row .btn {
  min-height: 44px;
  border-radius: 8px;
}
.registration-form .upload-field {
  display: flex;
  flex-direction: column;
  align-items: stretch;
  gap: 8px;
  min-width: 0;
  padding: 14px;
  border: 1px solid #e2e8ee;
  border-radius: 10px;
  background: #fff;
  color: #344454;
  font: 600 12px 'DM Sans', sans-serif;
}
.registration-form .upload-field input[type=file] {
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  min-height: 46px;
  padding: 7px;
  border: 1px dashed #cbd5df;
  border-radius: 8px;
  background: #f8fafc;
  color: #536274;
  font: 400 12px 'DM Sans', sans-serif;
}
.registration-form .upload-field input[type=file]::file-selector-button {
  min-height: 30px;
  margin-right: 10px;
  padding: 5px 10px;
  border: 0;
  border-radius: 6px;
  background: #e8f3f1;
  color: #0d7168;
  font: 700 11px 'DM Sans', sans-serif;
  cursor: pointer;
}
.registration-form .nisn-source-note {
  margin-bottom: 13px;
  border-radius: 9px;
}
.registration-form .nisn-example-card {
  margin-bottom: 15px;
  border-radius: 10px;
}
.registration-form .privacy-check {
  margin: 4px 0 13px;
  padding: 13px 14px;
  border: 1px solid #e2e8ee;
  border-radius: 9px;
  background: #f8fafc;
  line-height: 1.55;
}
.registration-form .privacy-check span {
  font: 400 12px/1.55 'DM Sans', sans-serif;
}
.registration-form .registration-reminder {
  margin: 8px 0 14px;
  line-height: 1.5;
}
.registration-form .form-actions {
  gap: 12px;
}
.registration-form .form-actions .btn {
  min-height: 44px;
  padding: 11px 18px;
  border-radius: 8px;
}
:root[data-theme="dark"] .registration-form .form-field .field-label,
:root[data-theme="dark"] .registration-form .gender-field-group > .field-label,
:root[data-theme="dark"] .registration-form .golden-ticket-choice-group > .field-label,
:root[data-theme="dark"] .registration-form .date-field .field-label {
  color: #d5dfeb;
}
:root[data-theme="dark"] .registration-form .form-grid .form-field > input:not([type=radio]):not([type=checkbox]),
:root[data-theme="dark"] .registration-form .form-grid .form-field > select,
:root[data-theme="dark"] .registration-form .form-grid .form-field > textarea,
:root[data-theme="dark"] .registration-form .date-field input[type=date] {
  background: #0c1625;
  border-color: #35465c !important;
  color: #e7eff9;
}
:root[data-theme="dark"] .registration-form .form-field > small,
:root[data-theme="dark"] .registration-form .upload-field > small {
  color: #a8b6c8;
}
:root[data-theme="dark"] .registration-form .golden-ticket-options > label,
:root[data-theme="dark"] .registration-form .upload-field,
:root[data-theme="dark"] .registration-form .privacy-check {
  background: #0f1b2b;
  border-color: #35465c;
  color: #dce7f4;
}
:root[data-theme="dark"] .registration-form .golden-ticket-options > label:has(input:checked) {
  background: #123b3a;
  border-color: #3c9990;
  color: #a5eee2;
}
:root[data-theme="dark"] .registration-form .upload-field input[type=file] {
  background: #111f31;
  border-color: #43546a;
  color: #c8d4e2;
}
:root[data-theme="dark"] .registration-form .upload-field input[type=file]::file-selector-button {
  background: #173b3b;
  color: #a5eee2;
}
@media (min-width:701px) {
  .registration-dialog .registration-form .form-grid > label.form-field {
    gap: 7px;
  }
  .registration-dialog .registration-form .form-field .field-label,
  .registration-dialog .registration-form .gender-field-group > .field-label,
  .registration-dialog .registration-form .golden-ticket-choice-group > .field-label,
  .registration-dialog .registration-form .date-field .field-label {
    display: block;
    padding: 0;
    border: 0;
    background: transparent;
    color: #344454;
    font: 700 12px/1.35 'DM Sans', sans-serif;
  }
  .registration-dialog .registration-form .date-field {
    gap: 7px;
  }
  .registration-dialog .registration-form .date-field input[type=date] {
    border: 1px solid #dce4eb !important;
    border-radius: 8px !important;
    min-height: 50px;
    padding: 11px 13px !important;
    font: 400 13px 'DM Sans', sans-serif;
  }
  .registration-dialog .registration-form .form-grid input:not([type=checkbox]):not([type=radio]),
  .registration-dialog .registration-form .form-grid select {
    min-height: 50px;
    font: 400 13px 'DM Sans', sans-serif;
  }
  .registration-dialog .registration-form .form-grid textarea {
    min-height: 104px;
    font: 400 13px/1.55 'DM Sans', sans-serif;
  }
  .registration-dialog .registration-form .gender-choice-list,
  .registration-dialog .registration-form .golden-ticket-options {
    gap: 12px;
  }
}
@media (max-width:700px) {
  .registration-form .form-grid {
    grid-template-columns: minmax(0,1fr);
    gap: 14px;
  }
  .registration-form .form-grid .span-2 {
    grid-column: 1 / -1;
  }
  .registration-form .gender-choice-list,
  .registration-form .golden-ticket-options {
    grid-template-columns: minmax(0,1fr);
    gap: 9px;
  }
  .registration-form .gender-choice-list > label,
  .registration-form .golden-ticket-options > label {
    min-height: 48px;
  }
  .registration-form .form-grid .form-field > input:not([type=radio]):not([type=checkbox]),
  .registration-form .form-grid .form-field > select,
  .registration-form .date-field input[type=date] {
    min-height: 48px;
    font-size: 16px;
  }
  .registration-form .form-actions {
    flex-direction: column-reverse;
    align-items: stretch;
  }
  .registration-form .form-actions .btn {
    width: 100%;
    justify-content: center;
    min-height: 48px;
  }
}
/* Keep the registration dialog intentionally light in dark-site mode. */
:root[data-theme="dark"] .landing-dialog .registration-form .form-field .field-label,
:root[data-theme="dark"] .landing-dialog .registration-form .gender-field-group > .field-label,
:root[data-theme="dark"] .landing-dialog .registration-form .golden-ticket-choice-group > .field-label,
:root[data-theme="dark"] .landing-dialog .registration-form .date-field .field-label {
  color: #344454;
}
:root[data-theme="dark"] .landing-dialog .registration-form .form-grid .form-field > input:not([type=radio]):not([type=checkbox]),
:root[data-theme="dark"] .landing-dialog .registration-form .form-grid .form-field > select,
:root[data-theme="dark"] .landing-dialog .registration-form .form-grid .form-field > textarea,
:root[data-theme="dark"] .landing-dialog .registration-form .date-field input[type=date] {
  background: #fff;
  border-color: #dce4eb !important;
  color: #263545;
}
:root[data-theme="dark"] .landing-dialog .registration-form .golden-ticket-options > label,
:root[data-theme="dark"] .landing-dialog .registration-form .upload-field,
:root[data-theme="dark"] .landing-dialog .registration-form .privacy-check {
  background: #fff;
  border-color: #e2e8ee;
  color: #344454;
}
:root[data-theme="dark"] .landing-dialog .registration-form .upload-field input[type=file] {
  background: #f8fafc;
  border-color: #cbd5df;
  color: #536274;
}


/* Configurable portal title: allow safe wrapping without pushing the logo off-screen. */
.landing-brand-copy { min-width: 0; }
.landing-brand-copy strong { overflow-wrap: anywhere; }
@media (max-width: 700px) {
  .landing-brand-copy strong { max-width: 100%; }
}
