/* Shared light palette. Original dark colors live in each declaration fallback. */
html[data-gg-theme="light"]{
  --gg-theme-accent-surface:rgb(231 200 207 / 1.00);
  --gg-theme-accent-surface-70:rgb(231 200 207 / 0.70);
  --gg-theme-accent-surface-75:rgb(231 200 207 / 0.75);
  --gg-theme-accent-surface-85:rgb(231 200 207 / 0.85);
  --gg-theme-accent-surface-90:rgb(231 200 207 / 0.90);
  --gg-theme-accent-surface-95:rgb(231 200 207 / 0.95);
  --gg-theme-danger:rgb(150 56 59 / 1.00);
  --gg-theme-green:rgb(40 102 75 / 1.00);
  --gg-theme-ink:rgb(55 39 57 / 1.00);
  --gg-theme-ink-85:rgb(55 39 57 / 0.85);
  --gg-theme-ink-90:rgb(55 39 57 / 0.90);
  --gg-theme-line-20:rgb(141 103 125 / 0.20);
  --gg-theme-line-25:rgb(141 103 125 / 0.25);
  --gg-theme-line-30:rgb(141 103 125 / 0.30);
  --gg-theme-line-35:rgb(141 103 125 / 0.35);
  --gg-theme-line-40:rgb(141 103 125 / 0.40);
  --gg-theme-line-45:rgb(141 103 125 / 0.45);
  --gg-theme-line-50:rgb(141 103 125 / 0.50);
  --gg-theme-line-55:rgb(141 103 125 / 0.55);
  --gg-theme-line-60:rgb(141 103 125 / 0.60);
  --gg-theme-muted:rgb(101 77 95 / 1.00);
  --gg-theme-muted-85:rgb(101 77 95 / 0.85);
  --gg-theme-paper:rgb(253 247 242 / 1.00);
  --gg-theme-paper-10:rgb(253 247 242 / 0.10);
  --gg-theme-paper-20:rgb(253 247 242 / 0.20);
  --gg-theme-paper-30:rgb(253 247 242 / 0.30);
  --gg-theme-paper-35:rgb(253 247 242 / 0.35);
  --gg-theme-paper-40:rgb(253 247 242 / 0.40);
  --gg-theme-paper-45:rgb(253 247 242 / 0.45);
  --gg-theme-paper-5:rgb(253 247 242 / 0.05);
  --gg-theme-paper-50:rgb(253 247 242 / 0.50);
  --gg-theme-paper-95:rgb(253 247 242 / 0.95);
  --gg-theme-shadow-10:rgb(102 64 86 / 0.10);
  --gg-theme-shadow-15:rgb(102 64 86 / 0.15);
  --gg-theme-shadow-20:rgb(102 64 86 / 0.20);
  --gg-theme-shadow-25:rgb(102 64 86 / 0.25);
  --gg-theme-shadow-30:rgb(102 64 86 / 0.30);
  --gg-theme-shadow-5:rgb(102 64 86 / 0.05);
  --gg-theme-surface:rgb(244 227 228 / 1.00);
  --gg-theme-surface-10:rgb(244 227 228 / 0.10);
  --gg-theme-surface-20:rgb(244 227 228 / 0.20);
  --gg-theme-surface-25:rgb(244 227 228 / 0.25);
  --gg-theme-surface-30:rgb(244 227 228 / 0.30);
  --gg-theme-surface-35:rgb(244 227 228 / 0.35);
  --gg-theme-surface-40:rgb(244 227 228 / 0.40);
  --gg-theme-surface-45:rgb(244 227 228 / 0.45);
  --gg-theme-surface-50:rgb(244 227 228 / 0.50);
  --gg-theme-surface-95:rgb(244 227 228 / 0.95);
  --gg-theme-teal:rgb(117 64 92 / 1.00);
  --gg-theme-teal-85:rgb(117 64 92 / 0.85);
  --gg-theme-tint:rgb(235 207 218 / 1.00);
  --gg-theme-tint-10:rgb(235 207 218 / 0.10);
  --gg-theme-tint-15:rgb(235 207 218 / 0.15);
  --gg-theme-tint-20:rgb(235 207 218 / 0.20);
  --gg-theme-tint-25:rgb(235 207 218 / 0.25);
  --gg-theme-tint-30:rgb(235 207 218 / 0.30);
  --gg-theme-tint-35:rgb(235 207 218 / 0.35);
  --gg-theme-tint-40:rgb(235 207 218 / 0.40);
  --gg-theme-tint-5:rgb(235 207 218 / 0.05);
  --gg-theme-tint-90:rgb(235 207 218 / 0.90);
  --gg-theme-tint-95:rgb(235 207 218 / 0.95);
  --gg-theme-violet:rgb(112 73 121 / 1.00);
  --gg-theme-violet-85:rgb(112 73 121 / 0.85);
  --gg-theme-violet-90:rgb(112 73 121 / 0.90);
  --gg-theme-warm:rgb(123 80 39 / 1.00);
  --gg-theme-warm-85:rgb(123 80 39 / 0.85);
  --gg-theme-wash-10:rgb(195 150 169 / 0.10);
  --gg-theme-wash-15:rgb(195 150 169 / 0.15);
  --gg-theme-wash-20:rgb(195 150 169 / 0.20);
  --gg-theme-wash-25:rgb(195 150 169 / 0.25);
  --gg-theme-wash-30:rgb(195 150 169 / 0.30);
  --gg-theme-wash-35:rgb(195 150 169 / 0.35);
  --gg-theme-wash-40:rgb(195 150 169 / 0.40);
  --gg-theme-wash-45:rgb(195 150 169 / 0.45);
  --gg-theme-wash-5:rgb(195 150 169 / 0.05);
}
/* Appearance controls are native UI; they do not alter the sun/moon scene. */
html{--gg-appearance-bg:#102331;--gg-appearance-ink:#e8f1f2;--gg-appearance-muted:#b0c9ce;--gg-appearance-line:#536f79;--gg-appearance-accent:#b2e4d8}
html[data-gg-theme="light"]{--gg-appearance-bg:#fcf4ef;--gg-appearance-ink:#372739;--gg-appearance-muted:#654d5f;--gg-appearance-line:#b78d9f;--gg-appearance-accent:#75405c}
.gg-appearance-menu{position:relative;flex:0 0 auto;color:var(--gg-appearance-ink);z-index:110}
.gg-appearance-menu>button{list-style:none;display:grid;place-items:center;width:44px;min-height:44px;padding:0;border:1px solid var(--gg-appearance-line);border-radius:50%;cursor:pointer;background:var(--gg-appearance-bg);font:26px/1 Georgia,serif;user-select:none}
.gg-appearance-menu>button:hover,.gg-appearance-menu>button[aria-expanded="true"]{border-color:var(--gg-appearance-accent)}
.gg-appearance-dialog{box-sizing:border-box;position:fixed;inset:max(70px,calc(env(safe-area-inset-top,0px) + 70px)) 0 auto;margin:0 auto;width:min(360px,calc(100% - 24px));max-width:calc(100% - 24px);max-height:calc(100vh - 94px);max-height:calc(100dvh - max(70px,calc(env(safe-area-inset-top,0px) + 70px)) - max(24px,env(safe-area-inset-bottom,0px)));padding:20px;overflow:auto;overscroll-behavior:contain;background:var(--gg-appearance-bg);color:var(--gg-appearance-ink);border:1px solid var(--gg-appearance-line);border-radius:20px;box-shadow:0 16px 48px #0003;text-align:left}
.gg-appearance-dialog:not([open]){display:none}
.gg-appearance-dialog::backdrop{background:#04132459}
.gg-appearance-dialog .gg-appearance-body legend{padding-right:44px;min-height:28px;display:flex;align-items:center}
.gg-appearance-close{position:absolute;z-index:1;top:8px;right:8px;width:44px;height:44px;display:grid;place-items:center;padding:0;border:0;border-radius:50%;background:transparent;color:var(--gg-appearance-ink);font:28px/1 Arial,sans-serif;cursor:pointer}
.gg-appearance-close:hover{background:var(--gg-theme-tint-20,#adcddb20)}
.gg-appearance-close:focus-visible{outline:3px solid var(--gg-appearance-accent);outline-offset:-4px}
@media(max-height:450px){.gg-appearance-dialog{inset:max(12px,env(safe-area-inset-top,0px)) 0 auto;max-height:calc(100vh - 24px);max-height:calc(100dvh - max(12px,env(safe-area-inset-top,0px)) - max(12px,env(safe-area-inset-bottom,0px)))}}
.gg-appearance-settings{padding:20px;border:1px solid var(--gg-appearance-line);border-radius:20px;background:var(--gg-appearance-bg);color:var(--gg-appearance-ink);margin:18px 0}
.gg-appearance-body fieldset{margin:0;padding:0;border:0;min-width:0}
.gg-appearance-body legend{padding:0;margin:0 0 14px;font-size:1rem;font-weight:650;letter-spacing:0;color:var(--gg-appearance-ink)}
.gg-appearance-options{display:grid;grid-template-columns:repeat(3,minmax(0,1fr));gap:8px;max-width:480px}
.gg-appearance-body .gg-appearance-choice{display:flex;flex-direction:column;align-items:center;justify-content:flex-start;gap:10px;position:relative;min-width:0;padding:10px 6px;border:1px solid var(--gg-appearance-line);border-radius:12px;cursor:pointer;font-size:12px;line-height:1.35;text-align:center;color:var(--gg-appearance-ink);background:transparent;letter-spacing:0}
.gg-appearance-choice input{position:absolute;opacity:0;width:1px;height:1px;margin:0}
.gg-appearance-choice:has(input:checked){border-color:var(--gg-appearance-accent);box-shadow:0 0 0 1px var(--gg-appearance-accent)}
.gg-appearance-choice:has(input:focus-visible),.gg-appearance-menu>button:focus-visible{outline:3px solid var(--gg-appearance-accent);outline-offset:4px}
.gg-appearance-swatch{display:grid;place-items:center;width:48px;height:36px;border-radius:7px;border:1px solid #73918a;font-family:Georgia,serif;font-size:21px}
.gg-appearance-swatch.swatch-dark{background:#071b2b;color:#e7f2f1}
.gg-appearance-swatch.swatch-light{background:linear-gradient(135deg,#fff7e9,#eccbd5);color:#372739}
.gg-appearance-swatch.swatch-system{background:linear-gradient(90deg,#071b2b 50%,#f3dce1 50%);color:#78ada6}
.gg-appearance-body .gg-appearance-status{font-size:12px;line-height:1.5;margin:14px 0 0;letter-spacing:0;color:var(--gg-appearance-muted)}
.gg-appearance-body .gg-context-note{margin:14px 0 0;font-size:13px;color:var(--gg-appearance-muted)}
.gg-appearance-body .gg-context-note summary{cursor:pointer}
.gg-appearance-body .gg-context-note p{font-size:13px;line-height:1.6;color:var(--gg-appearance-muted)}
@media(max-width:600px){.gg-appearance-settings{padding:16px}}
/* Lotus palette: luminous canvas, warm windows and quiet writing surfaces.
   The shared tokens also color native account, guide and diary components. */
html[data-gg-theme="light"]{
  --gg-sky-canvas:radial-gradient(ellipse at 50% 30%,#fffaf0 0%,transparent 48%),radial-gradient(ellipse at 0% 54%,#e8ddec8c,transparent 60%),linear-gradient(145deg,#fcf5ee 0%,#f1dfe3 50%,#eee6ef 100%);
  --gg-sky-window:radial-gradient(ellipse at 100% 0%,#ead9e880,transparent 56%),linear-gradient(140deg,#fffaf3 0%,#f8eceb 48%,#f0dfe6 100%);
  --gg-sky-card:linear-gradient(135deg,#fffaf4 0%,#f6e5e6 62%,#eedce5 100%);
  --gg-sky-violet:linear-gradient(135deg,#fbf7fc 0%,#eee3f0 56%,#e5d8e9 100%);
  --gg-sky-paper:linear-gradient(155deg,#fffdf8 0%,#fcf1ec 100%);
  --gg-sky-button:linear-gradient(130deg,#fae7dd 0%,#ebc9d4 65%,#dec4da 100%);
  --gg-sky-side:linear-gradient(180deg,#eedbe1,#f8ece7 65%,#e9dfe9);
  --gg-sky-border:#bd98ab;
  --gg-sky-shadow:0 16px 36px #80566c20,inset 0 1px 0 #ffffffd4;
  --gg-sky-window-shadow:0 30px 80px #62435d30,0 3px 12px #80566c14,inset 0 1px 0 #ffffffeb;
  --gg-human-surface:var(--gg-sky-card);
  --gg-ai-surface:var(--gg-sky-violet);
  --gg-system-surface:linear-gradient(135deg,#fcf5ed,#eee1d5);
  --gg-pattern-surface:linear-gradient(135deg,#f6f5eb,#e5e7dc);
}
html[data-gg-theme="light"] body::before,html[data-gg-theme="light"] main.gg-unified-world{background:var(--gg-sky-canvas)}
html[data-gg-theme="light"] main.gg-unified-world::before{opacity:1;filter:none;inset:auto 0 auto;top:var(--gg-world-top,0px);height:var(--gg-world-height,1600px);background-position:center top;background-size:auto 100%;background-image:url("/images/pond-light-v2.3.64.webp");-webkit-mask-image:linear-gradient(#000 0%,#000 74%,transparent 100%);mask-image:linear-gradient(#000 0%,#000 74%,transparent 100%)}
html[data-gg-theme="light"] .gg-world-positioned.gg-world-lit>.gg-world-surface{opacity:0}
html[data-gg-theme="light"] .knowledge-map .knowledge-lines{opacity:.35}
/* Measured chest coordinate belongs to the existing figure/core geometry. */
html[data-gg-theme="light"] .hero#top .hero-shade::after{
  content:"";position:absolute;pointer-events:none;z-index:0;
  width:max(100%,calc(var(--gg-fit-orbit,400px) * 1.65));
  aspect-ratio:3/2;left:50%;top:var(--gg-chest-top,400px);
  transform:translate(-50%,-64%);
  background:url('/images/lotus-light-v2.3.63.webp') center/contain no-repeat;
  opacity:.48;
  -webkit-mask-image:radial-gradient(ellipse at center,#000 35%,#000b 57%,transparent 73%);
  mask-image:radial-gradient(ellipse at center,#000 35%,#000b 57%,transparent 73%);
}
html[data-gg-theme="light"] .hero#top .hero-shade::before{z-index:1;background-image:url("/images/figure-light-v2.3.64.webp");filter:none}
html[data-gg-theme="light"] .topbar{background:linear-gradient(115deg,#fff9f1fa,#f3e5ecf5);border-bottom-color:#bd98ab70;box-shadow:0 4px 22px #80566c12}
html[data-gg-theme="light"] :is(.gg-appearance-settings,.gg-appearance-dialog){background:var(--gg-sky-window);box-shadow:var(--gg-sky-shadow)}
html[data-gg-theme="light"] :is(.account-card,.gg-personal-panel,.gg-analysis-panel,.gg-return-access,.daily-guides button,.nature-cards button){box-shadow:var(--gg-sky-shadow)}
html[data-gg-theme="light"] .gg-home-overview .gg-home-primary{box-shadow:0 6px 16px #80566c23,inset 0 1px 0 #ffffffbf}
html[data-gg-theme="light"] :is(input,textarea,select){border-color:#b18d9f}
html[data-gg-theme="light"] ::placeholder{color:#735968;opacity:1}
html.gg-theme-changing *,html.gg-theme-changing *::before,html.gg-theme-changing *::after{transition:none!important}
