:root{font-family:system-ui,sans-serif;color:#142c44;background:#f2f6fb}*{box-sizing:border-box}body{margin:0;padding:24px 16px}main{max-width:780px;margin:auto;background:#fff;padding:clamp(20px,5vw,48px);border-radius:18px;box-shadow:0 12px 40px #142c4410}h1{font-size:2rem}h2{font-size:1.2rem;margin-top:30px}p{line-height:1.6}a{color:#006acc}label{display:block;margin:16px 0}input:not([type=checkbox]),select,textarea{display:block;width:100%;padding:12px;border:1px solid #9babbc;border-radius:7px;font:inherit;margin-top:6px}button{background:#006acc;color:#fff;border:0;border-radius:7px;padding:11px 16px;font:inherit;cursor:pointer;margin:4px 4px 4px 0}button:disabled{opacity:.5;cursor:wait}.check{line-height:1.7}.item{border-bottom:1px solid #dce4ee;padding:14px 0;overflow-wrap:anywhere}#message{font-weight:600;min-height:24px}textarea{resize:vertical}[hidden]{display:none!important}:focus-visible{outline:3px solid #f6ad2b;outline-offset:3px}
/* Account access and dashboard */
.account-page{background:#f5f7fb;color:#152b44;padding:0;min-height:100vh;font-family:Inter,ui-sans-serif,system-ui,-apple-system,BlinkMacSystemFont,"Segoe UI",sans-serif}.site-header,.site-footer{max-width:1160px;margin:auto;display:flex;align-items:center;padding:28px 32px;gap:24px}.site-header{justify-content:space-between}.brand{text-decoration:none;font-size:30px;font-weight:850;letter-spacing:-1.5px;color:#1474ce}.brand span{color:#253e56}.brand .brand-dot{color:#f59a36}.header-link{font-size:13px;font-weight:600;text-decoration:none;color:#52667a}.account-shell{max-width:1080px;display:grid;grid-template-columns:.9fr 1.1fr;padding:0;border:1px solid #e2e8f0;border-radius:26px;overflow:hidden;box-shadow:0 20px 70px #203e6610;margin:20px auto 0}.welcome-panel{padding:48px;background:linear-gradient(145deg,#e6f3ff,#f2f8ff 65%,#fff2e5);display:flex;flex-direction:column;align-items:flex-start}.eyebrow{font-size:10px;letter-spacing:2px;font-weight:750;color:#57748e}.welcome-panel h1{font-size:clamp(28px,3vw,38px);line-height:1.18;letter-spacing:-1.5px;margin:12px 0}.welcome-panel>p{font-size:15px;color:#5a7084;max-width:300px}.bubble-art{height:145px;width:230px;position:relative;margin:30px 0 12px}.bubble{display:block;position:absolute;font-size:32px;font-weight:750;letter-spacing:-1px;padding:14px 30px;border-radius:23px;box-shadow:0 12px 25px #2673bd1c}.bubble.blue{background:#1678d3;color:white;transform:rotate(-7deg);top:5px;left:0;border-bottom-left-radius:5px}.bubble.orange{background:#ffb866;color:#543b23;transform:rotate(7deg);right:0;bottom:9px;border-bottom-right-radius:5px}.benefits{list-style:none;padding:12px 0;margin:0;color:#405d77;font-size:13px;line-height:2.5}.benefits li:before{content:'✓';display:inline-block;margin-right:12px;color:#1274c7;font-weight:bold}.adults-note{font-size:11px;color:#71869a;margin-top:32px}.account-content{padding:40px 48px;min-width:0;background:white}.auth-tabs{display:flex;padding:5px;background:#f1f5f9;border-radius:12px;gap:4px;margin-bottom:30px}.auth-tabs a{flex:1;text-align:center;padding:10px 5px;border-radius:8px;text-decoration:none;font-size:13px;font-weight:650;color:#63778b}.auth-tabs a[aria-current]{background:#fff;color:#126ec1;box-shadow:0 2px 6px #203e6610}.account-content #login h2{font-size:27px;line-height:1.2;letter-spacing:-.8px;margin:12px 0}.muted{color:#6d7e90;font-size:14px;line-height:1.65}.account-content label{font-size:13px;font-weight:600;margin:22px 0 8px}.account-content input:not([type=checkbox]),.account-content select,.account-content textarea{background:#fbfcfe;border:1px solid #d8e1ec;border-radius:10px;padding:14px;font-size:14px;color:#243e58}.account-content input::placeholder{color:#97a5b4}.account-content .check{display:flex;align-items:flex-start;gap:10px;font-size:12px;line-height:1.65;font-weight:400;color:#687b8e;margin:20px 0}.check input{accent-color:#1678d3;flex-shrink:0;margin:4px 0}.account-content a{color:#136fbf}.account-content button,.primary-link{border-radius:10px;background:#1478cf;font-size:13px;font-weight:650;padding:13px 18px}.account-content .full-button{display:flex;width:100%;align-items:center;justify-content:center;gap:15px;margin:0}.privacy-note{text-align:center;color:#7a8b9b;font-size:11px;margin:20px 0}.account-footer{border-top:1px solid #e9eef4;padding-top:22px;margin-top:28px;font-size:12px;line-height:1.7;color:#7a8b9b}.account-footer span{display:block;font-size:10px;margin-top:8px}.site-footer{justify-content:center;font-size:11px;color:#8998a8;flex-wrap:wrap;padding:26px 20px}.site-footer a{color:#788b9d;text-decoration:none}.verify-card{border-top:1px solid #e3eaf1;margin-top:24px;padding-top:4px}.verify-card button{margin-top:15px!important}#code{letter-spacing:8px;font-size:24px;font-variant-numeric:tabular-nums}#message:empty{display:none}#message:not(:empty){padding:12px 14px;background:#eef6ff;border:1px solid #d7e9fb;border-radius:10px;font-size:13px;line-height:1.5;margin:0 0 24px;overflow-wrap:anywhere}.signed-in .account-shell{grid-template-columns:280px 1fr}.signed-in .welcome-panel{padding:32px}.signed-in .welcome-panel h1{font-size:28px}.signed-in .bubble-art{transform:scale(.8);transform-origin:left center;width:220px}.chat-actions{display:flex;align-items:center;flex-wrap:wrap;gap:12px;font-size:13px}.account-content .primary-link{color:white;text-decoration:none}#closeAccount,#logout{background:#edf3f9;color:#42617d}#history:empty:after{content:'Your recent conversations will appear here.'}#reports:empty:after{content:'No reports yet.'}#history:empty,#reports:empty{padding:18px;background:#f6f9fc;color:#7890a5;font-size:13px;border-radius:10px}.account-content h2{font-size:19px}.account-content .item{font-size:13px}.account-content .item button{display:block;margin-top:10px}
@media(max-width:760px){.site-header{padding:20px}.brand{font-size:26px}.account-shell,.signed-in .account-shell{display:block;margin:8px 16px 0;border-radius:20px}.welcome-panel{display:none}.account-content{padding:28px 24px}.account-content #login h2{font-size:25px}.site-footer{gap:15px}.header-link{font-size:12px}}@media(prefers-reduced-motion:no-preference){.account-content button,.primary-link{transition:background .15s,box-shadow .15s}.account-content button:hover,.primary-link:hover{background:#0965b6;box-shadow:0 4px 12px #1478cf20}}

/* Reuse the homepage palette, typography and header rather than a separate brand. */
body.account-page.index-page{font-family:'Roboto',-apple-system,BlinkMacSystemFont,'Segoe UI',sans-serif;color:var(--ink);background:radial-gradient(1100px 540px at 12% -6%,rgba(1,127,254,.10),transparent 65%),radial-gradient(900px 480px at 88% -4%,rgba(24,182,106,.08),transparent 60%),var(--bg)}
.account-page.index-page .account-shell{margin-top:48px;border-radius:var(--radius-xl);border-color:var(--line);box-shadow:var(--shadow-soft)}
.account-page.index-page .welcome-panel{background:linear-gradient(145deg,rgba(1,127,254,.055),rgba(24,182,106,.035)),white;justify-content:center;gap:14px}
.account-badge{display:inline-flex;border:1px solid rgba(24,182,106,.22);color:#147c49;background:rgba(24,182,106,.08);border-radius:999px;padding:8px 12px;font-size:12px;font-weight:700;margin:12px 0}
.account-page.index-page .welcome-panel h1{font-weight:900;letter-spacing:-1.4px;font-size:38px}.welcome-panel h1 span{color:var(--blue)}
.account-page.index-page .account-content a{color:var(--blue-deep)}.account-page.index-page .account-content .primary-link{color:white}
.account-page.index-page .account-content button,.account-page.index-page .primary-link{background:linear-gradient(135deg,var(--blue),var(--blue-deep));border-radius:var(--radius-sm);box-shadow:0 8px 18px -10px rgba(1,127,254,.5)}
.account-page.index-page #closeAccount,.account-page.index-page #logout{background:var(--soft-blue);color:var(--blue-deep);box-shadow:none}
.account-page.index-page .auth-tabs{border:1px solid var(--line);background:#f5f8fc;border-radius:16px}.account-page.index-page .auth-tabs a[aria-current]{color:var(--blue);border-radius:12px}
.account-page.index-page .eyebrow{color:var(--muted)}.account-page.index-page .muted,.account-page.index-page .welcome-panel>p{color:var(--muted)}
@media(max-width:760px){.account-page.index-page .account-shell{margin:24px 16px 0}.account-page.index-page .duck-header{grid-template-columns:minmax(0,1fr) auto;padding:12px;gap:6px}.account-page.index-page #logo{padding:0}.account-page.index-page #logo .logo{width:100%;max-width:220px;height:auto}.account-page.index-page .index-nav{display:flex}.account-page.index-page .index-nav a{padding:8px;font-size:12px}}

body.account-page.index-page.account-embedded{background:white}.account-embedded .duck-sticky,.account-embedded .welcome-panel,.account-embedded .site-footer{display:none!important}.account-page.index-page.account-embedded .account-shell{display:block;margin:0;border:0;border-radius:0;box-shadow:none;width:100%;max-width:none}.account-embedded .account-content{padding:24px}.account-embedded .account-footer{margin-top:24px}

@media(max-width:760px){.account-embedded .account-content{padding:18px max(16px,env(safe-area-inset-right,0px)) 24px max(16px,env(safe-area-inset-left,0px))}.account-embedded input:not([type=checkbox]),.account-embedded select,.account-embedded textarea{font-size:16px}.account-embedded .item,.account-embedded #status{overflow-wrap:anywhere}.account-embedded button,.account-embedded .primary-link{min-height:44px}}

.account-content .text-button{background:none!important;box-shadow:none!important;color:var(--blue-deep);padding:8px 0;text-align:left;text-decoration:underline}.auth-options{display:flex;flex-wrap:wrap;justify-content:space-between;gap:8px}.password-card{margin:24px 0;padding:20px;border:1px solid var(--line);border-radius:16px;background:#fbfcfe}.password-card h2{margin-top:0}#passwordLogin .full-button,#savePassword .full-button{margin-top:20px}.account-content input[type=password]{width:100%;box-sizing:border-box}@media(max-width:760px){.password-card{padding:14px}.account-content input[type=password],#loginEmail{font-size:16px}}

.account-embedded #chatEntry { display: none !important; }
.close-account-section { margin-top: 24px; padding-top: 20px; border-top: 1px solid #e0e9f4; }
.close-account-section[hidden] { display: none; }
body.account-page.index-page.ow-buttons #closeAccount {
  --ow-button-fill: transparent;
  --ow-button-hover: transparent;
  --ow-button-shadow: none;
  display: inline-flex;
  align-items: center;
  justify-content: center;
  width: auto;
  min-width: 0;
  min-height: 32px;
  margin: 0;
  padding: 4px 0;
  color: #8a919a !important;
  border: 0 !important;
  border-radius: 0 !important;
  text-decoration: underline !important;
  text-underline-offset: 3px;
  font-size: 12px;
  line-height: 18px;
  font-weight: 500;
}
.account-content input:not([type=checkbox]),.account-content select,.account-content textarea {
  border-color: #c6dcf6;
  border-radius: 12px;
  background-color: #f8fbff;
  color: #142c49;
  min-height: 46px;
  box-sizing: border-box;
  font-family: inherit;
}
.account-content :is(input:not([type=checkbox]),select,textarea):focus {
  outline: 0;
  border-color: #017ffe;
  box-shadow: 0 0 0 3px rgba(1,127,254,.16);
  background-color: #fff;
}
.account-content select {
  appearance: none;
  padding-right: 40px;
  background-image: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='0 0 24 24' fill='none' stroke='%230066cc' stroke-width='2' stroke-linecap='round' stroke-linejoin='round'%3E%3Cpath d='m6 9 6 6 6-6'/%3E%3C/svg%3E");
  background-repeat: no-repeat;
  background-position: right 12px center;
  background-size: 18px;
}
/* Compact account overview, with sign out alongside the profile heading. */
.signed-in .account-content { padding: 28px; background: #f4f8fe; }
.account-page.index-page.signed-in .welcome-panel { justify-content: flex-start; padding-top: 42px; }
.account-profile { padding: 22px; border: 1px solid #c9dff7; border-radius: 20px; background: linear-gradient(125deg,#fff 30%,#edf6ff); box-shadow: 0 5px 18px #19436b06; }
.account-profile-top { display: flex; align-items: center; gap: 14px; }
.profile-avatar { display: grid; place-items: center; flex: 0 0 48px; height: 48px; color: #fff; border-radius: 16px; background: linear-gradient(135deg,#017ffe,#0066cc); }
.profile-avatar svg { width: 26px; height: 26px; }
.profile-heading { flex: 1; min-width: 0; }
.account-content .profile-heading h2 { margin: 0 0 7px; font-size: 22px; letter-spacing: -.5px; line-height: 1.15; }
.account-state { display: inline-flex; align-items: center; gap: 5px; color: #167447; font-size: 11px; font-weight: 700; }
.account-state::before { content: ''; width: 6px; height: 6px; border-radius: 50%; background: currentColor; }
.account-state.is-restricted { color: #a34220; }
.account-page.index-page .account-profile #logout { display: inline-flex; align-items: center; justify-content: center; gap: 7px; flex: 0 0 auto; margin: 0; padding: 10px 12px; min-height: 44px; border: 1px solid #ccdef1; border-radius: 12px; background: #fff; color: #315b83; box-shadow: none; white-space: nowrap; }
.account-profile #logout svg { width: 17px; height: 17px; }
.account-page.index-page .account-profile #logout:hover { border-color: #017ffe; background: #edf6ff; color: #0066cc; }
.account-profile #status { margin: 16px 0 0; padding-top: 15px; border-top: 1px solid #dce9f6; color: #647b91; font-size: 13px; line-height: 1.6; }
.account-section,.signed-in .password-card { margin: 18px 0 0; padding: 24px; border: 1px solid #dce7f3; border-radius: 18px; background: #fff; }
.account-section h2 { margin: 0 0 6px; letter-spacing: -.25px; }
.account-section > .muted,.password-card > .muted { margin: 6px 0 20px; font-size: 13px; }
.account-section .item:last-child { border-bottom: 0; }
.account-content .field-help { font-size: 12px; color: #688099; line-height: 1.6; margin: 8px 0 14px; }
.birthday-field { min-width: 0; width: 100%; max-width: 100%; }
.birthday-field label { display: flex; align-items: center; gap: 8px; }
.birthday-control { position: relative; width: 100%; min-width: 0; max-width: 100%; }
.birthday-placeholder { position: absolute; top: 50%; left: 13px; right: 42px; transform: translateY(-50%); color: #446786; font-size: 16px; line-height: 1.5; pointer-events: none; }
.birthday-control.has-value .birthday-placeholder,.birthday-control:focus-within .birthday-placeholder { display: none; }
.birthday-control:not(.has-value):not(:focus-within) :is(#birthday,#profileBirthday)::-webkit-datetime-edit { opacity: 0; }
.birthday-control:not(.has-value):not(:focus-within) :is(#birthday,#profileBirthday)::-webkit-date-and-time-value { opacity: 0; }
.field-badge { border: 1px solid #c4ddf8; padding: 3px 7px; border-radius: 6px; background: #edf6ff; color: #0066cc; font-size: 10px; }
/* Reset the mobile date control's native sizing and paint, including Safari's inner value. */
.account-content :is(#birthday,#profileBirthday) {
  -webkit-appearance: none;
  appearance: none;
  display: block;
  box-sizing: border-box;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  inline-size: 100%;
  min-inline-size: 0;
  max-inline-size: 100%;
  height: 52px;
  min-height: 52px;
  margin: 0;
  padding: 12px;
  border: 1px solid #8ebbec;
  border-radius: 12px;
  background: #eaf3ff;
  color: #163a60;
  -webkit-text-fill-color: #163a60;
  color-scheme: light;
  font-family: inherit;
  font-size: 16px;
  font-weight: 500;
  line-height: 1.5;
  text-align: left;
}
.account-content :is(#birthday,#profileBirthday):focus { background: #edf6ff; border-color: #017ffe; box-shadow: 0 0 0 3px rgba(1,127,254,.16); }
.account-content :is(#birthday,#profileBirthday)::-webkit-calendar-picker-indicator { cursor: pointer; flex: 0 0 20px; width: 20px; height: 20px; margin: 0; padding: 0; opacity: 1; }
.account-content :is(#birthday,#profileBirthday)::-webkit-date-and-time-value { min-width: 0; min-height: 24px; margin: 0; padding: 0; text-align: left; color: #163a60; -webkit-text-fill-color: #163a60; }
.account-content :is(#birthday,#profileBirthday)::-webkit-datetime-edit { min-width: 0; padding: 0; color: #163a60; }
@media (max-width: 760px) {
  .signed-in .account-content { padding: 16px; }
  .account-section,.signed-in .password-card { padding: 18px; }
  .account-profile { padding: 18px; }
  .account-profile-top { gap: 10px; }
  .account-content input[type=date] { font-size: 16px; }
}
@media (max-width: 420px) {
  .profile-avatar { display: none; }
  .account-content .profile-heading h2 { font-size: 20px; }
  .account-page.index-page .account-profile #logout { padding: 10px; font-size: 12px; }
  .account-section,.signed-in .password-card { padding: 16px; }
}
/* Keep account cards compact in the page and the shared chat drawer. */
.account-content #account { font-size: 12px; }
.account-content #account .profile-heading h2 { font-size: 18px; }
.account-content #account :is(.account-section,.password-card) h2 { font-size: 16px; }
.account-content #account :is(.muted,.item,label),
.account-content #account .account-profile #status { font-size: 12px; }
.account-content #account .field-help { font-size: 11px; }
.account-content #account :is(#history,#reports):empty { font-size: 12px; }
@media (min-width: 521px) {
  @supports (appearance: base-select) {
    .account-content select,.account-content select::picker(select) { appearance: base-select; }
    .account-content select::picker-icon { display: none; }
    .account-content select::picker(select) {
      margin-block: 6px; padding: 6px; border: 1px solid #c6dcf6; border-radius: 14px;
      background: #fff; color: #142c49; box-shadow: 0 12px 36px rgba(20,44,73,.18);
      max-inline-size: calc(100vw - 24px); max-block-size: min(320px, calc(100dvh - 24px)); overflow-y: auto;
    }
    .account-content select option { min-height: 42px; padding: 11px 12px; border-radius: 9px; background: #fff; color: #142c49; font: inherit; white-space: normal; overflow-wrap: anywhere; }
    .account-content select option:is(:hover,:focus) { background: #edf5ff; color: #0066cc; outline: none; }
    .account-content select option:checked { background: #e5f1ff; color: #0059b3; font-weight: 700; }
    .account-content select option::checkmark { color: #0066cc; }
  }
}

/* Login and registration: a focused form alongside the conversation panel. */
body.account-page.index-page:not(.signed-in),body.account-page.index-page.auth-setup {
  background: #f6f9fd;
}
.account-page.index-page .account-shell {
  width: min(1060px, calc(100% - 64px));
  margin: 44px auto 0;
  border-radius: 26px;
  grid-template-columns: .94fr 1.06fr;
  border-color: #dfe8f3;
  box-shadow: 0 18px 60px -28px #1a467e36;
}
.account-page.index-page .welcome-panel {
  position: relative;
  overflow: hidden;
  padding: 38px;
  gap: 0;
  justify-content: flex-start;
  background: radial-gradient(ellipse at 0 100%,#188ef7 0,transparent 65%),#0869d7;
  color: #fff;
}
.welcome-top { display: flex; justify-content: space-between; align-items: center; width: 100%; gap: 12px; }
.account-page.index-page .welcome-top .eyebrow { color: #e5f1ff; font-size: 10px; letter-spacing: 1.8px; }
.adults-pill { padding: 6px 9px; border: 1px solid #ffffff4d; border-radius: 9px; color: #fff; font-size: 11px; font-weight: 700; }
.welcome-copy { margin-top: 46px; }
.account-page.index-page .welcome-panel h1 { font-size: clamp(32px,3.5vw,44px); font-weight: 700; line-height: 1.12; letter-spacing: -1.6px; margin: 0 0 20px; }
.account-page.index-page .welcome-panel h1 span { color: #c6e4ff; }
.welcome-copy p { color: #e2f0ff; font-size: 14px; line-height: 1.75; margin: 0; }
.hello-art { width: 100%; max-width: 340px; margin: 32px 0 36px; display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.hello-bubble { display: flex; align-items: center; gap: 12px; padding: 15px 18px; font-size: 15px; font-weight: 500; box-shadow: 0 12px 24px #003c8c29; }
.hello-first { background: #fff; color: #193b60; border-radius: 18px 18px 18px 5px; transform: rotate(-3deg); }
.hello-avatar { display: grid; place-items: center; width: 29px; height: 29px; border-radius: 50%; color: #126ad4; background: #eaf3ff; font-size: 21px; }
.hello-avatar svg { width: 20px; height: 20px; }
.hello-reply { align-self: flex-end; border: 1px solid #ffffff42; background: #3189e2; color: #fff; border-radius: 18px 18px 5px 18px; transform: rotate(2deg); }
.hello-dot { width: 7px; height: 7px; border-radius: 50%; background: #a4edce; }
.hello-typing { display: flex; gap: 5px; padding: 13px 17px; border: 1px solid #ffffff33; border-radius: 16px 16px 16px 5px; background: #ffffff14; margin-top: 2px; }
.hello-typing i { width: 5px; height: 5px; border-radius: 50%; background: #d5eaff; }
.welcome-bottom { display: flex; align-items: center; gap: 12px; margin-top: auto; padding-top: 22px; border-top: 1px solid #ffffff33; width: 100%; }
.welcome-mark { flex: 0 0 24px; color: #cce7ff; }
.welcome-mark svg { display: block; width: 24px; height: 24px; }
.welcome-bottom p { margin: 0; font-size: 12px; line-height: 1.7; }
.welcome-bottom strong { display: block; font-weight: 500; }
.welcome-bottom p span { display: block; color: #d3e8ff; font-size: 11px; }
.account-page.index-page:not(.signed-in) .account-content,.account-page.index-page.auth-setup .account-content { padding: 40px 48px 26px; background: #fff; }
.auth-heading { display: flex; flex-direction: column; align-items: flex-start; gap: 22px; }
.auth-symbol { display: grid; place-items: center; width: 44px; height: 44px; border: 1px solid #d7e8fc; border-radius: 14px; background: #eff6ff; color: #006bdc; }
.auth-symbol svg { width: 24px; height: 24px; }
.account-page.index-page #login .eyebrow,.setup-intro .eyebrow { font-size: 9px; color: #5a6e84; font-weight: 700; letter-spacing: 1.4px; }
.account-content #login h2 { font-size: 32px; font-weight: 700; letter-spacing: -1px; line-height: 1.17; margin: 12px 0 10px; }
#authDescription { margin: 0 0 28px; font-size: 14px; line-height: 1.65; overflow-wrap: anywhere; }
#login .auth-field { margin: 0 0 20px; }
#login label { margin: 0 0 9px; font-size: 12px; font-weight: 500; color: #29425f; }
#login input:not([type=checkbox]):not([type=date]) { margin: 0; min-width: 0; width: 100%; min-height: 50px; padding: 14px; border: 1px solid #cbd9e9; border-radius: 10px; background: #f9fbfe; font-size: 16px; }
#login input::placeholder { color: #74869b; opacity: 1; font-size: 14px; }
#login input:not([type=checkbox]):not([type=date]):focus { background: #fff; border-color: #017ffe; box-shadow: 0 0 0 3px #017ffe1a; }
#login .field-label-row { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: -7px 0 2px; }
#login .field-label-row label { margin: 0; }
.account-content #login .text-button { margin: 0; padding: 10px 0; min-height: 40px; border-radius: 4px; font-size: 12px; line-height: 1.5; text-decoration: none; font-weight: 500; }
.account-content #login .text-button:hover { text-decoration: underline; }
#login .field-label-row .text-button { white-space: nowrap; }
.account-content #login .full-button,.auth-setup .account-content .full-button { min-height: 50px; margin: 22px 0 0; border-radius: 10px; background: #0874eb; box-shadow: 0 4px 10px #0874eb21; font-size: 14px; font-weight: 700; gap: 12px; }
.account-content #login .full-button:hover,.auth-setup .account-content .full-button:hover { background: #0066d6; }
#login .full-button span { font-size: 20px; font-weight: 400; line-height: 1; }
#login .auth-options { border-top: 1px solid #e5edf6; margin: 26px 0 0; padding-top: 12px; align-items: center; justify-content: center; gap: 6px; font-size: 12px; color: #5c6f83; }
#login .auth-options .text-button { font-weight: 700; }
#existingAccountHint { text-align: center; margin: 6px 0 0; font-size: 11px; line-height: 1.65; color: #697c91; }
#login .privacy-note { display: flex; align-items: center; justify-content: center; gap: 7px; color: #61758b; font-size: 10px; line-height: 1.5; margin: 22px 0 0; }
.privacy-note svg { width: 14px; height: 14px; flex: 0 0 14px; }
.account-page:not(.signed-in) .account-footer,.account-page.auth-setup .account-footer { margin-top: 22px; padding-top: 18px; text-align: center; font-size: 11px; border-color: #e5edf6; }
.account-page:not(.signed-in) .account-footer span,.account-page.auth-setup .account-footer span { display: none; }
.auth-steps { display: grid; grid-template-columns: repeat(3,minmax(0,1fr)); align-items: start; list-style: none; padding: 0; margin: 0 0 28px; gap: 0; }
.auth-steps li { position: relative; display: flex; flex-direction: column; align-items: center; gap: 8px; min-width: 0; text-align: center; font-size: 11px; line-height: 1.4; color: #6b7f94; }
.auth-steps li + li::before { content: ''; position: absolute; top: 12px; right: calc(50% + 19px); width: calc(100% - 38px); height: 1px; background: #dce5ef; }
.auth-steps li span { display: grid; place-items: center; flex: 0 0 24px; width: 24px; height: 24px; border: 1px solid #dce5ef; border-radius: 50%; font-size: 10px; }
.auth-steps b { font-weight: 500; }
.auth-steps li[aria-current] { color: #0666ce; }
.auth-steps li[aria-current] span { color: #fff; background: #0874eb; border-color: #0874eb; }
.auth-steps .is-complete { color: #197a54; }
.auth-steps .is-complete span { color: #197a54; border-color: #d1e9de; background: #edf8f2; }
#login .check { margin: 20px 0; font-size: 11px; font-weight: 400; color: #5c6f83; gap: 10px; }
#login .check input { width: 17px; height: 17px; margin-top: 1px; }
#login .check a { text-decoration: underline; text-underline-offset: 2px; }
#login .birthday-field label { justify-content: space-between; }
#login .field-help { font-size: 11px; margin: 9px 0 0; line-height: 1.6; }
#login .verify-card { border: 0; margin: 0; padding: 0; }
#login #code { letter-spacing: .3em; font-size: 28px; font-weight: 500; text-align: center; min-height: 68px; padding-left: calc(14px + .3em); }
#login #code::placeholder { font-size: inherit; color: #92a6bd; }
#login #editEmail { display: block; margin: 8px auto 0; text-align: center; }
#login #backToLogin { display: flex; gap: 8px; margin: 12px auto 0; align-items: center; justify-content: center; }
.setup-intro { display: none; }
.auth-setup .setup-intro { display: block; }
.auth-setup .setup-intro .auth-steps { margin-top: 24px; }
.auth-setup #account > :not(.password-card),.auth-setup #closeAccountSection,.auth-setup #resetFromAccount { display: none; }
.account-page.index-page.auth-setup #account .password-card { border: 0; padding: 0; margin: 0; background: none; }
.account-page.index-page.auth-setup #account #passwordTitle { font-size: 28px; line-height: 1.2; letter-spacing: -.7px; }
.auth-setup #account #passwordHelp { font-size: 13px; }
.auth-setup #message { font-weight: 400; }
.account-page.index-page.signed-in:not(.auth-setup) .account-shell { grid-template-columns: 280px 1fr; }
.account-page.index-page.signed-in:not(.auth-setup) .welcome-panel { padding: 28px; }
.account-page.index-page.signed-in:not(.auth-setup) .welcome-panel h1 { font-size: 30px; }
.signed-in:not(.auth-setup) .hello-art { display: none; }
.signed-in:not(.auth-setup) .welcome-bottom { margin-top: 36px; align-items: flex-start; }
@media (max-width: 900px) {
  .account-page.index-page .account-shell { width: calc(100% - 40px); grid-template-columns: .9fr 1.1fr; }
  .account-page.index-page .welcome-panel { padding: 28px; }
  .account-page.index-page:not(.signed-in) .account-content,.account-page.index-page.auth-setup .account-content { padding: 32px 28px 24px; }
}
@media (max-width: 760px) {
  .account-page.index-page .account-shell,.account-page.index-page.signed-in .account-shell { display: block; width: min(480px,calc(100% - 32px)); margin: 24px auto 0; border-radius: 20px; }
  .account-page.index-page .welcome-panel { display: none; }
  .account-page.index-page:not(.signed-in) .account-content,.account-page.index-page.auth-setup .account-content { padding: 26px 24px 22px; }
  .auth-heading { gap: 18px; }
  .account-content #login h2 { font-size: 29px; }
  #authDescription { font-size: 13px; margin-bottom: 24px; }
  #login .auth-options { gap: 0 6px; }
  #login #existingAccountHint { font-size: 10px; }
  .account-page.index-page .site-footer { gap: 12px 18px; padding: 22px 18px; font-size: 10px; }
}
@media (max-width: 360px) {
  .account-page.index-page .account-shell { width: calc(100% - 24px); margin-top: 16px; }
  .account-page.index-page:not(.signed-in) .account-content,.account-page.index-page.auth-setup .account-content { padding: 24px 18px 20px; }
  .account-content #login h2 { font-size: 27px; }
  #login .auth-heading .eyebrow { font-size: 8px; letter-spacing: 1.1px; }
  .auth-steps li { font-size: 10px; }
}
body.account-page.index-page.account-embedded { background: #fff; }
.account-page.index-page.account-embedded .account-shell { width: 100%; max-width: none; margin: 0; border: 0; border-radius: 0; box-shadow: none; }
.account-page.index-page.account-embedded:not(.signed-in) .account-content,.account-page.index-page.account-embedded.auth-setup .account-content { padding: 24px max(20px,env(safe-area-inset-right,0px)) 24px max(20px,env(safe-area-inset-left,0px)); }
.account-embedded .auth-heading { gap: 16px; }

/* Share the homepage Text/Video button surface and interaction styles. */
body.account-page.index-page .auth-submit { margin-top: 22px; }
body.account-page.index-page :is(#login,#account) .auth-submit .full-button {
  height: 100%; min-height: 100%; margin: 0 !important; padding: 12px;
  border: 0; border-radius: inherit; background: transparent; box-shadow: none;
  font-size: 20px; font-weight: 900; letter-spacing: .01em;
  text-shadow: 0 1px 2px rgba(0,50,110,.25); color: #fff;
}
body.account-page.index-page :is(#login,#account) .auth-submit .full-button:focus-visible {
  outline: 3px solid rgba(255,255,255,.75); outline-offset: -6px;
}
body.account-page.index-page .auth-submit:has(button:disabled) { transform: none; filter: none; }
@media (prefers-reduced-motion: reduce) {
  body.account-page.index-page .auth-submit { transition: none; }
  body.account-page.index-page .auth-submit:hover { transform: none; }
}


/* Personal account details stay inside the profile card, including in chat drawers. */
.profile-details { display: grid; grid-template-columns: minmax(0,1fr) auto; align-items: start; gap: 16px; margin: 18px 0 0; padding-top: 18px; border-top: 1px solid #dce9f6; }
.profile-details > div { min-width: 0; }
.profile-details dt { margin: 0 0 6px; font-size: 11px; font-weight: 500; color: #647b91; }
.profile-details dd { margin: 0; color: #203f61; font-size: 13px; font-weight: 500; line-height: 1.5; }
.profile-email dd { overflow-wrap: anywhere; }
.profile-age { min-width: 68px; }
.account-content #account .profile-form label { margin: 18px 0 8px; font-size: 11px; font-weight: 500; color: #647b91; }
.profile-edit-row { display: flex; align-items: stretch; gap: 10px; min-width: 0; }
.account-content .profile-edit-row select { flex: 1; width: 0; min-width: 0; margin: 0; font-size: 16px; }
.account-content .profile-edit-row button { flex: 0 0 auto; margin: 0; min-width: 70px; min-height: 46px; padding: 10px 16px; }
.profile-save-status { margin: 10px 0 0; font-size: 11px; line-height: 1.5; color: #167447; }
.profile-save-status:empty { display: none; }
@media (max-width: 360px) {
  .profile-details { gap: 12px; }
  .profile-details dd { font-size: 12px; }
  .profile-edit-row { gap: 8px; }
  .account-content .profile-edit-row button { min-width: 62px; padding-inline: 12px; }
}

/* Explicit date parts keep the profile birthday readable on iOS and in drawers. */
.account-page.index-page.signed-in .profile-details.needs-birthday { grid-template-columns:minmax(0,1fr); gap:14px; }
.account-page.index-page.signed-in .profile-details.needs-birthday .profile-age { display:block; min-width:0; }
.profile-birthday { width:300px; max-width:100%; }
.profile-birthday-selects { display:grid; grid-template-columns:minmax(0,1.05fr) minmax(0,.85fr) minmax(0,1.15fr); gap:6px; color-scheme:light; }
.account-content .profile-birthday-selects select {
  -webkit-appearance:none; appearance:none; box-sizing:border-box;
  width:100%; min-width:0; max-width:100%; height:44px; min-height:44px; margin:0;
  padding:8px 20px 8px 8px; border:1px solid #8ebbec; border-radius:10px;
  background-color:#eaf3ff;
  background-image:url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' width='12' height='12' viewBox='0 0 12 12'%3E%3Cpath d='m3 4.5 3 3 3-3' fill='none' stroke='%23163a60' stroke-width='1.5' stroke-linecap='round' stroke-linejoin='round'/%3E%3C/svg%3E");
  background-position:right 5px center; background-size:12px 12px; background-repeat:no-repeat;
  color:#163a60; -webkit-text-fill-color:#163a60; color-scheme:light;
  font:inherit; font-size:16px; font-weight:500; line-height:1.3; box-shadow:none;
}
.account-content .profile-birthday-selects select option { color:#163a60; background:#fff; -webkit-text-fill-color:#163a60; }
.account-content .profile-birthday-selects select:focus { border-color:#0874d8; }
.account-content .profile-birthday-selects select[aria-invalid="true"] { border-color:#bf352d; }
.profile-birthday-help { margin:9px 0 0; font-size:10px; line-height:1.5; color:#647b91; }
.account-content .profile-birthday-error { margin:8px 0 0; color:#b42318; font-size:12px; line-height:1.5; font-weight:400; }

/* Keep form errors next to the action that needs attention. */
.account-content form #message:not(:empty) { margin: 12px 0 0; width: 100%; flex-basis: 100%; }
#message.is-error { color: #b42318; background: #fff1f2; border-color: #f4b4b4; }
/* Chat entry uses the same two choices and button surface as the index. */
body.account-page.index-page #chatEntry { grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px; margin:22px 0; }
body.account-page.index-page #chatEntry:not([hidden]) { display:grid; }
body.account-page.index-page #chatEntry .duck-start-video-chat { width:100%; min-width:0; height:58px; min-height:58px; margin:0; padding:0; }
body.account-page.index-page #chatEntry .duck-start-video-chat-btn { display:flex; align-items:center; justify-content:center; gap:10px; width:100%; height:100%; min-width:0; box-sizing:border-box; padding:12px; font-size:20px; line-height:1.2; font-weight:800; }
body.account-page.index-page #chatEntry svg { width:22px; height:22px; flex:0 0 22px; }
body.account-page.index-page #chatEntry a > span { font-size:15px; }
/* Secondary account actions remain links even under the shared button theme. */
body.account-page.index-page.ow-buttons .account-content button.text-button,
body.account-page.index-page.ow-buttons .account-content button.text-button:hover:not(:disabled) {
  --ow-button-fill:transparent; --ow-button-hover:transparent; --ow-button-shadow:none;
  background:transparent!important; border:0!important; border-radius:0!important; box-shadow:none!important;
  color:#176fc4!important; text-shadow:none!important; text-decoration:underline!important; text-underline-offset:3px;
  padding:7px 0!important; min-height:36px; font-size:12px; line-height:1.6; font-weight:500; text-align:left;
}
body.account-page.index-page.ow-buttons .account-content button.text-button:hover:not(:disabled) { color:#005ca8!important; }
body.account-page.index-page #resetFromAccount { margin-top:12px; }
@media(max-width:360px) {
  body.account-page.index-page #chatEntry { gap:10px; }
  body.account-page.index-page #chatEntry .duck-start-video-chat-btn { gap:7px; padding:10px 8px; font-size:17px; }
  body.account-page.index-page #chatEntry svg { width:19px; height:19px; flex-basis:19px; }
  body.account-page.index-page #chatEntry a > span { display:none; }
}

/* Keep saved blocks compact in both the account page and the chat drawer. */
.account-blocks { margin-top:28px; padding-top:24px; border-top:1px solid var(--line); }
.account-blocks h2 { margin-top:0; }
#blockedPeople { list-style:none; margin:16px 0 0; padding:0; }
#blockedPeople li { display:flex; align-items:center; gap:12px; padding:12px 0; border-bottom:1px solid var(--line); }
#blockedPeople li > div { flex:1; min-width:0; }
#blockedPeople strong { display:block; font-size:13px; line-height:1.5; overflow-wrap:anywhere; }
#blockedPeople time { display:block; margin-top:3px; color:var(--muted); font-size:11px; line-height:1.6; }
body.account-page.index-page .account-content .account-blocks button.text-button { min-height:44px!important; flex-shrink:0; }
#blockedEmpty { padding:14px 0 0; }
.blocked-status { margin:10px 0 0; font-size:12px; line-height:1.6; color:var(--muted); }
.blocked-status:empty { display:none; }
.blocked-status.is-error { color:#b42318; }
