/* D139 header themes (owner, 23 Nov 2026). The header carries data-th="<theme>"; html carries data-theme for step bars.
   Art lives in partials/theme-art (inline SVG). "classic" is today's header, unchanged. Hidden layers use visibility, not
   display:none, so their SVG gradients still resolve in every browser. */
.gh{position:sticky}
.gh>*:not(.ta):not(.tbs){position:relative;z-index:1}
.gh .tbs{z-index:2}
.gh .ta{position:absolute;inset:0;overflow:hidden;border-radius:inherit;pointer-events:none;z-index:0}
.gh .ta-t{position:absolute;inset:0;visibility:hidden}
.gh .ta-wide{position:absolute;inset:0;width:100%;height:100%}
.gh .ta-obj{position:absolute;overflow:visible}
.gh[data-th="farmstead"] .ta-t[data-for="farmstead"],.gh[data-th="glass"] .ta-t[data-for="glass"],.gh[data-th="dew"] .ta-t[data-for="dew"],
.gh[data-th="bright"] .ta-t[data-for="bright"],.gh[data-th="leaf"] .ta-t[data-for="leaf"],.gh[data-th="teal"] .ta-t[data-for="teal"],
.gh[data-th="neon"] .ta-t[data-for="neon"]{visibility:visible}
/* gentle motion: a slow leaf sway and a glow that breathes; none for people who ask for less motion */
.gh .ta-sway{transform-origin:10% 90%;animation:taSway 7s ease-in-out infinite}
@keyframes taSway{0%,100%{transform:rotate(0)}50%{transform:rotate(-2.5deg)}}
.gh .ta-glow{filter:drop-shadow(0 0 3px rgba(108,224,138,.9));animation:taGlow 5s ease-in-out infinite}
@keyframes taGlow{0%,100%{opacity:.75}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.gh .ta-sway,.gh .ta-glow{animation:none}}

/* shared shape for the themed headers: a little taller (room for the art), rounded bottom corners, a soft shadow */
.gh:not([data-th="classic"]):not(.thp){height:64px}
html:not([data-theme="classic"]) .wrap{min-height:calc(100vh - 64px)}
@media (max-width:900px){html:not([data-theme="classic"]) .lm,html:not([data-theme="classic"]) .hb-rail{top:64px}}
.gh:not([data-th="classic"]){border-radius:0 0 18px 18px;box-shadow:0 8px 20px rgba(8,30,18,.28)}
/* square-ish menu button (01, 02, 03, 07) and round bordered bell (03, 07) */
.gh[data-th="farmstead"] .mbtn,.gh[data-th="glass"] .mbtn,.gh[data-th="dew"] .mbtn,.gh[data-th="neon"] .mbtn,
.gh[data-th="farmstead"] .hb-mbtn,.gh[data-th="glass"] .hb-mbtn,.gh[data-th="dew"] .hb-mbtn,.gh[data-th="neon"] .hb-mbtn{width:40px;height:40px;border-radius:12px;background:rgba(255,255,255,.07);border:1px solid rgba(255,255,255,.2);align-items:center;justify-content:center}
.gh[data-th="dew"] .tbbell,.gh[data-th="neon"] .tbbell{width:38px;height:38px;justify-content:center;border-radius:50%;border:1px solid rgba(255,255,255,.28);background:rgba(255,255,255,.05);margin:0!important}
/* the globe on the language pill shows in classic and neon (as in the samples), not in the others */
.gh[data-th="farmstead"] .tblang summary svg,.gh[data-th="glass"] .tblang summary svg,.gh[data-th="dew"] .tblang summary svg,
.gh[data-th="bright"] .tblang summary svg,.gh[data-th="leaf"] .tblang summary svg,.gh[data-th="teal"] .tblang summary svg{display:none}
.gh .tblang summary{backdrop-filter:blur(3px)}
/* avatar ring */
.gh:not([data-th="classic"]) .tbu .av,.gh:not([data-th="classic"]) .hb-top-av .av{box-shadow:0 0 0 2px rgba(255,255,255,.85),0 0 0 4px rgba(108,194,74,.55)}

/* backgrounds */
.gh[data-th="farmstead"]{background:linear-gradient(180deg,#161d18 0%,#1b261d 100%)}
.gh[data-th="glass"]{background:linear-gradient(120deg,#20292b 0%,#1d2d27 55%,#25473a 100%)}
.gh[data-th="dew"]{background:radial-gradient(120% 140% at 70% 0%,#173322 0%,#0d1a12 60%)}
.gh[data-th="bright"]{background:linear-gradient(120deg,#0c3d1b 0%,#145a28 55%,#1d7330 100%)}
.gh[data-th="leaf"]{background:linear-gradient(120deg,#0E3B26 0%,#11492c 60%,#165a33 100%)}
.gh[data-th="teal"]{background:linear-gradient(120deg,#0c2523 0%,#0f322d 55%,#11423a 100%)}
.gh[data-th="neon"]{background:radial-gradient(120% 160% at 55% 0%,#0b3a22 0%,#062317 65%)}

/* alert count colours: Growapp yellow by default; orange or red where the sample used it (white text keeps AA) */
.tbbd{position:absolute;top:0;right:0;background:#F2C230;color:#0E3B26;border-radius:10px;font-size:11px;font-weight:800;padding:0 5px;line-height:16px}
.gh[data-th="farmstead"] .tbbd,.gh[data-th="farmstead"] .bd{background:#A9531B;color:#fff}
.gh[data-th="leaf"] .tbbd,.gh[data-th="leaf"] .bd{background:#C2410C;color:#fff}
.gh[data-th="neon"] .tbbd,.gh[data-th="neon"] .bd{background:#D92D20;color:#fff}
.gh[data-th="dew"] .tbbell .tbbd,.gh[data-th="neon"] .tbbell .tbbd{top:-4px;right:-6px}

/* ---------- step bars for multi-step flows: <x-steps> (samples 07–11) ---------- */
.stp{list-style:none;margin:10px 0 12px;padding:0;display:flex;align-items:center;gap:0;counter-reset:stp}
.stp li{display:flex;align-items:center;gap:8px;flex:1;min-width:0;font-size:13px;font-weight:700;color:#5B6B60}
.stp li:last-child{flex:none}
.stp li .n{flex:none;width:30px;height:30px;border-radius:50%;display:flex;align-items:center;justify-content:center;font-weight:800;font-size:13.5px;border:2px solid #CBD5C8;color:#5B6B60;background:#fff}
.stp li .t{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.stp li:not(:last-child):after{content:"";flex:1;min-width:10px;height:2px;border-radius:2px;background:#DCE4D8;margin:0 6px}
.stp li.done .n{background:#1B7A34;border-color:#1B7A34;color:#fff}.stp li.done:not(:last-child):after{background:#1B7A34}
.stp li.cur{color:#0E3B26}
.stp li .ic{display:none}
/* light: pill on a white card (07, 11) */
.stp-light{background:#fff;border:1px solid #E3E8E1;border-radius:999px;padding:6px 8px;box-shadow:0 4px 12px rgba(14,59,38,.06)}
.stp-light li.cur{flex:none;background:#E1F2E3;border-radius:999px;padding:3px 12px 3px 3px;margin-right:6px}
.stp-light li.cur .n{background:#0E3B26;border-color:#0E3B26;color:#fff}
.stp-light li.cur:not(:last-child):after{display:none}
/* dark: green pills inside a dark band (08) */
.stp-dark{background:linear-gradient(120deg,#0E3B26,#145a33);border-radius:999px;padding:6px 8px;color:#CFE3D6;box-shadow:0 6px 16px rgba(14,59,38,.25)}
.stp-dark li{color:#CFE3D6}.stp-dark li .n{background:transparent;border-color:rgba(255,255,255,.5);color:#fff}
.stp-dark li:not(:last-child):after{background:rgba(255,255,255,.25)}
.stp-dark li.done .n{background:#3FA535;border-color:#3FA535}.stp-dark li.done:not(:last-child):after{background:#6CC24A}
.stp-dark li.cur{flex:none;background:linear-gradient(90deg,#1f8a3a,#3FA535);border-radius:999px;padding:3px 12px 3px 3px;color:#fff;margin-right:6px;box-shadow:0 0 0 1px rgba(255,255,255,.18)}
.stp-dark li.cur .n{background:#fff;color:#0E3B26;border-color:#fff}
.stp-dark li.cur:not(:last-child):after{display:none}
/* icon: icons in rings, the current one glows, labels under (09) */
.stp-icon{background:linear-gradient(120deg,#0c2523,#0f3a33);border-radius:18px;padding:10px 8px 8px;align-items:flex-start}
.stp-icon li{flex-direction:column;gap:5px;position:relative;font-size:11.5px;color:#BFD8C7;text-align:center}
.stp-icon li:last-child{flex:1}
.stp-icon li .n{width:36px;height:36px;background:rgba(255,255,255,.04);border-color:rgba(255,255,255,.35);color:#fff}
.stp-icon li .n b{display:none}.stp-icon li .ic{display:block;width:18px;height:18px}
.stp-icon li:not(:last-child):after{position:absolute;top:18px;left:calc(50% + 22px);right:calc(-50% + 22px);margin:0;min-width:0}
.stp-icon li.done .n{background:#1B7A34;border-color:#3FA535}
.stp-icon li.cur{color:#fff}
.stp-icon li.cur .n{background:radial-gradient(circle,#3FA535,#1B7A34);border-color:#B6F27A;box-shadow:0 0 0 4px rgba(108,194,74,.25),0 0 14px rgba(182,242,122,.55)}
.stp-icon li.cur .t{background:rgba(108,194,74,.2);border:1px solid rgba(182,242,122,.45);border-radius:999px;padding:1px 8px}
.stp-icon li .t{max-width:100%}
/* small screens: only the current step keeps its words in light and dark bars */
@media (max-width:520px){.stp-light li:not(.cur) .t,.stp-dark li:not(.cur) .t{display:none}.stp li{gap:6px}}
/* computers: compact numbered steps under the header (10) */
@media (min-width:1100px){.stp-dark{max-width:640px}.stp-light{max-width:720px}.stp-icon{max-width:640px}}

/* ---------- flow header (07): ← back + Growapp | page title, used on step pages on phones ---------- */
.flowh{display:none;align-items:center;gap:10px;margin:-2px 0 6px}
.flowh a{width:38px;height:38px;border-radius:12px;border:1.5px solid #CBD5C8;background:#fff;display:flex;align-items:center;justify-content:center;color:#0E3B26;text-decoration:none;font-size:18px;font-weight:800;flex:none}
.flowh b{font-size:15px;color:#0E3B26}.flowh span{color:#9AA89F}.flowh em{font-style:normal;font-size:15px;color:#3F4D44;font-weight:600}

/* ---------- Appearance page previews ---------- */
.thg{display:grid;grid-template-columns:repeat(auto-fill,minmax(280px,1fr));gap:14px}
.thc{display:block;width:100%;text-align:left;background:#fff;border:2px solid #E3E8E1;border-radius:18px;padding:10px;cursor:pointer;font:inherit;color:inherit;transition:border-color .15s,box-shadow .15s}
.thc:hover{border-color:#9CC4A8}.thc[aria-pressed="true"]{border-color:#1B7A34;box-shadow:0 0 0 4px rgba(27,122,52,.15)}
.thc .gh{position:relative;height:60px!important;display:flex;align-items:center;gap:10px;padding:0 12px;color:#fff;background:#0E3B26;border-radius:14px!important;overflow:visible}
.thc .gh .lg{font-weight:800;font-size:15px;display:flex;align-items:center;gap:6px}
.thc .gh .rt{margin-left:auto;display:flex;align-items:center;gap:8px}
.thc .gh .pl{font-size:10.5px;font-weight:800;padding:3px 7px;border-radius:12px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.28)}
.thc .gh .bl{position:relative;display:flex}.thc .gh .bl .tbbd{top:-6px;right:-7px;font-size:9.5px;line-height:14px}
.thc .gh .fa{width:26px;height:26px;border-radius:50%;background:#F2C230;color:#0E3B26;font-size:10px;font-weight:800;display:flex;align-items:center;justify-content:center}
.thc .gh .mb{width:28px;height:28px;display:flex;align-items:center;justify-content:center}
.thc .nm{display:flex;justify-content:space-between;align-items:center;margin-top:10px}.thc .nm b{font-size:15px}
.thc .nm .ok{font-size:11px;font-weight:800;background:#1B7A34;color:#fff;border-radius:10px;padding:2px 8px;visibility:hidden}
.thc[aria-pressed="true"] .nm .ok{visibility:visible}
.thc small{display:block;color:#5B6B60;font-size:12.5px;margin-top:3px}
@media (max-width:900px){.flowh{display:flex}}
