/* V75.3 / Soft Earth UI system — dashboard and owner surfaces only.
   One neutral canvas, one warm card surface, one olive action, sage & clay accents.
   No marketing page, billing functions, permissions or content-generation code is changed. */
:root {
  --shd-earth-canvas:#F7F3EC;
  --shd-earth-card:#FFFCF7;
  --shd-earth-paper:#F2ECE2;
  --shd-earth-sage:#E3E6DA;
  --shd-earth-olive:#485840;
  --shd-earth-dark:#344235;
  --shd-earth-clay:#985F4E;
  --shd-earth-ink:#303A31;
  --shd-earth-muted:#647063;
  --shd-earth-border:#D8CDBF;
  --shd-earth-focus:#A26851;
}
body[data-page="free"],body[data-page="paid"],body[data-page="gateway"],body[data-page="admin"] {
  --cream:var(--shd-earth-canvas);
  --paper:var(--shd-earth-card);
  --paper-2:var(--shd-earth-paper);
  --green:var(--shd-earth-olive);
  --green-2:var(--shd-earth-dark);
  --green-3:var(--shd-earth-sage);
  --gold:var(--shd-earth-clay);
  --gold-2:#B88B7A;
  --ink:var(--shd-earth-ink);
  --muted:var(--shd-earth-muted);
  --line:var(--shd-earth-border);
  background:var(--shd-earth-canvas)!important;
  color:var(--shd-earth-ink);
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"],[data-page="admin"]) .shd-global-header {
  background:#FBF8F2!important;border-bottom:1px solid var(--shd-earth-border)!important;
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"],[data-page="admin"]) .shd-global-menu {
  background:#FBF8F2!important;border-color:var(--shd-earth-border)!important;
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"],[data-page="admin"]) .shd-global-toggle {
  color:var(--shd-earth-olive)!important;border-color:var(--shd-earth-border)!important;
  background:var(--shd-earth-card)!important;
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) .app-main {
  background:var(--shd-earth-canvas)!important;
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) :is(.panel,.locked-screen,.dashboard-header,.premium-today,.premium-toolbox,.premium-onboarding,.preferences-card,.member-home-panel,.planning-library-premium,.connection-continuity,.wellness-path,.collection-panel,.account-card) {
  background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important;
  box-shadow:0 2px 11px rgba(49,55,43,.045)!important;
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) :is(.panel input,.panel select,.panel textarea,.premium-onboarding input,.premium-onboarding select,.preferences-body select,.preferences-body input) {
  background:var(--shd-earth-card)!important;border-color:#C8CABB!important;color:var(--shd-earth-ink)!important;
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) :is(.btn-primary,.btn-gold,[data-generate-free],[data-generate-paid]) {
  background:var(--shd-earth-olive)!important;border-color:var(--shd-earth-olive)!important;color:#FFFDF8!important;
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) :is(.btn-outline,.btn-light,.text-link,.text-button) {
  border-color:var(--shd-earth-border);color:var(--shd-earth-olive);
}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) .eyebrow {color:var(--shd-earth-clay)!important}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) :is(h1,h2,h3,.premium-section-heading h2) {color:var(--shd-earth-dark)}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) :is(p,.muted,.small-muted) {text-wrap:pretty}
body[data-page="free"] .daily-quote-card {
  background:var(--shd-earth-card)!important;border:1px solid var(--shd-earth-border)!important;
  border-left:4px solid var(--shd-earth-clay)!important;box-shadow:0 2px 12px rgba(53,49,39,.04)!important;
  border-radius:17px!important;margin-top:5px!important;margin-bottom:13px!important;
}
body[data-page="free"] .daily-quote-card blockquote {color:#3E493E!important}
body[data-page="free"] .daily-quote-card [data-copy-daily-quote]{background:var(--shd-earth-olive)!important;color:#FFFDF8!important;border-color:var(--shd-earth-olive)!important}
body[data-page="free"] .daily-quote-card [data-native-share="quote"]{background:var(--shd-earth-paper)!important;color:var(--shd-earth-olive)!important;border-color:var(--shd-earth-border)!important}
body[data-page="free"] .free-grid .category-button,
body[data-page="free"] .free-grid .category-button:nth-child(4n+2),
body[data-page="free"] .free-grid .category-button:nth-child(4n+3) {
  background:var(--shd-earth-card)!important;border:1px solid var(--shd-earth-border)!important;
  border-radius:15px!important;color:var(--shd-earth-dark)!important;
  box-shadow:0 1px 5px rgba(49,55,43,.035)!important;
}
body[data-page="free"] .free-grid .category-button[aria-pressed="true"],
body[data-page="free"] .free-grid .category-button.active {
  background:var(--shd-earth-sage)!important;border-color:var(--shd-earth-olive)!important;
  box-shadow:inset 0 0 0 1px var(--shd-earth-olive)!important;
}
body[data-page="free"] .free-grid .category-button .cat-icon,
body[data-page="free"] .free-grid .category-button .cat-icon svg {color:var(--shd-earth-clay)!important;stroke:var(--shd-earth-clay)!important}
body[data-page="free"] .free-grid .category-button .shd-free-category-detail {color:var(--shd-earth-muted)!important}
body[data-page="free"] .shd-free-premium-spotlight {
  background:var(--shd-earth-sage)!important;border-color:#C9CEBD!important;
  border-radius:17px!important;box-shadow:none!important;
}
body[data-page="free"] .shd-free-premium-head h2 {color:var(--shd-earth-dark)!important}
body[data-page="free"] .shd-free-premium-items>div,
body[data-page="free"] .shd-free-premium-items>div:nth-child(2n) {
  background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important;
}
body[data-page="free"] .shd-free-premium-link {background:var(--shd-earth-olive)!important;color:#FFFCF7!important}
body:is([data-page="free"],[data-page="paid"]) :is(.shd-discover-guide-toggle,.shd-discover-guide,.shd-discover-preview,.shd-discover-random,.shd-featured-lab,.shd-fast-category,.shd-discover-find-result),
body:is([data-page="free"],[data-page="paid"]) .shd-discover-section[open]>summary {
  background:var(--shd-earth-sage)!important;border-color:#C9CEBD!important;
}
body:is([data-page="free"],[data-page="paid"]) :is(.shd-discover-section,.shd-discover-tile) {
  background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important;
}
body:is([data-page="free"],[data-page="paid"]) :is(.shd-discover-random-btn,.shd-featured-lab button) {
  background:var(--shd-earth-olive)!important;color:#FFFDF8!important;border-color:var(--shd-earth-olive)!important;
}
body:is([data-page="free"],[data-page="paid"]) .shd-premium-info-dialog {
  background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important;color:var(--shd-earth-ink)!important;
}
body:is([data-page="free"],[data-page="paid"]) .shd-premium-comparison section,
body:is([data-page="free"],[data-page="paid"]) .shd-premium-comparison section+section {
  background:var(--shd-earth-paper)!important;border-color:var(--shd-earth-border)!important;
}
.shd-premium-actions{display:grid;gap:8px}
.shd-premium-actions [hidden]{display:none!important}
.shd-premium-actions :is(.shd-premium-open-paid,.shd-premium-upgrade,.shd-premium-dialog-done){
  display:flex;align-items:center;justify-content:center;min-height:46px;border-radius:11px;
  padding:10px 12px;text-align:center;font-size:.9rem;font-weight:800;text-decoration:none;
}
.shd-premium-open-paid,.shd-premium-upgrade{background:var(--shd-earth-olive)!important;border:1px solid var(--shd-earth-olive)!important;color:#FFFDF8!important}
.shd-premium-dialog-done{background:var(--shd-earth-paper)!important;border:1px solid var(--shd-earth-border)!important;color:var(--shd-earth-olive)!important}
body[data-page="paid"] .member-intro-strip {background:var(--shd-earth-sage)!important;border-color:#CDD1C2!important}
body[data-page="paid"] .member-intro-links a {background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important;color:var(--shd-earth-olive)!important}
body[data-page="paid"] :is(.premium-today-grid article,.planning-library-grid a,.task-tile,.paid-category-card,.collection-item) {
  background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important;box-shadow:none!important;
}
body[data-page="paid"] .premium-onboarding {background:var(--shd-earth-card)!important}
body[data-page="paid"] .premium-today-grid article>span {color:var(--shd-earth-clay)!important}
body[data-page="paid"] .account-pill {background:var(--shd-earth-sage)!important;color:var(--shd-earth-olive)!important;border-color:#CBD0BF!important}
body[data-page="paid"] .premium-toolbox>summary {background:var(--shd-earth-card)!important}
body[data-page="paid"] .premium-toolbox[open]>summary {background:var(--shd-earth-sage)!important}
body:is([data-page="free"],[data-page="paid"]) .mobile-member-nav,
html.shd-native-shell body:is([data-page="free"],[data-page="paid"]) .mobile-member-nav {
  background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important;
}
body:is([data-page="free"],[data-page="paid"]) .mobile-member-nav a.active {background:var(--shd-earth-olive)!important;color:#FFFCF7!important}
body:is([data-page="free"],[data-page="paid"]) .mobile-member-nav a {color:var(--shd-earth-muted)!important}
body:is([data-page="free"],[data-page="paid"]) .mobile-member-nav a.active {color:#FFFCF7!important}
body[data-page="admin"] :is(.page-hero,.compact-section,.account-card,.admin-checklist){background:var(--shd-earth-card)!important;border-color:var(--shd-earth-border)!important}
body[data-page="admin"] .page-hero {background:var(--shd-earth-paper)!important}
body[data-page="admin"] :is(.btn.primary,.btn.secondary,.btn.ghost){border-color:var(--shd-earth-border)!important;color:var(--shd-earth-olive)!important}
body[data-page="admin"] .btn.primary {background:var(--shd-earth-olive)!important;color:#FFFCF7!important}
body:is([data-page="free"],[data-page="paid"],[data-page="gateway"]) :is(a,button,input,select,textarea,summary):focus-visible {
  outline:3px solid var(--shd-earth-focus)!important;outline-offset:2px;
}
@media(max-width:760px){
  body:is([data-page="free"],[data-page="paid"]) .app-main>.container{padding-left:12px!important;padding-right:12px!important}
  body[data-page="paid"] .member-intro-strip{display:none!important} /* Bottom navigation already duplicates these links. */
  body[data-page="paid"] .dashboard-header{padding:15px!important;margin:4px 0 12px!important;border-radius:17px!important}
  body[data-page="paid"] .dashboard-header h1{font-size:clamp(1.52rem,5.1vw,1.94rem)!important}
  body[data-page="paid"] .dashboard-header p{font-size:.82rem!important;margin:5px 0!important}
  body[data-page="paid"] .premium-onboarding{margin:10px 0!important;padding:0!important;border-radius:14px!important}
  body[data-page="paid"] .shd-premium-onboarding-summary{padding:11px 13px!important}
  body[data-page="paid"] .premium-today{padding:13px!important;margin:11px 0!important;border-radius:16px!important}
  body[data-page="paid"] .premium-section-heading{gap:4px!important;margin-bottom:10px!important}
  body[data-page="paid"] .premium-section-heading h2{font-size:1.27rem!important;line-height:1.23!important}
  body[data-page="paid"] .premium-today-grid{grid-template-columns:repeat(2,minmax(0,1fr))!important;gap:8px!important}
  body[data-page="paid"] .premium-today-grid article{min-height:110px!important;padding:11px!important;border-radius:12px!important}
  body[data-page="paid"] .premium-today-grid article:last-child{grid-column:1/-1}
  body[data-page="paid"] .premium-today-grid h3{font-size:.96rem!important;margin:4px 0!important;line-height:1.17!important}
  body[data-page="paid"] .premium-today-grid p{display:none!important}
  body[data-page="paid"] .premium-today-grid button{font-size:.78rem!important;line-height:1.3!important;text-align:left!important;margin-top:auto!important}
  body:is([data-page="free"],[data-page="paid"]) .shd-global-links a[data-global-route="home"]{color:var(--shd-earth-olive)!important;font-weight:800}
  body[data-page="free"] .free-grid{gap:8px!important}
  body[data-page="free"] .free-grid .category-button {min-height:82px!important}
  body:is([data-page="free"],[data-page="paid"]) .shd-premium-info-dialog{max-height:min(88dvh,680px)!important}
  body[data-page="free"] .shd-free-premium-spotlight{margin:12px 0 14px!important}
}
@media(max-width:360px){body[data-page="paid"] .premium-today-grid{grid-template-columns:1fr!important}body[data-page="paid"] .premium-today-grid article:last-child{grid-column:auto}}

/* Single-tap return to Full Access, shown only when a verified admin/paid session previews Free. */
body[data-page="free"] .shd-return-to-full-access {
  display:flex;align-items:center;justify-content:space-between;gap:8px;
  min-height:44px;padding:9px 14px;margin:-5px 0 14px;border-radius:11px;
  color:var(--shd-earth-olive);background:var(--shd-earth-card);
  border:1px solid var(--shd-earth-border);font-size:.87rem;font-weight:800;text-decoration:none;
}
body[data-page="free"] .shd-return-to-full-access[hidden]{display:none!important}
body[data-page="free"] .shd-return-to-full-access span{color:var(--shd-earth-clay)}
