:root {
  --co-bg: #f4f7fb;
  --co-ink: #1a2740;
  --co-muted: #5c6b82;
  --co-primary: #1a5fb4;
  --co-primary-dark: #134a8c;
  --co-line: #d5e0ee;
  --co-card: #ffffff;
  --co-sidebar: #10243f;
  --co-sidebar-text: #d6e4f5;
  --co-warning: #9a5b00;
  --bs-primary: #1a5fb4;
  --bs-primary-rgb: 26, 95, 180;
  --bs-link-color: #1a5fb4;
  --bs-link-hover-color: #134a8c;
}

* { box-sizing: border-box; }

body {
  margin: 0;
  color: var(--co-ink);
  background: var(--co-bg);
  font-family: "Segoe UI", "Malgun Gothic", "Apple SD Gothic Neo", sans-serif;
}

a { color: var(--co-primary); }

.btn-primary {
  --bs-btn-bg: var(--co-primary);
  --bs-btn-border-color: var(--co-primary);
  --bs-btn-hover-bg: var(--co-primary-dark);
  --bs-btn-hover-border-color: var(--co-primary-dark);
  --bs-btn-active-bg: var(--co-primary-dark);
  --bs-btn-active-border-color: var(--co-primary-dark);
  --bs-btn-disabled-bg: var(--co-primary);
  --bs-btn-disabled-border-color: var(--co-primary);
}

.btn-outline-primary {
  --bs-btn-color: var(--co-primary);
  --bs-btn-border-color: var(--co-primary);
  --bs-btn-hover-bg: var(--co-primary);
  --bs-btn-hover-border-color: var(--co-primary);
  --bs-btn-active-bg: var(--co-primary-dark);
  --bs-btn-active-border-color: var(--co-primary-dark);
}

.btn-outline-primary {
  --bs-btn-color: var(--co-primary);
  --bs-btn-border-color: var(--co-primary);
  --bs-btn-hover-bg: var(--co-primary);
  --bs-btn-hover-border-color: var(--co-primary);
}

.home-wrap,
.auth-panel,
.app-content {
  animation: rise .25s ease;
}

@keyframes rise {
  from { opacity: 0; transform: translateY(6px); }
  to { opacity: 1; transform: none; }
}

.home-wrap {
  max-width: 720px;
  margin: 0 auto;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  justify-content: center;
  padding: 48px 24px;
}

.plane-health {
  --co-primary: #0b3a66;
  --co-primary-dark: #072844;
  --co-sidebar: #071e36;
  --co-bg: #e7eef6;
  --bs-primary: #0b3a66;
  --bs-primary-rgb: 11, 58, 102;
  --bs-link-color: #0b3a66;
  --bs-link-hover-color: #072844;
}

.plane-company {
  --co-primary: #0c3f86;
  --co-primary-dark: #082c61;
  --co-sidebar: #071833;
  --co-bg: #eef4fa;
  --co-accent: #12b5c9;
  --co-accent-ink: #084852;
  --bs-primary: #0c3f86;
  --bs-primary-rgb: 12, 63, 134;
  --bs-link-color: #0c3f86;
  --bs-link-hover-color: #082c61;
}

.plane-company .auth-intro {
  background:
    radial-gradient(circle at 18% 16%, rgba(18, 181, 201, .72), transparent 36%),
    linear-gradient(160deg, var(--co-primary), var(--co-primary-dark) 58%, var(--co-sidebar));
}

.plane-company .brand-mark:not(.brand-mark-lg) { background: #e4e8ee; }
.plane-company .brand-mark:not(.brand-mark-lg) img { filter: brightness(0) invert(46%); }
.plane-company .brand small { color: #b7c0cc; }
.plane-company .brand-mark-lg { box-shadow: inset 0 0 0 2px var(--co-accent); }
.plane-company .service-banner { background: var(--co-accent); color: var(--co-accent-ink); }
.plane-company .service-badge { background: #e4e8ee; color: #5c6778; }
.plane-company .sidebar-nav a.active { box-shadow: inset 3px 0 0 var(--co-accent); }
.plane-company .onboarding-step .step-no { color: var(--co-accent-ink); }
.plane-company .work-steps li.current { color: var(--co-accent-ink); box-shadow: inset 0 0 0 1.5px var(--co-accent); }
.plane-company .work-steps li.current .step-dot { border-color: var(--co-accent); color: var(--co-accent-ink); }
.plane-company .next-card { border-left-color: var(--co-accent); }
.plane-company :is(.form-control, .form-select):focus {
  border-color: var(--co-accent);
  box-shadow: 0 0 0 .2rem rgba(18, 181, 201, .28);
}

.service-banner,
.service-badge {
  display: inline-flex;
  align-items: center;
  width: fit-content;
  margin: 0;
  padding: 6px 10px;
  border-radius: 999px;
  background: var(--co-primary);
  color: #fff;
  font-size: .82rem;
  font-weight: 700;
}

.service-badge { margin-right: auto; margin-left: 12px; }

.eyebrow {
  letter-spacing: .14em;
  text-transform: uppercase;
  color: var(--co-primary);
  font-size: .78rem;
  font-weight: 700;
  margin-bottom: .4rem;
}

.auth-layout {
  min-height: 100vh;
  display: grid;
  grid-template-columns: minmax(280px, 1.1fr) minmax(320px, 480px);
}

.auth-intro {
  background:
    radial-gradient(circle at 20% 20%, rgba(255,255,255,.08), transparent 28%),
    linear-gradient(160deg, var(--co-primary), var(--co-primary-dark) 60%, var(--co-sidebar));
  color: #f4f8fc;
  padding: 64px 48px;
  display: flex;
  flex-direction: column;
  justify-content: flex-end;
}

.auth-intro h1 {
  font-size: clamp(2rem, 4vw, 3.2rem);
  line-height: 1.2;
  margin: .5rem 0 1rem;
}

.auth-intro .eyebrow { color: #b7d4f2; }

.auth-panel {
  background: #fff;
  padding: 48px 36px;
  overflow: auto;
}

.auth-panel h2 { margin-bottom: .25rem; }

.login-kind {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
  padding: 6px;
  background: #eef2f6;
  border-radius: 14px;
}

.login-kind button {
  border: 0;
  background: transparent;
  color: #5c6b82;
  border-radius: 10px;
  min-height: 46px;
  font-weight: 700;
}

.login-kind button.active {
  background: var(--co-primary);
  color: #fff;
}

.login-submit {
  min-height: 48px;
  border-radius: 999px;
  font-weight: 700;
}

.auth-switch { margin-top: 1rem; color: var(--co-muted); }

.app-shell { min-height: 100vh; display: flex; }

.app-sidebar {
  width: 248px;
  flex: none;
  background: var(--co-sidebar);
  color: var(--co-sidebar-text);
  padding: 20px 14px;
  display: flex;
  flex-direction: column;
  gap: 18px;
}

.brand {
  display: flex;
  gap: 10px;
  align-items: center;
  color: white;
  text-decoration: none;
  padding: 4px 8px;
}

.brand strong { display: block; font-size: 1.05rem; }
.brand small { color: rgba(255,255,255,.62); }

.brand-mark {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: 36px;
  height: 36px;
  flex: none;
  border-radius: 10px;
  background: var(--co-primary);
  box-shadow: inset 0 0 0 1px rgba(255,255,255,.14);
}
.brand-mark-lg {
  width: 56px;
  height: 56px;
  border-radius: 16px;
  background: rgba(255,255,255,.16);
}

.sidebar-nav { display: flex; flex-direction: column; gap: 2px; }

.nav-group {
  margin: 14px 12px 4px;
  font-size: .72rem;
  font-weight: 700;
  letter-spacing: .06em;
  color: rgba(255,255,255,.45);
}

.sidebar-nav a {
  color: var(--co-sidebar-text);
  text-decoration: none;
  border-radius: 10px;
  padding: 10px 12px;
  display: flex;
  gap: 10px;
  align-items: center;
}

.sidebar-nav a:hover {
  background: rgba(255,255,255,.06);
  color: white;
}

.sidebar-nav a.active {
  background: rgba(255,255,255,.12);
  color: white;
  font-weight: 600;
  box-shadow: inset 3px 0 0 rgba(255,255,255,.75);
}

.app-main { flex: 1; min-width: 0; display: flex; flex-direction: column; }

.app-topbar {
  min-height: 68px;
  display: flex;
  align-items: center;
  gap: 12px;
  padding: 12px 24px;
  background: rgba(255,255,255,.92);
  border-bottom: 1px solid var(--co-line);
  position: sticky;
  top: 0;
  z-index: 20;
}

.topbar-title { font-weight: 700; }
.topbar-user { margin-left: auto; display: flex; align-items: center; gap: 12px; }
.topbar-user strong, .topbar-user span { display: block; }
.topbar-user span { color: var(--co-muted); font-size: .85rem; }

.app-content { padding: 28px 24px 48px; }

.page-heading {
  display: flex;
  justify-content: space-between;
  gap: 16px;
  align-items: flex-end;
  margin-bottom: 18px;
}

.page-heading h1 { font-size: 1.7rem; margin: 0 0 4px; }
.page-heading p { margin: 0; color: var(--co-muted); }

.data-card {
  border: 1px solid var(--co-line);
  border-radius: 16px;
  box-shadow: none;
  background: var(--co-card);
}

.stat-card {
  background: white;
  border: 1px solid var(--co-line);
  border-radius: 16px;
  padding: 18px;
  height: 100%;
}

.stat-card span { color: var(--co-muted); display: block; font-size: .9rem; }
.stat-card strong { font-size: 1.8rem; line-height: 1.2; }
a.stat-card {
  display: block;
  color: inherit;
  text-decoration: none;
  transition: border-color .15s ease, box-shadow .15s ease;
}
a.stat-card:hover {
  border-color: var(--co-primary);
  box-shadow: 0 6px 18px rgba(16, 36, 63, .08);
}
.stat-card.attention strong { color: #b42318; }
button.stat-card {
  display: block;
  width: 100%;
  text-align: left;
  color: inherit;
  cursor: pointer;
}
button.stat-card:hover,
button.stat-card.active {
  border-color: var(--co-primary);
  box-shadow: inset 0 0 0 1px var(--co-primary);
}

.place-head { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 12px; align-items: flex-start; }
.place-count { text-align: right; flex: none; }
.place-count strong { display: block; font-size: 1.4rem; line-height: 1.1; }
.place-count span { color: var(--co-muted); font-size: .8rem; }
.place-progress {
  height: 8px;
  margin: 12px 0;
  background: var(--co-line);
  border-radius: 999px;
  overflow: hidden;
}
.place-progress span { display: block; height: 100%; background: var(--co-primary); }
.place-progress.short span { background: #b42318; }
.place-meta { display: flex; flex-wrap: wrap; gap: 6px; align-items: center; margin-bottom: 12px; }
.place-company {
  background: var(--co-bg);
  color: var(--co-ink);
  border-radius: 999px;
  padding: 3px 10px;
  font-size: .82rem;
}
.place-target { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 12px; }
.place-target label { display: flex; align-items: center; gap: 8px; margin: 0; color: var(--co-muted); font-size: .9rem; }
.place-target input { width: 5.5rem; }
.place-target .form-text { flex-basis: 100%; }
.place-visits summary { cursor: pointer; color: var(--co-primary); font-weight: 600; }
.place-visit { padding: 12px 0 4px; border-top: 1px solid var(--co-line); margin-top: 8px; }
.place-visit-head { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; margin-bottom: 4px; }
.place-visit-head .btn { margin-left: auto; }
.place-finding { color: #9a5b00; font-size: .9rem; }

.onboarding {
  display: grid;
  grid-template-columns: repeat(3, minmax(0, 1fr));
  gap: 12px;
  margin-bottom: 24px;
}
.onboarding-step {
  display: flex;
  gap: 12px;
  align-items: flex-start;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: 16px;
  color: inherit;
  text-decoration: none;
}
a.onboarding-step:hover { border-color: var(--co-primary); }
.onboarding-step .step-no {
  flex: none;
  width: 30px;
  height: 30px;
  border-radius: 999px;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  font-weight: 700;
  background: var(--co-bg);
  color: var(--co-primary);
  border: 1px solid var(--co-line);
}
.onboarding-step.done .step-no {
  background: var(--co-primary);
  border-color: var(--co-primary);
  color: #fff;
}
.onboarding-step strong { display: block; margin-bottom: 2px; }
.onboarding-step small { color: var(--co-muted); }

.filter-bar {
  display: flex;
  flex-wrap: wrap;
  gap: 8px;
  align-items: center;
  margin-bottom: 12px;
}
.filter-bar .form-control { flex: 1 1 240px; max-width: 360px; }
.filter-bar .form-select { flex: 0 1 160px; width: auto; }

.status-tabs {
  display: flex;
  gap: 6px;
  margin-bottom: 12px;
  overflow-x: auto;
  scrollbar-width: none;
}
.status-tabs::-webkit-scrollbar { display: none; }
.status-tabs button {
  flex: none;
  padding: 6px 14px;
  border: 1px solid var(--co-line);
  border-radius: 999px;
  background: #fff;
  color: var(--co-muted);
  font-size: .88rem;
  white-space: nowrap;
}
.status-tabs button:hover { color: var(--co-primary); border-color: var(--co-primary); }
.status-tabs button.active {
  background: var(--co-primary);
  border-color: var(--co-primary);
  color: #fff;
  font-weight: 600;
}

.work-steps {
  display: flex;
  gap: 4px;
  list-style: none;
  padding: 0;
  margin: 0 0 16px;
  overflow-x: auto;
  scrollbar-width: none;
}
.work-steps:empty { display: none; }
.work-steps::-webkit-scrollbar { display: none; }
.work-steps li {
  flex: 1 0 auto;
  display: flex;
  align-items: center;
  gap: 6px;
  padding: 8px 10px;
  border-radius: 10px;
  background: rgba(255, 255, 255, .7);
  color: var(--co-muted);
  font-size: .82rem;
  white-space: nowrap;
}
.work-steps .step-dot {
  display: inline-grid;
  place-items: center;
  width: 22px;
  height: 22px;
  border-radius: 50%;
  border: 1px solid var(--co-line);
  background: #fff;
  font-size: .75rem;
  font-weight: 700;
}
.work-steps li.done { color: var(--co-ink); }
.work-steps li.done .step-dot { background: var(--co-primary); border-color: var(--co-primary); color: #fff; }
.work-steps li.current { background: #fff; color: var(--co-primary); font-weight: 600; box-shadow: inset 0 0 0 1.5px var(--co-primary); }
.work-steps li.current .step-dot { border-color: var(--co-primary); color: var(--co-primary); }

.form-label:has(+ :is(input, select, textarea)[required])::after {
  content: " *";
  color: #c62828;
}

.detail-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(200px, 1fr));
  column-gap: 20px;
}
.detail-grid > .mt-3,
.detail-grid > img.sign { grid-column: 1 / -1; }

.empty-cell .btn { min-width: 120px; }

.next-card { border-left: 4px solid var(--co-primary); }

.table thead th {
  color: var(--co-muted);
  font-weight: 600;
  font-size: .82rem;
  border-bottom-color: var(--co-line);
}

.pager {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  margin-top: 12px;
}

.sidebar-backdrop { display: none; }

@media (max-width: 991px) {
  .auth-layout { grid-template-columns: 1fr; }
  .auth-intro { min-height: 240px; padding: 32px 24px; }
  .auth-panel { padding: 28px 20px 48px; }
  .app-sidebar {
    position: fixed;
    inset: 0 auto 0 0;
    z-index: 1040;
    transform: translateX(-105%);
    transition: transform .2s ease;
    width: min(84vw, 280px);
  }
  .app-sidebar.open { transform: none; }
  .sidebar-backdrop.show {
    display: block;
    position: fixed;
    inset: 0;
    background: rgba(18, 33, 31, .45);
    z-index: 1030;
  }
  .topbar-user span { display: none; }
  .app-content, .app-topbar { padding-left: 16px; padding-right: 16px; }
  .page-heading { flex-direction: column; align-items: stretch; }
}

.mobile-body {
  background: var(--co-bg);
  min-height: 100vh;
}

.mobile-top {
  display: flex;
  justify-content: space-between;
  align-items: center;
  gap: 12px;
  padding: 16px 18px;
  background: var(--co-sidebar);
  color: var(--co-sidebar-text);
}

.mobile-top small { display: block; opacity: .75; }

.mobile-main {
  max-width: 720px;
  margin: 0 auto;
  padding: 20px 16px 48px;
}

.mobile-hero h1 { font-size: 1.6rem; margin-bottom: .35rem; }
.mobile-hero p { color: var(--co-muted); margin-bottom: 1rem; }

.mobile-section { display: grid; gap: 10px; margin-bottom: 22px; }
.mobile-section h2 { font-size: 1rem; margin: 0; }
.mobile-list { display: grid; gap: 12px; }
.mobile-card {
  display: grid;
  gap: 6px;
  padding: 16px;
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: 16px;
  text-decoration: none;
  color: inherit;
  box-shadow: 0 10px 24px rgba(16, 36, 63, .06);
}
.mobile-card-head {
  display: flex;
  justify-content: space-between;
  align-items: flex-start;
  gap: 10px;
}
.mobile-card-head .badge { flex: none; }
.mobile-actionbar {
  position: sticky;
  bottom: 0;
  z-index: 20;
  margin: 16px -16px -48px;
  padding: 12px 16px calc(12px + env(safe-area-inset-bottom));
  background: rgba(255, 255, 255, .96);
  border-top: 1px solid var(--co-line);
  box-shadow: 0 -8px 20px rgba(16, 36, 63, .06);
  backdrop-filter: blur(6px);
}
.mobile-actionbar .d-flex:not(:has(> :not(.d-none))) { display: none !important; }
.mobile-empty {
  padding: 28px 16px;
  text-align: center;
  color: var(--co-muted);
  background: rgba(255,255,255,.7);
  border-radius: 16px;
}
.sign-pad {
  width: 100%;
  height: auto;
  touch-action: none;
  background: #fff;
  border: 1px solid #111;
  border-radius: 8px;
  cursor: crosshair;
}
.rep-sign-card {
  max-width: 760px;
}
.legal-cert td.seal {
  text-align: center;
  vertical-align: middle;
  padding: 8px;
}
.legal-cert td.seal .seal-face {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 72px;
}
.legal-cert .seal-pair {
  position: relative;
  display: inline-block;
  line-height: 0;
}
.legal-cert img.sign {
  display: block;
  max-width: 100%;
  max-height: 64px;
  width: auto;
  height: auto;
  margin: 0;
}
.legal-cert .seal-mark {
  position: absolute;
  right: -2px;
  bottom: -2px;
  line-height: 1;
}
.legal-cert td.seal.inline {
  padding: 6px 8px;
}
.legal-cert td.seal.inline .seal-row {
  display: flex;
  align-items: flex-end;
  justify-content: flex-end;
  gap: 2px;
  min-height: 52px;
}
.legal-cert td.seal.inline img.sign {
  max-width: 168px;
  max-height: 48px;
}
.legal-cert td.seal.inline .seal-mark {
  position: static;
}
.mobile-panel {
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: 16px;
  padding: 16px;
  margin-bottom: 16px;
}
.mobile-photo-grid {
  display: grid;
  grid-template-columns: repeat(auto-fill, minmax(140px, 1fr));
  gap: 12px;
}
.mobile-photo {
  background: #f5f8fc;
  border: 1px solid var(--co-line);
  border-radius: 12px;
  padding: 8px;
}
.mobile-photo img {
  width: 100%;
  aspect-ratio: 1;
  object-fit: cover;
  border-radius: 8px;
  display: block;
}

.certificate-sheet {
  background: #fff;
  border: 1px solid var(--co-line);
  border-radius: 18px;
  padding: 28px;
  max-width: 860px;
  box-shadow: 0 16px 40px rgba(16, 36, 63, .06);
}
.certificate-sheet.legal-wrap {
  border: none;
  border-radius: 0;
  box-shadow: none;
  background: transparent;
  padding: 0;
  max-width: 760px;
}
.legal-cert { color: #111; background: #fff; }
.legal-form-name { margin: 0 0 8px; font-size: .8rem; }
.legal-cert table { width: 100%; border-collapse: collapse; border: 1.5px solid #111; }
.legal-cert th, .legal-cert td {
  border: 1px solid #111;
  padding: 16px 12px;
  vertical-align: middle;
  font-weight: 400;
  font-size: .95rem;
  white-space: pre-line;
}
.legal-cert .title { padding: 22px 12px; }
.legal-cert td.plain { border: none; }
.legal-cert tr.tail td { border-top: 1px solid #111; }
.legal-cert .center { text-align: center; }
.legal-cert .right { text-align: right; }
.legal-cert .title { font-size: 1.55rem; letter-spacing: .35em; font-weight: 700; text-align: center; }
.legal-cert .label { text-align: center; }
.legal-cert .paper { margin: 6px 0 0; text-align: right; font-size: .75rem; color: #333; }
.cert-header {
  text-align: center;
  margin-bottom: 24px;
  border-bottom: 2px solid var(--co-sidebar);
  padding-bottom: 16px;
}
.cert-header h2 { margin: 0 0 4px; font-size: 1.7rem; }
.cert-header p { margin: 0; color: var(--co-muted); }
.cert-grid {
  display: grid;
  grid-template-columns: repeat(2, minmax(0, 1fr));
  gap: 12px 18px;
  margin-bottom: 20px;
}
.cert-row {
  display: grid;
  gap: 4px;
  padding: 10px 12px;
  background: #f5f8fc;
  border-radius: 10px;
}
.cert-row span { color: var(--co-muted); font-size: .82rem; }
.cert-block h3 {
  font-size: .95rem;
  margin: 0 0 6px;
  color: var(--co-muted);
}
.cert-block p { margin: 0 0 14px; white-space: pre-wrap; }
.cert-footer {
  margin-top: 24px;
  padding-top: 16px;
  border-top: 1px solid var(--co-line);
}

@media print {
  .app-sidebar, .app-topbar, .no-print, .sidebar-backdrop { display: none !important; }
  .app-main, .app-content { padding: 0 !important; margin: 0 !important; }
  .certificate-sheet {
    box-shadow: none;
    border: none;
    border-radius: 0;
    max-width: none;
    padding: 0;
  }
}

@media (max-width: 767px) {
  .cert-grid { grid-template-columns: 1fr; }
  .onboarding { grid-template-columns: 1fr; }
  .filter-bar .form-control,
  .filter-bar .form-select { flex: 1 1 100%; max-width: none; }
  .app-content { padding-top: 20px; }
  .page-heading h1 { font-size: 1.45rem; }
  .table-stack thead { display: none; }
  .table-stack,
  .table-stack tbody,
  .table-stack tr,
  .table-stack td { display: block; width: 100%; }
  .table-stack tr {
    padding: 10px 14px;
    border-bottom: 1px solid var(--co-line);
  }
  .table-stack tr:last-child { border-bottom: 0; }
  .table-stack td {
    display: flex;
    justify-content: space-between;
    align-items: center;
    gap: 12px;
    padding: 4px 0;
    border: 0;
    text-align: right;
  }
  .table-stack td::before {
    content: attr(data-label);
    flex: none;
    color: var(--co-muted);
    font-size: .82rem;
    text-align: left;
  }
  .table-stack td:first-child {
    font-weight: 600;
    justify-content: flex-start;
    text-align: left;
  }
  .table-stack td:first-child::before,
  .table-stack td[data-label=""]::before,
  .table-stack td[colspan]::before { content: none; }
  .table-stack td[colspan] { justify-content: center; text-align: center; }
  .table-stack td[data-label=""] { justify-content: flex-end; }
  .table-stack td:has(> .btn) { justify-content: flex-end; gap: 6px; }
  .table-stack td:has(> .btn)::before { margin-right: auto; }
  .table-stack td.empty-cell { flex-direction: column; }
  .modal-dialog {
    width: 100vw;
    max-width: none;
    height: 100%;
    margin: 0;
  }
  .modal-content {
    height: 100%;
    border: 0;
    border-radius: 0;
  }
  .modal-body { overflow-y: auto; }
  .modal-footer { padding-bottom: calc(.75rem + env(safe-area-inset-bottom)); }
  .modal-footer .btn { flex: 1; }
}
