/* VisitFlow root portal — restrained whites + deep blue, shared tokens. */
body.portal {
  margin: 0;
  min-height: 100vh;
  display: flex;
  flex-direction: column;
  background: var(--white);
  color: var(--ink);
  font-family: -apple-system, BlinkMacSystemFont, "Apple SD Gothic Neo",
    "Noto Sans KR", "Malgun Gothic", "Segoe UI", system-ui, sans-serif;
}
.portal-header {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  padding: 14px 24px;
  border-bottom: 1px solid var(--line);
  max-width: 960px;
  width: 100%;
  margin: 0 auto;
}
.portal-brand {
  display: flex;
  align-items: baseline;
  gap: 10px;
  font-size: 17px;
  font-weight: 800;
  white-space: nowrap;
}
.portal-brand-sk { color: var(--ink); }
.portal-brand-sep { color: var(--line); font-weight: 400; }
.portal-brand-vf { color: var(--primary); }
.portal-locale {
  display: flex;
  align-items: center;
  gap: 8px;
  font-size: 13px;
}
.portal-locale label { color: var(--muted); font-weight: 700; }
.portal-locale select {
  width: auto;
  min-height: 44px;
  border: 1px solid var(--line);
  border-radius: 8px;
  padding: 0 10px;
  background: var(--white);
  color: var(--ink);
  font: inherit;
}
.portal-main {
  flex: 1;
  width: 100%;
  max-width: 640px;
  margin: 0 auto;
  padding: 88px 24px 48px;
  text-align: center;
}
.portal-env {
  display: inline-block;
  margin: 0 0 20px;
  padding: 4px 14px;
  border-radius: 999px;
  background: var(--warning-soft);
  color: var(--warning);
  font-size: 13px;
  font-weight: 700;
}
.portal-env[hidden] { display: none; }
.portal-title {
  margin: 0;
  font-size: 34px;
  line-height: 1.3;
  letter-spacing: -0.01em;
  color: var(--ink);
  overflow-wrap: anywhere;
}
.portal-sub {
  margin: 14px 0 0;
  font-size: 16px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.portal-cta {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin: 36px auto 0;
  max-width: 320px;
}
.portal-btn {
  display: flex;
  align-items: center;
  justify-content: center;
  min-height: 52px;
  padding: 12px 20px;
  border: 1px solid var(--primary);
  border-radius: 10px;
  background: var(--white);
  color: var(--primary);
  font-size: 16px;
  font-weight: 800;
  text-decoration: none;
}
.portal-btn.primary {
  background: var(--primary);
  color: var(--white);
}
.portal-btn.primary:active { background: var(--pressed); }
.portal-btn:focus-visible,
.portal-locale select:focus-visible {
  outline: 3px solid var(--primary);
  outline-offset: 2px;
}
.portal-note {
  margin: 24px 0 0;
  font-size: 13px;
  color: var(--muted);
  overflow-wrap: anywhere;
}
.portal-footer {
  padding: 20px 24px 28px;
  text-align: center;
  font-size: 12.5px;
  color: var(--muted);
}
@media (max-width: 480px) {
  .portal-header { padding: 12px 16px; }
  .portal-brand { font-size: 15px; gap: 8px; }
  .portal-main { padding: 64px 16px 40px; }
  .portal-title { font-size: 28px; }
  .portal-sub { font-size: 15px; }
  .portal-cta { max-width: none; }
  .portal-btn { min-height: 52px; }
}
@media (prefers-reduced-motion: reduce) {
  body.portal * { transition: none !important; }
}
