/* The public, image-led Pocket welcome uses the real Groven account form. */
html[data-groven-design="2010"] body #authScreen.pocket-welcome.is-active {
  --pocket-page: #e0e8df;
  --pocket-paper: #f8faf6;
  --pocket-ink: #203629;
  --pocket-muted: #4b5c4e;
  --pocket-edge: #9cafa0;
  --pocket-bar: linear-gradient(#829f70, #597850 49%, #466744 50%, #506e48);
  --pocket-apple: linear-gradient(#f5faec, #e2efcd 48%, #c9dcaf 49%, #e1edcb);
  align-items: stretch;
  justify-content: flex-start;
  padding: 0;
  min-height: 100dvh;
  background: var(--pocket-page);
  font-family: system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-groven-design="2010"] body.night #authScreen.pocket-welcome.is-active {
  --pocket-page: #242d29;
  --pocket-paper: #2b3730;
  --pocket-ink: #edf3e7;
  --pocket-muted: #cfdbcf;
  --pocket-edge: #65756a;
  --pocket-bar: linear-gradient(#637960, #46634d 49%, #385342 50%, #425d49);
  --pocket-apple: linear-gradient(#d5e8c7, #c5ddb1 48%, #b6ce9e 49%, #cadfbb);
}
.pocket-welcome-bar {
  display: flex;
  align-items: center;
  justify-content: space-between;
  gap: 12px;
  min-height: calc(58px + env(safe-area-inset-top, 0px));
  padding: env(safe-area-inset-top, 0px) max(12px, env(safe-area-inset-right, 0px)) 0 max(12px, env(safe-area-inset-left, 0px));
  border-bottom: 1px solid #3c6044;
  background: var(--pocket-bar);
  box-shadow: inset 0 1px #ffffff72, 0 2px 4px #243d3033;
}
.pocket-welcome-brand {
  display: inline-flex;
  align-items: center;
  min-height: 44px;
  color: #fff;
  text-decoration: none;
  text-shadow: 0 1px 3px #243b2b99;
  font-size: clamp(1.25rem, 4.1vw, 1.65rem);
  font-weight: 600;
  line-height: 1.1;
  letter-spacing: -.03em;
  white-space: nowrap;
}
.pocket-welcome-brand:focus-visible { outline: 2px solid #f7ffe9; outline-offset: 2px; }
html[data-groven-design="2010"] body #authScreen .pocket-welcome-bar .language-picker select {
  min-height: 44px;
  min-width: 58px;
  padding: 5px 11px;
  border: 1px solid #254f3b;
  background: linear-gradient(#f9fcf7, #dce7d8);
  color: #243e2c;
  font-size: .875rem;
  text-align: center;
}
.pocket-welcome-layout {
  display: grid;
  grid-template-columns: minmax(0, 1.25fr) minmax(0, 1fr);
  align-items: stretch;
  gap: clamp(14px, 3vw, 30px);
  width: min(1180px, 100%);
  margin: 0 auto;
  padding: clamp(12px, 3vw, 32px);
}
.pocket-welcome-hero {
  position: relative;
  isolation: isolate;
  display: flex;
  align-items: flex-end;
  overflow: hidden;
  min-height: 490px;
  border: 1px solid var(--pocket-edge);
  border-radius: 9px;
  background: #213c2c;
  box-shadow: 0 3px 10px #1b342b26;
}
.pocket-welcome-photo {
  position: absolute;
  inset: 0;
  width: 100%;
  height: 100%;
  object-fit: cover;
  object-position: 50% 53%;
}
.pocket-welcome-hero::after {
  position: absolute;
  inset: 0;
  content: "";
  background: linear-gradient(180deg, #172c2014 0%, #172e2266 46%, #12281fee 100%);
  pointer-events: none;
}
.pocket-welcome-copy {
  position: relative;
  z-index: 1;
  min-width: 0;
  width: 100%;
  padding: clamp(20px, 4vw, 44px);
  color: #f6f9f2;
  text-shadow: 0 2px 4px #10261d7d;
  overflow-wrap: anywhere;
}
.pocket-welcome-copy > p:first-child {
  margin: 0 0 12px;
  font-size: .875rem;
  color: #e9f5de;
}
.pocket-welcome-copy h1 {
  margin: 0;
  font-size: clamp(2rem, 4.6vw, 4rem);
  font-weight: 650;
  line-height: 1.05;
  letter-spacing: -.045em;
}
.pocket-welcome-intro {
  max-width: 39ch;
  margin: 14px 0 0;
  font-size: 1rem;
  line-height: 1.5;
}
.pocket-welcome-actions {
  display: flex;
  align-items: stretch;
  flex-wrap: wrap;
  gap: 8px;
  margin-top: 18px;
}
.pocket-welcome-account-link,
html[data-groven-design="2010"] body #authScreen .pocket-welcome-actions #browseAsGuest {
  display: inline-flex;
  align-items: center;
  justify-content: center;
  min-height: 44px;
  width: auto;
  max-width: 100%;
  margin: 0;
  padding: 8px 13px;
  border-radius: 6px;
  border: 1px solid #9fb78b;
  color: #253e2e;
  background: var(--pocket-apple);
  box-shadow: inset 0 1px #fff8, 0 2px 4px #12281f45;
  text-decoration: none;
  text-align: center;
  text-shadow: none;
  font: 640 .9rem/1.28 system-ui, -apple-system, BlinkMacSystemFont, sans-serif;
}
html[data-groven-design="2010"] body #authScreen .pocket-welcome-actions #browseAsGuest {
  background: #243d30ec !important;
  color: #f6f9f2 !important;
  border-color: #b1c7a8 !important;
}
.pocket-welcome-actions :is(a, button):focus-visible {
  outline: 2px solid #f7ffe9;
  outline-offset: 2px;
}
html[data-groven-design="2010"] body #authScreen .pocket-account {
  width: 100%;
  min-width: 0;
  padding: 0 0 18px !important;
  background: var(--pocket-paper) !important;
  border: 1px solid var(--pocket-edge);
  border-radius: 9px !important;
  box-shadow: 0 3px 10px #1b342b18;
  text-align: start;
  scroll-margin-top: 12px;
  align-self: start;
}
.pocket-account h2.pocket-account-title {
  display: flex;
  align-items: center;
  min-height: 44px;
  margin: 0;
  padding: 8px 18px;
  border-radius: 8px 8px 0 0;
  border-bottom: 1px solid #a7bc96;
  background: var(--pocket-apple);
  color: #243e2a;
  font-size: 1rem;
  font-weight: 650;
  box-shadow: inset 0 1px #ffffff95;
}
html[data-groven-design="2010"] body #authScreen .pocket-account .email-form {
  width: auto;
  max-width: none;
  padding: 16px 18px 0;
  margin: 0;
  color: var(--pocket-ink);
}
html[data-groven-design="2010"] body #authScreen .pocket-account :is(label,.form-note,.registration-age small,.password-hint,.auth-switch) {
  color: var(--pocket-muted);
  font-size: .875rem;
  line-height: 1.5;
}
html[data-groven-design="2010"] body #authScreen .pocket-account input:not([type="checkbox"]) { font-size: 16px; }
html[data-groven-design="2010"] body #authScreen .pocket-account .auth-submit {
  justify-content: center;
  width: 100%;
}
html[data-groven-design="2010"] body #authScreen .pocket-account :is(.auth-link, .auth-switch button) { min-height: 44px; }
.pocket-welcome-footer {
  display: flex;
  justify-content: center;
  flex-wrap: wrap;
  gap: 12px 22px;
  padding: 6px 16px max(32px, env(safe-area-inset-bottom, 0px));
  font-size: .875rem;
}
.pocket-welcome-footer a { color: var(--pocket-muted); }
html[data-groven-design="2010"] body #guestScreen .guest-header > .pocket-guest-brand {
  white-space: nowrap;
  font: 600 clamp(1.05rem, 3.8vw, 1.55rem)/1.15 system-ui, -apple-system, BlinkMacSystemFont, sans-serif !important;
  letter-spacing: -.03em !important;
}
@media (max-width: 760px) {
  .pocket-welcome-layout { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .pocket-welcome-hero { min-height: clamp(340px, 54svh, 480px); }
  .pocket-welcome-copy { padding: clamp(16px, 5vw, 30px); }
  .pocket-welcome-copy h1 { font-size: clamp(1.95rem, 8.35vw, 3.4rem); }
}

/* Share the Pocket priority layer: earlier layered important legacy rules
   otherwise win over every unlayered declaration, regardless of specificity. */
@layer groven-pocket {
  html[data-groven-design="2010"] body #authScreen.pocket-welcome #welcomeTitle {
    color: #f6f9f2 !important;
    text-shadow: 0 2px 4px #10261d7d !important;
    letter-spacing: -.045em !important;
  }
  html[data-groven-design="2010"] body #authScreen.pocket-welcome .pocket-account {
    padding: 0 0 18px !important;
    background: var(--pocket-paper) !important;
    border-color: var(--pocket-edge) !important;
    border-radius: 9px !important;
  }
  html[data-groven-design="2010"] body #authScreen .pocket-welcome-actions #browseAsGuest {
    position: static !important;
    inset: auto !important;
    width: auto !important;
    max-width: 100% !important;
    min-height: 44px !important;
    padding: 8px 13px !important;
    margin: 0 !important;
    transform: none !important;
    border: 1px solid #b1c7a8 !important;
    border-radius: 6px !important;
    background: #243d30ec !important;
    color: #f6f9f2 !important;
    box-shadow: 0 2px 4px #12281f45 !important;
  }
  html[data-groven-design="2010"] body #authScreen .pocket-account .auth-submit {
    background: var(--pocket-apple) !important;
    color: #233d28 !important;
    border-color: #8ca77b !important;
    border-radius: 6px !important;
    font-size: 1rem !important;
  }
}
