:root {
  --bg-top: #d8eef0;
  --bg-bottom: #edf5f3;
  --page-surface: rgba(255, 255, 255, 0.92);
  --page-border: rgba(255, 255, 255, 0.72);
  --card-shadow: 0 28px 70px rgba(31, 64, 72, 0.14);
  --panel-shadow: 0 24px 50px rgba(24, 54, 61, 0.16);
  --text-main: #20343a;
  --text-secondary: #58737a;
  --text-muted: #7d9399;
  --brand-strong: #17616c;
  --brand-main: #2f7c88;
  --brand-soft: #e3f1f3;
  --brand-soft-2: #f4fafb;
  --line-soft: #d9e7e9;
  --line-mid: #c5d8dc;
  --line-strong: #9ab9bf;
  --danger: #c94c4c;
  --warning-bg: rgba(255, 247, 232, 0.9);
  --warning-border: rgba(244, 182, 72, 0.28);
  --warning-text: #81581b;
  --radius-xl: 28px;
  --radius-lg: 20px;
  --radius-md: 14px;
  --radius-sm: 10px;
}

* {
  box-sizing: border-box;
}

html {
  min-height: 100%;
}

body {
  margin: 0;
  min-height: 100vh;
  font-family: "Avenir Next", "Segoe UI", "PingFang SC", "Microsoft YaHei", sans-serif;
  color: var(--text-main);
  background:
    radial-gradient(circle at top left, rgba(93, 170, 186, 0.22), transparent 28%),
    radial-gradient(circle at 85% 18%, rgba(255, 204, 142, 0.22), transparent 24%),
    linear-gradient(180deg, var(--bg-top) 0%, var(--bg-bottom) 50%, #f8fbfb 100%);
  position: relative;
}

.site-top,
.register-page,
.site-footer {
  position: relative;
  z-index: 1;
}

.site-top {
  padding: 28px 0 0;
  background: transparent;
  border-top: none;
}

.site-top-inner {
  width: min(1200px, calc(100vw - 24px));
  margin: 0 auto;
  min-height: 76px;
  padding: 0 34px;
  display: flex;
  align-items: center;
  justify-content: space-between;
}

.site-close-btn {
  display: none;
  width: 40px;
  height: 40px;
  border: none;
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  color: var(--text-secondary);
  align-items: center;
  justify-content: center;
  font-size: 24px;
  line-height: 1;
  cursor: pointer;
}

.brand {
  display: flex;
  align-items: center;
  gap: 12px;
}

.brand-logo {
  font-size: 18px;
  color: var(--brand-strong);
  font-weight: 700;
}

.brand-logo img {
  display: block;
  height: 56px;
  width: auto;
  filter: drop-shadow(0 8px 16px rgba(27, 86, 96, 0.08));
}

.regional-site-header-content {
  flex: 1;
  min-width: 0;
}

.regional-site-title {
  position: relative;
  max-width: 100%;
  margin: 0;
  padding-bottom: 14px;
  color: var(--brand-strong);
  font-size: 26px;
  font-weight: 700;
  line-height: 1.35;
  letter-spacing: 0.04em;
  overflow-wrap: anywhere;
  word-break: break-word;
}

.regional-site-title::after {
  content: "";
  position: absolute;
  left: 0;
  bottom: 0;
  width: 56px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-main), #8dc0c7);
}

.brand-sub {
  font-size: 12px;
  color: var(--text-muted);
}

.brand-slogan {
  font-size: 14px;
  color: var(--text-secondary);
}

.register-page {
  width: min(1200px, calc(100vw - 24px));
  margin: 8px auto 0;
  padding: 26px 34px 24px;
  background: var(--page-surface);
  border: 1px solid var(--page-border);
  border-radius: var(--radius-xl);
  box-shadow: var(--card-shadow);
  backdrop-filter: blur(18px);
  overflow: visible;
}

.step-summary,
.mobile-bottom-nav {
  display: none;
}

.welcome-block {
  margin-bottom: 18px;
}

.page-title {
  position: relative;
  margin: 0 0 12px;
  font-size: 28px;
  line-height: 1.15;
  font-weight: 700;
  letter-spacing: 0.02em;
}

.page-title::after {
  content: "";
  display: block;
  width: 56px;
  height: 4px;
  margin-top: 10px;
  border-radius: 999px;
  background: linear-gradient(90deg, var(--brand-main), #8dc0c7);
}

.page-subtitle {
  margin: 0;
  max-width: 520px;
  font-size: 14px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.notice-box {
  position: relative;
  display: flex;
  align-items: flex-start;
  gap: 12px;
  padding: 14px 16px;
  margin-bottom: 18px;
  background: var(--warning-bg);
  border: 1px solid var(--warning-border);
  border-radius: 18px;
  box-shadow: 0 12px 28px rgba(152, 117, 45, 0.08);
  font-size: 13px;
  line-height: 1.7;
  color: var(--warning-text);
}

.notice-box p {
  margin: 0;
}

.notice-box strong {
  color: #9b6818;
}

.notice-icon-wrap {
  flex: none;
}

.notice-content {
  min-width: 0;
}

.notice-title {
  font-size: 14px;
  font-weight: 700;
  color: #9b6818;
}

.notice-desc {
  margin-top: 4px;
}

.notice-icon {
  flex: none;
  display: inline-flex;
  width: 22px;
  height: 22px;
  margin-top: 2px;
  border-radius: 50%;
  background: linear-gradient(180deg, #f5bc5e 0%, #ee9a1e 100%);
  color: #fff;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 700;
  box-shadow: 0 8px 18px rgba(238, 154, 30, 0.24);
}

.stepper {
  --progress: 0%;
  position: relative;
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 10px;
  margin: 6px 0 18px;
  padding: 12px 16px;
  background: transparent;
  border: none;
  border-radius: 0;
}

.step-line {
  position: absolute;
  top: 28px;
  left: 108px;
  right: 108px;
  height: 4px;
  border-radius: 999px;
  background: linear-gradient(90deg, rgba(190, 209, 214, 0.7), rgba(210, 224, 228, 0.9));
}

.step-line::after {
  content: "";
  display: block;
  height: 100%;
  width: var(--progress);
  border-radius: inherit;
  background: linear-gradient(90deg, #2d8a57, #1f6f46);
  transition: width 0.28s ease;
}

.step-item {
  position: relative;
  z-index: 1;
  display: flex;
  flex-direction: column;
  align-items: center;
  text-align: center;
  cursor: pointer;
}

.step-dot {
  width: 32px;
  height: 32px;
  border-radius: 50%;
  background: #b4c7cb;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 14px;
  font-weight: 700;
  box-shadow: 0 10px 18px rgba(119, 142, 149, 0.18);
  transition: transform 0.2s ease, background 0.2s ease, box-shadow 0.2s ease;
}

.step-text {
  margin-top: 8px;
  font-size: 13px;
  color: var(--text-secondary);
  font-weight: 600;
}

.step-item.active .step-dot,
.step-item.done .step-dot {
  background: linear-gradient(180deg, #339564 0%, #1f6f46 100%);
  box-shadow: 0 14px 24px rgba(31, 111, 70, 0.24);
  transform: translateY(-1px);
}

.step-item.active .step-text,
.step-item.done .step-text {
  color: #1f6f46;
}

.step-item.is-disabled {
  cursor: default;
}

.step-panel {
  display: none;
  animation: panelFade 0.28s ease;
}

.step-panel.active {
  display: block;
}

.step-panel[data-panel-step="2"].active {
  display: flex;
  flex-direction: column;
}

.step-panel[data-panel-step="2"] .register-form {
  min-height: 430px;
  align-content: start;
}

.step-panel[data-panel-step="2"] .footer-actions {
  margin-top: 12px;
  padding-top: 0;
}

.step-panel[data-panel-step="3"].active {
  display: flex;
  flex-direction: column;
  min-height: 470px;
  justify-content: center;
}

.step-panel[data-panel-step="3"] .footer-actions {
  margin-top: 18px;
  padding-top: 0;
}

.section-title {
  margin: 0 0 14px;
  font-size: 18px;
  line-height: 1.3;
  font-weight: 700;
}

.register-form {
  width: 100%;
  padding: 18px 20px;
  background: transparent;
  border: none;
  border-radius: 0;
  box-shadow: none;
  overflow: visible;
}

.form-row {
  display: grid;
  grid-template-columns: 164px minmax(0, 420px) minmax(0, 1fr);
  align-items: center;
  column-gap: 12px;
  margin-bottom: 0;
  padding: 7px 0;
}

.form-row.is-hidden {
  display: none;
}

.form-row,
.inline-controls,
.picker,
.searchable-picker {
  overflow: visible;
}

.form-row label {
  justify-self: end;
  font-size: 14px;
  font-weight: 600;
  color: var(--text-main);
}

.form-row label span {
  color: var(--danger);
}

.form-row input,
.form-row select,
.trigger {
  width: 100%;
  min-width: 0;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  transition: border-color 0.2s ease, box-shadow 0.2s ease, transform 0.2s ease;
}

.form-row select {
  appearance: none;
  -webkit-appearance: none;
  -moz-appearance: none;
  padding-right: 42px;
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 0.98) 0%, rgba(248, 252, 252, 0.98) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25 7 9l4-3.75' fill='none' stroke='%23839aa0' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-repeat: no-repeat, no-repeat;
  background-position: 0 0, right 14px center;
  background-size: auto, 14px 14px;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.8);
  cursor: pointer;
}

.form-row select:hover {
  border-color: rgba(133, 177, 185, 0.9);
  background-image:
    linear-gradient(180deg, rgba(255, 255, 255, 1) 0%, rgba(243, 250, 250, 1) 100%),
    url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='14' height='14' viewBox='0 0 14 14'%3E%3Cpath d='M3 5.25 7 9l4-3.75' fill='none' stroke='%232b737c' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
}

.form-row select option {
  color: var(--text-main);
  background: #fff;
}

.form-row input::placeholder {
  color: #9cb0b5;
}

.password-field {
  position: relative;
  width: 100%;
}

.password-field input {
  padding-right: 44px;
}

.password-field input::-ms-reveal,
.password-field input::-ms-clear {
  display: none;
}

.password-toggle {
  position: absolute;
  top: 50%;
  right: 12px;
  width: 24px;
  height: 24px;
  padding: 0;
  margin: 0;
  border: none;
  background: transparent;
  color: #91a5aa;
  cursor: pointer;
  transform: translateY(-50%);
  transition: color 0.18s ease, transform 0.18s ease;
}

.password-toggle:hover,
.password-toggle.is-visible {
  color: var(--brand-strong);
}

.password-toggle:focus {
  outline: none;
}

.password-toggle svg {
  display: block;
  width: 100%;
  height: 100%;
  fill: none;
  stroke: currentColor;
  stroke-width: 1.7;
  stroke-linecap: round;
  stroke-linejoin: round;
}

.password-toggle::after {
  content: "";
  position: absolute;
  left: 3px;
  right: 3px;
  top: 50%;
  height: 1.7px;
  border-radius: 999px;
  background: currentColor;
  transform: translateY(-50%) rotate(-32deg) scaleX(0);
  transform-origin: center;
  transition: transform 0.18s ease;
}

.password-toggle.is-visible::after {
  transform: translateY(-50%) rotate(-32deg) scaleX(1);
}

.form-row input:focus,
.form-row select:focus,
.trigger.open,
.trigger:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(67, 143, 154, 0.12);
}

.form-row.is-error input,
.form-row.is-error select,
.form-row.is-error .trigger,
.agreement-list.is-error {
  border-color: var(--danger);
  box-shadow: 0 0 0 4px rgba(201, 76, 76, 0.12);
}

.form-row.is-error .radio-option span {
  border-color: var(--danger);
  color: var(--danger);
}

.form-row .hint {
  display: none !important;
  font-size: 12px;
  line-height: 1.5;
  color: var(--text-muted);
}

.field-error {
  display: block;
  grid-column: 2 / 4;
  width: 100%;
  min-width: 0;
  max-height: 0;
  margin-top: 0;
  font-size: 12px;
  line-height: 16px;
  white-space: normal !important;
  overflow: hidden;
  text-overflow: initial !important;
  overflow-wrap: anywhere !important;
  word-break: break-all;
  opacity: 0;
  transition: max-height 0.18s ease, margin-top 0.18s ease, opacity 0.18s ease, color 0.18s ease;
}

.field-error.show {
  display: block;
  max-height: 200px;
  margin-top: 2px;
  overflow: visible;
  opacity: 1;
}

.field-error.is-help {
  color: #91a3a8;
}

.field-error.is-error {
  color: #c95d5d;
}

.field-error a {
  color: #3c84a0;
  text-decoration: underline;
}

.field-error.show,
.field-error.show * {
  white-space: normal !important;
  text-overflow: initial !important;
  overflow-wrap: anywhere !important;
  word-break: break-all;
}

.agreement-error {
  display: none;
  grid-column: 2 / 4;
  margin-top: 6px;
  font-size: 12px;
  line-height: 1.5;
  color: var(--danger);
}

.agreement-error.show {
  display: block;
}

.form-row[data-field="password"] {
  padding-bottom: 6px;
}

.form-row[data-field="password"] .password-field {
  margin-bottom: 2px;
}

.form-row[data-field="password"] .hint,
.form-row[data-field="confirmPassword"] .hint {
  line-height: 1.6;
}

.form-row[data-field="password"] .hint {
  margin-top: 8px;
}

.strength-row {
  align-items: center;
  padding-top: 0;
  padding-bottom: 6px;
}

.strength-row .strength-bars {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 0;
  width: 100%;
  max-width: 228px;
  align-items: center;
  border-radius: 999px;
  overflow: hidden;
  background: #e6ecee;
  border: 1px solid #dde7e9;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.78);
}

.strength-row .level {
  display: block;
  height: 12px;
  background: #e6ecee;
  font-size: 0;
  line-height: 0;
  color: transparent;
  text-indent: -9999px;
  transition: background-color 0.2s ease, box-shadow 0.2s ease;
}

.strength-row .level + .level {
  border-left: 1px solid rgba(255, 255, 255, 0.85);
}

.strength-row .level:first-child {
  border-radius: 999px 0 0 999px;
}

.strength-row .level:last-child {
  border-radius: 0 999px 999px 0;
}

.strength-row .level.is-active[data-level="weak"] {
  background: linear-gradient(180deg, #ef6a66 0%, #dd4f49 100%);
  box-shadow: inset 0 0 0 1px rgba(199, 65, 58, 0.12);
}

.strength-row .level.is-active[data-level="medium"] {
  background: linear-gradient(180deg, #f0b45d 0%, #dd9636 100%);
  box-shadow: inset 0 0 0 1px rgba(201, 129, 44, 0.12);
}

.strength-row .level.is-active[data-level="strong"] {
  background: linear-gradient(180deg, #4db17b 0%, #2f8757 100%);
  box-shadow: inset 0 0 0 1px rgba(42, 120, 76, 0.12);
}

.sms-row {
  grid-template-columns: 164px minmax(0, 250px) auto;
}

.line-btn {
  height: 42px;
  padding: 0 16px;
  border: 1px solid rgba(46, 122, 134, 0.22);
  border-radius: 12px;
  background: linear-gradient(180deg, #f8fcfc 0%, #edf6f7 100%);
  color: var(--brand-strong);
  font-size: 13px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease;
}

.line-btn:hover,
.main-btn:hover,
.unit-county-btn:hover {
  transform: translateY(-1px);
}

.line-btn:hover {
  border-color: rgba(46, 122, 134, 0.38);
  box-shadow: 0 12px 18px rgba(50, 114, 124, 0.12);
}

.line-btn:disabled,
.line-btn.is-disabled {
  cursor: not-allowed;
  color: #92a7ac;
  border-color: rgba(146, 167, 172, 0.26);
  background: linear-gradient(180deg, #f6f8f8 0%, #eef2f2 100%);
  box-shadow: none;
  transform: none;
}

.agreement-list {
  margin: 14px 0 0;
  display: flex;
  flex-direction: column;
  justify-content: center;
  min-height: 92px;
  padding: 18px 20px 12px;
  background: rgba(245, 250, 250, 0.75);
  border: 1px solid rgba(217, 231, 233, 0.92);
  border-radius: 18px;
  box-sizing: border-box;
}

.agreement-list label {
  display: flex;
  align-items: flex-start;
  gap: 8px;
  margin-bottom: 8px;
  font-size: 13px;
  line-height: 1.55;
  color: var(--text-secondary);
}

.agreement-text {
  flex: 1;
  min-width: 0;
  display: block;
}

.agreement-list input {
  flex: none;
  width: 16px;
  height: 16px;
  margin: 2px 0 0;
}

.agreement-list a {
  color: var(--brand-strong);
  text-decoration: none;
  font-weight: 600;
}

.agreement-list a:hover {
  text-decoration: underline;
}

.agreement-error {
  grid-column: auto;
  margin-top: 2px;
}

.footer-actions {
  margin-top: 16px;
  text-align: center;
}

.main-btn {
  min-width: 170px;
  height: 42px;
  padding: 0 24px;
  border: none;
  border-radius: 999px;
  background: linear-gradient(135deg, var(--brand-main) 0%, #3f909c 45%, #5baab5 100%);
  color: #fff;
  font-size: 14px;
  font-weight: 700;
  letter-spacing: 0.03em;
  cursor: pointer;
  box-shadow: 0 16px 26px rgba(47, 124, 136, 0.24);
  transition: transform 0.2s ease, box-shadow 0.2s ease, filter 0.2s ease;
}

.main-btn:hover {
  filter: saturate(1.05);
  box-shadow: 0 18px 32px rgba(47, 124, 136, 0.28);
}

.inline-controls {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 10px;
}

.radio-group {
  display: flex;
  align-items: center;
  gap: 10px;
  min-height: 40px;
}

.gender-row {
  align-items: center;
}

.radio-option {
  position: relative;
  display: inline-block;
  cursor: pointer;
}

.radio-option input[type="radio"] {
  position: absolute;
  opacity: 0;
  pointer-events: none;
}

.radio-option input[type="radio"]:focus {
  outline: none;
}

.form-row .radio-option span {
  min-width: 68px;
  height: 32px;
  padding: 0 16px;
  border: 1px solid #c9d7df;
  border-radius: 999px;
  background: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 12px;
  font-weight: 600;
  color: #334155;
  transition: border-color 0.18s ease, background 0.18s ease, color 0.18s ease, box-shadow 0.18s ease, transform 0.18s ease;
}

.form-row .radio-option:hover span {
  border-color: #7fafbd;
  background: #f5fafb;
  color: #334155;
}

.form-row .radio-option input[type="radio"]:checked + span {
  border-color: #5f97a8;
  background: #5f97a8;
  color: #fff;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.14);
}

.radio-option input[type="radio"]:focus + span {
  box-shadow: 0 0 0 3px rgba(95, 151, 168, 0.14);
}

.form-row .radio-option input[type="radio"]:checked:focus + span {
  box-shadow: 0 0 0 3px rgba(95, 151, 168, 0.16), inset 0 1px 0 rgba(255, 255, 255, 0.16);
}

.unit-select-wrap {
  display: grid;
  grid-template-columns: 1fr;
  gap: 8px;
}

.unit-native-select {
  display: none;
}

.searchable-native-select {
  display: none;
}

.searchable-picker {
  width: 100%;
  position: relative;
}

.searchable-picker.is-open {
  z-index: 140;
}

.searchable-picker.open-up .panel {
  top: auto;
  bottom: calc(100% - 1px);
  border-radius: 18px 18px 0 0;
}

.searchable-panel {
  z-index: 70;
}

.searchable-picker.is-open .searchable-trigger,
.picker > .trigger.open {
  position: relative;
  z-index: 71;
  border-color: rgba(184, 208, 213, 0.98);
  border-bottom-color: transparent;
  border-radius: 12px 12px 0 0;
  background: linear-gradient(180deg, #ffffff 0%, #f7fbfb 100%);
}

.searchable-picker.open-up.is-open .searchable-trigger {
  border-top-color: transparent;
  border-bottom-color: rgba(184, 208, 213, 0.98);
  border-radius: 0 0 12px 12px;
}

.searchable-picker.is-open .searchable-panel,
.picker > .trigger.open + .panel {
  top: calc(100% - 1px);
  min-width: 100%;
  z-index: 70;
  border-color: rgba(184, 208, 213, 0.98);
  border-radius: 0 0 18px 18px;
  box-shadow: 0 18px 34px rgba(24, 56, 63, 0.14), 0 6px 14px rgba(56, 118, 129, 0.08);
}

.searchable-picker.open-up.is-open .searchable-panel {
  top: auto;
  bottom: calc(100% - 1px);
  border-radius: 18px 18px 0 0;
}

.searchable-panel.is-disabled .search-row {
  display: none;
}

.searchable-option-list {
  min-height: 52px;
}


.area-row {
  position: relative;
}

.picker {
  position: relative;
}

.trigger {
  display: flex;
  align-items: center;
  justify-content: space-between;
  cursor: pointer;
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.82);
}

.value {
  font-size: 14px;
  color: #8ea1a7;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  padding-right: 16px;
}

.value.active {
  color: var(--text-main);
}

.arrow {
  flex: none;
  font-size: 14px;
  color: #8fa3a8;
  transform: rotate(180deg);
}

.panel {
  position: absolute;
  left: 0;
  right: 0;
  top: calc(100% - 1px);
  z-index: 60;
  border: 1px solid rgba(184, 208, 213, 0.98);
  border-radius: 0 0 18px 18px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.99) 0%, rgba(248, 252, 252, 0.98) 100%);
  box-shadow: 0 18px 34px rgba(24, 56, 63, 0.14), 0 6px 14px rgba(56, 118, 129, 0.08);
  display: none;
  overflow: hidden;
  backdrop-filter: blur(14px);
}

.unit-panel {
  z-index: 65;
}

.search-row {
  padding: 8px 10px 6px;
  border-bottom: none;
  background: linear-gradient(180deg, rgba(250, 253, 253, 0.98) 0%, rgba(245, 250, 250, 0.98) 100%);
}

.search-row input {
  width: 100%;
  height: 36px;
  border: 1px solid rgba(206, 223, 226, 0.95);
  border-radius: 12px;
  padding: 0 10px;
  font-size: 13px;
  color: var(--text-main);
  background: linear-gradient(180deg, #ffffff 0%, #fbfdfd 100%);
  box-shadow: inset 0 1px 0 rgba(255, 255, 255, 0.84);
}

.search-row input::placeholder {
  font-size: 13px;
  color: #9cb0b5;
}

.search-row input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(67, 143, 154, 0.12);
}

.search-result-section {
  display: none;
  padding: 12px;
  border-bottom: none;
  background: rgba(246, 250, 250, 0.82);
}

.section-head {
  margin-bottom: 8px;
  font-size: 12px;
  font-weight: 700;
  color: var(--text-muted);
  letter-spacing: 0.04em;
}

.search-result-list {
  list-style: none;
  margin: 0;
  padding: 0;
  max-height: 220px;
  overflow: auto;
}

.search-item {
  border: none;
  border-radius: 10px;
  padding: 6px 10px;
  cursor: pointer;
  background: rgba(255, 255, 255, 0.56);
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.search-item + .search-item {
  margin-top: 4px;
}

.search-item:hover {
  background: rgba(234, 244, 246, 0.86);
  transform: translateX(1px);
}

.search-path {
  font-size: 14px;
  line-height: 1.35;
  color: var(--text-main);
}

.search-meta {
  margin-top: 2px;
  font-size: 12px;
  color: var(--text-muted);
}

.tabs {
  display: flex;
  gap: 5px;
  padding: 6px 10px 4px;
  background: linear-gradient(180deg, rgba(248, 252, 252, 0.98) 0%, rgba(243, 249, 249, 0.98) 100%);
  border-bottom: none;
}

.tab {
  border: 1px solid rgba(221, 233, 235, 0.72);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.75);
  padding: 5px 11px;
  font-size: 11px;
  font-weight: 600;
  color: var(--text-secondary);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, border-color 0.18s ease, box-shadow 0.18s ease;
}

.tab.active {
  color: var(--brand-strong);
  border-color: rgba(131, 186, 196, 0.95);
  background: linear-gradient(180deg, rgba(234, 246, 248, 1) 0%, rgba(222, 240, 243, 1) 100%);
  box-shadow: 0 8px 16px rgba(82, 145, 155, 0.12);
}

.pane {
  display: none;
  max-height: 280px;
  overflow: auto;
}

.pane.active {
  display: block;
}

.pane > .hint {
  padding: 6px 12px 0;
  font-size: 11px;
  color: var(--text-muted);
}

.alphabet-list,
.name-grid {
  padding: 6px 10px 8px;
}

.letter-row {
  display: grid;
  grid-template-columns: 22px 1fr;
  gap: 8px;
  padding: 3px 0;
}

.letter-label {
  font-size: 11px;
  font-weight: 700;
  color: var(--brand-strong);
  line-height: 28px;
}

.letter-items,
.name-grid {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
}

.name-btn,
.unit-item {
  border: none;
  border-radius: 10px;
  background: rgba(255, 255, 255, 0.58);
  color: var(--text-main);
  cursor: pointer;
  transition: background 0.18s ease, color 0.18s ease, transform 0.18s ease;
}

.name-btn {
  padding: 3px 8px;
  min-height: 26px;
  line-height: 18px;
  font-size: 13px;
}

.name-btn:hover,
.unit-item:hover {
  background: rgba(234, 244, 246, 0.9);
  color: var(--brand-strong);
  transform: translateY(-1px);
}

.name-btn.active,
.unit-item.active {
  background: linear-gradient(135deg, #2f7c88 0%, #4d9faa 100%);
  color: #fff;
  box-shadow: none;
}

.unit-list {
  max-height: 250px;
  overflow: auto;
  padding: 8px 10px 10px;
  display: grid;
  grid-template-columns: 1fr;
  gap: 4px;
  background: linear-gradient(180deg, rgba(255, 255, 255, 0.94) 0%, rgba(249, 252, 252, 0.96) 100%);
}

.unit-item {
  width: 100%;
  text-align: left;
  line-height: 1.35;
  padding: 7px 10px;
  font-size: 14px;
  font-weight: 500;
}

.unit-list-status {
  padding: 6px 4px 2px;
  font-size: 12px;
  line-height: 1.4;
  text-align: center;
  color: var(--text-muted);
}

.unit-list-status.is-loading {
  color: var(--brand-strong);
}

.unit-list-status.is-more {
  color: var(--text-secondary);
}

.unit-panel-action {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 2px;
  padding: 9px 12px 10px;
  border-top: 1px solid rgba(220, 233, 235, 0.96);
  background: linear-gradient(180deg, rgba(247, 251, 251, 0.96) 0%, rgba(241, 248, 249, 0.96) 100%);
  font-size: 11px;
  line-height: 1.35;
  color: var(--text-secondary);
}

.unit-panel-action a {
  color: var(--brand-strong);
  font-weight: 700;
  text-decoration: none;
}

.unit-panel-action a:hover {
  text-decoration: underline;
}

.unit-panel-action.is-hidden {
  display: none;
}

.empty {
    padding: 4px 2px;
  color: var(--text-muted);
    font-size: 11px;
  }

.success-panel {
  text-align: center;
  padding: 18px 0 6px;
}

.success-icon {
  width: 92px;
  height: 92px;
  margin: 0 auto 12px;
  border-radius: 28px;
  background: linear-gradient(135deg, #4a9ca8 0%, #7dc1c9 100%);
  color: #fff;
  display: flex;
  align-items: center;
  justify-content: center;
  font-size: 40px;
  font-weight: 700;
  box-shadow: 0 22px 40px rgba(66, 151, 163, 0.24);
}

.success-panel h2 {
  margin: 0 0 10px;
  font-size: 24px;
  line-height: 1.3;
}

.user-line {
  margin: 0;
  font-size: 18px;
  color: var(--text-secondary);
}

.user-line span {
  color: var(--brand-strong);
  font-weight: 700;
}

.success-redirect-tip {
  margin: 16px auto 0;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  gap: 6px;
  min-height: 40px;
  padding: 10px 18px;
  border-radius: 999px;
  background: rgba(47, 124, 136, 0.1);
  color: var(--brand-strong);
  font-size: 15px;
  line-height: 1.5;
}

.success-redirect-tip span {
  font-size: 20px;
  font-weight: 700;
}

.red-tip {
  margin: 8px 0 0;
  color: #bc5548;
  font-size: 13px;
}

.gray-tip {
  margin: 8px 0 0;
  color: var(--text-muted);
  font-size: 13px;
}

.unit-county-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 34, 38, 0.44);
  z-index: 999;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.unit-county-modal.show {
  display: flex;
}

.unit-county-dialog {
  width: min(460px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 229, 232, 0.95);
  border-radius: 22px;
  box-shadow: 0 28px 50px rgba(17, 37, 42, 0.2);
  padding: 22px 22px 18px;
}

.unit-county-title {
  font-size: 19px;
  line-height: 1.3;
  color: var(--text-main);
  font-weight: 700;
  margin-bottom: 10px;
}

.unit-county-message {
  font-size: 14px;
  line-height: 1.8;
  color: var(--text-secondary);
  white-space: pre-line;
}

.unit-county-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.unit-county-btn {
  min-width: 110px;
  height: 42px;
  padding: 0 18px;
  border: 1px solid rgba(203, 218, 221, 0.95);
  border-radius: 12px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
  transition: transform 0.2s ease, box-shadow 0.2s ease, border-color 0.2s ease, background 0.2s ease;
}

.unit-county-btn.cancel:hover {
  border-color: rgba(181, 202, 207, 0.95);
}

.unit-county-btn.confirm {
  border-color: var(--brand-main);
  background: linear-gradient(135deg, var(--brand-main) 0%, #4f9ca8 100%);
  color: #fff;
  box-shadow: 0 14px 24px rgba(47, 124, 136, 0.22);
}

.add-unit-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 34, 38, 0.42);
  z-index: 1000;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.add-unit-modal.show {
  display: flex;
}

.add-unit-dialog {
  width: min(520px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 229, 232, 0.95);
  border-radius: 22px;
  box-shadow: 0 28px 50px rgba(17, 37, 42, 0.2);
  padding: 22px 22px 18px;
}

.add-unit-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-main);
  font-weight: 700;
}

.add-unit-desc {
  margin: 0 0 16px;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.add-unit-field {
  margin-bottom: 12px;
}

.add-unit-field label {
  display: block;
  margin-bottom: 8px;
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.add-unit-field input {
  width: 100%;
  height: 42px;
  border: 1px solid var(--line-soft);
  border-radius: 12px;
  padding: 0 14px;
  font-size: 13px;
  color: var(--text-main);
  background: #fff;
}

.add-unit-field input:focus {
  outline: none;
  border-color: var(--line-strong);
  box-shadow: 0 0 0 4px rgba(67, 143, 154, 0.12);
}

.add-unit-tip {
  margin: 0;
  font-size: 12px;
  line-height: 1.6;
  color: var(--text-muted);
}

.add-unit-upload {
  margin-top: 14px;
}

.add-unit-upload-title {
  font-size: 13px;
  font-weight: 600;
  color: var(--text-main);
}

.add-unit-upload-subtitle {
  margin-top: 4px;
  font-size: 12px;
  line-height: 1.6;
  color: var(--danger);
}

.add-unit-upload-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 14px 0 10px;
}

.add-unit-upload-btn {
  width: 86px;
  height: 86px;
  border: 1px dashed rgba(135, 175, 183, 0.9);
  border-radius: 16px;
  background: rgba(247, 251, 252, 0.94);
  display: flex;
  flex-direction: column;
  align-items: center;
  justify-content: center;
  gap: 4px;
  color: var(--brand-strong);
  font-size: 12px;
  font-weight: 600;
  cursor: pointer;
  text-decoration: none;
}

.add-unit-upload-btn:hover {
  border-color: rgba(90, 149, 164, 0.95);
  background: rgba(240, 248, 249, 0.98);
}

.add-unit-upload-plus {
  font-size: 26px;
  line-height: 1;
  font-weight: 400;
}

.add-unit-upload input[type="file"] {
  display: none;
}

.add-unit-upload-preview {
  width: 86px;
  height: 86px;
  border: 1px solid rgba(214, 229, 232, 0.95);
  border-radius: 16px;
  overflow: hidden;
  display: none;
  background: #fff;
}

.add-unit-upload-preview.show {
  display: block;
}

.add-unit-upload-preview img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: cover;
}

.add-unit-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.add-unit-btn {
  min-width: 108px;
  height: 40px;
  padding: 0 16px;
  border: 1px solid rgba(203, 218, 221, 0.95);
  border-radius: 12px;
  background: #fff;
  color: var(--text-secondary);
  font-size: 14px;
  font-weight: 600;
  cursor: pointer;
}

.add-unit-btn.confirm {
  border-color: var(--brand-main);
  background: linear-gradient(135deg, var(--brand-main) 0%, #4f9ca8 100%);
  color: #fff;
}

.unit-exists-modal {
  position: fixed;
  inset: 0;
  background: rgba(18, 34, 38, 0.42);
  z-index: 1001;
  display: none;
  align-items: center;
  justify-content: center;
  padding: 20px;
  backdrop-filter: blur(4px);
}

.unit-exists-modal.show {
  display: flex;
}

.unit-exists-dialog {
  width: min(500px, 100%);
  background: rgba(255, 255, 255, 0.98);
  border: 1px solid rgba(215, 229, 232, 0.95);
  border-radius: 22px;
  box-shadow: 0 28px 50px rgba(17, 37, 42, 0.2);
  padding: 22px 22px 18px;
}

.unit-exists-title {
  margin: 0 0 10px;
  font-size: 20px;
  line-height: 1.3;
  color: var(--text-main);
  font-weight: 700;
}

.unit-exists-desc {
  margin: 0;
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-secondary);
}

.unit-exists-list {
  margin-top: 14px;
  max-height: 200px;
  overflow-y: auto;
  border: 1px solid rgba(215, 229, 232, 0.95);
  border-radius: 16px;
  background: rgba(247, 251, 252, 0.96);
  padding: 12px 14px;
}

.unit-exists-item {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-main);
  word-break: break-all;
}

.unit-exists-item + .unit-exists-item {
  margin-top: 8px;
  padding-top: 8px;
  border-top: 1px solid rgba(221, 233, 235, 0.92);
}

.unit-exists-empty {
  font-size: 13px;
  line-height: 1.7;
  color: var(--text-muted);
}

.unit-exists-actions {
  display: flex;
  justify-content: flex-end;
  gap: 10px;
  margin-top: 18px;
}

.register-toast {
  position: fixed;
  top: 32px;
  left: 50%;
  z-index: 1200;
  display: flex;
  align-items: center;
  gap: 12px;
  min-width: 320px;
  max-width: min(680px, calc(100vw - 32px));
  padding: 16px 20px;
  border: 1px solid rgba(216, 162, 156, 0.48);
  border-radius: 10px;
  background: rgba(252, 241, 240, 0.98);
  box-shadow: 0 16px 32px rgba(129, 65, 58, 0.12);
  color: #db7d71;
  opacity: 0;
  pointer-events: none;
  transform: translate(-50%, -12px);
  transition: opacity 0.22s ease, transform 0.22s ease;
}

.register-toast.show {
  opacity: 1;
  pointer-events: auto;
  transform: translate(-50%, 0);
}

.register-toast-icon {
  flex: none;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  background: #dc7f74;
  color: #fff;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-size: 16px;
  line-height: 1;
  font-weight: 700;
}

.register-toast-text {
  flex: 1;
  font-size: 15px;
  line-height: 1.6;
}

.register-toast-close {
  flex: none;
  width: 22px;
  height: 22px;
  padding: 0;
  border: none;
  background: transparent;
  color: #d1a2a0;
  font-size: 18px;
  line-height: 1;
  cursor: pointer;
}

.register-toast-close:hover {
  color: #c36f66;
}

.site-footer {
  margin-top: 10px;
  padding: 0 0 18px;
  background: transparent;
}

.site-footer-inner {
  width: min(1200px, calc(100vw - 24px));
  margin: 0 auto;
  padding: 16px 20px;
  display: grid;
  grid-template-columns: 180px 1fr 110px;
  gap: 18px;
  align-items: center;
  background: rgba(255, 255, 255, 0.74);
  border: 1px solid rgba(224, 236, 238, 0.85);
  border-radius: 22px;
  backdrop-filter: blur(16px);
}

.footer-logo {
  color: var(--brand-main);
  font-size: 18px;
  font-weight: 700;
}

.footer-logo img {
  display: block;
  max-width: 170px;
  height: auto;
}

.footer-center p {
  margin: 0 0 4px;
  font-size: 12px;
  line-height: 1.45;
  color: var(--text-secondary);
}

.footer-center a {
  color: inherit;
  font: inherit;
  text-decoration: none;
}

.footer-center a:hover,
.footer-center a:focus {
  color: inherit;
  text-decoration: none;
}

.footer-center p:last-child {
  margin-bottom: 0;
}

.qr-box {
  width: 88px;
  height: 88px;
  padding: 5px;
  border: 1px solid rgba(214, 229, 232, 0.9);
  border-radius: 18px;
  display: flex;
  align-items: center;
  justify-content: center;
  color: var(--text-muted);
  font-size: 14px;
  background: #fff;
  box-shadow: 0 14px 28px rgba(28, 58, 64, 0.08);
}

@media (min-width: 1101px) {
  .step-panel[data-panel-step="2"] .register-form {
    display: block;
    width: 100%;
    max-width: none;
    min-height: 480px;
    margin: 0;
    align-content: normal;
  }

  .step-panel[data-panel-step="2"] .form-row {
    grid-template-columns: 116px 360px;
    width: 486px;
    margin: 0 auto;
  }

  .step-panel[data-panel-step="2"] .sms-row {
    grid-template-columns: 116px 178px 172px;
  }

  .step-panel[data-panel-step="1"] .register-form {
    --step1-label-width: 116px;
    --step1-control-width: 320px;
    --step1-field-gap: 16px;
    --step1-column-gap: 42px;
    --step1-field-width: calc(var(--step1-label-width) + var(--step1-control-width) + var(--step1-field-gap));
    --step1-sms-button-width: 132px;
    --step1-sms-input-width: calc(var(--step1-control-width) - var(--step1-sms-button-width) - var(--step1-field-gap));
    display: grid;
    grid-template-columns: repeat(2, minmax(0, var(--step1-field-width)));
    justify-content: center;
    column-gap: var(--step1-column-gap);
    row-gap: 0;
    align-items: start;
  }

  .step-panel[data-panel-step="1"] .form-row {
    width: 100%;
    grid-template-columns: var(--step1-label-width) minmax(0, var(--step1-control-width));
    align-items: start;
    column-gap: var(--step1-field-gap);
    padding: 6px 0;
    position: relative;
    border-bottom: none;
  }

  .step-panel[data-panel-step="1"] .form-row label {
    display: flex;
    align-items: center;
    justify-content: flex-end;
    height: 42px;
    min-height: 42px;
    font-size: 13px;
    padding-top: 0;
    white-space: nowrap;
  }

  .step-panel[data-panel-step="1"] .form-row > input,
  .step-panel[data-panel-step="1"] .form-row > select,
  .step-panel[data-panel-step="1"] .form-row > .picker,
  .step-panel[data-panel-step="1"] .form-row > .unit-select-wrap,
  .step-panel[data-panel-step="1"] .form-row > .inline-controls,
  .step-panel[data-panel-step="1"] .form-row > .radio-group,
  .step-panel[data-panel-step="1"] .form-row > .strength-bars {
    grid-column: 2;
    align-self: start;
  }

  .step-panel[data-panel-step="1"] .form-row .hint {
    grid-column: 2;
    margin-top: 4px;
  }

  .step-panel[data-panel-step="1"] .field-error {
    grid-column: 2;
  }

  .step-panel[data-panel-step="1"] .gender-row > .radio-group {
    min-height: 42px;
    align-self: start;
    margin-top: 0;
    align-items: center;
  }

  .step-panel[data-panel-step="1"] .form-row .radio-option span {
    min-width: 78px;
    height: 38px;
    padding: 0 18px;
  }

  .step-panel[data-panel-step="1"] .strength-row {
    grid-column: span 2;
    width: 100%;
    grid-template-columns: var(--step1-label-width) var(--step1-control-width) 1fr;
    column-gap: var(--step1-field-gap);
    align-items: center;
  }

  .step-panel[data-panel-step="1"] .strength-row .strength-bars {
    max-width: 228px;
  }

  .step-panel[data-panel-step="1"] .strength-row label {
    align-self: center;
    padding-top: 0;
  }

  .step-panel[data-panel-step="1"] .sms-row {
    grid-template-columns: var(--step1-label-width) minmax(0, var(--step1-sms-input-width)) var(--step1-sms-button-width);
    align-items: start;
    column-gap: var(--step1-field-gap);
  }

  .step-panel[data-panel-step="1"] .sms-row::after {
    width: min(var(--step1-control-width), calc(100% - var(--step1-label-width) - var(--step1-field-gap)));
  }

  .step-panel[data-panel-step="1"] .sms-row > input {
    grid-column: 2;
    align-self: start;
  }

  .step-panel[data-panel-step="1"] .sms-row > .line-btn {
    grid-column: 3;
    width: var(--step1-sms-button-width);
    align-self: start;
  }

  .step-panel[data-panel-step="1"] .agreement-list {
    width: min(100%, 946px);
    margin: 14px auto 0;
    padding-left: 20px;
    padding-right: 20px;
  }

  .agreement-list {
    gap: 6px;
    min-height: 92px;
    padding-top: 18px;
    padding-bottom: 12px;
  }

  .agreement-list label {
    margin-bottom: 0;
    font-size: 12px;
    line-height: 1.4;
    white-space: nowrap;
  }
}

.qr-box img {
  display: block;
  width: 100%;
  height: 100%;
  object-fit: contain;
  border-radius: 12px;
}

@keyframes panelFade {
  from {
    opacity: 0;
    transform: translateY(6px);
  }

  to {
    opacity: 1;
    transform: translateY(0);
  }
}

@media (max-width: 1000px) {
  body {
    background: #f8fafa;
    padding-bottom: 40px;
  }

  .site-top {
    position: fixed;
    top: 0;
    left: 0;
    right: 0;
    z-index: 120;
    padding-top: 0;
    background: rgba(248, 250, 250, 0.84);
    box-shadow: 0 10px 24px rgba(25, 102, 98, 0.08);
    backdrop-filter: blur(18px);
  }

  .site-top-inner,
  .register-page,
  .site-footer-inner {
    width: min(100%, calc(100vw - 32px));
  }

  .site-top-inner {
    width: min(100%, 420px);
    min-height: 60px;
    padding-left: 16px;
    padding-right: 16px;
    justify-content: space-between;
  }

  .register-page {
    display: flex;
    flex-direction: column;
    max-width: 390px;
    margin-top: 0;
    padding: 84px 0 0;
    background: transparent;
    border: none;
    border-radius: 0;
    box-shadow: none;
    backdrop-filter: none;
  }

  .register-page.no-site-header {
    padding-top: 24px;
  }

  .register-page > * {
    width: 100%;
  }

  .site-close-btn {
    display: inline-flex;
    background: transparent;
    color: #6f7978;
    box-shadow: none;
  }

  .site-footer {
    display: none;
  }

  .brand-logo img {
    height: 28px;
    filter: none;
  }

  .regional-site-header-content {
    padding-right: 12px;
  }

  .regional-site-title {
    padding-bottom: 9px;
    font-size: clamp(18px, 5vw, 21px);
    line-height: 1.3;
    letter-spacing: 0.02em;
  }

  .regional-site-title::after {
    width: 42px;
    height: 3px;
  }

  .step-summary {
    display: block;
    order: 1;
    margin: 0 0 10px;
  }

  .step-summary-count {
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.12em;
    color: #196662;
    text-transform: uppercase;
  }

  .step-summary-label {
    margin-top: 4px;
    font-size: 11px;
    line-height: 1.4;
    color: #6f7978;
  }

  .stepper {
    order: 2;
    gap: 8px;
    padding: 0;
    margin: 0 0 30px;
    background: transparent;
  }

  .step-line {
    display: none;
  }

  .step-item {
    align-items: stretch;
    text-align: left;
    min-height: 6px;
  }

  .step-dot {
    width: 100%;
    height: 6px;
    border-radius: 999px;
    font-size: 0;
    box-shadow: none;
    transform: none;
    background: #e1e3e3;
  }

  .step-item.active .step-dot,
  .step-item.done .step-dot {
    transform: none;
    background: linear-gradient(90deg, #196662 0%, #39807b 100%);
    box-shadow: none;
  }

  .step-text {
    margin-top: 8px;
    font-size: 10px;
    font-weight: 700;
    letter-spacing: 0.08em;
    color: #6f7978;
    white-space: nowrap;
    overflow: hidden;
    text-overflow: ellipsis;
  }

  .step-item.active .step-text,
  .step-item.done .step-text {
    color: #196662;
  }

  .step-text {
    display: none;
  }

  .welcome-block {
    order: 3;
    margin-bottom: 20px;
  }

  .page-title {
    margin: 0 0 8px;
    font-size: 28px;
    line-height: 1.08;
    font-weight: 800;
    letter-spacing: -0.03em;
  }

  .page-title::after {
    display: none;
  }

  .page-subtitle {
    max-width: 320px;
    font-size: 12px;
    line-height: 1.6;
    color: #6f7978;
  }

  .notice-box {
    order: 4;
    align-items: flex-start;
    gap: 10px;
    padding: 12px 14px;
    margin-bottom: 22px;
    border: none;
    border-radius: 16px;
    background: #feb64c;
    box-shadow: 0 10px 22px rgba(112, 72, 0, 0.1);
    color: #704800;
  }

  .notice-icon-wrap {
    display: flex;
    align-items: center;
    justify-content: center;
    width: 34px;
    height: 34px;
    border-radius: 10px;
    background: rgba(112, 72, 0, 0.1);
  }

  .notice-icon {
    width: 18px;
    height: 18px;
    margin-top: 0;
    border-radius: 8px;
    background: transparent;
    color: #704800;
    font-size: 16px;
    box-shadow: none;
  }

  .notice-title {
    font-size: 12px;
    font-weight: 800;
    letter-spacing: 0.02em;
  }

  .notice-desc {
    margin-top: 3px;
    font-size: 11px;
    line-height: 1.55;
    color: rgba(112, 72, 0, 0.88);
  }

  .step-panel {
    order: 5;
  }

  .step-panel[data-panel-step="2"].active,
  .step-panel[data-panel-step="3"].active {
    min-height: 0;
    justify-content: flex-start;
  }

  .step-panel[data-panel-step="2"] .register-form,
  .step-panel[data-panel-step="2"] .footer-actions,
  .step-panel[data-panel-step="3"] .footer-actions {
    min-height: 0;
    padding-top: 0;
  }

  .register-form {
    padding: 0;
    border-radius: 0;
    background: transparent;
    box-shadow: none;
  }

  .form-row {
    grid-template-columns: 1fr;
    row-gap: 8px;
    padding: 0;
    margin-top: 20px;
  }

  .form-row:first-child {
    margin-top: 0;
  }

  .form-row label {
    justify-self: start;
    font-size: 11px;
    font-weight: 800;
    letter-spacing: 0.08em;
    color: #4b5654;
  }

  .form-row input,
  .form-row select,
  .trigger {
    height: 52px;
    border: 1px solid transparent;
    border-radius: 16px;
    padding: 0 16px;
    font-size: 15px;
    font-weight: 500;
    background: #f2f4f4;
    box-shadow: none;
  }

  .form-row input::placeholder,
  .search-row input::placeholder,
  .value {
    color: #9ca5a6;
  }

  .form-row select {
    padding-right: 44px;
    background-color: #f2f4f4;
    background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='16' height='16' viewBox='0 0 16 16'%3E%3Cpath d='M4 6.5 8 10l4-3.5' fill='none' stroke='%236f7978' stroke-width='1.6' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
    background-repeat: no-repeat;
    background-position: right 16px center;
    background-size: 16px 16px;
  }

  .form-row input:focus,
  .form-row select:focus,
  .trigger.open,
  .trigger:focus {
    border-color: rgba(25, 102, 98, 0.18);
    background: #e1e3e3;
    box-shadow: 0 0 0 2px rgba(25, 102, 98, 0.12);
  }

  .form-row.is-error input,
  .form-row.is-error select,
  .form-row.is-error .trigger,
  .agreement-list.is-error {
    border-color: #c94c4c;
    box-shadow: 0 0 0 2px rgba(201, 76, 76, 0.12);
  }

  .form-row .hint {
    font-size: 12px;
  }

  .field-error,
  .agreement-error {
    grid-column: 1;
    margin-top: 6px;
  }

  .sms-row {
    grid-template-columns: minmax(0, 1fr) 138px;
    column-gap: 10px;
    row-gap: 8px;
    align-items: center;
  }

  .sms-row > label {
    grid-column: 1 / -1;
  }

  .sms-row > input {
    grid-column: 1;
  }

  .sms-row > .line-btn {
    grid-column: 2;
  }

  .line-btn,
  .main-btn {
    width: 100%;
  }

  .line-btn {
    height: 52px;
    border: none;
    border-radius: 16px;
    background: #e6e8e8;
    box-shadow: none;
    color: #196662;
    font-size: 15px;
    font-weight: 700;
  }

  .line-btn:hover {
    transform: none;
    border-color: transparent;
    background: #dfe3e3;
    box-shadow: none;
  }

  .inline-controls {
    grid-template-columns: 1fr;
    gap: 12px;
  }

  .radio-group {
    min-height: 0;
    gap: 6px;
    padding: 6px;
    border-radius: 16px;
    background: #f2f4f4;
    box-shadow: inset 0 0 0 1px transparent;
  }

  .radio-option {
    flex: 1;
  }

  .form-row .radio-option span {
    width: 100%;
    min-width: 0;
    height: 40px;
    padding: 0 10px;
    border: none;
    border-radius: 12px;
    background: transparent;
    font-size: 13px;
    font-weight: 700;
    color: #3f4947;
  }

  .form-row .radio-option:hover span {
    border-color: transparent;
    background: rgba(225, 227, 227, 0.9);
  }

  .form-row .radio-option input[type="radio"]:checked + span {
    border-color: transparent;
    background: #196662;
    color: #fff;
    box-shadow: 0 8px 16px rgba(25, 102, 98, 0.18);
  }

  .agreement-list {
    margin: 18px 0 0;
    min-height: 0;
    padding: 0;
    border: none;
    border-radius: 0;
    background: transparent;
  }

  .agreement-list label {
    display: grid;
    grid-template-columns: 16px minmax(0, 1fr);
    align-items: flex-start;
    gap: 8px;
    margin-bottom: 10px;
    font-size: 11px;
    line-height: 1.55;
    white-space: normal;
    color: #5a6663;
  }

  .agreement-text {
    display: block;
    min-width: 0;
    line-height: 1.55;
    white-space: normal;
    word-break: normal;
    overflow-wrap: break-word;
  }

  .agreement-list input {
    width: 16px;
    height: 16px;
    margin-top: 2px;
    accent-color: #196662;
  }

  .agreement-list a {
    display: inline;
    color: #196662;
    font-weight: 700;
    text-decoration: none;
  }

  .agreement-list a:hover {
    text-decoration: underline;
  }

  .agreement-error {
    margin-top: 2px;
    font-size: 11px;
    line-height: 1.5;
  }

  .register-toast {
    top: 72px;
    width: calc(100vw - 32px);
    min-width: 0;
    padding: 14px 16px;
  }

  .register-toast-text {
    font-size: 14px;
  }

  .panel {
    border-radius: 18px;
  }

  .alphabet-list,
  .name-grid,
  .unit-list {
    padding-left: 12px;
    padding-right: 12px;
  }

  .letter-row {
    grid-template-columns: 1fr;
    gap: 6px;
  }

  .letter-label {
    line-height: 1.4;
  }

  .success-panel {
    padding-top: 24px;
  }

  .success-panel h2 {
    font-size: 24px;
  }

  .user-line {
    font-size: 18px;
  }

  .unit-county-dialog {
    width: min(92vw, 460px);
    padding: 18px 16px 16px;
  }

  .unit-county-title {
    font-size: 17px;
  }

  .unit-county-message {
    font-size: 13px;
  }

  .unit-county-actions {
    flex-direction: column;
  }

  .unit-county-btn {
    width: 100%;
  }

  .add-unit-dialog {
    width: min(92vw, 520px);
    padding: 18px 16px 16px;
  }

  .add-unit-upload-row {
    gap: 10px;
  }

  .add-unit-actions {
    flex-direction: column;
  }

  .add-unit-btn {
    width: 100%;
  }

  .unit-exists-dialog {
    width: min(92vw, 500px);
    padding: 18px 16px 16px;
  }

  .unit-exists-actions {
    flex-direction: column;
  }

  .trigger {
    box-shadow: none;
  }

  .value.active {
    color: #191c1d;
  }

  .arrow {
    font-size: 18px;
    color: #6f7978;
    transform: none;
  }

  .searchable-picker.is-open .searchable-trigger,
  .picker > .trigger.open {
    border-color: rgba(25, 102, 98, 0.18);
    border-radius: 16px;
    background: #e1e3e3;
  }

  .searchable-picker.open-up.is-open .searchable-trigger {
    border-radius: 16px;
  }

  .searchable-picker.is-open .searchable-panel,
  .picker > .trigger.open + .panel {
    top: calc(100% + 8px);
    bottom: auto;
    border: none;
    border-radius: 18px;
    box-shadow: 0 18px 36px rgba(25, 102, 98, 0.14);
    max-height: min(260px, 42vh);
    overflow: hidden;
  }

  .searchable-picker.open-up.is-open .searchable-panel {
    top: auto;
    bottom: calc(100% + 8px);
  }

  .panel {
    border: none;
    border-radius: 18px;
    background: #ffffff;
    box-shadow: 0 18px 36px rgba(25, 102, 98, 0.14);
    backdrop-filter: none;
  }

  .search-row {
    padding: 10px 10px 6px;
    background: transparent;
  }

  .search-row input {
    height: 44px;
    border: none;
    border-radius: 14px;
    background: #f2f4f4;
    box-shadow: none;
  }

  .main-btn {
    min-width: 0;
    height: 54px;
    padding: 0 24px;
    font-size: 17px;
    letter-spacing: 0;
    background: linear-gradient(90deg, #196662 0%, #39807b 100%);
    box-shadow: 0 12px 24px rgba(25, 102, 98, 0.18);
  }

  .main-btn:hover {
    transform: none;
    filter: none;
    box-shadow: 0 12px 24px rgba(25, 102, 98, 0.18);
  }
}
