:root {
  --bg: #f3f3f5;
  --surface: rgba(255,255,255,0.62);
  --surface-soft: #e8f0e9;
  --surface-soft-2: #ddeadf;
  --text: rgba(0,0,0,0.9);
  --muted: rgba(38,38,38,0.56);
  --brand: #148f2b;
  --brand-hover: #117a25;
  --brand-active: #0e661e;
  --brand-soft: #e6f4e8;
  --radius-xl: 18px;
  --radius-lg: 16px;
  --radius-md: 14px;
  --radius-sm: 10px;
  --shadow: 0 0 0 1px rgba(38,38,38,0.03);
  --fontFamilyDisplay: SBSansDisplay, SBSansText, SBSans, Arial, Helvetica, sans-serif;
  --fontFamilyText: SBSansText, SBSans, Arial, Helvetica, sans-serif;
}

* { box-sizing: border-box; }
html, body { width: 100%; height: 100%; overflow: hidden; }
body {
  margin: 0;
  background: var(--bg);
  color: var(--text);
  font-family: var(--fontFamilyText);
  -webkit-font-smoothing: antialiased;
  -moz-osx-font-smoothing: grayscale;
}
button, input { font: inherit; }
a { color: inherit; text-decoration: none; }

#app {
  width: 100%;
  height: 100vh;
  height: 100dvh;
  overflow: hidden;
}

/* ── start view layout (mirrors reference flex structure) ── */
.app-outer {
  width: 100%;
  height: 100%;
  display: flex;
  justify-content: center;
  padding-top: 128px;
}

.app-inner {
  flex: 1 1 0%;
  width: min(100%, 464px);
  max-width: 464px;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
  padding: 0 24px;
}

.app-content {
  flex: 1 1 0%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  padding-bottom: clamp(32px, 5vh, 64px);
}

.btn-group {
  display: flex;
  flex-direction: column;
  gap: 12px;
  margin-top: 24px;
}

.bottom-group {
  display: flex;
  flex-direction: column;
  gap: 8px;
  padding-top: 16px;
}

.phones-row {
  display: flex;
  align-items: stretch;
  gap: 8px;
}

.phones-row .info-card {
  flex: 1 1 0%;
}

/* ── login view shell (unchanged structure) ── */
.app-shell {
  width: 100%;
  height: 100%;
  display: flex;
  flex-direction: column;
  justify-content: space-between;
  align-items: center;
  padding-top: clamp(60px, 10vh, 100px);
  padding-bottom: clamp(12px, 2.2vh, 20px);
}

.top-disclaimer {
  position: absolute;
  top: clamp(18px, 3vh, 28px);
  left: 50%;
  transform: translateX(-50%);
  z-index: 3;
}

.disclaimer-pill {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  height: 32px;
  padding: 0 14px;
  border-radius: 999px;
  background: var(--brand-soft);
  color: var(--brand);
  font-family: var(--fontFamilyText);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
  letter-spacing: -0.02em;
  white-space: nowrap;
}

.page-center {
  width: 100%;
  display: flex;
  justify-content: center;
}

.main-card-wrap,
.form-view {
  width: min(100%, 468px);
  padding: 0 24px;
}

.main-card-wrap {
}

.start-title,
.login-title {
  margin: 0;
  color: #1b1f27;
  font-family: var(--fontFamilyDisplay);
  letter-spacing: -0.04em;
}

.start-title {
  font-size: 30px;
  line-height: 0.98;
  font-weight: 700;
  margin-bottom: 36px;
}

.primary-button,
.secondary-button,
.back-button,
.link-button,
.tab-button,
.password-toggle {
  border: 0;
  cursor: pointer;
}

.primary-button,
.secondary-button,
.tab-button {
  width: 100%;
  height: 52px;
  border-radius: 16px;
  font-family: var(--fontFamilyText);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.023em;
  transition: background-color .12s ease, transform .08s ease, border-color .12s ease;
}

.primary-button {
  background: var(--brand);
  color: #fff;
}
.primary-button:hover { background: var(--brand-hover); }
.primary-button:active { background: var(--brand-active); transform: translateY(1px); }

.secondary-button {
  background: #fff;
  color: var(--text);
}
.testing-footnote {
  margin-top: 12px;
  max-width: 430px;
  color: rgba(38,38,38,0.56);
  font-family: var(--fontFamilyText);
  font-size: 13px;
  line-height: 18px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.bottom-info {
  width: min(100%, 468px);
  padding: 0 24px;
}

.info-grid {
  display: grid;
  grid-template-columns: 1fr 1fr;
  gap: 8px;
}

.info-card,
.pdf-card {
  background: #fff;
  border-radius: var(--radius-xl);
  box-shadow: var(--shadow);
}

.info-card {
  min-height: 72px;
  padding: 14px 18px;
}

.info-big {
  margin: 0 0 3px;
  font-family: var(--fontFamilyText);
  font-size: 20px;
  line-height: 24px;
  font-weight: 500;
  letter-spacing: -0.023em;
}

.info-small {
  margin: 0;
  color: rgba(38,38,38,0.56);
  font-family: var(--fontFamilyText);
  font-size: 15px;
  line-height: 16px;
  font-weight: 400;
  letter-spacing: -0.02em;
}

.pdf-card {
  display: flex;
  align-items: center;
  gap: 12px;
  min-height: 64px;
  padding: 10px 16px;
}

.pdf-icon {
  flex: 0 0 auto;
  width: 40px;
  height: 40px;
  border-radius: 12px;
  display: grid;
  place-items: center;
  background: linear-gradient(180deg, #c370fa 0%, #ad42f5 100%);
  color: #fff;
  font-family: var(--fontFamilyText);
  font-size: 13px;
  line-height: 18px;
  font-weight: 700;
}

.pdf-text {
  color: var(--brand);
  font-family: var(--fontFamilyText);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.023em;
}

.cookies-text {
  margin: 10px 0 0;
  color: rgba(38,38,38,0.56);
  font-family: var(--fontFamilyText);
  font-size: 15px;
  line-height: 20px;
  font-weight: 400;
  letter-spacing: -0.023em;
}

.cookies-text strong {
  color: var(--brand);
  font-weight: 600;
}


.form-view {
}

.back-button {
  height: 32px;
  padding: 0 12px 0 10px;
  border-radius: 999px;
  background: #eceeef;
  color: var(--text);
  display: inline-flex;
  align-items: center;
  gap: 4px;
  font-family: var(--fontFamilyText);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.023em;
  transition: background-color .12s ease;
}
.back-button:hover { background: #e2e4e5; }

.back-arrow {
  font-size: 20px;
  line-height: 1;
  transform: translateY(-1px);
}

.login-title {
  margin-top: 14px;
  font-size: 32px;
  line-height: 1.05;
  font-weight: 600;
}

.login-subtitle {
  margin: 10px 0 22px;
  max-width: 410px;
  color: rgba(38,38,38,0.56);
  font-family: var(--fontFamilyText);
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.023em;
}

.field {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  height: 52px;
  margin-bottom: 12px;
  border-radius: 12px;
  background: rgba(0,0,0,0.04);
  transition: background-color .12s ease;
}
.field:hover { background: rgba(0,0,0,0.07); }

.field input {
  width: 100%;
  height: 100%;
  border: 0;
  outline: 0;
  background: transparent;
  color: var(--text);
  padding: 0 18px;
  font-family: var(--fontFamilyText);
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.023em;
}

.field input::placeholder {
  color: rgba(38,38,38,0.46);
}

.password-toggle {
  position: absolute;
  right: 12px;
  width: 34px;
  height: 34px;
  border-radius: 10px;
  background: transparent;
}

.eye,
.eye::before,
.eye::after {
  position: absolute;
  display: block;
}

.eye {
  left: 50%;
  top: 50%;
  width: 18px;
  height: 12px;
  border: 2px solid var(--brand);
  border-radius: 12px / 9px;
  transform: translate(-50%, -50%);
}

.eye::before {
  content: "";
  left: 50%;
  top: 50%;
  width: 4px;
  height: 4px;
  border-radius: 50%;
  background: var(--brand);
  transform: translate(-50%, -50%);
}

.eye.off::after {
  content: "";
  left: 50%;
  top: 50%;
  width: 22px;
  height: 2px;
  background: var(--brand);
  transform: translate(-50%, -50%) rotate(-45deg);
}

.checkbox-row {
  display: flex;
  align-items: center;
  gap: 12px;
  margin: 8px 0 22px;
  user-select: none;
}

.checkbox {
  flex: 0 0 auto;
  width: 20px;
  height: 20px;
  margin: 0;
  accent-color: var(--brand);
}

.checkbox-label {
  font-family: var(--fontFamilyText);
  font-size: 17px;
  line-height: 24px;
  font-weight: 400;
  letter-spacing: -0.023em;
}

.submit-wrap {
  margin-bottom: 18px;
}

.link-button {
  display: block;
  margin: 0 auto;
  background: transparent;
  color: var(--text);
  font-family: var(--fontFamilyText);
  font-size: 17px;
  line-height: 24px;
  font-weight: 600;
  letter-spacing: -0.023em;
}

.notice {
  margin-top: 18px;
  padding: 14px 16px;
  border-radius: 14px;
  background: #e6f4e8;
  color: #0c5a1a;
  font-family: var(--fontFamilyText);
  font-size: 15px;
  line-height: 20px;
  font-weight: 600;
  letter-spacing: -0.023em;
}

.hidden { display: none; }

.web-sbol-hp0g9s {
  position: absolute;
  top: 32px;
  left: 32px;
}

@media (max-width: 560px) {
  .web-sbol-hp0g9s {
    left: 50%;
    transform: translateX(-50%);
    top: 20px;
  }
}

@media (max-height: 760px) {
  .app-shell { padding-top: 52px; padding-bottom: 10px; }
  .start-title { font-size: 42px; margin-bottom: 26px; }
  .primary-button, .secondary-button, .tab-button, .field { height: 50px; }
  .info-card { min-height: 68px; padding: 12px 16px; }
  .pdf-card { min-height: 60px; }
  .pdf-text, .cookies-text { font-size: 14px; line-height: 18px; }
  .login-title { font-size: 30px; }
  .login-subtitle { margin-bottom: 18px; font-size: 16px; line-height: 22px; }
  .checkbox-row { margin-bottom: 18px; }
}

/* ── FAB Widget ── */
.fab-widget {
  position: fixed;
  bottom: 20px;
  right: 20px;
  z-index: 1000;
}

.fab-list {
  position: absolute;
  bottom: 62px;
  right: 0;
  display: flex;
  flex-direction: column;
  gap: 12px;
  opacity: 1;
  transform: translateY(0) scale(1);
  transform-origin: bottom right;
  pointer-events: auto;
  transition: opacity 0.15s ease, transform 0.15s ease;
}

.fab-list.hidden {
  opacity: 0;
  transform: translateY(8px) scale(0.95);
  pointer-events: none;
}

.fab-icon-btn {
  width: 50px;
  height: 50px;
  border: 0;
  background: transparent;
  padding: 0;
  cursor: pointer;
  flex-shrink: 0;
  display: block;
  border-radius: 50%;
}

.fab-icon-btn img {
  width: 50px;
  height: 50px;
  display: block;
}

@media (max-width: 560px) and (max-height: 700px) {
  .app-outer {
    padding-top: 60px;
    overflow-y: auto;
  }
  .app-content {
    padding-bottom: 20px;
  }
  .start-title {
    font-size: 26px;
    margin-bottom: 16px;
  }
  .btn-group {
    margin-top: 14px;
    gap: 8px;
  }
  .info-card { min-height: 58px; padding: 10px 12px; }
  .info-big { font-size: 15px; }
  .pdf-card { min-height: 52px; }
}

@media (max-width: 560px) {
  .main-card-wrap,
  .form-view,
  .bottom-info {
    width: 100%;
    padding: 0 16px;
  }

  .app-outer {
    padding-top: 76px;
  }

  .app-shell { padding-top: 80px; }
  .start-title {
    font-size: 30px;
    line-height: 1.0;
    margin-bottom: 20px;
  }

  .btn-group {
    gap: 10px;
    margin-top: 20px;
  }

  .bottom-group {
    gap: 6px;
  }

  .app-inner {
    padding: 0 16px;
  }

  .primary-button,
  .secondary-button,
  .tab-button {
    height: 50px;
    border-radius: 999px;
    font-size: 16px;
    line-height: 20px;
  }

  .field {
    height: 50px;
    border-radius: 14px;
    font-size: 16px;
    line-height: 20px;
  }

  .bottom-info {
    padding: 0 16px;
  }

  .info-card {
    min-height: 66px;
    padding: 12px 14px;
  }

  .info-big {
    font-size: 16px;
    line-height: 20px;
  }

  .info-small,
  .pdf-text,
  .cookies-text,
  .testing-footnote,
  .disclaimer-pill,
  .notice {
    font-size: 12px;
    line-height: 16px;
  }

  .pdf-card {
    min-height: 58px;
    padding: 10px 14px;
  }

  .pdf-icon {
    width: 36px;
    height: 36px;
    border-radius: 10px;
    font-size: 12px;
  }

  .login-title { font-size: 28px; }
  .login-subtitle,
  .checkbox-label,
  .link-button,
  .field input {
    font-size: 16px;
    line-height: 20px;
  }

}
