:root {
  color-scheme: only light;
  --ink: #172b3a;
  --muted: #637789;
  --line: #dce8ef;
  --page: #f6fafc;
  --white: #ffffff;
  --sky: #eef6fa;
  --sky-strong: #d9eef7;
  --blue: #176f98;
  --deep: #0f4f70;
  --navy: #102f43;
  --shadow: 0 12px 28px rgba(23, 59, 79, 0.11);
  --shadow-soft: 0 7px 18px rgba(23, 59, 79, 0.07);
}

* {
  box-sizing: border-box;
}

html {
  color-scheme: only light;
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
  scroll-behavior: smooth;
  background: #f6fafc;
}

body {
  color-scheme: only light;
  margin: 0;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  overflow-x: hidden;
  background: linear-gradient(180deg, #f8fbfd 0, var(--page) 55%, #ffffff 100%);
  color: var(--ink);
  font-family: "Pretendard", "Noto Sans KR", "Segoe UI", "Apple SD Gothic Neo", "Malgun Gothic", sans-serif;
  line-height: 1.5;
}

main {
  display: flex;
  flex-direction: column;
}

a {
  color: inherit;
  text-decoration: none;
}

button,
input,
select,
textarea {
  font: inherit;
  min-width: 0;
}

img,
video,
canvas,
svg {
  max-width: 100%;
}

button {
  cursor: pointer;
}

h1,
h2,
h3,
p,
ul {
  margin: 0;
}

h1,
h2,
h3,
p,
span,
strong,
small,
li {
  word-break: keep-all;
}

.mobile-shell {
  position: relative;
  width: 100%;
  max-width: 960px;
  min-height: 100vh;
  margin: 0 auto;
  overflow-x: hidden;
  background: #f5fbff;
  box-shadow: 0 0 0 1px rgba(8, 121, 182, 0.14), 0 24px 70px rgba(15, 90, 130, 0.18);
}

.mobile-header {
  position: sticky;
  top: 0;
  z-index: 10;
  display: flex;
  align-items: center;
  justify-content: space-between;
  min-height: 60px;
  border-bottom: 1px solid rgba(255, 255, 255, 0.2);
  background: rgba(6, 72, 102, 0.94);
  color: #fff;
  padding: calc(10px + env(safe-area-inset-top)) 16px 10px;
  backdrop-filter: blur(12px);
}

.brand {
  display: grid;
  min-width: 0;
}

.brand span {
  color: #c8f1ff;
  font-size: 10px;
  font-weight: 850;
}

.brand strong {
  overflow: hidden;
  font-size: 16px;
  font-weight: 850;
  text-overflow: ellipsis;
  white-space: nowrap;
}

.mobile-chip,
.admin-badge {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.34);
  border-radius: 999px;
  color: #dff7ff;
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
}

.mobile-top-tabs {
  position: sticky;
  top: 60px;
  z-index: 9;
  display: flex;
  gap: 8px;
  overflow-x: auto;
  border-bottom: 1px solid var(--line);
  background: rgba(246, 250, 252, 0.94);
  padding: 9px 14px;
  scrollbar-width: none;
}

.mobile-top-tabs::-webkit-scrollbar {
  display: none;
}

.mobile-top-tabs a {
  display: inline-flex;
  flex: 0 0 auto;
  min-height: 32px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  padding: 0 12px;
}

.mobile-hero {
  position: relative;
  min-height: 316px;
  overflow: hidden;
  background: #064360;
  color: #fff;
}

.mobile-hero-bg {
  position: absolute;
  inset: 0;
  background:
    linear-gradient(180deg, rgba(3, 45, 65, 0.86), rgba(4, 66, 94, 0.75)),
    url("https://images.unsplash.com/photo-1504917595217-d4dc5ebe6122?auto=format&fit=crop&w=900&q=82") center / cover;
  animation: heroDrift 18s ease-in-out infinite alternate;
}

.mobile-hero-content {
  position: relative;
  z-index: 1;
  display: grid;
  align-content: end;
  min-height: 316px;
  padding: 28px 18px 20px;
}

.eyebrow,
.section-title span {
  color: #bfeeff;
  font-size: 11px;
  font-weight: 850;
}

.section-title span {
  color: var(--blue);
}

.mobile-hero h1 {
  margin-top: 10px;
  font-size: 28px;
  font-weight: 850;
  line-height: 1.14;
}

.mobile-hero p:not(.eyebrow) {
  margin-top: 12px;
  color: rgba(255, 255, 255, 0.9);
  font-size: 14px;
  line-height: 1.65;
}

.mobile-live-row {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 12px;
}

.mobile-live-row span {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  border: 1px solid rgba(255, 255, 255, 0.28);
  border-radius: 999px;
  background: rgba(255, 255, 255, 0.13);
  color: #fff;
  font-size: 11px;
  font-weight: 850;
  padding: 0 9px;
}

.mobile-live-row span:first-child::before {
  content: "";
  width: 6px;
  height: 6px;
  margin-right: 6px;
  border-radius: 999px;
  background: #7ff0c7;
  animation: livePulse 1.8s ease-out infinite;
}

.mobile-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-top: 20px;
}

.mobile-actions a,
.lead-form button {
  display: inline-flex;
  min-height: 46px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 12px;
  font-weight: 850;
}

.mobile-actions a,
.mobile-tab-card,
.mobile-opening-card,
.mobile-general-apply,
.section-toggle,
.mobile-opening-pager button {
  transition: transform 170ms ease, box-shadow 170ms ease, border-color 170ms ease, background 170ms ease;
}

.mobile-actions a:active,
.mobile-tab-card:active,
.mobile-opening-card:active,
.mobile-general-apply:active,
.section-toggle:active,
.mobile-opening-pager button:active {
  transform: scale(0.985);
}

.mobile-actions a:first-child,
.lead-form button {
  background: #fff;
  color: var(--navy);
  box-shadow: 0 9px 20px rgba(2, 28, 42, 0.18);
}

.mobile-actions a:last-child {
  border: 1px solid rgba(255, 255, 255, 0.58);
  background: rgba(255, 255, 255, 0.1);
  color: #fff;
}

.mobile-section {
  padding: 22px 14px 0;
}

.mobile-contact-tabs {
  order: 1;
}

.openings-section {
  order: 2;
}

.trust-section {
  order: 3;
}

.referral-section {
  order: 4;
}

.info-menu-section {
  order: 5;
}

.trust-section {
  padding-top: 22px;
}

.trust-strip {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
}

.trust-strip div,
.trust-metrics article,
.process-grid article,
.policy-section article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.trust-strip div {
  display: grid;
  gap: 4px;
  min-width: 0;
  padding: 11px 9px;
}

.trust-strip span,
.process-grid span,
.policy-section span {
  color: var(--blue);
  font-size: 10px;
  font-weight: 850;
}

.trust-strip strong {
  min-width: 0;
  color: var(--navy);
  font-size: 12px;
  line-height: 1.3;
  overflow-wrap: anywhere;
}

.trust-metrics {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 7px;
  margin-top: 7px;
}

.trust-metrics article {
  padding: 11px 9px;
}

.trust-metrics strong {
  display: block;
  color: var(--deep);
  font-size: 20px;
  line-height: 1.1;
}

.trust-metrics span {
  display: block;
  margin-top: 3px;
  color: var(--muted);
  font-size: 10px;
  font-weight: 800;
}

.process-grid {
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 7px;
}

.info-menu-section {
  padding-top: 16px;
}

.info-menu-section summary {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  gap: 4px 10px;
  align-items: center;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  box-shadow: var(--shadow-soft);
  cursor: pointer;
  list-style: none;
  padding: 14px;
}

.info-menu-section summary::-webkit-details-marker {
  display: none;
}

.info-menu-section summary span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.info-menu-section summary strong {
  color: var(--navy);
  font-size: 16px;
}

.info-menu-section summary::after {
  content: "열기";
  grid-row: 1 / span 2;
  grid-column: 2;
  border: 1px solid var(--line);
  border-radius: 999px;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  padding: 6px 10px;
}

.info-menu-section[open] summary::after {
  content: "닫기";
}

.info-menu-panel {
  display: grid;
  gap: 18px;
  padding-top: 12px;
}

.info-menu-panel > section {
  padding-top: 0;
}

.process-grid article {
  display: grid;
  gap: 4px;
  min-height: 70px;
  align-content: center;
  padding: 10px 8px;
}

.process-grid strong {
  color: var(--navy);
  font-size: 13px;
  line-height: 1.25;
}

.policy-section {
  display: grid;
  gap: 8px;
}

.policy-section article,
.compliance-grid article {
  padding: 12px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
}

.policy-section strong,
.compliance-grid strong {
  display: block;
  margin-top: 5px;
  color: var(--navy);
  font-size: 13px;
  line-height: 1.45;
}

.compliance-section {
  padding-top: 18px;
}

.compliance-grid {
  display: grid;
  gap: 8px;
}

.compliance-grid article {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  box-shadow: var(--shadow-soft);
}

.compliance-grid p {
  margin-top: 5px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.mobile-section-row {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 10px;
}

.mobile-section-actions {
  display: flex;
  flex: 0 0 auto;
  align-items: center;
  gap: 6px;
}

.section-title {
  display: grid;
  gap: 6px;
  margin-bottom: 12px;
}

.section-title h2 {
  color: var(--navy);
  font-size: 23px;
  font-weight: 850;
  line-height: 1.2;
}

.section-title p {
  color: var(--muted);
  font-size: 13px;
}

.referral-section {
  margin-top: 8px;
}

.referral-banner {
  display: grid;
  gap: 9px;
  overflow: hidden;
  border-radius: 18px;
  background:
    linear-gradient(135deg, rgba(16, 47, 67, 0.96), rgba(23, 111, 152, 0.88)),
    url("https://images.unsplash.com/photo-1521790797524-b2497295b8a0?auto=format&fit=crop&w=900&q=78") center / cover;
  color: #fff;
  box-shadow: 0 18px 38px rgba(23, 59, 79, 0.16);
  padding: 18px;
}

.referral-banner span {
  color: #bfeeff;
  font-size: 12px;
  font-weight: 850;
}

.referral-banner h2 {
  color: #fff;
  font-size: 24px;
  line-height: 1.15;
}

.referral-banner p {
  color: rgba(255, 255, 255, 0.84);
  font-size: 13px;
  line-height: 1.45;
}

.referral-banner button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #fff;
  color: var(--navy);
  font-weight: 850;
  padding: 0 16px;
}

.opening-recommendation-row {
  display: inline-flex;
  align-items: center;
  gap: 5px;
  color: #d38d00;
  font-weight: 850;
  font-size: 13px;
}

.opening-recommendation-row small {
  color: var(--muted);
}

.opening-recommendation-badge {
  letter-spacing: 1px;
  font-size: 14px;
  white-space: nowrap;
}

.opening-review-list {
  margin: 0;
  padding-left: 18px;
  color: var(--muted);
  display: grid;
  gap: 6px;
}

.opening-review-list li {
  word-break: break-word;
}

.opening-review-list small {
  color: #8594a2;
}

.opening-review-form {
  margin-top: 12px;
  display: grid;
  gap: 10px;
}

.opening-review-result {
  font-size: 12px;
  color: var(--muted);
}

.admin-respond-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5fbff;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  min-height: 28px;
  padding: 0 10px;
}

.review-actions {
  display: flex;
  flex-wrap: wrap;
  align-items: center;
  gap: 6px;
  margin-top: 8px;
}

.review-actions button,
.admin-referral-actions button,
.referral-status-button {
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #f5fbff;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  min-height: 28px;
  padding: 0 10px;
}

.admin-referral-actions {
  margin-top: 6px;
}

.referral-status-button.is-active {
  border-color: #7bc4ff;
  color: #056fbe;
  background: #e7f4ff;
}

.section-toggle {
  flex: 0 0 auto;
  min-height: 34px;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  padding: 0 12px;
}

.admin-new-opening-button {
  display: none;
  min-height: 34px;
  border: 0;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 12px;
  font-weight: 850;
  padding: 0 12px;
  white-space: nowrap;
}

.admin-mode .admin-new-opening-button {
  display: inline-flex;
  align-items: center;
  justify-content: center;
}

.mobile-opening-filters {
  display: grid;
  gap: 9px;
  margin: -4px 0 12px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  padding: 12px;
  box-shadow: var(--shadow-soft);
}

.filter-control {
  display: grid;
  gap: 5px;
}

.filter-check {
  align-items: center;
  gap: 8px;
  grid-template-columns: auto 1fr;
}

.filter-check,
.filter-control span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.filter-check input {
  width: 16px;
  height: 16px;
  min-height: 16px;
  accent-color: var(--blue);
}

.filter-control input,
.filter-control select {
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #fff;
  color: var(--ink);
  min-height: 42px;
  padding: 0 11px;
}

.filter-row-two {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 9px;
}

.filter-control.dashboard-filter {
  min-width: 0;
}

.filter-control.dashboard-filter input,
.filter-control.dashboard-filter select {
  width: 100%;
}

.filter-action-row {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 9px;
}

#openingFilterReset {
  min-height: 36px;
  border: 1px solid #bfdbe9;
  border-radius: 999px;
  background: #eef7fb;
  color: var(--deep);
  font-weight: 850;
  padding: 0 12px;
  white-space: nowrap;
}

.opening-count {
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
}

.collapse-panel[hidden] {
  display: none;
}

.mobile-contact-tabs {
  display: grid;
  gap: 10px;
}

.mobile-tab-card {
  display: grid;
  gap: 5px;
  width: 100%;
  min-height: 88px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 15px;
  text-align: left;
  box-shadow: var(--shadow-soft);
}

.mobile-tab-card:first-child {
  border-color: var(--line);
  background: #fff;
  color: var(--ink);
}

.mobile-tab-card span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.mobile-tab-card strong {
  min-width: 0;
  color: var(--navy);
  font-size: 17px;
  font-weight: 850;
  line-height: 1.25;
}

.mobile-tab-card small {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
}

.mobile-tab-card::before {
  content: "";
  width: 38px;
  height: 5px;
  border-radius: 999px;
  background: var(--navy);
}

.mobile-openings {
  display: grid;
  gap: 10px;
}

.mobile-opening-card {
  position: relative;
  display: grid;
  gap: 9px;
  width: 100%;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  color: var(--ink);
  padding: 14px;
  box-shadow: var(--shadow);
}

.mobile-opening-card .opening-live-badge {
  position: absolute;
  top: 12px;
  right: 12px;
  display: inline-flex;
  min-height: 24px;
  align-items: center;
  border-radius: 999px;
  background: var(--navy);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
  box-shadow: 0 8px 18px rgba(16, 47, 67, 0.16);
}

.mobile-opening-card header {
  padding-right: 96px;
}

.mobile-opening-card header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 8px;
}

.mobile-opening-area,
.mobile-opening-status {
  display: inline-flex;
  min-height: 28px;
  align-items: center;
  justify-content: center;
  border-radius: 999px;
  font-size: 12px;
  font-weight: 850;
  padding: 0 10px;
  white-space: nowrap;
}

.mobile-opening-area {
  background: var(--sky);
  color: var(--deep);
}

.mobile-opening-status {
  background: #eef6fa;
  color: var(--deep);
}

.mobile-opening-card h3 {
  color: var(--deep);
  font-size: 18px;
  font-weight: 850;
  line-height: 1.28;
}

.mobile-opening-card p {
  color: var(--muted);
  font-size: 13px;
  line-height: 1.45;
}

.opening-recommend-note {
  display: grid;
  gap: 4px;
  border: 1px solid #dce8ef;
  border-radius: 10px;
  background: #f7fbfd;
  padding: 10px;
}

.opening-recommend-note strong {
  color: var(--deep);
  font-size: 11px;
  font-weight: 850;
}

.opening-recommend-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.detail-recommend-note {
  margin-top: 10px;
}

.mobile-opening-meta {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 7px;
}

.mobile-opening-meta span {
  min-width: 0;
  border-radius: 10px;
  background: #f2fbff;
  color: var(--deep);
  font-size: 12px;
  font-weight: 800;
  padding: 9px;
}

.mobile-opening-trust {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
}

.opening-trust-badge {
  display: inline-flex;
  align-items: center;
  min-height: 23px;
  border-radius: 999px;
  background: #eef6fa;
  color: var(--deep);
  font-size: 10px;
  font-weight: 850;
  padding: 0 8px;
  white-space: nowrap;
}

.detail-trust-badges {
  display: flex;
  flex-wrap: wrap;
  gap: 5px;
  margin-top: 8px;
}

.detail-safe-note {
  margin-top: 8px;
  color: var(--muted);
  font-size: 12px;
  line-height: 1.5;
}

.mobile-opening-actions {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.mobile-opening-actions button,
.mobile-general-apply button,
.detail-actions button {
  display: inline-flex;
  min-height: 42px;
  align-items: center;
  justify-content: center;
  border: 0;
  border-radius: 10px;
  background: #edf8ff;
  color: var(--deep);
  font-size: 13px;
  font-weight: 850;
  padding: 0 10px;
  text-align: center;
}

.mobile-opening-actions button:nth-child(2),
.detail-actions button:first-child {
  background: var(--navy);
  color: #fff;
}

.mobile-opening-pager {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 7px;
  margin: 12px 0 2px;
}

.mobile-opening-pager button {
  display: inline-flex;
  min-width: 36px;
  min-height: 34px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  padding: 0 10px;
}

.mobile-opening-pager button.is-active {
  border-color: var(--navy);
  background: var(--navy);
  color: #fff;
}

.mobile-admin-button {
  grid-column: 1 / -1;
  background: #f0f6fb;
  color: #315e91;
}

.mobile-general-apply {
  display: grid;
  gap: 7px;
  margin-top: 10px;
  border: 1px solid var(--line);
  border-radius: 16px;
  background: #fff;
  padding: 15px;
  box-shadow: var(--shadow-soft);
}

.mobile-general-apply span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.mobile-general-apply strong {
  color: var(--navy);
  font-size: 19px;
  font-weight: 850;
}

.mobile-general-apply p {
  color: var(--muted);
  font-size: 13px;
}

.mobile-general-apply button {
  background: var(--navy);
  color: #fff;
}

.process-section .section-title,
.policy-section,
.compliance-section {
  opacity: 0.94;
}

.policy-section article,
.compliance-grid article {
  box-shadow: var(--shadow-soft);
}

.policy-section strong,
.compliance-grid strong {
  font-size: 12px;
}

.compliance-section .section-title h2,
.process-section .section-title h2 {
  font-size: 20px;
}

.form-card {
  border: 1px solid var(--line);
  border-radius: 16px;
  background: var(--white);
  padding: 16px;
  box-shadow: var(--shadow);
}

.lead-form,
.admin-form {
  display: grid;
  gap: 10px;
}

.lead-form label,
.admin-form label {
  display: grid;
  gap: 5px;
  min-width: 0;
}

.lead-form[data-selected-reception="external"] label:not(.form-provider-row) {
  display: none;
}

.lead-form span,
.admin-form span {
  color: var(--muted);
  font-size: 12px;
  font-weight: 850;
}

.form-trust-note {
  display: grid;
  gap: 4px;
  border: 1px solid #cbe8f5;
  border-radius: 12px;
  background: #f3fbff;
  color: var(--deep);
  padding: 11px;
}

.form-trust-note strong {
  color: var(--navy);
  font-size: 13px;
}

.form-trust-note span {
  color: var(--muted);
  font-size: 12px;
  line-height: 1.45;
}

.lead-form .consent-field {
  display: grid;
  grid-template-columns: 18px minmax(0, 1fr);
  gap: 8px;
  align-items: start;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f7fcff;
  padding: 10px;
}

.lead-form .consent-field input {
  width: 18px;
  height: 18px;
  min-height: 18px;
  margin: 2px 0 0;
  accent-color: var(--deep);
}

.lead-form .consent-field span {
  color: #506579;
  font-size: 11px;
  line-height: 1.45;
}

.lead-form .consent-field a {
  color: var(--blue);
  font-weight: 850;
  text-decoration: underline;
  text-underline-offset: 2px;
}

.data-flow-note {
  border-radius: 12px;
  background: #eefaff;
  color: var(--deep);
  font-size: 11px;
  font-weight: 850;
  line-height: 1.45;
  padding: 9px 10px;
}

.lead-form input,
.lead-form select,
.lead-form textarea,
.admin-form input,
.admin-form textarea {
  width: 100%;
  min-width: 0;
  border: 1px solid var(--line);
  border-radius: 10px;
  background: #f9fdff;
  color: var(--ink);
  outline: 0;
}

.lead-form input,
.lead-form select,
.admin-form input {
  min-height: 43px;
  padding: 0 11px;
}

.lead-form textarea,
.admin-form textarea {
  resize: vertical;
  padding: 10px 11px;
}

.lead-form button,
.admin-form button {
  margin-top: 2px;
  background: var(--deep);
  color: #fff;
}

.lead-form p,
.admin-form p {
  color: var(--muted);
  font-size: 12px;
}

.bottom-nav {
  position: sticky;
  bottom: 0;
  z-index: 12;
  display: grid;
  grid-template-columns: repeat(4, minmax(0, 1fr));
  gap: 8px;
  margin-top: 24px;
  border-top: 1px solid var(--line);
  background: rgba(245, 251, 255, 0.94);
  padding: 10px max(12px, env(safe-area-inset-right)) calc(12px + env(safe-area-inset-bottom)) max(12px, env(safe-area-inset-left));
  backdrop-filter: blur(12px);
}

.bottom-nav a {
  display: inline-flex;
  min-height: 40px;
  align-items: center;
  justify-content: center;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: #fff;
  color: var(--deep);
  font-size: 11px;
  font-weight: 850;
  padding: 0 2px;
  text-align: center;
  white-space: nowrap;
  overflow: hidden;
  text-overflow: ellipsis;
  min-width: 0;
}

.mobile-footer {
  display: grid;
  gap: 3px;
  margin: 22px 14px 0;
  border-top: 1px solid var(--line);
  color: var(--muted);
  font-size: 11px;
  padding-top: 14px;
}

.mobile-footer strong {
  color: var(--deep);
  font-size: 13px;
}

.mobile-footer a {
  color: var(--blue);
  font-weight: 850;
}

.modal-open {
  overflow: hidden;
}

.modal-root[hidden] {
  display: none;
}

.modal-root {
  position: fixed;
  inset: 0;
  z-index: 100;
  display: grid;
  place-items: end center;
  padding: 12px;
}

.modal-backdrop {
  position: absolute;
  inset: 0;
  background: rgba(8, 36, 52, 0.5);
  backdrop-filter: blur(8px);
}

.modal-dialog {
  position: relative;
  z-index: 1;
  width: min(560px, 100%);
  max-height: calc(100vh - 24px);
  overflow: auto;
  border: 1px solid var(--line);
  border-radius: 22px;
  background: #fff;
  padding: 16px;
  box-shadow: 0 22px 60px rgba(4, 42, 62, 0.28);
}

.modal-head {
  display: flex;
  align-items: start;
  justify-content: space-between;
  gap: 12px;
  margin-bottom: 12px;
}

.modal-head span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 850;
}

.modal-head h2 {
  margin-top: 5px;
  color: var(--navy);
  font-size: 21px;
  font-weight: 850;
  line-height: 1.2;
}

.icon-button {
  width: 38px;
  height: 38px;
  flex: 0 0 auto;
  border: 1px solid var(--line);
  border-radius: 999px;
  background: var(--sky);
  color: var(--deep);
  font-size: 24px;
  font-weight: 700;
  line-height: 1;
}

.detail-summary {
  display: grid;
  gap: 8px;
  margin-bottom: 12px;
}

.detail-summary p {
  color: var(--muted);
  font-size: 13px;
}

.badge {
  width: fit-content;
  border-radius: 999px;
  background: #f4f8fa;
  color: var(--deep);
  font-size: 12px;
  font-weight: 850;
  padding: 5px 12px;
}

.badge-blue {
  background: #eef6fa;
  color: var(--deep);
}

.badge-green {
  background: #eef6fa;
  color: var(--deep);
}

.badge-soft {
  background: #eef6fa;
  color: var(--deep);
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
  margin-bottom: 12px;
}

.detail-grid div {
  border-radius: 12px;
  background: var(--sky);
  padding: 11px;
}

.detail-grid span {
  display: block;
  color: var(--muted);
  font-size: 11px;
  font-weight: 850;
}

.detail-grid strong {
  display: block;
  margin-top: 4px;
  color: var(--deep);
  font-size: 14px;
  line-height: 1.3;
}

.detail-columns {
  display: grid;
  gap: 9px;
}

.detail-columns section {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #f9fdff;
  padding: 12px;
}

.detail-columns h3 {
  margin: 0 0 7px;
  color: var(--navy);
  font-size: 16px;
}

.detail-columns ul {
  display: grid;
  gap: 6px;
  padding-left: 17px;
  color: var(--muted);
  font-size: 13px;
}

.detail-actions {
  display: grid;
  gap: 8px;
  margin-top: 12px;
}

.detail-actions .admin-edit-button {
  background: #f0f6fb;
  color: #315e91;
}

.admin-dashboard-grid {
  display: grid;
  gap: 10px;
  grid-template-columns: 1fr;
}

.admin-dashboard-card {
  border: 1px solid var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 12px;
}

.admin-dashboard-card strong {
  display: block;
  margin-bottom: 5px;
  color: var(--navy);
  font-size: 24px;
}

.admin-dashboard-card span {
  color: var(--muted);
  font-size: 12px;
}

.admin-dashboard-card small {
  color: #7a8ca0;
  font-size: 11px;
  display: block;
  margin-top: 4px;
}

.admin-dashboard-actions {
  display: grid;
  grid-template-columns: repeat(auto-fit, minmax(150px, 1fr));
  gap: 8px;
  margin-top: 10px;
}

.admin-dashboard-actions button {
  border: 0;
  border-radius: 10px;
  background: var(--deep);
  color: #fff;
  min-height: 40px;
  padding: 0 12px;
  font-size: 13px;
  font-weight: 850;
}

.admin-dashboard-status {
  grid-column: 1 / -1;
  margin: 0;
  color: var(--muted);
  font-size: 11px;
  line-height: 1.4;
}

.admin-dashboard-actions .filter-control {
  min-width: 0;
}

.admin-dashboard-actions .filter-control select,
.admin-dashboard-actions .filter-control input {
  width: 100%;
}

.dashboard-filter {
  min-width: 120px;
}

.opening-empty {
  display: grid;
  gap: 8px;
  border: 1px dashed var(--line);
  border-radius: 12px;
  background: #fff;
  padding: 16px;
  color: var(--muted);
}

.app-toast {
  position: fixed;
  left: 50%;
  bottom: 78px;
  z-index: 80;
  transform: translateX(-50%);
  width: min(360px, calc(100% - 28px));
  border-radius: 14px;
  background: rgba(15, 30, 44, 0.94);
  color: #fff;
  box-shadow: 0 16px 38px rgba(3, 34, 52, 0.26);
  font-size: 14px;
  font-weight: 850;
  line-height: 1.4;
  padding: 13px 14px;
  text-align: center;
}

.app-toast[data-tone="success"] {
  background: rgba(13, 118, 82, 0.96);
}

.app-toast[data-tone="warn"] {
  background: rgba(181, 113, 17, 0.96);
}

.app-toast[data-tone="error"] {
  background: rgba(176, 48, 48, 0.96);
}

.app-toast[hidden],
.app-loading[hidden] {
  display: none;
}

.app-loading {
  position: fixed;
  inset: 0;
  z-index: 90;
  display: grid;
  place-items: center;
  background: rgba(6, 25, 38, 0.3);
  backdrop-filter: blur(3px);
}

.app-loading-card {
  display: grid;
  justify-items: center;
  gap: 9px;
  width: min(310px, calc(100% - 42px));
  border: 1px solid var(--line);
  border-radius: 18px;
  background: #fff;
  box-shadow: 0 20px 52px rgba(3, 34, 52, 0.2);
  padding: 24px 20px;
  text-align: center;
}

.app-loading-card strong {
  color: var(--navy);
  font-size: 19px;
  line-height: 1.25;
}

.app-loading-card p {
  color: var(--muted);
  font-size: 13px;
}

.app-loading-spinner {
  width: 32px;
  height: 32px;
  border: 4px solid #d8eff8;
  border-top-color: var(--deep);
  border-radius: 999px;
  animation: app-spin 0.8s linear infinite;
}

@keyframes app-spin {
  to { transform: rotate(360deg); }
}

@keyframes heroDrift {
  from {
    transform: scale(1);
  }
  to {
    transform: scale(1.04);
  }
}

@keyframes livePulse {
  70% {
    box-shadow: 0 0 0 8px rgba(127, 240, 199, 0);
  }
  100% {
    box-shadow: 0 0 0 0 rgba(127, 240, 199, 0);
  }
}

@media (prefers-reduced-motion: reduce) {
  *,
  *::before,
  *::after {
    animation-duration: 0.01ms !important;
    animation-iteration-count: 1 !important;
    scroll-behavior: auto !important;
    transition-duration: 0.01ms !important;
  }
}

@media (max-width: 430px) {
  .mobile-shell {
    box-shadow: none;
  }

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

@media (max-width: 359px) {
  .mobile-section {
    padding-right: 12px;
    padding-left: 12px;
  }

  .mobile-opening-card .opening-live-badge {
    position: static;
    width: fit-content;
    margin-bottom: 2px;
  }

  .mobile-opening-card header {
    padding-right: 0;
  }

  .bottom-nav {
    gap: 5px;
  }

  .bottom-nav a {
    font-size: 10px;
  }
}

@media (min-width: 700px) {
  .mobile-header {
    padding-right: 22px;
    padding-left: 22px;
  }

  .mobile-section {
    padding-right: 22px;
    padding-left: 22px;
  }

  .mobile-contact-tabs {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .filter-row-two {
    grid-template-columns: repeat(4, minmax(0, 1fr));
  }
}

@media (min-width: 760px) {
  .mobile-hero {
    min-height: 360px;
  }

  .mobile-openings,
  .compliance-grid,
  .policy-section {
    grid-template-columns: repeat(2, minmax(0, 1fr));
  }

  .referral-banner {
    grid-template-columns: minmax(0, 1fr) auto;
    align-items: center;
  }

  .referral-banner button {
    justify-self: end;
  }

  .bottom-nav {
    width: min(640px, calc(100% - 32px));
    margin-right: auto;
    margin-left: auto;
    border: 1px solid var(--line);
    border-radius: 999px;
    box-shadow: var(--shadow-soft);
  }
}

@media (min-width: 900px) {
  .mobile-section {
    padding-right: 28px;
    padding-left: 28px;
  }

  .trust-strip,
  .trust-metrics,
  .process-grid {
    gap: 10px;
  }

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

html.compact-viewport,
html.compact-viewport body {
  width: 100%;
  max-width: 100%;
  overflow-x: hidden;
}

html.compact-viewport .mobile-shell {
  width: 100%;
  max-width: 100%;
  margin: 0;
  box-shadow: none;
}

html.compact-viewport .mobile-header,
html.compact-viewport .mobile-section,
html.compact-viewport .mobile-footer {
  padding-right: 14px;
  padding-left: 14px;
}

html.compact-viewport .mobile-contact-tabs,
html.compact-viewport .mobile-openings,
html.compact-viewport .filter-row-two,
html.compact-viewport .compliance-grid,
html.compact-viewport .policy-section {
  grid-template-columns: minmax(0, 1fr) !important;
}

html.compact-viewport .mobile-opening-card .opening-live-badge {
  position: static;
  width: fit-content;
  margin-bottom: 2px;
}

html.compact-viewport .mobile-opening-card header {
  padding-right: 0;
}

html.compact-viewport .bottom-nav {
  width: auto;
  margin-right: 0;
  margin-left: 0;
  border-right: 0;
  border-left: 0;
  border-radius: 0;
}

.hero-proof-strip {
  display: flex;
  flex-wrap: wrap;
  gap: 6px;
  margin-top: 10px;
}

.hero-proof-strip span {
  display: inline-flex;
  min-height: 26px;
  align-items: center;
  border: 1px solid rgba(191, 238, 255, 0.34);
  border-radius: 999px;
  background: rgba(7, 31, 45, 0.32);
  color: #dff7ff;
  font-size: 10px;
  font-weight: 850;
  padding: 0 9px;
}

.mobile-tab-card {
  background: linear-gradient(180deg, #ffffff, #f7fcff);
}

.mobile-tab-card:first-child {
  border-color: #8ccce8;
  background: linear-gradient(135deg, #102f43, #176f98);
  color: #fff;
}

.mobile-tab-card:first-child span,
.mobile-tab-card:first-child strong,
.mobile-tab-card:first-child small {
  color: #fff;
}

.mobile-tab-card:first-child::before {
  background: #7ff0c7;
}

.referral-banner {
  background:
    radial-gradient(circle at 84% 12%, rgba(127, 240, 199, 0.36), transparent 32%),
    linear-gradient(135deg, rgba(16, 47, 67, 0.98), rgba(23, 111, 152, 0.92)),
    url("https://images.unsplash.com/photo-1521790797524-b2497295b8a0?auto=format&fit=crop&w=900&q=78") center / cover;
}

.referral-banner button {
  background: #7ff0c7;
  color: #092b23;
}

.opening-photo-preview {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 132px;
  border: 1px solid #dce8ef;
  border-radius: 14px;
  background: linear-gradient(135deg, #eef7fb, #ffffff);
}

.opening-photo-preview img {
  width: 100%;
  height: 132px;
  object-fit: cover;
}

.opening-photo-preview figcaption {
  position: absolute;
  left: 9px;
  bottom: 9px;
  max-width: calc(100% - 18px);
  border-radius: 999px;
  background: rgba(16, 47, 67, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  padding: 5px 8px;
}

.opening-photo-placeholder {
  align-content: center;
  justify-items: center;
  gap: 4px;
  color: var(--muted);
  text-align: center;
}

.opening-photo-placeholder span {
  color: var(--blue);
  font-size: 11px;
  font-weight: 900;
}

.opening-photo-placeholder strong {
  color: var(--navy);
  font-size: 17px;
  font-weight: 950;
}

.opening-photo-gallery {
  display: grid;
  gap: 10px;
  margin: 0 0 12px;
}

.opening-photo-gallery header {
  display: grid;
  gap: 3px;
}

.opening-photo-gallery h3 {
  color: var(--navy);
  font-size: 18px;
  font-weight: 950;
}

.opening-photo-gallery p {
  color: var(--muted);
  font-size: 12px;
  font-weight: 700;
  line-height: 1.45;
}

.opening-photo-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 8px;
}

.opening-photo-tile {
  position: relative;
  overflow: hidden;
  display: grid;
  min-height: 118px;
  border: 1px solid var(--line);
  border-radius: 12px;
  background: linear-gradient(135deg, #eef7fb, #ffffff);
  color: inherit;
}

.opening-photo-tile img {
  width: 100%;
  height: 118px;
  object-fit: cover;
}

.opening-photo-tile.has-image span {
  position: absolute;
  left: 8px;
  right: 8px;
  bottom: 8px;
  border-radius: 999px;
  background: rgba(16, 47, 67, 0.78);
  color: #fff;
  font-size: 10px;
  font-weight: 850;
  padding: 5px 7px;
}

.opening-impact-line {
  border-left: 4px solid #7ff0c7;
  border-radius: 10px;
  background: #effbf7;
  color: #0c5948;
  font-size: 12px;
  font-weight: 850;
  line-height: 1.45;
  padding: 9px 10px;
}

.detail-impact-title {
  display: block;
  margin-top: 10px;
  color: var(--navy);
  font-size: 18px;
  line-height: 1.3;
}

.audience-tabs-head {
  display: grid;
  gap: 4px;
}

.audience-tabs-head span {
  color: var(--blue);
  font-size: 12px;
  font-weight: 850;
}

.audience-tabs-head strong {
  color: var(--navy);
  font-size: 20px;
  font-weight: 850;
}

.audience-tabs {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 6px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #eef7fb;
  padding: 5px;
}

.reception-route-panel {
  display: grid;
  gap: 7px;
}

.reception-route-panel article {
  display: grid;
  grid-template-columns: auto minmax(0, 1fr);
  gap: 3px 8px;
  align-items: start;
  border: 1px solid #d9e8ef;
  border-radius: 13px;
  background: #f7fcff;
  padding: 10px;
}

.reception-route-panel article > span {
  display: inline-grid;
  place-items: center;
  grid-row: 1 / span 2;
  width: 24px;
  height: 24px;
  border-radius: 999px;
  background: #12384f;
  color: #fff;
  font-size: 11px;
  font-weight: 900;
}

.reception-route-panel strong {
  color: var(--navy);
  font-size: 13px;
  font-weight: 900;
}

.reception-route-panel p {
  color: var(--muted);
  font-size: 11px;
  font-weight: 700;
  line-height: 1.45;
}

.audience-tabs button {
  min-height: 40px;
  border: 0;
  border-radius: 10px;
  background: transparent;
  color: var(--deep);
  font-size: 13px;
  font-weight: 850;
}

.audience-tabs button.is-active {
  background: #fff;
  color: var(--navy);
  box-shadow: var(--shadow-soft);
}

.audience-panel {
  display: grid;
  gap: 10px;
}

.audience-panel[hidden] {
  display: none;
}

.audience-note {
  display: grid;
  gap: 5px;
  border: 1px solid var(--line);
  border-radius: 14px;
  background: #fff;
  color: var(--muted);
  padding: 13px;
  box-shadow: var(--shadow-soft);
}

.audience-note strong {
  color: var(--deep);
  font-size: 14px;
}

.audience-note span {
  font-size: 12px;
  line-height: 1.45;
}

.reception-intro-dialog {
  width: min(520px, 100%);
}

.reception-intro-body {
  display: grid;
  gap: 13px;
}

.reception-intro-body p {
  color: var(--muted);
  font-size: 14px;
  line-height: 1.6;
}

.reception-intro-body ol {
  display: grid;
  gap: 7px;
  margin: 0;
  padding: 0;
  list-style: none;
}

.reception-intro-body li {
  display: flex;
  align-items: center;
  gap: 9px;
  border-radius: 12px;
  background: #f3fbff;
  color: var(--deep);
  font-size: 13px;
  font-weight: 850;
  padding: 11px;
}

.reception-intro-body li::before {
  content: "";
  width: 7px;
  height: 7px;
  flex: 0 0 auto;
  border-radius: 999px;
  background: #7ff0c7;
}

.reception-intro-continue {
  min-height: 46px;
  border: 0;
  border-radius: 12px;
  background: var(--navy);
  color: #fff;
  font-size: 14px;
  font-weight: 850;
}

.reception-intro-body small {
  color: var(--muted);
  font-size: 11px;
  text-align: center;
}

.mobile-tab-card span {
  width: fit-content;
  border-radius: 999px;
  background: #eef7fb;
  color: var(--deep);
  padding: 5px 10px;
}

.mobile-tab-card:first-child span {
  background: rgba(127, 240, 199, 0.18);
  color: #dffdf2;
}

.ad-section[hidden] {
  display: none;
}

.ad-section {
  margin-top: 18px;
  margin-bottom: 18px;
}

.ad-unit-shell {
  display: grid;
  gap: 7px;
  min-height: 100px;
  border-top: 1px solid var(--line);
  border-bottom: 1px solid var(--line);
  padding: 13px 0;
}

.ad-unit-shell > span {
  color: var(--muted);
  font-size: 10px;
  font-weight: 850;
  letter-spacing: 0.08em;
}

.adsense-slot {
  min-height: 80px;
  width: 100%;
}

.footer-ad-section {
  width: 100%;
  margin: 0 0 18px;
}

/* Final UI polish */
:root {
  --radius-control: 12px;
  --radius-card: 14px;
  --focus-ring: 0 0 0 3px rgba(23, 111, 152, 0.16);
}

.mobile-actions a,
.lead-form button,
.referral-banner button,
.admin-dashboard-actions button,
.filter-action-row button,
.reception-intro-continue {
  min-height: 46px;
  border-radius: var(--radius-control);
  letter-spacing: 0;
}

.mobile-actions a:first-child,
.lead-form button,
.reception-intro-continue {
  background: linear-gradient(135deg, var(--navy), var(--deep));
  color: #fff;
}

.mobile-actions a:last-child,
.filter-action-row button,
.admin-dashboard-actions button {
  border-color: #cfe0e9;
  background: #fff;
  color: var(--deep);
}

.mobile-section,
.trust-strip div,
.process-grid article,
.policy-section article,
.compliance-grid article,
.mobile-opening-card,
.mobile-tab-card,
.audience-note,
.reception-route-panel article,
.filter-control,
.lead-form label,
.form-trust-note,
.data-flow-note,
.modal-dialog {
  border-radius: var(--radius-card);
}

.mobile-opening-card,
.mobile-tab-card,
.audience-note,
.reception-route-panel article,
.filter-control,
.lead-form label,
.form-trust-note {
  border-color: #d7e6ee;
  box-shadow: 0 7px 18px rgba(23, 59, 79, 0.055);
}

.filter-control input,
.filter-control select,
.lead-form input,
.lead-form select,
.lead-form textarea {
  min-height: 46px;
  border-color: #d4e4ec;
  border-radius: var(--radius-control);
  background: #fbfdff;
}

.filter-control input:focus,
.filter-control select:focus,
.lead-form input:focus,
.lead-form select:focus,
.lead-form textarea:focus,
.audience-tabs button:focus-visible,
.mobile-actions a:focus-visible,
.lead-form button:focus-visible,
.reception-intro-continue:focus-visible {
  outline: none;
  box-shadow: var(--focus-ring);
}

.hero-proof-strip span,
.mobile-live-row span,
.opening-live-badge {
  letter-spacing: 0;
}

.ad-unit-shell {
  border-radius: var(--radius-card);
  border: 1px dashed #cfe0e9;
  background: rgba(255, 255, 255, 0.58);
  padding-inline: 13px;
}
