/* FlockControl signed-out experience: sunset field photography, evergreen ink. */
/* Present neither public forms nor dashboard content until the server restores the session. */
.session-loading { display: none; }
body.auth-pending > header, body.auth-pending > main { display: none !important; }
body.auth-pending #session-loading {
  display: flex; position: fixed; inset: 0; z-index: 10;
  flex-direction: column; align-items: center; justify-content: center;
  gap: 14px; padding: 28px; background: #101714; color: #edf4eb; text-align: center;
}
#session-loading strong { font-size: 22px; }
#session-loading p { max-width: 360px; margin: 0; color: #b7c5b6; font-size: 15px; line-height: 1.6; }
#session-loading button { min-height: 44px; padding: 10px 22px; border-radius: 8px; font-size: 15px; }
/* These standalone onboarding controls remain available before email verification. */
body.dashboard-mode { color-scheme: dark; }
body.entry-verify #email-settings {
  width: min(520px, 100%); margin: 0; padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(255,255,255,.75); border-radius: 16px;
  background: rgba(251,250,247,.97); color: var(--entry-ink);
  box-shadow: 0 24px 70px rgba(32,39,29,.25);
}
body.entry-verify #email-settings h2 { color: #26342a; font-size: 28px; }
body.entry-verify #email-settings p { color: #717971; }
body.entry-verify #email-settings label { color: #323a34; font-size: 13px; margin: 18px 0 7px; }
body.entry-verify #email-settings input { background: #fbfbfa; color: var(--entry-ink); border-color: #dfe2dd; }
body.entry-verify #email-settings button[type="submit"] { background: var(--entry-green); color: white; }
body.entry-verify #email-settings .password-eye { color: #737b75; }
body.entry-verify main > footer {
  display: flex; position: fixed; right: 20px; bottom: 16px; margin: 0; z-index: 4;
}
body.entry-verify main > footer p { display: none; }
body.entry-verify #disconnect {
  min-width: 0; min-height: 44px; width: auto; padding: 9px 18px; font-size: 14px;
  color: var(--entry-green); background: var(--entry-paper); border: 1px solid #aab8aa;
}
:root {
  --entry-ink: #17251f;
  --entry-green: #326c42;
  --entry-green-deep: #275837;
  --entry-muted: #737c76;
  --entry-paper: #fbfaf7;
  --entry-line: #e5e6e1;
}

body.entry-home,
body.entry-auth,
body.entry-recovery,
body.entry-verify {
  min-height: 100dvh;
  color: var(--entry-ink);
  background: #d4c5a5;
  color-scheme: light;
}
body.entry-home::before,
body.entry-auth::before,
body.entry-recovery::before,
body.entry-verify::before {
  position: fixed;
  z-index: 0;
  inset: -12px;
  content: "";
  pointer-events: none;
  background: url("/assets/farm-sunset.jpg") center 56% / cover no-repeat;
  filter: blur(0);
  transition: filter .52s ease;
}
body.entry-auth::before { filter: blur(7px); }
body.entry-recovery::before { filter: blur(7px); }
body.entry-home::after,
body.entry-auth::after,
body.entry-recovery::after,
body.entry-verify::after {
  position: fixed; z-index: 0; inset: 0; content: ""; pointer-events: none;
  background: linear-gradient(90deg, rgba(18,31,24,.28), rgba(18,31,24,.05) 74%),
    linear-gradient(0deg, rgba(17,28,21,.25), transparent 38%);
  opacity: 1; transition: opacity .52s ease;
}
body.entry-home::after { opacity: 0; }
body.entry-home > *,
body.entry-auth > *,
body.entry-recovery > *,
body.entry-verify > * { position: relative; z-index: 1; }
body.entry-home header,
body.entry-auth header,
body.entry-recovery header,
body.entry-verify header { display: none; }
body.entry-home main,
body.entry-auth main,
body.entry-recovery main,
body.entry-verify main {
  width: 100%;
  max-width: none;
  min-height: 100dvh;
  margin: 0;
  padding: 0;
}
body.entry-auth main { display: flow-root; }
body.entry-home .intro,
body.entry-home #access,
body.entry-home footer,
body.entry-auth .intro,
body.entry-auth #access,
body.entry-auth footer,
body.entry-recovery .intro,
body.entry-recovery #access,
body.entry-recovery footer,
body.entry-verify .intro,
body.entry-verify #access,
body.entry-verify footer { display: none; }
body.entry-home #notice,
body.entry-auth #notice,
body.entry-recovery #notice,
body.entry-verify #notice {
  position: fixed;
  z-index: 5;
  left: 50%;
  bottom: max(18px, env(safe-area-inset-bottom));
  width: min(540px, calc(100% - 32px));
  min-height: 0;
  margin: 0;
  padding: 11px 16px;
  transform: translateX(-50%);
  border: 1px solid rgba(110, 67, 34, .3);
  border-radius: 8px;
  background: rgba(255, 250, 241, .97);
  color: #79411d;
  box-shadow: 0 10px 35px rgba(28, 34, 25, .18);
}
body.entry-home #notice:empty,
body.entry-auth #notice:empty,
body.entry-recovery #notice:empty,
body.entry-verify #notice:empty { display: none; }

.entry-splash {
  position: relative;
  display: flex;
  align-items: center;
  width: 100%;
  min-height: 100dvh;
  padding: clamp(36px, 7vw, 100px) clamp(26px, 8.3vw, 132px);
  overflow: hidden;
  background: linear-gradient(90deg, rgba(252, 246, 230, .34) 0%, rgba(252, 246, 230, .18) 35%, rgba(252, 246, 230, 0) 65%);
  animation: entry-arrive .42s ease-out both;
}
.splash-content { width: min(390px, 50vw); }
.entry-brand {
  display: flex;
  flex-direction: column;
  align-items: center;
  gap: 4px;
  width: max-content;
  max-width: 100%;
  color: var(--entry-ink);
  text-decoration: none;
}
.entry-brand img { display: block; width: 105px; height: 105px; object-fit: contain; }
.wordmark { display: flex; flex-direction: column; align-items: center; font-size: clamp(35px, 4vw, 55px); line-height: .97; letter-spacing: -2.8px; }
.wordmark-name { display: inline-flex; }
.wordmark strong { font-weight: 760; }
.wordmark b { color: var(--entry-green); font-weight: 760; }
.splash-content > .entry-brand { margin: 0 auto; }
.splash-content .wordmark { justify-content: center; text-align: center; font-size: clamp(40px, 5.8vw, 68px); }
.wordmark small {
  grid-column: 1 / -1;
  margin-top: 10px;
  color: #5e655e;
  font-size: 11px;
  line-height: 1.3;
  font-weight: 700;
  letter-spacing: 3px;
  text-transform: uppercase;
}
.splash-features { display: grid; grid-template-columns: repeat(3, 1fr); margin: 43px 0 0; }
.feature { min-width: 0; padding: 0 17px; text-align: center; }
.feature + .feature { border-left: 1px solid rgba(40, 66, 47, .15); }
.feature-icon {
  display: grid;
  width: 48px;
  height: 48px;
  margin: 0 auto 12px;
  place-items: center;
  border-radius: 50%;
  background: rgba(218, 232, 202, .79);
  color: var(--entry-green);
}
.feature-icon svg { width: 25px; height: 25px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.feature strong { display: block; color: #26352b; font-size: 14px; line-height: 1.2; }
.feature small { display: block; margin-top: 6px; color: #5f655e; font-size: 12px; line-height: 1.4; }
.splash-actions { display: grid; gap: 10px; width: min(330px, 100%); margin: 42px auto 0; }
.entry-primary,
.entry-secondary {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 14px;
  width: 100%;
  min-height: 54px;
  border: 1px solid rgba(255,255,255,.77);
  border-radius: 9px;
  color: #fff;
  font-size: 16px;
  font-weight: 700;
  text-decoration: none;
  transition: transform .18s ease, background-color .18s ease;
}
.entry-primary { background: var(--entry-green); box-shadow: 0 7px 18px rgba(31, 69, 39, .15); }
.entry-primary:hover { background: var(--entry-green-deep); transform: translateY(-1px); }
.entry-primary span { font-size: 22px; line-height: 1; }
.entry-secondary { background: rgba(143, 119, 73, .57); }
.entry-secondary:hover { background: rgba(112, 95, 59, .75); transform: translateY(-1px); }
.entry-disclosure { margin: 17px 0 0; color: rgba(36, 49, 39, .75); font-size: 10px; letter-spacing: .025em; text-align: center; }
.entry-home .entry-disclosure { width: fit-content; margin: 17px auto 0; padding: 4px 8px; border-radius: 4px; background: rgba(255,250,233,.76); }

.entry-auth .auth-screen {
  display: grid;
  grid-template-columns: 1.12fr .88fr;
  width: min(1200px, calc(100% - 80px));
  min-height: min(710px, calc(100dvh - 80px));
  margin: 40px auto;
  overflow: hidden;
  border: 1px solid rgba(255,255,255,.64);
  border-radius: 18px;
  background: var(--entry-paper);
  box-shadow: 0 28px 80px rgba(32, 39, 29, .24);
  transform-origin: center;
  animation: entry-panel-focus .48s cubic-bezier(.2,.7,.3,1) .04s both;
}
.entry-auth .auth-photo {
  position: relative;
  display: flex;
  flex-direction: column;
  justify-content: flex-start;
    min-height: 584px;
  padding: clamp(30px, 5vw, 68px);
   background: linear-gradient(180deg, rgba(250,247,237,.7), rgba(250,247,237,.35) 43%, rgba(250,247,237,0) 100%), url("/assets/farm-sunset.jpg") 57% center / cover;
}
.entry-auth .auth-photo .entry-brand { align-self: center; }
.entry-auth .auth-photo .entry-brand img { width: 84px; height: 84px; }
.entry-auth .auth-photo .wordmark { font-size: clamp(33px, 3.3vw, 47px); }
.entry-auth .auth-features { display: grid; gap: 18px; width: min(390px, 100%); margin: 35px auto 0; }
.entry-auth .auth-feature { display: grid; grid-template-columns: 42px 1fr; align-items: center; gap: 13px; }
.entry-auth .auth-feature .feature-icon { width: 42px; height: 42px; margin: 0; background: rgba(221, 234, 207, .88); }
.entry-auth .auth-feature .feature-icon svg { width: 22px; height: 22px; }
.entry-auth .auth-feature strong { display: block; color: #27352b; font-size: 14px; line-height: 1.2; }
.entry-auth .auth-feature small { display: block; max-width: 260px; margin-top: 4px; color: #515d53; font-size: 12px; line-height: 1.4; }
.entry-auth .auth-photo .entry-disclosure { align-self: center; margin: auto 0 0; padding: 5px 8px; border-radius: 4px; background: rgba(255,250,233,.76); }
.entry-auth .auth-side { display: flex; flex-direction: column; align-items: center; justify-content: center; padding: 36px 40px; background: rgba(251,250,247,.98); }
.entry-auth .auth-tabs { position: relative; display: grid; grid-template-columns: 1fr 1fr; width: 100%; max-width: 490px; border-bottom: 1px solid var(--entry-line); }
.entry-auth .auth-tabs a { position: relative; padding: 0 12px 16px; color: #818681; font-size: 14px; font-weight: 650; text-align: center; text-decoration: none; }
.entry-auth .auth-tabs a.active { color: var(--entry-ink); }
.entry-auth .auth-tabs::after { position: absolute; bottom: -1px; left: 0; width: 50%; height: 2px; background: var(--entry-green); content: ""; transform: translateX(0); transition: transform .24s cubic-bezier(.2,.7,.3,1); pointer-events: none; }
.entry-auth .auth-tabs.is-signup::after { transform: translateX(100%); }
.entry-auth .auth-tabs a[aria-disabled="true"], .entry-auth #auth-switch[aria-disabled="true"] { opacity: .55; cursor: wait; }
.entry-auth .login-form.access {
  width: 100%;
  max-width: 490px;
  margin: 28px 0 0;
  padding: 0;
  border: 0;
  border-radius: 0;
  background: transparent;
}
.entry-auth .login-form.access h2 { margin: 0; color: #202a23; font-size: clamp(26px, 2.7vw, 34px); line-height: 1.16; letter-spacing: -.04em; }
.entry-auth .login-form.access h2 span { color: var(--entry-green); }
.entry-auth .login-form.access > p#auth-description { margin: 8px 0 18px; color: #7b817c; font-size: 14px; text-align: center; }
.entry-auth .login-form.access label { margin: 18px 0 7px; color: #323a34; font-size: 13px; font-weight: 600; }
.entry-auth .login-form.access input,
.entry-auth .login-form.access .password-field input {
  width: 100%;
  min-height: 48px;
  padding: 11px 14px;
  border: 1px solid #dfe2dd;
  border-radius: 8px;
  background: #fbfbfa;
  color: var(--entry-ink);
  font-size: 14px;
  box-shadow: inset 0 1px 2px rgba(36,48,39,.025);
}
.entry-auth .entry-input { position: relative; display: block; width: 100%; }
.entry-auth .entry-input .input-symbol { position: absolute; left: 14px; top: 50%; z-index: 1; width: 18px; height: 18px; transform: translateY(-50%); fill: none; stroke: #90958f; stroke-width: 1.7; pointer-events: none; }
.entry-auth .login-form.access .entry-input input { padding-left: 42px; }
.entry-auth .login-form.access input::placeholder { color: #929991; }
.entry-auth .login-form.access .password-field { margin: 0; }
.entry-auth .login-form.access .password-field input { padding-right: 54px; }
.entry-auth .login-form.access .password-field button.password-eye { top: 3px; right: 4px; bottom: 3px; color: #737b75; }
.entry-auth .login-form.access .password-eye:focus-visible { outline-color: var(--entry-green); }
.entry-auth .login-form.access #signup-email-field { display: block; }
.entry-auth .login-form.access #signup-email-field[hidden] { display: none; }
.entry-auth .login-form.access #signup-email-field p,
.entry-auth .login-form.access #password-help { margin: 7px 0 0; color: #777f78; font-size: 12px; }
.entry-auth .auth-utility { display: flex; align-items: center; justify-content: flex-end; margin-top: 12px; }
.entry-auth .auth-utility p { margin: 0; font-size: 12px !important; }
.entry-auth .auth-utility a,
.entry-auth .login-form.access a,
.entry-auth .auth-back { color: var(--entry-green); font-weight: 600; text-decoration: none; }
.entry-auth .auth-utility a:hover,
.entry-auth .login-form.access a:hover,
.entry-auth .auth-back:hover { text-decoration: underline; }
.entry-auth .login-form.access button#auth-submit {
  display: flex;
  align-items: center;
  justify-content: center;
  gap: 13px;
  width: 100%;
  min-height: 50px;
  margin-top: 19px;
  border-radius: 8px;
  background: var(--entry-green);
  color: #fff;
  font-size: 15px;
  transition: background-color .16s ease, transform .16s ease;
}
.entry-auth .login-form.access button#auth-submit:hover:not(:disabled) { background: var(--entry-green-deep); transform: translateY(-1px); }
.entry-auth .login-form.access button#auth-submit span { font-size: 20px; }
.entry-auth .login-form.access button#auth-submit:disabled { opacity: .6; }
.entry-auth .login-form.access .auth-create { margin: 24px 0 0; padding-top: 14px; border-top: 1px solid var(--entry-line); color: #878c87; font-size: 12px; text-align: center; }
.entry-auth .login-form.access .auth-create a { margin-left: 6px; text-decoration: underline; }
.entry-auth .auth-back { margin-top: 14px; font-size: 12px; }
.entry-auth .auth-screen { align-items: stretch; }
.entry-auth .login-form.access #auth-title { text-align: center; }
.entry-auth .login-form.access #auth-description { text-align: center; }
.entry-auth .login-form.access > p { line-height: 1.45; }
.entry-auth .auth-screen > .auth-side { min-width: 0; }

body.entry-recovery main,
body.entry-verify main { display: grid; place-items: center; padding: 30px 20px; }
body.entry-verify main { gap: 24px; padding-bottom: 90px; }
body.entry-recovery #recovery-panel,
body.entry-verify #email-verification {
  width: min(520px, 100%);
  margin: 0;
  padding: clamp(26px, 5vw, 46px);
  border: 1px solid rgba(255,255,255,.75);
  border-radius: 16px;
  background: rgba(251,250,247,.97);
  color: var(--entry-ink);
  box-shadow: 0 24px 70px rgba(32,39,29,.25);
  animation: entry-arrive .5s ease-out both;
}
body.entry-recovery #recovery-panel h2,
body.entry-verify #email-verification h2 { color: #26342a; font-size: 28px; letter-spacing: -.04em; }
body.entry-recovery #recovery-panel p,
body.entry-verify #email-verification p { color: #717971; line-height: 1.55; }
body.entry-recovery #recovery-panel label,
body.entry-verify #email-verification label { display: block; margin: 18px 0 7px; color: #323a34; font-size: 13px; font-weight: 600; }
body.entry-recovery #recovery-panel input,
body.entry-verify #email-verification input { width: 100%; min-height: 48px; padding: 11px 14px; border: 1px solid #dfe2dd; border-radius: 8px; background: #fbfbfa; color: var(--entry-ink); }
body.entry-recovery #recovery-panel button[type="submit"],
body.entry-verify #email-verification button:not(.text-button):not(.password-eye) { width: 100%; min-height: 49px; margin-top: 18px; border-radius: 8px; background: var(--entry-green); color: white; font-size: 15px; }
body.entry-recovery #recovery-panel a,
body.entry-verify #email-verification a,
body.entry-recovery #recovery-panel .text-button,
body.entry-verify #email-verification .text-button { color: var(--entry-green); }
body.entry-verify #email-verification .secondary { border: 1px solid #aab8aa; background: transparent; color: var(--entry-green); }
body.entry-recovery #recovery-panel { overflow: hidden; animation: entry-panel-focus .42s cubic-bezier(.2,.7,.3,1) both; }
body.entry-recovery #recovery-content { display: block; width: 100%; }
body.entry-recovery #recovery-panel .account-brand { margin-bottom: 24px; }
body.entry-recovery #recovery-panel .recovery-step { margin: 0 0 9px; font-size: 11px; font-weight: 700; letter-spacing: .12em; text-transform: uppercase; color: var(--entry-green); }
body.entry-recovery #recovery-title { margin: 0 0 10px; line-height: 1.18; }
body.entry-recovery #recovery-description { margin: 0 0 24px; font-size: 14px; line-height: 1.6; }
body.entry-recovery #reset-code { font-size: 18px; letter-spacing: .12em; }
body.entry-recovery #reset-code::placeholder { font-size: 14px; letter-spacing: normal; }
body.entry-recovery #recovery-panel input::placeholder { color: #929991; }
body.entry-recovery #recovery-panel .password-field input { padding-right: 54px; }
body.entry-recovery #recovery-panel .password-eye { color: #737b75; }
body.entry-recovery #recovery-panel .password-eye:hover { background: #e8eee6; }
body.entry-recovery #reset-password-help { margin: 8px 0 0; font-size: 12px; line-height: 1.5; }
body.entry-recovery #recovery-status { margin: 20px 0 0; padding: 12px 14px; border: 1px solid #dce6d8; border-radius: 8px; background: #edf2e9; color: #4f6252; font-size: 13px; line-height: 1.6; }
body.entry-recovery #recovery-status:empty { display: none; }
body.entry-recovery #recovery-panel #recovery-status[data-error="true"] { border-color: #e6c8bc; background: #fcf2ed; color: #843c26; }
body.entry-recovery #recovery-panel .recovery-actions { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; margin-top: 24px; padding-top: 16px; border-top: 1px solid var(--entry-line); }
body.entry-recovery #recovery-panel .recovery-actions a,
body.entry-recovery #recovery-panel .text-button { display: inline-flex; align-items: center; min-height: 44px; font-size: 13px; font-weight: 600; }
body.entry-recovery #recovery-panel .text-button { width: auto; margin: 0; padding: 4px 0; background: transparent; }

@keyframes entry-arrive { from { opacity: 0; transform: translateY(8px); } to { opacity: 1; transform: translateY(0); } }
@keyframes entry-panel-focus {
  from { opacity: 0; transform: scale(.97); filter: blur(6px); }
  to { opacity: 1; transform: scale(1); filter: blur(0); }
}
@media (prefers-reduced-motion: reduce) {
  body.entry-home::before, body.entry-auth::before, body.entry-recovery::before, body.entry-home::after, body.entry-auth::after, body.entry-recovery::after { transition: none; }
  body.entry-home .splash-content { animation: none; }
  .entry-auth .auth-tabs::after { transition: none; }
  .entry-splash, body.entry-auth .auth-screen, body.entry-recovery #recovery-panel, body.entry-verify #email-verification { animation: none; }
  .entry-primary, .entry-secondary, body.entry-auth .login-form.access button#auth-submit { transition: none; }
}
@media (max-width: 820px) {
  .entry-splash { align-items: flex-start; padding: 62px 7vw 90px; background-position: 60% center; }
  .splash-content { width: min(470px, 75vw); }
  .entry-auth .auth-screen { grid-template-columns: .9fr 1.1fr; width: calc(100% - 36px); margin: 18px auto; min-height: calc(100dvh - 36px); }
  .entry-auth .auth-photo { padding: 28px; }
  .entry-auth .auth-side { padding: 32px; }
}
@media (max-width: 620px) {
  body.entry-home, body.entry-auth, body.entry-recovery, body.entry-verify { background-attachment: scroll; }
   .entry-splash { min-height: 100dvh; align-items: center; padding: 38px 24px 76px; background-image: linear-gradient(90deg, rgba(252,246,230,.94), rgba(252,246,230,.80) 62%, rgba(252,246,230,.2)); }
  .splash-content { width: min(100%, 440px); }
  .entry-brand { gap: 6px; }
  .entry-brand img { width: 76px; height: 76px; }
  .wordmark { font-size: 39px; letter-spacing: -2px; }
  .wordmark small { margin-top: 7px; font-size: 9px; letter-spacing: 2px; }
  .splash-features { gap: 0; margin-top: 35px; }
  .feature { padding: 0 9px; }
  .feature-icon { width: 40px; height: 40px; }
  .feature-icon svg { width: 22px; height: 22px; }
  .feature strong { font-size: 12px; }
  .feature small { font-size: 10px; }
  .splash-actions { margin-top: 32px; }
  .entry-auth .auth-screen { display: flex; flex-direction: column; width: min(100% - 22px, 480px); min-height: 0; margin: 11px auto; border-radius: 14px; }
  .entry-auth .auth-photo { min-height: 430px; padding: 19px 23px; background-image: linear-gradient(180deg, rgba(250,247,237,.92), rgba(250,247,237,.68) 45%, rgba(250,247,237,.13)), url("/assets/farm-sunset.jpg"); background-position: 55% 50%; }
  .entry-auth .auth-photo .entry-brand img { width: 62px; height: 62px; }
  .entry-auth .auth-photo .wordmark { font-size: 30px; letter-spacing: -1.8px; }
  .entry-auth .auth-photo .wordmark small { font-size: 8px; letter-spacing: 1.4px; margin-top: 6px; }
  .entry-auth .auth-features { gap: 13px; width: min(100%, 350px); margin-top: 24px; }
  .entry-auth .auth-feature { grid-template-columns: 36px 1fr; gap: 10px; }
  .entry-auth .auth-feature .feature-icon { width: 36px; height: 36px; }
  .entry-auth .auth-feature strong { font-size: 13px; }
  .entry-auth .auth-feature small { font-size: 11px; }
  .entry-auth .auth-photo .entry-disclosure { padding-top: 15px; }
  .entry-auth .auth-side { padding: 25px 24px 22px; }
  .entry-auth .auth-tabs a { padding-bottom: 12px; }
  .entry-auth .login-form.access { margin-top: 24px; }
  .entry-auth .login-form.access h2 { font-size: 26px; }
  .entry-auth .login-form.access > p#auth-description { margin: 6px 0 18px; }
  .entry-auth .login-form.access label { margin-top: 14px; }
  .entry-auth .login-form.access .auth-create { margin-top: 18px; padding-top: 15px; }
  .entry-auth .auth-back { margin-top: 13px; }
}
