/* Account page (makeSettingsPage), Call-from own-number sheet (PhoneCallOwnNumberController)
   and the "Get it on your phone" page (PhoneCallController). Sizes in px = pt. */

/* ================= account page ================= */
.acct-page .col-scroll { padding: 4px 24px 24px; }

/* signed in: PhoneCallSettingsCard of PhoneCallSettingsRow */
.acct-card { border: 1px solid var(--card-border); border-radius: var(--r-xl); padding: 4px 0; background: var(--window-bg); }
.acct-row { display: flex; align-items: center; gap: 12px; min-height: 44px; padding: 8px 16px; }
.acct-row + .acct-row { border-top: 1px solid var(--card-border); margin: 0 16px; padding-left: 0; padding-right: 0; }
.acct-row[hidden] + .acct-row { border-top: 0; }
.acct-row-text { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.acct-row-title { font-size: 13px; font-weight: 500; line-height: 16px; }
.acct-row-hint { font-size: 11px; line-height: 14px; color: var(--label); }
.acct-row-control { flex: none; display: flex; align-items: center; max-width: 60%; min-width: 0; }
.acct-value { font-size: 13px; text-align: right; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; min-width: 0; }
.acct-btn { min-width: 88px; }
body.in-call .acct-logout { opacity: .45; pointer-events: none; }

/* guest: sign-in / sign-up form */
.acct-form { display: flex; flex-direction: column; align-items: stretch; gap: 10px; }
.acct-auth-title { margin: 0 0 6px; font-size: 13px; line-height: 17px; }
.acct-input { height: 28px; font-size: 13px; }
.acct-message { margin: 0; font-size: 12px; line-height: 15px; color: var(--red); }
.acct-message.ok { color: var(--label); }
.acct-submit { width: 100%; }
.acct-links { display: flex; flex-wrap: wrap; gap: 6px 16px; align-self: flex-start; }
.acct-link { font-size: 13px; font-weight: 400; }

/* right: how it works */
.acct-info { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.acct-step { display: flex; align-items: flex-start; gap: 12px; }
.acct-step-badge { width: 26px; height: 26px; flex: none; border-radius: 13px; background: var(--subtle-blue-back); display: flex; align-items: center; justify-content: center; font-size: 13px; font-weight: 600; }
.acct-step-text { margin: 0; font-size: 13px; line-height: 17px; padding-top: 4px; }
.acct-info-buttons { display: flex; flex-wrap: wrap; gap: 12px; margin-top: 10px; }
.acct-btn-wide { min-width: 120px; }

/* ================= Call from: own-number sheet ================= */
.cf-button { height: 28px; }
.cf-sheet { display: flex; flex-direction: column; align-items: flex-start; gap: 12px; padding: 24px 24px 20px; }
.cf-sheet > :not(.cf-code):not(.cf-resend) { align-self: stretch; }
.cf-title { margin: 0; font-size: 18px; font-weight: 700; line-height: 22px; }
.cf-body { margin: 0; font-size: 13px; line-height: 17px; }
.cf-notice { margin: 0; font-size: 13px; font-weight: 500; line-height: 17px; color: var(--accent); }
.cf-number-row { display: flex; align-items: center; gap: 8px; }
.cf-country { flex: none; }
.cf-number { flex: 1; min-width: 0; height: 28px; font-size: 15px; }
.cf-warning { display: flex; align-items: flex-start; gap: 6px; font-size: 13px; line-height: 17px; }
.cf-warning-icon { color: var(--orange); flex: none; display: flex; padding-top: 1px; }
.cf-warning-icon svg.ic { width: 16px; height: 16px; }
.cf-code { width: 180px; height: 40px; border-radius: 6px; border: 1px solid var(--card-border); background: var(--text-bg); outline: none; text-align: center; font-size: 24px; font-weight: 600; font-variant-numeric: tabular-nums; letter-spacing: 2px; }
.cf-code:focus { border-color: var(--accent); box-shadow: 0 0 0 3px rgba(66, 112, 192, .25); }
.cf-code::placeholder { color: var(--placeholder); }
.cf-resend { margin-bottom: 8px; }
.cf-buttons { display: flex; align-items: center; gap: 10px; }
.cf-spacer { flex: 1; }
.cf-back { min-width: 96px; }
.cf-primary { min-width: 120px; }

/* ================= Get it on your phone (PhoneCallController) ================= */
.mob-page { display: flex; min-height: 0; overflow: auto; }
.mob-left { flex: 0 0 59%; min-width: 0; padding: 36px 48px 24px; display: flex; flex-direction: column; align-items: flex-start; border-right: 1px solid var(--separator); }
.mob-right { flex: 1 1 41%; min-width: 0; padding: 36px 24px 24px; display: flex; flex-direction: column; align-items: center; }
.mob-headline { margin: 0; font-size: 32px; font-weight: 700; line-height: 38px; white-space: pre-line; }
.mob-lead { margin: 16px 0 0; font-size: 15px; line-height: 20px; white-space: pre-line; }
.mob-how { margin-top: 28px; width: 100%; max-width: 640px; border-radius: var(--r-l); background: rgba(104, 136, 192, .0525); border: 1.5px solid rgba(66, 112, 192, .6); padding: 22px 24px 24px; }
.mob-how h3 { margin: 0 0 20px; font-size: 18px; font-weight: 600; line-height: 22px; }
.mob-steps { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 20px 24px; }
.mob-row { display: flex; align-items: flex-start; gap: 14px; min-width: 0; }
.mob-row-texts { display: flex; flex-direction: column; gap: 4px; min-width: 0; }
.mob-row-title { font-size: 15px; font-weight: 600; line-height: 19px; }
.mob-row-body { font-size: 13.5px; font-weight: 300; line-height: 17px; }
.mob-circle { width: 30px; height: 30px; flex: none; border-radius: 15px; background: var(--accent); color: #fff; display: flex; align-items: center; justify-content: center; font-size: 14px; font-weight: 600; }
.mob-features { margin-top: 28px; display: flex; flex-direction: column; gap: 20px; }
.mob-features .mob-row-title { font-size: 17px; line-height: 21px; }
.mob-feature-icon { width: 30px; flex: none; display: flex; justify-content: center; color: var(--active-blue); padding-top: 1px; }
.mob-feature-icon svg.ic { width: 20px; height: 20px; }

.mob-get-title { margin: 0; font-size: 22px; font-weight: 700; line-height: 27px; text-align: center; max-width: 340px; }
.mob-get-body { margin: 12px 0 0; font-size: 14px; font-weight: 300; line-height: 18px; text-align: center; max-width: 340px; white-space: pre-line; }
.mob-seg { margin-top: 24px; display: flex; width: 280px; max-width: 100%; height: 28px; padding: 2px; gap: 2px; border-radius: 7px; background: var(--group-fill); }
.mob-seg button { flex: 1; border: 0; border-radius: 5px; background: transparent; font-size: 14px; cursor: pointer; color: var(--label); }
.mob-seg button:hover:not(.on) { background: var(--hover-fill); }
.mob-seg button.on { background: var(--control-bg); box-shadow: 0 1px 2px rgba(0, 0, 0, .18), 0 0 0 .5px rgba(0, 0, 0, .06); font-weight: 500; }
.mob-qr { margin-top: 16px; width: 260px; height: 260px; max-width: 100%; border-radius: var(--r-xl); background: #fff; border: 1px solid var(--card-border); display: flex; align-items: center; justify-content: center; flex: none; }
.mob-qr img { width: 75%; height: 75%; image-rendering: pixelated; }
.mob-scan { margin: 12px 0 0; font-size: 13px; font-weight: 300; text-align: center; }
.mob-open { margin-top: 18px; width: 280px; max-width: 100%; height: 44px; font-size: 15px; font-weight: 500; text-decoration: none; }

/* low windows: the QR shrinks first (fitToHeight), down to 120 */
@media (max-height: 760px) and (min-width: 901px) {
    .mob-qr { width: clamp(120px, calc(100vh - 500px), 260px); height: clamp(120px, calc(100vh - 500px), 260px); }
}

@media (max-width: 900px) {
    .acct-page .col-scroll { padding: 4px 16px 24px; }
    .acct-page .section-header { padding: 0 16px; }
    .mob-page { flex-direction: column; }
    .mob-left { flex: none; padding: 24px 16px; border-right: 0; border-bottom: 1px solid var(--separator); }
    .mob-right { flex: none; padding: 24px 16px 32px; }
    .mob-headline { font-size: 26px; line-height: 32px; }
    .mob-steps { grid-template-columns: minmax(0, 1fr); }
    .cf-sheet { padding: 20px 16px 16px; }
}
@media (max-width: 480px) {
    .cf-buttons { flex-wrap: wrap; }
    .cf-buttons .cf-spacer { display: none; }
    .cf-back, .cf-primary { flex: 1; min-width: 0; }
    .cf-number-row { flex-wrap: wrap; }
    .cf-number { flex-basis: 160px; }
}
