@font-face{font-family:Outfit-Black;src:url(/web-assets/Outfit-Black.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-Bold;src:url(/web-assets/Outfit-Bold.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-ExtraBold;src:url(/web-assets/Outfit-ExtraBold.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-ExtraLight;src:url(/web-assets/Outfit-ExtraLight.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-Light;src:url(/web-assets/Outfit-Light.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-Medium;src:url(/web-assets/Outfit-Medium.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-Regular;src:url(/web-assets/Outfit-Regular.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-SemiBold;src:url(/web-assets/Outfit-SemiBold.ttf) format("truetype");font-display:swap}
@font-face{font-family:Outfit-Thin;src:url(/web-assets/Outfit-Thin.ttf) format("truetype");font-display:swap}
@font-face{font-family:MaterialCommunityIcons;src:url(/web-assets/MaterialCommunityIcons.ttf) format("truetype");font-display:block}

.welcome-layout{display:flex;width:100%;height:100vh;height:100dvh;min-height:0;justify-content:center;background:#0a0e1a}.mobile-experience{width:100%;max-width:480px;height:100%;min-height:0;display:flex;flex-direction:column;background:#0a0e1a}
@media (max-width: 600px) {
  .welcome-layout { box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); }
}

:root {
  --workspace-width: 100%;
  --form-width: 100%;
  --dialog-width: 480px;
}
html, body { margin: 0; min-height: 100%; background: #fafbfc; }
#root { min-height: 100vh; display: flex; justify-content: center; }
#web-home { height: 100vh; height: 100dvh; min-height: 0; padding-top: max(12px, env(safe-area-inset-top)); }
.app-tabbar { position: relative; height: calc(64px + env(safe-area-inset-bottom)); flex-shrink: 0; background: #fff; }
.app-tabbar > div { height: 100%; box-sizing: border-box; padding-bottom: env(safe-area-inset-bottom); }
.app-tabbar [role="button"] { min-height: 44px; justify-content: center; }
#account-providers { gap: 10px; }
.app-settings-card { display: flex; flex-direction: column; gap: 12px; padding: 18px; border-radius: 16px; background: white; border: 1px solid #eceef1; }
.app-settings-card [role="button"] { min-height: 44px; justify-content: center; align-items: flex-start; padding: 8px 12px; background: #fafbfc; border-radius: 12px; }
.app-settings-card input { border: 1px solid #d6d9de; border-radius: 12px; }
.creation-help { font: 14px Outfit-Regular, sans-serif; background: #fff; border-bottom: 1px solid #eceef1; color: #535c69; }
.creation-help summary { display: list-item; padding: 14px 20px; cursor: pointer; }
:focus-visible { outline: 2px solid #a84330; outline-offset: 2px; }
@media (min-width: 600px) {
  :root { --workspace-width: min(100%, 1040px); --form-width: min(100%, 680px); --dialog-width: 520px; }
  #web-home { padding-inline: 16px; }
}
@media (min-width: 850px) {
  #dashboard-sections > * { min-width: 0; }
  #account-access-card { display: grid; grid-template-columns: minmax(0, .9fr) minmax(0, 1.1fr); gap: 24px; padding: 32px; align-items: center; }
  #account-access-card > :not(#account-access-intro, #account-providers) { grid-column: 1 / -1; }
  #account-providers { padding-left: 24px; border-left: 1px solid #eceef1; }
}

@media (min-width: 850px) {
  .mobile-experience { max-width: 960px; }
  #welcome-content [data-testid="welcome.primaryCTA"] { width: 100%; max-width: 360px; }
  #dashboard-sections { display: block; columns: 2; column-gap: 24px; }
  #dashboard-sections > * { break-inside: avoid; margin-bottom: 20px; }
}

.connection-sections { display: flex; flex-direction: column; gap: 16px; }
@media (min-width: 850px) {
  #settings-sections, .connection-sections { display: grid; grid-template-columns: repeat(2,minmax(0,1fr)); gap: 0 24px; align-items: start; }
  #settings-sections { grid-template-areas: "credits account" "content preferences" "content about"; }
  #settings-credits { grid-area: credits; }
  #settings-account { grid-area: account; }
  #settings-content { grid-area: content; }
  #settings-preferences { grid-area: preferences; }
  #settings-about { grid-area: about; }
  .connection-sections { gap: 16px; }
  .connection-sections > :last-child { grid-column: 2; grid-row: 1 / span 2; }
}

.draft-actions button, .logo-crop button {
  min-height: 44px;
  margin: 3px;
  padding: 8px 14px;
  border: 1px solid #d8d9de;
  border-radius: 12px;
  background: #fff;
  color: #273042;
  font: 600 14px Outfit-Regular, sans-serif;
}
.draft-actions button.destructive { color: #9b3424; }
.logo-crop label { justify-content: space-between; min-height: 36px; }
.logo-crop input[type=range] { width: 70%; accent-color: #fa694f; }
.logo-crop::backdrop { background: #19202ca6; }

.ds-measurement,.ds-privacy-choice{position:fixed;z-index:10000;background:white;color:#28252b;font:14px Outfit-Regular,sans-serif}
.ds-measurement{bottom:12px;left:12px;max-width:min(340px,calc(100vw - 24px));box-sizing:border-box;padding:16px;border:1px solid #dad5d2;border-radius:14px;box-shadow:0 3px 18px #0002}
.ds-measurement p{margin:8px 0 12px}
.ds-measurement button,.ds-privacy-choice{border:1px solid #b8b3b0;border-radius:8px;padding:7px 12px;cursor:pointer}
.ds-privacy-choice{bottom:2px;left:2px;font-size:10px;padding:3px 5px}

/* Keep wrapped answers in the page's scroll flow, including generated text. */
textarea[data-testid^="onboarding.input."] {
  field-sizing: content;
  flex-shrink: 0;
  width: 100%;
  box-sizing: border-box;
  resize: none;
}

/* Extend the welcome artwork's backdrop while keeping its two columns bounded. */
@media (min-width: 850px) {
  .welcome-layout .mobile-experience { max-width: none; }
  .welcome-layout div:has(> #welcome-content) { justify-content: safe center; }
}

/* The shared walkthrough uses the warm mobile surface on question screens. */
@media (min-width: 681px) {
  #root:has([data-testid="onboarding.back"]) { background-color: #f8f6f5; }
}
@media (min-width: 850px) and (min-height: 650px) {
  div:has(> [data-testid="onboarding.back"]) {
    margin-bottom: clamp(16px, 6vh, 72px);
  }
}

@media (min-width: 850px) and (min-height: 650px) {
  /* Keep the final step bounded and lower it gently on tall displays. */
  #profile-ready-form { padding-block: clamp(24px, 6vh, 72px); }
}
