/* Sign-in page and account screen. Uses the shared tokens from styles.css. */
.auth-page{min-height:100vh;display:grid;grid-template-columns:minmax(0,5fr) minmax(0,6fr);background:var(--stone)}
.auth-story{display:flex;flex-direction:column;justify-content:space-between;padding:44px 48px;color:#eef3ea;
  background:linear-gradient(160deg,rgba(30,41,25,.55),rgba(30,41,25,.92)),url('/grove.svg') center/cover,var(--olive-dark)}
.auth-brand{display:flex;align-items:center;gap:12px}
.auth-brand strong{font:500 34px "Newsreader",serif;letter-spacing:.01em}
.auth-brand.mobile{display:none;color:var(--olive)}
.auth-quote{font:500 42px/1.1 "Newsreader",serif;margin:0 0 12px;max-width:420px}
.auth-quote-sub{margin:0;color:#c7d3c0;font-size:17px}
.auth-panel{display:flex;flex-direction:column;padding:28px 40px 48px}
.auth-top{display:flex;justify-content:flex-end;align-items:center;gap:12px}
.auth-card{width:100%;max-width:440px;margin:auto;padding:36px 34px;background:var(--surface);border:1px solid var(--line);border-radius:22px;box-shadow:var(--shadow)}
.auth-card h1{font:500 32px/1.15 "Newsreader",serif;color:var(--olive-dark);margin:6px 0 24px}
.auth-card .field input{min-height:52px;font-size:17px}
.auth-card .field small{color:var(--muted);font-size:14px}
.auth-google{display:flex;align-items:center;justify-content:center;gap:12px;width:100%;font-weight:700;text-decoration:none}
.auth-divider{display:flex;align-items:center;gap:12px;margin:22px 0;color:var(--muted);font-size:14px}
.auth-divider::before,.auth-divider::after{content:"";flex:1;border-top:1px solid var(--line)}
.auth-form .form-error{min-height:1.3em}
.auth-switch{margin:22px 0 0;text-align:center;color:var(--muted);font-size:16px}
.link-button{background:none;border:0;padding:4px;color:var(--olive);font:inherit;font-weight:700;text-decoration:underline;cursor:pointer}
@media (max-width:860px){
  .auth-page{grid-template-columns:1fr}
  .auth-story{display:none}
  .auth-brand.mobile{display:flex;margin-right:auto}
  .auth-panel{padding:18px 16px 32px}
  .auth-card{padding:28px 20px;border-radius:18px}
}

a.profile-badge{text-decoration:none}
.profile-menu{position:relative;flex:none}
.profile-menu summary{list-style:none;cursor:pointer}
.profile-menu summary::-webkit-details-marker{display:none}
.profile-menu .profile-badge{width:48px;height:48px;display:grid;place-items:center;font-size:16px;border:1px solid var(--line)}
.profile-menu .profile-badge:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.profile-menu-panel{position:absolute;right:0;top:calc(100% + 12px);z-index:70;width:min(340px,calc(100vw - 32px));max-height:calc(100dvh - 90px);overflow-y:auto;padding:8px;border:1px solid var(--line);border-radius:16px;background:var(--surface);box-shadow:var(--shadow)}
.profile-menu-identity{display:grid;gap:4px;padding:12px 14px 15px;border-bottom:1px solid var(--line);overflow-wrap:anywhere}
.profile-menu-identity strong{font-size:17px;color:var(--ink)}
.profile-menu-identity span,.profile-menu-identity small{font-size:14px;color:var(--muted)}
.profile-menu-panel>a,.profile-menu-panel>button{width:100%;min-height:50px;display:flex;align-items:center;gap:10px;padding:10px 13px;border:0;border-radius:10px;background:transparent;color:var(--ink);font:700 15px "Plus Jakarta Sans",sans-serif;text-decoration:none;text-align:left;cursor:pointer}
.profile-menu-panel>a:hover,.profile-menu-panel>button:hover,.profile-menu-panel>a:focus-visible,.profile-menu-panel>button:focus-visible{background:var(--sage-wash)}
.profile-menu-panel>.profile-menu-signout{margin-top:5px;border-top:1px solid var(--line);border-radius:0 0 10px 10px;color:var(--clay)}
.notification-preferences{margin:0 0 24px;padding:22px;border:1px solid var(--line);border-radius:16px;background:var(--surface)}
.notification-preferences-heading{margin-bottom:10px}
.notification-preferences-heading>strong{font:500 26px/1.15 "Newsreader",serif;color:var(--olive)}
.notification-preferences-heading p{margin:7px 0 0;color:var(--muted);font-size:15px;line-height:1.5}
.notification-preference-row{display:flex;align-items:center;justify-content:space-between;gap:18px;min-height:68px;padding:11px 0;border-top:1px solid var(--line);cursor:pointer}
.notification-preference-row>span{display:grid;gap:3px;min-width:0}
.notification-preference-row strong{font-size:16px;color:var(--ink)}
.notification-preference-row small{font-size:13px;color:var(--muted)}
.notification-preference-row input{appearance:none;width:54px;height:32px;flex:none;position:relative;margin:0;border:2px solid #91a08c;border-radius:99px;background:#d7ded3;cursor:pointer;transition:background .15s,border-color .15s}
.notification-preference-row input:before{content:"";position:absolute;top:3px;left:3px;width:22px;height:22px;border-radius:50%;background:white;box-shadow:0 1px 4px #1f352844;transition:transform .15s}
.notification-preference-row input:checked{background:var(--olive);border-color:var(--olive)}
.notification-preference-row input:checked:before{transform:translateX(22px)}
.notification-preference-row input:focus-visible{outline:3px solid var(--focus);outline-offset:3px}
.notification-preference-row input:disabled{opacity:.55;cursor:not-allowed}
.notification-preferences-note{margin:12px 0 0;color:var(--muted);font-size:13px;line-height:1.45}
.notification-preferences-message{margin:8px 0 0;color:var(--olive);font-size:13px;font-weight:700}
.notification-preferences-message:empty{display:none}
.notification-preferences-action{min-height:42px;margin:0 0 12px;padding:8px 12px;border:1px solid var(--line);border-radius:9px;background:var(--sage-wash);color:var(--olive);font:700 14px "Plus Jakarta Sans",sans-serif;cursor:pointer}
.notification-preferences-action:disabled{opacity:.55;cursor:wait}
.notification-preferences.compact{margin:8px 0 0;padding:12px 10px 8px;border-width:1px 0 0;border-radius:0;background:transparent}
.notification-preferences.compact .notification-preferences-heading>strong{font:800 13px "Plus Jakarta Sans",sans-serif;letter-spacing:.04em;text-transform:uppercase}
.notification-preferences.compact .notification-preference-row{min-height:58px;gap:10px}
.notification-preferences.compact .notification-preference-row strong{font-size:14px}
.notification-preferences.compact .notification-preference-row small,.notification-preferences.compact .notification-preferences-note{font-size:12px}
@media(max-width:700px){.profile-menu .profile-badge{width:44px;height:44px;font-size:15px}}
@media(max-width:400px){.profile-menu .profile-badge{width:40px;height:40px}.top-controls{gap:4px}.theme-menu summary{width:38px;height:38px}.theme-swatch{width:23px;height:23px}.year-wrap select{max-width:68px}.language-wrap select{min-width:45px;padding-left:3px;padding-right:3px}.mobile-brand .brand-icon{width:32px;height:32px}}
.account-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(min(100%,420px),1fr));gap:20px;align-items:start}
.account-orchards{display:grid;gap:10px;margin-bottom:20px}
.account-orchard{display:grid;gap:3px;text-align:left;padding:16px 18px;border:1px solid var(--line);border-radius:14px;background:var(--surface);font:inherit;color:var(--ink);cursor:pointer;min-height:64px}
.account-orchard strong{font-size:17px}
.account-orchard small{color:var(--muted);font-size:14px}
.account-orchard.active{border-color:var(--olive);background:var(--sage-wash);cursor:default}
.account-members{list-style:none;margin:0 0 18px;padding:0;display:grid;gap:10px}
.account-members li{display:flex;align-items:center;gap:14px;padding:12px 0;border-bottom:1px solid var(--line)}
.account-members li>span:nth-child(2){flex:1;min-width:0}
.account-members strong,.account-members small{display:block;overflow-wrap:anywhere}
.account-members small{color:var(--muted);font-size:14px;margin-top:2px}
.account-members .profile-badge{display:grid;flex:none}
.account-inline{display:flex;flex-wrap:wrap;align-items:end;gap:12px;margin-top:16px}
.account-inline .field{flex:1 1 200px;width:auto;margin:0}
.auth-demo{margin-top:24px;padding-top:20px;border-top:1px solid var(--line)}
.auth-demo p{margin:0 0 12px;color:var(--muted);font-size:15px;line-height:1.45}
.auth-demo strong{color:var(--ink)}
.account-demo-note{margin:0 0 18px;padding:14px 16px;border-radius:12px;background:#f6ecd9;border:1px solid #e8d3a8;color:#5c4a24;font-size:16px}

/* Spacious plan preview on the tablet account page. */
.account-plans{margin:0 0 24px}
.account-plans-heading{display:flex;align-items:end;justify-content:space-between;gap:20px;margin:0 0 18px}
.account-plans-heading h2{font:500 clamp(27px,3vw,36px)/1.12 "Newsreader",serif;color:var(--olive-dark);margin:4px 0 8px}
.account-plans-heading p:not(.eyebrow){font-size:17px;line-height:1.5;color:var(--muted);max-width:700px;margin:0}
.account-plans-heading .button{flex:none}
.account-plan-grid{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:16px}
.account-plan-card{padding:23px;border:1px solid var(--line);border-radius:18px;background:var(--surface);min-height:280px}
.account-plan-card.current{border:2px solid var(--olive);padding:22px;background:var(--sage-wash)}
.account-plan-card.featured{background:linear-gradient(145deg,var(--olive-dark),#354931);color:#f7f9f2;border-color:var(--olive-dark)}
.account-plan-top{display:flex;align-items:center;justify-content:space-between;gap:8px}
.account-plan-top>span{font-size:29px;line-height:1}
.account-plan-top small{font-size:12px;letter-spacing:.08em;font-weight:800;color:var(--olive)}
.account-plan-card.featured .account-plan-top small{color:#d8e9c5}
.account-plan-card h3{font:500 31px/1.1 "Newsreader",serif;margin:15px 0 8px}
.account-plan-card p{font-size:16px;line-height:1.45;margin:0 0 16px}
.account-plan-card ul{display:grid;gap:9px;padding-left:21px;margin:0;font-size:15px;line-height:1.4}
.account-plans-note{font-size:14px;color:var(--muted);line-height:1.5;margin:12px 2px 0}
@media(max-width:920px){.account-plan-grid{grid-template-columns:1fr}.account-plan-card{min-height:0}.account-plans-heading{align-items:start;flex-direction:column}}
