/* ═══════════════════════════════════════════════════════════════
   SIAN3 APP — form + subviews in the same dark kinetic language
   as the landing (noise / bloom / Moderniz / red / glass)
   ═══════════════════════════════════════════════════════════════ */

/* ── Atmosphere: keep grain while in app flows (no soft glow — custom cursor only) ── */
body.theme-sian3.is-form-open .s3-noise,
body.theme-sian3.is-app-subroute .s3-noise {
  display: block !important;
  visibility: visible !important;
  opacity: 0.04 !important;
  z-index: 250 !important;
  pointer-events: none !important;
}

body.theme-sian3.is-form-open .s3-cursor-glow,
body.theme-sian3.is-app-subroute .s3-cursor-glow {
  display: none !important;
}

body.theme-sian3.is-form-open .s3-geo,
body.theme-sian3.is-form-open .s3-snap-progress,
body.theme-sian3.is-form-open .s3-sticky-cta,
body.theme-sian3.is-form-open .s3-watermark,
body.theme-sian3.is-app-subroute .s3-geo,
body.theme-sian3.is-app-subroute .s3-snap-progress,
body.theme-sian3.is-app-subroute .s3-sticky-cta,
body.theme-sian3.is-app-subroute .s3-watermark,
body.theme-sian3.is-app-subroute #s3Landing {
  display: none !important;
}

/* Landing chrome hides; form header takes its place */
body.theme-sian3.is-form-open .s3-header {
  transform: translateY(-100%);
  pointer-events: none;
}

body.theme-sian3.is-app-subroute .s3-header {
  display: none !important;
}

/* ── Form header = same bar language as landing ── */
body.theme-sian3.is-form-open .s34-site-header,
body.theme-sian3.is-app-subroute .s34-site-header,
body.theme-sian3.is-app-subroute .site-header {
  display: block !important;
  visibility: visible !important;
  pointer-events: auto !important;
  position: fixed !important;
  top: 0;
  left: 0;
  right: 0;
  z-index: 3200 !important;
  height: var(--s3-header-h);
  margin: 0;
  padding: 0;
  background: transparent;
  border: 0;
}

body.theme-sian3.is-form-open .s34-site-header .header-bar,
body.theme-sian3.is-app-subroute .s34-site-header .header-bar,
body.theme-sian3.is-app-subroute .site-header .header-bar {
  display: flex !important;
  align-items: center;
  justify-content: space-between;
  gap: 20px;
  width: 100%;
  height: var(--s3-header-h);
  min-height: var(--s3-header-h);
  margin: 0;
  padding: env(safe-area-inset-top, 0px) var(--s3-pad-x) 0 !important;
  box-sizing: border-box;
  /* Match landing .s3-header glass bar */
  background: rgba(12, 10, 11, 0.55) !important;
  border: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: 0 10px 30px rgba(0, 0, 0, 0.28) !important;
  backdrop-filter: blur(20px) saturate(1.25) !important;
  -webkit-backdrop-filter: blur(20px) saturate(1.25) !important;
}

body.theme-sian3.is-form-open .s34-site-header .header-logo,
body.theme-sian3.is-app-subroute .s34-site-header .header-logo,
body.theme-sian3.is-app-subroute .site-header .header-logo {
  display: flex;
  align-items: center;
  gap: 12px;
  text-decoration: none;
}

body.theme-sian3.is-form-open .s34-site-header .header-logo img,
body.theme-sian3.is-app-subroute .s34-site-header .header-logo img,
body.theme-sian3.is-app-subroute .site-header .header-logo img {
  height: clamp(26px, 3.8vw, 34px) !important;
  width: auto !important;
  display: block;
  filter: none !important;
}

body.theme-sian3.is-form-open .header-back,
body.theme-sian3.is-app-subroute .header-back {
  position: static !important;
  transform: none !important;
  opacity: 1 !important;
  display: inline-flex !important;
  align-items: center;
  justify-content: center;
  min-height: 36px;
  padding: 2px 16px 0 !important;
  margin: 0;
  border-radius: 999px !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  color: var(--s3-ink) !important;
  font-family: var(--s3-font-display) !important;
  font-size: 10px !important;
  font-weight: 400 !important;
  letter-spacing: 0.18em !important;
  text-transform: uppercase;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body.theme-sian3.is-form-open .header-back:hover,
body.theme-sian3.is-app-subroute .header-back:hover {
  background: rgba(196, 21, 31, 0.16) !important;
  border-color: rgba(196, 21, 31, 0.45) !important;
  color: #fff !important;
}

/* ── Form shell canvas ── */
body.theme-sian3 .app-main-shell,
body.theme-sian3 .s3-form-shell {
  display: none;
}

body.theme-sian3.is-form-open .app-main-shell,
body.theme-sian3.is-form-open .s3-form-shell {
  display: block !important;
  position: fixed;
  inset: 0;
  z-index: 100;
  overflow: hidden;
  background: linear-gradient(180deg, #070707 0%, #0c0c0c 48%, #090909 100%) !important;
}

/* Teacher: red bloom only — no amber mix */
body.theme-sian3.is-form-open.is-teacher .app-main-shell,
body.theme-sian3.is-form-open.is-teacher .s3-form-shell,
body.theme-sian3.is-form-open:not(.is-student) .app-main-shell,
body.theme-sian3.is-form-open:not(.is-student) .s3-form-shell {
  background:
    radial-gradient(ellipse 46% 38% at 86% 8%, rgba(196, 21, 31, 0.28), transparent 62%),
    radial-gradient(ellipse 34% 28% at 12% 72%, rgba(196, 21, 31, 0.08), transparent 58%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 48%, #090909 100%) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

/* Student: amber bloom only — no red mix */
body.theme-sian3.is-form-open.is-student .app-main-shell,
body.theme-sian3.is-form-open.is-student .s3-form-shell {
  background:
    radial-gradient(ellipse 46% 38% at 86% 8%, rgba(180, 83, 9, 0.28), transparent 62%),
    radial-gradient(ellipse 34% 28% at 12% 72%, rgba(180, 83, 9, 0.09), transparent 58%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 48%, #090909 100%) !important;
  background-repeat: no-repeat !important;
  background-size: 100% 100% !important;
}

/* Remove blueprint grid lines on form pages */
body.theme-sian3.is-form-open .app-main-shell::before,
body.theme-sian3.is-form-open .s3-form-shell::before {
  content: none !important;
  display: none !important;
}

body.theme-sian3.is-form-open .split-layout {
  position: relative !important;
  z-index: 1;
  inset: auto !important;
  width: 100% !important;
  height: 100% !important;
  min-height: 100dvh !important;
  max-height: 100% !important;
  background: transparent !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  overflow-x: hidden !important;
  overflow-y: auto !important;
  -webkit-overflow-scrolling: touch;
  padding: 0 !important;
}

/* Pull form content upward */
body.theme-sian3.is-form-open .split-layout__inner {
  display: block !important;
  width: min(920px, calc(100% - (var(--s3-pad-x) * 2))) !important;
  max-width: 920px !important;
  min-height: 100%;
  margin: 0 auto !important;
  padding:
    calc(var(--s3-header-h) + clamp(8px, 1.4vh, 16px))
    0
    clamp(40px, 7vh, 72px) !important;
  box-sizing: border-box;
}

body.theme-sian3.is-form-open .split-layout__copy,
body.theme-sian3.is-form-open .split-layout__cards,
body.theme-sian3.is-form-open #glassCards {
  display: none !important;
}

body.theme-sian3.is-form-open .split-layout__form,
body.theme-sian3.is-form-open #formStage {
  position: relative !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  opacity: 1 !important;
  visibility: visible !important;
  pointer-events: auto !important;
  transform: none !important;
}

body.theme-sian3.is-form-open .form-stage__scroll,
body.theme-sian3.is-form-open .form-stage__inner {
  overflow: visible !important;
  height: auto !important;
  max-height: none !important;
  background: transparent !important;
  padding: 0 !important;
  perspective: none !important;
}

/* Aura switch — compact glass pill, right aligned like landing CTAs */
body.theme-sian3.is-form-open .form-shell__toolbar {
  display: flex;
  justify-content: flex-end;
  margin: 0 0 clamp(12px, 1.8vh, 18px);
  padding: 0;
}

body.theme-sian3.is-form-open .aura-switch__track {
  width: 168px;
  padding: 4px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(14px);
  -webkit-backdrop-filter: blur(14px);
}

body.theme-sian3.is-form-open .aura-switch__thumb {
  background: linear-gradient(165deg, #e0353d 0%, var(--s3-red) 55%, #9a1119 100%);
  box-shadow: 0 4px 16px rgba(196, 21, 31, 0.35);
  transition: transform 0.2s cubic-bezier(0.22, 1, 0.36, 1), background 0.2s ease, box-shadow 0.2s ease;
}

body.theme-sian3.is-form-open .aura-switch.is-animating .aura-switch__thumb {
  /* keep translate from data-active / is-student; only nudge scale */
  transform: translate3d(0, 0, 0) scale(1.02);
}

body.theme-sian3.is-student.is-form-open .aura-switch.is-animating .aura-switch__thumb,
body.theme-sian3.is-form-open .aura-switch[data-active="student"].is-animating .aura-switch__thumb {
  transform: translate3d(100%, 0, 0) scale(1.02);
}

body.theme-sian3.is-form-open .aura-switch__btn,
body.theme-sian3.is-form-open .split-layout__form .aura-switch__btn {
  font-family: var(--s3-font-display) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.12em !important;
  text-transform: uppercase !important;
  padding: 10px 0 !important;
  color: rgba(245, 245, 245, 0.42) !important;
  text-shadow: none !important;
  transform: none !important;
  transition: color 0.28s ease !important;
}

body.theme-sian3.is-form-open .aura-switch__btn:not(.is-active):hover,
body.theme-sian3.is-form-open .split-layout__form .aura-switch__btn:not(.is-active):hover {
  color: rgba(255, 255, 255, 0.82) !important;
}

body.theme-sian3.is-form-open .aura-switch__btn.is-active,
body.theme-sian3.is-form-open .split-layout__form .aura-switch__btn.is-active {
  color: #fff !important;
  text-shadow: none !important;
}

body.theme-sian3.is-student.is-form-open .aura-switch__thumb {
  background: linear-gradient(165deg, #d97706 0%, var(--s3-student) 55%, #8a4207 100%);
  box-shadow: 0 4px 16px rgba(180, 83, 9, 0.32);
}

/* Form head — landing index + title density */
body.theme-sian3.is-form-open .form-head {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: end;
  gap: 16px 24px;
  margin: 0 0 clamp(16px, 2.4vh, 24px);
  padding: 0 0 clamp(14px, 2vh, 18px);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  min-height: 0;
}

body.theme-sian3.is-form-open #panelStudent .form-head {
  grid-template-columns: 1fr;
}

body.theme-sian3.is-form-open .form-head__copy {
  min-width: 0;
}

body.theme-sian3.is-form-open .form-head__eyebrow {
  display: block;
  margin: 0 0 10px;
  font-family: var(--s3-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 21, 31, 0.78);
}

body.theme-sian3.is-student.is-form-open .form-head__eyebrow {
  color: rgba(180, 83, 9, 0.85);
}

body.theme-sian3.is-form-open .form-head__title {
  margin: 0;
  font-family: var(--s3-font-display);
  font-size: clamp(28px, 4.2vw, 44px);
  font-weight: 800;
  letter-spacing: -0.045em;
  line-height: 1.08;
  color: var(--s3-ink) !important;
}

body.theme-sian3.is-form-open .form-head__actions {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  justify-content: flex-end;
  align-items: center;
}

body.theme-sian3.is-form-open .form-head__actions .form-head__resume,
body.theme-sian3.is-form-open .form-head__actions .btn-login,
body.theme-sian3.theme-sian2.is-form-open .form-head__actions .form-head__resume,
body.theme-sian3.theme-sian2.is-form-open .form-head__actions .btn-login {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 18px !important;
  margin: 0 !important;
  border-radius: 999px !important;
  font-family: var(--s3-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  vertical-align: middle !important;
  -webkit-appearance: none !important;
  appearance: none !important;
  cursor: pointer;
  transition: transform 0.3s var(--s3-ease-out), background 0.25s ease, border-color 0.25s ease;
}

body.theme-sian3.is-form-open .form-head__actions .form-head__resume {
  color: var(--s3-ink);
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
}

body.theme-sian3.is-form-open .form-head__actions .form-head__resume:hover {
  border-color: rgba(196, 21, 31, 0.45);
  transform: translateY(-1px);
}

body.theme-sian3.is-form-open .form-head__actions .btn-login {
  color: #fff;
  background: var(--s3-red);
  border: 1px solid var(--s3-red);
  box-shadow: 0 10px 24px rgba(196, 21, 31, 0.28);
}

body.theme-sian3.is-student.is-form-open .form-head__actions .btn-login {
  background: var(--s3-student);
  border-color: var(--s3-student);
  box-shadow: 0 10px 24px rgba(180, 83, 9, 0.28);
}

/* Sections — dark glass like landing cards */
body.theme-sian3.is-form-open .form-box,
body.theme-sian3.is-form-open .form-sections {
  display: flex;
  flex-direction: column;
  gap: clamp(14px, 2vh, 18px);
}

/* Student: side-by-side cards on desktop for aligned section rhythm */
body.theme-sian3.is-form-open .student-lookup-grid {
  display: grid !important;
  grid-template-columns: 1fr;
  gap: clamp(14px, 2vh, 18px);
  align-items: start;
}

@media (min-width: 900px) {
  body.theme-sian3.is-form-open .student-lookup-grid {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
  }
  body.theme-sian3.is-form-open .student-lookup-grid--single {
    grid-template-columns: 1fr !important;
    max-width: 720px;
  }
}

body.theme-sian3.is-form-open .form-section,
body.theme-sian3.is-form-open .form-box {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow:
    0 20px 50px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: var(--s3-ink) !important;
  /* keep visible so custom selects/date panels are not clipped */
  overflow: visible !important;
}

body.theme-sian3.is-form-open .form-box {
  padding: 0;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none;
  -webkit-backdrop-filter: none;
}

body.theme-sian3.is-form-open .form-section__title {
  margin: 0 !important;
  padding: 18px 18px 12px !important;
  min-height: 0 !important;
  font-family: var(--s3-font-display);
  font-size: 10px;
  font-weight: 400;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: #ff5a63 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
  background: transparent;
  display: flex;
  align-items: center;
  border-radius: 20px 20px 0 0;
}

/* Kill pair-title spacer from split-form (was adding empty space above titles) */
body.theme-sian3.is-form-open .form-section--pair .form-section__title {
  min-height: 0 !important;
  margin-bottom: 0 !important;
  padding-bottom: 8px !important;
  align-items: center !important;
}

/* Tighter top rhythm on teacher form (match student density) */
body.theme-sian3.is-form-open #panelTeacher .form-head {
  margin-bottom: clamp(8px, 1.2vh, 12px);
  padding-bottom: clamp(8px, 1.2vh, 12px);
}

body.theme-sian3.is-form-open #panelTeacher .form-sections {
  gap: 10px !important;
}

body.theme-sian3.is-form-open #panelTeacher .form-section__title {
  padding-top: 14px !important;
}

/* Consent section spans full row in 2-col grid */
body.theme-sian3.is-form-open #sectionConsent {
  grid-column: 1 / -1;
}

body.theme-sian3.is-student.is-form-open .form-section__title {
  color: #e08a2f !important;
}

/* ── Field grid: tighter labels, uniform control size ── */
body.theme-sian3.is-form-open .split-layout__form,
body.theme-sian3.is-form-open #formStage {
  --form-label-w: 108px;
  --form-row-min: 52px;
  --form-wide-field-w: min(560px, 100%);
  --form-section-pad: 0;
  --form-field-h: 44px;
  --form-label-gap: 14px;
  --form-control-max: min(560px, 100%);
}

body.theme-sian3.is-form-open .form-section {
  padding: 0 !important;
}

body.theme-sian3.is-form-open .txtTable {
  padding: 6px 18px 18px !important;
}

body.theme-sian3.is-form-open .txtTable table {
  table-layout: fixed;
  width: 100%;
  border-collapse: collapse;
}

body.theme-sian3.is-form-open .txtTable col.inf_txt {
  width: var(--form-label-w) !important;
}

body.theme-sian3.is-form-open .txtTable table tr {
  height: var(--form-row-min);
}

body.theme-sian3.is-form-open .txtTable table tr td {
  padding: 10px 0 !important;
  color: rgba(245, 245, 245, 0.88) !important;
  border-color: rgba(255, 255, 255, 0.08) !important;
  background: transparent !important;
  vertical-align: middle !important;
}

body.theme-sian3.is-form-open .txtTable table tr + tr td {
  border-top: 1px solid rgba(255, 255, 255, 0.07) !important;
}

body.theme-sian3.is-form-open .txtTable table tr td:last-child {
  padding-left: var(--form-label-gap) !important;
  width: auto;
}

body.theme-sian3.is-form-open .txtTable table tr td.inf_1 {
  width: var(--form-label-w) !important;
  max-width: var(--form-label-w) !important;
  padding-right: 0 !important;
  padding-left: 0 !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  color: rgba(255, 255, 255, 0.88) !important;
  white-space: nowrap;
  letter-spacing: -0.01em;
  display: table-cell;
  vertical-align: middle !important;
}

body.theme-sian3.is-form-open .txtTable table tr td.inf_1 img {
  width: 14px !important;
  height: 14px !important;
  margin-right: 7px !important;
  opacity: 0.95 !important;
  /* Teacher accent (red) */
  filter: invert(1) sepia(1) saturate(12) hue-rotate(320deg) brightness(1.05) !important;
  vertical-align: -2px;
}

body.theme-sian3.is-student.is-form-open .txtTable table tr td.inf_1 img {
  /* Student accent (amber) */
  filter: invert(1) sepia(1) saturate(8) hue-rotate(350deg) brightness(1.08) !important;
}

/* Checkbox / multi-line rows */
body.theme-sian3.is-form-open .txtTable table tr:has(.checkbox-list) td,
body.theme-sian3.is-form-open .txtTable table tr:has(.education-fields) td,
body.theme-sian3.is-form-open .txtTable table tr:has(.photo-upload) td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  vertical-align: top !important;
}

body.theme-sian3.is-form-open .txtTable table tr:has(.checkbox-list) td.inf_1,
body.theme-sian3.is-form-open .txtTable table tr:has(.education-fields) td.inf_1,
body.theme-sian3.is-form-open .txtTable table tr:has(.photo-upload) td.inf_1 {
  padding-top: 14px !important;
}

/* Uniform controls — use background-color (not shorthand) so select chevrons stay put */
body.theme-sian3.is-form-open .split-layout__form,
body.theme-sian3.is-form-open .form-input,
body.theme-sian3.is-form-open select.form-input {
  color-scheme: dark;
}

body.theme-sian3.is-form-open .form-input,
body.theme-sian3.is-form-open select.form-input,
body.theme-sian3.is-form-open textarea.form-input,
body.theme-sian3.is-form-open .form-textarea,
body.theme-sian3.is-form-open input[type="date"].form-input,
body.theme-sian3.is-form-open input[type="time"].form-input,
body.theme-sian3.is-form-open input[type="tel"].form-input,
body.theme-sian3.is-form-open input[type="email"].form-input,
body.theme-sian3.is-form-open input[type="text"].form-input,
body.theme-sian3.is-form-open input[type="password"].form-input {
  box-sizing: border-box !important;
  width: 100% !important;
  max-width: var(--form-control-max) !important;
  min-height: var(--form-field-h) !important;
  height: var(--form-field-h) !important;
  padding: 0 14px !important;
  color: #f7f7f7 !important;
  background-color: rgba(255, 255, 255, 0.07) !important;
  background-image: none !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 11px !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  font-size: 14px !important;
  line-height: 1.3 !important;
  -webkit-appearance: none;
  appearance: none;
}

body.theme-sian3.is-form-open textarea.form-input,
body.theme-sian3.is-form-open .form-textarea {
  height: auto !important;
  min-height: 96px !important;
  max-width: var(--form-control-max) !important;
  padding: 12px 14px !important;
  line-height: 1.5 !important;
  resize: vertical;
}

body.theme-sian3.is-form-open .form-input::placeholder,
body.theme-sian3.is-form-open .form-textarea::placeholder {
  color: rgba(245, 245, 245, 0.38) !important;
}

body.theme-sian3.is-form-open .form-input:hover,
body.theme-sian3.is-form-open select.form-input:hover {
  background-color: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.28) !important;
}

body.theme-sian3.is-form-open .form-input:focus,
body.theme-sian3.is-form-open select.form-input:focus,
body.theme-sian3.is-form-open textarea.form-input:focus {
  border-color: rgba(255, 90, 99, 0.7) !important;
  outline: none;
  background-color: rgba(255, 255, 255, 0.1) !important;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22) !important;
}

body.theme-sian3.is-student.is-form-open .form-input:focus,
body.theme-sian3.is-student.is-form-open select.form-input:focus {
  border-color: rgba(224, 138, 47, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.22) !important;
}

/* Native date/time — hidden when wrapped in custom pickers */
body.theme-sian3.is-form-open input[type="date"].form-input:not(.s3-date__native),
body.theme-sian3.is-form-open input[type="time"].form-input:not(.s3-time__native),
body.theme-sian3.is-app-subroute input[type="date"].resume-input:not(.s3-date__native) {
  padding-right: 14px !important;
}

body.theme-sian3.is-form-open input[type="date"].form-input:not(.s3-date__native)::-webkit-calendar-picker-indicator,
body.theme-sian3.is-form-open input[type="time"].form-input:not(.s3-time__native)::-webkit-calendar-picker-indicator,
body.theme-sian3.is-app-subroute input[type="date"].resume-input:not(.s3-date__native)::-webkit-calendar-picker-indicator {
  opacity: 0.82;
  filter: invert(1);
  cursor: pointer !important;
}

/* Custom dark date picker — matches s3-time language */
body.theme-sian3.is-form-open .s3-date,
body.theme-sian3.is-app-subroute .s3-date {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

/* Single date fields in table cells — match other form-control widths */
body.theme-sian3.is-form-open .txtTable td > .s3-date {
  width: 100%;
  max-width: var(--form-control-max);
  flex: 0 1 auto;
}

body.theme-sian3.is-form-open .s3-date__native,
body.theme-sian3.is-app-subroute .s3-date__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.theme-sian3.is-form-open .s3-date__trigger,
body.theme-sian3.is-app-subroute .s3-date__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  width: 100%;
  min-height: var(--form-field-h, 44px);
  height: var(--form-field-h, 44px);
  padding: 0 12px 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #f7f7f7;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  transition:
    background 0.2s ease,
    border-color 0.2s ease,
    box-shadow 0.2s ease;
}

body.theme-sian3.is-form-open .s3-date__trigger:hover:not(:disabled),
body.theme-sian3.is-app-subroute .s3-date__trigger:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

body.theme-sian3.is-form-open .s3-date:focus-within .s3-date__trigger,
body.theme-sian3.is-app-subroute .s3-date:focus-within .s3-date__trigger {
  border-color: rgba(255, 90, 99, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22);
}

body.theme-sian3.is-form-open .s3-date__trigger:disabled,
body.theme-sian3.is-form-open .s3-date.is-disabled .s3-date__trigger,
body.theme-sian3.is-app-subroute .s3-date__trigger:disabled,
body.theme-sian3.is-app-subroute .s3-date.is-disabled .s3-date__trigger {
  opacity: 0.45;
  cursor: not-allowed;
}

body.theme-sian3.is-form-open .s3-date__value,
body.theme-sian3.is-app-subroute .s3-date__value {
  flex: 1 1 auto;
  min-width: 0;
  text-align: left;
  letter-spacing: -0.01em;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  word-break: keep-all;
}

body.theme-sian3.is-form-open .s3-date.is-empty .s3-date__value,
body.theme-sian3.is-app-subroute .s3-date.is-empty .s3-date__value {
  color: rgba(245, 245, 245, 0.38);
  font-weight: 500;
}

/* Month picker — year trigger needs room; hide month field */
body.theme-sian3 .s3-date__panel--month .s3-date__ym {
  justify-content: center;
  flex: 1 1 auto;
  min-width: 0;
}
body.theme-sian3 .s3-date__panel--month .s3-date__ym-field--year {
  flex: 1 1 auto;
  max-width: 148px;
}
body.theme-sian3 .s3-date__panel--month .s3-date__ym-field--month {
  display: none;
}

body.theme-sian3.is-form-open .s3-date__icon,
body.theme-sian3.is-app-subroute .s3-date__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  width: 28px;
  height: 28px;
  border-radius: 8px;
  color: rgba(255, 255, 255, 0.88);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-sian3.is-form-open .s3-date__trigger:hover:not(:disabled) .s3-date__icon,
body.theme-sian3.is-app-subroute .s3-date__trigger:hover:not(:disabled) .s3-date__icon {
  color: #fff;
  background: rgba(196, 21, 31, 0.18);
  border-color: rgba(196, 21, 31, 0.35);
}

body.theme-sian3.is-form-open .field-highlight.s3-date .s3-date__trigger,
body.theme-sian3.is-app-subroute .field-highlight.s3-date .s3-date__trigger {
  border-color: rgba(255, 90, 99, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22) !important;
}

body.theme-sian3.is-form-open .field-highlight.s3-select .s3-select__trigger {
  border-color: rgba(255, 90, 99, 0.55) !important;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22) !important;
}

body.theme-sian3.is-student.is-form-open .field-highlight.s3-select .s3-select__trigger {
  border-color: rgba(224, 138, 47, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.22) !important;
}

body.theme-sian3.is-student.is-form-open .s3-date:focus-within .s3-date__trigger,
body.theme-sian3.is-student.is-form-open .field-highlight.s3-date .s3-date__trigger {
  border-color: rgba(224, 138, 47, 0.75) !important;
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.22) !important;
}

body.theme-sian3.is-form-open .form-inline-row .s3-date {
  flex: 1 1 0;
  min-width: 0;
  max-width: none !important;
}

/* Custom dark calendar panel */
body.theme-sian3.is-form-open .s3-date__panel,
body.theme-sian3.is-app-subroute .s3-date__panel {
  position: absolute;
  top: calc(100% + 8px);
  left: 0;
  z-index: 60;
  width: min(280px, calc(100vw - 32px));
  padding: 14px 12px 12px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background:
    radial-gradient(ellipse 70% 55% at 90% 0%, rgba(196, 21, 31, 0.18), transparent 55%),
    rgba(16, 14, 15, 0.97);
  box-shadow:
    0 18px 48px rgba(0, 0, 0, 0.45),
    inset 0 1px 0 rgba(255, 255, 255, 0.08);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  box-sizing: border-box;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

/* Portal: escape overflow ancestors; JS sets left/top/width */
body.theme-sian3 .s3-date__panel.is-portal {
  position: fixed !important;
  right: auto !important;
  z-index: 10060 !important;
  width: auto;
  max-width: min(300px, calc(100vw - 24px));
  box-sizing: border-box;
}

body.theme-sian3 .s3-date__panel.is-sheet,
body.theme-sian3 .s3-select__panel.is-sheet,
body.theme-sian3 .s3-time__panel.is-sheet {
  /* legacy class kept harmless — mobile no longer uses bottom sheets */
  border-radius: 16px;
  padding-top: 0;
}

body.theme-sian3 .s3-picker-scrim {
  position: fixed;
  inset: 0;
  z-index: 10040;
  border: 0;
  margin: 0;
  padding: 0;
  background: rgba(0, 0, 0, 0.36);
  -webkit-backdrop-filter: none;
  backdrop-filter: none;
  cursor: pointer;
  touch-action: manipulation;
}

body.theme-sian3 .s3-picker-scrim[hidden] {
  display: none !important;
}

/* Tablet anchored panels — keep within safe visual frame */
@media (min-width: 641px) and (max-width: 1024px) {
  body.theme-sian3 .s3-date__panel.is-portal,
  body.theme-sian3 .s3-select__panel.is-portal,
  body.theme-sian3 .s3-time__panel.is-portal {
    max-width: min(360px, calc(100vw - 28px)) !important;
  }

  body.theme-sian3 .s3-select__panel.is-portal .s3-select__option,
  body.theme-sian3 .s3-time__panel.is-portal .s3-time__option {
    min-height: 44px;
    font-size: 14px;
  }
}

@media (max-width: 640px) {
  body.theme-sian3 .s3-date__panel.is-portal {
    max-width: min(300px, calc(100vw - 24px)) !important;
  }

  body.theme-sian3 .s3-select__panel.is-portal {
    max-width: min(320px, calc(100vw - 24px)) !important;
  }

  body.theme-sian3 .s3-time__panel.is-portal {
    max-width: min(200px, calc(100vw - 24px)) !important;
  }
}

body.theme-sian3.is-form-open .form-inline-row .s3-date:last-of-type .s3-date__panel,
body.theme-sian3.is-app-subroute .form-inline-row .s3-date:last-of-type .s3-date__panel {
  left: auto;
  right: 0;
}

body.theme-sian3.is-form-open .s3-date.is-open .s3-date__trigger,
body.theme-sian3.is-app-subroute .s3-date.is-open .s3-date__trigger {
  border-color: rgba(255, 90, 99, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22);
}

body.theme-sian3.is-form-open .s3-date__head,
body.theme-sian3.is-app-subroute .s3-date__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  margin-bottom: 12px;
}

body.theme-sian3.is-form-open .s3-date__ym,
body.theme-sian3.is-app-subroute .s3-date__ym {
  display: flex;
  align-items: center;
  gap: 6px;
  flex: 1 1 auto;
  min-width: 0;
  justify-content: center;
}

body.theme-sian3.is-form-open .s3-date__ym-field,
body.theme-sian3.is-app-subroute .s3-date__ym-field,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-field {
  position: relative;
  min-width: 0;
}

body.theme-sian3.is-form-open .s3-date__ym-field--year,
body.theme-sian3.is-app-subroute .s3-date__ym-field--year {
  flex: 1 1 52%;
}

body.theme-sian3.is-form-open .s3-date__ym-field--month,
body.theme-sian3.is-app-subroute .s3-date__ym-field--month {
  flex: 1 1 38%;
}

body.theme-sian3.is-form-open .s3-date__ym-trigger,
body.theme-sian3.is-app-subroute .s3-date__ym-trigger,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-trigger {
  display: inline-flex;
  align-items: center;
  justify-content: space-between;
  gap: 6px;
  width: 100%;
  min-width: 0;
  height: 34px;
  padding: 0 10px 0 11px;
  border-radius: 10px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 245, 0.92);
  font-family: var(--s3-font-body, 'Noto Sans KR', sans-serif);
  font-size: 13px;
  font-weight: 650;
  letter-spacing: -0.01em;
  cursor: pointer;
  transition: background 0.16s ease, border-color 0.16s ease, box-shadow 0.16s ease;
}

body.theme-sian3.is-form-open .s3-date__ym-trigger:hover,
body.theme-sian3.is-app-subroute .s3-date__ym-trigger:hover,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-trigger:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.22);
  color: #fff;
}

body.theme-sian3.is-form-open .s3-date__ym-field.is-open .s3-date__ym-trigger,
body.theme-sian3.is-app-subroute .s3-date__ym-field.is-open .s3-date__ym-trigger,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-field.is-open .s3-date__ym-trigger {
  border-color: rgba(255, 90, 99, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.2);
  background: rgba(196, 21, 31, 0.12);
}

body.theme-sian3.is-student.is-form-open .s3-date__ym-field.is-open .s3-date__ym-trigger,
body.theme-sian3.is-student .s3-date__panel.is-portal .s3-date__ym-field.is-open .s3-date__ym-trigger {
  border-color: rgba(224, 138, 47, 0.75);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.2);
  background: rgba(180, 83, 9, 0.14);
}

body.theme-sian3.is-form-open .s3-date__ym-value,
body.theme-sian3.is-app-subroute .s3-date__ym-value,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-value {
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  font-variant-numeric: tabular-nums;
}

body.theme-sian3.is-form-open .s3-date__ym-chevron,
body.theme-sian3.is-app-subroute .s3-date__ym-chevron,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-chevron {
  display: inline-flex;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
  transition: transform 0.18s ease, color 0.18s ease;
}

body.theme-sian3.is-form-open .s3-date__ym-field.is-open .s3-date__ym-chevron,
body.theme-sian3.is-app-subroute .s3-date__ym-field.is-open .s3-date__ym-chevron,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-field.is-open .s3-date__ym-chevron {
  transform: rotate(180deg);
  color: #ff8a90;
}

body.theme-sian3.is-student.is-form-open .s3-date__ym-field.is-open .s3-date__ym-chevron,
body.theme-sian3.is-student .s3-date__panel.is-portal .s3-date__ym-field.is-open .s3-date__ym-chevron {
  color: #e08a2f;
}

body.theme-sian3.is-form-open .s3-date__ym-menu,
body.theme-sian3.is-app-subroute .s3-date__ym-menu,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-menu {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 80;
  min-width: 100%;
  padding: 6px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(196, 21, 31, 0.16), transparent 55%),
    rgba(14, 12, 12, 0.98);
  box-shadow:
    0 16px 36px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(16px) saturate(1.15);
  -webkit-backdrop-filter: blur(16px) saturate(1.15);
}

body.theme-sian3.is-student.is-form-open .s3-date__ym-menu,
body.theme-sian3.is-student .s3-date__panel.is-portal .s3-date__ym-menu {
  border-color: rgba(224, 138, 47, 0.28);
  background:
    radial-gradient(ellipse 80% 60% at 100% 0%, rgba(180, 83, 9, 0.18), transparent 55%),
    rgba(14, 12, 12, 0.98);
}

body.theme-sian3.is-form-open .s3-date__ym-list,
body.theme-sian3.is-app-subroute .s3-date__ym-list,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-list {
  max-height: min(236px, 42vh);
  overflow-x: hidden;
  overflow-y: auto;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
  padding-right: 2px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.32) transparent;
}

body.theme-sian3.is-form-open .s3-date__ym-list::-webkit-scrollbar,
body.theme-sian3.is-app-subroute .s3-date__ym-list::-webkit-scrollbar,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-list::-webkit-scrollbar {
  width: 8px;
}

body.theme-sian3.is-form-open .s3-date__ym-list::-webkit-scrollbar-track,
body.theme-sian3.is-app-subroute .s3-date__ym-list::-webkit-scrollbar-track,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-list::-webkit-scrollbar-track {
  background: transparent;
  margin: 4px 0;
}

body.theme-sian3.is-form-open .s3-date__ym-list::-webkit-scrollbar-thumb,
body.theme-sian3.is-app-subroute .s3-date__ym-list::-webkit-scrollbar-thumb,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.24);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

body.theme-sian3.is-form-open .s3-date__ym-list::-webkit-scrollbar-thumb:hover,
body.theme-sian3.is-app-subroute .s3-date__ym-list::-webkit-scrollbar-thumb:hover,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-list::-webkit-scrollbar-thumb:hover {
  background: rgba(255, 140, 148, 0.55);
  background-clip: content-box;
  border: 2px solid transparent;
}

body.theme-sian3.is-student.is-form-open .s3-date__ym-list,
body.theme-sian3.is-student .s3-date__panel.is-portal .s3-date__ym-list {
  scrollbar-color: rgba(224, 138, 47, 0.5) transparent;
}

body.theme-sian3.is-student.is-form-open .s3-date__ym-list::-webkit-scrollbar-thumb,
body.theme-sian3.is-student .s3-date__panel.is-portal .s3-date__ym-list::-webkit-scrollbar-thumb {
  background: rgba(224, 138, 47, 0.48);
  background-clip: content-box;
  border: 2px solid transparent;
}

body.theme-sian3.is-form-open .s3-date__ym-option,
body.theme-sian3.is-app-subroute .s3-date__ym-option,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  margin: 1px 0;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(245, 245, 245, 0.86);
  font-family: var(--s3-font-body, 'Noto Sans KR', sans-serif);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
  transition: background 0.14s ease, color 0.14s ease;
}

body.theme-sian3.is-form-open .s3-date__ym-option:hover,
body.theme-sian3.is-app-subroute .s3-date__ym-option:hover,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.theme-sian3.is-form-open .s3-date__ym-option.is-selected,
body.theme-sian3.is-app-subroute .s3-date__ym-option.is-selected,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-option.is-selected {
  background: linear-gradient(165deg, #e0353d 0%, var(--s3-red) 55%, #9a1119 100%);
  color: #fff;
  box-shadow: 0 4px 12px rgba(196, 21, 31, 0.32);
}

body.theme-sian3.is-student.is-form-open .s3-date__ym-option.is-selected,
body.theme-sian3.is-student .s3-date__panel.is-portal .s3-date__ym-option.is-selected {
  background: linear-gradient(165deg, #d97706 0%, var(--s3-student) 55%, #8a4207 100%);
  box-shadow: 0 4px 12px rgba(180, 83, 9, 0.32);
}

/* Keep year/month menus visible above calendar grid */
body.theme-sian3.is-form-open .s3-date__panel.has-ym-open,
body.theme-sian3.is-app-subroute .s3-date__panel.has-ym-open,
body.theme-sian3 .s3-date__panel.is-portal.has-ym-open {
  overflow: visible !important;
}

body.theme-sian3.is-form-open .s3-date__title,
body.theme-sian3.is-app-subroute .s3-date__title {
  font-family: var(--s3-font-body, 'Noto Sans KR', sans-serif);
  font-size: 14px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: #fff;
}

body.theme-sian3.is-form-open .s3-date__grid--months,
body.theme-sian3.is-app-subroute .s3-date__grid--months,
body.theme-sian3 .s3-date__panel--month .s3-date__grid--months {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: 8px !important;
}

body.theme-sian3.is-form-open .s3-date__month-btn,
body.theme-sian3.is-app-subroute .s3-date__month-btn,
body.theme-sian3 .s3-date__panel--month .s3-date__month-btn {
  min-height: 40px !important;
  border-radius: 12px !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  color: rgba(245, 245, 245, 0.88) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  box-shadow: none !important;
}

body.theme-sian3.is-form-open .s3-date__month-btn:hover:not(:disabled),
body.theme-sian3.is-app-subroute .s3-date__month-btn:hover:not(:disabled),
body.theme-sian3 .s3-date__panel--month .s3-date__month-btn:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
}

body.theme-sian3.is-form-open .s3-date__month-btn.is-selected,
body.theme-sian3.is-app-subroute .s3-date__month-btn.is-selected,
body.theme-sian3 .s3-date__panel--month .s3-date__month-btn.is-selected {
  background: linear-gradient(165deg, #e0353d 0%, var(--s3-red) 55%, #9a1119 100%) !important;
  color: #fff !important;
  box-shadow: 0 6px 16px rgba(196, 21, 31, 0.35) !important;
}

body.theme-sian3.is-form-open .s3-date__month-btn.is-today,
body.theme-sian3.is-app-subroute .s3-date__month-btn.is-today,
body.theme-sian3 .s3-date__panel--month .s3-date__month-btn.is-today {
  box-shadow: none !important;
  color: rgba(245, 245, 245, 0.88) !important;
}

body.theme-sian3.is-form-open .s3-date__month-btn.is-disabled,
body.theme-sian3.is-app-subroute .s3-date__month-btn.is-disabled,
body.theme-sian3 .s3-date__panel--month .s3-date__month-btn.is-disabled,
body.theme-sian3.is-form-open .s3-date__month-btn:disabled,
body.theme-sian3.is-app-subroute .s3-date__month-btn:disabled {
  opacity: 0.28 !important;
  color: rgba(245, 245, 245, 0.35) !important;
  background: transparent !important;
  cursor: not-allowed !important;
}

body.theme-sian3.is-form-open .s3-date__nav,
body.theme-sian3.is-app-subroute .s3-date__nav {
  width: 30px;
  height: 30px;
  border-radius: 8px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.85);
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
  transition: background 0.2s ease, border-color 0.2s ease, color 0.2s ease;
}

body.theme-sian3.is-form-open .s3-date__nav:hover,
body.theme-sian3.is-app-subroute .s3-date__nav:hover {
  background: rgba(196, 21, 31, 0.22);
  border-color: rgba(196, 21, 31, 0.4);
  color: #fff;
}

body.theme-sian3.is-form-open .s3-date__week,
body.theme-sian3.is-app-subroute .s3-date__week {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 2px;
  margin-bottom: 6px;
}

body.theme-sian3.is-form-open .s3-date__week span,
body.theme-sian3.is-app-subroute .s3-date__week span {
  text-align: center;
  font-size: 10px;
  font-weight: 700;
  letter-spacing: 0.06em;
  color: rgba(255, 255, 255, 0.38);
  padding: 4px 0;
}

body.theme-sian3.is-form-open .s3-date__week span:first-child,
body.theme-sian3.is-app-subroute .s3-date__week span:first-child {
  color: rgba(255, 120, 128, 0.7);
}

body.theme-sian3.is-form-open .s3-date__grid,
body.theme-sian3.is-app-subroute .s3-date__grid {
  display: grid;
  grid-template-columns: repeat(7, 1fr);
  gap: 3px;
}

body.theme-sian3.is-form-open .s3-date__day,
body.theme-sian3.is-app-subroute .s3-date__day {
  height: 32px;
  border: 0;
  border-radius: 8px;
  background: transparent;
  color: rgba(255, 255, 255, 0.88);
  font-size: 13px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  transition: background 0.15s ease, color 0.15s ease;
}

body.theme-sian3.is-form-open .s3-date__day:hover:not(:disabled),
body.theme-sian3.is-app-subroute .s3-date__day:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.theme-sian3.is-form-open .s3-date__day.is-today,
body.theme-sian3.is-app-subroute .s3-date__day.is-today {
  box-shadow: inset 0 0 0 1px rgba(196, 21, 31, 0.55);
  color: #ffb4b8;
}

body.theme-sian3.is-form-open .s3-date__day.is-selected,
body.theme-sian3.is-app-subroute .s3-date__day.is-selected {
  background: linear-gradient(165deg, #e0353d 0%, var(--s3-red) 55%, #9a1119 100%);
  color: #fff;
  box-shadow: 0 6px 16px rgba(196, 21, 31, 0.35);
}

body.theme-sian3.is-form-open .s3-date__day.is-muted,
body.theme-sian3.is-app-subroute .s3-date__day.is-muted {
  color: rgba(255, 255, 255, 0.18);
  cursor: default;
}

body.theme-sian3.is-form-open .s3-date__day.is-disabled,
body.theme-sian3.is-app-subroute .s3-date__day.is-disabled,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__day.is-disabled {
  opacity: 0.34;
  color: rgba(255, 255, 255, 0.28);
  cursor: not-allowed;
  pointer-events: none;
  box-shadow: none;
  background: transparent;
}

body.theme-sian3.is-form-open .s3-date__day.is-disabled:hover,
body.theme-sian3.is-app-subroute .s3-date__day.is-disabled:hover,
body.theme-sian3 .s3-date__panel.is-portal .s3-date__day.is-disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.28);
}

body.theme-sian3.is-form-open .s3-date__grid .s3-date__day:nth-child(7n + 1):not(.is-muted):not(.is-selected),
body.theme-sian3.is-app-subroute .s3-date__grid .s3-date__day:nth-child(7n + 1):not(.is-muted):not(.is-selected) {
  color: rgba(255, 140, 148, 0.85);
}

/* Select chevron — always re-asserted so hover/focus/disabled never wipe or jump it */
body.theme-sian3.is-form-open select.form-input,
body.theme-sian3.is-form-open select.form-input:hover,
body.theme-sian3.is-form-open select.form-input:focus,
body.theme-sian3.is-form-open select.form-input:disabled,
body.theme-sian3.is-form-open select.form-input:disabled:hover {
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='8' viewBox='0 0 12 8'%3E%3Cpath fill='%23f5f5f5' d='M1.1 1.2 6 6.1l4.9-4.9 1.1 1.1L6 8.3.0 2.3z'/%3E%3C/svg%3E") !important;
  background-repeat: no-repeat !important;
  background-position: right 14px center !important;
  background-size: 12px 8px !important;
  padding-right: 36px !important;
}

body.theme-sian3.is-form-open select.form-input:disabled,
body.theme-sian3.is-form-open select.form-input:disabled:hover {
  background-color: rgba(255, 255, 255, 0.05) !important;
  color: rgba(245, 245, 245, 0.55) !important;
  opacity: 1 !important;
  cursor: not-allowed;
}

body.theme-sian3.is-form-open select.form-input option {
  background-color: #141414;
  color: #f5f5f5;
}

/* Custom select — brand accent instead of OS blue */
body.theme-sian3.is-form-open .s3-select {
  position: relative;
  display: block;
  max-width: var(--form-control-max);
}

body.theme-sian3.is-form-open select.form-input.s3-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  background-image: none !important;
}

/* Resume / subroute: same native hide — prevents double select UI */
body.theme-sian3.is-app-subroute select.s3-select__native,
body.theme-sian3.is-app-subroute select.form-input.s3-select__native,
body.theme-sian3.is-app-subroute select.resume-input.s3-select__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  min-width: 0 !important;
  min-height: 0 !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
  overflow: hidden !important;
  background: transparent !important;
  background-image: none !important;
  -webkit-appearance: none !important;
  appearance: none !important;
}

body.theme-sian3.is-app-subroute .s3-select {
  position: relative;
  display: block;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.theme-sian3.is-form-open .s3-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: var(--form-field-h, 44px);
  height: var(--form-field-h, 44px);
  padding: 0 12px 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #f7f7f7;
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
  cursor: pointer;
  box-sizing: border-box;
}

body.theme-sian3.is-form-open .s3-select__trigger:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

body.theme-sian3.is-form-open .s3-select.is-open .s3-select__trigger,
body.theme-sian3.is-form-open .s3-select__trigger:focus {
  outline: none;
  border-color: rgba(255, 90, 99, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22);
}

body.theme-sian3.is-student.is-form-open .s3-select.is-open .s3-select__trigger,
body.theme-sian3.is-student.is-form-open .s3-select__trigger:focus {
  border-color: rgba(224, 138, 47, 0.75);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.22);
}

body.theme-sian3.is-form-open .s3-select__trigger:disabled,
body.theme-sian3.is-form-open .s3-select.is-disabled .s3-select__trigger {
  opacity: 0.55;
  cursor: not-allowed;
  background: rgba(255, 255, 255, 0.05);
}

body.theme-sian3.is-form-open .s3-select.is-empty .s3-select__value {
  color: rgba(245, 245, 245, 0.42);
  font-weight: 500;
}

body.theme-sian3.is-form-open .s3-select__value {
  flex: 1 1 auto;
  min-width: 0;
  overflow: hidden;
  text-overflow: ellipsis;
  white-space: nowrap;
  line-height: 1.2;
}

body.theme-sian3.is-form-open .s3-select__chevron {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 16px;
  width: 16px;
  height: 16px;
  margin: 0;
  color: rgba(245, 245, 245, 0.52);
  transform: rotate(0deg);
  transform-origin: 50% 50%;
  transition:
    transform 0.28s cubic-bezier(0.22, 1, 0.36, 1),
    color 0.2s ease;
  pointer-events: none;
}

body.theme-sian3.is-form-open .s3-select__chevron svg {
  display: block;
  width: 12px;
  height: 12px;
  flex: 0 0 auto;
}

body.theme-sian3.is-form-open .s3-select.is-open .s3-select__chevron {
  transform: rotate(180deg);
  color: #ff8a90;
}

body.theme-sian3.is-student.is-form-open .s3-select.is-open .s3-select__chevron {
  color: #e08a2f;
}

body.theme-sian3.is-form-open .s3-select__panel,
body.theme-sian3 .s3-select__panel.is-portal {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 42;
  max-height: 260px;
  overflow: auto;
  padding: 8px;
  border-radius: 16px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(16, 14, 14, 0.98);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.28) transparent;
}

body.theme-sian3.is-form-open .s3-select__panel::-webkit-scrollbar,
body.theme-sian3 .s3-select__panel.is-portal::-webkit-scrollbar {
  width: 8px;
}

body.theme-sian3.is-form-open .s3-select__panel::-webkit-scrollbar-thumb,
body.theme-sian3 .s3-select__panel.is-portal::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: content-box;
}

body.theme-sian3.is-student.is-form-open .s3-select__panel,
body.theme-sian3.is-student .s3-select__panel.is-portal {
  border-color: rgba(224, 138, 47, 0.28);
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.5),
    0 0 0 1px rgba(180, 83, 9, 0.12),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
}

body.theme-sian3.is-form-open .s3-select__trigger {
  min-height: 46px;
  height: 46px;
}

body.theme-sian3.is-student.is-form-open .s3-select__trigger {
  min-height: 48px;
  height: 48px;
}

/* Escape scroll/overflow ancestors + portal above form shell */
body.theme-sian3.is-form-open .s3-select__panel.is-fixed,
body.theme-sian3 .s3-select__panel.is-portal {
  position: fixed !important;
  right: auto !important;
  z-index: 10050 !important;
  box-sizing: border-box;
  overscroll-behavior: contain;
  -webkit-overflow-scrolling: touch;
}

body.theme-sian3 .s3-select__panel.is-sheet {
  border-radius: 16px;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: none;
}

body.theme-sian3.is-form-open .s3-select__option,
body.theme-sian3 .s3-select__panel.is-portal .s3-select__option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 44px;
  margin: 2px 0;
  padding: 0 14px;
  border: 0;
  border-radius: 11px;
  background: transparent;
  color: rgba(245, 245, 245, 0.88);
  font-size: 13px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
  transition: background 0.16s ease, color 0.16s ease;
}

body.theme-sian3.is-form-open .s3-select__option:hover,
body.theme-sian3.is-form-open .s3-select__option.is-active,
body.theme-sian3 .s3-select__panel.is-portal .s3-select__option:hover,
body.theme-sian3 .s3-select__panel.is-portal .s3-select__option.is-active {
  background: rgba(196, 21, 31, 0.22);
  color: #fff;
}

body.theme-sian3.is-form-open .s3-select__option.is-selected,
body.theme-sian3 .s3-select__panel.is-portal .s3-select__option.is-selected {
  background: var(--s3-red);
  color: #fff;
  box-shadow: 0 6px 16px rgba(196, 21, 31, 0.28);
}

body.theme-sian3.is-student.is-form-open .s3-select__option:hover,
body.theme-sian3.is-student.is-form-open .s3-select__option.is-active,
body.theme-sian3.is-student .s3-select__panel.is-portal .s3-select__option:hover,
body.theme-sian3.is-student .s3-select__panel.is-portal .s3-select__option.is-active {
  background: rgba(180, 83, 9, 0.28);
}

body.theme-sian3.is-student.is-form-open .s3-select__option.is-selected,
body.theme-sian3.is-student .s3-select__panel.is-portal .s3-select__option.is-selected {
  background: var(--s3-student);
  box-shadow: 0 6px 16px rgba(180, 83, 9, 0.3);
}

body.theme-sian3.is-form-open .s3-select__option:disabled,
body.theme-sian3 .s3-select__panel.is-portal .s3-select__option:disabled {
  opacity: 0.4;
  pointer-events: none;
}

/* Kill light split-form white field styles on dark sian3 */
body.theme-sian3.is-form-open .split-layout__form .form-input:hover,
body.theme-sian3.is-form-open .split-layout__form .form-textarea:hover,
body.theme-sian3.is-form-open .split-layout__form .form-input:focus,
body.theme-sian3.is-form-open .split-layout__form .form-textarea:focus,
body.theme-sian3.is-form-open .split-layout__form select.form-input:hover,
body.theme-sian3.is-form-open .split-layout__form select.form-input:focus {
  background-color: rgba(255, 255, 255, 0.1) !important;
  color: #f7f7f7 !important;
}

body.theme-sian3.is-form-open .form-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--form-control-max);
}

body.theme-sian3.is-form-open .form-inline-row .form-input {
  flex: 1 1 0;
  min-width: 0;
  max-width: none !important;
}

body.theme-sian3.is-form-open .form-inline-row__sep {
  flex: 0 0 auto;
  color: rgba(245, 245, 245, 0.55);
  font-weight: 600;
}

/* Birth YMD — year / month / day segmented pickers */
body.theme-sian3.is-form-open .birth-ymd {
  width: 100%;
  max-width: var(--form-control-max);
}

body.theme-sian3.is-form-open .birth-ymd__row {
  display: grid;
  grid-template-columns: minmax(0, 1.4fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

body.theme-sian3.is-form-open .birth-ymd__unit {
  display: block;
  min-width: 0;
}

body.theme-sian3.is-form-open .birth-ymd .s3-select,
body.theme-sian3.is-form-open .birth-ymd .form-input {
  width: 100%;
  max-width: none !important;
}

body.theme-sian3.is-form-open .birth-ymd .s3-select__trigger {
  padding-left: 12px;
  padding-right: 10px;
}

body.theme-sian3.is-form-open .birth-ymd .s3-select__value {
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

body.theme-sian3.is-form-open .birth-ymd .s3-select.is-empty .s3-select__value {
  color: rgba(245, 245, 245, 0.38);
  font-weight: 500;
}

body.theme-sian3.is-form-open .birth-ymd.field-highlight {
  border-radius: 14px;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22);
}

body.theme-sian3.is-form-open .birth-ymd.field-highlight .s3-select__trigger {
  border-color: rgba(255, 90, 99, 0.55);
}

/* Resume / subroute birth YMD — same segmented language as teacher form */
body.theme-sian3.is-app-subroute .birth-ymd {
  width: 100%;
  max-width: none;
}

body.theme-sian3.is-app-subroute .birth-ymd__row {
  display: grid;
  grid-template-columns: minmax(0, 1.35fr) minmax(0, 0.95fr) minmax(0, 0.95fr);
  gap: 8px;
  width: 100%;
  align-items: stretch;
}

body.theme-sian3.is-app-subroute .birth-ymd__unit {
  display: block;
  min-width: 0;
}

body.theme-sian3.is-app-subroute .birth-ymd--resume .birth-ymd__row {
  gap: 8px;
  align-items: center;
}

body.theme-sian3.is-app-subroute .birth-ymd .s3-select,
body.theme-sian3.is-app-subroute .birth-ymd .form-input,
body.theme-sian3.is-app-subroute .birth-ymd .resume-input {
  width: 100%;
  max-width: none !important;
}

body.theme-sian3.is-app-subroute .birth-ymd .s3-select__trigger {
  min-height: 44px;
  height: 44px;
  padding-left: 12px;
  padding-right: 10px;
}

body.theme-sian3.is-app-subroute .birth-ymd--resume .s3-select__trigger {
  min-height: 44px !important;
  height: 44px !important;
}

body.theme-sian3.is-app-subroute .birth-ymd .s3-select__value {
  font-size: 13px;
  font-variant-numeric: tabular-nums;
  letter-spacing: -0.01em;
}

body.theme-sian3.is-app-subroute .birth-ymd .s3-select.is-empty .s3-select__value {
  color: rgba(245, 245, 245, 0.38);
  font-weight: 500;
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .birth-ymd .s3-select__trigger {
  opacity: 0.92;
}

body.theme-sian3.is-app-subroute .birth-ymd.is-disabled .s3-select__trigger,
body.theme-sian3.is-app-subroute .birth-ymd.is-disabled .s3-select__trigger:disabled {
  opacity: 0.92;
  cursor: default;
}

body.theme-sian3.is-app-subroute .resume-field:has(.birth-ymd--resume) {
  align-self: start;
}

@media (max-width: 640px) {
  /* Resume stays 3-across so it doesn't drop below the name field */
  body.theme-sian3.is-app-subroute .birth-ymd--resume .birth-ymd__row {
    grid-template-columns: minmax(0, 1.3fr) minmax(0, 0.9fr) minmax(0, 0.9fr);
    gap: 6px;
  }

  body.theme-sian3.is-app-subroute .birth-ymd:not(.birth-ymd--resume) .birth-ymd__row {
    grid-template-columns: 1fr;
    gap: 10px;
  }

  body.theme-sian3.is-app-subroute .birth-ymd .s3-select__trigger {
    min-height: 46px;
    height: 46px;
  }

  body.theme-sian3.is-app-subroute .birth-ymd--resume .s3-select__trigger {
    min-height: 44px !important;
    height: 44px !important;
    padding-left: 10px;
    padding-right: 8px;
  }

  body.theme-sian3.is-app-subroute .birth-ymd .s3-select__value {
    font-size: 14px;
  }

  body.theme-sian3.is-app-subroute .birth-ymd--resume .s3-select__value {
    font-size: 13px;
  }

  body.theme-sian3.is-app-subroute .s34-site-header .header-bar,
  body.theme-sian3.is-app-subroute .site-header .header-bar {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.theme-sian3.is-app-subroute .header-back {
    min-height: 34px;
    padding: 0 12px 2px !important;
    font-size: 10px !important;
    letter-spacing: 0.12em !important;
  }
}

@media (max-width: 480px) {
  body.theme-sian3.is-form-open .birth-ymd__row {
    grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr) minmax(0, 1fr);
    gap: 6px;
  }

  body.theme-sian3.is-form-open .birth-ymd .s3-select__trigger {
    padding-left: 10px;
    padding-right: 8px;
  }

  body.theme-sian3.is-form-open .birth-ymd .s3-select__value {
    font-size: 13px;
  }
}

/* Keep [hidden] winning over flex-center !important on Back */
body.theme-sian3 .header-back[hidden] {
  display: none !important;
}

/* Address: inputs match other fields; search button sits beside */
body.theme-sian3.is-form-open .addr-row {
  display: grid;
  grid-template-columns: minmax(0, var(--form-control-max)) auto;
  align-items: start;
  gap: 8px;
  width: 100%;
  max-width: none;
}

body.theme-sian3.is-form-open .addr-fields {
  grid-column: 1;
  min-width: 0;
  width: 100%;
  max-width: none;
  display: flex;
  flex-direction: column;
  gap: 8px;
}

body.theme-sian3.is-form-open .addr-fields .form-input {
  width: 100% !important;
  max-width: none !important;
}

body.theme-sian3.is-form-open .addr-fields .form-input[readonly],
body.theme-sian3.is-form-open #fAddr1 {
  background: rgba(255, 255, 255, 0.05) !important;
  color: rgba(245, 245, 245, 0.82) !important;
  -webkit-text-fill-color: rgba(245, 245, 245, 0.82) !important;
}

body.theme-sian3.is-form-open .addr-row > .btn-secondary,
body.theme-sian3.is-form-open #btnAddrSearch {
  grid-column: 2;
  grid-row: 1;
  flex: 0 0 auto;
  align-self: start;
  justify-self: start;
  min-width: 96px;
  min-height: var(--form-field-h) !important;
  height: var(--form-field-h) !important;
  padding: 0 14px !important;
  border-radius: 11px !important;
  white-space: nowrap;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.1) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.theme-sian3.is-form-open .addr-row > .btn-secondary:hover,
body.theme-sian3.is-form-open #btnAddrSearch:hover {
  background: rgba(196, 21, 31, 0.28) !important;
  border-color: rgba(255, 90, 99, 0.55) !important;
}

body.theme-sian3.is-student.is-form-open .addr-row > .btn-secondary:hover,
body.theme-sian3.is-student.is-form-open #btnAddrSearch:hover {
  background: rgba(180, 83, 9, 0.28) !important;
  border-color: rgba(224, 138, 47, 0.55) !important;
}

body.theme-sian3.is-form-open .education-fields {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100% !important;
  max-width: var(--form-control-max) !important;
}

body.theme-sian3.is-form-open .education-fields__summary {
  max-width: 100% !important;
  width: 100% !important;
}

body.theme-sian3.is-form-open .education-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
  padding: 12px 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

body.theme-sian3.is-form-open .education-block--summary {
  padding: 0;
  border: 0;
  background: transparent;
  gap: 0;
}

body.theme-sian3.is-form-open .education-block--meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 10px 14px;
  align-items: end;
}

body.theme-sian3.is-form-open .education-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  max-width: 100%;
}

body.theme-sian3.is-form-open .education-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 245, 0.55);
}

body.theme-sian3.is-form-open .education-field .form-input {
  max-width: 100% !important;
  width: 100% !important;
}

body.theme-sian3.is-form-open .education-field--cert {
  align-items: flex-start;
}

body.theme-sian3.is-form-open .education-block__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

body.theme-sian3.is-form-open .education-block__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 245, 0.9);
}

body.theme-sian3.is-form-open .education-block__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 245, 245, 0.65);
  font-size: 10px;
  font-weight: 600;
  letter-spacing: 0.02em;
}

body.theme-sian3.is-form-open .education-block__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
  max-width: 100%;
}

body.theme-sian3.is-form-open .education-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  max-width: 100%;
  min-width: 0;
}

body.theme-sian3.is-form-open .education-pair--period {
  grid-template-columns: minmax(0, 1.55fr) minmax(108px, 0.5fr);
  align-items: end;
}

/* University row: keep pair columns slightly tighter so right edge stays aligned */
body.theme-sian3.is-form-open .education-block--univ .education-pair {
  grid-template-columns: minmax(0, 1.05fr) minmax(0, 0.95fr);
}

body.theme-sian3.is-form-open .education-block--univ .education-pair--period {
  grid-template-columns: minmax(0, 1.55fr) minmax(108px, 0.5fr);
  align-items: end;
}

body.theme-sian3.is-form-open .education-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

body.theme-sian3.is-form-open .education-cert__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.78);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.theme-sian3.is-form-open .education-cert__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

body.theme-sian3.is-form-open .education-cert__item:has(input:checked) {
  background: rgba(196, 21, 31, 0.28);
  border-color: rgba(255, 90, 99, 0.65);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.18);
}

body.theme-sian3.is-form-open .education-fields .form-input,
body.theme-sian3.is-form-open .education-fields .s3-select,
body.theme-sian3.is-form-open .education-pair > .form-input,
body.theme-sian3.is-form-open .education-pair > .s3-select,
body.theme-sian3.is-form-open .education-block__body > .form-input {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.theme-sian3.is-form-open .education-fields .form-input,
body.theme-sian3.is-form-open .education-fields .s3-select__trigger {
  height: 40px !important;
  min-height: 40px !important;
}

body.theme-sian3.is-form-open .education-fields .form-input--auto,
body.theme-sian3.is-form-open .education-fields .form-input--auto[readonly] {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(245, 245, 245, 0.82) !important;
  cursor: default !important;
  box-shadow: none !important;
}

body.theme-sian3.is-form-open .education-fields .form-input--auto::placeholder {
  color: rgba(245, 245, 245, 0.38) !important;
}

body.theme-sian3.is-form-open .education-block--summary {
  margin-top: 2px;
}

body.theme-sian3.is-form-open .form-field-with-hint {
  position: relative;
  display: block;
  width: 100%;
  max-width: var(--form-control-max);
  margin: 0;
  padding: 0;
  min-height: 0;
}

body.theme-sian3.is-form-open .form-field-with-hint__control {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: var(--form-field-h, 44px);
}

body.theme-sian3.is-form-open .form-field-with-hint__control > .form-input {
  display: block;
  width: 100%;
  max-width: 100%;
}

/* Password: label ↔ input share the same horizontal mid-line; hint floats below */
body.theme-sian3.is-form-open .form-row--password {
  height: var(--form-row-min, 52px) !important;
}

body.theme-sian3.is-form-open .form-row--password td,
body.theme-sian3.is-form-open .form-row--password td.inf_1 {
  vertical-align: middle !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

body.theme-sian3.is-form-open #sectionCareer .txtTable {
  padding-bottom: 40px !important;
}

body.theme-sian3.is-form-open .form-row--password .form-field-with-hint .form-hint {
  position: absolute;
  left: 0;
  top: calc(100% + 10px);
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 0;
  max-width: 100%;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 245, 0.48) !important;
  pointer-events: none;
  z-index: 1;
}

body.theme-sian3.is-form-open .form-hint__mark {
  flex: 0 0 auto;
  display: inline-block;
  width: 5px;
  height: 5px;
  margin: 0;
  border-radius: 50%;
  background: rgba(255, 90, 99, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 90, 99, 0.18);
  font-size: 0;
  line-height: 0;
  color: transparent;
}

body.theme-sian3.is-form-open .form-row--password .form-hint__mark {
  margin-top: 0;
}

body.theme-sian3.is-form-open .txtTable .form-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(245, 245, 245, 0.48) !important;
}

body.theme-sian3.is-form-open .education-period {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

body.theme-sian3.is-form-open .education-period > .education-field__label {
  margin: 0;
}

body.theme-sian3.is-form-open .education-period .education-pair--period {
  width: 100%;
}

body.theme-sian3.is-form-open .education-period-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

body.theme-sian3.is-form-open .education-period-unit {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
}

/* Caps only on mobile — desktop/tablet use in-field empty labels */
body.theme-sian3.is-form-open .education-period-unit__cap,
body.theme-sian3.is-app-subroute .education-fields--resume .education-period-unit__cap {
  display: none;
  padding-left: 2px;
  font-family: var(--s3-font-body, 'Noto Sans KR', sans-serif);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 245, 0.62);
  line-height: 1.2;
}

body.theme-sian3.is-form-open .education-period-range .s3-date,
body.theme-sian3.is-form-open .education-period-range .form-input {
  width: 100% !important;
  max-width: none !important;
  min-width: 0;
}

body.theme-sian3.is-form-open .education-period-range .form-inline-row__sep {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 40px;
  padding: 0 2px;
  opacity: 0.6;
  font-size: 14px;
  line-height: 1;
}

/* Career — optional none toggle */
body.theme-sian3.is-form-open .career-field,
body.theme-sian3.is-app-subroute .career-field {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  max-width: var(--form-control-max, 100%);
  min-width: 0;
}

body.theme-sian3.is-app-subroute .career-field--resume {
  max-width: none;
}

body.theme-sian3.is-form-open .career-field__input,
body.theme-sian3.is-app-subroute .career-field__input {
  flex: 1 1 auto;
  min-width: 0;
  width: auto !important;
  max-width: none !important;
}

body.theme-sian3.is-form-open .career-none,
body.theme-sian3.is-app-subroute .career-none {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  flex: 0 0 auto;
  min-height: 36px;
  padding: 0 12px 0 10px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(255, 255, 255, 0.82);
  font-family: var(--s3-font-body, 'Noto Sans KR', sans-serif);
  font-size: 13px;
  font-weight: 550;
  letter-spacing: -0.01em;
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.theme-sian3.is-form-open .career-none input[type="checkbox"],
body.theme-sian3.is-app-subroute .career-none input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  position: relative;
  width: 15px;
  height: 15px;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  opacity: 1;
  pointer-events: auto;
}

body.theme-sian3.is-form-open .career-none input[type="checkbox"]:checked,
body.theme-sian3.is-app-subroute .career-none input[type="checkbox"]:checked {
  background: var(--s3-red);
  border-color: var(--s3-red);
}

body.theme-sian3.is-form-open .career-none input[type="checkbox"]:checked::after,
body.theme-sian3.is-app-subroute .career-none input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

body.theme-sian3.is-form-open .career-none:hover,
body.theme-sian3.is-app-subroute .career-none:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
  color: #fff;
}

body.theme-sian3.is-form-open .career-none:has(input:checked),
body.theme-sian3.is-app-subroute .career-none:has(input:checked),
body.theme-sian3.is-form-open .career-field.is-none .career-none,
body.theme-sian3.is-app-subroute .career-field.is-none .career-none {
  color: #fff;
  background: rgba(196, 21, 31, 0.22);
  border-color: rgba(255, 90, 99, 0.55);
  box-shadow: 0 0 0 1px rgba(196, 21, 31, 0.12);
}

body.theme-sian3.is-form-open .career-field.is-none .career-field__input,
body.theme-sian3.is-app-subroute .career-field.is-none .career-field__input {
  color: rgba(245, 245, 245, 0.72) !important;
  -webkit-text-fill-color: rgba(245, 245, 245, 0.72) !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.12) !important;
  cursor: default !important;
}

body.theme-sian3.is-form-open .career-none:has(input:disabled),
body.theme-sian3.is-app-subroute .career-none:has(input:disabled) {
  opacity: 0.72;
  cursor: default;
  pointer-events: none;
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .career-none:not(:has(input:checked)) {
  opacity: 0.55;
}

@media (max-width: 1100px) {
  body.theme-sian3.is-form-open .education-block--meta {
    grid-template-columns: 1fr;
  }

  body.theme-sian3.is-form-open .education-pair--period {
    grid-template-columns: minmax(0, 1.2fr) minmax(100px, 0.45fr);
  }

  body.theme-sian3.is-form-open .education-period-range {
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  }
}

@media (max-width: 720px) {
  body.theme-sian3.is-form-open .education-block--meta,
  body.theme-sian3.is-form-open .education-pair,
  body.theme-sian3.is-form-open .education-pair--period {
    grid-template-columns: 1fr;
  }

  /* Keep start ~ end on one row; only status drops below */
  body.theme-sian3.is-form-open .education-period-range,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range {
    display: grid;
    grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
    gap: 6px;
    align-items: end;
    width: 100%;
  }

  body.theme-sian3.is-form-open .education-period-unit,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-unit {
    display: flex;
    flex-direction: column;
    gap: 5px;
    min-width: 0;
    width: 100%;
  }

  body.theme-sian3.is-form-open .education-period-unit__cap,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-unit__cap {
    display: block !important;
    padding-left: 2px;
    font-size: 11px;
    font-weight: 700;
    letter-spacing: 0.02em;
    color: rgba(245, 245, 245, 0.62);
    line-height: 1.2;
  }

  body.theme-sian3.is-form-open .education-period-range .form-inline-row__sep,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .form-inline-row__sep {
    display: inline-flex;
    align-items: center;
    justify-content: center;
    align-self: end;
    width: 16px;
    height: 42px;
    padding: 0;
    opacity: 0.6;
    font-size: 13px;
    line-height: 1;
    flex: 0 0 auto;
  }

  body.theme-sian3.is-form-open .education-period-range .s3-date,
  body.theme-sian3.is-form-open .education-period-range .form-input,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .s3-date,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .resume-input {
    min-width: 0 !important;
    width: 100% !important;
  }

  body.theme-sian3.is-form-open .education-period-range .s3-date__trigger,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .s3-date__trigger {
    min-height: 42px !important;
    height: 42px !important;
    padding: 0 8px 0 10px !important;
    gap: 6px !important;
  }

  body.theme-sian3.is-form-open .education-period-range .s3-date__value,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .s3-date__value {
    font-size: 13px !important;
    letter-spacing: -0.01em;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  body.theme-sian3.is-form-open .education-period-range .s3-date.is-empty .s3-date__value,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .s3-date.is-empty .s3-date__value {
    color: rgba(245, 245, 245, 0.5) !important;
    font-weight: 500;
  }

  body.theme-sian3.is-form-open .education-period-range .s3-date__icon,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .s3-date__icon {
    width: 22px;
    height: 22px;
    flex: 0 0 22px;
  }

  body.theme-sian3.is-form-open .education-period .education-pair--period > .s3-select,
  body.theme-sian3.is-form-open .education-period .education-pair--period > .education-block__status,
  body.theme-sian3.is-form-open .education-period .education-pair--period > select {
    width: 100% !important;
    max-width: none !important;
  }

  body.theme-sian3.is-form-open .education-period > .education-field__label,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-field__label {
    word-break: keep-all;
    line-height: 1.35;
  }

  body.theme-sian3.is-form-open .education-block {
    padding: 11px;
  }

  body.theme-sian3.is-form-open .education-field--cert .education-cert {
    min-height: 40px;
  }

  body.theme-sian3.is-form-open .form-row--password {
    height: auto !important;
  }

  body.theme-sian3.is-form-open .form-row--password td,
  body.theme-sian3.is-form-open .form-row--password td.inf_1 {
    vertical-align: top !important;
    padding-top: 0 !important;
    padding-bottom: 0 !important;
  }

  body.theme-sian3.is-form-open .form-row--password td.inf_1 {
    padding-bottom: 6px !important;
  }

  body.theme-sian3.is-form-open #sectionCareer .txtTable {
    padding-bottom: 36px !important;
  }

  body.theme-sian3.is-form-open .career-field,
  body.theme-sian3.is-app-subroute .career-field {
    flex-wrap: wrap;
    gap: 8px;
    max-width: none;
  }

  body.theme-sian3.is-form-open .career-field__input,
  body.theme-sian3.is-app-subroute .career-field__input {
    flex: 1 1 100%;
    width: 100% !important;
  }

  body.theme-sian3.is-form-open .career-none,
  body.theme-sian3.is-app-subroute .career-none {
    min-height: 36px;
    padding: 0 12px 0 10px;
    font-size: 13px;
  }
}

body.theme-sian3.is-form-open .checkbox-list,
body.theme-sian3.is-form-open .day-picker,
body.theme-sian3.is-form-open .photo-upload,
body.theme-sian3.is-form-open .s3-select {
  box-sizing: border-box;
  width: 100%;
  max-width: var(--form-control-max);
}

body.theme-sian3.is-form-open .education-fields .s3-select,
body.theme-sian3.is-form-open .education-fields select.education-block__status {
  max-width: none;
}

/* Smooth tab crossfade — prevent layout jump */
body.theme-sian3.is-form-open .form-panel-stack {
  position: relative;
  transition: min-height 0.18s ease;
}

body.theme-sian3.is-form-open .form-panel.is-switching {
  display: block !important;
  position: absolute !important;
  top: 0;
  left: 0;
  right: 0;
  width: 100% !important;
  height: auto !important;
  overflow: visible !important;
  visibility: visible !important;
  z-index: 2;
  pointer-events: none;
  will-change: opacity, transform;
}

body.theme-sian3.is-form-open .form-panel.is-switching.is-active {
  z-index: 3;
  pointer-events: auto;
}

body.theme-sian3.is-form-open .education-suffix,
body.theme-sian3.is-form-open .form-hint,
body.theme-sian3.is-form-open .search-summary,
body.theme-sian3.is-form-open .result-item__meta {
  color: rgba(245, 245, 245, 0.58) !important;
}

body.theme-sian3.is-form-open .checkbox-list {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-sian3.is-form-open .gender-military-row {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 10px 18px;
  width: 100%;
}

body.theme-sian3.is-form-open .military-status {
  display: inline-flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 8px 10px;
}

body.theme-sian3.is-form-open .military-status[hidden] {
  display: none !important;
}

body.theme-sian3.is-form-open .military-status__label {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: 0.04em;
  color: rgba(245, 245, 245, 0.72);
  white-space: nowrap;
}

/* Student weekday chips — same language as subject chips, even 5-up */
body.theme-sian3.is-form-open .checkbox-list--days {
  display: grid;
  grid-template-columns: repeat(5, minmax(0, 1fr));
  gap: 8px;
  width: 100%;
  max-width: min(var(--form-control-max), 360px);
}

body.theme-sian3.is-form-open .checkbox-list--days label {
  justify-content: center;
  min-width: 0;
  padding: 0 6px;
  font-weight: 650;
}

/* Student date range — start ~ end, same row language as time range */
body.theme-sian3.is-form-open .student-date-range {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--form-control-max);
}

body.theme-sian3.is-form-open .student-date-range .s3-date {
  flex: 1 1 0;
  min-width: 0;
  max-width: none !important;
  width: auto;
}

/* Student time range — same s3-time picker as teacher avail schedule */
body.theme-sian3.is-form-open .student-time-range {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: var(--form-control-max);
}

body.theme-sian3.is-form-open .student-time-range .s3-time {
  flex: 1 1 0;
  min-width: 0;
  max-width: none !important;
  width: auto;
  position: relative;
}

/* Keep native time input fully hidden after custom picker wraps it */
body.theme-sian3.is-form-open .student-time-range .s3-time__native,
body.theme-sian3.is-form-open .student-time-range input[type="time"].s3-time__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
  clip: rect(0, 0, 0, 0) !important;
}

body.theme-sian3.is-form-open .txtTable table tr:has(.student-time-range) td,
body.theme-sian3.is-form-open .txtTable table tr:has(.student-date-range) td,
body.theme-sian3.is-form-open .txtTable table tr:has(.checkbox-list--days) td {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  vertical-align: middle !important;
}

body.theme-sian3.is-form-open .txtTable table tr:has(.student-time-range) td.inf_1,
body.theme-sian3.is-form-open .txtTable table tr:has(.student-date-range) td.inf_1,
body.theme-sian3.is-form-open .txtTable table tr:has(.checkbox-list--days) td.inf_1 {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  vertical-align: middle !important;
}

/* Student lookup only — keep label + chips/time optically centered
   without changing teacher form / education / photo top-align rows */
body.theme-sian3.is-student.is-form-open .student-lookup .txtTable table tr:has(.checkbox-list) td,
body.theme-sian3.is-student.is-form-open .student-lookup .txtTable table tr:has(.student-date-range) td,
body.theme-sian3.is-student.is-form-open .student-lookup .txtTable table tr:has(.student-time-range) td {
  vertical-align: middle !important;
  padding-top: 10px !important;
  padding-bottom: 10px !important;
}

body.theme-sian3.is-student.is-form-open .student-lookup .txtTable table tr:has(.checkbox-list) td.inf_1,
body.theme-sian3.is-student.is-form-open .student-lookup .txtTable table tr:has(.student-date-range) td.inf_1,
body.theme-sian3.is-student.is-form-open .student-lookup .txtTable table tr:has(.student-time-range) td.inf_1 {
  padding-top: 10px !important;
  padding-bottom: 10px !important;
  vertical-align: middle !important;
}

body.theme-sian3.is-student.is-form-open .student-lookup .checkbox-list,
body.theme-sian3.is-student.is-form-open .student-lookup .checkbox-list--days,
body.theme-sian3.is-student.is-form-open .student-lookup .student-date-range,
body.theme-sian3.is-student.is-form-open .student-lookup .student-time-range {
  align-items: center;
}

body.theme-sian3.is-form-open .checkbox-list label {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 36px;
  padding: 0 12px 0 10px;
  color: rgba(255, 255, 255, 0.82) !important;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.14);
  border-radius: 11px;
  font-size: 13px;
  font-weight: 550;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease, box-shadow 0.18s ease;
}

body.theme-sian3.is-form-open .checkbox-list label input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 15px;
  height: 15px;
  margin: 0;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.28);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.06);
  cursor: pointer;
  position: relative;
}

body.theme-sian3.is-form-open .checkbox-list label input[type="checkbox"]:checked {
  background: var(--s3-red);
  border-color: var(--s3-red);
}

body.theme-sian3.is-form-open .checkbox-list label input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4px;
  top: 1px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

body.theme-sian3.is-form-open .checkbox-list label:hover {
  border-color: rgba(255, 255, 255, 0.28);
  background: rgba(255, 255, 255, 0.09);
}

body.theme-sian3.is-form-open .checkbox-list label:has(input:checked) {
  color: #fff !important;
  background: rgba(196, 21, 31, 0.22);
  border-color: rgba(255, 90, 99, 0.55);
  box-shadow: 0 0 0 1px rgba(196, 21, 31, 0.12);
}

body.theme-sian3.is-student.is-form-open .checkbox-list label input[type="checkbox"]:checked {
  background: var(--s3-student);
  border-color: var(--s3-student);
}

body.theme-sian3.is-student.is-form-open .checkbox-list label:has(input:checked) {
  background: rgba(180, 83, 9, 0.24);
  border-color: rgba(224, 138, 47, 0.55);
  box-shadow: 0 0 0 1px rgba(180, 83, 9, 0.12);
}

/* Consent checkboxes — same custom mark */
body.theme-sian3.is-form-open .consent-block__all input[type="checkbox"],
body.theme-sian3.is-form-open .consent-block__item input[type="checkbox"] {
  appearance: none;
  -webkit-appearance: none;
  width: 16px;
  height: 16px;
  margin: 0 !important;
  flex: 0 0 auto;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.28);
  position: relative;
  cursor: pointer;
}

body.theme-sian3.is-form-open .consent-block__all input[type="checkbox"]:checked,
body.theme-sian3.is-form-open .consent-block__item input[type="checkbox"]:checked {
  background: var(--s3-red);
  border-color: var(--s3-red);
}

body.theme-sian3.is-form-open .consent-block__all input[type="checkbox"]:checked::after,
body.theme-sian3.is-form-open .consent-block__item input[type="checkbox"]:checked::after {
  content: '';
  position: absolute;
  left: 4.5px;
  top: 1.5px;
  width: 4px;
  height: 8px;
  border: solid #fff;
  border-width: 0 1.8px 1.8px 0;
  transform: rotate(45deg);
}

body.theme-sian3.is-student.is-form-open .consent-block__all input[type="checkbox"]:checked,
body.theme-sian3.is-student.is-form-open .consent-block__item input[type="checkbox"]:checked {
  background: var(--s3-student);
  border-color: var(--s3-student);
}

body.theme-sian3.is-form-open .day-picker {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

body.theme-sian3.is-form-open .day-picker__btn {
  min-width: 40px;
  min-height: 36px;
  padding: 0 10px;
  color: rgba(255, 255, 255, 0.7);
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  border-radius: 10px;
  font-weight: 600;
}

body.theme-sian3.is-app-subroute .day-picker__btn,
body.theme-sian3.is-app-subroute .avail-schedule__day {
  min-width: 40px !important;
  min-height: 36px !important;
  height: 36px !important;
  padding: 0 10px !important;
  color: rgba(232, 232, 232, 0.72) !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  border-radius: 10px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.theme-sian3.is-app-subroute .day-picker__btn.is-on,
body.theme-sian3.is-app-subroute .avail-schedule__day.is-on {
  color: #fff !important;
  background: var(--s3-red) !important;
  border-color: var(--s3-red) !important;
}

body.theme-sian3.is-form-open .day-picker__btn:hover {
  color: #fff;
  border-color: rgba(255, 255, 255, 0.3);
}

body.theme-sian3.is-form-open .day-picker__btn.is-on {
  color: #fff;
  background: var(--s3-red);
  border-color: var(--s3-red);
}

body.theme-sian3.is-student.is-form-open .day-picker__btn.is-on {
  background: var(--s3-student);
  border-color: var(--s3-student);
}

/* Per-day availability schedule */
body.theme-sian3.is-form-open .avail-schedule,
body.theme-sian3.is-app-subroute .avail-schedule {
  box-sizing: border-box;
  width: 100%;
  max-width: min(720px, 100%);
}

body.theme-sian3.is-form-open .form-section__title.form-section__title--strong,
body.theme-sian3.is-app-subroute .form-section__title.form-section__title--strong {
  font-size: 14px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: none;
}

body.theme-sian3.is-form-open .form-section__head--schedule-edit {
  display: flex;
  flex-wrap: wrap;
  align-items: baseline;
  gap: 6px 14px;
  margin: 0;
  padding: 18px 18px 12px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1);
}

body.theme-sian3.is-form-open .form-section__head--schedule-edit .form-section__title {
  margin: 0 !important;
  padding: 0 !important;
  border: 0 !important;
  border-radius: 0;
  min-height: 0 !important;
}

body.theme-sian3.is-form-open .form-section__head--schedule-edit .form-hint--section {
  margin: 0;
  flex: 1 1 240px;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.45;
  letter-spacing: 0;
  text-transform: none;
  color: rgba(245, 245, 245, 0.55) !important;
}

body.theme-sian3.is-form-open #panelScheduleEdit .txtTable,
body.theme-sian3.is-form-open #panelScheduleEdit .txtTable table,
body.theme-sian3.is-form-open #panelScheduleEdit .txtTable td {
  overflow: visible;
}

body.theme-sian3.is-form-open #panelScheduleEdit .avail-block__period {
  pointer-events: auto;
  margin-bottom: 12px;
}

body.theme-sian3.is-form-open #panelScheduleEdit .avail-blocks__add {
  display: inline-flex;
  align-items: center;
  margin-top: 12px;
  cursor: pointer;
  pointer-events: auto;
}

body.theme-sian3.is-form-open .avail-schedule__hint {
  margin: 0 0 10px;
  color: rgba(245, 245, 245, 0.55) !important;
  font-size: 12px;
  line-height: 1.45;
}

body.theme-sian3.is-form-open .avail-hint-info,
body.theme-sian3.is-app-subroute .avail-hint-info {
  display: inline-flex;
  align-items: center;
  vertical-align: -3px;
  margin-left: 4px;
  border: 0;
  background: transparent;
  color: #3b82f6 !important;
  padding: 0;
  cursor: pointer;
}

body.theme-sian3.is-form-open .avail-hint-info svg,
body.theme-sian3.is-app-subroute .avail-hint-info svg {
  display: block;
}

body.theme-sian3.is-form-open .avail-schedule__hint strong {
  color: #ff8a90;
  font-weight: 700;
}

body.theme-sian3.is-form-open .avail-schedule__list,
body.theme-sian3.is-app-subroute .avail-schedule__list {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 8px;
  align-items: center;
}

body.theme-sian3.is-form-open .avail-schedule__row,
body.theme-sian3.is-app-subroute .avail-schedule__row {
  grid-column: 1;
  display: flex;
  align-items: center;
  gap: 10px;
  padding: 8px 10px;
  border-radius: 12px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px solid rgba(255, 255, 255, 0.1);
  transition: border-color 0.2s ease, background 0.2s ease, opacity 0.2s ease;
}

body.theme-sian3.is-form-open .avail-schedule__row:not(.is-on),
body.theme-sian3.is-app-subroute .avail-schedule__row:not(.is-on) {
  opacity: 0.55;
}

body.theme-sian3.is-form-open .avail-schedule__row.is-on,
body.theme-sian3.is-app-subroute .avail-schedule__row.is-on {
  opacity: 1;
  background: rgba(255, 255, 255, 0.07);
  border-color: rgba(255, 90, 99, 0.35);
}

body.theme-sian3.is-student.is-form-open .avail-schedule__row.is-on {
  border-color: rgba(224, 138, 47, 0.4);
}

body.theme-sian3.is-form-open .avail-schedule__day,
body.theme-sian3.is-app-subroute .avail-schedule__day {
  flex: 0 0 40px;
  min-width: 40px;
  min-height: 36px;
  padding: 0;
}

body.theme-sian3.is-form-open .avail-schedule__times,
body.theme-sian3.is-app-subroute .avail-schedule__times {
  display: flex;
  align-items: center;
  gap: 8px;
  flex: 1 1 auto;
  min-width: 0;
}

body.theme-sian3.is-form-open .avail-schedule__times .form-input,
body.theme-sian3.is-form-open .avail-schedule__times .resume-input:not(.s3-time__native),
body.theme-sian3.is-app-subroute .avail-schedule__times .resume-input:not(.s3-time__native) {
  flex: 1 1 0;
  min-width: 0;
  max-width: none !important;
  width: auto !important;
}

body.theme-sian3.is-form-open .avail-schedule__times .form-input:disabled,
body.theme-sian3.is-form-open .avail-schedule__times .resume-input:disabled:not(.s3-time__native),
body.theme-sian3.is-app-subroute .avail-schedule__times .resume-input:disabled:not(.s3-time__native) {
  opacity: 0.45;
  cursor: not-allowed;
}

/* Resume: keep schedule in one column — sync under Sunday, not beside it */
body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__list,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__list {
  display: flex !important;
  flex-direction: column !important;
  grid-template-columns: none !important;
  gap: 8px !important;
  align-items: stretch !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__row,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__row {
  grid-column: auto !important;
  width: 100% !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__sync,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__sync {
  grid-column: auto !important;
  grid-row: auto !important;
  align-self: flex-start !important;
  justify-self: start !important;
  margin-top: 2px;
  white-space: normal !important;
}

body.theme-sian3.is-form-open .txtTable table tr:has(.avail-schedule) td {
  padding-top: 12px !important;
  padding-bottom: 12px !important;
  vertical-align: top !important;
}

body.theme-sian3.is-form-open .txtTable table tr:has(.avail-schedule) td.inf_1 {
  padding-top: 18px !important;
}

/* Sync sits beside Sunday card (same column width for Mon–Sun) */
body.theme-sian3.is-form-open .avail-schedule__sync,
body.theme-sian3.is-app-subroute .avail-schedule__sync {
  grid-column: 2;
  grid-row: 7;
  display: inline-flex;
  align-items: center;
  gap: 6px;
  flex: 0 0 auto;
  margin-left: 0;
  padding: 4px 8px;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.06);
  border: 1px solid rgba(255, 255, 255, 0.16);
  cursor: pointer;
  user-select: none;
  white-space: nowrap;
  align-self: center;
}

body.theme-sian3.is-form-open .avail-schedule__sync-input,
body.theme-sian3.is-app-subroute .avail-schedule__sync-input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

body.theme-sian3.is-form-open .avail-schedule__sync-ui,
body.theme-sian3.is-app-subroute .avail-schedule__sync-ui {
  position: relative;
  width: 13px;
  height: 13px;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  flex: 0 0 auto;
}

body.theme-sian3.is-form-open .avail-schedule__sync-input:checked + .avail-schedule__sync-ui,
body.theme-sian3.is-app-subroute .avail-schedule__sync-input:checked + .avail-schedule__sync-ui {
  background: var(--s3-red);
  border-color: var(--s3-red);
}

body.theme-sian3.is-form-open .avail-schedule__sync-input:checked + .avail-schedule__sync-ui::after,
body.theme-sian3.is-app-subroute .avail-schedule__sync-input:checked + .avail-schedule__sync-ui::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.5px 1.5px 0;
  transform: rotate(45deg);
}

body.theme-sian3.is-form-open .avail-schedule__sync-text,
body.theme-sian3.is-app-subroute .avail-schedule__sync-text {
  color: rgba(255, 255, 255, 0.82);
  font-size: 11px;
  font-weight: 600;
  letter-spacing: -0.02em;
}

/* Custom dark time picker */
body.theme-sian3.is-form-open .s3-time,
body.theme-sian3.is-app-subroute .s3-time {
  position: relative;
  flex: 1 1 0;
  min-width: 0;
}

body.theme-sian3.is-form-open .s3-time__native,
body.theme-sian3.is-app-subroute .s3-time__native {
  position: absolute !important;
  width: 1px !important;
  height: 1px !important;
  opacity: 0 !important;
  pointer-events: none !important;
  border: 0 !important;
  padding: 0 !important;
  margin: 0 !important;
}

body.theme-sian3.is-form-open .s3-time__trigger,
body.theme-sian3.is-app-subroute .s3-time__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
  width: 100%;
  min-height: var(--form-field-h, 44px);
  height: var(--form-field-h, 44px);
  padding: 0 12px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: #f7f7f7;
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.05);
}

body.theme-sian3.is-form-open .s3-time__trigger:hover:not(:disabled),
body.theme-sian3.is-app-subroute .s3-time__trigger:hover:not(:disabled) {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.28);
}

body.theme-sian3.is-form-open .s3-time.is-open .s3-time__trigger,
body.theme-sian3.is-app-subroute .s3-time.is-open .s3-time__trigger {
  border-color: rgba(255, 90, 99, 0.7);
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22);
}

body.theme-sian3.is-form-open .s3-time__trigger:disabled,
body.theme-sian3.is-form-open .s3-time.is-disabled .s3-time__trigger,
body.theme-sian3.is-app-subroute .s3-time__trigger:disabled,
body.theme-sian3.is-app-subroute .s3-time.is-disabled .s3-time__trigger {
  opacity: 0.45;
  cursor: not-allowed;
}

body.theme-sian3.is-form-open .s3-time__icon,
body.theme-sian3.is-app-subroute .s3-time__icon {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  flex: 0 0 auto;
  color: rgba(255, 255, 255, 0.55);
}

body.theme-sian3.is-form-open .s3-time__icon svg,
body.theme-sian3.is-app-subroute .s3-time__icon svg {
  display: block;
  stroke: currentColor;
}

body.theme-sian3.is-form-open .s3-time__panel,
body.theme-sian3.is-app-subroute .s3-time__panel {
  position: absolute;
  top: calc(100% + 6px);
  left: 0;
  right: 0;
  z-index: 40;
  min-width: 132px;
  border-radius: 14px;
  border: 1px solid rgba(255, 255, 255, 0.14);
  background: rgba(18, 16, 16, 0.96);
  box-shadow: 0 18px 40px rgba(0, 0, 0, 0.45);
  backdrop-filter: blur(16px) saturate(1.2);
  -webkit-backdrop-filter: blur(16px) saturate(1.2);
  overflow: hidden;
  box-sizing: border-box;
}

body.theme-sian3 .s3-time__panel.is-portal {
  position: fixed !important;
  right: auto !important;
  z-index: 10055 !important;
  display: flex;
  flex-direction: column;
  box-sizing: border-box;
  overscroll-behavior: contain;
}

body.theme-sian3 .s3-time__panel.is-sheet {
  border-radius: 16px;
  padding-top: 0;
  padding-bottom: 0;
  box-shadow: none;
}

body.theme-sian3 .s3-time__panel.is-portal .s3-time__list {
  flex: 1 1 auto;
  min-height: 0;
  max-height: none;
  -webkit-overflow-scrolling: touch;
}

body.theme-sian3.is-form-open .s3-time__panel-head,
body.theme-sian3.is-app-subroute .s3-time__panel-head {
  padding: 10px 12px 8px;
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.12em;
  text-transform: uppercase;
  color: rgba(255, 255, 255, 0.45);
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
}

body.theme-sian3.is-form-open .s3-time__list,
body.theme-sian3.is-app-subroute .s3-time__list {
  max-height: 220px;
  overflow-y: auto;
  padding: 6px;
  scrollbar-width: thin;
  scrollbar-color: rgba(255, 255, 255, 0.25) transparent;
}

body.theme-sian3.is-form-open .s3-time__option,
body.theme-sian3.is-app-subroute .s3-time__option {
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 36px;
  padding: 0 12px;
  border: 0;
  border-radius: 9px;
  background: transparent;
  color: rgba(255, 255, 255, 0.82);
  font-size: 14px;
  font-weight: 600;
  font-variant-numeric: tabular-nums;
  text-align: left;
  cursor: pointer;
}

body.theme-sian3.is-form-open .s3-time__option:hover,
body.theme-sian3.is-app-subroute .s3-time__option:hover {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

body.theme-sian3.is-form-open .s3-time__option:disabled,
body.theme-sian3.is-form-open .s3-time__option.is-disabled,
body.theme-sian3.is-app-subroute .s3-time__option:disabled,
body.theme-sian3.is-app-subroute .s3-time__option.is-disabled,
body.theme-sian3 .s3-time__panel.is-portal .s3-time__option:disabled,
body.theme-sian3 .s3-time__panel.is-portal .s3-time__option.is-disabled {
  opacity: 0.34;
  color: rgba(255, 255, 255, 0.32);
  cursor: not-allowed;
  pointer-events: none;
}

body.theme-sian3.is-form-open .s3-time__option:disabled:hover,
body.theme-sian3.is-form-open .s3-time__option.is-disabled:hover,
body.theme-sian3.is-app-subroute .s3-time__option:disabled:hover,
body.theme-sian3.is-app-subroute .s3-time__option.is-disabled:hover,
body.theme-sian3 .s3-time__panel.is-portal .s3-time__option:disabled:hover,
body.theme-sian3 .s3-time__panel.is-portal .s3-time__option.is-disabled:hover {
  background: transparent;
  color: rgba(255, 255, 255, 0.32);
}

body.theme-sian3.is-form-open .s3-time__option.is-active,
body.theme-sian3.is-app-subroute .s3-time__option.is-active {
  background: rgba(196, 21, 31, 0.28);
  color: #ffb4b8;
}

body.theme-sian3.is-form-open .s3-time__list::-webkit-scrollbar,
body.theme-sian3.is-app-subroute .s3-time__list::-webkit-scrollbar,
body.theme-sian3 .s3-time__panel.is-portal .s3-time__list::-webkit-scrollbar {
  width: 6px;
}

body.theme-sian3.is-form-open .s3-time__list::-webkit-scrollbar-thumb,
body.theme-sian3.is-app-subroute .s3-time__list::-webkit-scrollbar-thumb,
body.theme-sian3 .s3-time__panel.is-portal .s3-time__list::-webkit-scrollbar-thumb {
  background: rgba(255, 255, 255, 0.22);
  border-radius: 999px;
}

/* Student page — amber accents on the shared time picker */
body.theme-sian3.is-student.is-form-open .s3-time.is-open .s3-time__trigger,
body.theme-sian3.is-student.is-form-open .s3-time__trigger:focus-visible {
  border-color: rgba(224, 138, 47, 0.75);
  box-shadow: 0 0 0 3px rgba(180, 83, 9, 0.22);
}

body.theme-sian3.is-student.is-form-open .s3-time__icon,
body.theme-sian3.is-student.is-form-open .s3-time.is-open .s3-time__icon {
  color: rgba(255, 255, 255, 0.55);
}

body.theme-sian3.is-student.is-form-open .s3-time__option.is-active,
body.theme-sian3.is-student .s3-time__panel.is-portal .s3-time__option.is-active {
  background: rgba(180, 83, 9, 0.32);
  color: #f6c07a;
}

body.theme-sian3.is-student.is-form-open .s3-time__list,
body.theme-sian3.is-student .s3-time__panel.is-portal .s3-time__list {
  scrollbar-color: rgba(224, 138, 47, 0.48) transparent;
}

body.theme-sian3.is-student.is-form-open .s3-time__list::-webkit-scrollbar-thumb,
body.theme-sian3.is-student .s3-time__panel.is-portal .s3-time__list::-webkit-scrollbar-thumb {
  background: rgba(224, 138, 47, 0.45);
}

body.theme-sian3.is-student.is-form-open .s3-time__panel,
body.theme-sian3.is-student .s3-time__panel.is-portal {
  border-color: rgba(224, 138, 47, 0.28);
}

body.theme-sian3.is-student.is-form-open .s3-time__panel-head {
  color: rgba(246, 192, 122, 0.62);
}

/* Consent / notice — full section width, clean row layout */
body.theme-sian3.is-form-open .notice-box,
body.theme-sian3.is-form-open .consent-block {
  box-sizing: border-box;
  width: auto;
  max-width: none !important;
  margin: 10px 18px 12px;
  padding: 0;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(245, 245, 245, 0.82) !important;
  font-size: 13px;
  line-height: 1.6;
  overflow: hidden;
}

body.theme-sian3.is-form-open .notice-box {
  padding: 12px 14px;
}

body.theme-sian3.is-form-open .notice-box--sub {
  display: block;
  margin-top: 6px;
  color: rgba(245, 245, 245, 0.55) !important;
  font-size: 12px;
}

body.theme-sian3.is-form-open .consent-block {
  display: flex;
  flex-direction: column;
}

body.theme-sian3.is-form-open .consent-block__all {
  display: flex;
  align-items: center;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 12px 14px !important;
  margin: 0 !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.1) !important;
  color: #fff !important;
  font-weight: 700 !important;
  font-size: 14px !important;
  cursor: pointer;
}

body.theme-sian3.is-form-open .consent-block__item {
  display: flex;
  align-items: center;
  flex-wrap: nowrap;
  gap: 10px;
  width: 100%;
  box-sizing: border-box;
  padding: 11px 14px !important;
  margin: 0 !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.07) !important;
  background: transparent !important;
  color: rgba(245, 245, 245, 0.88) !important;
  cursor: pointer;
}

body.theme-sian3.is-form-open .consent-block__item:last-child {
  border-bottom: none !important;
}

body.theme-sian3.is-form-open .consent-block__item span,
body.theme-sian3.is-form-open .consent-block__item strong,
body.theme-sian3.is-form-open .notice-box strong {
  color: #fff !important;
}

body.theme-sian3.is-form-open .consent-block__item span {
  flex: 1 1 auto;
  min-width: 0;
  line-height: 1.45;
}

body.theme-sian3.is-form-open .consent-block__link {
  flex: 0 0 auto;
  margin-left: auto;
  padding: 0 !important;
  color: #ff7a82 !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  background: none !important;
  border: none !important;
  text-decoration: underline;
  text-underline-offset: 2px;
  white-space: nowrap;
  cursor: pointer;
}

body.theme-sian3.is-student.is-form-open .consent-block__link {
  color: #f0a84a !important;
}

body.theme-sian3.is-form-open .photo-upload {
  border-radius: 14px;
  background: rgba(255, 255, 255, 0.04);
  border: 1px dashed rgba(255, 255, 255, 0.22);
  padding: 12px;
}

body.theme-sian3.is-form-open .photo-upload__toolbar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-sian3.is-form-open .photo-upload__toolbar .btn-secondary,
body.theme-sian3.is-form-open #btnPhotoFind,
body.theme-sian3.is-form-open #btnPhotoAdd,
body.theme-sian3.is-form-open #btnPhotoDel {
  min-height: 38px !important;
  height: 38px !important;
  padding: 0 14px !important;
  border-radius: 10px !important;
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.2) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  box-shadow: none !important;
}

body.theme-sian3.is-form-open .photo-upload__toolbar .btn-secondary:hover,
body.theme-sian3.is-form-open #btnPhotoFind:hover,
body.theme-sian3.is-form-open #btnPhotoAdd:hover {
  background: rgba(255, 255, 255, 0.14) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
}

body.theme-sian3.is-form-open #btnPhotoDel,
body.theme-sian3.is-form-open .btn-secondary--danger {
  border-color: rgba(255, 90, 99, 0.45) !important;
  color: #ff9aa0 !important;
}

body.theme-sian3.is-form-open .photo-upload__empty {
  color: rgba(245, 245, 245, 0.55) !important;
  background: transparent !important;
}

body.theme-sian3.is-form-open .photo-upload__empty-line {
  display: inline;
}

body.theme-sian3.is-form-open .photo-upload__empty-line + .photo-upload__empty-line::before {
  content: ' ';
}

@media (max-width: 720px) {
  body.theme-sian3.is-form-open .photo-upload__empty {
    display: flex !important;
    flex-direction: column;
    align-items: center;
    justify-content: center;
    gap: 4px;
    padding: 14px 12px !important;
    line-height: 1.45;
    text-align: center;
  }

  body.theme-sian3.is-form-open .photo-upload__empty-line {
    display: block;
  }

  body.theme-sian3.is-form-open .photo-upload__empty-line + .photo-upload__empty-line::before {
    content: none;
  }
}

body.theme-sian3.is-form-open .photo-upload__item {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: #fff !important;
  border-radius: 10px !important;
}

body.theme-sian3.is-form-open .btn-secondary {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 10px !important;
  min-height: 40px;
  padding: 0 14px;
  font-weight: 600;
}

body.theme-sian3.is-form-open .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.14) !important;
}

body.theme-sian3.is-form-open input[type="file"].form-input {
  height: auto !important;
  min-height: var(--form-field-h) !important;
  padding: 10px 14px !important;
  color: rgba(245, 245, 245, 0.75) !important;
}

body.theme-sian3.is-form-open input[type="file"].form-input::file-selector-button {
  color: #111;
  background: #f0f0f0;
  border: 0;
  border-radius: 8px;
  padding: 6px 12px;
  margin-right: 10px;
  font-weight: 600;
  cursor: pointer;
}

/* Prefer single-column sections on form for cleaner label↔field rhythm */
@media (min-width: 960px) {
  body.theme-sian3.is-form-open .form-sections {
    grid-template-columns: 1fr !important;
    gap: 14px !important;
  }

  body.theme-sian3.is-form-open .form-section--wide,
  body.theme-sian3.is-form-open .form-section--pair {
    grid-column: auto !important;
  }
}

@media (max-width: 720px) {
  body.theme-sian3.is-form-open .split-layout__form,
  body.theme-sian3.is-form-open #formStage {
    --form-label-w: 88px;
    --form-label-gap: 0px;
  }

  body.theme-sian3.is-form-open .txtTable {
    padding: 2px 14px 14px !important;
  }

  body.theme-sian3.is-form-open .notice-box,
  body.theme-sian3.is-form-open .consent-block {
    margin-left: 14px !important;
    margin-right: 14px !important;
  }

  body.theme-sian3.is-form-open .form-section__title {
    padding-left: 14px !important;
    padding-right: 14px !important;
  }

  body.theme-sian3.is-form-open .form-section__head--schedule-edit {
    padding-left: 14px;
    padding-right: 14px;
  }

  body.theme-sian3.is-form-open .txtTable table,
  body.theme-sian3.is-form-open .txtTable table tbody,
  body.theme-sian3.is-form-open .txtTable table tr,
  body.theme-sian3.is-form-open .txtTable table tr td {
    display: block;
    width: 100% !important;
    max-width: 100% !important;
  }

  body.theme-sian3.is-form-open .txtTable table tr {
    height: auto;
    padding: 10px 0;
  }

  body.theme-sian3.is-form-open .txtTable table tr + tr td {
    border-top: 0 !important;
  }

  body.theme-sian3.is-form-open .txtTable table tr td.inf_1 {
    padding: 0 0 6px !important;
    white-space: normal;
    word-break: keep-all;
    line-height: 1.4 !important;
  }

  body.theme-sian3.is-form-open .education-field__label,
  body.theme-sian3.is-form-open .form-hint,
  body.theme-sian3.is-form-open .consent-block__item span,
  body.theme-sian3.is-form-open .notice-box,
  body.theme-sian3.is-form-open .form-section__title {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  body.theme-sian3.is-form-open .txtTable table tr td:last-child {
    padding-left: 0 !important;
  }

  body.theme-sian3.is-form-open .addr-row {
    grid-template-columns: minmax(0, 1fr);
    max-width: var(--form-control-max);
  }

  body.theme-sian3.is-form-open .addr-row > .btn-secondary,
  body.theme-sian3.is-form-open #btnAddrSearch {
    grid-column: 1;
    grid-row: auto;
    justify-self: start;
  }

  body.theme-sian3.is-form-open .day-picker,
  body.theme-sian3.is-form-open .checkbox-list,
  body.theme-sian3.is-form-open .photo-upload,
  body.theme-sian3.is-form-open .education-fields,
  body.theme-sian3.is-form-open .avail-schedule {
    max-width: 100% !important;
  }
}

body.theme-sian3.is-form-open .form-hint {
  color: rgba(245, 245, 245, 0.55) !important;
}

body.theme-sian3.is-form-open .submit-area {
  margin-top: clamp(8px, 1.5vh, 16px);
}

body.theme-sian3.is-form-open .submit-btn {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 50px;
  padding: 0 28px;
  border-radius: 999px;
  font-weight: 700;
  line-height: 1;
  color: #fff !important;
  background: var(--s3-red) !important;
  border: 1px solid var(--s3-red) !important;
  box-shadow: 0 12px 28px rgba(196, 21, 31, 0.3);
}

/* ═══════════════════════════════════════════════════════════════
   Button label centering — flex only (do not alter size / radius)
   Optical Hangul lift scoped to main hero CTAs
   ═══════════════════════════════════════════════════════════════ */
body.theme-sian3 .submit-btn,
body.theme-sian3 .submit-btn--preview,
body.theme-sian3 .submit-btn--muted,
body.theme-sian3 .app-chip-btn,
body.theme-sian3 .app-login-btn,
body.theme-sian3 .btn-secondary,
body.theme-sian3 .btn-login,
body.theme-sian3 .form-head__resume,
body.theme-sian3 .header-back,
body.theme-sian3 .s3-btn,
body.theme-sian3 .pledge-pad__clear,
body.theme-sian3 .app-thanks-cta,
body.theme-sian3 .app-modal__actions .submit-btn,
body.theme-sian3 .app-modal__actions .btn-secondary,
body.theme-sian3 .split-layout__form .submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
  text-align: center !important;
  box-sizing: border-box !important;
}

body.theme-sian3 .s3-btn .s3-btn__magnet,
body.theme-sian3 .submit-btn > span,
body.theme-sian3 .app-chip-btn > span:not(.status-badge) {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  line-height: 1;
}

/* Main hero CTAs only — Hangul optical lift (size/radius untouched) */
body.theme-sian3 .s3-hero__actions .s3-btn .s3-btn__magnet {
  transform: translateY(-0.08em);
}

body.theme-sian3.is-student.is-form-open .submit-btn {
  background: var(--s3-student) !important;
  border-color: var(--s3-student) !important;
  box-shadow: 0 12px 28px rgba(180, 83, 9, 0.28);
}

body.theme-sian3.is-form-open .submit-btn--preview {
  color: #fff !important;
  background: rgba(255, 255, 255, 0.08) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  box-shadow: none !important;
}

body.theme-sian3.is-form-open .submit-btn--muted {
  color: rgba(245, 245, 245, 0.8) !important;
  background: rgba(255, 255, 255, 0.12) !important;
  border-color: transparent !important;
  box-shadow: none !important;
}

body.theme-sian3.is-form-open .result-item {
  margin: 12px 16px;
  padding: 16px 18px;
  border-radius: 16px;
  background: rgba(255, 255, 255, 0.05);
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: #fff;
}

body.theme-sian3.is-form-open .result-item__head strong {
  color: #fff;
}

body.theme-sian3.is-form-open .result-item__subjects-label {
  color: rgba(245, 245, 245, 0.52);
}

body.theme-sian3.is-form-open .result-item .subj-unit {
  --subj-card: rgba(12, 12, 14, 0.55);
  --subj-text: #fff;
  --subj-border: rgba(255, 255, 255, 0.14);
  border-color: color-mix(in srgb, var(--subj) 28%, rgba(255, 255, 255, 0.12));
  background: color-mix(in srgb, var(--subj) 14%, rgba(255, 255, 255, 0.04));
}

body.theme-sian3.is-form-open .result-item .subj-unit__cat {
  color: #fff;
}

body.theme-sian3.is-form-open .result-item .subj-chip {
  background: color-mix(in srgb, var(--subj) 22%, rgba(255, 255, 255, 0.06));
  border-color: color-mix(in srgb, var(--subj) 34%, rgba(255, 255, 255, 0.12));
  color: color-mix(in srgb, #fff 78%, var(--subj));
}

body.theme-sian3.is-form-open .result-item .subj-empty {
  color: rgba(245, 245, 245, 0.45);
}

body.theme-sian3.is-form-open .time-chip,
body.theme-sian3.is-form-open .status-badge {
  border-radius: 999px;
  background: rgba(196, 21, 31, 0.28);
  color: #ff9aa0;
}

body.theme-sian3.is-form-open .field-highlight {
  background: rgba(196, 21, 31, 0.16) !important;
  border-color: rgba(255, 90, 99, 0.55) !important;
}

body.theme-sian3.is-form-open .field-guide {
  color: #ff9aa0 !important;
}

/* ── Subviews — same canvas language ── */
body.theme-sian3.is-app-subroute .app-subviews {
  display: block !important;
  position: fixed !important;
  inset: 0 !important;
  z-index: 2000 !important;
  overflow-y: auto !important;
  padding:
    calc(var(--s3-header-h) + clamp(22px, 3.6vh, 32px))
    var(--s3-pad-x)
    clamp(40px, 7vh, 72px) !important;
  background:
    radial-gradient(ellipse 46% 38% at 86% 8%, rgba(196, 21, 31, 0.26), transparent 62%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 48%, #090909 100%) !important;
  color: var(--s3-ink) !important;
}

/* History / resume: a touch more air under the fixed header */
body.theme-sian3.is-app-subroute:has(#subview-history.is-active) .app-subviews,
body.theme-sian3.is-app-subroute:has(#subview-resume.is-active) .app-subviews {
  padding-top: calc(var(--s3-header-h) + clamp(26px, 4.2vh, 36px)) !important;
}

body.theme-sian3.is-app-subroute[data-sian2-form-tab="student"] .app-subviews {
  background:
    radial-gradient(ellipse 46% 38% at 86% 8%, rgba(180, 83, 9, 0.26), transparent 62%),
    linear-gradient(180deg, #070707 0%, #0c0c0c 48%, #090909 100%) !important;
}

body.theme-sian3.is-app-subroute .app-main-shell {
  display: none !important;
}

body.theme-sian3.is-app-subroute .app-subview.is-active {
  width: min(860px, 100%);
  margin: 0 auto;
}

body.theme-sian3.is-app-subroute .app-subview__shell,
body.theme-sian3.is-app-subroute .app-subview__shell--wide,
body.theme-sian3.is-app-subroute .app-subview__shell--narrow,
body.theme-sian3.is-app-subroute .app-login-shell,
body.theme-sian3.is-app-subroute .app-login-card {
  background: rgba(255, 255, 255, 0.035) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 20px !important;
  box-shadow:
    0 24px 60px rgba(0, 0, 0, 0.35),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  color: var(--s3-ink) !important;
  padding: clamp(22px, 3.5vw, 34px) !important;
}

body.theme-sian3.is-app-subroute .app-login-stage {
  position: relative;
  min-height: calc(100dvh - var(--s3-header-h) - 48px);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 0;
  padding: 28px 16px;
  box-sizing: border-box;
}

/* Unified panel: head + form (thanks-page style) */
body.theme-sian3.is-app-subroute .app-login-shell {
  width: min(400px, 100%);
  margin: 0;
  padding: 0 !important;
  overflow: hidden;
}

body.theme-sian3.is-app-subroute .app-login-shell__head {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  width: 100%;
  padding: 14px 18px;
  box-sizing: border-box;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08);
  background: rgba(255, 255, 255, 0.02);
}

body.theme-sian3.is-app-subroute .app-login-shell__mark {
  font-family: var(--s3-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.18em;
  text-transform: uppercase;
  color: rgba(196, 21, 31, 0.85);
}

body.theme-sian3.is-app-subroute .app-login-stage__nav,
body.theme-sian3.is-app-subroute .app-login-card,
body.theme-sian3.is-app-subroute .app-login-card__toolbar,
body.theme-sian3.is-app-subroute .app-login-card__eyebrow {
  display: none !important;
}

body.theme-sian3.is-app-subroute .app-login-card__body {
  padding: 24px 26px 26px !important;
}

/* Same language as thanks close — rect chip inside the panel head */
body.theme-sian3.is-app-subroute .app-login-back {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  gap: 0 !important;
  margin: 0 0 0 auto !important;
  padding: 9px 14px !important;
  height: auto !important;
  min-height: 0 !important;
  max-height: none !important;
  border-radius: 10px !important;
  background: transparent !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(245, 245, 245, 0.88) !important;
  font-family: var(--s3-font-body) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
  box-shadow: none !important;
  transform: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  cursor: pointer;
  transition: background 0.25s ease, border-color 0.25s ease, color 0.25s ease;
}

body.theme-sian3.is-app-subroute .app-login-back:hover,
body.theme-sian3.is-app-subroute .app-login-back:focus-visible {
  background: rgba(255, 255, 255, 0.06) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
  transform: none !important;
}

body.theme-sian3.is-app-subroute .app-login-back__chev,
body.theme-sian3.is-app-subroute .app-login-back__label {
  display: none !important;
}

body.theme-sian3.is-app-subroute .app-login-card__hero {
  text-align: center !important;
  margin: 0 0 24px !important;
}

body.theme-sian3.is-app-subroute .app-login-card__eyebrow {
  display: block;
  margin-bottom: 8px !important;
}

body.theme-sian3.is-app-subroute .app-login-card__title {
  margin: 0 0 8px !important;
  font-size: clamp(1.55rem, 3.2vw, 1.85rem) !important;
  line-height: 1.15 !important;
  color: var(--s3-ink) !important;
  text-align: center !important;
}

body.theme-sian3.is-app-subroute .app-login-card__lead {
  margin: 0 auto !important;
  max-width: 22em;
  font-size: 13.5px !important;
  line-height: 1.55 !important;
  text-align: center !important;
}

body.theme-sian3.is-app-subroute .app-login-fields {
  gap: 14px !important;
}

body.theme-sian3.is-app-subroute .app-login-field {
  gap: 7px !important;
}

body.theme-sian3.is-app-subroute .app-login-field__label {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600;
  font-size: 12.5px !important;
}

body.theme-sian3.is-app-subroute .app-login-demo {
  margin: 12px 0 0 !important;
  text-align: center !important;
  color: rgba(245, 245, 245, 0.4) !important;
  font-size: 12px !important;
}

body.theme-sian3.is-app-subroute .app-login-submit {
  display: flex !important;
  justify-content: stretch !important;
  width: 100% !important;
  margin-top: 20px !important;
}

body.theme-sian3.is-app-subroute .app-login-btn,
body.theme-sian3.is-app-subroute .app-subviews .app-login-btn.submit-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  width: 100% !important;
  max-width: none !important;
  min-width: 0 !important;
  height: 48px !important;
  min-height: 48px !important;
  max-height: 48px !important;
  padding: 0 20px !important;
  border-radius: 14px !important;
  font-family: var(--s3-font-body) !important;
  font-size: 15.5px !important;
  font-weight: 700 !important;
  line-height: 1 !important;
  letter-spacing: -0.02em !important;
  color: #fff !important;
  background: var(--s3-red) !important;
  border: 1px solid var(--s3-red) !important;
  box-shadow: 0 12px 28px rgba(196, 21, 31, 0.32) !important;
}

body.theme-sian3.is-app-subroute .app-login-btn:hover,
body.theme-sian3.is-app-subroute .app-login-btn:focus-visible,
body.theme-sian3.is-app-subroute .app-subviews .app-login-btn.submit-btn:hover,
body.theme-sian3.is-app-subroute .app-subviews .app-login-btn.submit-btn:focus {
  background: var(--s3-red-bright, #e81c28) !important;
  border-color: var(--s3-red-bright, #e81c28) !important;
  box-shadow: 0 14px 32px rgba(196, 21, 31, 0.4) !important;
}

body.theme-sian3.is-app-subroute .app-login-footnote {
  display: flex !important;
  flex-wrap: wrap;
  align-items: center;
  justify-content: center;
  gap: 4px 6px;
  width: 100% !important;
  margin: 18px 0 0 !important;
  text-align: center !important;
  font-size: 13px !important;
  line-height: 1.5 !important;
  color: rgba(245, 245, 245, 0.52) !important;
}

body.theme-sian3.is-app-subroute .app-login-footnote .app-text-link {
  color: var(--s3-red) !important;
  border-bottom: 1px solid rgba(196, 21, 31, 0.45) !important;
  font-weight: 700 !important;
  font-size: 13px !important;
  padding: 0 !important;
  background: none !important;
  cursor: pointer;
}

body.theme-sian3.is-app-subroute .app-login-footnote .app-text-link:hover,
body.theme-sian3.is-app-subroute .app-login-footnote .app-text-link:focus-visible {
  color: #ff5a63 !important;
  border-bottom-color: rgba(255, 90, 99, 0.65) !important;
}

body.theme-sian3.is-app-subroute .app-subview__eyebrow,
body.theme-sian3.is-app-subroute .app-login-card__eyebrow {
  font-family: var(--s3-font-display);
  font-size: 11px;
  font-weight: 700;
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(196, 21, 31, 0.78) !important;
}

body.theme-sian3.is-app-subroute .app-subview__title,
body.theme-sian3.is-app-subroute .app-login-card__title {
  font-family: var(--s3-font-display) !important;
  font-weight: 800 !important;
  letter-spacing: -0.04em !important;
  color: var(--s3-ink) !important;
}

body.theme-sian3.is-app-subroute .app-subview__lead,
body.theme-sian3.is-app-subroute .app-login-card__lead {
  color: var(--s3-ink-muted) !important;
}

body.theme-sian3.is-app-subroute .app-subview__back {
  border-radius: 999px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: var(--s3-ink) !important;
}

body.theme-sian3.is-app-subroute .app-subviews .form-section,
body.theme-sian3.is-app-subroute .app-subviews .app-panel,
body.theme-sian3.is-app-subroute .history-card,
body.theme-sian3.is-app-subroute .stat-box {
  background: rgba(0, 0, 0, 0.28) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-radius: 16px !important;
  box-shadow: none !important;
  color: var(--s3-ink) !important;
}

body.theme-sian3.is-app-subroute .app-subviews .form-section,
body.theme-sian3.is-app-subroute .app-subviews .app-panel {
  padding: 18px 18px 16px !important;
  margin-bottom: 12px !important;
}

body.theme-sian3.is-app-subroute .app-subviews .form-section__title {
  font-family: var(--s3-font-display);
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  color: var(--s3-red) !important;
  margin: 0 0 12px !important;
  padding: 0 0 10px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
  line-height: 1.3;
}

/* Resume / profile: title lives inside __head — drop title gap so only head spacing remains */
body.theme-sian3.is-app-subroute .resume-panel .form-section__title,
body.theme-sian3.is-app-subroute .profile-panel .form-section__title {
  margin: 0 !important;
  padding: 0 !important;
  border-bottom: none !important;
}

body.theme-sian3.is-app-subroute .resume-panel__head,
body.theme-sian3.is-app-subroute .profile-panel__head {
  margin: 0 0 10px !important;
  padding: 0 0 8px !important;
  border-bottom: 1px solid rgba(255, 255, 255, 0.08) !important;
}

/* Profile — notice / labels / placeholders in dark glass language */
body.theme-sian3.is-app-subroute .profile-notice {
  margin-bottom: 14px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background:
    linear-gradient(135deg, rgba(196, 21, 31, 0.12), transparent 62%),
    rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.04) !important;
}

body.theme-sian3.is-app-subroute .profile-notice strong {
  color: #ff9aa0 !important;
  font-family: var(--s3-font-display, "Moderniz", sans-serif);
  font-size: 12px !important;
  font-weight: 700 !important;
  letter-spacing: 0.08em;
  text-transform: uppercase;
}

body.theme-sian3.is-app-subroute .profile-notice p {
  color: rgba(245, 245, 245, 0.62) !important;
  font-size: 13px !important;
  line-height: 1.55 !important;
  word-break: keep-all;
}

body.theme-sian3.is-app-subroute .profile-panel__hint {
  color: rgba(245, 245, 245, 0.48) !important;
}

body.theme-sian3.is-app-subroute .profile-field__label {
  color: rgba(245, 245, 245, 0.55) !important;
}

body.theme-sian3.is-app-subroute .edit-label {
  min-height: 24px;
  padding: 0 10px 1px !important;
  border-radius: 999px !important;
  border: 1px solid transparent;
  font-size: 10.5px !important;
  font-weight: 700 !important;
  letter-spacing: 0.04em;
  line-height: 1;
}

body.theme-sian3.is-app-subroute .edit-label--edit {
  background: rgba(196, 21, 31, 0.22) !important;
  border-color: rgba(255, 90, 99, 0.4) !important;
  color: #ffb4b8 !important;
}

body.theme-sian3.is-app-subroute .edit-label--lock {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  color: rgba(245, 245, 245, 0.48) !important;
}

body.theme-sian3.is-app-subroute .profile-input::placeholder {
  color: rgba(245, 245, 245, 0.34) !important;
  -webkit-text-fill-color: rgba(245, 245, 245, 0.34) !important;
  font-weight: 400 !important;
  opacity: 1 !important;
}

body.theme-sian3.is-app-subroute .profile-input--locked,
body.theme-sian3.is-app-subroute .profile-input[readonly],
body.theme-sian3.is-app-subroute .profile-panel--locked .profile-input {
  background: rgba(255, 255, 255, 0.035) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(232, 232, 232, 0.58) !important;
  -webkit-text-fill-color: rgba(232, 232, 232, 0.58) !important;
}

body.theme-sian3.is-app-subroute .profile-actions {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  justify-content: flex-end !important;
  align-items: center !important;
  gap: 8px !important;
  margin-top: 8px !important;
}

body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn,
body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn--primary,
body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn--ghost {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: 38px !important;
  min-height: 38px !important;
  max-height: 38px !important;
  padding: 0 16px 1px !important;
  font-size: 13px !important;
}

body.theme-sian3.is-app-subroute .app-subview__head {
  margin-bottom: 18px !important;
  gap: 12px 16px;
}

body.theme-sian3.is-app-subroute .app-subview__eyebrow {
  margin-bottom: 8px !important;
}

body.theme-sian3.is-app-subroute .app-subview__title {
  margin: 0 !important;
  font-size: clamp(1.45rem, 2.4vw, 1.85rem) !important;
  line-height: 1.2 !important;
  word-break: keep-all;
}

body.theme-sian3.is-app-subroute .app-subview__lead {
  margin-top: 8px !important;
  font-size: 13.5px !important;
  line-height: 1.5 !important;
  word-break: keep-all;
}

body.theme-sian3.is-app-subroute .stat-row {
  display: grid !important;
  grid-template-columns: repeat(4, minmax(0, 1fr)) !important;
  gap: 10px !important;
  margin-bottom: 14px !important;
}

body.theme-sian3.is-app-subroute .stat-box {
  padding: 14px 10px 12px !important;
}

body.theme-sian3.is-app-subroute .stat-box__n {
  font-size: 1.25rem !important;
  line-height: 1.15 !important;
}

body.theme-sian3.is-app-subroute .stat-box__l {
  margin-top: 6px !important;
  font-size: 11px !important;
  word-break: keep-all;
}

/* History progress stepper — dark sian3 (unified shell) */
body.theme-sian3.is-app-subroute .app-subview--history .app-progress {
  --ap-accent: #d41420;
  --ap-accent-soft: rgba(212, 20, 32, 0.22);
  margin: 4px 0 22px !important;
  padding: 0 !important;
  background: transparent !important;
  border: 0 !important;
  box-shadow: none !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="interview"],
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="review"],
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="pass"],
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="apply"],
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="fail"] {
  --ap-accent: #d41420;
  --ap-accent-soft: rgba(212, 20, 32, 0.22);
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__shell {
  background: rgba(255, 255, 255, 0.045) !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  box-shadow: none !important;
  padding: 16px 18px 18px !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__shell::before {
  content: none !important;
  display: none !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__preview-tag {
  color: #ff9aa0 !important;
  background: rgba(196, 21, 31, 0.18) !important;
  border-color: rgba(255, 120, 126, 0.35) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__summary {
  border-bottom: 0 !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__bridge-line {
  background: linear-gradient(
    90deg,
    transparent 0%,
    rgba(255, 255, 255, 0.12) 18%,
    rgba(255, 255, 255, 0.12) 82%,
    transparent 100%
  ) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__bridge-mark {
  color: rgba(245, 245, 245, 0.42) !important;
  font-family: "Moderniz", var(--s3-font-display, sans-serif) !important;
  font-size: 0.58rem !important;
  font-weight: 400 !important;
  letter-spacing: 0.2em !important;
  padding-top: 0.12em !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__badge {
  color: #ff6b73 !important;
  background: rgba(212, 20, 32, 0.24) !important;
  border-color: rgba(255, 90, 99, 0.42) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="interview"] .app-progress__badge,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="review"] .app-progress__badge,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="pass"] .app-progress__badge,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="fail"] .app-progress__badge,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="apply"] .app-progress__badge {
  color: #ff6b73 !important;
  background: rgba(212, 20, 32, 0.24) !important;
  border-color: rgba(255, 90, 99, 0.42) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__title {
  color: #fff !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__status {
  color: rgba(245, 245, 245, 0.58) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__body {
  --ap-node-mask: #161616;
  --ap-body-pad-y: 22px;
  background: var(--ap-node-mask) !important;
  border: 1px solid rgba(255, 255, 255, 0.08) !important;
  box-shadow: none !important;
  padding: 22px 8px 20px !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__rail-base {
  background: rgba(255, 255, 255, 0.1) !important;
  box-shadow: inset 0 1px 1px rgba(0, 0, 0, 0.25) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__rail-fill {
  background: linear-gradient(90deg, #b8787e 0%, #c43a45 38%, #b1121c 72%, #8a0e16 100%) !important;
  box-shadow: 0 0 8px rgba(177, 18, 28, 0.24) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress.is-pass-path .app-progress__rail-fill,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress.is-fail-path .app-progress__rail-fill {
  background: linear-gradient(90deg, #b8787e 0%, #c43a45 38%, #b1121c 72%, #8a0e16 100%) !important;
}

/* glass icons — dark tray */
body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-pending .app-progress__icon-img {
  opacity: 0.48 !important;
  filter: grayscale(1) brightness(1.08) contrast(0.92) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__label {
  color: rgba(255, 255, 255, 0.38) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__hint {
  display: none !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-pending .app-progress__label {
  color: rgba(255, 255, 255, 0.34) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-done .app-progress__icon-img {
  opacity: 0.72 !important;
  filter: none !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-done .app-progress__label {
  color: rgba(255, 255, 255, 0.7) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-current .app-progress__icon-img {
  opacity: 1 !important;
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.4))
    saturate(1.1)
    brightness(1.08)
    contrast(1.05) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="interview"] .app-progress__step.is-current .app-progress__icon-img,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="review"] .app-progress__step.is-current .app-progress__icon-img,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress.is-pass-path .app-progress__step.is-current .app-progress__icon-img {
  filter:
    drop-shadow(0 2px 3px rgba(0, 0, 0, 0.35))
    drop-shadow(0 0 1px rgba(255, 255, 255, 0.4))
    saturate(1.1)
    brightness(1.08)
    contrast(1.05) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-current .app-progress__label,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="interview"] .app-progress__step.is-current .app-progress__label,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="review"] .app-progress__step.is-current .app-progress__label,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="pass"] .app-progress__step.is-current .app-progress__label,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress[data-tone="fail"] .app-progress__step.is-current .app-progress__label {
  color: #ff4d57 !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-current .app-progress__hint {
  color: rgba(255, 255, 255, 0.86) !important;
  font-weight: 600 !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-fail .app-progress__hint {
  color: rgba(255, 154, 160, 0.85) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-fail .app-progress__icon-img {
  opacity: 0.7 !important;
  filter: grayscale(0.85) brightness(0.85) !important;
  animation: none !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-skipped .app-progress__icon-img {
  opacity: 0.28 !important;
  filter: grayscale(1) brightness(0.95) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-skipped .app-progress__label,
body.theme-sian3.is-app-subroute .app-subview--history .app-progress__step.is-skipped .app-progress__hint {
  color: rgba(245, 245, 245, 0.28) !important;
}

body.theme-sian3.is-app-subroute .history-panel__hint {
  margin: 0 0 12px !important;
  font-size: 12.5px !important;
  line-height: 1.5 !important;
  word-break: keep-all;
}

body.theme-sian3.is-app-subroute .history-list {
  gap: 10px !important;
}

body.theme-sian3.is-app-subroute .history-card {
  padding: 14px 16px !important;
}

body.theme-sian3.is-app-subroute .history-card__top {
  gap: 10px;
  margin-bottom: 10px;
}

body.theme-sian3.is-app-subroute .history-card__body {
  gap: 8px 12px;
}

body.theme-sian3.is-app-subroute .time-chip {
  display: inline-flex !important;
  align-items: center;
  max-width: 100%;
  padding: 5px 10px !important;
  border-radius: 8px !important;
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: rgba(245, 245, 245, 0.78) !important;
  font-size: 12px !important;
  font-weight: 500 !important;
  line-height: 1.4 !important;
  white-space: normal !important;
  word-break: keep-all;
  overflow-wrap: break-word;
}

body.theme-sian3.is-app-subroute .history-manage__copy p {
  word-break: keep-all;
}

body.theme-sian3.is-app-subroute .app-subviews .form-input:not(.s3-select__native):not(.s3-date__native):not(.s3-time__native),
body.theme-sian3.is-app-subroute .app-login-input,
body.theme-sian3.is-app-subroute .profile-input,
body.theme-sian3.is-app-subroute .resume-input:not(.s3-time__native):not(.s3-date__native):not(.s3-select__native) {
  box-sizing: border-box !important;
  width: 100% !important;
  min-height: 44px !important;
  height: 44px !important;
  padding: 0 14px !important;
  color: rgba(232, 232, 232, 0.88) !important;
  -webkit-text-fill-color: rgba(232, 232, 232, 0.88) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  border-radius: 11px !important;
}

body.theme-sian3.is-app-subroute .s3-select__trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  min-height: 40px;
  height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.18);
  background: rgba(255, 255, 255, 0.07);
  color: rgba(232, 232, 232, 0.88);
  font-size: 14px;
  font-weight: 600;
  text-align: left;
  cursor: pointer;
}

body.theme-sian3.is-app-subroute .s3-select.is-disabled .s3-select__trigger,
body.theme-sian3.is-app-subroute .s3-select__trigger:disabled {
  opacity: 1;
  cursor: default;
}

body.theme-sian3.is-app-subroute .app-subviews .txtTable col.inf_txt {
  width: 96px !important;
}

body.theme-sian3.is-app-subroute .app-subviews .txtTable table tr td.inf_1 {
  color: rgba(255, 255, 255, 0.82) !important;
  width: 96px !important;
  padding-right: 0 !important;
}

body.theme-sian3.is-app-subroute .app-subviews .txtTable table tr td:last-child {
  padding-left: 10px !important;
}

body.theme-sian3.is-app-subroute .app-subviews .txtTable table tr td.inf_1 img {
  filter: brightness(0) invert(1) !important;
  opacity: 0.9 !important;
}

body.theme-sian3.is-app-subroute .app-subview__lead,
body.theme-sian3.is-app-subroute .app-login-card__lead,
body.theme-sian3.is-app-subroute .app-legal__text {
  color: rgba(245, 245, 245, 0.72) !important;
}

body.theme-sian3.is-app-subroute .app-login-field__label {
  color: rgba(255, 255, 255, 0.78) !important;
  font-weight: 600;
}

body.theme-sian3.is-app-subroute .app-subviews .submit-btn:not(.app-login-btn),
body.theme-sian3.is-app-subroute .app-chip-btn,
body.theme-sian3.theme-sian2.is-app-subroute .app-chip-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  box-sizing: border-box !important;
  min-width: 108px !important;
  height: 40px !important;
  min-height: 40px !important;
  max-height: 40px !important;
  padding: 0 18px 2px !important;
  border-radius: 999px !important;
  font-family: var(--s3-font-body, 'Noto Sans KR', sans-serif) !important;
  font-size: 13px !important;
  font-weight: 600 !important;
  line-height: 1 !important;
  letter-spacing: -0.01em !important;
}

body.theme-sian3.is-app-subroute .app-subviews .submit-btn:not(.app-login-btn),
body.theme-sian3.is-app-subroute .app-chip-btn--primary,
body.theme-sian3.theme-sian2.is-app-subroute .app-chip-btn--primary {
  background: var(--s3-red) !important;
  border: 1px solid var(--s3-red) !important;
  color: #fff !important;
  box-shadow: 0 10px 24px rgba(196, 21, 31, 0.28) !important;
}

body.theme-sian3.is-app-subroute .app-chip-btn--ghost,
body.theme-sian3.theme-sian2.is-app-subroute .app-chip-btn--ghost,
body.theme-sian3.is-app-subroute .app-subviews .submit-btn--muted:not(.app-login-btn) {
  background: rgba(255, 255, 255, 0.06) !important;
  border: 1px solid rgba(255, 255, 255, 0.18) !important;
  color: #f5f5f5 !important;
  box-shadow: none !important;
}

body.theme-sian3.is-app-subroute .app-chip-btn--ghost:hover,
body.theme-sian3.theme-sian2.is-app-subroute .app-chip-btn--ghost:hover {
  background: rgba(255, 255, 255, 0.1) !important;
  border-color: rgba(255, 255, 255, 0.32) !important;
  color: #fff !important;
}

body.theme-sian3.is-app-subroute .app-legal__text,
body.theme-sian3.is-app-subroute .app-legal__heading,
body.theme-sian3.is-app-subroute .history-card__field,
body.theme-sian3.is-app-subroute .resume-field__value,
body.theme-sian3.is-app-subroute .stat-box__n {
  color: var(--s3-ink) !important;
}

/* History page — kill light-theme black/gray leftovers */
body.theme-sian3.is-app-subroute .app-subview--history .history-panel__hint,
body.theme-sian3.is-app-subroute .app-subview--history .history-manage__copy p,
body.theme-sian3.is-app-subroute .app-subview--history .history-card__meta,
body.theme-sian3.is-app-subroute .app-subview--history .history-card__meta span,
body.theme-sian3.is-app-subroute .app-subview--history .stat-box__l {
  color: rgba(245, 245, 245, 0.62) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .history-manage__copy strong,
body.theme-sian3.is-app-subroute .app-subview--history .history-manage__row--danger .history-manage__copy strong,
body.theme-sian3.theme-sian2.is-app-subroute .history-manage__row--danger .history-manage__copy strong,
body.theme-sian3.is-app-subroute .app-subview--history .history-card__subject,
body.theme-sian3.is-app-subroute .app-subview--history .stat-box__n {
  color: #fff !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .history-card,
body.theme-sian3.theme-sian2.is-app-subroute .history-card {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  color: #fff !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .history-card:hover,
body.theme-sian3.theme-sian2.is-app-subroute .history-card:hover {
  background: rgba(255, 255, 255, 0.08) !important;
  border-color: rgba(196, 21, 31, 0.35) !important;
  box-shadow: none !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .history-card__field,
body.theme-sian3.theme-sian2.is-app-subroute .history-card__field {
  background: rgba(196, 21, 31, 0.22) !important;
  color: #ffb4b8 !important;
  border: 1px solid rgba(255, 90, 99, 0.28);
}

body.theme-sian3.is-app-subroute .app-subview--history .history-manage__row {
  border-color: rgba(255, 255, 255, 0.1) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .stat-box {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
}

body.theme-sian3.is-app-subroute .app-subview--history .history-manage .app-chip-btn--primary,
body.theme-sian3.is-app-subroute .app-subview--history .history-manage .app-chip-btn--ghost {
  width: auto !important;
  min-width: 0 !important;
  flex: 0 0 auto !important;
  height: 36px !important;
  min-height: 36px !important;
  max-height: 36px !important;
  padding: 0 16px 1px !important;
  font-size: 12.5px !important;
}

/* History / resume / legal — section rhythm */
body.theme-sian3.is-app-subroute .app-subview--history .history-panel .form-section__title,
body.theme-sian3.is-app-subroute .app-subview--history .history-manage .form-section__title {
  letter-spacing: 0.08em !important;
  font-size: 14px !important;
  font-weight: 700 !important;
}

body.theme-sian3.is-app-subroute .app-legal__heading {
  margin: 18px 0 8px !important;
  font-size: 14px !important;
  line-height: 1.4;
  word-break: keep-all;
}

body.theme-sian3.is-app-subroute .app-legal__text {
  font-size: 13px !important;
  line-height: 1.65 !important;
  word-break: keep-all;
}

body.theme-sian3.is-app-subroute .terms-doc {
  color: rgba(245, 245, 245, 0.86);
  font-size: 13.5px;
}

body.theme-sian3.is-app-subroute .terms-doc h2 {
  color: #fff;
  font-size: 14.5px;
}

body.theme-sian3.is-app-subroute .terms-doc a {
  color: #ffb4b8;
}

body.theme-sian3.is-app-subroute .terms-doc__table {
  background: rgba(255, 255, 255, 0.03);
  border-color: rgba(255, 255, 255, 0.14);
}

body.theme-sian3.is-app-subroute .terms-doc__table th,
body.theme-sian3.is-app-subroute .terms-doc__table td {
  border-color: rgba(255, 255, 255, 0.12);
  color: rgba(245, 245, 245, 0.88);
}

body.theme-sian3.is-app-subroute .terms-doc__table thead th,
body.theme-sian3.is-app-subroute .terms-doc__table--kv th {
  background: rgba(255, 255, 255, 0.08);
  color: #fff;
}

@media (max-width: 720px) {
  body.theme-sian3.is-app-subroute .terms-doc__table:not(.terms-doc__table--kv) tr {
    background: rgba(255, 255, 255, 0.04);
    border-color: rgba(255, 255, 255, 0.12);
  }

  body.theme-sian3.is-app-subroute .terms-doc__table:not(.terms-doc__table--kv) td {
    border-color: rgba(255, 255, 255, 0.08);
  }

  body.theme-sian3.is-app-subroute .terms-doc__table:not(.terms-doc__table--kv) td::before {
    color: rgba(245, 245, 245, 0.55);
  }
}

body.theme-sian3.is-app-subroute .app-modal {
  background: #141414 !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  color: var(--s3-ink);
  border-radius: 20px;
}

/* Confirm / dialog overlays — centered modal matching sian3 */
body.theme-sian3 .app-overlay {
  z-index: 12040;
  background: rgba(0, 0, 0, 0.64);
  -webkit-backdrop-filter: blur(10px);
  backdrop-filter: blur(10px);
  padding: clamp(16px, 4vw, 28px);
  pointer-events: auto;
}

body.theme-sian3 .app-overlay.is-open {
  display: flex;
}

body.theme-sian3 .app-modal {
  width: min(100%, 400px);
  max-width: 400px;
  padding: 26px 24px 22px;
  border-radius: 20px;
  background: rgba(18, 18, 18, 0.96) !important;
  border: 1px solid rgba(255, 255, 255, 0.12);
  box-shadow:
    0 24px 64px rgba(0, 0, 0, 0.55),
    inset 0 1px 0 rgba(255, 255, 255, 0.06);
  color: rgba(245, 245, 245, 0.92);
  text-align: left;
  pointer-events: auto;
  position: relative;
  z-index: 1;
}

body.theme-sian3 .app-modal__eyebrow {
  margin: 0 0 8px !important;
  font: 400 10px/1 "Moderniz", var(--s3-font-display, sans-serif);
  letter-spacing: 0.2em;
  text-transform: uppercase;
  color: rgba(255, 90, 99, 0.9);
  padding-top: 0.1em;
}

body.theme-sian3 .app-modal h3 {
  margin: 0 0 10px;
  font-family: "Moderniz", var(--s3-font-display, sans-serif);
  font-size: 1.15rem;
  font-weight: 400;
  letter-spacing: 0.04em;
  color: #fff !important;
  padding-top: 0.06em;
}

body.theme-sian3 .app-modal p {
  margin: 0 0 4px;
  font-size: 14px;
  line-height: 1.6;
  color: rgba(245, 245, 245, 0.62) !important;
}

body.theme-sian3 .app-modal__actions {
  display: flex;
  gap: 10px;
  margin-top: 20px;
}

body.theme-sian3 .app-modal__actions .submit-btn,
body.theme-sian3 .app-modal__actions .btn-secondary {
  flex: 1 1 0;
  width: auto !important;
  min-width: 0;
  margin-top: 0 !important;
  min-height: 44px;
  padding: 0 14px;
  border-radius: 999px;
  font-size: 14px;
  font-weight: 700;
  cursor: pointer;
}

body.theme-sian3 .app-modal__actions .submit-btn {
  border: 0;
  background: var(--s3-red, #c4151f);
  color: #fff !important;
  box-shadow: 0 10px 28px rgba(196, 21, 31, 0.35);
}

body.theme-sian3 .app-modal__actions .submit-btn:hover {
  background: var(--s3-red-bright, #e81c28);
}

body.theme-sian3 .app-modal__actions .btn-secondary {
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.88) !important;
}

body.theme-sian3 .app-modal__actions .btn-secondary:hover {
  background: rgba(255, 255, 255, 0.1);
  border-color: rgba(255, 255, 255, 0.24);
}

body.theme-sian3 .app-overlay .app-modal > .submit-btn {
  width: 100%;
  margin-top: 10px;
  min-height: 44px;
  border: 0;
  border-radius: 999px;
  background: var(--s3-red, #c4151f);
  color: #fff !important;
  font-weight: 700;
  cursor: pointer;
}

body.theme-sian3 .app-overlay .app-modal > .btn-secondary {
  width: 100%;
  margin-top: 8px;
  min-height: 42px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.88) !important;
  cursor: pointer;
}

@media (max-width: 900px) {
  body.theme-sian3.is-form-open .form-head {
    grid-template-columns: 1fr;
    gap: 14px;
  }

  body.theme-sian3.is-form-open .form-head__actions {
    display: grid;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    justify-content: stretch;
    width: 100%;
  }

  body.theme-sian3.is-form-open .form-head__actions .form-head__resume,
  body.theme-sian3.is-form-open .form-head__actions .btn-login {
    width: 100%;
    max-width: none;
  }

  body.theme-sian3.is-form-open .form-head__title {
    font-size: clamp(1.35rem, 4.8vw, 1.85rem) !important;
    word-break: keep-all;
  }

  body.theme-sian3.is-form-open .aura-switch__track {
    width: 148px;
  }
}

/* Resume mode switch — soft page reload feel */
body.theme-sian3.is-app-subroute .app-subview--resume .app-subview__shell {
  transition: opacity 0.22s ease, transform 0.28s ease, filter 0.28s ease;
  transform-origin: 50% 0%;
}

body.theme-sian3.is-app-subroute .app-subview--resume.is-mode-leaving .app-subview__shell {
  opacity: 0;
  transform: translateY(12px) scale(0.992);
  filter: blur(2px);
  pointer-events: none;
}

body.theme-sian3.is-app-subroute .app-subview--resume.is-mode-entering .app-subview__shell {
  animation: s3ResumeModeIn 0.45s cubic-bezier(0.22, 1, 0.36, 1) both;
}

@keyframes s3ResumeModeIn {
  from {
    opacity: 0;
    transform: translateY(14px) scale(0.992);
    filter: blur(2px);
  }
  to {
    opacity: 1;
    transform: translateY(0) scale(1);
    filter: blur(0);
  }
}

body.theme-sian3.is-app-subroute .app-subview--resume.is-editing-mode .app-subview__eyebrow {
  color: rgba(255, 154, 160, 0.9) !important;
}

body.theme-sian3.is-app-subroute .app-subview--resume.is-editing-mode .resume-summary {
  border-color: rgba(255, 90, 99, 0.38) !important;
  background:
    linear-gradient(135deg, rgba(196, 21, 31, 0.14), transparent 55%),
    rgba(255, 255, 255, 0.05) !important;
  box-shadow: inset 0 0 0 1px rgba(196, 21, 31, 0.12) !important;
}

body.theme-sian3.is-app-subroute .resume-summary__meta {
  display: inline-flex;
  align-items: center;
  flex-wrap: wrap;
  gap: 8px;
}

body.theme-sian3.is-app-subroute .resume-mode-badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 26px;
  padding: 2px 10px 0;
  border-radius: 999px;
  border: 1px solid rgba(255, 90, 99, 0.45);
  background: rgba(196, 21, 31, 0.28);
  color: #ffb4b8;
  font-family: "Moderniz", var(--s3-font-display, sans-serif);
  font-size: 9px;
  font-weight: 400;
  letter-spacing: 0.16em;
  text-transform: uppercase;
  line-height: 1;
}

body.theme-sian3.is-app-subroute .resume-mode-badge.is-hidden {
  display: none !important;
}

body.theme-sian3.is-app-subroute .app-subview--resume.is-editing-mode .resume-panel {
  border-color: rgba(255, 255, 255, 0.14) !important;
  box-shadow:
    0 18px 40px rgba(0, 0, 0, 0.28),
    inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
}

@media (prefers-reduced-motion: reduce) {
  body.theme-sian3.is-app-subroute .app-subview--resume .app-subview__shell,
  body.theme-sian3.is-app-subroute .app-subview--resume.is-mode-leaving .app-subview__shell,
  body.theme-sian3.is-app-subroute .app-subview--resume.is-mode-entering .app-subview__shell {
    transition: none !important;
    animation: none !important;
    filter: none !important;
    transform: none !important;
    opacity: 1 !important;
  }
}

/* ── Resume dark fixes ── */
body.theme-sian3.is-app-subroute .resume-summary {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  flex-wrap: wrap;
  gap: 12px 16px !important;
  margin-bottom: 12px !important;
  padding: 14px 16px !important;
  border-radius: 14px !important;
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.12) !important;
  box-shadow: none !important;
  color: #fff !important;
}

body.theme-sian3.is-app-subroute .resume-summary__label {
  color: rgba(255, 255, 255, 0.45) !important;
}

body.theme-sian3.is-app-subroute .resume-summary__id strong,
body.theme-sian3.is-app-subroute .resume-summary__date {
  color: #fff !important;
}

body.theme-sian3.is-app-subroute .status-badge,
body.theme-sian3.is-app-subroute .status-badge--신청 {
  background: rgba(196, 21, 31, 0.28) !important;
  color: #ff9aa0 !important;
  border: 1px solid rgba(255, 90, 99, 0.35);
}

body.theme-sian3.is-app-subroute .status-badge--면접예정 {
  background: rgba(224, 138, 47, 0.28) !important;
  color: #f0c078 !important;
  border-color: rgba(224, 138, 47, 0.4);
}

body.theme-sian3.is-app-subroute .status-badge--합격 {
  background: rgba(34, 160, 90, 0.25) !important;
  color: #8dffb4 !important;
  border-color: rgba(80, 200, 130, 0.4);
}

body.theme-sian3.is-app-subroute .status-badge--불합격 {
  background: rgba(120, 120, 120, 0.25) !important;
  color: rgba(255, 255, 255, 0.7) !important;
  border-color: rgba(255, 255, 255, 0.2);
}

body.theme-sian3.is-app-subroute .resume-field__label {
  color: rgba(255, 255, 255, 0.55) !important;
}

/* Resume education — match application form block layout */
body.theme-sian3.is-app-subroute .education-fields--resume {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  max-width: 100%;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-block {
  display: flex;
  flex-direction: column;
  gap: 10px;
  box-sizing: border-box;
  width: 100%;
  padding: 12px;
  border-radius: 12px;
  border: 1px solid rgba(255, 255, 255, 0.1);
  background: rgba(255, 255, 255, 0.03);
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-block--meta {
  display: grid;
  grid-template-columns: minmax(0, 1.2fr) minmax(0, 0.8fr);
  gap: 10px 14px;
  align-items: end;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-field {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-field__label {
  font-size: 11px;
  font-weight: 600;
  letter-spacing: 0.02em;
  color: rgba(245, 245, 245, 0.55);
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-block__head {
  display: flex;
  align-items: center;
  gap: 8px;
  min-height: 22px;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-block__title {
  font-size: 12px;
  font-weight: 700;
  letter-spacing: -0.01em;
  color: rgba(245, 245, 245, 0.9);
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-block__badge {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 22px;
  padding: 0 9px;
  border-radius: 999px;
  border: 1px solid rgba(255, 255, 255, 0.12);
  background: rgba(255, 255, 255, 0.045);
  color: rgba(245, 245, 245, 0.65);
  font-size: 10px;
  font-weight: 600;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-block__body {
  display: flex;
  flex-direction: column;
  gap: 8px;
  min-width: 0;
  width: 100%;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-pair {
  display: grid;
  grid-template-columns: minmax(0, 1fr) minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  width: 100%;
  min-width: 0;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-pair--period {
  grid-template-columns: minmax(0, 1.55fr) minmax(108px, 0.5fr);
  align-items: end;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-period {
  display: flex;
  flex-direction: column;
  gap: 6px;
  min-width: 0;
  width: 100%;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr);
  gap: 8px;
  align-items: center;
  min-width: 0;
  width: 100%;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-period-unit {
  display: flex;
  flex-direction: column;
  gap: 0;
  min-width: 0;
  width: 100%;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .form-inline-row__sep {
  align-self: center;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 44px;
  padding: 0 2px;
  opacity: 0.6;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .s3-date,
body.theme-sian3.is-app-subroute .education-fields--resume .education-period-range .resume-input,
body.theme-sian3.is-app-subroute .education-fields--resume .education-pair > .resume-input,
body.theme-sian3.is-app-subroute .education-fields--resume .education-pair > .s3-select,
body.theme-sian3.is-app-subroute .education-fields--resume .education-block__body > .resume-input,
body.theme-sian3.is-app-subroute .education-fields--resume .s3-select {
  box-sizing: border-box;
  width: 100% !important;
  max-width: 100% !important;
  min-width: 0 !important;
}

body.theme-sian3.is-app-subroute .education-fields--resume .s3-select__trigger,
body.theme-sian3.is-app-subroute .education-fields--resume .resume-input:not(.s3-date__native):not(.s3-time__native) {
  height: 40px !important;
  min-height: 40px !important;
}

body.theme-sian3.is-app-subroute .education-fields--resume .resume-input--auto,
body.theme-sian3.is-app-subroute .education-fields--resume .resume-input--auto[readonly] {
  background: rgba(255, 255, 255, 0.04) !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
  color: rgba(210, 210, 210, 0.85) !important;
  cursor: default !important;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-cert {
  display: inline-flex;
  align-items: center;
  gap: 8px;
  min-height: 44px;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-cert__item {
  position: relative;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-width: 48px;
  min-height: 40px;
  padding: 0 14px;
  border-radius: 11px;
  border: 1px solid rgba(255, 255, 255, 0.16);
  background: rgba(255, 255, 255, 0.05);
  color: rgba(245, 245, 245, 0.78);
  font-size: 13px;
  font-weight: 700;
  cursor: pointer;
  transition: background 0.18s ease, border-color 0.18s ease, color 0.18s ease;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-cert__item input {
  position: absolute;
  opacity: 0;
  pointer-events: none;
  width: 1px;
  height: 1px;
}

body.theme-sian3.is-app-subroute .education-fields--resume .education-cert__item:has(input:checked) {
  background: rgba(196, 21, 31, 0.28);
  border-color: rgba(255, 90, 99, 0.65);
  color: #fff;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.18);
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .education-cert__item:not(:has(input:checked)) {
  opacity: 0.45;
}

body.theme-sian3.is-app-subroute .resume-form .form-inline-row {
  display: flex;
  align-items: center;
  gap: 8px;
  width: 100%;
  max-width: 100%;
}

body.theme-sian3.is-app-subroute .resume-form .form-inline-row .resume-input,
body.theme-sian3.is-app-subroute .resume-form .form-inline-row .s3-date {
  flex: 1 1 0;
  min-width: 0;
  max-width: none !important;
}

body.theme-sian3.is-app-subroute .resume-form .form-hint {
  display: inline-flex;
  align-items: center;
  gap: 7px;
  margin: 8px 0 0;
  font-size: 12px;
  font-weight: 500;
  line-height: 1.35;
  color: rgba(245, 245, 245, 0.48) !important;
}

body.theme-sian3.is-app-subroute .resume-form .form-hint__mark {
  flex: 0 0 auto;
  display: inline-block;
  width: 5px;
  height: 5px;
  border-radius: 50%;
  background: rgba(255, 90, 99, 0.9);
  box-shadow: 0 0 0 1px rgba(255, 90, 99, 0.18);
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__hint {
  margin: 0 0 10px;
  font-size: 12px;
  line-height: 1.45;
  color: rgba(245, 245, 245, 0.5);
}

@media (max-width: 720px) {
  body.theme-sian3.is-app-subroute .education-fields--resume .education-block--meta,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-pair,
  body.theme-sian3.is-app-subroute .education-fields--resume .education-pair--period {
    grid-template-columns: 1fr;
  }
}

body.theme-sian3.is-app-subroute .resume-check {
  background: rgba(255, 255, 255, 0.04) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  color: rgba(255, 255, 255, 0.42) !important;
}

body.theme-sian3.is-app-subroute .resume-check input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 4px;
  border: 1px solid rgba(255, 255, 255, 0.3);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  accent-color: var(--s3-red);
}

body.theme-sian3.is-app-subroute .resume-check:has(input:checked) {
  background: rgba(196, 21, 31, 0.24) !important;
  border-color: rgba(255, 90, 99, 0.55) !important;
  color: #fff !important;
  font-weight: 650;
}

body.theme-sian3.is-app-subroute .resume-check input:checked {
  background: var(--s3-red);
  border-color: var(--s3-red);
}

body.theme-sian3.is-app-subroute .resume-check input:checked::after {
  content: '';
  position: absolute;
  left: 3.5px;
  top: 0.5px;
  width: 4px;
  height: 7px;
  border: solid #fff;
  border-width: 0 1.6px 1.6px 0;
  transform: rotate(45deg);
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .resume-check:not(:has(input:checked)) {
  opacity: 0.55;
}

/* Resume readonly — soft gray filled values (readable, not pure white) */
body.theme-sian3.is-app-subroute .resume-input:not(.s3-time__native):not(.s3-date__native):not(.s3-select__native),
body.theme-sian3.is-app-subroute .resume-input:not(.s3-time__native):not(.s3-date__native):not(.s3-select__native):disabled,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .resume-input:not(.s3-time__native):not(.s3-date__native):not(.s3-select__native),
body.theme-sian3.is-app-subroute .resume-form.is-readonly .resume-input:not(.s3-time__native):not(.s3-date__native):not(.s3-select__native):disabled,
body.theme-sian3.theme-sian2.is-app-subroute .resume-form.is-readonly .resume-input:not(.s3-time__native):not(.s3-date__native):not(.s3-select__native),
body.theme-sian3.theme-sian2.is-app-subroute .resume-form.is-readonly .resume-input:not(.s3-time__native):not(.s3-date__native):not(.s3-select__native):disabled {
  color: rgba(210, 210, 210, 0.92) !important;
  -webkit-text-fill-color: rgba(210, 210, 210, 0.92) !important;
  caret-color: rgba(210, 210, 210, 0.92) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border: 1px solid rgba(255, 255, 255, 0.14) !important;
  opacity: 1 !important;
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-date__trigger,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-date__trigger:disabled,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-time__trigger,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-time__trigger:disabled,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-select__trigger,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-select__trigger:disabled {
  color: rgba(210, 210, 210, 0.92) !important;
  background: rgba(255, 255, 255, 0.07) !important;
  border-color: rgba(255, 255, 255, 0.14) !important;
  opacity: 1 !important;
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .avail-schedule__row.is-on .s3-time__trigger,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .avail-schedule__row.is-on .s3-time__trigger:disabled {
  opacity: 1 !important;
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-date__value,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .s3-time__value {
  color: rgba(210, 210, 210, 0.92) !important;
}

/* Resume avail schedule — stacked day rows + sync below */
body.theme-sian3.is-app-subroute .avail-schedule--resume,
body.theme-sian3.is-app-subroute #rAvailSchedule {
  width: 100% !important;
  max-width: 100% !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__row,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__row {
  display: flex !important;
  flex-direction: row !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 10px !important;
  min-height: 52px;
  padding: 8px 12px !important;
  box-sizing: border-box;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__day,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__day {
  flex: 0 0 40px !important;
  width: 40px !important;
  min-width: 40px !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__times,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__times {
  display: flex !important;
  flex: 1 1 auto !important;
  flex-wrap: nowrap !important;
  align-items: center !important;
  gap: 8px !important;
  min-width: 0 !important;
  width: auto !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .s3-time,
body.theme-sian3.is-app-subroute #rAvailSchedule .s3-time {
  flex: 1 1 0 !important;
  min-width: 0 !important;
  width: auto !important;
  max-width: none !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .s3-time__trigger,
body.theme-sian3.is-app-subroute #rAvailSchedule .s3-time__trigger {
  width: 100% !important;
  min-height: 40px !important;
  height: 40px !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .form-inline-row__sep,
body.theme-sian3.is-app-subroute #rAvailSchedule .form-inline-row__sep {
  flex: 0 0 auto;
  color: rgba(210, 210, 210, 0.55) !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__row:not(.is-on),
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__row:not(.is-on) {
  opacity: 0.48 !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__row.is-on,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__row.is-on {
  opacity: 1 !important;
}

body.theme-sian3.is-app-subroute .avail-schedule--resume .avail-schedule__row:not(.is-on) .s3-time__trigger,
body.theme-sian3.is-app-subroute #rAvailSchedule .avail-schedule__row:not(.is-on) .s3-time__trigger {
  opacity: 0.85 !important;
}

body.theme-sian3.is-app-subroute .resume-form.is-editing .resume-input:not(.s3-select__native):not(.s3-date__native):not(.s3-time__native):focus {
  border-color: rgba(255, 90, 99, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22) !important;
  background: rgba(255, 255, 255, 0.1) !important;
  color: #f5f5f5 !important;
  -webkit-text-fill-color: #f5f5f5 !important;
}

body.theme-sian3.is-app-subroute .resume-form.is-editing .s3-select.is-open .s3-select__trigger,
body.theme-sian3.is-app-subroute .resume-form.is-editing .s3-select__trigger:focus {
  border-color: rgba(255, 90, 99, 0.7) !important;
  box-shadow: 0 0 0 3px rgba(196, 21, 31, 0.22) !important;
  background: rgba(255, 255, 255, 0.1) !important;
}

/* Education cert radio — dark chips (not white light-theme pills) */
body.theme-sian3.is-app-subroute .profile-radio__item,
body.theme-sian3.theme-sian2.is-app-subroute .profile-radio__item {
  background: rgba(255, 255, 255, 0.05) !important;
  border: 1px solid rgba(255, 255, 255, 0.16) !important;
  color: rgba(245, 245, 245, 0.55) !important;
  border-radius: 999px !important;
}

body.theme-sian3.is-app-subroute .profile-radio__item span,
body.theme-sian3.theme-sian2.is-app-subroute .profile-radio__item span {
  color: inherit !important;
}

body.theme-sian3.is-app-subroute .profile-radio__item:has(input:checked),
body.theme-sian3.theme-sian2.is-app-subroute .profile-radio__item:has(input:checked) {
  background: rgba(196, 21, 31, 0.28) !important;
  border-color: rgba(255, 90, 99, 0.55) !important;
  color: #fff !important;
  font-weight: 650 !important;
}

body.theme-sian3.is-app-subroute .profile-radio__item input {
  appearance: none;
  -webkit-appearance: none;
  width: 14px;
  height: 14px;
  margin: 0;
  border-radius: 50%;
  border: 1px solid rgba(255, 255, 255, 0.35);
  background: rgba(0, 0, 0, 0.25);
  position: relative;
  accent-color: var(--s3-red);
}

body.theme-sian3.is-app-subroute .profile-radio__item input:checked {
  background: var(--s3-red);
  border-color: var(--s3-red);
  box-shadow: inset 0 0 0 3px rgba(7, 7, 7, 0.85);
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .profile-radio__item:not(:has(input:checked)) {
  opacity: 0.55;
}

body.theme-sian3.is-app-subroute .resume-form.is-readonly .day-picker__btn.is-on,
body.theme-sian3.is-app-subroute .resume-form.is-readonly .avail-schedule__day.is-on {
  color: #fff !important;
  opacity: 1 !important;
}

/* ── Thanks — landing language only (no images mix, left-aligned) ── */
html body.theme-sian3.theme-sian2.is-app-subroute:has(#subview-thanks.is-active),
html body.theme-sian3.is-app-subroute:has(#subview-thanks.is-active) {
  background: var(--s3-black, #070707) !important;
  color: var(--s3-ink, #f5f5f5) !important;
}

html body.theme-sian3.is-app-subroute:has(#subview-thanks.is-active) .s34-site-header,
html body.theme-sian3.is-app-subroute:has(#subview-thanks.is-active) .site-header {
  display: none !important;
}

html body.theme-sian3.is-app-subroute .s3-cursor-glow {
  display: none !important;
}

html body.theme-sian3.is-app-subroute .app-subviews:has(#subview-thanks.is-active) {
  display: flex !important;
  flex-direction: column !important;
  padding: 0 !important;
  overflow: hidden !important;
  background: var(--s3-black, #070707) !important;
}

html body.theme-sian3.is-app-subroute #subview-thanks.is-active {
  display: flex !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  max-width: none !important;
  background: transparent !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-stage {
  position: relative !important;
  display: flex !important;
  flex-direction: column !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  overflow: auto !important;
  isolation: isolate !important;
  color: var(--s3-ink, #f5f5f5) !important;
  background: var(--s3-black, #070707) !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-stage::before,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-stage::after {
  display: none !important;
  content: none !important;
}

/* Soft top-right bloom only — no muddy bottom-left flare */
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-bloom {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  background:
    radial-gradient(ellipse 42% 34% at 88% 6%, rgba(196, 21, 31, 0.22), transparent 68%);
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-noise {
  position: absolute;
  inset: 0;
  z-index: 0;
  pointer-events: none;
  opacity: 0.035;
  background-image: url("data:image/svg+xml,%3Csvg viewBox='0 0 256 256' xmlns='http://www.w3.org/2000/svg'%3E%3Cfilter id='n'%3E%3CfeTurbulence type='fractalNoise' baseFrequency='0.85' numOctaves='4' stitchTiles='stitch'/%3E%3C/filter%3E%3Crect width='100%25' height='100%25' filter='url(%23n)'/%3E%3C/svg%3E");
  background-size: 180px;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-shell {
  position: relative !important;
  z-index: 1 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: stretch !important;
  width: 100% !important;
  max-width: none !important;
  min-height: 100vh !important;
  min-height: 100dvh !important;
  margin: 0 !important;
  padding: 0 !important;
  gap: 0 !important;
  border: 0 !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-shell::before {
  display: none !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-shell__head {
  display: flex !important;
  align-items: center !important;
  justify-content: space-between !important;
  gap: 16px !important;
  flex: 0 0 auto !important;
  width: 100% !important;
  margin: 0 !important;
  padding:
    calc(22px + env(safe-area-inset-top, 0px))
    var(--s3-pad-x, clamp(20px, 4.5vw, 56px))
    0 !important;
  border: none !important;
  background: transparent !important;
  box-shadow: none !important;
  box-sizing: border-box !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-brand {
  display: inline-flex !important;
  align-items: center !important;
  font-family: var(--s3-font-display, "Moderniz", sans-serif) !important;
  font-size: 12px !important;
  font-weight: 800 !important;
  letter-spacing: 0.2em !important;
  text-transform: uppercase !important;
  color: var(--s3-ink, #f5f5f5) !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-brand__logo {
  display: block !important;
  height: clamp(26px, 3.6vw, 32px) !important;
  width: auto !important;
  filter: none !important;
  opacity: 1 !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-close {
  color: var(--s3-ink, #f5f5f5) !important;
  background: transparent !important;
  border: 1px solid var(--s3-border-strong, rgba(255, 255, 255, 0.14)) !important;
  border-radius: 10px !important;
  padding: 11px 18px !important;
  font: 600 13px/1 var(--s3-font-body, 'Noto Sans KR', sans-serif) !important;
  cursor: pointer !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  transition: background 0.3s ease, border-color 0.3s ease;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-close:hover {
  background: rgba(255, 255, 255, 0.05) !important;
  border-color: rgba(255, 255, 255, 0.35) !important;
  color: #fff !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-content {
  position: relative !important;
  z-index: 2 !important;
  display: flex !important;
  flex-direction: column !important;
  align-items: flex-start !important;
  justify-content: center !important;
  flex: 1 1 auto !important;
  width: 100% !important;
  max-width: none !important;
  margin: 0 !important;
  padding:
    clamp(40px, 8vh, 88px)
    var(--s3-pad-x, clamp(20px, 4.5vw, 56px))
    clamp(48px, 8vh, 80px) !important;
  gap: 0 !important;
  border: none !important;
  border-radius: 0 !important;
  background: transparent !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: var(--s3-ink, #f5f5f5) !important;
  box-sizing: border-box !important;
  text-align: left !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-eyebrow {
  display: block !important;
  margin: 0 0 clamp(18px, 3vh, 28px) !important;
  padding: 0 !important;
  font-family: var(--s3-font-display, "Moderniz", sans-serif) !important;
  font-size: 11px !important;
  font-weight: 700 !important;
  letter-spacing: 0.14em !important;
  text-transform: uppercase !important;
  color: var(--s3-red, #C4151F) !important;
  background: none !important;
  border: none !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-badge,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-media,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-catch-wrap,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-main {
  display: none !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-title {
  margin: 0 !important;
  max-width: 12ch !important;
  font-family: var(--s3-font-display, "Moderniz", sans-serif) !important;
  font-size: clamp(2.4rem, 6.5vw, 4.2rem) !important;
  font-weight: 800 !important;
  line-height: 1.05 !important;
  letter-spacing: -0.04em !important;
  text-transform: none !important;
  color: #fff !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-title span {
  color: #fff !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-lead {
  margin: clamp(16px, 2.8vh, 26px) 0 0 !important;
  max-width: 28em !important;
  color: var(--s3-ink-muted, rgba(245, 245, 245, 0.58)) !important;
  font-size: clamp(0.92rem, 1.5vw, 1.05rem) !important;
  font-weight: 500 !important;
  line-height: 1.65 !important;
  letter-spacing: -0.02em !important;
  text-align: left !important;
}

/* Kill sian2 white glass wrapper — steps must read dark like landing process */
html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-steps,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-steps {
  display: grid !important;
  grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
  gap: clamp(12px, 2vw, 18px) !important;
  width: min(860px, 100%) !important;
  margin: clamp(32px, 5vh, 48px) 0 0 !important;
  padding: 0 !important;
  list-style: none !important;
  background: transparent !important;
  border: none !important;
  border-radius: 0 !important;
  box-shadow: none !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  overflow: visible !important;
}

html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step {
  position: relative !important;
  display: flex !important;
  flex: none !important;
  flex-direction: column !important;
  gap: 8px !important;
  min-height: 156px !important;
  padding: clamp(20px, 2.5vw, 26px) !important;
  border-radius: 22px !important;
  border: 1px solid rgba(255, 255, 255, 0.1) !important;
  border-right: 1px solid rgba(255, 255, 255, 0.1) !important;
  background: #111111 !important;
  box-shadow: 0 16px 40px rgba(0, 0, 0, 0.35) !important;
  backdrop-filter: none !important;
  -webkit-backdrop-filter: none !important;
  color: #f5f5f5 !important;
  overflow: hidden !important;
  text-align: left !important;
  opacity: 1 !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step::before {
  content: '' !important;
  display: block !important;
  position: absolute !important;
  inset: 0 !important;
  border-radius: inherit !important;
  pointer-events: none !important;
  background: linear-gradient(160deg, rgba(196, 21, 31, 0.16) 0%, transparent 55%) !important;
  opacity: 1 !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step:nth-child(2),
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step:nth-child(3) {
  background: #111111 !important;
  border-color: rgba(255, 255, 255, 0.1) !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step.is-active {
  background: #161616 !important;
  border-color: rgba(196, 21, 31, 0.5) !important;
  box-shadow:
    0 20px 48px rgba(196, 21, 31, 0.18),
    inset 0 1px 0 rgba(255, 255, 255, 0.06) !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__corner {
  position: absolute !important;
  top: 14px !important;
  right: 14px !important;
  width: 14px !important;
  height: 14px !important;
  border-top: 1px solid rgba(196, 21, 31, 0.7) !important;
  border-right: 1px solid rgba(196, 21, 31, 0.7) !important;
  opacity: 0.7 !important;
  z-index: 1 !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step.is-active .app-thanks-step__corner {
  opacity: 1 !important;
}

html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__n,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__n {
  position: relative !important;
  z-index: 1 !important;
  font-family: var(--s3-font-display, "Moderniz", sans-serif) !important;
  font-size: clamp(2rem, 3.5vw, 2.6rem) !important;
  font-weight: 800 !important;
  line-height: 1 !important;
  letter-spacing: -0.04em !important;
  color: #C4151F !important;
  opacity: 1 !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__en {
  position: relative !important;
  z-index: 1 !important;
  font-family: var(--s3-font-body, 'Noto Sans KR', sans-serif) !important;
  font-size: 12px !important;
  font-weight: 600 !important;
  line-height: 1.35 !important;
  letter-spacing: 0.01em !important;
  text-transform: none !important;
  color: rgba(245, 245, 245, 0.45) !important;
  word-break: keep-all !important;
}

html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__t,
html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__t {
  position: relative !important;
  z-index: 1 !important;
  margin-top: 4px !important;
  color: #ffffff !important;
  font-family: var(--s3-font-display, "Moderniz", sans-serif) !important;
  font-size: clamp(1.05rem, 1.8vw, 1.25rem) !important;
  font-weight: 800 !important;
  letter-spacing: -0.02em !important;
  line-height: 1.3 !important;
  word-break: keep-all !important;
  overflow-wrap: break-word !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-actions {
  display: flex !important;
  flex-wrap: wrap !important;
  gap: 10px !important;
  margin: clamp(28px, 4vh, 40px) 0 0 !important;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-cta {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  min-height: 0 !important;
  padding: 11px 22px !important;
  border-radius: 10px !important;
  background: var(--s3-red, #C4151F) !important;
  border: none !important;
  color: #fff !important;
  font: 600 13px/1 var(--s3-font-body, 'Noto Sans KR', sans-serif) !important;
  letter-spacing: 0.01em !important;
  box-shadow: 0 8px 28px rgba(196, 21, 31, 0.35) !important;
  cursor: pointer !important;
  transition: background 0.3s ease, box-shadow 0.3s ease;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-cta:hover {
  background: var(--s3-red-bright, #e81c28) !important;
  box-shadow: 0 12px 36px rgba(196, 21, 31, 0.45) !important;
  color: #fff !important;
  filter: none;
}

html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-note {
  margin: 14px 0 0 !important;
  color: var(--s3-ink-dim, rgba(245, 245, 245, 0.32)) !important;
  font-size: 11px !important;
  line-height: 1.55 !important;
  text-align: left !important;
}

@media (max-width: 720px) {
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-title {
    font-size: clamp(2.2rem, 10vw, 3rem) !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-lead {
    font-size: 0.92rem !important;
  }
}

/* Tablet — keep 3-up, tighten type so English labels fit */
@media (min-width: 721px) and (max-width: 1100px) {
  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-steps,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-steps {
    grid-template-columns: repeat(3, minmax(0, 1fr)) !important;
    gap: 12px !important;
    width: 100% !important;
    max-width: 100% !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step {
    display: flex !important;
    flex-direction: column !important;
    justify-content: flex-start !important;
    gap: 6px !important;
    min-height: 148px !important;
    padding: 18px 16px 20px !important;
    border-radius: 18px !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__corner {
    top: 12px !important;
    right: 12px !important;
    width: 12px !important;
    height: 12px !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__n,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__n {
    font-size: clamp(1.65rem, 3.2vw, 2.1rem) !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__en {
    font-size: 11px !important;
    line-height: 1.35 !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__t,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__t {
    margin-top: 2px !important;
    font-size: clamp(0.98rem, 1.6vw, 1.12rem) !important;
    line-height: 1.35 !important;
  }
}

/* Phone — stacked rows: number | copy (cleaner rhythm) */
@media (max-width: 720px) {
  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-steps,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-steps {
    grid-template-columns: 1fr !important;
    gap: 7px !important;
    width: 100% !important;
    max-width: 100% !important;
    margin-top: 20px !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step {
    display: grid !important;
    grid-template-columns: 48px minmax(0, 1fr) !important;
    grid-template-rows: auto auto !important;
    column-gap: 12px !important;
    row-gap: 1px !important;
    align-items: center !important;
    min-height: 64px !important;
    padding: 13px 16px 13px 14px !important;
    border-radius: 12px !important;
    box-shadow: 0 8px 24px rgba(0, 0, 0, 0.28) !important;
    gap: unset !important;
    flex-direction: unset !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step.is-active {
    box-shadow:
      0 10px 28px rgba(196, 21, 31, 0.16),
      inset 0 1px 0 rgba(255, 255, 255, 0.05) !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__corner {
    display: none !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step::before {
    background: linear-gradient(90deg, rgba(196, 21, 31, 0.12) 0%, transparent 38%) !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__n,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__n {
    grid-column: 1 !important;
    grid-row: 1 / span 2 !important;
    align-self: center !important;
    justify-self: center !important;
    width: 100% !important;
    padding-right: 10px !important;
    border-right: 1px solid rgba(255, 255, 255, 0.08) !important;
    box-sizing: border-box !important;
    font-size: 1.35rem !important;
    line-height: 1 !important;
    letter-spacing: -0.03em !important;
    text-align: center !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__en {
    grid-column: 2 !important;
    grid-row: 1 !important;
    font-size: 10.5px !important;
    font-weight: 500 !important;
    letter-spacing: 0 !important;
    line-height: 1.25 !important;
    color: rgba(245, 245, 245, 0.4) !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__t,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__t {
    grid-column: 2 !important;
    grid-row: 2 !important;
    margin-top: 0 !important;
    font-size: 1rem !important;
    line-height: 1.3 !important;
    letter-spacing: -0.02em !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-eyebrow {
    letter-spacing: 0.12em !important;
    font-size: 10.5px !important;
  }
}

@media (max-width: 480px) {
  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step {
    grid-template-columns: 44px minmax(0, 1fr) !important;
    column-gap: 10px !important;
    min-height: 60px !important;
    padding: 12px 14px 12px 12px !important;
    border-radius: 11px !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__n,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__n {
    padding-right: 8px !important;
    font-size: 1.22rem !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__en {
    font-size: 10px !important;
  }

  html body.theme-sian3.theme-sian2.is-app-subroute .app-subview--thanks .app-thanks-step__t,
  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-step__t {
    font-size: 0.95rem !important;
  }
}

/* ═══════════════════════════════════════════════════════════════
   RESPONSIVE — tablet / mobile (form · subviews · thanks)
   ═══════════════════════════════════════════════════════════════ */
@media (max-width: 1024px) {
  body.theme-sian3.is-form-open .split-layout__form,
  body.theme-sian3.is-form-open #formStage {
    width: min(100%, calc(100% - 24px)) !important;
    padding-left: 12px;
    padding-right: 12px;
  }

  body.theme-sian3.is-app-subroute .app-subviews {
    padding-left: 16px !important;
    padding-right: 16px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview.is-active {
    width: 100% !important;
    max-width: 820px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__shell,
  body.theme-sian3.is-app-subroute .app-subview__shell--wide,
  body.theme-sian3.is-app-subroute .app-subview__shell--narrow {
    width: 100% !important;
    max-width: 100% !important;
    box-sizing: border-box !important;
    padding: 22px 20px !important;
  }
}

@media (max-width: 900px) {
  body.theme-sian3.is-form-open .form-head__actions {
    display: grid !important;
    grid-template-columns: 1fr 1fr;
    gap: 8px;
    width: 100%;
    justify-content: stretch !important;
    align-items: stretch;
  }

  body.theme-sian3.is-form-open .form-head__actions .form-head__resume,
  body.theme-sian3.is-form-open .form-head__actions .btn-login {
    width: 100% !important;
    max-width: none !important;
    flex: none !important;
    min-width: 0 !important;
    justify-content: center !important;
    padding: 0 12px !important;
    font-size: 12.5px !important;
    white-space: nowrap;
  }

  body.theme-sian3.is-form-open .form-shell__toolbar {
    justify-content: flex-start;
  }

  body.theme-sian3.is-form-open .form-stage__scroll {
    padding-bottom: max(24px, env(safe-area-inset-bottom, 0px));
  }

  body.theme-sian3.is-form-open .form-head__title,
  body.theme-sian3.theme-sian2.is-form-open .form-head__title,
  body.theme-sian3.theme-sian2.theme-sian2-match.is-form-open .form-head__title {
    font-size: clamp(1.35rem, 4.8vw, 1.85rem) !important;
    line-height: 1.2 !important;
    white-space: normal !important;
  }

  /* Submit / preview — centered on all devices */
  body.theme-sian3.is-form-open .submit-area,
  body.theme-sian3.is-form-open .submit-area__row {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: center !important;
    gap: 8px !important;
    width: 100% !important;
    text-align: center !important;
  }

  body.theme-sian3.is-form-open .submit-btn,
  body.theme-sian3.is-form-open .submit-btn--preview,
  body.theme-sian3.is-form-open .submit-area__row .submit-btn,
  body.theme-sian3.theme-sian2.is-form-open .submit-btn,
  body.theme-sian3.theme-sian2.is-form-open .submit-btn--preview {
    width: auto !important;
    flex: 0 1 auto !important;
    max-width: 220px !important;
    min-width: 0 !important;
    min-height: 42px !important;
    height: auto !important;
    padding: 0 18px 2px !important;
    font-size: 13px !important;
    display: inline-flex !important;
    align-items: center !important;
    justify-content: center !important;
    line-height: 1 !important;
  }

  /* Consent — always left-aligned rows */
  body.theme-sian3.is-form-open .consent-block,
  body.theme-sian3.is-form-open .consent-block__all,
  body.theme-sian3.is-form-open .consent-block__item,
  body.theme-sian3.is-form-open .notice-box {
    text-align: left !important;
  }

  body.theme-sian3.is-form-open .consent-block__all,
  body.theme-sian3.is-form-open .consent-block__item {
    display: flex !important;
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 10px !important;
  }

  body.theme-sian3.is-form-open .consent-block__all {
    align-items: center !important;
  }

  body.theme-sian3.is-form-open .consent-block__item span {
    flex: 1 1 auto !important;
    text-align: left !important;
  }

  body.theme-sian3.is-form-open .consent-block__link {
    margin-left: auto !important;
    flex: 0 0 auto !important;
    align-self: center !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__list,
  body.theme-sian3.is-app-subroute .avail-schedule__list {
    grid-template-columns: 1fr !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__sync,
  body.theme-sian3.is-app-subroute .avail-schedule__sync {
    grid-column: 1 !important;
    grid-row: auto !important;
    justify-self: start !important;
    margin-top: 4px;
    white-space: normal !important;
  }

  /* Keep day + start~end on one horizontal row */
  body.theme-sian3.is-form-open .avail-schedule__row,
  body.theme-sian3.is-app-subroute .avail-schedule__row {
    flex-wrap: nowrap !important;
    gap: 8px !important;
    padding: 7px 8px !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__day,
  body.theme-sian3.is-app-subroute .avail-schedule__day {
    flex: 0 0 34px !important;
    min-width: 34px !important;
    width: 34px !important;
    min-height: 34px !important;
    height: 34px !important;
    font-size: 12px !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__times,
  body.theme-sian3.is-app-subroute .avail-schedule__times {
    flex-wrap: nowrap !important;
    flex: 1 1 auto !important;
    width: auto !important;
    min-width: 0 !important;
    gap: 6px !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__times .s3-time,
  body.theme-sian3.is-app-subroute .avail-schedule__times .s3-time {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__times .s3-time__trigger,
  body.theme-sian3.is-app-subroute .avail-schedule__times .s3-time__trigger {
    min-height: 36px !important;
    height: 36px !important;
    padding: 0 8px !important;
    font-size: 12.5px !important;
    gap: 4px !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__times .s3-time__icon,
  body.theme-sian3.is-app-subroute .avail-schedule__times .s3-time__icon {
    display: none;
  }

  body.theme-sian3.is-form-open .avail-schedule__times .form-inline-row__sep,
  body.theme-sian3.is-app-subroute .avail-schedule__times .form-inline-row__sep {
    flex: 0 0 auto;
    padding: 0 1px;
    opacity: 0.55;
  }

  body.theme-sian3.is-app-subroute .app-subviews {
    padding-bottom: max(28px, env(safe-area-inset-bottom, 0px) + 16px) !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__shell,
  body.theme-sian3.is-app-subroute .app-subview__shell--wide,
  body.theme-sian3.is-app-subroute .app-subview__shell--narrow {
    padding: 20px 16px !important;
    border-radius: 18px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__head {
    margin-bottom: 16px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__head--trail {
    display: grid !important;
    grid-template-columns: minmax(0, 1fr) auto !important;
    align-items: start !important;
    gap: 10px 12px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__head-copy {
    grid-column: 1;
    min-width: 0;
  }

  body.theme-sian3.is-app-subroute .app-subview__head-actions {
    grid-column: 2;
    grid-row: 1;
    align-self: start !important;
    margin-left: 0 !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__back {
    grid-column: 2;
    grid-row: 1;
    align-self: start !important;
    margin-left: 0 !important;
    white-space: nowrap;
  }

  body.theme-sian3.is-app-subroute .app-subview__title {
    font-size: clamp(1.3rem, 4.2vw, 1.65rem) !important;
    text-align: left !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__lead {
    font-size: 13px !important;
  }

  body.theme-sian3.is-app-subroute .stat-row {
    grid-template-columns: repeat(2, minmax(0, 1fr)) !important;
    gap: 8px !important;
    margin-bottom: 12px !important;
  }

  body.theme-sian3.is-app-subroute .stat-box {
    padding: 13px 10px 11px !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews .form-section,
  body.theme-sian3.is-app-subroute .app-subviews .app-panel {
    padding: 16px 14px 14px !important;
    margin-bottom: 10px !important;
    border-radius: 14px !important;
  }

  body.theme-sian3.is-app-subroute .history-card__body {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 8px !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__row {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px 14px !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__copy {
    flex: 1 1 200px !important;
    min-width: 0 !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__row .app-chip-btn,
  body.theme-sian3.is-app-subroute .history-manage .app-chip-btn--primary,
  body.theme-sian3.is-app-subroute .history-manage .app-chip-btn--ghost {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin-left: auto !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 14px 1px !important;
    font-size: 12px !important;
  }

  body.theme-sian3.is-app-subroute .app-login-stage {
    min-height: calc(100vh - var(--s3-header-h, 64px) - 32px) !important;
    min-height: calc(100dvh - var(--s3-header-h, 64px) - 32px) !important;
    padding: 20px 12px !important;
    gap: 0 !important;
  }

  body.theme-sian3.is-app-subroute .app-login-shell {
    width: min(400px, 100%) !important;
    padding: 0 !important;
  }

  body.theme-sian3.is-app-subroute .app-login-shell__head {
    padding: 12px 14px !important;
  }

  body.theme-sian3.is-app-subroute .app-login-card__body {
    padding: 20px 18px 22px !important;
  }

  body.theme-sian3.is-app-subroute .app-login-btn,
  body.theme-sian3.is-app-subroute .app-subviews .app-login-btn.submit-btn {
    height: 46px !important;
    min-height: 46px !important;
    max-height: 46px !important;
    font-size: 15px !important;
    border-radius: 12px !important;
  }

  body.theme-sian3.is-app-subroute .resume-summary {
    flex-direction: column !important;
    align-items: flex-start !important;
    gap: 12px !important;
  }

  body.theme-sian3.is-app-subroute .resume-grid--2,
  body.theme-sian3.is-app-subroute .profile-grid--2 {
    grid-template-columns: 1fr !important;
  }

  body.theme-sian3.is-app-subroute .resume-actions {
    flex-direction: column-reverse !important;
    align-items: stretch !important;
    gap: 8px !important;
  }

  body.theme-sian3.is-app-subroute .profile-actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    align-items: center !important;
    gap: 8px !important;
  }

  body.theme-sian3.is-app-subroute .resume-actions .app-chip-btn {
    width: 100% !important;
    max-width: none !important;
  }

  body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn,
  body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn--primary,
  body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn--ghost {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 36px !important;
    min-height: 36px !important;
    max-height: 36px !important;
    padding: 0 14px 1px !important;
    font-size: 12.5px !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews .submit-btn:not(.app-login-btn) {
    width: auto !important;
    max-width: none !important;
    min-height: 42px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }

  body.theme-sian3.is-app-subroute .app-chip-btn--primary,
  body.theme-sian3.is-app-subroute .app-chip-btn--ghost {
    min-height: 42px !important;
    padding: 0 18px !important;
    font-size: 13px !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-shell__head {
    padding-left: clamp(16px, 4vw, 28px) !important;
    padding-right: clamp(16px, 4vw, 28px) !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-content {
    padding-left: clamp(16px, 4vw, 28px) !important;
    padding-right: clamp(16px, 4vw, 28px) !important;
    padding-bottom: max(40px, env(safe-area-inset-bottom, 0px) + 24px) !important;
    align-items: flex-start !important;
    text-align: left !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-title {
    font-size: clamp(1.85rem, 7vw, 2.6rem) !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-cta {
    width: auto !important;
    max-width: 240px !important;
    min-height: 44px !important;
    padding: 0 20px !important;
    font-size: 14px !important;
  }
}

@media (max-width: 720px) {
  body.theme-sian3.is-form-open .app-main-shell,
  body.theme-sian3.is-form-open .s3-form-shell {
    padding-bottom: env(safe-area-inset-bottom, 0px);
  }

  /* Bloom stays inside the viewport — no hard cut on the right edge */
  body.theme-sian3.is-form-open.is-teacher .app-main-shell,
  body.theme-sian3.is-form-open.is-teacher .s3-form-shell,
  body.theme-sian3.is-form-open:not(.is-student) .app-main-shell,
  body.theme-sian3.is-form-open:not(.is-student) .s3-form-shell {
    background:
      radial-gradient(ellipse 88% 52% at 68% 0%, rgba(196, 21, 31, 0.36), transparent 72%),
      radial-gradient(ellipse 70% 42% at 12% 92%, rgba(196, 21, 31, 0.14), transparent 68%),
      linear-gradient(180deg, #070707 0%, #0c0c0c 48%, #090909 100%) !important;
  }

  body.theme-sian3.is-form-open.is-student .app-main-shell,
  body.theme-sian3.is-form-open.is-student .s3-form-shell {
    background:
      radial-gradient(ellipse 88% 52% at 68% 0%, rgba(180, 83, 9, 0.36), transparent 72%),
      radial-gradient(ellipse 70% 42% at 12% 92%, rgba(180, 83, 9, 0.14), transparent 68%),
      linear-gradient(180deg, #070707 0%, #0c0c0c 48%, #090909 100%) !important;
  }

  /* Wider card column on phones */
  body.theme-sian3.is-form-open .split-layout__inner {
    width: 100% !important;
    max-width: 100% !important;
    padding:
      calc(var(--s3-header-h) + 12px)
      max(12px, env(safe-area-inset-right, 0px))
      max(28px, env(safe-area-inset-bottom, 0px) + 16px)
      max(12px, env(safe-area-inset-left, 0px)) !important;
    box-sizing: border-box !important;
  }

  body.theme-sian3.is-form-open .split-layout {
    overflow-x: hidden !important;
  }

  /* Role switch — full-width segmented control aligned with cards */
  body.theme-sian3.is-form-open .form-shell__toolbar {
    position: relative !important;
    top: auto !important;
    left: auto !important;
    right: auto !important;
    z-index: 2;
    display: flex !important;
    flex-direction: column;
    justify-content: flex-start !important;
    align-items: stretch;
    width: 100%;
    margin: 0 0 14px !important;
    padding: 0 !important;
    border-bottom: 0;
    background: none !important;
    pointer-events: auto !important;
  }

  body.theme-sian3.is-form-open .form-shell__toolbar::before {
    content: 'ROLE';
    display: block;
    margin: 0 0 8px;
    font-family: var(--s3-font-display);
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.2em;
    color: rgba(245, 245, 245, 0.38);
  }

  body.theme-sian3.is-student.is-form-open .form-shell__toolbar::before {
    color: rgba(217, 119, 6, 0.55);
  }

  body.theme-sian3.is-form-open:not(.is-student) .form-shell__toolbar::before {
    color: rgba(255, 90, 99, 0.55);
  }

  body.theme-sian3.is-form-open .aura-switch,
  body.theme-sian3.is-form-open .split-layout__form .aura-switch {
    display: flex !important;
    justify-content: stretch;
    width: 100%;
    max-width: 100%;
    opacity: 1 !important;
    visibility: visible !important;
    pointer-events: auto !important;
    transform: none !important;
  }

  body.theme-sian3.is-form-open .aura-switch__track,
  body.theme-sian3.is-form-open .split-layout__form .aura-switch__track {
    width: 100% !important;
    max-width: 100% !important;
    min-height: 40px;
    padding: 3px !important;
    box-sizing: border-box;
    border-radius: 14px !important;
    background: rgba(255, 255, 255, 0.05) !important;
    border: 1px solid rgba(255, 255, 255, 0.12) !important;
    box-shadow:
      inset 0 1px 0 rgba(255, 255, 255, 0.06),
      0 8px 24px rgba(0, 0, 0, 0.22) !important;
  }

  body.theme-sian3.is-form-open .aura-switch__thumb {
    border-radius: 11px !important;
  }

  body.theme-sian3.is-form-open .aura-switch__btn,
  body.theme-sian3.is-form-open .split-layout__form .aura-switch__btn {
    min-height: 34px !important;
    padding: 8px 6px !important;
    font-size: 11px !important;
    letter-spacing: 0.1em !important;
    border-radius: 11px !important;
  }

  /* Title block follows the switch as one intro group */
  body.theme-sian3.is-form-open .form-head {
    margin-top: 2px !important;
    margin-bottom: 14px !important;
    padding-bottom: 14px !important;
    gap: 12px !important;
    border-bottom-color: rgba(255, 255, 255, 0.06) !important;
  }

  body.theme-sian3.is-form-open .form-head__eyebrow {
    margin-bottom: 6px !important;
  }

  body.theme-sian3.is-form-open .form-section,
  body.theme-sian3.is-form-open .form-box {
    border-radius: 16px !important;
  }

  body.theme-sian3.is-form-open .form-sections {
    gap: 12px !important;
  }

  body.theme-sian3.is-form-open .form-section {
    padding: 0 !important;
  }

  body.theme-sian3.is-form-open .form-section__title {
    font-size: 11px !important;
    padding: 14px 14px 11px !important;
  }

  body.theme-sian3.is-form-open .form-section__head--schedule-edit {
    padding: 14px 14px 11px;
  }

  body.theme-sian3.is-form-open .form-section__title.form-section__title--strong {
    font-size: 14px !important;
  }

  body.theme-sian3.is-form-open .checkbox-list {
    gap: 6px;
  }

  body.theme-sian3.is-form-open .checkbox-list label {
    min-height: 34px;
    font-size: 12px;
  }

  body.theme-sian3.is-form-open .checkbox-list--days {
    gap: 6px;
    max-width: 100%;
  }

  body.theme-sian3.is-form-open .checkbox-list--days label {
    min-height: 36px;
    font-size: 12.5px;
  }

  body.theme-sian3.is-form-open .student-time-range {
    max-width: 100%;
    gap: 6px;
  }

  body.theme-sian3.is-form-open .student-time-range .s3-time__trigger {
    min-height: 40px;
    padding: 0 10px;
    font-size: 13px;
  }

  body.theme-sian3.is-form-open .form-inline-row {
    flex-wrap: wrap;
  }

  body.theme-sian3.is-form-open .form-inline-row .form-input {
    min-width: 0;
    flex: 1 1 120px;
  }

  body.theme-sian3.is-form-open .form-inline-row .s3-date,
  body.theme-sian3.is-form-open .form-inline-row .s3-time,
  body.theme-sian3.is-app-subroute .form-inline-row .s3-time {
    flex: 1 1 140px;
    min-width: 0;
    max-width: none !important;
  }

  body.theme-sian3.is-form-open .student-time-range {
    flex-wrap: nowrap;
  }

  body.theme-sian3.is-form-open .student-time-range .s3-time {
    flex: 1 1 0;
    min-width: 0;
  }

  body.theme-sian3.is-form-open .education-fields,
  body.theme-sian3.is-form-open .photo-upload {
    width: 100%;
  }

  body.theme-sian3.is-form-open .s3-time__trigger {
    cursor: pointer;
  }

  body.theme-sian3.is-form-open .s3-date__trigger,
  body.theme-sian3.is-app-subroute .s3-date__trigger {
    min-height: 44px;
  }

  body.theme-sian3 .s3-date__panel.is-portal .s3-date__day,
  body.theme-sian3 .s3-date__panel.is-sheet .s3-date__day {
    min-height: 40px;
    font-size: 13px;
  }

  body.theme-sian3 .s3-date__panel.is-portal .s3-date__month-btn,
  body.theme-sian3 .s3-date__panel.is-sheet .s3-date__month-btn {
    min-height: 48px !important;
  }

  body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-trigger,
  body.theme-sian3 .s3-date__panel.is-sheet .s3-date__ym-trigger {
    height: 40px;
    font-size: 14px;
  }

  body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-option,
  body.theme-sian3 .s3-date__panel.is-sheet .s3-date__ym-option {
    min-height: 42px;
    font-size: 14px;
  }

  body.theme-sian3 .s3-date__panel.is-portal .s3-date__ym-list,
  body.theme-sian3 .s3-date__panel.is-sheet .s3-date__ym-list {
    max-height: min(280px, 46vh);
  }

  body.theme-sian3 .s3-date__panel.is-portal .s3-date__nav,
  body.theme-sian3 .s3-date__panel.is-sheet .s3-date__nav {
    width: 40px;
    height: 40px;
  }

  body.theme-sian3 .s3-select__panel.is-portal .s3-select__option,
  body.theme-sian3 .s3-select__panel.is-sheet .s3-select__option {
    min-height: 48px;
    font-size: 14px;
  }

  body.theme-sian3 .s3-time__panel.is-portal .s3-time__option,
  body.theme-sian3 .s3-time__panel.is-sheet .s3-time__option {
    min-height: 44px;
    font-size: 15px;
  }

  body.theme-sian3.is-form-open .avail-schedule__times .s3-time,
  body.theme-sian3.is-app-subroute .avail-schedule__times .s3-time {
    flex: 1 1 0 !important;
    min-width: 0 !important;
    max-width: none !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews {
    padding-left: 12px !important;
    padding-right: 12px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__shell,
  body.theme-sian3.is-app-subroute .app-subview__shell--wide,
  body.theme-sian3.is-app-subroute .app-subview__shell--narrow {
    padding: 16px 14px !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews .txtTable table,
  body.theme-sian3.is-app-subroute .app-subviews .txtTable table tbody,
  body.theme-sian3.is-app-subroute .app-subviews .txtTable table tr,
  body.theme-sian3.is-app-subroute .app-subviews .txtTable table tr td {
    display: block;
    width: 100% !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews .txtTable col.inf_txt,
  body.theme-sian3.is-app-subroute .app-subviews .txtTable td.inf_1 {
    width: 100% !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__row {
    flex-direction: row !important;
    flex-wrap: wrap !important;
    align-items: center !important;
    justify-content: space-between !important;
    gap: 10px 12px !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__copy {
    flex: 1 1 160px !important;
    min-width: 0 !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__row .app-chip-btn,
  body.theme-sian3.is-app-subroute .history-manage .app-chip-btn--primary,
  body.theme-sian3.is-app-subroute .history-manage .app-chip-btn--ghost {
    width: auto !important;
    max-width: none !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    align-self: center !important;
    margin-left: auto !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 14px 1px !important;
    font-size: 12px !important;
    justify-content: center !important;
  }

  body.theme-sian3.is-app-subroute .resume-actions .app-chip-btn {
    width: 100% !important;
    max-width: none !important;
    justify-content: center !important;
  }

  body.theme-sian3.is-app-subroute .profile-actions {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    justify-content: flex-end !important;
    gap: 8px !important;
  }

  body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn,
  body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn--primary,
  body.theme-sian3.is-app-subroute .profile-actions .app-chip-btn--ghost {
    width: auto !important;
    min-width: 0 !important;
    flex: 0 0 auto !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 14px 1px !important;
    font-size: 12px !important;
    justify-content: center !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-brand__logo {
    height: 24px !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-close {
    padding: 10px 14px !important;
    font-size: 12px !important;
  }
}

@media (max-width: 480px) {
  body.theme-sian3.is-form-open .form-head__actions {
    grid-template-columns: 1fr 1fr !important;
    gap: 7px !important;
  }

  body.theme-sian3.is-form-open .form-head__actions .form-head__resume,
  body.theme-sian3.is-form-open .form-head__actions .btn-login {
    width: 100% !important;
    max-width: none !important;
    height: 42px !important;
    min-height: 42px !important;
    max-height: 42px !important;
    font-size: 12px !important;
    padding: 0 10px !important;
  }

  body.theme-sian3.is-form-open .aura-switch__track {
    width: 100% !important;
    max-width: none;
  }

  body.theme-sian3.is-form-open .form-shell__toolbar {
    margin-bottom: 12px !important;
    padding-bottom: 0 !important;
  }

  body.theme-sian3.is-form-open .split-layout__inner {
    padding-left: max(10px, env(safe-area-inset-left, 0px)) !important;
    padding-right: max(10px, env(safe-area-inset-right, 0px)) !important;
  }

  body.theme-sian3.is-form-open .form-head__title {
    font-size: clamp(1.25rem, 6.5vw, 1.55rem) !important;
  }

  body.theme-sian3.is-form-open .submit-area__row {
    flex-direction: column !important;
    align-items: center !important;
    justify-content: center !important;
  }

  body.theme-sian3.is-form-open .submit-btn,
  body.theme-sian3.is-form-open .submit-btn--preview {
    width: 100% !important;
    max-width: 280px !important;
    margin-left: auto !important;
    margin-right: auto !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__row {
    flex-wrap: nowrap !important;
    gap: 6px !important;
    padding: 6px 7px !important;
  }

  body.theme-sian3.is-form-open .checkbox-list--days {
    gap: 5px;
  }

  body.theme-sian3.is-form-open .checkbox-list--days label {
    min-height: 34px;
    font-size: 12px;
    padding: 0 4px;
  }

  body.theme-sian3.is-form-open .student-time-range {
    gap: 5px;
  }

  body.theme-sian3.is-form-open .student-time-range .form-inline-row__sep {
    font-size: 12px;
  }

  body.theme-sian3.is-form-open .student-time-range .s3-time__trigger {
    min-height: 38px;
    padding: 0 9px;
    font-size: 12.5px;
  }

  body.theme-sian3.is-form-open .student-time-range .s3-time__value {
    overflow: hidden;
    text-overflow: ellipsis;
    white-space: nowrap;
  }

  body.theme-sian3.is-form-open .avail-schedule__day {
    flex: 0 0 30px !important;
    min-width: 30px !important;
    width: 30px !important;
    min-height: 32px !important;
    height: 32px !important;
    font-size: 11.5px !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__times {
    flex-wrap: nowrap !important;
    width: auto !important;
    gap: 4px !important;
  }

  body.theme-sian3.is-form-open .avail-schedule__times .s3-time__trigger {
    min-height: 32px !important;
    height: 32px !important;
    padding: 0 6px !important;
    font-size: 12px !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews {
    padding-left: 10px !important;
    padding-right: 10px !important;
    padding-top: calc(var(--s3-header-h) + 20px) !important;
  }

  body.theme-sian3.is-app-subroute:has(#subview-history.is-active) .app-subviews,
  body.theme-sian3.is-app-subroute:has(#subview-resume.is-active) .app-subviews {
    padding-top: calc(var(--s3-header-h) + 24px) !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__shell,
  body.theme-sian3.is-app-subroute .app-subview__shell--wide,
  body.theme-sian3.is-app-subroute .app-subview__shell--narrow {
    padding: 14px 12px !important;
    border-radius: 16px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__head {
    margin-bottom: 14px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__eyebrow {
    font-size: 10px !important;
    margin-bottom: 6px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__title {
    font-size: clamp(1.2rem, 5.8vw, 1.4rem) !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__lead {
    margin-top: 6px !important;
    font-size: 12.5px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__back {
    padding: 7px 10px 7px 12px !important;
    font-size: 11.5px !important;
  }

  body.theme-sian3.is-app-subroute .stat-row {
    gap: 6px !important;
    margin-bottom: 10px !important;
  }

  body.theme-sian3.is-app-subroute .stat-box {
    padding: 11px 6px 10px !important;
    border-radius: 12px !important;
  }

  body.theme-sian3.is-app-subroute .stat-box__n {
    font-size: 1.1rem !important;
  }

  body.theme-sian3.is-app-subroute .stat-box__l {
    font-size: 10.5px !important;
    margin-top: 4px !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews .form-section,
  body.theme-sian3.is-app-subroute .app-subviews .app-panel {
    padding: 14px 12px 12px !important;
    margin-bottom: 8px !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews .form-section__title {
    margin-bottom: 10px !important;
    padding-bottom: 8px !important;
    font-size: 10.5px !important;
  }

  body.theme-sian3.is-app-subroute .form-section__title.form-section__title--strong {
    font-size: 14px !important;
  }

  body.theme-sian3.is-app-subroute .resume-panel .form-section__title,
  body.theme-sian3.is-app-subroute .profile-panel .form-section__title {
    margin: 0 !important;
    padding: 0 !important;
  }

  body.theme-sian3.is-app-subroute .resume-panel__head,
  body.theme-sian3.is-app-subroute .profile-panel__head {
    margin-bottom: 8px !important;
    padding-bottom: 7px !important;
  }

  body.theme-sian3.is-app-subroute .history-panel__hint {
    margin-bottom: 10px !important;
    font-size: 12px !important;
  }

  body.theme-sian3.is-app-subroute .history-card {
    padding: 12px !important;
  }

  body.theme-sian3.is-app-subroute .history-card__subject {
    font-size: 14px !important;
  }

  body.theme-sian3.is-app-subroute .history-card__meta {
    font-size: 11.5px !important;
    gap: 4px 8px !important;
  }

  body.theme-sian3.is-app-subroute .time-chip {
    font-size: 11.5px !important;
    padding: 4px 8px !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__copy strong {
    font-size: 13.5px !important;
  }

  body.theme-sian3.is-app-subroute .history-manage__copy p {
    font-size: 11.5px !important;
  }

  body.theme-sian3.is-app-subroute .app-login-shell {
    padding: 0 !important;
  }

  body.theme-sian3.is-app-subroute .app-login-card__body {
    padding: 18px 16px 20px !important;
  }

  body.theme-sian3.is-app-subroute .app-legal__text,
  body.theme-sian3.is-app-subroute .app-legal__heading {
    word-break: keep-all;
  }

  body.theme-sian3.is-app-subroute .resume-field__label {
    font-size: 12px !important;
  }

  html body.theme-sian3.is-app-subroute .app-subview--thanks .app-thanks-title {
    font-size: clamp(1.7rem, 9vw, 2.2rem) !important;
  }
}

/* Safari / older engines — backdrop & dvh fallbacks */
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  body.theme-sian3.is-form-open .form-section,
  body.theme-sian3.is-form-open .form-box,
  body.theme-sian3.is-app-subroute .app-login-card,
  body.theme-sian3 .s3-glass {
    backdrop-filter: none !important;
    -webkit-backdrop-filter: none !important;
    background: rgba(17, 17, 17, 0.96) !important;
  }
}

@supports not (height: 100dvh) {
  body.theme-sian3:not(.is-form-open),
  body.theme-sian3 .s3-landing.s3-snap,
  body.theme-sian3 .s3-panel {
    height: 100vh !important;
    min-height: 100vh !important;
  }
}

/* Final: flex-center labels without changing component size/radius */
body.theme-sian3 .submit-btn,
body.theme-sian3 .submit-btn--preview,
body.theme-sian3 .submit-btn--muted,
body.theme-sian3 .app-chip-btn,
body.theme-sian3 .app-login-btn,
body.theme-sian3 .btn-secondary,
body.theme-sian3 .btn-login,
body.theme-sian3 .form-head__resume,
body.theme-sian3 .header-back,
body.theme-sian3 .pledge-pad__clear,
body.theme-sian3 .app-thanks-cta,
body.theme-sian3 .s3-btn {
  display: inline-flex !important;
  align-items: center !important;
  justify-content: center !important;
  line-height: 1 !important;
}

body.theme-sian3 .header-back[hidden] {
  display: none !important;
}

body.theme-sian3 .s3-hero__actions .s3-btn .s3-btn__magnet {
  transform: translateY(-0.08em);
}

/* Tablet portrait (~768): history shell breathing room */
@media (min-width: 641px) and (max-width: 900px) {
  body.theme-sian3.is-app-subroute .app-subviews {
    padding-left: 20px !important;
    padding-right: 20px !important;
    padding-top: calc(var(--s3-header-h) + 24px) !important;
  }

  body.theme-sian3.is-app-subroute:has(#subview-history.is-active) .app-subviews,
  body.theme-sian3.is-app-subroute:has(#subview-resume.is-active) .app-subviews {
    padding-top: calc(var(--s3-header-h) + 28px) !important;
  }

  body.theme-sian3.is-app-subroute .app-subview__shell,
  body.theme-sian3.is-app-subroute .app-subview__shell--wide {
    padding: 24px 22px !important;
  }

  body.theme-sian3.is-app-subroute .stat-box {
    padding: 16px 12px 14px !important;
  }

  body.theme-sian3.is-app-subroute .stat-box__n {
    font-size: 1.35rem !important;
  }

  body.theme-sian3.is-app-subroute .app-subviews .form-section,
  body.theme-sian3.is-app-subroute .app-subviews .app-panel {
    padding: 18px 18px 16px !important;
  }

  body.theme-sian3.is-app-subroute .history-card {
    padding: 16px 18px !important;
  }

  /* Keep manage actions as compact pills beside copy (not full-bleed) */
  body.theme-sian3.is-app-subroute .app-subview--history .history-manage__row {
    flex-direction: row !important;
    flex-wrap: nowrap !important;
    align-items: center !important;
    gap: 16px !important;
  }

  body.theme-sian3.is-app-subroute .app-subview--history .history-manage__row .app-chip-btn,
  body.theme-sian3.is-app-subroute .app-subview--history .history-manage .app-chip-btn--primary,
  body.theme-sian3.is-app-subroute .app-subview--history .history-manage .app-chip-btn--ghost {
    width: auto !important;
    min-width: 0 !important;
    height: 34px !important;
    min-height: 34px !important;
    max-height: 34px !important;
    padding: 0 14px 1px !important;
    font-size: 12px !important;
  }
}

/* Mobile Korean readability — avoid mid-word wraps / clipped labels */
@media (max-width: 720px) {
  body.theme-sian3.is-form-open,
  body.theme-sian3.is-app-subroute,
  body.theme-sian3.is-pledge-page,
  body.theme-sian3.is-contract-page,
  body.theme-sian3.is-rules-page {
    -webkit-text-size-adjust: 100%;
    text-size-adjust: 100%;
  }

  body.theme-sian3 .s3-roles__title,
  body.theme-sian3 .s3-roles__desc,
  body.theme-sian3 .s3-role h3,
  body.theme-sian3 .s3-role p,
  body.theme-sian3.is-form-open .form-head__title,
  body.theme-sian3.is-form-open .consent-block,
  body.theme-sian3.is-form-open .notice-box p,
  body.theme-sian3.is-app-subroute .app-login-card,
  body.theme-sian3.is-app-subroute .resume-summary {
    word-break: keep-all;
    overflow-wrap: break-word;
  }

  body.theme-sian3.is-form-open .s3-date__trigger,
  body.theme-sian3.is-app-subroute .s3-date__trigger {
    padding-left: 12px;
    padding-right: 10px;
    gap: 8px;
  }

  body.theme-sian3.is-form-open .s3-date__icon,
  body.theme-sian3.is-app-subroute .s3-date__icon {
    width: 26px;
    height: 26px;
  }
}
