
/* Same visual system as the rest of the site: parchment and gold (light), warm charcoal and gold (dark),
   Cormorant + Karla. The wheel is drawn like the planet ring on the readings page: thin rings, gold glyphs. */
:root { --f-display: 'Cormorant', Georgia, serif; --f-body: 'Karla', system-ui, sans-serif;
  --f-num: 'EB Garamond', 'Cormorant', Georgia, serif; /* chart numbers: classic book figures, like an ephemeris */
  --f-glyph: 'Noto Sans Symbols', 'Noto Sans Symbols 2', 'Segoe UI Symbol', 'Apple Symbols', serif; }
:root, :root[data-theme="light"] {
  --bg: #f3ecdf; --bg-alt: #e9e0cf; --card: #fbf7ef;
  --text: #2a2622; --text-2: #5a524a; --text-3: #6b6258; --muted: #756c61;
  --line: #d6cbb6; --ring: #cbbfa8; --ring-2: #ddd3c0; --tick: #c6a14a; --glyph: #a87b00;
  --accent: #7f5c00; --accent-hover: #634700; --on-accent: #fbf7ef; --rx: #a4452f; --cb: #7a1a12; --cz: #e8590c; --st: #9a7410; --sd: #3d6b2f; --wn: #2f5273;
  /* elements on the sign ring: terracotta fire, olive earth, ochre air, teal water */
  /* planets, by nature and rulership */
  --p-Sun: #e3a200; --p-Moon: #4a78b8; --p-Mercury: #15a72b; --p-Venus: #e8227a; --p-Mars: #e8160c; --p-Jupiter: #7a2cf0;
  --p-Saturn: #7a4420; --p-Uranus: #0a6cff; --p-Neptune: #00a8c0; --p-Pluto: #c4003c; --p-Node: #7a6f64; --p-SNode: #7a6f64;
  --p-Lilith: #5b4775; --p-Chiron: #2f6e3b; --p-Ceres: #9a7636; --p-Pallas: #3f6c9e; --p-Juno: #a54c7c; --p-Vesta: #c4542a; --p-Eris: #8a2f55; --p-Fortune: #a8862c; --p-ast: #6b5c48; --p-ast-10: #2c7d74; --p-ast-16: #5a5bb8; --p-ast-433: #b5333d; --p-ast-5145: #4e6a7a; --p-Spirit: #a8862c; --p-Eros: #a8862c; --p-Necessity: #a8862c; --p-Courage: #a8862c; --p-Victory: #a8862c; --p-Nemesis: #a8862c;
  --wheel-band: #f5e6bf; --wheel-houses: #f2f7f6; --wheel-centre: #fdf8ee;
  --zs-band: #d3ebe5; --zs-houses: #fbf6ea; --zs-centre: #ffffff;
  /* soft, low-contrast bands that sit with the site's parchment (honey is the default) */
  --sand-band: #efe6d4; --sand-houses: #fbf8f1; --sand-centre: #fffdf9;
  --sage-band: #e6e9dd; --sage-houses: #fbf8f1; --sage-centre: #fffdf9;
  --honey-band: #f3e7cb; --honey-houses: #fbf8f1; --honey-centre: #fffdf9;
  /* warmer trials (2026-10-01): amber = late-afternoon gold, ember = a touch more red in it */
  --amber-band: #efd59a; --amber-houses: #fcf5e4; --amber-centre: #fffaf0;
  --ember-band: #ecc99a; --ember-houses: #fcf3e6; --ember-centre: #fff9f1;
  /* aspect line ink: default "duo" = dark ink with a hint of red (squares, oppositions) and blue (trines, sextiles), chosen 2026-10-01; #ink = warm brown only; #black = the earlier black */
  --asp-ink: var(--text); --ink-warm0: #3b2618; --ink-hard0: #8a3226; --ink-soft0: #2a4c80; --ink-warm: color-mix(in oklab, var(--ink-warm0) 80%, var(--accent)); --ink-hard: color-mix(in oklab, var(--ink-hard0) 80%, var(--accent)); --ink-soft: color-mix(in oklab, var(--ink-soft0) 80%, var(--accent));   /* tuned lightly to the set: a fifth of the way to its accent (2026-11-14 09:40, Emilian picked "Tuned, lightly" on Hdy1pfAQu7TXUbrqcQENUt) */   /* aspect inks a little warmer, still muted (2026-10-11 14:25, Emilian picked "A little warmer" on page KEHxdzD6WYiXqfkHFKB15N; were #6a2418 / #1f3a66) */
  --paper: #faf5ea; --paper-edge: #f1e7d2; --grain: #7a5a2a; --grain-a: .045; /* aged paper inside the wheel */
  --hard: #b8352a; --soft: #2f5fa6; /* aspect lines: classic red for squares and oppositions, blue for trines and sextiles */
  /* sign colours vibrant 2026-10-04 (Emilian: "brightening the colors of the signs", then "more vibrant even. So they pop"); first brighter step #c43f12 #4f7d0a #9c6600 #08806f; originally #97401f #56601f #82600a #1d6a60 */
  --fire: #eccbbb; --fire-ink: #e8160c; --earth: #dcdcbf; --earth-ink: #15a72b;
  --air: #efe0b4; --air-ink: #e3a200; --water: #c3ddd7; --water-ink: #0a6cff;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --bg: #28272b; --bg-alt: #343337; --card: #28272b; /* (2026-10-03 22:30, Emilian: "another 2 shades lighter", was #1e1d21 / #2a292d; 2026-10-03 21:20, Emilian: near-black #141316 was "too dark. lighten it up 2 steps"; one step ≈ +5 per colour channel; earlier #1e1d23, #0a0a0b "too black") */
  --text: #ece5d6; --text-2: #b9b2a5; --text-3: #a8a196; --muted: #a19b8f;
  --line: #45423b; --ring: #4b4840; --ring-2: #3a3832; --tick: #c9a45c; --glyph: #d9922b;
  --accent: #c9a45c; --accent-hover: #e0c07d; --on-accent: #121214; --rx: #e08a6a; --cb: #c2483c; --cb-ash: #3a110d; --cz: #ff8a1f; --st: #d8bd62; --sd: #8cc084; --wn: #7f9fbf;
  --p-Sun: #ffd60a; --p-Moon: #e0ecff; --p-Mercury: #34d74a; --p-Venus: #ff4fa0; --p-Mars: #ff3b30; --p-Jupiter: #a46bff;
  --p-Saturn: #b0703a; /* chocolate brown (2026-10-03, Emilian: darker than #ad7f57 to stand apart from the Aries red; first #cbbba5 beige-grey) */ --p-Uranus: #2f8bff; --p-Neptune: #19e0f0; --p-Pluto: #ff2d6f; --p-Node: #b3aa9f; --p-SNode: #b3aa9f;
  --p-Lilith: #b9a2dc; --p-Chiron: #6fc27d; --p-Ceres: #ecd39c; --p-Pallas: #8fbaf0; --p-Juno: #f09ccb; --p-Vesta: #ff9a66; --p-Eris: #e8799f; --p-Fortune: #e2c071; --p-ast: #cdb894; --p-ast-10: #6fd0c4; --p-ast-16: #a6a2f7; --p-ast-433: #ff7373; --p-ast-5145: #9fbccb; --p-Spirit: #e2c071; --p-Eros: #e2c071; --p-Necessity: #e2c071; --p-Courage: #e2c071; --p-Victory: #e2c071; --p-Nemesis: #e2c071;
  --wheel-band: #2c2820; --wheel-houses: #1f2329; --wheel-centre: #1e1d23;
  --zs-band: #1c3330; --zs-houses: #222027; --zs-centre: #1b1a20;
  --sand-band: #2a2721; --sand-houses: #1f1e24; --sand-centre: #1c1b21;
  --sage-band: #24271f; --sage-houses: #1f1e24; --sage-centre: #1c1b21;
  --honey-band: #2d281d; --honey-houses: #1f1e24; --honey-centre: #1c1b21;
  --amber-band: #3a2f1a; --amber-houses: #211f23; --amber-centre: #1d1b20;
  --ember-band: #3b2a1c; --ember-houses: #221f23; --ember-centre: #1e1b20;
  --ink-warm0: #e3cfae; --ink-hard0: #e39a84; --ink-soft0: #9fb8e3; --ink-warm: color-mix(in oklab, var(--ink-warm0) 80%, var(--accent)); --ink-hard: color-mix(in oklab, var(--ink-hard0) 80%, var(--accent)); --ink-soft: color-mix(in oklab, var(--ink-soft0) 80%, var(--accent));   /* tuned lightly to the set: a fifth of the way to its accent (2026-11-14 09:40, Emilian picked "Tuned, lightly" on Hdy1pfAQu7TXUbrqcQENUt) */   /* night aspect inks as before (2026-10-11 20:43, Emilian); light mode has the warmer pair */
  --paper: #222028; --paper-edge: #1e1d24; --grain: #d9c08a; --grain-a: .03;
  --hard: #e2766a; --soft: #7ea3e2;
  /* vibrant 2026-10-04; brighter step #ff9364 #c6e35e #ffd040 #4fe2c6; originally #f2a98a #c7cf8f #eac770 #8dd3c6 */
  --fire: #4a2a22; --fire-ink: #ff3b30; --earth: #343923; --earth-ink: #34d74a;
  --air: #473b1e; --air-ink: #ffd60a; --water: #1e3a37; --water-ink: #2f8bff;
  color-scheme: dark;
}
* { box-sizing: border-box; }
body { margin: 0; background: var(--bg); color: var(--text); font-family: var(--f-body); font-size: 16px; line-height: 1.5;
  transition: background-color .3s ease, color .3s ease; }
a { color: var(--accent); } a:hover { color: var(--accent-hover); }
:focus-visible { outline: 2px solid var(--accent); outline-offset: 3px; }
[hidden] { display: none !important; }
h1, h2, p { margin: 0; }
.wrap { max-width: 1280px; margin: 0 auto; padding-inline: clamp(20px, 7.5vw, 96px); }
.wrap.wide { max-width: 1680px; padding-inline: clamp(16px, 4vw, 64px); }
.glyph { font-family: var(--f-glyph); font-variant-emoji: text; font-weight: 400; }
.mono { font-variant-numeric: tabular-nums; }
.eyebrow { font-size: 14px; letter-spacing: .22em; text-transform: uppercase; color: var(--accent); }

/* nav (same as the other pages) */
nav { display: flex; justify-content: space-between; align-items: center; padding-block: 28px; gap: 16px; }
.brand { font-family: var(--f-display); font-size: 26px; font-weight: 600; letter-spacing: .04em; color: var(--text); text-decoration: none; }
.nav-links { display: flex; align-items: center; gap: clamp(16px, 3vw, 32px); font-size: 15px; }
.nav-links a { color: var(--text-3); text-decoration: none; }
.nav-links a:hover, .nav-links a[aria-current] { color: var(--text); }
.toggle { width: 44px; height: 44px; border-radius: 0; border: 1px solid var(--line); background: transparent; color: var(--text);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; }
.toggle:hover { border-color: var(--accent); color: var(--accent); }
.toggle svg { width: 20px; height: 20px; }
/* the icon shows the CURRENT mode: moon when dark, sun when light (Emilian, 2026-10-02) */
.toggle .moon { display: none; }
:root[data-theme="dark"] .toggle .moon { display: block; }
:root[data-theme="dark"] .toggle .sun { display: none; }
.menu { position: relative; }
.menu-btn { font: inherit; font-size: 15px; color: var(--text-3); background: none; border: 0; padding: 10px 2px; cursor: pointer; display: inline-flex; align-items: center; gap: 6px; }
.menu-btn:hover, .menu-btn[aria-expanded="true"] { color: var(--text); }
.menu-btn svg { width: 10px; height: 10px; transition: transform .2s; }
.menu-btn[aria-expanded="true"] svg { transform: rotate(180deg); }
.menu-list { position: absolute; right: 0; top: calc(100% + 8px); z-index: 30; min-width: 240px; padding: 8px; border-radius: 0; border: 1px solid var(--line); background: var(--card); box-shadow: 0 12px 32px rgba(0,0,0,.08); display: flex; flex-direction: column; }
.menu-list a { display: flex; flex-direction: column; gap: 2px; padding: 12px 14px; border-radius: 0; color: var(--text); text-decoration: none; }
.menu-list a:hover { background: var(--bg-alt); }
.menu-list a span { font-size: 13px; color: var(--text-3); }

/* header */
.top { display: flex; flex-wrap: wrap; justify-content: space-between; align-items: end; gap: 20px 40px; padding-top: 40px; padding-bottom: 32px; }
.top h1 { font-family: var(--f-display); font-weight: 500; font-size: clamp(48px, 7vw, 84px); line-height: .98; letter-spacing: -.01em; margin-top: 14px; text-wrap: balance; }
.readout { text-align: right; min-width: 0; position: relative; }
/* desktop: the header uses the same two columns as the clock and the aspects, so the location, Live and
   Planets buttons sit flush right above the clock card (Emilian, 2026-10-01): beside the title when there's
   room, otherwise on their own line just above the card */
@media (min-width: 961px) {
  .top { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(340px, 1fr); column-gap: 24px; row-gap: 14px; padding-bottom: 14px; }
  .top > div:first-child { grid-column: 1; grid-row: 1; }
  .top .readout { grid-column: 1; grid-row: 2; justify-self: end; }
}
@media (min-width: 1300px) { .top .readout { grid-row: 1; align-self: end; } }
/* the date sits in the time bar in a fixed-width box, so tapping the arrows never moves anything */
.when { font-family: var(--f-num); font-weight: 500; font-size: 19px; line-height: 1.2; font-variant-numeric: lining-nums tabular-nums;
  min-width: 14.2em; text-align: center; white-space: nowrap; }
.tb-tools { display: flex; align-items: center; gap: 10px; }
/* Back to now takes no room while hidden, so the row stays centred; it grows in when you leave the present
   and the row re-centres smoothly (Emilian, 2026-10-02: "Center all buttons") */
.now { max-width: 160px; white-space: nowrap; overflow: hidden;
  transition: max-width .32s cubic-bezier(.32,.72,0,1), padding .32s cubic-bezier(.32,.72,0,1), margin .32s cubic-bezier(.32,.72,0,1), opacity .3s, box-shadow .12s, transform .12s; }
.now[data-off] { max-width: 0; padding-left: 0; padding-right: 0; border-width: 0; margin-left: -10px; opacity: 0; pointer-events: none; }
@media (max-width: 560px) { .now[data-off] { margin-left: -6px; } .tb-tools .now { height: 40px; min-height: 40px; } }
@media (prefers-reduced-motion: reduce) { .now { transition: none; } }
.sub { color: var(--text-3); font-size: 15px; margin-top: 8px; }
.readout .sub { display: flex; flex-wrap: wrap; align-items: center; justify-content: flex-end; gap: 8px; }
.readout .pill, .readout .pl-wrap { margin-left: 0; }
.pill { display: inline-flex; align-items: center; gap: 7px; font-size: 12px; font-weight: 600; letter-spacing: .14em; text-transform: uppercase;
  padding: 4px 11px; border-radius: 0; border: 1px solid var(--line); color: var(--text-3); vertical-align: middle; margin-left: 4px; }
.pill.live { color: var(--accent); border-color: var(--accent); }
.pill.live::before { content: ""; width: 6px; height: 6px; border-radius: 0; background: var(--accent); animation: pulse 2.4s ease-in-out infinite; }
@keyframes pulse { 50% { opacity: .2 } }

/* controls */
button, select, input { font: inherit; font-size: 15px; color: var(--text); background: transparent; border: 1px solid var(--line); }
input[type="number"] { min-height: 38px; padding: 0 12px; border-radius: 0; background: var(--bg); width: 110px; font-variant-numeric: tabular-nums; }

/* time: one quiet row under the wheel */
.timebar { display: flex; align-items: center; justify-content: center; gap: 10px; flex-wrap: wrap; padding: 6px 0 14px; border-bottom: 1px solid var(--line); margin-bottom: 8px; }
.step { width: 44px; height: 44px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer;
  color: var(--text); touch-action: manipulation; user-select: none; -webkit-user-select: none; }
.step:hover { border-color: var(--accent); color: var(--accent); }
.step svg { width: 18px; height: 18px; }
/* closed: only the chosen step shows, with a small arrow; tap it to see Hour, Day, Month, Year */
.icon-btn { width: 44px; height: 44px; border-radius: 0; display: inline-flex; align-items: center; justify-content: center; cursor: pointer; color: var(--text-3); position: relative; overflow: hidden; border: 1px solid var(--line); }
.icon-btn:hover { border-color: var(--accent); color: var(--accent); }
.icon-btn svg { width: 18px; height: 18px; }
.icon-btn input { position: absolute; inset: 0; opacity: 0; cursor: pointer; border: 0; width: 100%; height: 100%; }
.now { height: 44px; min-height: 44px; padding: 0 16px; border-radius: 0; border-color: var(--accent); color: var(--accent); font-size: 14px; font-weight: 600; cursor: pointer; }
.now:hover { background: var(--accent); color: var(--on-accent); }

/* planet symbols (drawn, not from a font) */
.pg { width: 1.25em; height: 1.25em; flex: none; fill: none; stroke: currentColor; stroke-width: 1.7; stroke-linecap: round; stroke-linejoin: round; vertical-align: -0.25em; }
/* a planet's degree, sign and minutes always sit over the house lines and aspect lines, never under (2026-10-11 12:09, Emilian: "make it so the
   planet/degrees are always over the house lines rather than under"): a halo in the band's own colour under each label, as under the planets */
.lbl-num { paint-order: stroke; stroke: var(--pl-halo, var(--amber-houses, var(--card))); stroke-width: 3px; stroke-linejoin: round; }
.lbl-halo, .lbl-halo * { stroke: var(--pl-halo, var(--amber-houses, var(--card))) !important; fill: var(--pl-halo, var(--amber-houses, var(--card))) !important; color: var(--pl-halo, var(--amber-houses, var(--card))) !important; stroke-width: 5 !important; stroke-linejoin: round !important; pointer-events: none; }
/* the clear space under a planet hugs the symbol's own shape, about one unit around it, instead of a disc (2026-10-11 15:14, Emilian, on the
   slender Moon sitting on the 9th house line: "you can see the moon here is making one of the house lines break"): lines pause only at the symbol */
.pgw-halo, .pgw-halo * { stroke: var(--pl-halo, var(--amber-houses, var(--card))) !important; color: var(--pl-halo, var(--amber-houses, var(--card))) !important; stroke-width: 4.2 !important; stroke-linejoin: round !important; pointer-events: none; }
.pgw-halo [fill='currentColor'] { fill: var(--pl-halo, var(--amber-houses, var(--card))) !important; stroke-width: 2.4 !important; }
/* the inside of a planet's round head (Mercury, Venus, Mars, Pluto, Uranus, Chiron, the Sun) filled in the band's colour, so a cusp or angle line stops at the head's edge (2026-10-19, Emilian: "make it so the line doesn't go inside mercury's head") */
.pgw-halo circle { fill: var(--pl-halo, var(--amber-houses, var(--card))) !important; }
.pgw { fill: none; stroke: var(--text); color: var(--text); stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
/* a hairline under every planet symbol, for a bit of pop (2026-10-11 13:46, Emilian picked "Thinnest, dark" in the planet sampler
   37NEn3CAbkJTNttXmWZZeB after "a very thin outline just to give them a bit of pop and independence"): 0.22 of the 24 grid on each side,
   near-black at night, the ink colour by day; the filled pen shapes (Moon, Jupiter, Saturn, the Sun's dot) get the same 0.22 edge */
:root { --pl-case: #2b2420; } :root[data-theme="dark"] { --pl-case: #000000; }
/* the progressed and solar arc rings' tints (2026-11-12, Emilian, after Astro Gold's blue; 22:57 "closer to us so it doesn't stand out so much"): the ring gold and the page navy, faint */
:root { --prog-band: rgba(224, 181, 105, .13); --arc-band: rgba(38, 87, 153, .07); }
:root[data-theme="dark"] { --prog-band: rgba(224, 181, 105, .055); --arc-band: rgba(140, 170, 220, .05); }
.pgw-case, .pgw-case * { stroke: var(--pl-case) !important; color: var(--pl-case) !important; pointer-events: none; }
.pgw-case { stroke-width: 2.24 !important; }
.pgw-case [fill='currentColor'] { stroke-width: .44 !important; fill: var(--pl-case) !important; }
/* the sign symbols on the wheels get the same hairline (2026-10-11 13:48, Emilian: "Can we try giving the sign symbols outlines as well? Same,
   thinnest, dark"). Each sign is several overlapping pen strokes, so the edge is a dark copy drawn under the whole sign and the sign covers
   everything inside: only the outer silhouette shows (13:51, Emilian: "Signs are not well traced, look at virgo for example, not neat"). */
.sg-case, .sg-case * { stroke: var(--pl-case) !important; fill: var(--pl-case) !important; color: var(--pl-case) !important; stroke-width: .44 !important; stroke-linejoin: round !important; pointer-events: none; }
/* outlines off on planets and signs (2026-11-01 16:01, Emilian: "can you remove the outlines as well? The moon outline is very distracting") */
.pgw-case, .sg-case { display: none !important; }
.asp .pg { width: 20px; height: 20px; }
.pl-menu .pg { width: 20px; height: 20px; }

/* aspect finder */
.find-panel { position: absolute; top: 56px; left: 50%; transform: translateX(-50%); z-index: 30; width: min(440px, calc(100% - 16px)); padding: 14px;
  border-radius: 0; border: 1px solid var(--line); background: var(--card); box-shadow: 0 12px 32px rgba(0,0,0,.12); display: flex; flex-direction: column; gap: 10px; }
.find-head { font-family: var(--f-display); font-size: 22px; font-weight: 500; }
.find-panel input[type="search"] { min-height: 42px; padding: 0 14px; border-radius: 0; background: var(--bg); font-size: 16px; width: 100%; }
.find-row { display: grid; grid-template-columns: auto 1fr 1fr 1fr; gap: 6px; }
.find-row select { min-height: 40px; min-width: 0; padding: 0 8px; border-radius: 0; background: var(--bg); font-size: 14px; }
.find-go { min-height: 42px; border-radius: 0; background: var(--accent); border-color: var(--accent); color: var(--on-accent); font-weight: 600; cursor: pointer; }
.find-go:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.find-go:disabled { opacity: .6; cursor: default; }
.find-msg { font-size: 14px; line-height: 1.45; color: var(--text-2); min-height: 1.45em; }
.find-msg strong { color: var(--text); font-weight: 600; }
@media (max-width: 560px) { .find-row { grid-template-columns: 1fr 1fr; } .find-panel { top: 104px; } }

/* planet menu */
.wheel { position: relative; }
.pl-wrap, .loc-wrap { position: relative; display: inline-block; vertical-align: middle; }
.pop-btn { display: inline-flex; align-items: center; gap: 8px; min-height: 38px; padding: 0 14px; max-width: 100%;
  border-radius: 0; background: var(--card); color: var(--text-2); font-size: 14px; cursor: pointer; }
.pop-btn:hover, .pop-btn[aria-expanded="true"] { border-color: var(--accent); color: var(--text); }
.pop-btn svg { width: 15px; height: 15px; flex: none; }
.pop-btn span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; max-width: 220px; }
.pop-btn.set { color: var(--text); }
.pop-menu { position: absolute; top: calc(100% + 8px); right: 0; z-index: 30; text-align: left; width: 236px; padding: 8px; border-radius: 0; border: 1px solid var(--line);
  background: var(--card); box-shadow: 0 12px 32px rgba(0,0,0,.12); display: flex; flex-direction: column; }
.loc-menu { width: 300px; padding: 12px; gap: 8px; }
.loc-geo { display: flex; align-items: center; justify-content: center; gap: 8px; min-height: 42px; border-radius: 0; border-color: var(--accent); color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.loc-geo:hover { background: var(--accent); color: var(--on-accent); }
.loc-geo svg { width: 16px; height: 16px; }
.loc-or { font-size: 12px; letter-spacing: .12em; text-transform: uppercase; color: var(--text-3); text-align: center; padding-top: 4px; }
.loc-menu input[type="search"] { min-height: 42px; padding: 0 14px; border-radius: 0; background: var(--bg); font-size: 16px; width: 100%; }
.loc-list { display: flex; flex-direction: column; }
.loc-list button { display: flex; flex-direction: row; flex-wrap: wrap; align-items: baseline; gap: 0; border: 0; padding: 8px 10px; border-radius: 0; text-align: left; cursor: pointer; font-size: 15px; }
.loc-list button span { font-size: 15px; color: var(--text-3); } /* name and country on one line: "Varna, Bulgaria" (Emilian, 2026-10-02) */
.loc-list button span:not(:empty)::before { content: ", "; }
.loc-list button:hover, .loc-list button.active { background: var(--bg-alt); }
.loc-msg { font-size: 14px; color: var(--text-2); line-height: 1.45; padding: 2px 4px; }
.loc-clear { border: 0; align-self: center; font-size: 13px; color: var(--text-3); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 6px; }
.loc-clear:hover { color: var(--text); }
.pl-menu label { display: flex; align-items: center; gap: 12px; padding: 7px 10px; border-radius: 0; cursor: pointer; font-size: 15px; }
.pl-menu label:hover { background: var(--bg-alt); }
.pl-menu .glyph { width: 22px; height: 22px; line-height: 22px; text-align: center; color: var(--glyph); font-size: 17px; }
.pl-menu input { appearance: none; -webkit-appearance: none; margin: 0 0 0 auto; width: 34px; height: 20px; border-radius: 0; border: 1px solid var(--line);
  background: var(--bg-alt); position: relative; cursor: pointer; flex: none; transition: background-color .15s; }
.pl-menu input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 14px; height: 14px; border-radius: 0; background: var(--text-3); transition: transform .15s; }
.pl-menu input:checked { background: var(--accent); border-color: var(--accent); }
.pl-menu input:checked::after { transform: translateX(14px); background: var(--on-accent); }
.pl-menu hr { border: 0; border-top: 1px solid var(--line); margin: 6px 4px; }
/* Icons only (2026-10-03, Emilian): a grid of planet symbols; on = the symbol in its colour inside a soft gold ring, off = a faint
   grey symbol. The checkbox is still there (keyboard, screen readers) but invisible. */
html:root .pl-menu[hidden] { display: none !important; }
html:root .pl-menu:not([hidden]) { display: grid !important; grid-template-columns: repeat(6, 1fr); gap: 8px; padding: 12px !important; }
/* Rounded square tiles, the symbol on top and the planet's name under it (2026-10-03, Emilian: "kind of square but rounded,
   have the icon at the top and the name of the planet below it. For more readability"); was a round symbol-only button */
html:root .pl-menu label.pl-tog { position: relative; display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 5px;
  min-height: 64px; padding: 8px 2px 7px !important; border-radius: 14px !important; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  background: color-mix(in srgb, var(--accent) 10%, transparent) !important; cursor: pointer; transition: opacity .2s, border-color .2s, background .2s; }
html:root .pl-menu label.pl-tog .pg { width: 26px; height: 26px; flex: none; transition: color .2s, opacity .2s; }
html:root .pl-menu label.pl-tog .pl-name { font-size: 11px; line-height: 1.1; color: var(--text-2); white-space: nowrap; letter-spacing: .01em; }
html:root .pl-menu label.pl-tog:has(input:checked) .pl-name { color: var(--text); }
@media (max-width: 370px) { html:root .pl-menu label.pl-tog .pl-name { font-size: 10px; } html:root .pl-menu:not([hidden]) { gap: 6px; padding: 10px !important; } }
/* the planets and search menus slide over the open chart's names (2026-10-03, Emilian: "it should go over the open chart names"):
   on phones the names sit in <body> above the fixed .main that holds the strip, so they step behind while a menu is down */
html:has(.pl-menu:not([hidden])) #chartBar, html:has(#findPanel:not([hidden])) #chartBar { z-index: -1 !important; }
html:root .pl-menu label.pl-tog input { position: absolute; inset: 0; width: 100%; height: 100%; margin: 0; opacity: 0; cursor: pointer; box-shadow: none; }
html:root .pl-menu label.pl-tog:has(input:not(:checked)) { border-color: transparent; background: transparent !important; }
/* off keeps its planet colour, only the gold ring goes (2026-10-03, Emilian) */
html:root .pl-menu label.pl-tog:has(input:focus-visible) { outline: 2px solid var(--accent); outline-offset: 2px; }

/* main */
.main { display: grid; grid-template-columns: minmax(0, 2.6fr) minmax(340px, 1fr); gap: 24px; align-items: start; }
.wheel { background: var(--card); border: 1px solid var(--line); border-radius: 0; padding: 12px 12px 8px; }
.wheel > .svg-wrap { display: block; width: 100%; }
.wheel > svg, .wheel > .svg-wrap > svg { display: block; width: 100%; height: auto; max-height: calc(100vh - 96px); margin-inline: auto; }
.panel { display: flex; flex-direction: column; gap: 24px; min-width: 0; padding: 28px 28px; background: var(--card); border: 1px solid var(--line); border-radius: 0; }
h2 { font-family: var(--f-display); font-weight: 500; font-size: 30px; line-height: 1.1; margin: 0 0 12px; display: flex; justify-content: space-between; align-items: baseline; flex-wrap: wrap; gap: 4px 12px; }
h2 small { font-family: var(--f-body); font-size: 13px; color: var(--text-3); letter-spacing: .04em; font-weight: 400; }
.phase { display: flex; gap: 16px; align-items: center; padding-top: 20px; border-top: 1px solid var(--line); }
.phase svg { flex: none; }
.btn-line { min-height: 46px; padding: 0 22px; border-radius: 0; border: 1px solid var(--accent); color: var(--accent); background: transparent; font-weight: 600; cursor: pointer; }
.btn-line:hover { background: var(--accent); color: var(--on-accent); }
.copied { font-size: 14px; color: var(--accent); }

/* aspects */
.aspects-sec { min-width: 0; display: flex; flex-direction: column; gap: 12px; }
.aspects-sec h2 { margin: 0; }
.lunar-head { padding-top: 14px; border-top: 1px solid var(--ring); margin-top: 4px !important; }
/* "See more" under each list: a small centred button (Emilian, 2026-10-01) */
.asp-more { display: block; margin: 12px auto 0; min-height: 36px; padding: 0 22px; border-radius: 0; border: 1px solid var(--accent); background: transparent;
  font: 600 14px var(--f-body, inherit); color: var(--accent); cursor: pointer; }
.asp-more[hidden] { display: none; }
.asp-more:hover { background: var(--accent); color: var(--on-accent); }
.aspects { display: grid; grid-template-columns: minmax(0, 1fr); }
.asp-item { padding: 10px 0 12px; border-bottom: 1px solid var(--line); cursor: pointer; border-radius: 0; }
.asp-item:hover .asp-name, .asp-item:focus-visible .asp-name { text-decoration: underline; text-underline-offset: 3px; text-decoration-color: var(--ring); }
.asp { display: flex; align-items: center; gap: 8px; font-size: 15px; min-width: 0; }
.asp-desc.st-when { color: var(--wn); }
.st-item .asp-desc { margin-left: 28px; }
.asp-desc { margin: 6px 0 0 76px; font-size: 13.5px; line-height: 1.45; color: var(--text-3); }
@media (max-width: 560px) { .asp-desc, .st-item .asp-desc { margin-left: 0; } }
/* full description */
.desc-veil { position: fixed; inset: 0; z-index: 60; background: rgba(20, 18, 14, .38); display: flex; align-items: center; justify-content: center; padding: 16px; }
.desc-card { width: min(480px, 100%); max-height: calc(100% - 32px); overflow: auto; background: var(--card); border: 1px solid var(--line); border-radius: 0;
  box-shadow: 0 20px 50px rgba(0,0,0,.2); padding: 26px 26px 22px; display: flex; flex-direction: column; gap: 14px; }
.desc-top { display: flex; align-items: center; gap: 10px; }
.desc-top .pg { width: 26px; height: 26px; }
/* Planet panel title (2026-10-03, Emilian: "start with Mercury at 03°24' Scorpio, with the Scorpio symbol at the end. Remove the
   text from beneath"): "Mercury 03°14′ Scorpio ♏" on one line, the sign symbol drawn in its element colour; the line under it
   (position and house) is gone. */
.desc-top h3 .pp-pos { white-space: nowrap; }
/* the planet's own symbol first, in its colour (2026-10-03, Emilian: "There should be the Sun symbol in the very beginning, should also say Sun at __") */
.desc-top h3 .pp-pl { width: .9em; height: .9em; margin-right: .3em; vertical-align: -0.1em; stroke-width: 1.8; }
/* planet-in-sign possibilities under the title (2026-10-03) */
.pp-about { margin: 14px 0 0; font-size: 16px; line-height: 1.55; color: var(--text-2, var(--text)); }
.pf-val { margin: 2px 0 0; font-size: 16px; color: var(--text); overflow-wrap: anywhere; }
.pp-signs { list-style: none; margin: 14px 0 0; padding: 0; display: flex; flex-direction: column; gap: 8px; transition: opacity .18s; }
.pp-signs.fading { opacity: 0; }
.pp-signs li { position: relative; padding-left: 16px; font-size: 16px; line-height: 1.4; color: var(--text); }
.pp-signs li::before { content: ""; position: absolute; left: 2px; top: .62em; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); }
.pp-signs-more { display: block; text-align: left; margin: 12px 0 18px; padding: 0 !important; border: 0 !important; background: none !important; box-shadow: none !important;
  color: var(--muted) !important; font: 13.5px var(--f-body); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; min-height: 0 !important; height: auto !important; width: auto !important; }
.pp-signs-more[hidden] { display: none !important; }
/* no possibility lines under a planet's title in its panel (2026-10-06 21:38, Emilian: "When clicking on a planet in the chart, remove the bullet points underneath it"); the list and its button are kept in the page, hidden */
.pp-signs, .pp-signs-more { display: none !important; }
@media (max-width: 560px) { .desc-top h3:has(.pp-pos) { font-size: 22px; } }
.desc-top h3 .pp-sign { width: .85em; height: .85em; vertical-align: -0.08em; stroke-width: 1.8; }
.pp-voc .asp-desc .pp-sign { width: 1em; height: 1em; vertical-align: -0.15em; stroke-width: 1.8; }
.desc-top h3 { margin: 0; font-family: var(--f-display); font-weight: 500; font-size: 28px; line-height: 1.1; flex: 1; }
@media (max-width: 560px) { .desc-top h3 { font-size: 24px; } .desc-list li { font-size: 18px; } }
.desc-x { width: 38px; height: 38px; border-radius: 0; border: 1px solid var(--line); background: transparent; color: var(--text-3); cursor: pointer; font-size: 18px; line-height: 1; }
.desc-x:hover { border-color: var(--accent); color: var(--accent); }
.desc-meta { font-size: 13.5px; color: var(--text-3); margin-top: -6px; }
/* planet panel (tap a planet on the wheel) */
.pp-state { margin: 0; font-size: 16px; line-height: 1.5; color: var(--text); }
.pp-q { position: relative; text-decoration: underline; text-decoration-style: solid; text-decoration-thickness: 1px; text-decoration-skip-ink: none; text-underline-offset: 3px; cursor: help; outline: none; }
.pp-q:focus-visible { border-radius: 0; box-shadow: 0 0 0 2px var(--accent); }
.pp-tip { display: none; position: absolute; left: 50%; top: calc(100% + 8px); transform: translateX(-50%); z-index: 2; width: max-content; max-width: min(260px, 70vw);
  padding: 9px 12px; border-radius: 0; background: var(--text); color: var(--card); font-size: 13.5px; line-height: 1.45; text-decoration: none; box-shadow: 0 8px 20px rgba(0,0,0,.18); }
.pp-q:hover .pp-tip, .pp-q:focus .pp-tip, .pp-q.open .pp-tip { display: block; }
.pp-why { margin: 0; font-size: 14.5px; line-height: 1.5; color: var(--text-2); }
.pp-why.st { color: var(--st); } .pp-why.rx { color: var(--rx); } .pp-why.sd { color: var(--sd); }
.pp-h { margin: 8px 0 0; font-family: var(--f-display); font-weight: 500; font-size: 21px; }
.pp-list .asp-desc { margin-left: 28px; }
.pp-list .asp-item { padding-inline: 0; }
#svg .pl-hit, #svg .pl-in { cursor: pointer; }
#svg .pl-hit:focus, #svg .pl-in:focus { outline: none; }
#svg .pl-hit:focus-visible .pgw { stroke-width: 2.4; }
/* how long a transit lasts and how strong it is now (Emilian, 2026-10-02) */
.desc-strength { margin: 2px 0 4px; }
.desc-strength .ds-line { font-size: 13.5px; color: var(--wn); margin-bottom: 6px; }
.desc-strength svg { display: block; width: 100%; height: 64px; }
.desc-strength .ds-ends { display: flex; justify-content: space-between; font-size: 12px; color: var(--text-3); margin-top: 2px; }
.desc-strength .ds-now { font-size: 13.5px; color: var(--text-2); margin-top: 6px; }
.desc-intro { font-size: 15px; color: var(--text-2); margin: 4px 0 0; }
.desc-list { margin: 6px 0 10px; padding: 0; list-style: none; display: flex; flex-direction: column; gap: 22px; transition: opacity .18s cubic-bezier(.32,.72,0,1); }
.desc-list.fading { opacity: 0; }
.desc-list li { padding: 0 0 0 18px; position: relative; font-size: 19px; line-height: 1.4; color: var(--text); }
.desc-list li::before { content: ""; position: absolute; left: 0; top: .62em; width: 6px; height: 6px; border-radius: 0; background: var(--accent); opacity: .55; }
.desc-list li:first-letter { text-transform: uppercase; }
.desc-more { align-self: flex-start; display: inline-flex; align-items: center; gap: 8px; min-height: 42px; padding: 0 18px; border-radius: 0;
  border: 1px solid var(--accent); background: transparent; color: var(--accent); font-weight: 600; font-size: 14px; cursor: pointer; }
.desc-more:hover { background: var(--accent); color: var(--on-accent); }
.desc-more svg { width: 15px; height: 15px; }
.asp .glyph { font-size: 17px; color: var(--glyph); }
.asp .kind { width: 20px; text-align: center; }
.asp.hard .kind { color: var(--hard); } .asp.soft .kind { color: var(--soft); } .asp.conj .kind { color: var(--text-2); } .asp.minor .kind { color: var(--text-2); }
.asp .orb { margin-left: auto; color: var(--text-3); font-size: 14px; }
.asp .ap { font-size: 11px; letter-spacing: .1em; color: var(--text-3); width: 16px; text-align: right; }
.foot { color: var(--muted); font-size: 14px; line-height: 1.6; max-width: 72ch; padding-block: 40px 72px; }

footer { border-top: 1px solid var(--line); }
footer .wrap { display: flex; justify-content: space-between; flex-wrap: wrap; gap: 12px; padding-block: 36px; font-size: 14px; color: var(--muted); }
footer a { color: var(--muted); text-decoration: none; }
footer a:hover { color: var(--text); }

@media (max-width: 960px) {
  .main { grid-template-columns: minmax(0, 1fr); }
  .readout { text-align: left; }
  .readout .sub { justify-content: flex-start; }
  .pl-wrap, .loc-wrap { position: static; }
  .pop-menu { right: 0; }
  .loc-menu { left: 0; width: auto; }
}
@media (max-width: 560px) {
  nav { flex-wrap: wrap; row-gap: 10px; padding-block: 22px; }
  .brand { flex-basis: 100%; font-size: 22px; }
  .nav-links { gap: 20px; }
  .menu-list { left: 0; right: auto; }
  .top { padding-top: 16px; }
  .wheel { margin-inline: -12px; padding: 4px 0 6px; border-radius: 0; border-inline: 0; }
  .panel { padding: 24px 20px; }
  .panel { padding: 22px 14px; }
  .timebar { gap: 6px; row-gap: 10px; padding-inline: 8px; }
  .when { min-width: 0; flex: 1 1 0; font-size: 16px; }   /* 17 → 16 (2026-10-15, Emilian: "Time is a little too large. Bring it down just a hint") */
  .tb-tools { flex-basis: 100%; justify-content: center; gap: 6px; }
  .step, .icon-btn { width: 40px; height: 40px; }
  .custom { justify-content: flex-start; }
  .custom input { flex: 1 1 0; width: auto; min-width: 0; }
}

/* compact card inside the readings page */
/* Location and Planets sit in the time bar beside search (Emilian, 2026-10-02). On phones they shrink to round icons. */
.tb-tools .pop-btn { min-height: 44px; }
.tb-tools > .icon-btn, .tb-tools > .loc-wrap, .tb-tools > .pl-wrap { flex: none; }
@media (max-width: 560px) {
  .timebar { position: relative; }
  .tb-tools .pl-wrap, .tb-tools .loc-wrap { position: static; }
  .tb-tools .pop-btn { width: 40px; height: 40px; min-height: 40px; padding: 0; justify-content: center; border-radius: 0; font-size: 0; gap: 0; }
  .tb-tools .pop-btn span { display: none; }
  .tb-tools .pop-btn svg { width: 18px; height: 18px; }
  .tb-tools .pop-btn.set { color: var(--accent); border-color: var(--accent); }
  .tb-tools .pop-menu { left: 8px; right: 8px; width: auto; top: calc(100% + 4px); }
}
/* Step size (Emilian, 2026-10-02): one gold button like the others, showing the chosen unit.
   Tapping it slides the row open sideways, floating over its neighbours: Hour, Day, Week, Month, Year. */
.units-slot { position: relative; flex: none; height: 44px; }
.units { display: flex; gap: 4px; height: 100%; }
.units button { min-width: 72px; height: 44px; padding: 0 12px; border: 1px solid var(--line); font-size: 14px; color: var(--text-2); cursor: pointer;
  background: linear-gradient(var(--raise-top), var(--raise-bot)); box-shadow: var(--sh-btn); transition: box-shadow .12s, transform .12s; }
.units button:hover { box-shadow: var(--sh-btn-hover); color: var(--text); }
.units button:active { box-shadow: var(--sh-press); transform: translateY(1px); }
.units button[aria-pressed="true"] { border-color: var(--accent-bot); color: var(--on-accent); font-weight: 600;
  background: linear-gradient(var(--accent-top), var(--accent-bot)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 1px 0 rgba(var(--sh),.2), 0 2px 5px -1px rgba(var(--sh),.35); }
.units[data-open="false"] button[aria-pressed="false"] { display: none; }
.units[data-open="true"] { position: absolute; z-index: 35; left: -5px; top: -5px; height: auto; padding: 4px; background: var(--card);
  border: 1px solid var(--line); box-shadow: var(--sh-pop); }
@media (max-width: 560px) {
  .units-slot { height: 40px; }
  .units button { height: 40px; min-width: 60px; padding: 0 9px; font-size: 13px; }
  .units[data-open="true"] { left: -3px; top: -5px; gap: 3px; padding: 4px; }
}
@media (prefers-reduced-motion: reduce) { .units button:active { transform: none; } }
/* Install app button and the iPhone guide (iPhones don't allow one-tap install) */
.install-btn { border-color: var(--accent); color: var(--accent); font-weight: 600; }
.install-btn:hover { background: var(--accent); color: var(--on-accent); }
.install-sheet { position: fixed; inset: 0; z-index: 60; display: flex; align-items: flex-end; justify-content: center;
  padding: 16px 16px calc(16px + env(safe-area-inset-bottom)); background: rgba(20,18,16,.38); }
.install-sheet[hidden] { display: none; }
.install-card { width: 100%; max-width: 380px; background: var(--card); color: var(--text); border: 1px solid var(--line);
  border-radius: 0; padding: 22px 22px 18px; box-shadow: 0 18px 48px rgba(0,0,0,.22); text-align: center; }
.install-card img { border-radius: 0; display: block; margin: 0 auto 10px; }
.install-card h2 { font-family: var(--f-display); font-weight: 500; font-size: 26px; margin: 0 0 10px; }
.install-note { color: var(--text-2); font-size: 14px; margin: 0 0 8px; }
.install-card ol { text-align: left; margin: 0 0 16px; padding-left: 22px; font-size: 16px; line-height: 1.5; }
.install-card li { margin: 8px 0; }
.ios-share { width: 20px; height: 20px; vertical-align: -4px; color: #2f6fd6; margin: 0 2px; }
.install-close { width: 100%; min-height: 44px; border-radius: 0; border-color: var(--accent); background: var(--accent);
  color: var(--on-accent); font-weight: 600; font-size: 15px; cursor: pointer; }
.embed .install-btn, .embed .install-sheet { display: none !important; }
.embed body { background: var(--card); }
.embed .timebar { border-bottom: 0; padding-top: 0; }
.embed .timebar .step, .embed .tb-tools { display: none !important; }
.embed nav, .embed footer, .embed .pl-wrap, .embed .loc-wrap, .embed .aspects-sec, .embed .foot, .embed .panel { display: none !important; }
.embed .wrap { padding-inline: clamp(12px, 3vw, 28px); }
.embed .top { display: flex; padding-top: 24px; padding-bottom: 16px; }
.embed .top > div:first-child { display: none; }
.embed .readout { text-align: left; }
.embed .readout .sub { justify-content: flex-start; }
.embed .wheel, .embed .panel { border: 0; padding: 0; background: transparent; }
.embed .main { grid-template-columns: minmax(0, 1fr); padding-bottom: 24px; }
.embed .wheel { max-width: 600px; width: 100%; margin-inline: auto; }

@media (prefers-reduced-motion: reduce) { .pill.live::before { animation: none } body { transition: none } .menu-btn svg { transition: none } }

/* ---- Depth (Emilian, 2026-10-02: square corners, more depth instead of flat) ----
   Light from above: raised buttons have a lit top edge and a soft shadow below; pressed/selected ones sit in;
   inputs and the step-size switch are recessed wells; cards and menus float above the page. */
:root, :root[data-theme="light"] {
  --raise-top: #fffdf8; --raise-bot: #efe6d5;
  --hi: rgba(255,255,255,.85); --sh: 70,48,16;
  --sh-btn: inset 0 1px 0 var(--hi), 0 1px 0 rgba(var(--sh),.10), 0 2px 5px -1px rgba(var(--sh),.16);
  --sh-btn-hover: inset 0 1px 0 var(--hi), 0 1px 0 rgba(var(--sh),.12), 0 4px 10px -2px rgba(var(--sh),.22);
  --sh-press: inset 0 2px 4px rgba(var(--sh),.22), inset 0 0 0 1px rgba(var(--sh),.06);
  --sh-well: inset 0 2px 3px rgba(var(--sh),.13), inset 0 1px 1px rgba(var(--sh),.08);
  --sh-card: inset 0 1px 0 var(--hi), 0 1px 2px rgba(var(--sh),.08), 0 10px 24px -10px rgba(var(--sh),.22), 0 28px 50px -30px rgba(var(--sh),.30);
  --sh-pop: 0 2px 6px rgba(var(--sh),.12), 0 22px 44px -12px rgba(var(--sh),.32);
  --accent-top: #9a7212; --accent-bot: #6f5000;
  --disc: drop-shadow(0 6px 10px rgba(70,48,16,.18)) drop-shadow(0 1px 1px rgba(70,48,16,.12));
}
:root[data-theme="dark"] {
  --raise-top: #38373c; --raise-bot: #2d2c30;
  --hi: rgba(255,255,255,.07); --sh: 0,0,0;
  --sh-btn: inset 0 1px 0 var(--hi), 0 1px 0 rgba(0,0,0,.5), 0 2px 6px -1px rgba(0,0,0,.45);
  --sh-btn-hover: inset 0 1px 0 var(--hi), 0 1px 0 rgba(0,0,0,.5), 0 5px 12px -2px rgba(0,0,0,.55);
  --sh-press: inset 0 2px 5px rgba(0,0,0,.6);
  --sh-well: inset 0 2px 4px rgba(0,0,0,.55);
  --sh-card: inset 0 1px 0 var(--hi), 0 1px 2px rgba(0,0,0,.4), 0 14px 30px -12px rgba(0,0,0,.6);
  --sh-pop: 0 2px 6px rgba(0,0,0,.5), 0 22px 44px -12px rgba(0,0,0,.7);
  --accent-top: #d8b25c; --accent-bot: #b8913a;
  --disc: drop-shadow(0 6px 12px rgba(0,0,0,.45));
}
.toggle, .step, .icon-btn, .pop-btn, .now, .btn-line, .asp-more, .desc-more, .desc-x, .loc-geo {
  background: linear-gradient(var(--raise-top), var(--raise-bot)); box-shadow: var(--sh-btn); }
.toggle, .step, .icon-btn, .pop-btn, .btn-line, .asp-more, .desc-more, .desc-x, .loc-geo {
  transition: box-shadow .12s, transform .12s, border-color .12s, color .12s; }
.toggle:hover, .step:hover, .icon-btn:hover, .pop-btn:hover, .now:hover, .btn-line:hover, .asp-more:hover, .desc-more:hover, .desc-x:hover, .loc-geo:hover {
  box-shadow: var(--sh-btn-hover); }
.toggle:active, .step:active, .icon-btn:active, .pop-btn:active, .now:active, .btn-line:active, .asp-more:active, .desc-more:active, .desc-x:active, .loc-geo:active,
.pop-btn[aria-expanded="true"], .icon-btn[aria-expanded="true"] {
  background: var(--raise-bot); box-shadow: var(--sh-press); transform: translateY(1px); }
.loc-geo:hover { background: linear-gradient(var(--accent-top), var(--accent-bot)); }
.find-go, .install-close { background: linear-gradient(var(--accent-top), var(--accent-bot)); box-shadow: inset 0 1px 0 rgba(255,255,255,.25), 0 2px 5px -1px rgba(var(--sh),.35); }
.find-go:active, .install-close:active { box-shadow: inset 0 2px 4px rgba(0,0,0,.3); transform: translateY(1px); }
input[type="search"], input[type="number"], select { box-shadow: var(--sh-well); }
.pl-menu input { box-shadow: var(--sh-well); }
.pl-menu input::after { box-shadow: 0 1px 2px rgba(var(--sh),.35); }
.wheel, .panel { box-shadow: var(--sh-card); }
.menu-list, .pop-menu, .find-panel, .desc-card, .install-card { box-shadow: var(--sh-pop); }
#svg { filter: var(--disc); }
.embed .wheel { box-shadow: none; }
@media (prefers-reduced-motion: reduce) { .step:active, .icon-btn:active, .pop-btn:active, .now:active { transform: none; } }

/* Buttons round again (Emilian, 2026-10-02): icon buttons are circles, buttons with words are pills.
   Cards, menus and panels stay square. */
.toggle, .step, .icon-btn, .desc-x { border-radius: 50%; }
.pop-btn, .now, .btn-line, .asp-more, .desc-more, .loc-geo, .find-go, .install-close, .units button, .units[data-open="true"] { border-radius: 10px; }
@media (max-width: 560px) { .tb-tools .pop-btn { border-radius: 50%; } }
.pl-menu input { border-radius: 999px; } .pl-menu input::after { border-radius: 50%; }

/* Title centred (Emilian, 2026-10-02) across the page; the Install app button (when shown) sits on its own line under it */
.top > div:first-child { flex-basis: 100%; text-align: center; }
.top h1 { text-align: center; }
@media (min-width: 961px) { .top > div:first-child { grid-column: 1 / -1; } .top .readout { grid-row: 2 !important; } }

/* Tap the date and time to open the calendar (Emilian, 2026-10-02; replaced the calendar button) */
.when-pick { position: relative; cursor: pointer; padding: 4px 8px; -webkit-tap-highlight-color: transparent; }
.when-pick input:focus, .when-pick input:focus-visible { outline: none; }
.when-pick input { position: absolute; inset: 0; width: 100%; height: 100%; opacity: 0; cursor: pointer; border: 0; padding: 0; }
.when-pick input::-webkit-calendar-picker-indicator { position: absolute; inset: 0; width: 100%; height: 100%; cursor: pointer; }

/* Aspects folded under the clock (Emilian, 2026-10-02: "don't show the aspects right away; a menu beneath the clock
   that someone can click and expand"). One column: clock, then the Aspects bar; it opens smoothly. */
.main { grid-template-columns: minmax(0, 1fr) !important; max-width: 920px; margin-inline: auto; }
.panel { padding: 0 !important; gap: 0; }
.asp-toggle { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; min-height: 60px; padding: 0 24px;
  border: 0; background: transparent; cursor: pointer; font-family: var(--f-display); font-size: 26px; font-weight: 500; color: var(--text); }
.asp-toggle:hover { color: var(--accent); }
.asp-toggle svg { width: 18px; height: 18px; transition: transform .32s cubic-bezier(.32,.72,0,1); }
.asp-toggle[aria-expanded="true"] svg { transform: rotate(180deg); }
.asp-body { display: grid; grid-template-rows: 0fr; transition: grid-template-rows .32s cubic-bezier(.32,.72,0,1); }
.asp-body[data-open="true"] { grid-template-rows: 1fr; }
.asp-inner { overflow: hidden; min-height: 0; }
.asp-body .aspects-sec { padding: 4px 28px 28px; border-top: 1px solid var(--line); }
.asp-col { display: flex; flex-direction: column; gap: 12px; min-width: 0; }
.asp-col[hidden] { display: none !important; }
@media (min-width: 900px) { .asp-body .aspects-sec { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 28px; padding-top: 20px; }
  .asp-col .lunar-head { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; } }
@media (min-width: 900px) { .asp-body .aspects-sec:has(> .asp-col[hidden]) { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media (max-width: 560px) { .asp-body .aspects-sec { padding: 4px 14px 22px; } }
@media (prefers-reduced-motion: reduce) { .asp-body, .asp-toggle svg { transition: none; } }

/* A clean page, website and app alike (Emilian, 2026-10-02): no site name, no Readings/Education menu at the top
   (only the light/dark switch), no footnote, no footer. */
nav .brand, nav .nav-links > a, nav .menu { display: none !important; }
nav { justify-content: flex-end; padding-block: 12px 0; }
.main { padding-bottom: 48px; }
.loc-credit { margin: 2px 4px 0; font-size: 12px; color: var(--muted); text-align: center; }
.loc-credit a { color: inherit; }
/* Rounded corners back on cards, menus, panels and fields (Emilian, 2026-10-02); buttons stay circles and pills */
.wheel, .panel, .install-card { border-radius: 20px; }
.menu-list, .pop-menu, .find-panel { border-radius: 14px; }
.desc-card { border-radius: 18px; }
input[type="search"], input[type="number"], select, .loc-menu input[type="search"], .find-panel input[type="search"], .find-row select, .menu-list a, .loc-list button, .pl-menu label { border-radius: 10px; }
.asp-item { border-radius: 6px; }
.tip, .pp-tip { border-radius: 10px; }
@media (max-width: 960px) { .wheel { border-radius: 20px; } }
@media (max-width: 560px) { .wheel { border-radius: 0; } }

/* Dark mode (the mode being designed, 2026-10-02; light mode is left as it was, Emilian): every button is empty with a
   gold outline and gold icon or text, sitting in the page instead of on it. The chosen step size stays filled gold.
   Hover tint only on devices with a real pointer, so nothing stays lit after a tap. */
:root[data-theme="dark"] .toggle, :root[data-theme="dark"] .step, :root[data-theme="dark"] .icon-btn, :root[data-theme="dark"] .pop-btn, :root[data-theme="dark"] .now, :root[data-theme="dark"] .btn-line, :root[data-theme="dark"] .asp-more, :root[data-theme="dark"] .desc-more, :root[data-theme="dark"] .desc-x, :root[data-theme="dark"] .loc-geo, :root[data-theme="dark"] .find-go, :root[data-theme="dark"] .install-close, :root[data-theme="dark"] .units button[aria-pressed="false"] {
  background: transparent !important; box-shadow: none !important; border: 1px solid var(--accent) !important; color: var(--accent) !important; }
@media (hover: hover) { :root[data-theme="dark"] .toggle:hover, :root[data-theme="dark"] .step:hover, :root[data-theme="dark"] .icon-btn:hover, :root[data-theme="dark"] .pop-btn:hover, :root[data-theme="dark"] .now:hover, :root[data-theme="dark"] .btn-line:hover, :root[data-theme="dark"] .asp-more:hover, :root[data-theme="dark"] .desc-more:hover, :root[data-theme="dark"] .desc-x:hover, :root[data-theme="dark"] .loc-geo:hover, :root[data-theme="dark"] .find-go:hover, :root[data-theme="dark"] .install-close:hover, :root[data-theme="dark"] .units button[aria-pressed="false"]:hover { background: color-mix(in srgb, var(--accent) 10%, transparent) !important; } }
:root[data-theme="dark"] .toggle:active, :root[data-theme="dark"] .step:active, :root[data-theme="dark"] .icon-btn:active, :root[data-theme="dark"] .pop-btn:active, :root[data-theme="dark"] .now:active, :root[data-theme="dark"] .btn-line:active, :root[data-theme="dark"] .asp-more:active, :root[data-theme="dark"] .desc-more:active, :root[data-theme="dark"] .desc-x:active, :root[data-theme="dark"] .loc-geo:active, :root[data-theme="dark"] .find-go:active, :root[data-theme="dark"] .install-close:active { background: color-mix(in srgb, var(--accent) 18%, transparent) !important; }
:root[data-theme="dark"] .units button[aria-pressed="true"] { color: var(--on-accent) !important; }
/* Location button looks like the others whether or not a place is set, and nothing stays highlighted after a tap (Emilian, 2026-10-02) */
.pop-btn.set, .tb-tools .pop-btn.set { color: var(--text-3); border-color: var(--line); }
:root[data-theme="dark"] .pop-btn.set, :root[data-theme="dark"] .tb-tools .pop-btn.set { color: var(--accent) !important; border-color: var(--accent) !important; }
.pop-btn[aria-expanded="true"] { border-color: var(--line); color: var(--text-2); background: linear-gradient(var(--raise-top), var(--raise-bot)); box-shadow: var(--sh-btn); transform: none; }
.pop-btn, .icon-btn, .step, .now, .toggle { -webkit-tap-highlight-color: transparent; }
.pop-btn:focus:not(:focus-visible), .icon-btn:focus:not(:focus-visible), .step:focus:not(:focus-visible) { outline: none; }

/* Wheel fills: light mode keeps the tinted outer ring, houses, house-number band and centre; dark mode has none
   (Emilian, 2026-10-02) */
:root[data-theme="dark"] {
  --wheel-band: var(--card); --wheel-houses: var(--card); --wheel-centre: var(--card);
  --zs-band: var(--card); --zs-houses: var(--card); --zs-centre: var(--card);
  --sand-band: var(--card); --sand-houses: var(--card); --sand-centre: var(--card);
  --sage-band: var(--card); --sage-houses: var(--card); --sage-centre: var(--card);
  --honey-band: var(--card); --honey-houses: var(--card); --honey-centre: var(--card);
  --amber-band: var(--card); --amber-houses: var(--card); --amber-centre: var(--card);
  --ember-band: var(--card); --ember-houses: var(--card); --ember-centre: var(--card);
}

/* No visible title; the clock and its buttons sit at the top of the page (Emilian, 2026-10-02).
   The heading stays for screen readers and search engines only. */
.sr-only { position: absolute !important; width: 1px; height: 1px; padding: 0; margin: -1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; border: 0; }
.top { padding: 0 !important; gap: 0 !important; min-height: 0; }
.top .readout { display: none; }
.top .readout { padding-block: 0 12px; }
nav { padding-block: 10px 6px !important; }
@media (min-width: 1180px) { nav { position: absolute; top: 0; right: 0; left: 0; padding-inline: clamp(16px, 4vw, 64px); pointer-events: none; }
  nav .toggle { pointer-events: auto; } .wrap.wide { position: relative; } .main { padding-top: 16px; } nav { z-index: 5; } }

/* The light/dark switch lives in the time bar now, after Planets (Emilian, 2026-10-02); the top bar is gone entirely */
nav { display: none !important; }
.main { padding-top: 16px; }
.tb-tools .toggle { width: 44px; height: 44px; flex: none; }
@media (max-width: 560px) { .tb-tools .toggle { width: 40px; height: 40px; } }

/* Bottom tab bar: phones and the installed app only (Emilian, 2026-10-02). Sits above the iPhone home bar. */
.tabbar { display: none; }
@media (max-width: 760px) { .tabbar { display: grid; } }
.app .tabbar { display: grid; }
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 40; grid-template-columns: repeat(4, 1fr);
  padding: 6px 8px calc(6px + env(safe-area-inset-bottom, 0px)); background: color-mix(in srgb, var(--card) 92%, transparent);
  -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); border-top: 1px solid var(--line); }
.tab { display: flex; flex-direction: column; align-items: center; gap: 3px; min-height: 50px; padding: 4px 0; border: 0; background: transparent;
  color: var(--text-3); font-size: 11.5px; font-weight: 500; letter-spacing: .02em; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.tab svg { width: 24px; height: 24px; }
.tab[aria-current="page"] { color: var(--accent); }
.tab:focus:not(:focus-visible) { outline: none; }
@media (max-width: 760px) { body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); } }
.app body { padding-bottom: calc(70px + env(safe-area-inset-bottom, 0px)); }
.tab-toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: calc(76px + env(safe-area-inset-bottom, 0px)); z-index: 41;
  padding: 9px 16px; border-radius: 10px; background: var(--text); color: var(--card); font-size: 14px; white-space: nowrap; }
.embed .tabbar, .embed .tab-toast { display: none !important; }

/* Settings sheet (phones and the app): Location, Planets and the light/dark switch, moved here from the time bar */
.sheet-back { position: fixed; inset: 0; z-index: 38; background: rgba(0,0,0,.35); }
.sheet { position: fixed; left: 0; right: 0; bottom: calc(62px + env(safe-area-inset-bottom, 0px)); z-index: 39; max-height: 70vh; overflow-y: auto;
  padding: 18px 16px 20px; background: var(--card); border-top: 1px solid var(--line); border-radius: 20px 20px 0 0;
  box-shadow: 0 -12px 32px rgba(0,0,0,.25); display: flex; flex-direction: column; gap: 14px; }
.sheet[hidden], .sheet-back[hidden] { display: none !important; }
.sheet h2 { font-family: var(--f-display); font-weight: 500; font-size: 26px; text-align: center; margin: 0 0 2px; }
@media (max-width: 760px) { html:root .asp-body .aspects-sec { padding-top: max(18px, var(--cb-h, 0px)); } }
html.app:root .asp-body .aspects-sec { padding-top: max(18px, var(--cb-h, 0px)); }
.sheet-row { display: flex; flex-direction: column; gap: 8px; }
/* our calendar (2026-10-03, Emilian: "match our theme and minimal design") */
.cal { position: fixed; z-index: 45; box-sizing: border-box; padding: 12px 14px 12px; border-radius: 18px; background: color-mix(in srgb, var(--card) 94%, var(--accent) 6%);
  border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line)); box-shadow: 0 14px 34px rgba(0, 0, 0, .28); color: var(--text); font-family: var(--f-body); }
.cal[hidden] { display: none; }
.cal.phone { max-width: none; margin: 0; }
.cal button { border: 0; background: transparent; color: inherit; font: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.mo-form { display: flex; flex-direction: column; gap: 10px; margin: 0; }
.mo-row { display: flex; flex-direction: column; gap: 5px; }
.mo-label { font-size: 11px; letter-spacing: .14em; text-transform: uppercase; color: var(--text-3, var(--muted)); }
.mo-ph-v { display: grid; gap: 3px; font: 400 17px/1.3 'EB Garamond', Georgia, serif; color: var(--text); }   /* one line each, the panel is 280px */
.mo-ph-l { display: flex; align-items: center; gap: 8px; }
.mo-ph-p { display: inline-flex; width: 17px; height: 17px; color: var(--dpc); }
.mo-ph-p svg { width: 100%; height: 100%; }
.past { display: grid; gap: 8px; margin-top: 14px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--accent) 30%, transparent); text-align: left; }
.past-go { justify-self: start; border: 0; background: none; padding: 2px 0; color: var(--accent); font: 400 17px/1.3 'EB Garamond', Georgia, serif; cursor: pointer; opacity: .85; }
@media (hover: hover) { .past-go:hover { opacity: 1; text-decoration: underline; text-underline-offset: 3px; } }
.mo-hist-v { display: grid; gap: 3px; font: 400 17px/1.3 'EB Garamond', Georgia, serif; }
.mo-hist-v a { color: var(--text); text-decoration: none; }
@media (hover: hover) { .mo-hist-v a:hover { color: var(--accent); } }
.mo-dmy { display: grid; grid-template-columns: 1fr 1.6fr 1.25fr; gap: 8px; }
.mo input { width: 100%; min-width: 0; box-sizing: border-box; height: 42px; padding: 0 12px; border: 1px solid var(--line); border-radius: 12px; background: transparent;
  color: var(--text); font: 500 16px var(--f-body); -webkit-appearance: none; appearance: none; }
.mo input:focus { outline: none; border-color: var(--accent); }
.mo #moT { width: 7.5em; }
.mo-place { position: relative; }
.mo-results { display: flex; flex-direction: column; margin-top: 4px; max-height: 180px; overflow-y: auto; }
.mo-results:empty { display: none; }
.mo-results button { text-align: left; padding: 9px 10px !important; border-radius: 10px; font-size: 15px !important; }
.mo-results button span { display: block; font-size: 12.5px; color: var(--text-2); }
@media (hover: hover) { .mo-results button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent) !important; } }
.mo-none { margin: 6px 10px; font-size: 13px; color: var(--text-2); }
.mo-msg { margin: 0; font-size: 13px; color: var(--text-2); }
.mo-msg:empty { display: none; }
.mo-act { display: flex; justify-content: space-between; align-items: center; gap: 10px; margin-top: 2px; }
.mo-show { height: 40px; padding: 0 26px !important; border-radius: 10px; background: var(--accent) !important; color: var(--on-accent, #1e1d23) !important; font-weight: 700 !important; font-size: 15px !important; }
.mo-now { height: 40px; padding: 0 18px !important; border-radius: 10px; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent) !important; color: var(--accent) !important; font-weight: 600 !important; font-size: 14px !important; }
.mo-row[hidden] { display: none; }
/* A smaller date window (2026-10-06 22:14, Emilian: "make place show up next to time, make the whole box smaller", "Make the date and
   time boxes smaller as well"): 300px wide, Time and Place side by side, 34px boxes (text stays 16px so the iPhone doesn't zoom),
   the places found listed under the row, smaller Now and Show. */
.cal.mo { padding: 10px 12px !important; border-radius: 16px; }
.mo-form { gap: 8px; }
.mo-row { gap: 3px; }
.mo-label { font-size: 10px; }
.mo-dmy { gap: 6px; }
.mo input { height: 34px; padding: 0 9px; border-radius: 10px; }
/* date and time on one line, every box shorter (2026-10-06 22:32, Emilian: "put date and time on the same line. Shorten all fields") */
.cal.mo .mo-dmy { grid-template-columns: 2.4em 1fr 3.6em 3.9em; gap: 5px; }
.cal.mo input { height: 32px; padding: 0 7px; }
.cal.mo #moD, .cal.mo #moY, .cal.mo #moT { text-align: center; padding: 0 2px; }
.cal.mo { width: 280px; }
.mo #moT { width: 100%; }
/* the month calendar (computers only, 2026-10-22): the day, month and year boxes give way to it; the time box stays under it */
.mo-cal { display: none; }
@media (min-width: 761px) {
  html:root:not(.app):not(.embed) .cal.mo:not(.phone) { width: 300px !important; }
  html:root:not(.app):not(.embed) .cal.mo:not(.phone) .mo-cal { display: block; margin-bottom: 6px; }
  html:root:not(.app):not(.embed) .cal.mo:not(.phone) :is(#moD, #moM, #moY) { display: none; }
  html:root:not(.app):not(.embed) .cal.mo:not(.phone) .mo-dmy { grid-template-columns: 5em; justify-content: start; }
  .mo-ch { display: flex; align-items: center; justify-content: space-between; margin: 2px 0 6px; }
  .mo-ct { font: 600 15px var(--f-body) !important; padding: 4px 10px !important; border-radius: 8px; }
  .mo-ct:not([disabled]):hover { background: color-mix(in srgb, var(--accent) 10%, transparent) !important; }
  .mo-ct[disabled] { cursor: default; }
  .mo-carr { width: 30px; height: 30px; display: grid; place-items: center; border-radius: 8px; color: var(--text-2) !important; }
  .mo-carr svg { width: 18px; height: 18px; }
  .mo-carr:hover { color: var(--text) !important; background: color-mix(in srgb, var(--accent) 10%, transparent) !important; }
  .mo-cg { display: grid; grid-template-columns: repeat(7, 1fr); gap: 2px; }
  .mo-cg.mo-c3 { grid-template-columns: repeat(3, 1fr); gap: 4px; }
  .mo-cw { text-align: center; font-size: 11px; letter-spacing: .06em; color: var(--text-3, var(--muted)); padding: 2px 0 4px; }
  .mo-cd { height: 34px; border-radius: 9px; font: 500 14px var(--f-num, var(--f-body)) !important; font-variant-numeric: tabular-nums; }
  .mo-c3 .mo-cd { height: 40px; font-family: var(--f-body) !important; }
  .mo-cd:hover { background: color-mix(in srgb, var(--accent) 10%, transparent) !important; }
  .mo-cd.today { box-shadow: inset 0 0 0 1px color-mix(in srgb, var(--accent) 55%, transparent); }
  .mo-cd.sel { background: var(--accent) !important; color: var(--on-accent, #1e1d23) !important; font-weight: 700 !important; }
}
.mo-results { margin-top: -2px; max-height: 150px; }
.mo-show { height: 34px; padding: 0 20px !important; font-size: 14px !important; }
.mo-now { height: 34px; padding: 0 14px !important; font-size: 13.5px !important; }
/* the next 24 hours, under the chart (2026-10-03, Emilian): phones and the app, sky view only */
.now-card { margin: 4px 16px 0; padding: 14px 16px 12px; border-radius: 18px; border: 1px solid color-mix(in srgb, var(--accent) 30%, var(--line));
  background: color-mix(in srgb, var(--card) 92%, var(--accent) 8%); display: flex; flex-direction: column; gap: 8px; min-width: 0; }
.now-card[hidden] { display: none !important; }
.main:has(.panel.asp-shown) .now-card { display: none !important; }
.now-head { display: flex; align-items: center; flex-wrap: wrap; gap: 4px 8px; padding: 0; border: 0; background: transparent; color: var(--text); text-align: left; cursor: pointer; }
.now-icons { display: inline-flex; align-items: center; gap: 2px; }
.now-icons .pg { width: 20px; height: 20px; }
.now-icons .kind { font-size: 15px; color: var(--accent); margin: 0 2px; }
.now-title { font: 600 18px var(--f-display); }
.now-stream { align-self: flex-start; margin-top: 6px; padding: 0; border: 0; background: transparent; color: var(--accent); font: 600 13.5px var(--f-body); cursor: pointer; text-decoration: underline; text-underline-offset: 3px; }
.now-stream[hidden] { display: none; }
@media (max-height: 760px) { .now-card .now-stream { display: none; } }
.now-when { font-size: 13px; color: var(--text-2); }
.now-poss { margin: 0; font-size: 14.5px; line-height: 1.45; color: var(--text-2); }
.now-note { display: flex; flex-direction: column; gap: 6px; margin: 2px 0 0; }
.now-q { font-size: 14px; color: var(--text); }
.now-note textarea { width: 100%; box-sizing: border-box; resize: none; min-height: 40px; padding: 9px 12px; border-radius: 12px; border: 1px solid var(--line);
  background: transparent; color: var(--text); font: 15px/1.4 var(--f-body); }
.now-note textarea:focus { outline: none; border-color: var(--accent); }
.now-row { display: flex; align-items: flex-end; gap: 8px; }
.now-row textarea { flex: 1; min-width: 0; }
.now-saved:not([hidden]) { display: block; }
.now-save { flex: none; height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent, #1e1d23); font: 600 14px var(--f-body); cursor: pointer; }
.now-save[hidden], .now-saved[hidden] { display: none; }
@media (min-width: 761px) { html:not(.app) .now-card { display: none !important; } }
/* shorter phones (iPhone SE and the like): the card keeps the title and the writing box, so it still fits above the bottom menu;
   the possibilities and the question are a tap away (the title opens the full panel) */
@media (max-height: 760px) { .now-card { padding: 10px 14px; gap: 6px; margin-top: -18px; } .now-card .now-note textarea { min-height: 36px; padding: 7px 12px; } .now-card .now-save { height: 36px; } .now-card .now-poss, .now-card .now-q { display: none; } .now-title { font-size: 17px; } }
/* The refresh button grey like the other icons in the top menu (2026-10-03 21:43, Emilian: "make the refresh button grey like everything else") */
html:root body .timebar #bNow, html:root body .timebar #bNow svg { color: var(--text-3) !important; }
@media (hover: hover) { html:not(.app):not(.embed) body .timebar #bNow:hover, html:not(.app):not(.embed) body .timebar #bNow:hover svg { color: var(--accent) !important; } }
/* The wheel's lines more gold in dark mode (2026-10-03 21:50, Emilian: "make the wheel more gold in dark mode"; was #76643f / #4f4330) */
:root[data-theme="dark"]:root { --ring: #a3854c; --ring-2: #6f5a35; }
/* the one line under the chart (2026-10-03, Emilian) */
html:root body .now-card { gap: 0; }
html:root body .now-fold { display: none !important; }
/* Language (2026-10-03, Emilian: "In settings, there can be a language button"): a pill with the language's own name; the list
   drops under it. static/clock/i18n.js builds the row. */
.lang-wrap { position: relative; }
.lang-btn { width: 100%; height: 44px; display: flex; align-items: center; gap: 10px; padding: 0 16px; border-radius: 10px; cursor: pointer;
  background: transparent; border: 1px solid color-mix(in srgb, var(--accent) 70%, transparent); color: var(--accent); font: 500 15px var(--f-body); }
.lang-btn svg { width: 18px; height: 18px; flex: none; }
.lang-btn .lang-name { flex: 1; text-align: start; }
/* Arabic reads right to left inside the panels, menus and lists; the clock's own layout (strip, wheel, tabs, the icon rows in Settings) stays as it is */
html.rtl-text .desc-card, html.rtl-text .charts, html.rtl-text .prof-card, html.rtl-text .f-menu, html.rtl-text .find-panel,
html.rtl-text .aspects-sec, html.rtl-text .install-sheet, html.rtl-text .chart-bar .cb-text, html.rtl-text .chart-bar #cbOther, html.rtl-text .welcome-loc { direction: rtl; }
/* the possibilities stay English for now: each line keeps its own direction so its full stop sits at the end */
html.rtl-text .desc-list li, html.rtl-text .pp-signs li, html.rtl-text .pp-about, html.rtl-text .asp-desc { unicode-bidi: plaintext; }
/* the date in the top strip reads right to left as one piece: "3 أكتوبر 26" */
html.rtl-text #dateStr .ds-d { direction: rtl; unicode-bidi: isolate; display: inline-block; }
html.rtl-text .orb, html.rtl-text .mono { direction: ltr; unicode-bidi: isolate; }
.sheet-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.sheet .loc-wrap, .sheet .pl-wrap { display: block; position: static; }
.sheet .pop-btn { width: 100%; height: 44px; min-height: 44px; justify-content: flex-start; padding: 0 16px; font-size: 15px; }
.sheet .pop-btn span { display: inline; max-width: none; }
.sheet .pop-menu { position: static; width: 100%; margin-top: 8px; box-shadow: none; }
.sheet .toggle { width: 44px; height: 44px; }

/* In the Settings sheet the light/dark switch is a full-width row that names the current mode */
.theme-word { display: none; }
#settingsSheet .toggle { width: 100% !important; height: 44px !important; border-radius: 10px !important; display: flex; align-items: center; justify-content: flex-start; gap: 10px; padding: 0 16px; font-size: 15px; }
#settingsSheet .toggle .theme-word { display: inline; order: 2; }
#settingsSheet .toggle svg { order: 1; width: 18px; height: 18px; display: block; }
#settingsSheet .toggle .moon, #settingsSheet .toggle .sun { display: none; }
:root:not([data-theme="dark"]) #settingsSheet .toggle .sun, :root[data-theme="dark"] #settingsSheet .toggle .moon { display: block; }
.sheet { background: var(--bg); }

/* Phones and the app: no large "Aspects" bar under the clock; the Aspects tab at the bottom opens the list
   (and View closes it). On computers the bar stays, since there is no tab bar there. (Emilian, 2026-10-02) */
@media (max-width: 760px) {
  #aspToggle { display: none; }
  .panel:not(.asp-shown) { display: none; }
  .asp-body .aspects-sec { border-top: 0; padding-top: 18px; }
}
.app #aspToggle { display: none; }
.app .panel:not(.asp-shown) { display: none; }

/* Install banner (Emilian chose option D, 2026-10-02): a slim card above the bottom menu (or the bottom edge on computers),
   with an × to say no thanks; once dismissed it stays away on that device. Never inside the app or the readings embed. */
.install-banner { position: fixed; left: 12px; right: 12px; bottom: calc(16px + env(safe-area-inset-bottom, 0px)); z-index: 37;
  max-width: 460px; margin-inline: auto; display: flex; align-items: center; gap: 10px; padding: 8px 8px 8px 16px;
  border-radius: 16px; border: 1px solid var(--line); background: var(--bg); box-shadow: 0 8px 24px rgba(0,0,0,.28); }
.install-banner[hidden] { display: none !important; }
@media (max-width: 760px) { .install-banner { bottom: calc(74px + env(safe-area-inset-bottom, 0px)); } }
.ib-text { flex: 1; min-width: 0; font-size: 14px; line-height: 1.35; color: var(--text-2); }
.install-banner .install-btn { flex: none; height: 38px; min-height: 38px; padding: 0 14px; white-space: nowrap; }
.ib-close { flex: none; width: 34px; height: 34px; display: grid; place-items: center; border: 0; background: transparent; color: var(--muted); cursor: pointer; border-radius: 50%; -webkit-tap-highlight-color: transparent; }
.ib-close svg { width: 15px; height: 15px; }
.ib-close:hover { color: var(--text); }
.app .install-banner, .embed .install-banner, .native .install-banner, .native .install-top { display: none !important; }

/* No lines above or below the chart (Emilian, 2026-10-02): no divider under the time bar, and on phones (edge-to-edge card)
   no top/bottom border on the clock card */
.timebar { border-bottom: 0 !important; }
@media (max-width: 560px) { .wheel { border-top: 0 !important; border-bottom: 0 !important; box-shadow: none !important; } }

/* Phones: Day and search sit on the same line as the date, to its right (Emilian, 2026-10-02).
   Row: back · date over time · forward · Day · search. "Now" drops to its own line, centred, when you leave the present. */
@media (max-width: 560px) {
  .timebar { flex-wrap: wrap; justify-content: center; column-gap: 6px; row-gap: 10px; padding-inline: 6px; }
  .tb-tools { display: contents; }
  .when { flex: 0 1 auto; min-width: 0; font-size: 16px; line-height: 1.2; text-align: center; padding: 2px 4px; }
  /* time on the same line as the date (Emilian, 2026-10-02: "Put the time next to the date"); the weekday is left out on phones to fit */
  .when { white-space: nowrap; }
  .ds-d, .ds-t, .ds-sep { display: inline; white-space: nowrap; }
  .units-slot { order: 4; } #findBtn { order: 5; }
  #tBack { order: 1; } .when { order: 2; } #tFwd { order: 3; }
  /* Now sits right after search on the same line (Emilian, 2026-10-02), as a small round button like its neighbours */
  .tb-tools .now { order: 6; width: 40px; height: 40px !important; min-height: 40px !important; padding: 0 !important; border-radius: 50% !important;
    font-size: 12px; letter-spacing: .02em; justify-content: center; }
  .tb-tools .now[data-off] { width: 0; margin-left: -6px; }
  .timebar { column-gap: 5px; }
  .when { font-size: 15.5px; padding: 2px 2px; }
}

/* Aspect finder: the four choices stacked one under the other for readability (Emilian, 2026-10-02) */
.find-row { grid-template-columns: minmax(0, 1fr) !important; gap: 8px; }
.find-row select { min-height: 44px; font-size: 16px; padding: 0 12px; }

/* Smallest iPhones (≤380px): a little tighter so Now still fits on the same line as search */
@media (max-width: 380px) {
  .timebar { column-gap: 4px; padding-inline: 4px; }
  .when { font-size: 14px; }
  .units button { min-width: 52px; padding: 0 8px; }
  .step, .icon-btn, .tb-tools .now { width: 38px; height: 38px !important; min-height: 38px !important; }
}

/* Phones and the app: the time bar is a plain horizontal bar fixed to the top of the screen, mirroring the tab bar at
   the bottom (Emilian, 2026-10-02). Its height is measured into --tb-h so the page and the search panel sit below it. */
@media (max-width: 760px) {
  .timebar { position: fixed; top: 0; left: 0; right: 0; z-index: 36; margin: 0 !important;
    padding: calc(8px + var(--sat)) 8px 8px !important;
    background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
  body { padding-top: var(--tb-h, 64px); }
  .main { padding-top: 8px; }
  .find-panel { position: fixed; top: calc(var(--tb-h, 64px) + 6px); left: 8px; right: 8px; width: auto; transform: none; }
}
.app .timebar { position: fixed; top: 0; left: 0; right: 0; z-index: 36; margin: 0 !important;
  padding: calc(8px + var(--sat)) 8px 8px !important;
  background: color-mix(in srgb, var(--bg) 92%, transparent); -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px); }
.app body { padding-top: var(--tb-h, 64px); }
.app .find-panel { position: fixed; top: calc(var(--tb-h, 64px) + 6px); left: 8px; right: 8px; width: auto; transform: none; }
.embed .timebar { position: static !important; }

/* The wheel's lines in gold (2026-10-11 12:20, Emilian picked "In between" on the house lines page 6UP8mdAT14nAQ51HtjDXTU, after "They're very
   grey. Do you think they match?", and: "make the inner and outer bands of the outermost wheel with the zodiac icons on it ... gold as well"):
   the house lines, the house-number band and both circles of the zodiac ring in the gold of the Ascendant and Midheaven lines, softer
   (light 60%, dark 75%). Plain rgba so the widget can read it. */
:root { --hl: rgba(127, 92, 0, .6); }
:root[data-theme="dark"] { --hl: var(--ring); }
/* night mode back to this morning's gold (2026-10-11 20:43, Emilian: "bring dark mode back to where it was. It feels too gold now"): the house
   lines and rings in the old ring gold at their old weight (the soft angle gold and heavier lines stay a light-mode change) */
:root[data-theme="dark"] svg line[stroke="var(--hl)"] { stroke-width: .9; }
:root[data-theme="dark"] svg :is(circle, path)[stroke="var(--hl)"] { stroke-width: 1; }
/* the inner chart of a double or triple chart is drawn smaller: its lines widened back by that scale, so every line matches (2026-10-19) */
svg g.bi-in line[stroke="var(--hl)"]:not(.zs-decan) { stroke-width: calc(1.1 / var(--bik, 1)); }
svg g.bi-in :is(circle, path)[stroke="var(--hl)"] { stroke-width: calc(1 / var(--bik, 1)); }
:root[data-theme="dark"] svg g.bi-in line[stroke="var(--hl)"]:not(.zs-decan) { stroke-width: calc(.9 / var(--bik, 1)); }
:root[data-theme="dark"] svg g.bi-in :is(circle, path)[stroke="var(--hl)"] { stroke-width: calc(1 / var(--bik, 1)); }
/* the Ascendant and Midheaven in a double or triple chart: the cusp line, a little thicker, the same inside and out (2026-10-19 11:11) */
svg line.bi-ax[stroke="var(--hl)"] { stroke-width: 1.6; }
svg g.bi-in line.bi-ax[stroke="var(--hl)"] { stroke-width: calc(1.6 / var(--bik, 1)); }
:root[data-theme="dark"] svg line.bi-ax[stroke="var(--hl)"] { stroke-width: 1.35; }
:root[data-theme="dark"] svg g.bi-in line.bi-ax[stroke="var(--hl)"] { stroke-width: calc(1.35 / var(--bik, 1)); }
/* Dark mode: the wheel's rings and house lines a little more gold (Emilian, 2026-10-02; were warm grey #4b4840) */
:root[data-theme="dark"] { --ring: #76643f; --ring-2: #4f4330; }
/* ---------- Charts screen (2026-10-02, Emilian: "a chart calculator and a place where you can store charts") ---------- */
.charts-btn { flex: none; }
@media (max-width: 760px) { .charts-btn { display: none !important; } }
.app .charts-btn { display: none !important; }
.embed .charts-btn, .embed .chart-bar, .embed .charts { display: none !important; }
.chart-bar { display: flex; align-items: center; justify-content: center; gap: 10px; max-width: 560px; margin: 0 auto 10px; padding: 6px 6px 6px 16px;
  border: 1px solid var(--accent); border-radius: 10px; color: var(--text); }
.chart-bar[hidden] { display: none !important; }
@media (max-width: 760px) { .chart-bar { margin: 4px 12px 8px; } }
.cb-text { flex: 1; min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font-size: 14px; color: var(--text-2); }
.cb-rise:empty { display: none; }
.cb-rise { display: inline-flex; vertical-align: -2px; margin-right: 6px; }
.cb-rise .b3-row { display: inline-flex; }
.cb-text b { font-family: var(--f-display); font-size: 19px; font-weight: 600; color: var(--text); margin-right: 8px; }
.cb-close { flex: none; width: 32px; height: 32px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.cb-close svg { width: 14px; height: 14px; }
.cb-close:hover { color: var(--accent); border-color: var(--accent); }

.charts { position: fixed; inset: 0; z-index: 37; background: var(--bg); overflow-y: auto; -webkit-overflow-scrolling: touch; overscroll-behavior: contain;
  padding: calc(22px + var(--sat)) 16px calc(96px + env(safe-area-inset-bottom, 0px)); }
.charts[hidden] { display: none !important; }
.charts { touch-action: pan-y; will-change: transform; }
/* Scrollbars in the app's look, not the grey system bar (2026-11-05, Emilian: "scrolling sidebar here should match the rest of the theme"):
   thin, clear track, gold thumb that firms up on hover. Only ::-webkit-scrollbar here (Chrome and Safari): a scrollbar-color on every element
   would make Chrome ignore the many `::-webkit-scrollbar { display: none }` rules that hide bars on purpose. Firefox gets scrollbar-color. */
@supports (-moz-appearance: none) { * { scrollbar-width: thin; scrollbar-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 45%, transparent) transparent; } }
::-webkit-scrollbar { width: 8px; height: 8px; background: transparent; }
::-webkit-scrollbar-track, ::-webkit-scrollbar-corner { background: transparent; }
::-webkit-scrollbar-thumb { background: color-mix(in srgb, var(--zs-gold, #b89a5e) 38%, transparent); border-radius: 99px; border: 2px solid transparent; background-clip: padding-box; }
::-webkit-scrollbar-thumb:hover { background-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 60%, transparent); }
/* no blue text selection while holding or moving charts (2026-10-06, Emilian: dragging between folders "highlights all the folders in blue");
   writing boxes stay selectable */
.charts, .charts *, #fbx, #fbx *, .ch-ghost, .ch-ghost * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.charts input, .charts textarea, #fbx input, #fbx textarea { -webkit-user-select: text; user-select: text; -webkit-touch-callout: default; }
/* while it slides, Charts sits above everything on the clock screen except the bottom menu */
html.ch-sliding .charts { z-index: 39 !important; }
/* one dark layer dims the clock while Charts covers it (cheaper and smoother than fading the clock itself), above the clock
   and its strip, under Charts and the bottom menu */
.ch-dim { position: fixed; inset: 0; z-index: 38; background: #000; opacity: 0; pointer-events: none; display: none; }
html.ch-moving .ch-dim { display: block; }
html.ch-moving .charts { box-shadow: 0 0 28px rgba(0,0,0,.28); }
/* phones and the app: the dim layer and the screens' edge shadow are always there (the dim at 0, the shadow off screen while a
   screen rests), so nothing switches on in the first frame of a slide or off in the last (2026-10-06, Emilian: the slides from
   View to Journal and to Charts were "not totally smooth") */
@media (max-width: 760px) { .ch-dim { display: block; } .charts, #journal { box-shadow: 0 0 28px rgba(0,0,0,.28); } }
html.app .ch-dim { display: block; }
html.app .charts, html.app #journal { box-shadow: 0 0 28px rgba(0,0,0,.28); }
html.jn-sliding #journal { z-index: 39 !important; }
/* no will-change on .main: it would hold the fixed top strip (inside .main) and drop it to .main's top for the whole slide (2026-10-04) */
html.ch-moving #chartBar { will-change: transform; }
html.ch-moving .timebar, html.jn-sliding .timebar, html.jn-sliding .tabbar { -webkit-backdrop-filter: none !important; backdrop-filter: none !important; }
/* the Journal slide keeps the top menu steady (2026-10-07, Emilian: "Animation scrolling between journal and view is buggy; top menu also
   flashes out"): no blur behind the bars while the Journal moves, and the Journal's living scene (sunlight, ivy) holds still meanwhile,
   so the phone has fewer moving layers to keep in memory and never drops the top menu for a frame */
html.jn-sliding #journal .zsj-sun { animation-play-state: paused; }
/* phones and the app slide Charts in instead of fading it */
@media (max-width: 760px) { .charts:not([hidden]) { animation: none !important; } }
html.app .charts:not([hidden]) { animation: none !important; }
.ch-in { max-width: 560px; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
/* the chart card (2026-10-05) */
.ch-card .ch-head { justify-content: flex-start; gap: 6px; }
.ch-card .chc-view[hidden] { display: none !important; }
.ch-card .chc-view { margin-left: auto; flex: none; display: inline-flex; align-items: center; gap: 5px; padding: 6px 12px; border: 1px solid color-mix(in srgb, var(--accent) 55%, transparent);
  border-radius: 10px; background: transparent; color: var(--accent); font: 500 13px/1.2 var(--f-body); cursor: pointer; }
.ch-card .chc-view svg { width: 16px; height: 16px; }
.ch-card .ch-head h2 { min-width: 0; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-cback { display: grid; place-items: center; width: 36px; height: 36px; margin-left: -10px; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-cback svg { width: 20px; height: 20px; }
.chc-who { margin: -6px 0 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.chc-who small { display: block; margin-top: 2px; color: var(--text-3); font-size: 12px; letter-spacing: .1em; text-transform: uppercase; }
.chc-wheel svg { display: block; width: 100%; height: auto; }
.chc-wheel .zs-tdim { opacity: .01 !important; }
#chCardBody .zsm-lab, #chCardBody .chc-lab { margin: 8px 0 -8px; }
.chc-lab { margin: 4px 0 -6px; font-size: 12px; letter-spacing: .1em; text-transform: uppercase; color: var(--text-3); }
/* Placements in two columns, inner and outer planets, larger text (2026-10-21, Emilian) */
.chc-cols { display: grid; grid-template-columns: 1fr 1fr; gap: 10px 18px; align-items: start; }
.chc-col { min-width: 0; }
.chc-sub { margin: 0 0 2px; font-size: 13px; color: var(--text-3); }
.chc-list { display: flex; flex-direction: column; }
.chc-row { display: grid; grid-template-columns: 28px 1fr; align-items: center; gap: 10px; padding: 10px 2px; border-bottom: 1px solid var(--line); }
.chc-row:last-child { border-bottom: 0; }
/* a placement opens its own page (2026-10-22) */
.chc-row.chc-go { cursor: pointer; border-radius: 8px; transition: background .2s; }
.chc-row.chc-go:hover { background: color-mix(in srgb, var(--zs-gold, #b89a5e) 9%, transparent); }
.chp-head { display: flex; align-items: center; gap: 14px; margin: 14px 0 6px; }
.chp-head > svg { width: 40px; height: 40px; flex: none; }
.chp-head h3 { margin: 0; font: 500 34px/1.1 var(--f-display); color: var(--text); }
.chp-head small { display: block; margin-top: 4px; font: 400 16px var(--f-body); color: var(--text-2); }
/* Eda, Markets, Starsail and Orbits wait until after the first launch (2026-11-11 09:22, Emilian: "I would liek to remove Eda, Markets,
   Starsail and Orbits from the more menu. They will not be part of the initial launch"); their code stays */
#edaTop, #mktTop, #orbitsTop, #starsailTop, #gameTop, #moreMenu [data-go="game"], #tabbar .tab[data-tab="game"], #moreMenu [data-go="eda"], #moreMenu [data-go="markets"], #moreMenu [data-go="orbits"], #moreMenu [data-go="starsail"] , #tabbar .tab[data-tab="eda"], #tabbar .tab[data-tab="markets"], #tabbar .tab[data-tab="orbits"], #tabbar .tab[data-tab="starsail"] { display: none !important; }
/* the Charts panel's scroll bar barely there (2026-11-11 09:24, Emilian: "the scroll bar on the right, if it could be more invisible") */
/* none at all since 09:53 ("scroll bar here doesn't match at all"): WebKit drew its own white track beside the thin one; the Journal has none too */
#charts, #charts * { scrollbar-width: none; }
#charts ::-webkit-scrollbar, #charts::-webkit-scrollbar { display: none; width: 0; height: 0; }
.chp-ahead > svg + svg { margin-left: -8px; }
.chp-enc { display: block; width: 100%; margin: 14px 0 6px; padding: 14px 16px; text-align: left; border-radius: 14px; background: transparent; cursor: pointer;
  border: 1px solid var(--zs-bar-edge, rgba(160,130,80,.45)); color: var(--text); font: 500 20px var(--f-display); }
html[data-theme="dark"] .chp-enc { border-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 45%, transparent); }
.chp-game { margin-top: 6px; padding: 18px; border-radius: 16px; border: 1px solid var(--zs-bar-edge, rgba(160,130,80,.45)); }
html[data-theme="dark"] .chp-game { border-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 45%, transparent); }
.chp-ph { margin: 0 0 14px; font: 400 24px/1.35 var(--zs-enc-body, 'EB Garamond', serif); color: var(--text); }
.chp-btns { display: flex; gap: 10px; flex-wrap: wrap; margin-top: 10px; }
.chp-b { flex: 1; min-height: 46px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--zs-gold, var(--accent)); background: transparent; color: var(--text); font: 500 16px var(--f-body); cursor: pointer; }
.chp-b:hover { background: color-mix(in srgb, var(--zs-gold, #b89a5e) 10%, transparent); }
.chp-b.fill { background: var(--zs-gold, var(--accent)); color: var(--on-accent); }
.chp-in { width: 100%; box-sizing: border-box; margin-top: 4px; padding: 12px 14px; border-radius: 12px; border: 1px solid var(--line); background: transparent; color: var(--text);
  font: 400 20px/1.4 var(--zs-enc-body, 'EB Garamond', serif); resize: vertical; }
.chp-notes { display: grid; gap: 0; margin-bottom: 10px; }
.chp-note { position: relative; padding: 14px 30px 14px 2px; border-bottom: 1px solid color-mix(in srgb, var(--zs-gold, #b89a5e) 30%, transparent); }
.chp-nph { margin: 0 0 6px; font: 600 12px/1.4 var(--f-body); letter-spacing: .08em; text-transform: uppercase; color: var(--zs-gold, var(--accent)); }
.chp-nt { margin: 0 0 6px; font: 400 20px/1.45 var(--zs-enc-body, 'EB Garamond', serif); color: var(--text); white-space: pre-wrap; }
.chp-note small { font: 400 13px var(--f-body); color: var(--text-3); }
.chp-shr, .chp-pubs { display: flex; flex-wrap: wrap; gap: 6px; margin: 8px 0 2px; align-items: center; }
.chp-sh, .chp-pub { padding: 6px 10px; border-radius: 8px; border: 1px solid color-mix(in srgb, var(--zs-gold, var(--accent)) 45%, transparent); background: transparent; color: var(--text-2, var(--text)); font: 400 15px 'EB Garamond', Georgia, serif; cursor: pointer; }
.chp-sh[aria-pressed="true"] { border-color: var(--zs-gold, var(--accent)); color: var(--zs-gold, var(--accent)); background: color-mix(in srgb, var(--zs-gold, var(--accent)) 12%, transparent); }
.chp-pubs span { font: italic 400 14px 'EB Garamond', Georgia, serif; color: var(--text-3, var(--text-2)); margin-right: 4px; }
.chp-msg { font: italic 400 15px 'EB Garamond', Georgia, serif; color: var(--text-2, var(--text)); margin: 8px 0 0; }
.chp-x { position: absolute; right: 0; top: 12px; border: 0; background: none; color: var(--text-3); font-size: 18px; cursor: pointer; }
.chp-nhead { display: flex; align-items: center; gap: 10px; margin: 14px 0 10px; }
.chp-nhead h3 { margin: 0; font: 500 30px/1.1 var(--f-display); color: var(--text); }
.chp-nhead small { display: block; margin-top: 3px; font: 400 15px var(--f-body); color: var(--text-2); }
.chp-nd { display: block; margin-bottom: 6px; }
/* the story box opens larger once a phrase lands and grows with the words, no scroll bar (2026-11-11 09:50-09:51, Emilian: "Little
   scroll bar here should also be bascially invisible", "make the writing box larger once I select that a story DOES land") */
.chp-story { min-height: 210px; }
#charts textarea.chp-in { overflow: hidden; resize: none; }
.chp-fhead > svg { width: 64px; height: 64px; }
/* small and quiet beside the heading (2026-11-11 10:01, Emilian: "i don't love the design here... can we make it a bit more discrete,
   small, cozy?"): two words in a soft little pill, the chosen one lifted */
#chCardBody .chc-tabrow { display: flex; align-items: center; justify-content: space-between; gap: 12px; margin: 26px 0 12px; }
#chCardBody .chc-tabrow .zsm-lab { margin: 0; }
#chCardBody .chc-tabs { display: inline-flex; gap: 2px; padding: 3px; margin: 0; border-radius: 10px; background: color-mix(in srgb, var(--text) 6%, transparent); }
#chCardBody .chc-tabs button { border: 0; background: transparent; padding: 4px 12px; border-radius: 10px; color: var(--text-3); font: 400 15px var(--f-display, 'EB Garamond', serif); cursor: pointer;
  transition: background .2s cubic-bezier(.32,.72,0,1), color .2s cubic-bezier(.32,.72,0,1); }
#chCardBody .chc-tabs button.on { color: var(--text); background: color-mix(in srgb, var(--zs-gold, #b89a5e) 18%, transparent); }
.chp-lph { padding: 16px 0 6px; border-bottom: 1px solid color-mix(in srgb, var(--zs-gold, #b89a5e) 30%, transparent); }
.chp-lph .chp-ph { margin: 0 0 4px; }
.chp-lph .chp-note { border-bottom: 0; padding-top: 8px; }
/* more room on these pages (2026-11-11 09:53, Emilian: "things need a bit more padding, just make things a little more spacious here") */
#chCardBody .chp { padding: 4px 4px 28px; }
#chCardBody .chp-head, #chCardBody .chp-nhead { gap: 16px; margin: 20px 0 28px; }
#chCardBody .chp-head small { margin-top: 8px; }
#chCardBody .chp .chp-enc { margin: 0 0 32px; padding: 18px 20px; }
#chCardBody .chp .chc-lab { margin: 0 0 12px; }
#chCardBody .chp .chp-game { margin: 0 0 32px; padding: 24px; }
#chCardBody .chp .chp-game + .chp-ncount { margin-top: -18px; }
#chCardBody .chp .chp-ph { margin-bottom: 18px; }
#chCardBody .chp .chp-none { margin: 0 0 16px; }
#chCardBody .chp .chp-ncount { margin-bottom: 16px; }
#chCardBody .chp .chp-in { margin-top: 0; padding: 16px 18px; }
#chCardBody .chp .chp-btns { margin-top: 14px; gap: 12px; }
.chp-none { margin: 4px 0 8px; font: 400 17px var(--f-body); color: var(--text-3); }
.chc-row > svg { width: 24px; height: 24px; }
.chc-row .chc-pn { min-width: 0; }
.chc-row .chc-pn b { display: block; font: 600 19px/1.2 var(--f-display); }
.chc-row .chc-pn small { display: block; margin-top: 2px; color: var(--text-3); font-size: 14px; line-height: 1.35; }
.chc-row .chc-pos { display: inline-flex; align-items: center; gap: 4px; color: var(--text-2); font-family: var(--f-num); font-variant-numeric: lining-nums tabular-nums; vertical-align: -2px; }
.chc-row .chc-pos svg { width: 15px; height: 15px; }
/* a chart's page on computers: every row a raised button, all the same height so the two columns line up row by row, the house on its
   own line (2026-10-22 14:15, Emilian: "apply design changes we've just made to this entire profile menu. make buttons clear and clickable.
   Make it all align") */
.chc-row .chc-h { display: block; }
@media (min-width: 761px) {
  html:root:not(.app):not(.embed) #chCard :is(.chc-list, .zsm-plist) { display: flex; flex-direction: column; gap: 8px; border: 0 !important; background: none !important; box-shadow: none !important; border-radius: 0 !important; overflow: visible !important; }
  html:root:not(.app):not(.embed) #chCard :is(.chc-row.chc-go, .zsm-prow) { box-sizing: border-box; border: 0 !important; border-radius: 14px !important; padding: 12px 14px !important;
    background: color-mix(in srgb, var(--zs-menu, var(--card)) 78%, var(--zs-lift, #fff)) !important; color: var(--text);
    box-shadow: inset 0 1px 0 var(--zs-rim, rgba(255,255,255,.6)), 0 1px 2px rgba(60,40,10,.10), 0 5px 14px rgba(60,40,10,.11) !important;
    transition: transform .18s cubic-bezier(.32,.72,0,1), box-shadow .18s ease !important; }
  html:root:not(.app):not(.embed) #chCard .chc-row.chc-go { height: 86px; }
  html:root:not(.app):not(.embed) #chCard .chc-acts .ch-btn:not(.chc-open) { border-color: transparent !important; background: color-mix(in srgb, var(--zs-menu, var(--card)) 78%, var(--zs-lift, #fff)) !important;
    box-shadow: inset 0 1px 0 var(--zs-rim, rgba(255,255,255,.6)), 0 1px 2px rgba(60,40,10,.10), 0 5px 14px rgba(60,40,10,.11) !important; }
  html:root[data-theme="dark"]:not(.app):not(.embed) #chCard .chc-acts .ch-btn:not(.chc-open) { background: color-mix(in srgb, var(--zs-menu, var(--card)) 88%, var(--zs-lift, #fff)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.45) !important; }
  html:root:not(.app):not(.embed) #chCard :is(.chc-row.chc-go, .zsm-prow):hover { transform: translateY(-1px); background: color-mix(in srgb, var(--zs-menu, var(--card)) 70%, var(--zs-lift, #fff)) !important; }
  html:root:not(.app):not(.embed) #chCard :is(.chc-row.chc-go, .zsm-prow):active { transform: translateY(1px); box-shadow: inset 0 1px 0 rgba(255,255,255,.5), 0 1px 2px rgba(60,40,10,.12) !important; }
  html:root[data-theme="dark"]:not(.app):not(.embed) #chCard :is(.chc-row.chc-go, .zsm-prow) { background: color-mix(in srgb, var(--zs-menu, var(--card)) 88%, var(--zs-lift, #fff)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.45), 0 6px 16px rgba(0,0,0,.45) !important; }
  html:root[data-theme="dark"]:not(.app):not(.embed) #chCard :is(.chc-row.chc-go, .zsm-prow):hover { background: color-mix(in srgb, var(--zs-menu, var(--card)) 82%, var(--zs-lift, #fff)) !important; }
  html:root:not(.app):not(.embed) #chCard .zsm-prow.on { box-shadow: inset 0 0 0 1.5px var(--accent), 0 5px 14px rgba(60,40,10,.11) !important; }
  html:root:not(.app):not(.embed) #chCard .chc-cols { gap: 10px 12px; }
  html:root:not(.app):not(.embed) #chCard :is(.chc-lab, .zsm-lab, .chc-sub) { padding-left: 2px; margin-left: 0; }
}
.chc-del { align-self: center; margin-top: 18px; padding: 8px 14px; border: 0; background: transparent; color: #b4412f; font: 500 14px var(--f-body); cursor: pointer; border-radius: 10px; }
.chc-del:hover { background: color-mix(in srgb, #b4412f 10%, transparent); }
html:root[data-theme="dark"] .chc-del { color: #e07a62; }
.chc-acts { display: flex; gap: 10px; margin-top: 4px; }
.chc-acts .ch-btn { flex: 1; }
html:root #chCard .chc-acts .ch-btn { white-space: nowrap; padding-left: 8px !important; padding-right: 8px !important; min-width: 0; }   /* Open chart · Edit · Share on one line (2026-11-14) */
/* more room between the parts of the chart card (2026-10-06, Emilian: "Make more space between the chart and the information below. More
   padding between things. Consistent with padding elsewhere in the app"): the parts sit 16px apart like the rest of the Charts screen
   (.ch-in), with a wider 24px around the wheel and before the Planets list and the buttons */
#chCardBody { display: flex; flex-direction: column; gap: 16px; }
html:root .chc-who { margin: 0; }
html:root .chc-wheel { margin: 8px 0; }
html:root .chc-lab { margin: 8px 0 -8px; }
html:root .chc-acts { margin-top: 8px; }
html:root .chc-acts .chc-open { background: var(--accent); color: var(--card); }
.ch-head { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.ch-head h2 { font-family: var(--f-display); font-weight: 500; font-size: 32px; margin: 0; line-height: 1.1; }
.ch-x { flex: none; width: 40px; height: 40px; border-radius: 50%; border: 1px solid var(--line); background: transparent; color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-x svg { width: 16px; height: 16px; }
.ch-x:hover { color: var(--accent); border-color: var(--accent); }
.ch-btn { min-height: 48px; padding: 0 20px; border-radius: 10px; border: 1px solid var(--accent); background: transparent; color: var(--accent);
  font: 600 16px var(--f-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-btn svg { width: 16px; height: 16px; }
.ch-btn:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ch-btn.fill { background: var(--accent); color: var(--on-accent); }
.ch-btn.fill:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
.ch-btn.quiet { border-color: var(--line); color: var(--text-2); }
.ch-btn:disabled { opacity: .55; cursor: default; }
.ch-list { display: flex; flex-direction: column; gap: 10px; }
.ch-item { display: flex; align-items: center; gap: 10px; padding: 7px 6px 7px 18px; /* thinner cards (Emilian, 2026-10-02) */ border: 1px solid var(--line); border-radius: 18px; background: var(--card); }
.ch-item.open { border-color: var(--accent); }
.ch-open { flex: 1; min-width: 0; text-align: left; background: transparent; border: 0; padding: 0; color: var(--text); cursor: pointer; font: inherit; -webkit-tap-highlight-color: transparent; }
.ch-name { display: block; font-family: var(--f-display); font-size: 21px; font-weight: 500; line-height: 1.15; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-top { display: flex; align-items: center; gap: 12px; min-width: 0; }
.ch-top .ch-name { min-width: 0; }
.b3-row { flex: none; display: inline-flex; align-items: center; gap: 10px; }
.b3 { display: inline-flex; align-items: center; gap: 1px; }
.b3 svg { display: block; }
.b3-s { width: 17px; height: 17px; }
/* categories (2026-10-02, Emilian: "saved in different categories... family charts... Friends' Charts") */
.ch-group { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); margin: 10px 0 -2px 4px; }
.ch-group:first-child { margin-top: 0; }
.ch-sec:first-child .ch-group { margin-top: 0; }
/* Moving charts by hand (2026-10-03, Emilian: "Make charts draggable, so you can change their position. Make it so you can also
   easily move them into the family section"): hold a chart (0.35 s on a phone, 0.28 s with a mouse), it lifts, follow the finger;
   the others make room; empty Family and Friends sections open up while moving, so a chart can be dropped into them */
.ch-sec { display: flex; flex-direction: column; gap: 10px; }
/* folders in the Charts list (2026-10-05, Emilian): a card per folder, same shape as a chart card */
.ch-folder { display: flex; align-items: center; gap: 14px; width: 100%; min-height: 52px; padding: 8px 14px 8px 18px; border: 1px solid var(--line);
  border-radius: 18px; background: var(--card); color: var(--text); font: inherit; text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-fico { flex: none; width: 22px; height: 22px; color: var(--accent); }
.ch-fname { flex: 1; min-width: 0; font-family: var(--f-display); font-size: 21px; font-weight: 500; line-height: 1.15; }
.ch-fcount { font-size: 14px; color: var(--text-3); font-variant-numeric: tabular-nums; }
.ch-fback { display: inline-flex; align-items: center; gap: 6px; align-self: flex-start; margin: 0 0 2px -4px; padding: 6px 8px 6px 4px; border: 0; background: transparent;
  color: var(--text); font-family: var(--f-display); font-size: 22px; font-weight: 500; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-fback svg { width: 16px; height: 16px; color: var(--accent); }
.ch-fbk { display: inline-grid; place-items: center; padding: 4px; border: 0; background: transparent; color: inherit; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-fn { cursor: pointer; }
/* folder cards with a small chart (2026-10-09, Emilian) */
#chItems .ch-item.rich { min-height: 0; }
#chItems .ch-item.rich .ch-open { display: grid !important; grid-template-areas: "v" "n" "b" "q"; justify-items: center; align-items: start !important; align-content: start !important; justify-content: stretch !important; gap: 4px; padding: 12px 8px 12px !important; text-align: center !important; min-height: 0; }
#chItems .ch-item.rich .mw { grid-area: w; width: 76px; height: 76px; margin-bottom: 4px; }
#chItems .ch-item.rich .mw > svg { width: 100%; height: 100%; display: block; overflow: visible; }
#chItems .ch-item.rich .mw-o { fill: none; stroke: var(--ring, var(--line)); stroke-width: 1; }
#chItems .ch-item.rich .mw-i { fill: none; stroke: var(--ring-2, var(--line)); stroke-width: .8; }
#chItems .ch-item.rich .mw-t { stroke: var(--ring-2, var(--line)); stroke-width: .7; }
#chItems .ch-item.rich .mw-h { stroke: var(--accent); stroke-width: 1.1; }
#chItems .ch-item.rich .mw-m { stroke-width: .8; opacity: .7; }
#chItems .ch-item.rich .mw-c { stroke: var(--ring-2, var(--line)); stroke-width: .7; }
#chItems .ch-item.rich .mw .pg { stroke-width: 1.9; }
#chItems .ch-item.rich .ch-top { grid-area: n; justify-content: center; }
#chItems .ch-item.rich .ch-name { font-size: 16px; }
#chItems .ch-item.rich .ch-svw { grid-area: v; display: block; height: 92px; margin: -2px -2px 6px; border-radius: 10px; overflow: hidden;
  -webkit-mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); mask-image: radial-gradient(ellipse 72% 70% at 50% 50%, #000 62%, transparent 100%); }
#chItems .ch-item.rich .ch-svw:has(.whole) { -webkit-mask-image: none; mask-image: none; }
#chItems .ch-item.rich .ch-svw .ch-cut { display: block; width: 100%; height: 100%; pointer-events: none; }
#chItems .ch-item.rich .ch-stand { grid-area: q; margin-top: 6px; font: italic 500 15px/1.25 'EB Garamond', var(--f-num, serif); color: var(--accent); text-wrap: balance; }
#chItems .ch-item.rich .ch-born { grid-area: b; font-size: 11.5px; line-height: 1.3; color: var(--muted); max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.ch-fren { display: inline-grid; place-items: center; width: 26px; height: 26px; padding: 0; border: 0; background: transparent; color: var(--accent); cursor: pointer; opacity: 0; transition: opacity .18s cubic-bezier(.32,.72,0,1); }
.ch-fren svg { width: 14px; height: 14px; }
.ch-fback:hover .ch-fren, .ch-fren:focus-visible { opacity: .85; }
.ch-fback:has(input) .ch-fren { opacity: 0; pointer-events: none; }
/* the + beside the chart tabs is gone, on computers and phones (2026-10-30 16:33); the next chart is added from the last tab's menu */
html body :is(#csPlus, #csPlus3) { display: none !important; }
html body #csLow:not(:has(#csThird:not([hidden]))) { display: none !important; }
/* the More menu's group names (2026-10-30) */
#moreMenu .mm-cat { margin: 6px 4px 8px; font: 400 22px/1.2 'EB Garamond', Cormorant, serif; color: var(--text); opacity: .82; }   /* larger (2026-11-14 12:45, Emilian: "Make headings inside more menu larger"; was 16px) */
#moreMenu .mm-catg + .mm-catg { margin-top: 10px; }
/* a folder's Icon and Delete under its name, and the icon library (2026-10-30) */
.ch-fopts { display: flex; gap: 10px; margin: 0 0 10px; grid-column: 1 / -1; }
.ch-fopt { display: inline-flex; align-items: center; gap: 8px; height: 38px; padding: 0 14px 0 10px; border: 0; border-radius: 12px; background: color-mix(in srgb, var(--zs-menu, var(--card)) 78%, var(--zs-lift, #fff)); color: var(--text); font: 17px/1 'EB Garamond', Cormorant, serif; cursor: pointer;
  box-shadow: inset 0 1px 0 var(--zs-rim, rgba(255,255,255,.6)), 0 1px 2px rgba(0,0,0,.12); transition: background .15s cubic-bezier(.32,.72,0,1); }
.ch-fopt .ch-tico { width: 22px; height: 22px; color: var(--accent); }
.ch-fopt.ch-fdel { padding-left: 14px; } .ch-fopt.ch-fdel.sure { color: var(--rx, #c0392b); }
:root[data-theme="dark"] .ch-fopt { background: color-mix(in srgb, var(--zs-menu, var(--card)) 88%, var(--zs-lift, #fff)); box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.45); }
.ch-ficons { display: grid; grid-template-columns: repeat(8, 1fr); gap: 6px; margin: 0 0 14px; grid-column: 1 / -1; }
.ch-ficons[hidden] { display: none; }
.ch-fpick { display: grid; place-items: center; aspect-ratio: 1; padding: 0; border: 1px solid transparent; border-radius: 10px; background: transparent; color: var(--accent); cursor: pointer; transition: background .15s cubic-bezier(.32,.72,0,1); }
.ch-fpick .ch-tico { width: 26px; height: 26px; }
.ch-fpick:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ch-fpick.on { border-color: color-mix(in srgb, var(--accent) 70%, transparent); background: color-mix(in srgb, var(--accent) 12%, transparent); }
#chItems .ch-addw { display: flex; flex-direction: row; align-items: center; gap: 8px; margin-top: 16px; }   /* flush left; the options open to the right of the plus (2026-10-09, Emilian) */   /* flush left (2026-10-09, Emilian) */
#chItems .ch-addm { display: flex; flex-wrap: nowrap; justify-content: flex-start; gap: 6px; max-width: 0; overflow: hidden; opacity: 0; transform: translateX(-8px);
  transition: max-width .3s cubic-bezier(.32,.72,0,1), opacity .3s cubic-bezier(.32,.72,0,1), transform .3s cubic-bezier(.32,.72,0,1); }
#chItems .ch-addw.open .ch-addm { max-width: none; flex-wrap: wrap; opacity: 1; transform: none; }   /* always open now, wrapping on narrow screens (2026-10-21) */
/* solid buttons, the app's filled button (2026-10-21, Emilian: "make these into buttons"); they were outlined pills */
#chItems .ch-addo { flex: none; white-space: nowrap; display: inline-flex; align-items: center; gap: 7px; height: 36px; padding: 0 15px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent); cursor: pointer; font: inherit; transition: background .2s, border-color .2s; }
#chItems .ch-addo:hover { background: var(--accent-hover); border-color: var(--accent-hover); }
#chItems .ch-addo:active { transform: translateY(1px); }
#chItems .ch-addo b { font: 600 15px/1 Cormorant, serif; }
#chItems .ch-addo svg { width: 14px; height: 14px; flex: none; }
#chItems .ch-addo.ch-tnew svg.ch-tico { width: 16px !important; height: 16px !important; filter: none; }
html:root body #charts #chItems .ch-addo svg, html:root[data-theme] body #charts #chItems .ch-addo svg.ch-tico { color: var(--on-accent); }
#chItems .ch-addo .ch-fn-in { border-bottom-color: var(--on-accent); }
#chItems .ch-addo .ch-fn-in::placeholder { color: color-mix(in srgb, var(--on-accent) 60%, transparent); }
#chItems .ch-addo .ch-fn-in { width: 9ch; font: 600 15px/1 Cormorant, serif; color: var(--on-accent); background: transparent; }
@media (prefers-reduced-motion: reduce) { #chItems :is(.ch-addm, .ch-addb svg) { transition: none; } }
/* the three share the row evenly, the same gap and corners as the boxes above (2026-10-21 21:33, Emilian: "make them fit the rest of
   the buttons as well, space them so they fit the space the same way") */
#chItems .ch-addw.open .ch-addm { flex: 1; min-width: 0; flex-wrap: nowrap; gap: 12px; }
#chItems .ch-addw.open .ch-addo { flex: 1 1 0; min-width: 0; justify-content: center; padding: 0 10px; }
@media (min-width: 761px) {
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw { margin-top: 0; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo { height: 60px; border-radius: 18px; gap: 9px; }
  /* in the folder boxes' own look (2026-10-22 11:17, Emilian: "Make these fit the visual style above"): the panel's colour, the boxes'
     edge, words in the text colour, icons gold; were solid gold */
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo { background: transparent !important; color: var(--text) !important;
    border: 1px solid var(--zs-bar-edge, rgba(160,130,80,.45)) !important; }
  html:root[data-theme="dark"]:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo { border-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 45%, transparent) !important; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo b { font: 500 22px/1 Cormorant, serif !important; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo svg, html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo svg.ch-tico { color: var(--zs-gold, var(--accent)) !important; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo .ch-fn-in { color: var(--text) !important; border-bottom-color: var(--zs-gold, var(--accent)) !important; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo .ch-fn-in::placeholder { color: var(--text-3) !important; }
  /* raised, not outlined (2026-10-22 13:14, Emilian: "the buttons need to somehow stand out more, maybe be raised"): your chart, each
     folder and the three buttons sit a step lighter than the panel on a soft shadow, with a lit top edge, like the top strip; doubled #charts so it outranks the bordered-box rule further down, which had been winning
     (2026-10-22 14:10, Emilian: "all these buttons should stand out, maybe be raised?") */
  html:root:not(.app):not(.embed) body #charts#charts #chItems :is(.ch-hero:not(.add), .ch-tiles:not(.ch-tiles3) > .ch-tile:not(.new), .ch-addw.open .ch-addo) {
    border-color: transparent !important; background: color-mix(in srgb, var(--zs-menu, var(--card)) 78%, var(--zs-lift, #fff)) !important;
    box-shadow: inset 0 1px 0 var(--zs-rim, rgba(255,255,255,.6)), 0 1px 2px rgba(60,40,10,.10), 0 6px 16px rgba(60,40,10,.12) !important; transition: box-shadow .2s, transform .2s, background .2s; }
  html:root[data-theme="dark"]:not(.app):not(.embed) body #charts#charts #chItems :is(.ch-hero:not(.add), .ch-tiles:not(.ch-tiles3) > .ch-tile:not(.new), .ch-addw.open .ch-addo) {
    background: color-mix(in srgb, var(--zs-menu, var(--card)) 88%, var(--zs-lift, #fff)) !important;
    box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 2px 4px rgba(0,0,0,.45), 0 8px 20px rgba(0,0,0,.5) !important; }
  html:root:not(.app):not(.embed) body #charts#charts #chItems :is(.ch-hero:not(.add), .ch-tiles:not(.ch-tiles3) > .ch-tile:not(.new), .ch-addw.open .ch-addo):hover { transform: translateY(-1px); }
  /* the row holding New chart, New folder and Import clipped their shadows at the bottom (it hides overflow for its old fold; 2026-10-22 15:22,
     Emilian: "these are cut off at the bottom, fix") */
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addm { overflow: visible !important; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo:hover { background: color-mix(in srgb, var(--zs-gold, #b89a5e) 10%, transparent) !important; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo b { font-size: 21px; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo svg { width: 17px; height: 17px; }
  html:root:not(.app):not(.embed) body #charts #chItems .ch-addw.open .ch-addo.ch-tnew svg.ch-tico { width: 20px !important; height: 20px !important; }
}
#chItems .ch-tnew svg.ch-tico { width: 22px !important; height: 22px !important; filter: none; }
#chItems .ch-tnew .ch-fn-in { width: 100%; min-width: 0; font: inherit; }
.ch-fn-in { font: inherit; color: inherit; background: transparent; border: 0; border-bottom: 1px solid var(--accent); padding: 0; margin: 0; width: 14ch; outline: none; }
.ch-sec.empty { display: none; }
.ch-list.dragging .ch-sec.empty { display: flex; }
.ch-list:not(.dragging) .ch-group.solo { display: none; }
.ch-drop { display: none; margin: 0; padding: 12px; border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); border-radius: 18px;
  text-align: center; font-size: 14px; color: var(--accent); }
.ch-list.dragging .ch-sec.empty .ch-drop { display: block; }
.ch-list.dragging .ch-sec.empty.hold .ch-drop { display: none; }
.ch-item { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.ch-item.ch-ph { border: 1.5px dashed color-mix(in srgb, var(--accent) 55%, transparent); background: transparent; }
.ch-item.ch-ph > * { visibility: hidden; }
.ch-ghost { position: fixed; z-index: 80; margin: 0; pointer-events: none; box-shadow: 0 14px 34px rgba(0,0,0,.22), 0 3px 8px rgba(0,0,0,.12);
  border-color: var(--accent) !important; transform-origin: 50% 50%; will-change: transform; }
.ch-list.dragging .ch-group { color: var(--text-2); }
.ch-hint { margin: -4px 0 0; text-align: center; font-size: 13px; color: var(--text-3); }
.ch-cats { display: flex; flex-wrap: wrap; gap: 8px; }
.ch-cats button { min-height: 40px; padding: 0 16px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font: 500 15px var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-cats button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.pw-wrap { position: relative; display: block; }
.pw-wrap input { padding-right: 52px !important; }
.pw-eye { position: absolute; right: 4px; top: 50%; transform: translateY(-50%); width: 44px; height: 44px; border: 0; background: transparent;
  color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.pw-eye svg { width: 20px; height: 20px; }
.pw-eye[aria-pressed="true"], .pw-eye:hover { color: var(--accent); }
/* Import from Astro Gold (2026-10-03, Emilian): a quiet link under New chart */
.ch-import { display: block; margin: 14px auto 0; padding: 8px 12px; border: 0; background: transparent; color: var(--text-3); font: 500 14px var(--f-body);
  text-decoration: underline; text-underline-offset: 3px; text-decoration-color: color-mix(in srgb, currentColor 40%, transparent); cursor: pointer; }
.ch-import:hover { color: var(--accent); }
.ch-import[hidden] { display: none !important; }
.ch-import-msg { margin: 6px 0 0; text-align: center; color: var(--text-2); font-size: 14px; line-height: 1.45; }
.ch-import-msg:empty { display: none; }
.ch-empty { text-align: center; color: var(--text-3); padding: 28px 10px 10px; font-size: 15px; line-height: 1.5; }
#chItems .ch-emptyadd { grid-column: 1 / -1; display: flex; justify-content: center; margin: 14px 0 4px; }
.ch-form { display: flex; flex-direction: column; gap: 16px; }
.ch-field { display: flex; flex-direction: column; gap: 7px; min-width: 0; }
.ch-label { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.ch-form input[type="text"], .ch-form input[type="date"], .ch-form input[type="time"], .ch-form input[type="search"] {
  min-height: 48px; width: 100%; min-width: 0; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card);
  color: var(--text); font: 16px var(--f-body); -webkit-appearance: none; appearance: none; }
.ch-form input:focus { outline: none; border-color: var(--accent); }
.ch-form input:disabled { opacity: .45; }
:root[data-theme="dark"] .ch-form input { color-scheme: dark; }
.ch-row2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.ch-dmy { display: grid; grid-template-columns: 1fr 1.6fr 1.2fr; gap: 10px; }
.ch-check { display: flex; align-items: center; gap: 9px; font-size: 15px; color: var(--text-2); cursor: pointer; }
.ch-check input { width: 18px; height: 18px; accent-color: var(--accent); margin: 0; }
.ch-place { display: flex; align-items: center; gap: 10px; min-height: 48px; padding: 0 6px 0 14px; border: 1px solid var(--accent); border-radius: 12px; background: var(--card); }
.ch-place[hidden] { display: none; }
.ch-place span { flex: 1; min-width: 0; font-size: 16px; }
.ch-place small { display: block; font-size: 13px; color: var(--text-3); }
.ch-place button { border: 0; background: transparent; color: var(--accent); font: 600 14px var(--f-body); padding: 8px 10px; cursor: pointer; }
.ch-results { display: flex; flex-direction: column; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; background: var(--card); }
.ch-results:empty { display: none; }
.ch-results button { display: flex; flex-direction: column; align-items: flex-start; gap: 1px; border: 0; border-top: 1px solid var(--line); padding: 10px 14px;
  background: transparent; color: var(--text); text-align: left; cursor: pointer; font: 15px var(--f-body); }
.ch-results button:first-child { border-top: 0; }
.ch-results button span { font-size: 13px; color: var(--text-3); }
.ch-results button:hover { background: var(--bg-alt); }
.ch-hint { font-size: 13px; color: var(--text-3); margin: 0; }
.ch-store { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.ch-store button { min-height: 48px; border-radius: 10px; border: 1px solid var(--line); background: transparent; color: var(--text-2);
  font: 500 15px var(--f-body); display: inline-flex; align-items: center; justify-content: center; gap: 7px; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.ch-store button svg { width: 15px; height: 15px; }
.ch-store button[aria-pressed="true"] { border-color: var(--accent); color: var(--accent); background: color-mix(in srgb, var(--accent) 10%, transparent); }
.ch-store button:disabled { opacity: .5; cursor: default; }
.ch-msg { color: var(--err, var(--rx)); font-size: 14px; margin: 0; }
.ch-msg:empty { display: none; }
.ch-actions { display: flex; flex-direction: column; gap: 10px; margin-top: 4px; }
.ch-delete { border: 0; background: transparent; color: var(--err, var(--rx)); font: 500 15px var(--f-body); padding: 10px; cursor: pointer; }

/* Phones and the app: the time bar is one strip like the tab bar at the bottom: no circles or outlines, just plain icons and
   words in the bar (Emilian, 2026-10-02). Order: back · date/time · forward · step size (gold word) · search · Now. */
@media (max-width: 760px) {
.timebar { background: color-mix(in srgb, var(--card) 92%, transparent) !important; border-bottom: 1px solid var(--line) !important;
  display: flex !important; flex-wrap: nowrap !important; align-items: center; justify-content: space-between; column-gap: 0 !important;
  padding: calc(6px + var(--sat)) 6px 6px !important; }
.timebar::after { display: none; }
html:root .timebar .step, html:root .timebar .icon-btn, html:root .timebar .now, html:root .timebar .units button[aria-pressed] {
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 10px !important; transform: none !important;
  width: auto !important; min-width: 44px; height: 46px !important; min-height: 46px !important; padding: 0 8px !important; color: var(--text-3) !important; }
html:root .timebar .step svg, html:root .timebar .icon-btn svg { width: 22px; height: 22px; }
html:root .timebar .units button[aria-pressed="true"] { color: var(--accent) !important; font-weight: 600; font-size: 15px; }
html:root .timebar .now { color: var(--accent) !important; font-size: 14px !important; font-weight: 600; }
html:root .timebar .now[data-off] { visibility: hidden; opacity: 0; margin: 0 !important; }
html:root .timebar .now { min-width: 52px !important; max-width: none !important; transition: opacity .3s !important; }
html:root .timebar .step:active, html:root .timebar .icon-btn:active, html:root .timebar .now:active, html:root .timebar .units button:active { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
.timebar .when { flex: 1 1 0; min-width: 0; font-size: 15.5px; }
html:root .timebar .units[data-open="true"] { background: var(--card) !important; border: 1px solid var(--line); border-radius: 14px !important; padding: 2px; gap: 0; }
}

.app .timebar { background: color-mix(in srgb, var(--card) 92%, transparent) !important; border-bottom: 1px solid var(--line) !important;
  display: flex !important; flex-wrap: nowrap !important; align-items: center; justify-content: space-between; column-gap: 0 !important;
  padding: calc(6px + var(--sat)) 6px 6px !important; }
.app .timebar::after { display: none; }
html:root .app .timebar .step, html:root .app .timebar .icon-btn, html:root .app .timebar .now, html:root .app .timebar .units button[aria-pressed] {
  background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 10px !important; transform: none !important;
  width: auto !important; min-width: 44px; height: 46px !important; min-height: 46px !important; padding: 0 8px !important; color: var(--text-3) !important; }
html:root .app .timebar .step svg, html:root .app .timebar .icon-btn svg { width: 22px; height: 22px; }
html:root .app .timebar .units button[aria-pressed="true"] { color: var(--accent) !important; font-weight: 600; font-size: 15px; }
html:root .app .timebar .now { color: var(--accent) !important; font-size: 14px !important; font-weight: 600; }
html:root .app .timebar .now[data-off] { visibility: hidden; opacity: 0; margin: 0 !important; }
html:root .app .timebar .now { min-width: 52px !important; max-width: none !important; transition: opacity .3s !important; }
html:root .app .timebar .step:active, html:root .app .timebar .icon-btn:active, html:root .app .timebar .now:active, html:root .app .timebar .units button:active { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
.app .timebar .when { flex: 1 1 0; min-width: 0; font-size: 15.5px; }
html:root .app .timebar .units[data-open="true"] { background: var(--card) !important; border: 1px solid var(--line); border-radius: 14px !important; padding: 2px; gap: 0; }


/* Strip: Day and Now the same size and on the same line (Emilian, 2026-10-02) */
@media (max-width: 760px) { .timebar .units-slot { height: 46px !important; } html:root .timebar .now, html:root .timebar .units button[aria-pressed="true"] { font-size: 15px !important; line-height: 1 !important; } }
.app .timebar .units-slot { height: 46px !important; }
html:root .app .timebar .now, html:root .app .timebar .units button[aria-pressed="true"] { font-size: 15px !important; line-height: 1 !important; }

/* Phones and the app: the clock screen is locked between the top strip and the bottom menu (Emilian, 2026-10-02: "I should
   not be able to scroll"). The page itself never scrolls; the clock sits exactly midway. Only the aspects list, when opened
   from the tab bar, scrolls inside that space. Bar heights are measured into --tb-h and --tab-h. */
@media (max-width: 760px) {
html, body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.main { position: fixed; left: 0; right: 0; top: var(--tb-h, 64px); bottom: var(--tab-h, 70px); margin: 0 !important; max-width: none !important;
  padding: 0 !important; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: center; }
.main:has(.panel.asp-shown) { align-content: start; }
.main .wheel { margin: 0 !important; }
}
html.app, html.app body { height: 100%; overflow: hidden; overscroll-behavior: none; }
.app .main { position: fixed; left: 0; right: 0; top: var(--tb-h, 64px); bottom: var(--tab-h, 70px); margin: 0 !important; max-width: none !important;
  padding: 0 !important; overflow-y: auto; overscroll-behavior: contain; display: grid; align-content: center; }
.app .main:has(.panel.asp-shown) { align-content: start; }
/* The chart sits close under the top menu, and the chart lines (Transits, names, plus) sit just above the bottom menu
   (2026-10-03, Emilian: "Bring Chart up close to the top menu. Move Chart buttons just above bottom menu"). */
@media (max-width: 760px) { html:not(.embed) .main { align-content: start; padding-top: 6px !important; } }
html.app:not(.embed) .main { align-content: start; padding-top: 6px !important; }
/* then (14:15, Emilian, once Transits under the chart was gone): the chart back in the middle, a little above true centre,
   where the eye rests; the extra room below pushes it up by about 7% of the screen */
@media (max-width: 760px) { html:not(.embed) .main:not(:has(.panel.asp-shown)) { align-content: center; padding-top: 0 !important; padding-bottom: 7vh !important; } }
html.app:not(.embed) .main:not(:has(.panel.asp-shown)) { align-content: center; padding-top: 0 !important; padding-bottom: 7vh !important; }
/* then (14:24, Emilian: "Bring the chart slightly higher. Should not have too big a distance from the menu at the top"): the chart
   starts a short, even distance under the top menu (about 4% of the screen, 16–40px) instead of near the middle */
@media (max-width: 760px) { html:not(.embed) .main:not(:has(.panel.asp-shown)) { align-content: start; padding-top: clamp(18px, 4.5vh, 42px) !important; padding-bottom: 0 !important; } }
html.app:not(.embed) .main:not(:has(.panel.asp-shown)) { align-content: start; padding-top: clamp(18px, 4.5vh, 42px) !important; padding-bottom: 0 !important; }
/* while the screen is down in the aspects, the chart lines at the bottom fade away so they never sit over the list */
@media (max-width: 760px) { html:not(.embed) .sky-line, html:not(.embed) #chartBar { transition: opacity .32s cubic-bezier(.32,.72,0,1); }
  html:has(.panel.asp-shown) .sky-line, html:has(.panel.asp-shown) #chartBar { opacity: 0; pointer-events: none; } }
html.app:not(.embed) .sky-line, html.app:not(.embed) #chartBar { transition: opacity .32s cubic-bezier(.32,.72,0,1); }
html.app:has(.panel.asp-shown) .sky-line, html.app:has(.panel.asp-shown) #chartBar { opacity: 0; pointer-events: none; }
.app .main .wheel { margin: 0 !important; }

/* The open chart's name and details: just the text, flush left, near the top and away from the wheel (Emilian, 2026-10-02).
   No pill around it; the small × to close the chart stays right after the text. */
.chart-bar { justify-content: flex-start !important; max-width: none !important; margin: 4px 0 14px !important; padding: 0 8px !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; gap: 6px !important; }
.chart-bar .cb-text { flex: 0 1 auto; text-align: left; }
.chart-bar .cb-close { width: 28px; height: 28px; border: 0 !important; background: transparent !important; }
@media (max-width: 760px) {
  .chart-bar { position: fixed; z-index: 35; top: calc(var(--tb-h, 64px) + 6px); left: 16px; right: 16px; margin: 0 !important; padding: 0 !important; }
  .chart-bar .cb-text { white-space: normal; }
}
.app .chart-bar { position: fixed; z-index: 35; top: calc(var(--tb-h, 64px) + 6px); left: 16px; right: 16px; margin: 0 !important; padding: 0 !important; }

/* SKYBTN */
/* Phones and the app: "Transits" at the top left says the transit chart (the sky now) is open; tapping it opens a menu to
   put a saved chart or a new chart there instead (2026-10-03, Emilian). Same place and style as an open chart's name. */
.sky-line { display: none; }
@media (max-width: 760px) { html:not(.embed) .sky-line { display: flex; } }
html.app:not(.embed) .sky-line { display: flex; }
.sky-line { position: fixed; z-index: 35; top: calc(var(--tb-h, 64px) + 6px); left: 16px; flex-direction: column; align-items: flex-start; }
/* the small gold plus under "Transits" (2026-10-03, Emilian), same as the one under an open chart's name */
.sky-add { width: 28px; height: 28px; margin: 0 0 0 -8px; padding: 0; display: grid; place-items: center; border: 0 !important;
  background: transparent !important; box-shadow: none !important; color: var(--accent); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.sky-add svg { width: 13px; height: 13px; }
.sky-btn { margin: 0; padding: 0 0 2px;
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
  font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--text); cursor: pointer; }
html:has(#chartBar:not([hidden])) .sky-line, html:has(#findPanel:not([hidden])) .sky-line, html:has(.pl-menu:not([hidden])) .sky-line { display: none !important; }

/* Light mode: no card behind the wheel (2026-10-02, Emilian: "remove the white square background behind the chart");
   the wheel sits straight on the page background, as in dark mode. */
:root:not([data-theme="dark"]) .wheel { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
/* Light/dark: the whole screen cross-fades as one picture over 4 seconds */
/* (the 5 s cross-fade of 2026-10-03 is gone: 2026-11-21, Emilian: "sometimes it remembers the old way of fading in and out, so that
   should be altogether removed". It was the default for every whole-screen view transition, so a second tap during the circle, or the
   Sun's own change, fell back to it. Every light/dark change is now the circle below.) */
/* while the circle runs nothing in the page eases: the new look is there at once inside the circle, crisp (before, every colour
   faded from day to night inside it, the old fade showing through, and repainted each frame: 2026-11-21, "not smooth") */
html.theme-reveal *, html.theme-reveal *::before, html.theme-reveal *::after { transition: none !important; }
/* Settings closing inside the light/dark fade: its opening played backwards (0.32 s), the dimmed backdrop fading with it */
/* a picked look: the circle from the tap (zsTheme reveal), no cross-fade under it; going back to light the dark picture sits on top and shrinks */
html.theme-reveal::view-transition-old(root), html.theme-reveal::view-transition-new(root) { animation: none !important; mix-blend-mode: normal; }
html.theme-reveal::view-transition-new(root) { z-index: 1; }
/* going to dark the new page starts as a dot at the tap: without this it showed whole for a frame before the circle's
   animation began, so the screen went dark first and then rippled (2026-11-20 20:58, Emilian: "it instantly goes dark") */
html.theme-reveal:not(.theme-reveal-out)::view-transition-new(root) { clip-path: circle(0px at var(--rv-x, 50vw) var(--rv-y, 50vh)); }
html.theme-reveal.theme-reveal-out::view-transition-old(root) { z-index: 2; }
/* the ripple rings (reveal in the theme script): soft accent rings, their own layers, only scaled and faded */
.zs-rip { position: fixed; border-radius: 50%; pointer-events: none; z-index: 2147483000; transform: scale(0); opacity: 0; will-change: transform, opacity;
  /* one wave seen side-on: the shaded trough, then the lit crest, then a soft spill of light (light from outside the circle) */
  background: radial-gradient(circle closest-side at 50% 50%, transparent 89%, rgba(0,0,0,.20) 94.5%,
    color-mix(in srgb, color-mix(in srgb, var(--accent) 40%, #fff) 88%, transparent) 98%, transparent 100%); }
::view-transition-group(zs-sheet), ::view-transition-group(zs-back) { animation: none; }
::view-transition-old(zs-sheet) { animation: zsSheetOut .32s cubic-bezier(.64,0,.78,.39) both; /* the opening curve played backwards */ }
::view-transition-old(zs-back) { animation: zsBackOut .32s ease-in both; }
@keyframes zsSheetOut { to { opacity: 0; transform: translateY(14px) scale(.94); } }
@keyframes zsBackOut { to { opacity: 0; } }

/* Everything appears gently (Emilian, 2026-10-02: "everything should move smoothly and gently, no harsh movements"):
   menus, panels, the aspects list, toasts and banners fade and rise in softly instead of popping. */
@keyframes gentleIn { from { opacity: 0; transform: translateY(6px); } to { opacity: 1; transform: none; } }
@keyframes gentleFade { from { opacity: 0; } to { opacity: 1; } }
.pop-menu:not([hidden]), .find-panel:not([hidden]), .tab-toast:not([hidden]), .install-banner:not([hidden]), .chart-bar:not([hidden]), .panel.asp-shown,
.loc-list button, .desc-card { animation: gentleIn .32s cubic-bezier(.32,.72,0,1) both; }
.desc-veil, .charts:not([hidden]), .install-sheet:not([hidden]) { animation: gentleFade .32s cubic-bezier(.32,.72,0,1) both; }
/* Computers: the city list and the location menu appear at once, no fade (Emilian, 2026-10-02: "slow to open, make it instant") */
@media (min-width: 761px) { html:not(.app) .loc-list button, html:not(.app) .loc-menu, html:not(.app) .welcome-loc .loc-list button { animation: none !important; } }
@media (prefers-reduced-motion: reduce) { .pop-menu, .find-panel, .tab-toast, .install-banner, .chart-bar, .panel, .loc-list button, .desc-card, .desc-veil, .charts, .install-sheet { animation: none !important; } }

/* Small phones (≤374px, e.g. iPhone SE, 360px Androids): date and time still on one line; slimmer buttons, the date a touch smaller */
@media (max-width: 374px) {
  .timebar .when { font-size: 14.5px !important; padding-inline: 0 !important; }
}
@media (max-width: 340px) { .timebar .when { font-size: 13.5px !important; } }
@media (max-width: 374px) {
  html:root .timebar .step, html:root .timebar .icon-btn, html:root .timebar .units button[aria-pressed] { min-width: 34px !important; padding: 0 4px !important; }
  html:root .timebar .now { min-width: 40px !important; padding: 0 4px !important; }
}


/* Thinner chart cards (Emilian, 2026-10-02): small borderless pencil, tighter padding */
.ch-item { padding: 4px 4px 4px 18px !important; min-height: 46px; }
.ch-item .ch-x { width: 36px !important; height: 36px !important; border: 0 !important; }
.ch-item .ch-x svg { width: 16px; height: 16px; }
/* shorter name cards, two to a row like the folders, no pencil (2026-10-05, Emilian: "Name cards are too long... shorten them
   somehow. remove the pencil"); editing is on the chart card (tap a name) */
#chItems .ch-sec { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
#chItems .ch-sec > .ch-group, #chItems .ch-sec > .ch-drop, #chItems .ch-sec > .ch-empty { grid-column: 1 / -1; }
#chItems .ch-sec.empty { display: none; }
#chItems.dragging .ch-sec.empty { display: grid; }   /* the other folders show only while a chart is held */
/* while a chart is held, only the folders show (2026-10-05, Emilian: "When you hold a chart card in the charts section, make all
   other names disappear and just the files tabs appear below"; "Make the folder buttons that appear look the same as they do on
   the charts page"): the cards, your own chart, the hint and the buttons under the list step away; the folders appear as the
   Charts page's tiles, two to a row in the same order; the folder the chart is over lights up in gold */
#chItems .ch-drop.ch-folder { display: none; cursor: default; }
#chItems.dragging { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; align-content: start; }
#chItems.dragging > .ch-fback { grid-column: 1 / -1; order: -1; }
#chItems.dragging .ch-sec { display: block !important; order: var(--fo, 0); }
#chItems.dragging .ch-item, #chItems.dragging .ch-sec[data-me], #chItems.dragging .ch-empty, #chItems.dragging .ch-group { display: none !important; }
#chItems.dragging .ch-drop.ch-folder { display: flex; flex-direction: column; align-items: flex-start; justify-content: space-between; gap: 6px;
  min-height: 108px; padding: 16px 16px 14px; margin: 0; border: 1px solid var(--line); border-style: solid; text-align: left;
  color: var(--text); font: inherit; letter-spacing: normal; text-transform: none; background: var(--card);
  transition: border-color .18s, background-color .18s, transform .18s; }
#chItems.dragging .ch-drop.ch-folder .ch-fico { width: 30px; height: 30px; filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.18)); }
html:root[data-theme="dark"] body #charts .ch-drop .ch-tico { --cut: #121216; }
#chItems.dragging .ch-drop.ch-folder .ch-fname { flex: none; width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; margin-top: auto; }
#chItems.dragging .ch-drop.ch-folder .ch-fcount { margin-top: -4px; }
#chItems.dragging .ch-sec.hold .ch-drop.ch-folder { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 12%, var(--card)); transform: scale(1.02); }
/* New chart: first a slimmer button ("new chart button is way too huge"), then a card beside your own chart at the top
   (2026-10-05, Emilian); the old button stays in the page, hidden, and the card clicks it */
html:root #chNew { display: none !important; }
#chItems .ch-newcard { display: flex; align-items: center; justify-content: center; gap: 8px; min-width: 0; min-height: 48px; padding: 4px 14px;
  border: 1px solid color-mix(in srgb, var(--accent) 45%, var(--line)); border-radius: 18px; background: var(--card); color: var(--accent);
  font: 600 15px var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
#chItems .ch-newcard svg { width: 14px; height: 14px; flex: none; }
/* three chart cards to a row (2026-10-07, Emilian: "Show three charts cards per row"): under each folder on the Charts page and inside a
   folder; the top row (your own chart and New chart) keeps two. Narrower cards: less padding, smaller name, the birth line on its own
   line and cut short with … when it doesn't fit */
#chItems .ch-sec:not([data-me]) { grid-template-columns: repeat(3, minmax(0, 1fr)) !important; gap: 8px !important; }
#chItems .ch-sec:not([data-me]) .ch-item { padding: 4px !important; min-width: 0; }
#chItems .ch-sec:not([data-me]) .ch-item .ch-open { padding: 4px 8px !important; }
#chItems .ch-sec:not([data-me]) .ch-item .ch-name { font-size: 15px; }
#chItems .ch-sec:not([data-me]) .ch-item :is(.ch-name, .ch-born) { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chItems .ch-sec:not([data-me]) .ch-item .ch-open { min-height: 0 !important; padding: 6px 8px !important; }
#chItems .ch-sec:not([data-me]) .ch-item { min-height: 0 !important; }
@media (hover: hover) { #chItems .ch-newcard:hover { background: color-mix(in srgb, var(--accent) 8%, var(--card)); } }

/* Charts, FOLDERS FIRST (2026-10-07, Emilian chose layout B): your chart, recently opened, folder tiles */
#chItems .ch-hero { display: block; padding: 0 !important; border-radius: 20px; border: 1px solid var(--line); background: var(--card); box-shadow: 0 1px 2px rgba(60,40,10,.05), 0 6px 18px rgba(60,40,10,.06); margin-bottom: 4px; overflow: hidden; }
#chItems .ch-hero .ch-open { display: flex !important; flex-direction: row !important; justify-content: flex-start !important; align-items: center !important; gap: 14px !important; width: 100%; padding: 12px 14px !important; background: none !important; border: 0 !important; text-align: left; min-height: 0 !important; color: inherit; }
#chItems .ch-hwheel { flex: none; width: 84px; height: 84px; display: block; margin-right: 10px; }
#chItems .ch-hwheel svg { width: 100%; height: 100%; display: block; }
#chItems .ch-htext { display: flex; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; flex: 1; }
#chItems .ch-htext .ch-name { font: 600 24px/1.05 Cormorant, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chItems .ch-htext small { font: 400 13.5px/1.3 "EB Garamond", serif; color: var(--muted); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chItems .ch-hthree { display: flex; gap: 12px; margin-top: 5px; }
#chItems .ch-hthree span { display: inline-flex; align-items: center; gap: 2px; }
#chItems .ch-hthree svg { width: 15px; height: 15px; }
#chItems .ch-hthree em { font: 600 10px/1 Karla, sans-serif; font-style: normal; letter-spacing: .06em; color: var(--muted); margin-right: 2px; }
#chItems .ch-hero.add { display: flex; align-items: center; justify-content: center; gap: 10px; width: 100%; height: 64px; padding: 0 16px; border-style: dashed; box-shadow: none; background: transparent; color: var(--accent); text-align: left; font: inherit; }
#chItems .ch-hero.add svg { width: 20px; height: 20px; flex: none; }
#chItems .ch-hero.add b { font: 600 18px/1 Cormorant, serif; }
#chItems .ch-hero.add small { display: block; font-size: 12.5px; color: var(--muted); margin-top: 2px; }
#chItems .ch-cap { margin: 18px 4px 8px; font: 700 10.5px/1 Karla, sans-serif; letter-spacing: .16em; text-transform: uppercase; color: var(--accent); }
#chItems .ch-recent { display: flex; gap: 8px; overflow-x: auto; margin: 0 -16px; padding: 2px 16px 4px; scrollbar-width: none; }
#chItems .ch-recent::-webkit-scrollbar { display: none; }
#chItems .ch-chip { flex: none; display: inline-flex; align-items: center; gap: 6px; height: 34px; padding: 0 13px; border-radius: 10px; border: 1px solid var(--line); background: var(--card); color: inherit; font: 400 15.5px/1 "EB Garamond", serif; }
#chItems .ch-chip .b3-s { width: 14px; height: 14px; }
#chItems .ch-chip .b3-row { display: inline-flex; }
#chItems .ch-tiles { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; margin-top: 18px; }
#chItems .ch-tile { display: flex; flex-direction: column; justify-content: flex-start; align-items: flex-start; gap: 8px; padding: 12px 14px 13px; border-radius: 18px; border: 1px solid var(--line); background: var(--card); color: inherit; text-align: left; font: inherit; min-width: 0;
  box-shadow: 0 1px 2px rgba(60,40,10,.05), 0 6px 18px rgba(60,40,10,.06); }
#chItems .ch-tico { width: 32px; height: 32px; color: var(--accent); filter: drop-shadow(0 1.5px 1.5px rgba(0,0,0,.18)); }
#chItems .ch-tname { display: flex; flex-direction: column; gap: 3px; min-width: 0; max-width: 100%; }
#chItems .ch-tname b { font: 600 20px/1 Cormorant, serif; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
#chItems .ch-tname small { font: 400 12px/1 Karla, sans-serif; color: var(--muted); }
#chItems .ch-tile.new { aspect-ratio: auto; height: 52px; flex-direction: row; border-style: dashed; box-shadow: none; background: transparent; align-items: center; justify-content: center; gap: 8px; color: var(--accent); border-radius: 18px; }
#chItems .ch-tile.new svg { width: 20px; height: 20px; }
#chItems .ch-tile.new b { font: 600 18px/1 Cormorant, serif; }
#chItems .ch-tile.new.imp { color: var(--muted); }
/* Charts in light mode: cards in the page's own colour, only a little lighter, edge a deeper shade of it (2026-10-07, Emilian: "The white backgrounds on the buttons are too stark contrast in charts") */
html:root:not([data-theme="dark"]) body #charts :is(.ch-hero:not(.add), .ch-tile:not(.new), .ch-chip, .ch-item, .ch-item .ch-open, .ch-folder, .ch-newcard) { background: color-mix(in srgb, var(--pgl, #f3ecdf) 72%, var(--zs-lift, #fff)) !important; border-color: color-mix(in srgb, var(--pgl, #f3ecdf) 82%, #3a2a14) !important; }
html:root:not([data-theme="dark"]) body #charts :is(.ch-hero, .ch-tile:not(.new)) { box-shadow: 0 1px 2px rgba(60,40,10,.04), 0 4px 14px rgba(60,40,10,.05) !important; }
html:root:not([data-theme="dark"]) body #charts .ch-item .ch-open { background: transparent !important; }
html:root:not([data-theme="dark"]) body #charts :is(.ch-tile.new, .ch-hero.add) { border-color: color-mix(in srgb, var(--pgl, #f3ecdf) 70%, #3a2a14) !important; }
html:root[data-theme="dark"] body #charts :is(.ch-hero:not(.add), .ch-tile:not(.new), .ch-chip) { background: color-mix(in srgb, var(--pagebg, #121216) 93%, var(--zs-gold)) !important; border-color: color-mix(in srgb, var(--zs-gold) 38%, transparent) !important; box-shadow: 0 8px 24px rgba(0,0,0,.35) !important; }
html:root[data-theme="dark"] body #charts :is(.ch-tile.new, .ch-hero.add) { border-color: color-mix(in srgb, var(--zs-gold) 45%, transparent) !important; color: var(--zs-gold); }
html:root[data-theme="dark"] body #charts .ch-tico { color: var(--zs-gold); --cut: #121216; }
html:root[data-theme="dark"] body #charts .ch-cap { color: var(--zs-gold); }
#chItems .ch-toprow { margin-bottom: 4px; }

/* the Family board (2026-10-05, Emilian: "almost like an art board where you can drag charts into it and arrange them into
   pairings and assign them titles that way") */
html:root #chRelRow { display: none !important; }   /* titles are written on the board now, not chosen in the form */
#fbx .fb-host { display: block; }
#fbx .fb { position: relative; flex: 1 1 auto; min-height: 0; margin: 0; overflow: hidden; touch-action: none;
  border: 1px solid var(--line); border-radius: 20px; background-color: color-mix(in srgb, var(--card) 70%, var(--bg));
  -webkit-user-select: none; user-select: none; cursor: grab; transition: border-color .2s; }
#fbx .fb.drop { border-color: var(--accent); }
#fbx .fb-plane { position: absolute; left: 0; top: 0; width: 0; height: 0; transform-origin: 0 0; }
#fbx .fb-lines { position: absolute; left: 0; top: 0; width: 1px; height: 1px; overflow: visible; pointer-events: none; }
#fbx .fb-lines line { stroke: var(--accent); stroke-width: 1.4; }
#fbx .fb-lines circle { fill: var(--accent); }
#fbx .fb-lines .fb-link, #fbx .fb-lines .fb-draw { fill: none; stroke: color-mix(in srgb, var(--text) 45%, transparent); stroke-width: 1.4; stroke-linecap: round; }
#fbx .fb-lines .fb-draw { stroke: var(--accent); stroke-dasharray: 4 5; }
#fbx .fb-lines .fb-link.sel { stroke: var(--accent); stroke-width: 2; }
#fbx .fb-lines .fb-hit { fill: none; stroke: transparent; stroke-width: 18; pointer-events: stroke; cursor: pointer; }
#fbx .fb-lines .fb-lx { pointer-events: all; cursor: pointer; }
#fbx .fb-lines .fb-lx circle { fill: var(--card); stroke: var(--accent); stroke-width: 1.2; }
#fbx .fb-lines .fb-lx path { stroke: var(--accent); stroke-width: 1.6; stroke-linecap: round; fill: none; }
#fbx .fb-dot { position: absolute; left: 50%; top: 49px; width: 11px; height: 11px; margin-left: -5.5px; border-radius: 50%; border: 1.5px solid var(--accent);
  background: var(--card); cursor: crosshair; touch-action: none; z-index: 1; }
#fbx .fb-dot::after { content: ""; position: absolute; inset: -13px; }   /* a 40px tap area */
#fbx .fb-card .fb-title { margin-top: 8px; }
#fbx .fb-card { position: absolute; width: 132px; display: flex; flex-direction: column; align-items: center; gap: 4px; touch-action: none; cursor: grab; }
#fbx .fb-card.lift { z-index: 5; cursor: grabbing; }
#fbx .fb-card.lift .fb-open { box-shadow: 0 14px 30px rgba(0,0,0,.22), 0 3px 8px rgba(0,0,0,.12); border-color: var(--accent); }
#fbx .fb-open { width: 100%; height: 54px; padding: 0 10px; border: 1px solid var(--line); border-radius: 14px; background: var(--card);
  box-shadow: 0 1px 3px rgba(40,28,10,.08); color: var(--text); cursor: inherit; -webkit-tap-highlight-color: transparent; }
#fbx .fb-card.me .fb-open { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 9%, var(--card)); }
#fbx .fb-card.paired .fb-open { border-color: color-mix(in srgb, var(--accent) 55%, var(--line)); }
#fbx .fb-name { display: block; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 500 17px/1.2 var(--f-display); }
#fbx .fb-title, #fbx .fb-ptitle { padding: 0 4px; border: 0; background: transparent; box-shadow: none; cursor: text; -webkit-tap-highlight-color: transparent; }
#fbx .fb-title { max-width: 132px; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 600 10.5px/1.4 var(--f-body); letter-spacing: .08em;
  text-transform: uppercase; color: var(--text-2); }
#fbx .fb-card.me .fb-title { color: var(--accent); }
#fbx .fb-title.empty, #fbx .fb-ptitle.empty { color: var(--text-3); opacity: .7; font-weight: 500; }
#fbx .fb-ptitle { position: absolute; transform: translate(-50%, -100%); white-space: nowrap; font: italic 500 17px/1.2 var(--f-display); color: var(--accent); }
#fbx .fb-ptitle.empty { font-size: 14px; }
#fbx input.fb-edit { position: static; width: 132px; padding: 2px 6px; border: 1px solid var(--accent); border-radius: 8px; background: var(--card);
  color: var(--text); text-align: center; font-size: 16px; text-transform: none; letter-spacing: 0; outline: none; }
#fbx input.fb-edit.fb-ptitle { position: absolute; width: 190px; transform: translate(-50%, -100%); font-style: italic; }
#fbx .fb-tray { display: flex; align-items: center; gap: 8px; min-height: 52px; margin-top: 10px; padding: 6px 2px; overflow-x: auto; touch-action: pan-x;
  border: 1px dashed transparent; border-radius: 16px; scrollbar-width: none; transition: border-color .2s, background-color .2s; }
#fbx .fb-tray::-webkit-scrollbar { display: none; }
#fbx .fb-tray.drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 8%, transparent); }
#fbx .fb-chip { flex: none; height: 38px; padding: 0 16px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); color: var(--text);
  font: 500 16px var(--f-display); touch-action: pan-x; cursor: grab; -webkit-user-select: none; user-select: none; }
#fbx .fb-chip.gone { opacity: .3; }
#fbx .fb-tray-tip { flex: none; padding: 0 6px; font-size: 12.5px; color: var(--text-3); white-space: nowrap; }
#fbx .fb-slot { position: absolute; width: 132px; height: 54px; border: 1.5px dashed var(--accent); border-radius: 14px; pointer-events: none;
  background: color-mix(in srgb, var(--accent) 10%, transparent); }
#fbx .fb-card.snap .fb-open { border-color: var(--accent); box-shadow: 0 0 0 3px color-mix(in srgb, var(--accent) 22%, transparent); }
#fbx .fb-card { transition: none; }
#fbx .fb-tray-tip:only-child { flex: 1; white-space: normal; text-align: center; }
.fb-ghost { position: fixed; left: 0; top: 0; z-index: 110; width: 132px; height: 54px; display: grid; place-items: center; padding: 0 10px; pointer-events: none;
  border: 1px solid var(--accent); border-radius: 14px; background: var(--card); color: var(--text); font: 500 17px var(--f-display);
  box-shadow: 0 14px 30px rgba(0,0,0,.22), 0 3px 8px rgba(0,0,0,.12); transform-origin: 50% 50%; overflow: hidden; white-space: nowrap; }
/* the board itself, grown to the whole screen */
.fbx { position: fixed; inset: 0; z-index: 95; display: flex; flex-direction: column; gap: 10px; padding: calc(var(--sat, 0px) + 14px) 14px calc(env(safe-area-inset-bottom, 0px) + 14px);
  background: var(--bg); transform-origin: 0 0; overflow: hidden; }
.fbx[hidden] { display: none; }
.fbx-head { display: flex; align-items: center; justify-content: space-between; padding: 0 4px; }
.fbx-title { margin: 0; font: 500 30px/1.1 var(--f-display); color: var(--text); }
.fbx-head .fbx-seg { margin-left: auto; margin-right: 10px; }
.fam-seg { display: inline-flex; gap: 2px; padding: 2px; border: 1px solid var(--line); border-radius: 10px; background: var(--card); }
.fam-seg button { padding: 5px 13px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2); font: 500 13px/1.2 var(--f-body); cursor: pointer; }
.fam-seg button[aria-checked="true"] { background: color-mix(in srgb, var(--accent) 20%, transparent); color: var(--text); }
#chItems > .fam-seg { grid-column: 1 / -1; justify-self: end; align-self: center; margin: -40px 2px 4px auto; }
#chItems.dragging > .fam-seg { display: none; }
.fbx-x { width: 40px; height: 40px; display: grid; place-items: center; padding: 0; border: 1px solid var(--line); border-radius: 50%; background: transparent;
  color: var(--text-2); cursor: pointer; }
.fbx-x svg { width: 15px; height: 15px; }
#fbx .fb-host { flex: 1 1 auto; min-height: 0; display: flex; flex-direction: column; }
#fbx .fb-tray { flex: none; }
#fbx .fb-host { position: relative; }
#fbx .fb-tray.empty { position: absolute; left: 8px; right: 8px; bottom: 8px; margin: 0; opacity: 0; pointer-events: none;
  background: color-mix(in srgb, var(--card) 55%, transparent); border-color: color-mix(in srgb, var(--accent) 45%, transparent); transition: opacity .2s, border-color .2s, background-color .2s; }
#fbx .fb-tray.empty.carry { opacity: 1; }
#fbx .fb-tray.empty.drop { border-color: var(--accent); background: color-mix(in srgb, var(--accent) 14%, transparent); }
#chList:has(#chItems.dragging) #chHint, #chList:has(#chItems.dragging) #chNew, #chList:has(#chItems.dragging) #chImport,
#chList:has(#chItems.dragging) #chImportMsg { visibility: hidden; }
#chItems .ch-item { min-width: 0; min-height: 48px; padding: 4px 14px !important; }
#chItems .ch-item .ch-x { display: none !important; }
#chItems .ch-item .ch-name { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
#chItems .ch-item .ch-top { min-width: 0; gap: 8px; }
#chItems .ch-item .ch-open { flex-direction: column; align-items: flex-start !important; justify-content: center; gap: 1px; padding-top: 6px; padding-bottom: 7px; text-align: left !important; }
#chItems .ch-item .ch-top { max-width: 100%; }
#chItems .ch-born { display: block; max-width: 100%; overflow: hidden; text-overflow: ellipsis; white-space: nowrap; font: 400 12px/1.3 var(--f-body);
  color: var(--text-3); }
/* swipe left for Edit and Delete (2026-10-05): the card's face slides over two small buttons */
#chItems .ch-item { position: relative; overflow: hidden; padding: 0 !important; touch-action: pan-y; }
#chItems .ch-item .ch-open { position: relative; z-index: 1; align-self: stretch; display: flex; align-items: center; min-height: 46px;
  padding: 4px 14px; background: var(--card); border-radius: inherit; will-change: transform; }
#chItems .ch-item.open .ch-open { background: var(--card); }
#chItems .ch-acts { position: absolute; top: 0; right: 0; bottom: 0; display: flex; align-items: center; gap: 5px; width: 112px; padding: 0 6px; opacity: 0; }
#chItems .ch-item:not(.swiping) .ch-acts { visibility: hidden; }
#chItems .ch-acts button { flex: 1; height: 32px; margin: 0; padding: 0; border: 0; border-radius: 10px; font: 600 12px var(--f-body); cursor: pointer;
  -webkit-tap-highlight-color: transparent; }
#chItems .ch-acts .ch-aedit { background: color-mix(in srgb, var(--accent) 28%, var(--card)); color: var(--text); }
#chItems .ch-acts .ch-adel { background: color-mix(in srgb, #c0392b 72%, var(--card)); color: #fff; }
#chItems .ch-acts .ch-adel.sure { background: #c0392b; }
.ch-ghost .ch-acts, .ch-ghost .ch-x { display: none !important; }
.ch-ghost .ch-open { transform: none !important; }
.ch-ctx { min-width: 132px; padding: 4px; border-radius: 12px; transform-origin: top left; }
.ch-ctx button { display: block; width: 100%; padding: 8px 12px; border: 0; border-radius: 8px; background: transparent; color: var(--text);
  font: 500 14px var(--f-body); text-align: left; cursor: pointer; }
.ch-ctx button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); }
html:root .ch-ctx .ch-ctx-del { color: #c0392b; }
html:root .ch-ctx .ch-ctx-del.sure { background: #c0392b; color: #fff; }
.ch-ghost.zs-press, .ch-ghost .zs-press { filter: none !important; }

/* Aspect finder: tap choices with symbols, no typing box (2026-10-02, Emilian); opens over the chart (top set by placeFind()) */
.find-panel #findQ { display: none !important; }
html:root .find-panel:not([hidden]), html:root .pl-menu:not([hidden]) { animation: none !important; }  /* slid by dropMenu() */
/* Phones and the app: the search menu is pulled down from the top strip (2026-10-03, Emilian: "pull the menu from the top
   rather than the Center"): full width, flush under the strip, sliding out from behind it, rounded only at the bottom. */
@keyframes findDrop { from { transform: translateY(-100%); opacity: 0; } to { transform: translateY(0); opacity: 1; } }
@media (max-width: 760px) { html:root .find-panel { left: 0 !important; right: 0 !important; width: auto !important; z-index: 35;
  border-radius: 0 0 18px 18px !important; border-top: 0 !important; }
  html:root .find-panel:not([hidden]) { animation: none !important; } }
html.app:root .find-panel { left: 0 !important; right: 0 !important; width: auto !important; z-index: 35;
  border-radius: 0 0 18px 18px !important; border-top: 0 !important; }
html.app:root .find-panel:not([hidden]) { animation: none !important; }
@media (prefers-reduced-motion: reduce) { html:root .find-panel:not([hidden]) { animation: none !important; } }
/* while the search menu is down, the names under the strip step aside so they don't show through it, and an empty result line
   takes no room */
@media (max-width: 760px) { html:has(#findPanel:not([hidden])) .sky-title, html:has(#findPanel:not([hidden])) #chartBar { visibility: hidden !important; }
  html:root .find-panel .find-msg:empty { display: none !important; } }
html.app:has(#findPanel:not([hidden])) .sky-title, html.app:has(#findPanel:not([hidden])) #chartBar { visibility: hidden !important; }
html.app:root .find-panel .find-msg:empty { display: none !important; }
.find-panel .find-pick[hidden] { display: none !important; }
.f-line { display: flex; align-items: center; gap: 10px; min-width: 0; }
.f-line[hidden] { display: none; }
.f-line select { flex: 1; min-width: 0; }
.f-ico { flex: none; width: 28px; height: 28px; display: flex; align-items: center; justify-content: center; }
.f-ico svg { width: 24px; height: 24px; display: block; }
.find-panel .f-dir { margin-left: 38px; width: calc(100% - 38px); }
html:root .find-panel .f-dd { flex: 1; min-width: 0; min-height: 44px; display: flex; align-items: center; justify-content: space-between; gap: 8px;
  padding: 0 12px 0 14px !important; border: 1px solid var(--line) !important; border-radius: 10px !important; background: var(--bg) !important; box-shadow: none !important;
  color: var(--text) !important; font: 16px var(--f-body); text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html:root .find-panel .f-dd[aria-expanded="true"] { border-color: var(--accent) !important; }
.f-dd span { overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
.f-chev { flex: none; width: 15px; height: 15px; color: var(--text-3); }
.f-menu { position: fixed; z-index: 60; overflow-y: auto; overscroll-behavior: contain; padding: 4px; background: var(--card); border: 1px solid var(--line);
  border-radius: 12px; box-shadow: var(--sh-pop, 0 12px 32px rgba(0,0,0,.3)); }
html:root .f-menu button { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 44px; padding: 0 12px !important; border: 0 !important;
  border-radius: 8px !important; background: transparent !important; box-shadow: none !important; color: var(--text) !important; font: 16px var(--f-body);
  text-align: left; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html:root .f-menu button[aria-selected="true"] { color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
@media (hover: hover) { html:root .f-menu button:hover { background: color-mix(in srgb, var(--accent) 8%, transparent) !important; } }
.f-mi { flex: none; width: 24px; height: 24px; display: flex; align-items: center; justify-content: center; }
.f-mi svg { width: 22px; height: 22px; display: block; }
.find-panel { overflow-y: auto; overscroll-behavior: contain; gap: 12px; }
@media (min-width: 761px) { html:not(.app) .find-panel { left: 0 !important; right: 0 !important; margin: 0 auto; transform: none !important; } }
.find-panel .find-head { font-size: 20px; }
.find-x { display: none; }
/* Search panel (computers 2026-10-04, phones and the app the same day: "In mobile, apply same changes we made to desktop search button"): a narrower search panel with a × at the top left, Next/Previous beside Find at the bottom, no empty space under Find (2026-10-04, Emilian) */
  html:root:not(.embed) .find-panel { width: 300px; display: grid; grid-template-columns: 1fr 1fr; gap: 10px 8px; padding: 12px 14px 14px; }
  html:root:not(.embed) .find-panel > * { grid-column: 1 / -1; }
  html:root:not(.embed) .find-panel .find-row { display: contents; }
  html:root:not(.embed) .find-panel .f-line { grid-column: 1 / -1; order: 1; }
  html:root:not(.embed) .find-panel .f-dir { order: 2; grid-column: 1; margin: 0; width: auto; }
  html:root:not(.embed) .find-panel .find-go { order: 3; grid-column: 2; margin: 0; height: 44px; min-height: 0; }
  html:root:not(.embed) .find-panel .find-msg { order: 4; margin: 0; }
  html:root:not(.embed) .find-panel .find-msg:empty { display: none; }
  html:root:not(.embed) .find-panel .find-head { order: 0; font-size: 18px; padding-right: 30px; line-height: 28px; display: block !important; }
  html:root:not(.embed) .find-x { display: flex; position: absolute; top: 13px; right: 0; left: auto; margin: 0; min-width: 0; min-height: 0; width: 28px; height: 28px; padding: 0; align-items: center; justify-content: center; border: 0; background: none; color: var(--muted); cursor: pointer; border-radius: 50%; z-index: 1; }
  html:root:not(.embed) .find-x svg { width: 16px; height: 16px; }
  html:root:not(.embed) .find-x:hover { color: var(--accent); }
@media (max-width: 760px) { html:root:not(.embed) .find-panel { width: min(300px, calc(100vw - 16px)) !important; border-radius: 14px !important; border-top: 1px solid var(--line) !important; } }
html.app:root:not(.embed) .find-panel { width: min(300px, calc(100vw - 16px)) !important; border-radius: 14px !important; border-top: 1px solid var(--line) !important; }
/* short phone screens (iPhone SE and smaller): no title, slimmer buttons, so Find stays in view without scrolling */
@media (max-height: 720px) {
  .find-panel .find-head, .find-panel .find-msg:empty { display: none; }
  .find-panel, .find-pick { gap: 9px !important; }
  html:root .find-panel .fp-b { height: 36px; } .fp-b svg { width: 21px; height: 21px; }
  html:root .find-panel .fp-t { min-height: 36px; } html:root .find-panel .fp-st .fp-t { min-height: 32px; }
  .fp-grid, .fp-asp { gap: 5px; } .find-panel { padding-block: 12px !important; }
}
.find-pick { display: flex; flex-direction: column; gap: 12px; }
.fp-dir { display: grid; grid-template-columns: 1fr 1fr; gap: 8px; }
.fp-sec { display: flex; flex-direction: column; gap: 8px; }
.fp-sec[hidden] { display: none; }
.fp-lab { font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.fp-lab span { margin-left: 8px; letter-spacing: .02em; text-transform: none; font-size: 15px; color: var(--text); }
.fp-grid { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.fp-asp { display: grid; grid-template-columns: repeat(5, 1fr); gap: 6px; }
.fp-st { display: flex; flex-wrap: wrap; gap: 6px; }
html:root .find-panel .fp-b { height: 42px; padding: 0; border: 1px solid var(--line); border-radius: 12px; background: transparent; box-shadow: none;
  display: flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
.fp-b svg { width: 24px; height: 24px; display: block; }
html:root .find-panel .fp-t { min-height: 40px; padding: 0 14px; border: 1px solid var(--line); border-radius: 10px; background: transparent; box-shadow: none;
  color: var(--text-2); font: 500 14px var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html:root .find-panel .fp-st .fp-t { min-height: 36px; font-size: 13.5px; padding: 0 12px; }
html:root .find-panel .fp-b[aria-pressed="true"], html:root .find-panel .fp-t[aria-pressed="true"] { border-color: var(--accent); color: var(--accent);
  background: color-mix(in srgb, var(--accent) 14%, transparent); }

/* "See more" is a quiet line of small text, not a button (Emilian, 2026-10-02: "way too huge and distracting") */
html:root[data-theme] .asp-more, html:root[data-theme] .asp-more:hover, html:root[data-theme] .asp-more:active {
  display: inline-flex; align-items: center; gap: 4px; margin: 8px 0 0 !important; min-height: 0 !important; height: auto !important; padding: 4px 0 !important;
  border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important; transform: none !important;
  font-size: 13px !important; font-weight: 500 !important; letter-spacing: .02em; color: var(--text-3) !important; cursor: pointer; }
@media (hover: hover) { html:root[data-theme] .asp-more:hover { color: var(--accent) !important; } }
.asp-more { align-self: center; width: auto !important; -webkit-tap-highlight-color: transparent; }
.asp-more:focus:not(:focus-visible) { outline: none; }
html:root[data-theme] .asp-more[hidden] { display: none !important; }
.asp-more::after { content: ""; width: 6px; height: 6px; border-right: 1.3px solid currentColor; border-bottom: 1.3px solid currentColor; transform: translateY(-2px) rotate(45deg); margin-left: 3px; }
.asp-more[aria-expanded="true"]::after { transform: translateY(1px) rotate(-135deg); }

/* Each aspect (and station) is its own box, so it reads as something to tap (Emilian, 2026-10-02) */
.aspects { gap: 8px; }
html:root .asp-item { border: 1px solid var(--line) !important; border-radius: 14px !important; padding: 11px 14px 12px !important;
  background: color-mix(in srgb, var(--card) 70%, transparent); transition: border-color .25s, background-color .25s; -webkit-tap-highlight-color: transparent; }
@media (hover: hover) { html:root .asp-item:hover { border-color: var(--accent) !important; } }
html:root .asp-item:active { background: color-mix(in srgb, var(--accent) 10%, transparent); border-color: var(--accent) !important; }
html:root .asp-item:hover .asp-name { text-decoration: none; }

/* Aspects within 1° of exact are bold: name and orb (Emilian, 2026-10-02: "close to exact should become bolded") */
.asp-item.tight .asp-name, .asp-item.tight .orb { font-weight: 800; color: var(--text); letter-spacing: .005em; }
/* near-exact aspects also get a gold outline with a soft glow around their card (Emilian, 2026-10-02) */
html:root .asp-item.tight { border-color: var(--accent) !important;
  box-shadow: 0 0 0 1px color-mix(in srgb, var(--accent) 35%, transparent), 0 0 14px 1px color-mix(in srgb, var(--accent) 32%, transparent),
    inset 0 0 12px color-mix(in srgb, var(--accent) 10%, transparent) !important; }
/* dark mode: just a thin gold outline, no glow inside or around it (2026-10-03, Emilian: "In dark mode, remove the golden glow
   from the inside of the bubble. just have a thin gold outline") */
html:root[data-theme="dark"] .asp-item.tight { box-shadow: none !important; border: 1px solid var(--accent) !important; }

/* Slimmer bottom menu (Emilian, 2026-10-02: "too protruded"): less padding, smaller icons and labels, and it sits lower into
   the iPhone's home-bar area instead of adding the full safe-area gap on top */
.tabbar { padding: 7px 8px 7px !important; } /* same space above and below the icons, measured to the very bottom of the screen (Emilian, 2026-10-02); no extra iPhone home-bar gap */
.tab { min-height: 42px !important; gap: 2px !important; padding: 2px 0 !important; font-size: 10.5px !important; }
.tab svg { width: 21px !important; height: 21px !important; }
/* The + under the open chart's name and the chip naming what's around the chart (2026-10-02) */
html:root .chart-bar { flex-wrap: wrap !important; row-gap: 8px !important; }
.chart-bar .cb-row2 { order: 3; flex-basis: 100%; display: flex; align-items: center; gap: 8px; }
/* Second line (2026-10-02): no + any more. Without a second chart a quiet "Add a second chart"; with one, its name and
   birthday in the same style as the first line, a small chevron (tap to change), swap arrows and × */
html:root .chart-bar .cb-add { flex: none; padding: 2px 0; border: 0; background: transparent; box-shadow: none; color: var(--text-3);
  font: 500 13px var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent; text-decoration: underline; text-decoration-color: var(--line); text-underline-offset: 3px; }
html:root .chart-bar .cb-add[hidden], html:root .chart-bar .cb-ico[hidden], html:root .chart-bar .cb-other[hidden] { display: none; }
html:root .chart-bar .cb-other { flex: 0 1 auto; min-width: 0; padding: 0; border: 0; background: transparent; box-shadow: none; text-align: left;
  font: inherit; font-size: 14px; color: var(--text-2); cursor: pointer; -webkit-tap-highlight-color: transparent; }
html:root .chart-bar .cb-ico { flex: none; width: 28px; height: 28px; padding: 0; border: 0; background: transparent; box-shadow: none; color: var(--text-3);
  display: inline-flex; align-items: center; justify-content: center; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html:root .chart-bar .cb-ico svg { width: 15px; height: 15px; }
html:root .chart-bar #cbSwap { color: var(--accent); }
.chart-bar .cb-row2 { gap: 2px !important; }
/* a small plain gold + under the first name instead of the words (Emilian, 2026-10-02); 28px to tap, lined up with the name */
html:root .chart-bar .cb-add { width: 28px; height: 28px; margin-left: -8px; padding: 0; text-decoration: none; color: var(--accent);
  display: inline-flex; align-items: center; justify-content: center; }
html:root .chart-bar .cb-add svg { width: 13px; height: 13px; }
html:root .chart-bar .cb-add[hidden] { display: none; }
/* smaller × on both chart lines (Emilian, 2026-10-02); the tap area stays 28px */
html:root .chart-bar .cb-close svg, html:root .chart-bar #cbOtherX svg { width: 10px; height: 10px; }
.pm button span small { display: block; font-size: 12.5px; color: var(--text-3); margin-top: 1px; }
html:root .f-menu.pm button { min-height: 52px; align-items: center; }
html:root .f-menu.pm button[disabled] { opacity: .5; cursor: default; }
/* the options' numbers, for picking them with the number keys (computers only) */
.f-menu.pm .pm-num { display: none; }
@media (min-width: 761px) { html:not(.app) .f-menu.pm .pm-num { display: inline-block; flex: none; width: 12px; margin-right: 2px; font: 500 11px var(--f-body); font-variant-numeric: tabular-nums; opacity: .5; text-align: center; } }
.f-menu.pm { --holebg: var(--card); }
.f-menu.pm .pm-fico svg { width: 24px !important; height: 24px !important; stroke-width: .9; --cut: var(--holebg); filter: drop-shadow(0 1px 1px rgba(0,0,0,.18)); }
:root[data-theme="dark"] .f-menu.pm { --holebg: var(--bgd-onyx, #121216); }
html:root .f-menu.pm button[aria-current="true"] { color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
/* The chart menus without subtext, shorter rows (2026-10-06 22:39, Emilian: "When opening a chart, remove the subtext. Make the cards
   short to match"): the choices (Saved chart, New chart, Transits, Another chart, Subsidiary…) show only their name, 40px rows. */
html:root .f-menu.pm button[data-act] span small { display: none; }
html:root .f-menu.pm button[data-act] { min-height: 40px !important; padding-top: 6px !important; padding-bottom: 6px !important; }
html:root .f-menu.pm .pm-back { min-height: 44px; color: var(--text-2) !important; }
.pm-empty { margin: 8px 12px 10px; font-size: 14px; color: var(--text-3); }
.pm-reloc { padding: 4px 10px 6px; }
.pm-reloc input { width: 100%; box-sizing: border-box; height: 38px; padding: 0 12px; border: 1px solid var(--line); border-radius: 10px; background: var(--bg); color: var(--text); font: 15px var(--f-body); }
.pm-reloc input:focus { outline: none; border-color: var(--accent); }

/* tappable aspect lines on the wheel (2026-10-02) */
/* wide aspects rest hidden; a lit planet or aspect (anything dimmed) brings back the ones it keeps (2026-11-12 23:20) */
svg:not(:has(.zs-tdim)) .asp-wide { display: none; }
.asp-hit { cursor: pointer; pointer-events: stroke; -webkit-tap-highlight-color: transparent; }
.asp-hit line { pointer-events: stroke; }
.asp-hit:focus { outline: none; }

/* First visit: where are you? (2026-10-02) */
.welcome-loc { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: color-mix(in srgb, var(--bg) 70%, transparent); -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px); animation: gentleIn .32s cubic-bezier(.32,.72,0,1) both; }
.welcome-loc[hidden] { display: none !important; }
.wl-card { width: min(420px, 100%); max-height: calc(100dvh - 32px); overflow-y: auto; padding: 24px 20px 14px; border-radius: 20px;
  background: var(--card); border: 1px solid var(--line); box-shadow: var(--sh-pop, 0 16px 40px rgba(0,0,0,.35)); display: flex; flex-direction: column; gap: 12px; }
.wl-card h2 { font-family: var(--f-display); font-weight: 500; font-size: 30px; margin: 0; text-align: center; }
.wl-sub { margin: 0 0 4px; text-align: center; font-size: 15px; line-height: 1.45; color: var(--text-2); }
html:root .wl-geo { min-height: 48px; border-radius: 10px; border: 1px solid var(--accent); background: var(--accent); color: var(--on-accent);
  font: 600 16px var(--f-body); display: inline-flex; align-items: center; justify-content: center; gap: 8px; cursor: pointer; box-shadow: none; }
:root[data-theme="dark"] .wl-geo { background: transparent !important; color: var(--accent) !important; }
.wl-geo svg { width: 18px; height: 18px; }
.wl-or { text-align: center; font-size: 12px; letter-spacing: .14em; text-transform: uppercase; color: var(--muted); }
.wl-card input { min-height: 48px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: 16px var(--f-body); }
.wl-card input:focus { outline: none; border-color: var(--accent); }
.wl-list { display: flex; flex-direction: column; }
html:root .wl-list button { display: flex; align-items: baseline; gap: 6px; padding: 11px 12px; border: 0; border-radius: 10px; background: transparent;
  color: var(--text); font: 16px var(--f-body); text-align: left; cursor: pointer; box-shadow: none; }
.wl-list button span { font-size: 14px; color: var(--text-3); }
.wl-list button span::before { content: "· "; }
@media (hover: hover) { html:root .wl-list button:hover { background: color-mix(in srgb, var(--accent) 10%, transparent); } }
.wl-msg { margin: 0; font-size: 14px; color: var(--text-2); text-align: center; }
html:root .wl-skip { align-self: center; border: 0; background: transparent; color: var(--text-3); font: 500 15px var(--f-body); padding: 8px 14px; cursor: pointer; box-shadow: none; }

/* Settings opens in the middle of the screen as a card, with a small × at the top right (2026-10-02, Emilian; first top left) */
.sheet { left: 0 !important; right: 0 !important; top: var(--tb-h, 64px) !important; bottom: var(--tab-h, 70px) !important; margin: auto !important;
  width: min(400px, calc(100% - 32px)) !important; height: max-content !important; max-height: calc(100dvh - var(--tb-h, 64px) - var(--tab-h, 70px) - 32px) !important;
  border: 1px solid var(--line) !important; border-radius: 20px !important; box-shadow: var(--sh-pop, 0 16px 40px rgba(0,0,0,.35)) !important;
  padding: 18px 16px 20px !important; transform-origin: 50% 50%; }
.app .sheet { top: var(--tb-h, 64px) !important; bottom: var(--tab-h, 70px) !important; }
html:root #settingsSheet h2 { display: block; padding: 0 40px; text-align: center !important; align-self: stretch; }
html:root .sheet-x { position: absolute; top: 12px; right: 12px; width: 32px; height: 32px; padding: 0; border: 0; border-radius: 50%; background: transparent;
  color: var(--text-3); display: inline-flex; align-items: center; justify-content: center; cursor: pointer; box-shadow: none; -webkit-tap-highlight-color: transparent; }
.sheet-x svg { width: 14px; height: 14px; }
html:root .sheet-x:active { background: color-mix(in srgb, var(--accent) 12%, transparent); }
@media (hover: hover) { html:root .sheet-x:hover { color: var(--accent); } }

/* Day between the arrows, date and time on its own line just below, centred (Emilian, 2026-10-02:
   "put the day button between the two arrows, move the actual time to the area just below and centered").
   Row 1: back · Day · forward · then the tools. Row 2: the date and time. */
html:root .timebar { flex-wrap: wrap !important; justify-content: center !important; row-gap: 4px !important; }
html:root .timebar .tb-tools { display: contents !important; }
html:root .timebar #tBack { order: 1; }
html:root .timebar .units-slot { order: 2; }
html:root .timebar #tFwd { order: 3; margin-right: 10px; }
html:root .timebar #findBtn { order: 4; } html:root .timebar #chartsBtn { order: 5; } html:root .timebar .loc-wrap { order: 6; }
html:root .timebar .pl-wrap { order: 7; } html:root .timebar #themeToggle { order: 8; } html:root .timebar .now { order: 9; }
html:root .timebar .when { order: 20; flex: 0 0 100% !important; max-width: 100%; text-align: center; padding: 2px 0 0 !important; white-space: nowrap; }
@media (max-width: 560px) { html:root .timebar #tFwd { margin-right: 4px; } }

/* Settings button on computers (Emilian, 2026-10-02: "On the desktop version create a settings button again"): a gear in the
   time bar after Charts opens the same centred Settings card as on phones, holding Location, Planets and Light or dark. */
html:root .timebar #setBtn { order: 6; }
@media (max-width: 760px) { html:root .timebar #setBtn { display: none !important; } }
.app .timebar #setBtn { display: none !important; }
@media (min-width: 761px) { html:not(.app) .sheet { top: 24px !important; bottom: 24px !important; } }

/* Date and time back on the same row, between the forward arrow and search (2026-10-02, Emilian: "Move the time in between the
   right arrow and the search button instead of underneath everything"). Row: back · Day · forward · date and time · search · Now */
html:root .timebar { flex-wrap: nowrap !important; }
html:root .timebar .when { order: 4 !important; flex: 1 1 auto !important; min-width: 0; max-width: none; padding: 2px 2px !important; text-align: center; }
html:root .timebar #tFwd { margin-right: 0 !important; }
html:root .timebar #findBtn { order: 5 !important; } html:root .timebar #chartsBtn { order: 6 !important; } html:root .timebar .loc-wrap { order: 7 !important; }
html:root .timebar .pl-wrap { order: 8 !important; } html:root .timebar #themeToggle { order: 9 !important; } html:root .timebar .now { order: 11 !important; }

/* Aspects in the top strip on computers, just left of Charts (Emilian, 2026-10-02); the big Aspects bar under the clock is
   gone there. Tapping it opens the list under the clock and glides down to it; tapping again closes it. Gold while open. */
.asp-top { display: none !important; }
@media (min-width: 761px) {
  html:not(.app):not(.embed) .timebar .asp-top { display: inline-flex !important; order: 6 !important; white-space: nowrap; }
  html:not(.app):not(.embed) .timebar .asp-top[aria-expanded="true"] { color: var(--accent) !important; }
  html:not(.app):not(.embed) #aspToggle { display: none !important; }
  html:not(.app):not(.embed) .asp-body .aspects-sec { border-top: 0; }
}
/* Install app button in the top strip on computers (Emilian, 2026-10-02); gold so it's easy to find.
   Phones keep the banner above the bottom menu; on computers the banner is no longer shown. */
.install-top { display: none !important; }
@media (min-width: 761px) { .install-sheet { align-items: center; } }
@media (min-width: 761px) {
  html:not(.app):not(.embed) .timebar .install-top:not([hidden]) { display: inline-flex !important; order: 12 !important; color: var(--accent) !important; font-weight: 600; white-space: nowrap; }
  /* next to search, with a small × (2026-10-06, Emilian: "Put install app button next to the search button. Make it dismissable") */
  html:not(.app):not(.embed) .timebar .install-top:not([hidden]) { position: absolute !important; top: 50%; transform: translateY(-50%) !important; margin: 0 !important;
    left: calc(50% + var(--when-w, 240px) / 2 + 4px + var(--find-w, 36px) + 2px + var(--pl-w, 36px) + 4px); padding: 0 4px 0 8px !important; }
  html:not(.app):not(.embed) .timebar .install-top span { display: inline !important; }
  html:not(.app):not(.embed) .timebar .install-x:not([hidden]) { display: inline-grid; place-items: center; position: absolute; top: 50%; transform: translateY(-50%);
    left: calc(50% + var(--when-w, 240px) / 2 + 4px + var(--find-w, 36px) + 2px + var(--pl-w, 36px) + 4px + var(--inst-w, 100px)); width: 24px; height: 24px; padding: 0;
    border: 0; border-radius: 50%; background: transparent; box-shadow: none; color: var(--text-3); cursor: pointer; }
  html:not(.app):not(.embed) .timebar .install-x:hover { color: var(--text); }
  .install-x svg { width: 10px; height: 10px; }
  html:not(.app):not(.embed) .install-banner { display: none !important; }
}
/* Computers: one menu strip across the top, like the phone (2026-10-02, Emilian: "one menu at the top, without the rounded
   buttons, just all part of a horizontal strip"). Fixed full width; the buttons are flat icons and words, no circles or pills;
   the contents line up with the clock card (920px). Its height is measured into --tb-h like on phones. */
@media (min-width: 761px) {
  html:not(.app):not(.embed) .timebar { position: fixed !important; top: 0; left: 0; right: 0; z-index: 36; margin: 0 !important;
    padding: 6px max(16px, calc((100vw - 920px) / 2)) !important; row-gap: 0 !important; column-gap: 4px !important;
    background: color-mix(in srgb, var(--card) 92%, transparent) !important; -webkit-backdrop-filter: blur(14px); backdrop-filter: blur(14px);
    border-bottom: 1px solid var(--line) !important; box-shadow: none !important; }
  html:not(.app):not(.embed) body { padding-top: var(--tb-h, 60px); }
  html:not(.app):not(.embed) .timebar::after { display: none; }
  html:not(.app):not(.embed) .timebar .step, html:not(.app):not(.embed) .timebar .icon-btn, html:not(.app):not(.embed) .timebar .now,
  html:not(.app):not(.embed) .timebar .pop-btn, html:not(.app):not(.embed) .timebar .units[data-open="false"] button[aria-pressed="true"] {
    background: transparent !important; border: 0 !important; box-shadow: none !important; border-radius: 10px !important; transform: none !important;
    width: auto !important; min-width: 44px; height: 46px !important; min-height: 46px !important; padding: 0 10px !important; color: var(--text-3) !important; }
  html:not(.app):not(.embed) .timebar .step svg, html:not(.app):not(.embed) .timebar .icon-btn svg { width: 22px; height: 22px; }
  html:not(.app):not(.embed) .timebar .pop-btn { gap: 8px; font-size: 15px; }
  html:not(.app):not(.embed) .timebar .pop-btn svg { width: 20px; height: 20px; }
  html:not(.app):not(.embed) .timebar .units[data-open] button[aria-pressed="true"] { color: var(--accent) !important; font-weight: 600; font-size: 15px; }
  html:not(.app):not(.embed) .timebar .now { color: var(--accent) !important; font-size: 15px !important; font-weight: 600; }
  html:not(.app):not(.embed) .timebar .units-slot { height: 46px !important; }
  html:not(.app):not(.embed) .timebar .step:active, html:not(.app):not(.embed) .timebar .icon-btn:active, html:not(.app):not(.embed) .timebar .pop-btn:active,
  html:not(.app):not(.embed) .timebar .now:active { background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
  html:not(.app):not(.embed) .timebar .step:hover, html:not(.app):not(.embed) .timebar .icon-btn:hover, html:not(.app):not(.embed) .timebar .pop-btn:hover { color: var(--accent) !important; }
  html:not(.app):not(.embed) .find-panel { position: fixed; top: calc(var(--tb-h, 60px) + 6px); }
  html:not(.app):not(.embed) .sheet { top: calc(var(--tb-h, 60px) + 24px) !important; }
}

/* "Now" is a refresh icon right after the forward arrow (2026-10-02, Emilian: "Make the now button instead be a refresh icon,
   which is next to the right arrow"). Row: back · Day · forward · ⟳ · date and time · search … It keeps its place while
   hidden (at the present moment), so nothing shifts when it appears. */
html:root .timebar .now { order: 3 !important; min-width: 40px !important; width: 40px !important; padding: 0 !important; margin: 0 !important;
  display: inline-flex !important; align-items: center; justify-content: center; font-size: 0 !important; }
html:root .timebar #tFwd { order: 3 !important; }
html:root .timebar .now svg { width: 21px; height: 21px; display: block; }
/* Phones and the app (2026-10-02, Emilian: "Move time just to the right of the right arrow. The refresh button goes to the
   right of the time"): back · Day · forward · date and time · ⟳ · … search at the far right. */
@media (max-width: 760px) {
  html:root .timebar .when { order: 4 !important; flex: 0 1 auto !important; text-align: left !important; padding-left: 4px !important; }
  html:root .timebar .now { order: 6 !important; }
  html:root .timebar #findBtn { order: 5 !important; margin-left: 0 !important; }
}
html.app:root .timebar .when { order: 4 !important; flex: 0 1 auto !important; text-align: left !important; padding-left: 4px !important; }
html.app:root .timebar .now { order: 6 !important; }
html.app:root .timebar #findBtn { order: 5 !important; margin-left: 0 !important; }
/* Phones and the app (2026-10-03, Emilian: "Bring the arrows in closer to the day button"): the arrows hug the step-size word */
@media (max-width: 760px) {
  html:root .timebar #tBack { min-width: 34px !important; padding: 0 2px 0 6px !important; }
  html:root .timebar #tFwd { min-width: 34px !important; padding: 0 6px 0 2px !important; }
  html:root .timebar .units-slot, html:root .timebar .units:not([data-open="true"]) button[aria-pressed="true"] { padding-inline: 2px !important; min-width: 0 !important; }
}
html.app:root .timebar #tBack { min-width: 34px !important; padding: 0 2px 0 6px !important; }
html.app:root .timebar #tFwd { min-width: 34px !important; padding: 0 6px 0 2px !important; }
html.app:root .timebar .units-slot, html.app:root .timebar .units:not([data-open="true"]) button[aria-pressed="true"] { padding-inline: 2px !important; min-width: 0 !important; }
/* Phones and the app (2026-10-03, Emilian: "Flush everything left in the top menu bar"): the strip's contents start at the
   left edge, one after another, nothing centred or spread out */
@media (max-width: 760px) { html:root .timebar { justify-content: flex-start !important; padding-left: 4px !important; }
  html:root .timebar > *, html:root .timebar .tb-tools > * { margin-left: 0 !important; } }
html.app:root .timebar { justify-content: flex-start !important; padding-left: 4px !important; }
html.app:root .timebar > *, html.app:root .timebar .tb-tools > * { margin-left: 0 !important; }
/* Phones and the app (2026-10-03, Emilian: "Planet toggle button flush right"): everything else stays left
   (‹ Day › date search ⟳), the planets button sits alone at the right edge */
@media (max-width: 760px) { html:root body .timebar .pl-wrap { order: 9 !important; margin-left: auto !important; } html:root body .timebar .now { order: 6 !important; } html:root .timebar { padding-right: 4px !important; } }
html.app:root body .timebar .pl-wrap { order: 9 !important; margin-left: auto !important; } html.app:root body .timebar .now { order: 6 !important; } html.app:root .timebar { padding-right: 4px !important; }
/* Search sits just left of the planets button (pt) at the right edge (2026-10-03, Emilian: "Bring search button to the left of planet toggle") */
@media (max-width: 760px) { html:root body .timebar #findBtn { order: 8 !important; margin-left: auto !important; } html:root body .timebar .pl-wrap { margin-left: 0 !important; } }
html.app:root body .timebar #findBtn { order: 8 !important; margin-left: auto !important; } html.app:root body .timebar .pl-wrap { margin-left: 0 !important; }

/* small phones (under 380px): search and planets narrower and the date a touch smaller, so nothing overlaps the time */
@media (max-width: 379px) {
  html:root .timebar #findBtn, html:root .timebar #plBtn { min-width: 32px !important; padding: 0 4px !important; }
  html:root .timebar #findBtn svg, html:root .timebar #plBtn svg { width: 20px; height: 20px; }
  html:root .timebar .now { min-width: 32px !important; width: 32px !important; }
  html:root .timebar #tBack { min-width: 30px !important; padding: 0 2px 0 4px !important; }
  html:root .timebar #tFwd { min-width: 30px !important; padding: 0 4px 0 2px !important; }
  html:root .timebar .when { font-size: 13.5px !important; padding-left: 2px !important; }
}
/* Phones and the app (2026-10-03, Emilian: "The toggle planets button moves next to the search button"): the planets button
   sits right after search in the strip (icon only, like search), then ⟳; its menu drops full width under the strip. */
@media (max-width: 760px) {
  html:root .timebar .pl-wrap { order: 5 !important; position: static; flex: none; }
  html:root .timebar .now { order: 6 !important; }
  html:root .timebar #plBtn { width: auto !important; min-width: 44px; height: 46px !important; min-height: 46px !important; padding: 0 8px !important;
    border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 10px !important; font-size: 0 !important; gap: 0;
    color: var(--text-3) !important; justify-content: center; }
  html:root .timebar #plBtn svg { width: 22px; height: 22px; }
  html:root .timebar #plBtn[aria-expanded="true"], html:root .timebar #plBtn:active { color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
  html:root .timebar .pl-menu { position: fixed !important; left: 0 !important; right: 0 !important; width: auto !important; top: var(--tb-h, 64px) !important;
    max-height: calc(100dvh - var(--tb-h, 64px) - var(--tab-h, 70px) - 12px); overflow-y: auto; border-radius: 0 0 18px 18px !important; border-top: 0 !important; z-index: 35; }
  html:root .timebar .pl-menu:not([hidden]) { animation: none !important; }
}
html.app:root .timebar .pl-wrap { order: 5 !important; position: static; flex: none; }
html.app:root .timebar .now { order: 6 !important; }
html.app:root .timebar #plBtn { width: auto !important; min-width: 44px; height: 46px !important; min-height: 46px !important; padding: 0 8px !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 10px !important; font-size: 0 !important; gap: 0;
  color: var(--text-3) !important; justify-content: center; }
html.app:root .timebar #plBtn svg { width: 22px; height: 22px; }
html.app:root .timebar #plBtn[aria-expanded="true"] { color: var(--accent) !important; background: color-mix(in srgb, var(--accent) 12%, transparent) !important; }
/* no box behind the planets button while its menu is open, only the gold icon (2026-10-06, Emilian: "it has a rectangular highlight when selected, remove") */
@media (max-width: 760px) { html:root body .timebar #plBtn[aria-expanded="true"], html:root body .timebar #plBtn:active { background: transparent !important; box-shadow: none !important; border-color: transparent !important; } }
html.app:root body .timebar #plBtn[aria-expanded="true"], html.app:root body .timebar #plBtn:active { background: transparent !important; box-shadow: none !important; border-color: transparent !important; }
/* the planets menu in the app's own look on phones and in the app (2026-10-06, Emilian: "make the planets menu a bit more with the
   theme"): a floating card like the top menu (8px from the sides, 22px corners, card + 10% gold, gold-tinted edge, soft shadow),
   just under it; the planets read like Settings' choices: shown = full colour, a small filled gold dot under the name; hidden =
   faded, an empty ring. No boxes around the planets. */
@media (max-width: 760px) {
  html:root body .timebar .pl-menu { left: 8px !important; right: 8px !important; top: calc(var(--tb-h, 64px) - 2px) !important; border-radius: 22px !important;
    background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%) !important; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)) !important;
    box-shadow: 0 6px 18px rgba(60, 40, 10, .10) !important; }
}
html.app:root body .timebar .pl-menu { left: 8px !important; right: 8px !important; top: calc(var(--tb-h, 64px) - 2px) !important; border-radius: 22px !important;
  background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%) !important; border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)) !important;
  box-shadow: 0 6px 18px rgba(60, 40, 10, .10) !important; }
:root[data-theme="dark"] body .timebar .pl-menu { box-shadow: 0 6px 18px rgba(0, 0, 0, .35) !important; }
/* see-through, so the chart shows behind it (2026-10-06, Emilian: "make planet toggle button see through so it doesnt fully block
   the chart behind it"): the card's colour at about 60%, with a light blur so the planets stay readable */
@media (max-width: 760px) { html:root body .timebar .pl-menu { background: color-mix(in srgb, color-mix(in srgb, var(--card) 90%, var(--accent) 10%) 58%, transparent) !important;
  -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; } }
html.app:root body .timebar .pl-menu { background: color-mix(in srgb, color-mix(in srgb, var(--card) 90%, var(--accent) 10%) 58%, transparent) !important;
  -webkit-backdrop-filter: blur(6px) !important; backdrop-filter: blur(6px) !important; }
html:root body .pl-menu:not([hidden]) { padding: 14px 10px 12px !important; row-gap: 12px !important; }
html:root body .pl-menu label.pl-tog { border: 0 !important; background: transparent !important; min-height: 0; padding: 4px 0 2px !important; gap: 4px; }
html:root body .pl-menu label.pl-tog::after { content: ""; width: 5px; height: 5px; border-radius: 50%; background: var(--accent); border: 1px solid var(--accent); margin-top: 1px; }
html:root body .pl-menu label.pl-tog:not(.on) { opacity: .42; }
html:root body .pl-menu label.pl-tog:not(.on)::after { background: transparent; border-color: var(--text-3); }
html:root body .pl-menu label.pl-tog.on { opacity: 1; }
/* a thin outline round each planet in its own colour (2026-10-06, Emilian: "A thin outline should go around each planet, in their color") */
html:root body .pl-menu label.pl-tog { border: 1px solid var(--pc, var(--line)) !important; border-radius: 14px !important; padding: 7px 0 6px !important; }
html:root body .pl-menu label.pl-tog { transition: none !important; }
/* seven to a row on phones too, so Saturn sits with the traditional planets (2026-10-06, Emilian: "make top cards in planet toggle
   thinner so saturn can fit as a 7th card at the top"); Uranus, Neptune, Pluto and the Node on the second row */
@media (max-width: 760px) { html:root body .pl-menu:not([hidden]) { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; column-gap: 2px !important; padding-left: 6px !important; padding-right: 6px !important; }
  html:root body .pl-menu label.pl-tog .pl-name { font-size: 10.5px !important; letter-spacing: 0 !important; } }
html.app:root body .pl-menu:not([hidden]) { grid-template-columns: repeat(7, minmax(0, 1fr)) !important; column-gap: 2px !important; padding-left: 6px !important; padding-right: 6px !important; }
html.app:root body .pl-menu label.pl-tog .pl-name { font-size: 10.5px !important; letter-spacing: 0 !important; }
@media (max-width: 360px) { html:root body .pl-menu label.pl-tog .pl-name { font-size: 9.5px !important; } html:root body .pl-menu label.pl-tog .pg { width: 22px !important; height: 22px !important; } }
html:root body .pl-menu label.pl-tog .pl-name { color: var(--text); }
/* More (2026-10-06): the tile after Lilith folds Chiron to Eris and the Part of Fortune in and out */
html:root body .pl-menu:not(.more-open) label.pl-extra { display: none !important; }
html:root body .pl-menu label.pl-more { opacity: 1 !important; cursor: pointer; }
html:root body .pl-menu label.pl-more::after { visibility: hidden; }
/* No dots: on = lit, off = dim (2026-10-07, Emilian: "remove the dots. Off and on can be signaled by lit up or not") */
html:root body .pl-menu label.pl-tog::after { display: none !important; }
html:root body .pl-menu label.pl-more.open .pl-name { color: var(--accent); }

html.app:root .timebar .pl-menu { position: fixed !important; left: 0 !important; right: 0 !important; width: auto !important; top: var(--tb-h, 64px) !important;
  max-height: calc(100dvh - var(--tb-h, 64px) - var(--tab-h, 70px) - 12px); overflow-y: auto; border-radius: 0 0 18px 18px !important; border-top: 0 !important; z-index: 35; }
html.app:root .timebar .pl-menu:not([hidden]) { animation: none !important; }
/* Phones and the app (2026-10-02, Emilian: "Move search bars next to the time"): search sits right after the date and time,
   then ⟳; nothing is pushed to the far right any more. */

/* Chart lines (2026-10-02, Emilian: "move [the swap button] to the right by the x's"; no chevron; tap either line to choose
   what goes there): a small grid, names in the first column, the × buttons in the second, the swap arrows in the third,
   centred between the two lines. Swapped Transits put the Transits line on top. */
html:root .chart-bar:not([hidden]) { display: grid !important; grid-template-columns: auto auto auto; justify-content: start; align-items: center;
  column-gap: 2px !important; row-gap: 8px !important; }
html:root .chart-bar .cb-row2 { display: contents !important; }
html:root .chart-bar > .cb-text { grid-row: 1; grid-column: 1; cursor: pointer; -webkit-tap-highlight-color: transparent; }
html:root .chart-bar #cbClose { grid-row: 1; grid-column: 2; }
html:root .chart-bar #cbAdd, html:root .chart-bar #cbOther { grid-row: 2; grid-column: 1; justify-self: start; }
html:root .chart-bar #cbOtherX { grid-row: 2; grid-column: 2; }
html:root .chart-bar #cbSwap { grid-row: 1 / span 2; grid-column: 3; margin-left: 6px; }
html:root .chart-bar #cbSwap svg { width: 17px; height: 17px; }
/* No × and no swap button any more (2026-10-03, Emilian: "remove the x's and the switch charts button. Instead, you can swipe
   charts to the left to remove them. To switch them, just swipe the second chart up"). The buttons stay in the page, hidden,
   and the swipes use their code. */
html:root .chart-bar #cbClose, html:root .chart-bar #cbOtherX, html:root .chart-bar #cbSwap { display: none !important; }
html:root .chart-bar > .cb-text, html:root .chart-bar #cbOther { touch-action: none; user-select: none; -webkit-user-select: none; will-change: transform; }
html:root .chart-bar .cb-lifted { position: relative; z-index: 2; cursor: grabbing; transition: filter .2s; filter: drop-shadow(0 6px 14px rgba(0,0,0,.35)); }
.cb-date { color: var(--accent); text-decoration: underline; text-decoration-thickness: 1px; text-underline-offset: 3px; cursor: pointer; }
html:root .f-menu.pm-date { padding: 14px !important; display: flex; flex-direction: column; gap: 10px; }
.pm-date .dp-row { display: grid; grid-template-columns: 1fr 1.35fr 1.2fr; gap: 8px; }
.pm-date label { display: flex; flex-direction: column; gap: 4px; font-size: 11px; letter-spacing: .06em; text-transform: uppercase; color: var(--text-3); }
.pm-date input { width: 100%; min-width: 0; height: 42px; padding: 0 10px; border: 1px solid var(--line); border-radius: 10px; background: transparent;
  color: var(--text); font: 500 16px var(--f-body); text-transform: none; letter-spacing: 0; }
.pm-date input:focus { outline: none; border-color: var(--accent); }
.pm-date .dp-msg { margin: 0; font-size: 13px; color: var(--text-2); }
.pm-date .dp-btns { display: flex; gap: 8px; justify-content: flex-end; }
html:root .f-menu.pm-date .dp-btns button { width: auto !important; min-height: 0 !important; height: 38px; padding: 0 16px !important; border-radius: 10px !important; font: 600 14px var(--f-body); cursor: pointer; justify-content: center; }
html:root .f-menu.pm-date .dp-today { background: transparent !important; border: 1px solid var(--line) !important; color: var(--text-2) !important; }
html:root .f-menu.pm-date .dp-go { background: var(--accent) !important; border: 1px solid var(--accent) !important; color: var(--on-accent, #1e1d23) !important; }
.pm-rise { display: inline-flex; vertical-align: -3px; margin-left: 8px; }
.pm-rise .b3-row { display: inline-flex; }
html:root .chart-bar.swapped > .cb-text, html:root .chart-bar.swapped #cbClose { grid-row: 2; }
html:root .chart-bar.swapped #cbAdd, html:root .chart-bar.swapped #cbOther, html:root .chart-bar.swapped #cbOtherX { grid-row: 1; }

/* Settings: house system and zodiac as two-part switches (2026-10-02, Emilian) */
.seg { display: flex; gap: 0; border: 1px solid var(--line); border-radius: 10px; padding: 3px; }
.seg button { flex: 1; height: 38px; border: 0; border-radius: 10px; background: transparent; color: var(--text-2);
  font: 500 15px var(--f-body); cursor: pointer; -webkit-tap-highlight-color: transparent; }
.seg button[aria-pressed="true"] { background: var(--accent); color: var(--on-accent, #fff); font-weight: 600; }
:root[data-theme="dark"] .seg { border-color: var(--accent); }
:root[data-theme="dark"] .seg button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent); color: var(--accent); }

/* Phones and the app: the opening view is the transit chart, so it's named "Transits" under the top strip, in the same place
   and style as an open chart's name (Emilian, 2026-10-02). Hidden while a chart is open (its own name sits there). */
@media (max-width: 760px) {
  html:not(.embed) .sky-title { position: fixed !important; z-index: 3; top: calc(var(--tb-h, 64px) + 6px); left: 16px;
    width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap;
    font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--text); pointer-events: none; }
}
html.app:not(.embed) .sky-title { position: fixed !important; z-index: 3; top: calc(var(--tb-h, 64px) + 6px); left: 16px;
  width: auto; height: auto; margin: 0; overflow: visible; clip: auto; white-space: nowrap;
  font-family: var(--f-display); font-size: 19px; font-weight: 600; line-height: 1.3; color: var(--text); pointer-events: none; }
html:has(#chartBar:not([hidden])) .sky-title { visibility: hidden; }
/* 2026-10-03, Emilian: "Remove the thing that says transits... That button Transits is supposed to represent a chosen chart":
   the view title is gone on phones and in the app (screen readers still get it); "Transits" now only appears as a chart
   line, when the current transits are put around an open chart. */
@media (max-width: 760px) { html:not(.embed) .sky-title { position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; } }
html.app:not(.embed) .sky-title { position: absolute !important; width: 1px !important; height: 1px !important;
  overflow: hidden !important; clip: rect(0 0 0 0) !important; white-space: nowrap; }

/* Computers, the top strip rearranged (Emilian, 2026-10-02: "not well arranged"): three clear groups. Left: back · Day · forward.
   Centre of the screen, over the middle of the wheel: the date and time, with the refresh button just after it. Right: search ·
   Aspects · Charts · Settings · Install app. On narrower computer screens the words go and the icons stay. */
@media (min-width: 761px) {
  html:not(.app):not(.embed) .timebar { justify-content: flex-start !important; padding-inline: max(16px, calc((100vw - 1200px) / 2)) !important; }
  html:not(.app):not(.embed) .timebar .when { position: absolute !important; left: 50%; top: 50%; transform: translate(-50%, -50%);
    flex: none !important; width: auto !important; max-width: 40vw; padding: 0 !important; text-align: center; }
  html:not(.app):not(.embed) .timebar .now { position: absolute !important; top: 50%; transform: translateY(-50%) !important;
    left: calc(50% + var(--when-w, 240px) / 2 + 6px); }
  html:not(.app):not(.embed) .timebar #findBtn { margin-left: auto !important; }
}
@media (min-width: 761px) and (max-width: 1180px) {
  html:not(.app):not(.embed) .timebar .asp-top span, html:not(.app):not(.embed) .timebar .charts-btn span,
  html:not(.app):not(.embed) .timebar .install-top span { display: none; }
  html:not(.app):not(.embed) .timebar .asp-top, html:not(.app):not(.embed) .timebar .charts-btn,
  html:not(.app):not(.embed) .timebar .install-top:not([hidden]) { padding: 0 10px !important; }
}

/* Computers: the clock is fixed in place (Emilian, 2026-10-02: "fix the chart in place. Don't allow scrolling up and down").
   The page never scrolls; the wheel is sized to fit between the top strip and the bottom of the window, centred. Only the
   aspects list, opened from the top strip, scrolls inside that space (like on phones). */
@media (min-width: 761px) {
  html:not(.app):not(.embed), html:not(.app):not(.embed) body { height: 100%; overflow: hidden; overscroll-behavior: none; }
  html:not(.app):not(.embed) body { padding-top: 0 !important; }
  html:not(.app):not(.embed) .main { position: fixed; left: 0; right: 0; top: var(--tb-h, 60px); bottom: 0; margin: 0 !important;
    max-width: none !important; padding: 12px 16px 16px !important; overflow-y: auto; overscroll-behavior: contain;
    display: grid; align-content: center; justify-items: center; }
  html:not(.app):not(.embed) .main > * { width: 100%; max-width: 920px; }
  html:not(.app):not(.embed) .main:has(.asp-body[data-open="true"]) { align-content: start; }
  html:not(.app):not(.embed) .main .wheel { margin: 0 !important; }
  /* the folded aspects card leaves no line under the wheel while closed */
  html:not(.app):not(.embed) .panel:not(:has(.asp-body[data-open="true"])) { border-color: transparent !important; box-shadow: none !important; background: transparent !important; }
  html:not(.app):not(.embed) #svg { display: block; width: min(100%, calc(100vh - var(--tb-h, 60px) - 56px)); height: auto; margin: 0 auto; }
  html:not(.app):not(.embed):has(#chartBar:not([hidden])) #svg { width: min(100%, calc(100vh - var(--tb-h, 60px) - 140px)); }
}

/* Computers: the chart on the left, information on the right (Emilian, 2026-10-02: "bring chart to the left. Aspects and other
   kinds of information will open on the right"). The wheel sits on the left edge of the content (lined up with the top strip)
   and always leaves room for a right-hand column, so it never moves. The Aspects list and the planet / aspect panels slide in
   there; the panels sit over the list, and closing a panel shows the list again. Settings and Charts stay as they are. */
@media (min-width: 761px) {
  html:not(.app):not(.embed) { --side-in: max(16px, calc((100vw - 1200px) / 2)); --side-w: clamp(340px, 32vw, 460px); }
  html:not(.app):not(.embed) .main { overflow: hidden !important; justify-items: start !important; align-content: center !important;
    padding: 12px var(--side-in) 16px !important; }
  html:not(.app):not(.embed) .main > * { width: auto; max-width: none; }
  html:not(.app):not(.embed) .main .wheel { justify-self: start; }
  html:not(.app):not(.embed) #svg, html:not(.app):not(.embed):has(#chartBar:not([hidden])) #svg {
    width: min(calc(100vw - 2 * var(--side-in) - var(--side-w) - 32px), calc(100vh - var(--tb-h, 60px) - 56px)) !important; margin: 0 !important; }
  html:not(.app):not(.embed):has(#chartBar:not([hidden])) #svg {
    width: min(calc(100vw - 2 * var(--side-in) - var(--side-w) - 32px), calc(100vh - var(--tb-h, 60px) - 140px)) !important; }
  /* the Aspects list: its own column on the right, sliding in */
  html:not(.app):not(.embed) .panel { position: fixed !important; z-index: 30; top: calc(var(--tb-h, 60px) + 12px); bottom: 16px;
    right: var(--side-in); width: var(--side-w); overflow-y: auto; overscroll-behavior: contain;
    opacity: 0; transform: translateX(28px); pointer-events: none; visibility: hidden;
    transition: opacity .32s cubic-bezier(.32,.72,0,1), transform .32s cubic-bezier(.32,.72,0,1), visibility 0s linear .32s; }
  html:not(.app):not(.embed) .panel:has(.asp-body[data-open="true"]) { opacity: 1; transform: none; pointer-events: auto; visibility: visible;
    transition: opacity .32s cubic-bezier(.32,.72,0,1), transform .32s cubic-bezier(.32,.72,0,1), visibility 0s; }
  html:not(.app):not(.embed) .asp-body { grid-template-rows: 1fr !important; transition: none !important; }
  html:not(.app):not(.embed) .asp-body .aspects-sec { display: flex !important; flex-direction: column; gap: 22px; padding: 18px 20px 22px !important; }
  html:not(.app):not(.embed) .asp-col .lunar-head { margin-top: 0 !important; padding-top: 0 !important; border-top: 0 !important; }
  /* planet and aspect panels: in the same right-hand column, over the list, with no dimming over the chart */
  html:not(.app):not(.embed) .desc-veil { inset: auto; top: calc(var(--tb-h, 60px) + 12px); bottom: 16px; right: var(--side-in);
    width: var(--side-w); padding: 0; background: transparent; display: block; z-index: 41; pointer-events: none; }
  html:not(.app):not(.embed) .desc-card { width: 100%; height: 100%; max-height: 100%; pointer-events: auto; animation: sideIn .32s cubic-bezier(.32,.72,0,1) both; }
}
@keyframes sideIn { from { opacity: 0; transform: translateX(28px); } to { opacity: 1; transform: none; } }
@media (prefers-reduced-motion: reduce) { html .panel, html .desc-card { transition: none !important; animation: none !important; } }

/* Computers: the chart rests in the middle; when a table opens on the right (Aspects, a planet or an aspect) it glides to the left
   (side-on). Each section of the list is its own table. (Quiet, which cleared them like sand, removed 2026-10-25.) */
@media (min-width: 761px) {
  html:not(.app):not(.embed) { --side-top: calc(var(--tb-h, 60px) + 64px); }
  html:not(.app):not(.embed) .main .wheel { justify-self: center !important; }
  html.side-on:not(.app):not(.embed) .main .wheel { justify-self: start !important; }
  html:not(.app):not(.embed) .panel { top: var(--side-top) !important; background: transparent !important; border: 0 !important;
    box-shadow: none !important; border-radius: 0 !important; padding: 0 6px 0 0 !important; }
  html:not(.app):not(.embed) .asp-body .aspects-sec { padding: 0 !important; gap: 14px !important; border-top: 0 !important; }
  html:not(.app):not(.embed) .asp-col:not([hidden]) { background: var(--card); border: 1px solid var(--line); border-radius: 18px;
    box-shadow: var(--sh-card); padding: 18px 18px 14px; }
  html:not(.app):not(.embed) .desc-veil { top: var(--side-top) !important; }
}

/* Computers: a larger clock, reaching further left, and the open charts' names at the top left, under the menu bar
   (Emilian, 2026-10-02: "Make the clock larger on the desktop version towards the left. The active charts move to the top left,
   beneath the menu bar"). The names no longer take room above the wheel, so the wheel fills the window height. */
@media (min-width: 761px) {
  /* a bit smaller and a touch lower, clear of the top strip (2026-10-23, Emilian: "on desktop, make the clock a bit smaller,
     bring it down a touch from the top bar"): the wheel leaves 64px of the window height free (was 24px), the top padding 28px (was 8px) */
  html:not(.app):not(.embed) { --wheel-in: 16px; --wheel-vgap: 64px; }
  html:not(.app):not(.embed) .main { padding: 28px var(--side-in) 12px var(--wheel-in) !important; }
  html:not(.app):not(.embed) #svg, html:not(.app):not(.embed):has(#chartBar:not([hidden])) #svg {
    width: min(calc(100vw - var(--wheel-in) - var(--side-in) - var(--side-w) - 24px), calc(100vh - var(--tb-h, 60px) - var(--wheel-vgap))) !important; }
  html:not(.app):not(.embed) .chart-bar { position: fixed !important; z-index: 35; top: calc(var(--tb-h, 60px) + 14px); left: var(--wheel-in);
    right: auto; width: auto; max-width: min(380px, 30vw); margin: 0 !important; padding: 0 !important; }
}
/* The clock in the middle of the screen on computers (2026-10-06, Emilian: "Center clock in desktop interface"): with no table open on
   the right, the left padding matches the right one, so the wheel sits on the screen's centre line (it was 16px from the left against
   the wider right padding, so it sat left of centre: ~60px at 1470 wide, ~170px at 1920). A table opening still glides it left (side-on). */
@media (min-width: 761px) {
  html:not(.app):not(.embed):not(.side-on) .main { padding-left: var(--side-in) !important; }
  /* the Journal open on the left: the wheel glides to the right so they sit side by side (2026-10-06, Emilian: "When journal is
     opened, make the wheel spin to the right so you can look at them side by side") */
  html.side-left:not(.side-on):not(.app):not(.embed) .main .wheel { justify-self: end !important; }
  /* Charts open: the wheel sits in the space right of the 480px panel (2026-10-22) */
  html.side-ch:not(.side-left):not(.side-on):not(.app):not(.embed) .main { padding-left: calc(min(480px, 100vw - 32px) + 40px) !important; padding-right: 16px !important; }
  html.side-ch:not(.side-left):not(.side-on):not(.app):not(.embed) .main .wheel { justify-self: center !important; }
  html.side-ch:not(.side-left):not(.side-on):not(.app):not(.embed) #svg { width: min(calc(100vw - min(480px, 100vw - 32px) - 72px), calc(100vh - var(--tb-h, 60px) - var(--wheel-vgap))) !important; }
  /* Journal half the page, and the split between it and the chart can be dragged (2026-10-06, Emilian: "Make the journal larger.
     Have it take up half the page. Then, allow a user to proportion left to right"): the Journal is --jw wide (half the window to
     start, remembered in zs.journalW as a share of the window); the chart fills the rest, centred in it, as large as fits. */
  html.side-left:not(.app):not(.embed) #journal.zsj.zst { width: var(--jw, calc(50vw - 24px)) !important; left: 16px !important; right: auto !important; }
  html.side-left:not(.side-on):not(.app):not(.embed) .main { padding-left: calc(var(--jw, calc(50vw - 24px)) + 32px) !important; padding-right: 16px !important; }
  html.side-left:not(.side-on):not(.app):not(.embed) .main .wheel { justify-self: center !important; }
  html.side-left:not(.side-on):not(.app):not(.embed) #svg, html.side-left:not(.side-on):not(.app):not(.embed):has(#chartBar:not([hidden])) #svg {
    width: min(calc(100vw - var(--jw, calc(50vw - 24px)) - 56px), calc(100vh - var(--tb-h, 60px) - var(--wheel-vgap))) !important; }
  .j-split { display: none; }
  html.side-left:not(.app):not(.embed) .j-split { display: block; position: fixed; z-index: 46; top: calc(var(--tb-h, 60px) + 8px); bottom: 16px;
    left: calc(16px + var(--jw, calc(50vw - 24px)) + 2px); width: 14px; cursor: col-resize; touch-action: none; }
  .j-split::after { content: ""; position: absolute; left: 5px; top: 50%; width: 4px; height: 44px; margin-top: -22px; border-radius: 2px;
    background: color-mix(in srgb, var(--text) 22%, transparent); transition: background-color .2s ease, height .2s cubic-bezier(.32,.72,0,1), margin-top .2s ease; }
  .j-split:hover::after, html.j-dragging .j-split::after { background: var(--accent); height: 64px; margin-top: -32px; }
  html.j-dragging, html.j-dragging * { cursor: col-resize !important; user-select: none !important; }
}

/* Computers: Charts flush left in the menu (Emilian, 2026-10-02), first in the strip, lined up with the clock's left edge */
@media (min-width: 761px) {
  html:not(.app):not(.embed) .timebar { padding-left: var(--wheel-in, 16px) !important; }
  html:not(.app):not(.embed) .timebar #chartsBtn { order: -1 !important; margin-right: 14px !important; padding-left: 0 !important; }
  html:not(.app):not(.embed) .timebar .side-btn { order: -1 !important; margin-right: 14px !important; padding-left: 0 !important; }
  html:not(.app):not(.embed) .timebar .side-btn[aria-expanded="true"] { color: var(--accent) !important; }
  /* Aspects out of the top strip for now; Toggle planets sits there instead (2026-10-04, Emilian) */
  html:not(.app):not(.embed) .timebar #aspTop { display: none !important; }
  /* Toggle planets is the icon alone in the strip (2026-10-04, Emilian: "does not need the text next to it"); the name stays for screen readers */
  html:not(.app):not(.embed) .timebar .pl-word { display: none; }
  /* search right after the date and time, the refresh button after it (2026-10-04, Emilian: "Place search button next to time") */
  html:not(.app):not(.embed) .timebar #findBtn { position: absolute !important; top: 50%; transform: translateY(-50%) !important;
    left: calc(50% + var(--when-w, 240px) / 2 + 16px); margin: 0 !important; }   /* 16px from the date since 2026-11-16 (was 4px) */
  /* the refresh button just left of the back arrow (2026-10-04, Emilian: "Place refresh button next to left arrow") */
  html:not(.app):not(.embed) .timebar .now { left: calc(var(--x-back, 30%) - 42px) !important; }
  html:not(.app):not(.embed) .timebar .pl-wrap { margin-left: auto !important; }
  /* Toggle planets right after search (2026-10-09, Emilian: "bring toggle next to search"); no transform here, so its menu stays fixed
     to the window */
  html:not(.app):not(.embed) .timebar .pl-wrap { position: absolute !important; top: 0; bottom: 0; display: flex; align-items: center; margin: 0 !important;
    left: calc(50% + var(--when-w, 240px) / 2 + 4px + var(--find-w, 36px) + 2px); }
  html:not(.app):not(.embed) .timebar #profBtn { margin-left: auto !important; }
  /* the planet switches in the top strip: the menu as wide as its six columns need */
  html:not(.app):not(.embed) .timebar .pl-menu:not([hidden]) { width: max-content !important; max-width: calc(100vw - 32px); }
  /* seven to a row, so Saturn sits with the other traditional planets (2026-10-04, Emilian) */
  html:not(.app):not(.embed) .timebar .pl-menu:not([hidden]) { grid-template-columns: repeat(7, 1fr) !important; }
  /* flush right, just under the strip (2026-10-07, Emilian: "toggle planets button should open directly under toggle planets,
     so part of the menu will open flush right. Basically, bring the whole menu flush right") */
  html:not(.app):not(.embed) body .timebar .pl-menu { position: fixed !important; left: min(calc(50% + var(--when-w, 240px) / 2 + var(--find-w, 36px) - 6px), calc(100vw - 490px)) !important; right: auto !important; /* under Toggle, now beside search (2026-10-09) */
    top: calc(var(--tb-h, 58px) + 2px) !important; transform-origin: 100% 0; }
  /* computers only: each planet a fixed width, rounder card */
  html:not(.app):not(.embed) body .timebar .pl-menu label.pl-tog { width: 64px; }
  html:not(.app):not(.embed) body .timebar .pl-menu:not([hidden]) { border-radius: 16px !important; }
}/* The planets menu in the app's quieter look (2026-10-07, Emilian asked for a recommendation, then "yes make a preview"):
   no tile boxes; each planet is its symbol and name; shown = full colour with a soft halo of its own colour, hidden = dim;
   a hairline between the traditional seven and the rest; More as a small gold word. Card like the other menus:
   frosted page colour by day, the dark tone with the gold edge and glow at night.
   Phones and the app too (2026-10-07, Emilian: "ship this change to mobile as well"). */
html:not(.embed) body .timebar .pl-menu:not([hidden]) { column-gap: 0 !important; row-gap: 0 !important; padding: 10px 12px !important;
  background: color-mix(in srgb, color-mix(in srgb, var(--pgl, var(--card)) 82%, #fff) 92%, transparent) !important;
  -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
  border: 1px solid color-mix(in srgb, var(--pgl, var(--card)) 70%, #6b5a3a) !important; box-shadow: 0 10px 28px rgba(40, 28, 10, .14) !important; }
html[data-theme="dark"]:not(.embed) body .timebar .pl-menu:not([hidden]) { background: color-mix(in srgb, color-mix(in srgb, var(--pagebg, #121216) 93%, var(--zs-gold, #b89a5e) 7%) 94%, transparent) !important;
  border-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 55%, transparent) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--zs-gold, #b89a5e) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--zs-gold, #b89a5e) 12%, transparent) !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog { border: 0 !important; border-radius: 0 !important; background: transparent !important; box-shadow: none !important;
  padding: 10px 0 9px !important; gap: 6px !important; opacity: 1 !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog:nth-child(n+8) { border-top: 1px solid color-mix(in srgb, var(--text-3) 30%, transparent) !important; }
html[data-theme="dark"]:not(.embed) body .timebar .pl-menu label.pl-tog:nth-child(n+8) { border-top-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 22%, transparent) !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog .pg { width: 24px !important; height: 24px !important; border-radius: 50%; transition: opacity .25s, filter .25s !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog .pl-name { font-size: 10.5px !important; letter-spacing: .03em !important; transition: opacity .25s, color .25s; }
html:not(.embed) body .timebar .pl-menu label.pl-tog.on:not(.pl-more) .pg { filter: drop-shadow(0 0 5px color-mix(in srgb, var(--pc, var(--accent)) 70%, transparent)); }
html:not(.embed) body .timebar .pl-menu label.pl-tog.on:not(.pl-more) .pl-name { color: var(--text) !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog:not(.on):not(.pl-more) .pg { opacity: .28; filter: saturate(.5); }
html:not(.embed) body .timebar .pl-menu label.pl-tog:not(.on):not(.pl-more) .pl-name { opacity: .45; }
html:not(.embed) body .timebar .pl-menu label.pl-tog:hover .pg { opacity: 1 !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog.pl-more svg, html:not(.embed) body .timebar .pl-menu label.pl-tog.pl-more .pg { display: none !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog.pl-more { justify-content: center !important; }
html:not(.embed) body .timebar .pl-menu label.pl-tog.pl-more .pl-name { color: var(--zs-gold, var(--accent)) !important; font-size: 11px !important; letter-spacing: .12em !important; text-transform: uppercase; opacity: 1 !important; }
html:not([data-theme="dark"]):not(.embed) body .timebar .pl-menu label.pl-tog.pl-more .pl-name { color: var(--accent) !important; }
/* phones and the app: the same card as on computers (2026-10-07 16:20, Emilian: "ship planet toggle menu changes from desktop to mobile"):
   the chosen page colour (night: the dark tone + gold), as solid as on computers, 16px corners. (Was a little see-through, 2026-10-06.) */
@media (max-width: 760px) { html:not(.embed) body .timebar .pl-menu:not([hidden]) { border-radius: 16px !important; } }
html.app:not(.embed) body .timebar .pl-menu:not([hidden]) { border-radius: 16px !important; }


/* Computers: back · Day · forward sit just left of the centred date and time (Emilian, 2026-10-02). Positions come from
   placeNav() in the script (measured from the date's left edge), so they stay tight to it whatever the date's width. */
@media (min-width: 761px) {
  html:not(.app):not(.embed) .timebar #tBack, html:not(.app):not(.embed) .timebar .units-slot, html:not(.app):not(.embed) .timebar #tFwd {
    position: absolute !important; top: calc(50% - 23px); margin: 0 !important; }
  html:not(.app):not(.embed) .timebar #tBack { left: var(--x-back, 30%); }
  html:not(.app):not(.embed) .timebar .units-slot { left: var(--x-unit, 34%); }
  html:not(.app):not(.embed) .timebar #tFwd { left: var(--x-fwd, 38%); }
  /* in the open step-size row the chosen unit is filled gold, so its word is light (it was gold on gold) */
  html:not(.app):not(.embed) .timebar .units[data-open="true"] button[aria-pressed="true"] { color: var(--on-accent) !important; }
}

/* Computers: Charts opens a vertical menu under the Charts button, down the left side, instead of a full screen
   (Emilian, 2026-10-02). Same list and New chart form inside; it scrolls on its own; × or a click elsewhere closes it. */
@media (min-width: 761px) {
  html:not(.app):not(.embed) .charts { inset: auto; top: calc(var(--tb-h, 60px) + 8px); left: var(--wheel-in, 16px); bottom: 16px;
    width: min(380px, calc(100vw - 32px)); padding: 18px 18px 20px; background: var(--card); border: 1px solid var(--line);
    border-radius: 18px; box-shadow: var(--sh-pop, 0 16px 40px rgba(0,0,0,.18)); z-index: 45;
    animation: sideInLeft .32s cubic-bezier(.32,.72,0,1) both !important; }
  html:not(.app):not(.embed) .charts .ch-in { max-width: none; }
  html:not(.app):not(.embed) .timebar #chartsBtn[aria-expanded="true"] { color: var(--accent) !important; }
}
@keyframes sideInLeft { from { opacity: 0; transform: translateX(-24px); } to { opacity: 1; transform: none; } }
/* the Charts panel in the chosen colour on computers (2026-10-07 20:36, Emilian: "Make charts button fit current color theme"), like the
   planets menu: the page's own colour by day, the dark tone with 7% gold and the gold edge and glow at night */
@media (min-width: 761px) {
  html:not(.app):not(.embed) body #charts.charts { background: color-mix(in srgb, color-mix(in srgb, var(--pgl, var(--card)) 82%, #fff) 96%, transparent) !important;
    -webkit-backdrop-filter: blur(16px); backdrop-filter: blur(16px);
    border: 1px solid color-mix(in srgb, var(--pgl, var(--card)) 70%, #6b5a3a) !important; box-shadow: 0 10px 28px rgba(40, 28, 10, .14) !important; }
  html[data-theme="dark"]:not(.app):not(.embed) body #charts.charts { background: color-mix(in srgb, var(--pagebg, #121216) 93%, var(--zs-gold, #b89a5e) 7%) !important;
    border-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 55%, transparent) !important;
    box-shadow: 0 0 14px color-mix(in srgb, var(--zs-gold, #b89a5e) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--zs-gold, #b89a5e) 12%, transparent) !important; }
}

/* Step-size row (Hour · Day · Week · Month · Year) in the site's own style (Emilian, 2026-10-02: "more in line with the rest of
   the website"): like the switches in Settings and the site's buttons: one thin-outlined pill on the card colour, flat words
   inside, the chosen one filled gold (dark mode: a soft gold tint with gold words). No raised, shaded buttons. Phones and computers. */
html:root .timebar .units[data-open="true"] { background: var(--card) !important; border: 1px solid var(--line) !important;
  border-radius: 10px !important; padding: 3px !important; gap: 0 !important; box-shadow: var(--sh-pop, 0 10px 28px rgba(0,0,0,.12)) !important; }
html:root .timebar .units[data-open="true"] button { background: transparent !important; border: 0 !important; box-shadow: none !important;
  transform: none !important; border-radius: 10px !important; height: 38px !important; min-height: 38px !important; min-width: 0 !important;
  padding: 0 14px !important; font: 500 14px var(--f-body) !important; color: var(--text-2) !important; }
@media (hover: hover) { html:root .timebar .units[data-open="true"] button:hover { color: var(--text) !important; } }
html:root .timebar .units[data-open="true"] button[aria-pressed="true"] { background: var(--accent) !important; color: var(--on-accent, #fff) !important; font-weight: 600 !important; }
:root[data-theme="dark"] .timebar .units[data-open="true"] button[aria-pressed="true"] { background: color-mix(in srgb, var(--accent) 22%, transparent) !important; color: var(--accent) !important; }

/* Profiles (Emilian, 2026-10-02: "Make a profile button, allow users to create profiles"): email + password; a profile keeps
   the person's own chart, their cloud charts and their clock settings. Computers: a person icon in the strip, just before
   Settings, and Settings flush right. Phones and the app: a Profile row at the top of Settings. */
.prof-btn { display: none !important; }
@media (min-width: 761px) {
  html:not(.app):not(.embed) .timebar .prof-btn { display: inline-flex !important; order: 13 !important; }
  html:not(.app):not(.embed) .timebar #setBtn { order: 14 !important; }
  html:not(.app):not(.embed) .timebar { padding-right: 16px !important; }
  html:not(.app):not(.embed) .sheet-prof { display: none !important; }
}
html:not(.app):not(.embed) .timebar .prof-btn.on { color: var(--accent) !important; }
.sheet-prof { display: flex; align-items: center; gap: 12px; width: 100%; min-height: 52px; padding: 0 14px; margin: 4px 0 6px;
  border: 1px solid var(--line); border-radius: 14px; background: transparent; color: var(--text); font: 500 16px var(--f-body); cursor: pointer; text-align: left; }
.sheet-prof svg { width: 22px; height: 22px; flex: none; color: var(--accent); }
.sheet-prof span { flex: 1; }
.sheet-prof .sp-chev { width: 14px; height: 14px; color: var(--text-3); }
.prof-veil { position: fixed; inset: 0; z-index: 70; display: flex; align-items: center; justify-content: center; padding: 16px;
  background: rgba(20,18,14,.38); animation: gentleFade .32s cubic-bezier(.32,.72,0,1) both; }
.prof-veil[hidden] { display: none !important; }
.prof-card { position: relative; width: min(400px, 100%); max-height: calc(100% - 16px); overflow-y: auto; padding: 26px 22px 22px;
  background: var(--card); color: var(--text); border: 1px solid var(--line); border-radius: 20px; box-shadow: var(--sh-pop, 0 16px 40px rgba(0,0,0,.25));
  display: flex; flex-direction: column; gap: 14px; animation: gentleIn .32s cubic-bezier(.32,.72,0,1) both; }
.prof-card h2 { font-family: var(--f-display); font-weight: 500; font-size: 28px; margin: 0 40px 0 0; }
.prof-card > div { display: flex; flex-direction: column; gap: 14px; }
.pf-note { margin: 0; color: var(--text-2); font-size: 15px; line-height: 1.45; }
.pf-form { display: flex; flex-direction: column; gap: 12px; }
.pf-form input, .pf-row select { min-height: 46px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--bg); color: var(--text); font: 16px var(--f-body); width: 100%; }
.pf-form .ch-field { display: flex; flex-direction: column; gap: 6px; }
.pf-msg { margin: 0; min-height: 0; color: #a3402c; font-size: 14px; }
.pf-msg:empty { display: none; }
.pf-forgot { align-self: center; margin: 2px auto 0; padding: 8px 10px; min-height: 40px; border: 0; background: none; color: var(--text-2, #6b6259); font: inherit; font-size: 14.5px; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-beta { margin: 0; padding: 10px 0 10px 12px; border-left: 2px solid var(--zs-gold, #b89a5e); font-size: 14.5px; line-height: 1.45; }
:root[data-theme="dark"] .pf-msg { color: #e59a86; }
#pfMsg2 { color: var(--text-2); }
.pf-go { min-height: 48px; border: 0; border-radius: 10px; background: var(--accent); color: var(--on-accent, #fff); font: 600 16px var(--f-body); cursor: pointer; }
.pf-go[disabled] { opacity: .6; cursor: default; }
.pf-line { min-height: 44px; padding: 0 18px; border: 1px solid var(--accent); border-radius: 10px; background: transparent; color: var(--accent); font: 600 15px var(--f-body); cursor: pointer; white-space: nowrap; }
.pf-out { align-self: flex-start; border-color: var(--line); color: var(--text-2); font-weight: 500; }
/* delete my account (2026-10-06) and the legal links under the profile */
.pf-del { margin-top: 18px; padding-top: 14px; border-top: 1px solid var(--line); display: flex; flex-direction: column; gap: 10px; }
.pf-del-open { align-self: flex-start; background: none; border: 0; padding: 6px 0; font: inherit; font-size: 13.5px; color: var(--text-3, var(--text-2)); text-decoration: underline; text-underline-offset: 3px; cursor: pointer; }
.pf-del-box { display: flex; flex-direction: column; gap: 10px; }
.pf-del-row { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.pf-del-go { min-height: 44px; padding: 0 18px; border-radius: 10px; border: 0; font: inherit; font-weight: 600; cursor: pointer; background: #9b2c1f; color: #fff7f2; }
:root[data-theme="dark"] .pf-del-go { background: #c4513f; color: #1b0f0c; }
.pf-del-go:disabled { opacity: .55; cursor: default; }
.pf-msg.ok { color: var(--text-2) !important; }
.pf-legal { margin: 18px 0 0; font-size: 13px; color: var(--text-3, var(--text-2)); }
.pf-legal a { color: inherit; text-underline-offset: 3px; }
.pf-sec { display: flex; flex-direction: column; gap: 8px; padding-top: 12px; border-top: 1px solid var(--line); }
/* the account box in the menu colour with the cards' lift, and condensed (2026-10-22 13:11-13:12, Emilian: "account menu is not matching
   our themes anymore, fix", "the menu is also too long. can you condense it please?") */
html:root .prof-card { background: var(--zs-menu, var(--card)); border-color: transparent; gap: 10px; padding: 22px 22px 18px;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.55), 0 2px 5px rgba(60,40,10,.08), 0 14px 34px rgba(60,40,10,.16); }
html:root[data-theme="dark"] .prof-card { box-shadow: inset 0 1px 0 rgba(255,255,255,.08), 0 3px 8px rgba(0,0,0,.5), 0 18px 48px rgba(0,0,0,.85); }
.prof-card .pf-sec { gap: 6px; padding-top: 10px; border-top-color: color-mix(in srgb, var(--zs-gold, #b89a5e) 28%, transparent); }
.prof-card .pf-form input, .prof-card .pf-row input { background: color-mix(in srgb, var(--zs-menu, var(--card)) 70%, var(--bg)); }
.pf-who { gap: 0 !important; }
.pf-who .pf-name { font: 500 22px/1.2 var(--f-display); margin: 0; }
.pf-who .pf-mail { font-size: 14px; color: var(--text-2); margin: 2px 0 0; }
#pfIn > .pf-sec:has(#pfScreenIn) { flex-direction: row; align-items: center; gap: 12px; }
#pfIn > .pf-sec:has(#pfScreenIn) > .ch-label { flex: none; margin: 0; }
#pfIn > .pf-sec:has(#pfScreenIn) .pf-screen { flex: 1; min-width: 0; }
#pfIn .pf-screen input { min-height: 40px; }
#pfIn > .pf-home { flex-direction: row; align-items: center; gap: 12px; }
#pfIn > .pf-home > .ch-label { flex: none; margin: 0; }
#pfIn > .pf-home .pf-home-slot { flex: 1; min-width: 0; }
.pf-jr .pf-learn-note { font-size: 12.5px; }
.pf-foot { display: flex; flex-wrap: wrap; align-items: center; gap: 6px 16px; margin-top: 4px; padding-top: 12px; border-top: 1px solid color-mix(in srgb, var(--zs-gold, #b89a5e) 28%, transparent); }
.pf-foot .pf-out { min-height: 38px; }
.pf-foot .pf-del { margin: 0; padding: 0; border: 0; }
.pf-foot .pf-del:has(.pf-del-box:not([hidden])) { flex-basis: 100%; }
/* every word in the foot row the same style and height: plain underlined words, no pill (2026-10-22 13:18, Emilian: "these should all be the
   same style and height") */
.pf-foot .pf-out, .pf-foot .pf-del-open, #pfIn:not([hidden]) ~ .pf-legal, #pfIn:not([hidden]) ~ .pf-legal a { height: 32px; min-height: 32px; padding: 0; margin: 0;
  border: 0; border-radius: 0; background: none; font: 400 14px/32px var(--f-body); color: var(--text-2); text-decoration: underline; text-underline-offset: 3px; }
.pf-foot .pf-out { font-weight: 400; }
#pfIn:not([hidden]) ~ .pf-legal { margin: -41px 0 0 auto; align-self: flex-end; text-decoration: none; }
#pfIn:not([hidden]) ~ .pf-legal a { display: inline; }
.pf-row { display: flex; gap: 8px; align-items: center; }
.pf-row select { flex: 1; min-width: 0; }
.pf-me { display: flex; align-items: center; gap: 10px; font-size: 17px; }
.pf-me:empty { display: none; }
.pf-me b { font-family: var(--f-display); font-size: 21px; font-weight: 600; }
.pf-me .pf-line { margin-left: auto; min-height: 38px; }
.pf-screen { display: flex; gap: 8px; align-items: center; }
.pf-screen input { flex: 1; min-width: 0; height: 44px; padding: 0 14px; border: 1px solid var(--line); border-radius: 12px; background: var(--card); color: var(--text); font: 16px var(--f-body); }
.pf-screen input:focus { outline: none; border-color: var(--accent); }
/* no "You" tag on your own chart (2026-10-05, Emilian: "Remove the YOU from my chart"); it still sits first on every Charts page */
.ch-you { display: none !important; }
.ch-you { margin-left: 8px; padding: 1px 8px; border-radius: 10px; border: 1px solid var(--accent); color: var(--accent); font-size: 11px; letter-spacing: .08em; text-transform: uppercase; }
.ch-store button[disabled] { opacity: .45; cursor: default; }

/* Location at the top left, under the strip, beneath the Day button (2026-10-02, Emilian: "Take that off and put it at the
   top left beneath the day button"; the first-visit "Where are you?" card no longer opens). A quiet line: pin + the place,
   or "Add location" in gold while none is set. Its menu opens just under it. The view's name ("Transits") and an open
   chart's names move down one line to make room (--loc-h). */
:root { --loc-h: 32px; }
html.embed { --loc-h: 0px; }
.loc-dock { position: fixed; z-index: 36; top: calc(var(--tb-h, 60px) + 8px); left: 16px; }
html.embed .loc-dock { display: none; }
@media (min-width: 761px) { html:not(.app) .loc-dock { left: var(--wheel-in, 16px); top: calc(var(--tb-h, 60px) + 10px); } }
html:root .loc-dock .loc-wrap { position: relative; display: inline-block; }
html:root .loc-dock #locBtn { display: inline-flex; align-items: center; gap: 6px; width: auto; height: auto; min-height: 28px;
  padding: 3px 12px 3px 10px; border-radius: 10px !important; box-shadow: none; font-family: var(--f-body);
  font-size: 13.5px; font-weight: 500; color: var(--muted); cursor: pointer; }
html:root .loc-dock #locBtn span { display: inline; max-width: min(240px, 60vw); overflow: hidden; text-overflow: ellipsis; white-space: nowrap; }
html:root .loc-dock #locBtn svg { width: 14px; height: 14px; color: var(--accent); }
html:root .loc-dock #locBtn:hover, html:root .loc-dock #locBtn[aria-expanded="true"] { color: var(--text); }
/* Dark mode only: no outline, just the gold pin and the place (2026-10-02, Emilian: "remove the golden square outline";
   light mode keeps its outlined pill) */
:root[data-theme="dark"] .loc-dock #locBtn, :root[data-theme="dark"] .loc-dock #locBtn:hover, :root[data-theme="dark"] .loc-dock #locBtn[aria-expanded="true"] {
  padding: 3px 4px; border: 0 !important; border-radius: 0 !important; background: none !important; box-shadow: none !important; }
html:root .loc-dock #locBtn:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
html:root .loc-dock #locBtn.unset { color: var(--accent); }
html:root .loc-dock .loc-menu { position: absolute; top: calc(100% + 6px); left: 0; right: auto; width: min(320px, calc(100vw - 32px)); }
html:not(.embed) .sky-title, html:not(.embed) .chart-bar { margin-top: var(--loc-h) !important; }
/* Phones and the app (2026-10-02, Emilian: "Once location is chosen, remove location button", "Bring Transits up to top"):
   with a place set the top-left location line goes (its button moves into Settings, first row, to change it) and the view's
   name / chart names move back up under the strip. "Add location" still shows there while no place is set. */
/* Phones and the app, 2026-10-03 (Emilian: "Remove the add location button", "Put Transits directly under the top bar"):
   no location line at the top at all; Location is always the first row of Settings; Transits / the chart's name sit 6px under
   the strip. */
@media (max-width: 760px) { html:root { --loc-h: 0px; } .loc-dock { display: none !important; } }
html.app:root { --loc-h: 0px; } html.app .loc-dock { display: none !important; }
html.loc-set:root { --loc-h: 0px; } html.loc-set .loc-dock { display: none !important; }  /* computers: gone once a place is set */
/* Phones and the app (2026-10-02, Emilian: "a soft line above the upper menu at the perimeter with the phones clock and
   battery and camera strip"): a faint line where the iPhone status bar ends and the top strip begins. */
@media (max-width: 760px) { .timebar::before { content: ""; position: absolute; left: 0; right: 0; top: var(--sat); height: 1px;
  background: color-mix(in srgb, var(--line) 70%, transparent); pointer-events: none; } }
.app .timebar::before { content: ""; position: absolute; left: 0; right: 0; top: var(--sat); height: 1px;
  background: color-mix(in srgb, var(--line) 70%, transparent); pointer-events: none; }
@media (min-width: 761px) { html:not(.app):not(.embed) .chart-bar { top: calc(var(--tb-h, 60px) + 14px + var(--loc-h)) !important; margin-top: 0 !important; } }

/* Dark mode only: no outline or shadow around the chart (2026-10-02, Emilian: "I meant the gold outline around the chart").
   The chart's card has the page's own colour, so the wheel now sits straight on the page. Light mode unchanged. */
:root[data-theme="dark"] .wheel { border-color: transparent !important; box-shadow: none !important; }

/* Settings without bubbles (2026-10-03, Emilian: "Everything in Settings feels too large. I don't like those huge bubbles
   around things... Just show icons for each thing. Location icon and next to it Ansbach. Houses icon and next to it,
   Placidus, which can be clicked and changed to whole sign, Zodiac icon, same as previous, light mode icon, clickable to
   dark mode"): each row is one gold icon and the current choice in plain words; tapping the words changes it. */
html:root #settingsSheet { gap: 0 !important; }
/* thin, to match the icon rows (2026-10-03, Emilian: "Make the settings menu thin to match, it's toooooo wide now") */
html:root body #settingsSheet { width: min(250px, calc(100% - 32px)) !important; padding: 14px 18px 12px !important; }
/* centred on the whole screen, not between the menus (2026-10-03, Emilian: "Open settings totally centered on the screen") */
@media (max-width: 760px) { html:root body #settingsSheet { top: 0 !important; bottom: 0 !important; max-height: calc(100dvh - 32px) !important; } }
html.app:root body #settingsSheet { top: 0 !important; bottom: 0 !important; max-height: calc(100dvh - 32px) !important; }
html:root #settingsSheet > .sheet-prof { padding-left: 4px !important; }
html:root body #settingsSheet .sheet-prof > svg:first-child { margin-left: 4px !important; }   /* its icon in line with the rows below (2026-10-04, Emilian: "Account icon is not centered with all other icons") */
html:root #settingsSheet .sheet-x { top: 10px !important; right: 10px !important; }
html:root #settingsSheet .sheet-row, html:root #settingsSheet .sheet-prof { min-height: 42px !important; }
html:root #settingsSheet .sheet-label { position: absolute !important; width: 1px; height: 1px; overflow: hidden; clip: rect(0 0 0 0); white-space: nowrap; }
html:root #settingsSheet .sheet-row { flex-direction: row !important; align-items: center !important; gap: 14px !important; min-height: 48px; padding: 2px 4px !important; margin: 0 !important; }
html:root #settingsSheet .sheet-slot { flex: 1; min-width: 0; }
html:root #settingsSheet .st-ico { flex: none; width: 22px; height: 22px; color: var(--accent); display: grid; place-items: center; }
html:root #settingsSheet .st-ico svg { width: 22px; height: 22px; }
html:root #settingsSheet .seg { flex: 1; display: flex; border: 0 !important; background: transparent !important; box-shadow: none !important; padding: 0 !important; border-radius: 0 !important; }
html:root #settingsSheet .seg button { display: none !important; }
html:root #settingsSheet .seg button[aria-pressed="true"] { display: block !important; flex: 1; text-align: left; padding: 10px 0 !important; margin: 0 !important; border: 0 !important;
  background: transparent !important; box-shadow: none !important; border-radius: 0 !important; color: var(--text) !important; font: 500 16px var(--f-body) !important; cursor: pointer; }
html:root #settingsSheet .sheet-prof, html:root #settingsSheet .loc-wrap > button, html:root #settingsSheet #locBtn, html:root #settingsSheet .toggle {
  width: 100% !important; min-height: 44px !important; height: auto !important; justify-content: flex-start !important; gap: 14px !important; padding: 10px 0 !important; margin: 0 !important;
  border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important; color: var(--text) !important; font: 500 16px var(--f-body) !important; }
html:root #settingsSheet .sheet-prof > svg:first-child, html:root #settingsSheet #locBtn svg, html:root #settingsSheet .toggle svg { width: 22px !important; height: 22px !important; color: var(--accent) !important; flex: none; }
html:root #settingsSheet .sheet-prof .sp-chev { display: none !important; }
html:root #settingsSheet .loc-wrap, html:root #settingsSheet .sheet-slot[data-slot="theme"] { width: 100%; }
html:root #settingsSheet .sheet-row:has(.sheet-prof), html:root #settingsSheet > .sheet-prof { margin-bottom: 0 !important; }
/* Language in the same plain style: globe + the language's own name; the list opens right under it, plain names, the chosen one gold */
html:root #settingsSheet button, html:root #settingsSheet button > span { text-align: left !important; }   /* every row's words start right after its icon, in any language */
html:root #settingsSheet .lang-row { align-items: flex-start !important; }
html:root #settingsSheet .lang-row .st-ico { margin-top: 11px; }
html:root #settingsSheet .lang-wrap { flex: 1; min-width: 0; }
html:root #settingsSheet .lang-btn { width: 100%; height: auto; min-height: 44px; padding: 10px 0; border: 0; border-radius: 0; background: transparent; color: var(--text); font: 500 16px var(--f-body); }
/* the languages open in the right half of the card, the left half darkens (2026-10-03, Emilian) */
html:root #settingsSheet .lang-dim { position: absolute; left: 0; width: 50%; z-index: 6; background: rgba(0, 0, 0, .72); cursor: pointer; }
html:root #settingsSheet .lang-side { position: absolute; right: 0; width: 50%; z-index: 7; box-sizing: border-box; padding: 14px 10px 14px 16px;
  display: flex; flex-direction: column; justify-content: center; gap: 2px; overflow-y: auto;
  background: color-mix(in srgb, var(--card) 94%, var(--accent) 6%); border-left: 1px solid color-mix(in srgb, var(--accent) 35%, var(--line)); }
html:root #settingsSheet .lang-side[hidden], html:root #settingsSheet .lang-dim[hidden] { display: none; }
html:root #settingsSheet .lang-side button { height: 42px; flex: none; padding: 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important;
  color: var(--text-2) !important; font: 500 16px var(--f-body) !important; text-align: left !important; cursor: pointer; }
html:root #settingsSheet .lang-side button[aria-selected="true"] { color: var(--accent) !important; }
html:root #settingsSheet .lang-side.lined { display: block; padding: 0; }
html:root #settingsSheet .lang-side.lined button { position: absolute; left: 16px; right: 8px; }   /* placed level with the rows (fit() in i18n.js) */
/* while a list is open, the icon of its row glows above the darkened half, nothing more (2026-10-04, Emilian: "When we click
   on English language, the planet icon should glow"; "There is no need for the word itself to be surrounded by white. Just
   the icon glows, nothing more"); the same for Language and Notifications (class nt-open, static/clock/notify.js) */
html:root #settingsSheet .lang-side { z-index: 8; }
/* the shade covers the whole card, under the panel too, so every word fades out evenly while the panel slides over it
   (2026-10-04, Emilian: "The words don't disappear uniformly") */
html:root #settingsSheet .lang-dim, html:root #settingsSheet .nt-dim { width: 100% !important; }
/* the darkened side shows only the open row's icon (2026-10-04, Emilian: "when opening the English or Notifications menu, or any
   menu thereafter, just show their glowing icon on the left, darken everything else in the left panel so that only the new open
   menu shows"): the darkening is solid (the card's colour under the same shade), and only the lifted icon sits above it */
html:root #settingsSheet .lang-dim { background: linear-gradient(rgba(0,0,0,.72), rgba(0,0,0,.72)), var(--bg) !important; }
html:root #settingsSheet .lang-row .st-ico, html:root #settingsSheet .nt-row .st-ico { position: relative; transition: color .32s cubic-bezier(.32,.72,0,1); }
html:root #settingsSheet.lang-lit .lang-row .st-ico, html:root #settingsSheet .nt-row.nt-open .st-ico { z-index: 7; }
/* no glow (Emilian: "that glow doesnt really fit our style"): the icon simply stays clear and gold above the darkened half */
/* light mode: the darkened half is near black there too, so the lifted icon takes the dark mode's lighter gold to read on it
   (2026-10-04, Emilian: "Dark mode is perfect. Light mode icon ... still a little ehh") */
html:root:not([data-theme="dark"]) #settingsSheet.lang-lit .lang-row .st-ico, html:root:not([data-theme="dark"]) #settingsSheet .nt-row.nt-open .st-ico { color: #c9a45c !important; }
/* Chart style: houses and zodiac in one row that opens to the side (2026-10-04, Emilian: "bring the placidus and tropical thing
   under one menu"); the same look as Notifications: the chosen one gold with a filled dot, the other faded with a ring */
html:root #settingsSheet .cs-wrap { flex: 1; min-width: 0; }
html:root #settingsSheet .cs-btn { width: 100%; min-height: 44px; padding: 10px 0; border: 0; border-radius: 0; background: transparent !important; box-shadow: none !important;
  color: var(--text) !important; font: 500 16px var(--f-body) !important; text-align: left !important; cursor: pointer; line-height: 1.25; }
html:root #settingsSheet .cs-side { width: 60%; gap: 2px; }
html:root #settingsSheet .cs-side button { height: 38px !important; display: flex; align-items: center; justify-content: space-between; gap: 8px; color: var(--text-3) !important; font: 500 15px var(--f-body) !important; }
html:root #settingsSheet .cs-side button[aria-checked="true"] { color: var(--accent) !important; }
html:root #settingsSheet .cs-side button[aria-checked="false"] { opacity: .62; }
html:root #settingsSheet .cs-side .nt-dot { flex: none; width: 8px; height: 8px; border-radius: 50%; box-sizing: border-box; border: 1.3px solid currentColor; background: transparent; transition: background-color .25s ease; }
html:root #settingsSheet .cs-side button[aria-checked="true"] .nt-dot { background: currentColor; }
/* Orbs and Settings in the app's own look (2026-10-09 23:37, Emilian: "make the orb menu fit the rest of the theme. And make the
   settings menu also adapt to the new theme... the height changes when changing the number, fix that and make everything steady"):
   Settings on phones and in the app is the menus' card (the chosen page colour by day, the dark tone with the gold edge and glow at
   night), and the lists that open beside a row (Chart style, Orbs, Language, Notifications) are the same colour as the card, not
   a grey of their own. In Orbs every part has a fixed size: the values sit in a fixed box in EB Garamond, the − and + are fine gold
   marks, and "Standard orbs" always keeps its room, so nothing shifts when a value changes. */
@media (max-width: 760px) { html:root:not([data-theme="dark"]) body #settingsSheet { background: color-mix(in srgb, var(--pgl, #f3ecdf) 92%, var(--zs-lift, #fff)) !important;
  border: 1px solid color-mix(in srgb, var(--pgl, #f3ecdf) 78%, #3a2a14) !important; box-shadow: 0 10px 30px rgba(60,45,20,.14) !important; } }
html:root.app:not([data-theme="dark"]) body #settingsSheet { background: color-mix(in srgb, var(--pgl, #f3ecdf) 92%, var(--zs-lift, #fff)) !important;
  border: 1px solid color-mix(in srgb, var(--pgl, #f3ecdf) 78%, #3a2a14) !important; box-shadow: 0 10px 30px rgba(60,45,20,.14) !important; }
@media (max-width: 760px) { html:root[data-theme="dark"] body #settingsSheet { background: color-mix(in srgb, var(--pagebg, #121216) 93%, var(--zs-gold, #b89a5e)) !important;
  border: 1px solid color-mix(in srgb, var(--zs-gold, #b89a5e) 38%, transparent) !important; box-shadow: 0 0 18px color-mix(in srgb, var(--zs-gold, #b89a5e) 14%, transparent) !important; } }
html:root.app[data-theme="dark"] body #settingsSheet { background: color-mix(in srgb, var(--pagebg, #121216) 93%, var(--zs-gold, #b89a5e)) !important;
  border: 1px solid color-mix(in srgb, var(--zs-gold, #b89a5e) 38%, transparent) !important; box-shadow: 0 0 18px color-mix(in srgb, var(--zs-gold, #b89a5e) 14%, transparent) !important; }
/* the side lists take the card's own colour */
html:root:not([data-theme="dark"]) body #settingsSheet .lang-side:not(.fold) { background: color-mix(in srgb, var(--pgl, #f3ecdf) 92%, var(--zs-lift, #fff)) !important;
  border-left: 1px solid color-mix(in srgb, var(--pgl, #f3ecdf) 70%, #3a2a14) !important; }
html:root[data-theme="dark"] body #settingsSheet .lang-side:not(.fold) { background: color-mix(in srgb, var(--pagebg, #121216) 93%, var(--zs-gold, #b89a5e)) !important;
  border-left: 1px solid color-mix(in srgb, var(--zs-gold, #b89a5e) 30%, transparent) !important; }
/* the home location in the Profile: the pin and the place as one plain line, its search opening right under it */
.pf-home[hidden] { display: none; }
.pf-home .loc-wrap { display: block; position: static; }
.pf-home #locBtn { width: 100%; min-height: 44px; height: auto; justify-content: flex-start; gap: 10px; padding: 8px 0; border: 0 !important; border-radius: 0 !important;
  background: transparent !important; box-shadow: none !important; color: var(--text) !important; font: 500 16px var(--f-body) !important; }
.pf-home #locBtn svg { width: 18px; height: 18px; color: var(--accent); flex: none; }
.pf-home #locBtn span { display: inline !important; max-width: none !important; }
.pf-home .loc-menu { position: static !important; width: 100% !important; margin-top: 6px; box-shadow: none !important; animation: none !important; }

/* The top menu floats as its own rounded bar under the phone's clock area, which now shows the page colour (2026-10-03,
   Emilian: the clock area and the menu were "almost the same... This is confusing"; one continuous strip "doesn't draw
   enough attention to the menu"). */
@media (max-width: 760px) {
  html:root body .timebar { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 0 !important;
    isolation: isolate; padding: calc(12px + var(--sat)) 14px 10px !important; }
  html:root body .timebar::before { top: calc(var(--sat) + 5px) !important; bottom: 3px; left: 8px !important; right: 8px !important; height: auto !important;
    z-index: -1; border-radius: 22px; background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%) !important;
    border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: 0 6px 18px rgba(60, 40, 10, .10); }
}
html.app:root body .timebar { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-bottom: 0 !important;
  isolation: isolate; padding: calc(12px + var(--sat)) 14px 10px !important; }
html.app:root body .timebar::before { top: calc(var(--sat) + 5px) !important; bottom: 3px; left: 8px !important; right: 8px !important; height: auto !important;
  z-index: -1; border-radius: 22px; background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: 0 6px 18px rgba(60, 40, 10, .10); }
:root[data-theme="dark"] body .timebar::before { box-shadow: 0 6px 18px rgba(0, 0, 0, .35) !important; }

/* "Transits" and its plus under the chart are gone for now (2026-10-03, Emilian: "Remove the transits button and the plus");
   the code stays (#skyLine), so they can come back. Charts open from the Charts tab. */
html:root body .sky-line, html:root body #skyLine { display: none !important; }

/* the Day word smaller (2026-10-03, Emilian: "Make the Day text smaller") */
@media (max-width: 760px) { html:root body .timebar .units button[aria-pressed="true"] { font-size: 12.5px !important; letter-spacing: .02em; } }
html.app:root body .timebar .units button[aria-pressed="true"] { font-size: 12.5px !important; letter-spacing: .02em; }
/* the arrows pulled in closer to Day (2026-10-03, Emilian: "Pull the arrows closer to Day"); their tap areas overlap the slot, not the word */
@media (max-width: 760px) { html:root body .timebar #tBack { margin-right: -7px !important; } html:root body .timebar #tFwd { margin-left: -7px !important; } }
html.app:root body .timebar #tBack { margin-right: -7px !important; } html.app:root body .timebar #tFwd { margin-left: -7px !important; }
/* and smaller (14:20, Emilian: "Make the arrows smaller") */
@media (max-width: 760px) { html:root body .timebar #tBack svg, html:root body .timebar #tFwd svg { width: 19px !important; height: 19px !important; stroke-width: 1.45; } }
html.app:root body .timebar #tBack svg, html.app:root body .timebar #tFwd svg { width: 19px !important; height: 19px !important; stroke-width: 1.45; }
/* 14:44, Emilian: "Make arrows a bit larger. but shorten them a bit so they look more sleek": taller, narrower chevrons */

/* The bottom menu floats as the top menu's twin (2026-10-03, Emilian: "The white of the menu at the bottom does not match
   the rest of the interface"): same tint, gold edge, rounded corners and soft shadow, with the page colour around it. */
html:root body .tabbar { background: transparent !important; -webkit-backdrop-filter: none !important; backdrop-filter: none !important; border-top: 0 !important;
  isolation: isolate; padding: 9px 14px calc(9px + env(safe-area-inset-bottom, 0px) * .5) !important; }
html:root body .tabbar::before { content: ""; position: absolute; z-index: -1; left: 8px; right: 8px; top: 3px; bottom: calc(3px + env(safe-area-inset-bottom, 0px) * .5);
  border-radius: 22px; background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%);
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)); box-shadow: 0 -2px 18px rgba(60, 40, 10, .10); pointer-events: none; }
:root[data-theme="dark"] body .tabbar::before { box-shadow: 0 -2px 18px rgba(0, 0, 0, .35); }
/* Bottom menu at night: Onyx with a gold edge and a soft glow (2026-10-06, Emilian: "Bottom Menu also should glow, no fill", then
   "make the bottom menu onyx"). The menus' gold is its own shade, --zs-gold (Emilian: "a slightly different gold for the menu and buttons"). */
:root[data-theme="dark"] { --zs-gold: #b89a5e; }
:root[data-theme="dark"] body .tabbar::before { background: var(--bgd-onyx, #121216);
  border-color: color-mix(in srgb, var(--zs-gold) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--zs-gold) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--zs-gold) 12%, transparent); }
:root[data-theme="dark"] body .timebar::before { border-color: color-mix(in srgb, var(--zs-gold) 55%, transparent) !important; }

/* The next-24-hours text written straight onto the page under the chart, no bubble (2026-10-03, Emilian: "Try to have it
   inscribed in the lower area instead of being inside a bubble"); the writing box is a single fine line. */
html:root body .now-card { border: 0 !important; background: transparent !important; box-shadow: none !important; border-radius: 0 !important;
  padding: 6px 20px 4px !important; margin: 0 !important; }
html:root body .now-note textarea { border: 0 !important; border-bottom: 1px solid color-mix(in srgb, var(--accent) 40%, var(--line)) !important;
  border-radius: 0 !important; padding: 8px 0 !important; min-height: 36px !important; }
html:root body .now-note textarea:focus { border-bottom-color: var(--accent) !important; }

/* the countdown sits on the same line as the title, letters resting on one baseline (2026-10-03, Emilian: "Countdown needs to
   be centered with the rest of the line. Now it's slightly above") */
html:root body .now-head .now-title, html:root body .now-head .now-when { align-self: baseline; }
html:root body .now-head .now-when { font-variant-numeric: tabular-nums; }

/* more air under "Sun opposite Saturn" before the lines and the question (2026-10-03, Emilian: "More space needed between sun
   opposite saturn and the two fields below") */
html:root body .now-card .now-head { margin-bottom: 10px; }
html:root body .now-card .now-note { margin-top: 12px; }

.now-saved { margin: 8px 0 0; font-size: 13px; color: var(--accent); }
.now-card { position: relative; }
.now-fold { position: absolute; top: -6px; right: 4px; width: 40px; height: 30px; display: grid; place-items: center; padding: 0; border: 0; background: transparent;
  color: var(--accent); cursor: pointer; -webkit-tap-highlight-color: transparent; z-index: 1; }
.now-fold svg { width: 18px; height: 9px; transition: transform .32s cubic-bezier(.32,.72,0,1); }
.now-card.folded .now-fold svg { transform: rotate(180deg); }
.now-body { display: flex; flex-direction: column; gap: inherit; }
.now-body[hidden] { display: none; }
.now-card .now-head { padding-right: 36px; }
@media (prefers-reduced-motion: reduce) { .now-fold svg { transition: none; } }
.pf-learn { display: flex; flex-direction: column; gap: 6px; padding-top: 4px; }
.pf-learn-note { margin: 0; font-size: 13px; line-height: 1.45; color: var(--text-2); }
.pf-check { display: flex; gap: 10px; align-items: flex-start; font-size: 13.5px; line-height: 1.45; cursor: pointer; }
.pf-check input { margin-top: 3px; accent-color: var(--accent); flex: none; width: 16px; height: 16px; }
.pf-journal { display: flex; flex-direction: column; gap: 10px; max-height: 40vh; overflow-y: auto; }
.pf-journal .je { display: grid; grid-template-columns: 1fr auto; gap: 2px 8px; padding-bottom: 10px; border-bottom: 1px solid var(--line); }
.pf-journal .je-meta { font-size: 12px; color: var(--accent); }
.pf-journal .je-text { grid-column: 1; font-size: 14.5px; line-height: 1.45; color: var(--text); white-space: pre-wrap; }
.pf-journal .je-del { grid-column: 2; grid-row: 1 / span 2; align-self: start; width: 28px; height: 28px; border: 0; background: transparent; color: var(--text-3); cursor: pointer; }
.pf-journal .je-empty { font-size: 14px; color: var(--text-3); margin: 0; }

/* No bubble behind the top menu at all (2026-10-03 21:39, Emilian: "Remove the bubble from the top menu altogether"; first,
   in dark mode, "top menu bar is filled with gold. remove gold, leave only the outline"): the strip's icons and words sit
   straight on the page colour. The bottom menu keeps its floating bar. */
/* Back again on phones and in the app, exactly as before (2026-10-04, Emilian: "add back the bubble around the top menu, exactly as it was" "For mobile version only"): the rule above is no longer switched off; computers never had it. */
/* a bit thinner (2026-10-04, Emilian: "Can the bubble be a bit thinner?"): it hugs the menu, 48px tall instead of 60 (6px less above and below); the menu and the chart stay where they are */
@media (max-width: 760px) { html:root body .timebar::before { top: calc(var(--sat) + 11px) !important; bottom: 9px !important; } }
html.app:root body .timebar::before { top: calc(var(--sat) + 11px) !important; bottom: 9px !important; }
/* Top menu 8px higher, closer to the camera (2026-10-06, Emilian: "Bring the top menu up several pixels, close to the camera area"):
   8px less above it and 8px more below, so the bar's measured height and the chart under it stay where they were. */
@media (max-width: 760px) { html:root body .timebar { padding-top: calc(4px + var(--sat)) !important; padding-bottom: 18px !important; }
  html:root body .timebar::before { top: calc(var(--sat) + 7px) !important; bottom: 21px !important; } }
html.app:root body .timebar { padding-top: calc(4px + var(--sat)) !important; padding-bottom: 18px !important; }
html.app:root body .timebar::before { top: calc(var(--sat) + 7px) !important; bottom: 21px !important; }
/* Even higher, and the chart names come up with it (2026-10-07, Emilian: "Bring the top menu up even further. Bring the chart names
   up with it, so first two chart names are always showing up just beneath the top menu"): 8px less above the menu and 8px less
   below, so the bar is 16px shorter and the names (pinned under its measured bottom, --tb-h) rise with it. */
@media (max-width: 760px) { html:root body .timebar { padding-top: calc(var(--sat) - 4px) !important; padding-bottom: 10px !important; }
  html:root body .timebar::before { top: calc(var(--sat) - 1px) !important; bottom: 13px !important; } }
html.app:root body .timebar { padding-top: calc(var(--sat) - 4px) !important; padding-bottom: 10px !important; }
html.app:root body .timebar::before { top: calc(var(--sat) - 1px) !important; bottom: 13px !important; }
/* Both bubbles thinner (2026-10-06, Emilian: "Make the bubbles thiner on both top and bottom menu"): 8px less each, the icons and
   words don't move; top 48 → 40px, bottom menu's bar 4px in from above and below. */
html:root body .tabbar::before { top: 7px !important; bottom: calc(7px + env(safe-area-inset-bottom, 0px) * .5) !important; }
/* The menus in the page's own colour, light mode (2026-10-07, Emilian: "I don't love the color of the top and bottom menus anymore. Can
   you change it to fit our theme well?"): instead of a gold-tinted cream that clashed with the other backgrounds (pink, mist, sage...),
   both bubbles are frosted glass of the chosen page colour: the page colour lifted halfway to white, a little see-through with a blur,
   an edge in a deeper shade of the same colour, a soft neutral shadow. The gold icons stay. Night keeps its Onyx and gold. */
/* No circle around any × in the app (2026-10-07, Emilian: "Remove the circle around the x anywhere you have it in our app"): the
   closing × of the Journal, Stream, Astrocartography, Charts, the family board, the planet/aspect panels and the chart names is a bare,
   small mark; the tap area stays the same size. */
html:root body :is(.zst-x, .zsa-x, .ch-x, .fbx-x, .desc-x, .cb-close, .sheet-x, .zsjd-x, .find-x),
html:root body :is(.zst-x, .zsa-x, .ch-x, .fbx-x, .desc-x, .cb-close, .sheet-x, .zsjd-x, .find-x):is(:hover, :active, :focus) {
  border: 0 !important; background: transparent !important; box-shadow: none !important; }
/* at night too (the night button rule outweighed the one above, so the panels' × kept a gold ring) */
html:root[data-theme] body :is(.zst-x, .zsa-x, .ch-x, .fbx-x, .desc-x, .cb-close, .sheet-x, .zsjd-x, .find-x),
html:root[data-theme] body :is(.zst-x, .zsa-x, .ch-x, .fbx-x, .desc-x, .cb-close, .sheet-x, .zsjd-x, .find-x):is(:hover, :active, :focus) {
  border: 0 !important; background: transparent !important; box-shadow: none !important; }
html:root body :is(.zst-x:not(.zsp-gear), .zsa-x, .ch-x:not([data-edit]), .fbx-x) svg { width: 12px !important; height: 12px !important; }
html { --pgl: var(--bgc-kz-navygold); }
html[data-bg="kz-navygold"], html[data-bg="cream"], html[data-bg="linen"], html[data-bg="parchment"], html[data-bg="sand"], html[data-bg="clay"], html[data-bg="butter"], html[data-bg="lilac"], html[data-bg="mist"], html[data-bg="sage"], html[data-bg="pink"], html[data-bg="roseclay"], html[data-bg="cobalt"], html[data-bg="deepsage"], html[data-bg="paper"], html[data-bg="stone"], html[data-bg="cocoa"], html[data-bg="peach"], html[data-bg="tangerine"], html[data-bg="chartreuse"], html[data-bg="lime"], html[data-bg="leaf"], html[data-bg="emerald"], html[data-bg="teal"], html[data-bg="aqua"], html[data-bg="glacier"], html[data-bg="sky"], html[data-bg="cerulean"], html[data-bg="denim"], html[data-bg="ice"], html[data-bg="silver"], html[data-bg="lemon"], html[data-bg="straw"], html[data-bg="moss"], html[data-bg="mint"], html[data-bg="jade"], html[data-bg="skyblue"], html[data-bg="slate"], html[data-bg="heather"], html[data-bg="lavender"], html[data-bg="orchid"], html[data-bg="rose"], html[data-bg="raspberry"], html[data-bg="g-dawn"], html[data-bg="g-day"], html[data-bg="g-citrus"], html[data-bg="g-heather"], html[data-bg="g2-lemonsky"], html[data-bg="g2-mintheather"], html[data-bg="cb-001"], html[data-bg="cb-021"], html[data-bg="cb-029"], html[data-bg="cb-043"], html[data-bg="cb-066"], html[data-bg="cb-068"], html[data-bg="cb-098"], html[data-bg="cb-005"], html[data-bg="cb-030"], html[data-bg="cb-062"], html[data-bg="cb-063"], html[data-bg="cb-080"], html[data-bg="g2-roselemon"], html[data-bg="fw-clay"], html[data-bg="fw-cool"], html[data-bg="fw-greige"], html[data-bg="fw-pewter"], html[data-bg="fw-sage"], html[data-bg="fw-stone"], html[data-bg="fw-stone-pool"], html[data-bg="g-berry"], html[data-bg="g-field"], html[data-bg="g-spring"], html[data-bg="g-steel"], html[data-bg="g2-iceglow"], html[data-bg="g3-iceorchid"], html[data-bg="g3-lemonmint"], html[data-bg="g4-heather"], html[data-bg="g4-jade"], html[data-bg="g4-lemon"], html[data-bg="g4-mint"], html[data-bg="g4-orchid"], html[data-bg="g4-raspberry"], html[data-bg="g4-skyblue"], html[data-bg="g4-slate"], html[data-bg="palegrey"], html[data-bg="warmgrey"], html[data-bg="g4-rose"], html[data-bg="g4-peach"], html[data-bg="g4-straw"], html[data-bg="g4-moss"], html[data-bg="g-glow"], html[data-bg="g4-silver"], html[data-bg="fw-sand"], html[data-bg="fw-dove"], html[data-bg="fw-deep"], html[data-bg="kz-sage"], html[data-bg="kz-lavender"], html[data-bg="kz-blue"], html[data-bg="kz-blush"], html[data-bg="kz-oat"], html[data-bg="kz-terracotta"], html[data-bg="kz-midnight"], html[data-bg="kz-dplum"], html[data-bg="kz-olive"], html[data-bg="kz-navy"], html[data-bg="kz-plum"], html[data-bg="kz-forest"], html[data-bg="kz-espresso"], html[data-bg="kz-cblue"], html[data-bg="kz-burgundy"], html[data-bg="kz-teal"], html[data-bg="kz-mauve"], html[data-bg="kz-wcharcoal"] { --pgl: var(--bgc-kz-navygold); }
@media (max-width: 760px) { html:root:not([data-theme="dark"]) body :is(.timebar, .tabbar)::before {
  background: color-mix(in srgb, color-mix(in srgb, var(--pgl) 52%, #fff) 84%, transparent) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--pgl) 80%, #3a2a14) !important; box-shadow: 0 4px 16px color-mix(in srgb, var(--pgl) 55%, rgba(30,20,10,.22)) !important; } }
html.app:root:not([data-theme="dark"]) body :is(.timebar, .tabbar)::before {
  background: color-mix(in srgb, color-mix(in srgb, var(--pgl) 52%, #fff) 84%, transparent) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--pgl) 80%, #3a2a14) !important; box-shadow: 0 4px 16px color-mix(in srgb, var(--pgl) 55%, rgba(30,20,10,.22)) !important; }
/* No bubble behind the bottom menu (2026-10-07 11:02, Emilian: "I find the bubble awkward. Maybe start by removing the bubble?"):
   phones and the app, day and night; the tabs sit straight on the page. */
html:root body .tabbar::before { display: none !important; }
/* Planet toggle and search in the 3D style of the bottom menu (2026-10-07, Emilian chose "Planet switch" and "Brass magnifier"):
   the planet toggle is a little switch whose knob is a planet, two planets above it; search is a magnifier with a thick rim and glass */
html:root body #plBtn svg.zs3d, html:root body #findBtn svg.zs3d { filter: drop-shadow(0 1.2px .6px rgba(40, 25, 5, .22)); }
:root[data-theme="dark"] body #plBtn svg.zs3d, :root[data-theme="dark"] body #findBtn svg.zs3d { filter: drop-shadow(0 1.2px .8px rgba(0, 0, 0, .6)); }
@media (max-width: 760px) { html:root body :is(#plBtn, #findBtn) { --cut: var(--pgl, var(--card)); } }
html.app:root body :is(#plBtn, #findBtn) { --cut: var(--pgl, var(--card)); }
:root[data-theme="dark"] body :is(#plBtn, #findBtn) { --cut: #121216; }
@media (max-width: 760px) { html:root .timebar #findBtn svg.zs3d { width: 22px; height: 22px; } }
html.app:root .timebar #findBtn svg.zs3d { width: 22px; height: 22px; }
/* Search sits close to the planet toggle on phones/app (2026-10-07, Emilian: "Place the search button closer to the toggle planets button"):
   10px between the two icons (was 22px); each keeps its full tap area */
@media (max-width: 760px) { html:root body .timebar #findBtn { margin-right: -12px !important; } }
html.app:root body .timebar #findBtn { margin-right: -12px !important; }
/* Bottom menu icons with depth (2026-10-07, Emilian: "the bottom buttons more dimension. Make the journal 3D for example"):
   each icon is drawn with a lit face and a shaded side (the Journal is a book with its spine, page edge and ribbon; Charts a wheel seen
   as a disc; Stream two ribbons; View an eye with a round iris), and sits slightly raised on a soft shadow. */
/* Then (2026-10-07, 09:30-10:04, Emilian): Profile a round mirror with a star in it, Journal a book lying flat on a diagonal (made in the
   Journal icon turner: turn 18°, looking down 33°, thickness 2.6, outline 0.9), View an arched window onto the night sky, Stream a river
   winding to the horizon, Charts a zodiac wheel; all five drawn with a 0.9 outline. Book, mirror and window faces are solid (their own
   background fill under the tint) so what is behind them does not show through. */
html:root body .tabbar .tab svg.zs3d { filter: drop-shadow(0 1.2px .6px rgba(40, 25, 5, .22)); transition: transform .3s cubic-bezier(.32,.72,0,1); }
:root[data-theme="dark"] body .tabbar .tab svg.zs3d { filter: drop-shadow(0 1.2px .8px rgba(0, 0, 0, .6)); }
html:root body .tabbar .tab[aria-current="page"] svg.zs3d { transform: translateY(-1px) scale(1.06); }
@media (prefers-reduced-motion: reduce) { html:root body .tabbar .tab svg.zs3d { transition: none; } }
/* Buttons at night in the chart's outline colour (2026-10-06, Emilian: "make all buttons in night made the same color as the chart
   outlines"): the top menu's buttons (arrows, Day, refresh, search, planets, menu, profile, settings, Install app), the bottom menu's
   tabs (the open one stays bright gold so you can see where you are), the add-chart pluses and the sun/moon button. The date stays
   in the text colour. --ring is the wheel's line colour (#a3854c at night). */
html:root:root[data-theme="dark"]:not(.embed) body .timebar :is(button, .step, .icon-btn, .pop-btn, .now, #bNow svg):not(.units[data-open="true"] button:not([aria-pressed="true"])),
html:root:root[data-theme="dark"]:not(.embed) body :is(.cs-plus, #colTheme, #deskTheme),
html:root:root[data-theme="dark"]:not(.embed) body .tabbar .tab:not([aria-current="page"]) { color: var(--zs-gold, var(--ring)) !important; }
/* The date and the chart names a softer cream at night (2026-10-06, Emilian: "Do you feel like the white of the chart names and the
   date/time is too bright", then "yes"): #d4ccbc, about 12% dimmer than the text cream, so they sit around the chart instead of
   pulling the eye from it; the wheel's own numbers keep the brighter cream. Open menus keep the gold of an open name. */
:root[data-theme="dark"] { --zs-label: #d4ccbc; }
html:root:root[data-theme="dark"]:not(.embed) body .timebar :is(#dateStr, #dateStr *, .when, .when *) { color: var(--zs-label) !important; }
html:root:root[data-theme="dark"]:not(.embed) body :is(.cs-title, .cs-second, .cs-third):not([aria-expanded="true"]) { color: var(--zs-label) !important; }
/* The More menu like the bottom menu at night (2026-10-06 22:04, Emilian: "when you hit more, the menu is charcoal, make it onyx, and
   make that menu follow logic of bottom menu", "With the buttons as well"): Onyx fill, the same gold edge and soft glow, words and
   icons in the menu gold --zs-gold, the open screen's row in bright gold. */
:root[data-theme="dark"] body .more-menu { background: var(--bgd-onyx, #121216);
  border-color: color-mix(in srgb, var(--zs-gold) 55%, transparent);
  box-shadow: 0 0 14px color-mix(in srgb, var(--zs-gold) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--zs-gold) 12%, transparent); }
:root[data-theme="dark"] body .more-menu button:not([aria-current="page"]),
:root[data-theme="dark"] body .more-menu button:not([aria-current="page"]) svg { color: var(--zs-gold) !important; }
/* Top bar and Profile in Onyx at night (2026-10-06 21:32, Emilian, from the other chat's preview: "Make top bar onyx", "Make profile
   in night mode onyx", "On mobile as well"): the phone/app floating bar and the computer strip (still slightly see-through) are
   Onyx #121216, like the bottom menu; the Profile screen and a planet's page too. */
@media (min-width: 761px) {
  html:root[data-theme="dark"]:not(.app):not(.embed) .timebar { background: color-mix(in srgb, var(--pagebg, var(--bgd-onyx, #121216)) 92%, transparent) !important; }
}
html:root[data-theme="dark"]:not(.embed) body .timebar::before { background: var(--pagebg, var(--bgd-onyx, #121216)) !important; }
html[data-theme="dark"]:not(.embed) #profileScr,
html[data-theme="dark"]:not(.embed) #zsm { --card: var(--bgd-onyx, #121216); --bg: var(--bgd-onyx, #121216); background: var(--bgd-onyx, #121216); }
/* Charts immersive on phones and in the app (2026-10-06 22:05, Emilian: "Make Charts immersive"), like the Journal: html.chs-on while
   Charts is open; the bottom menu, the colour dot and the sun/moon fade out with the slide in and back in with the slide out
   (0.46 s, same curve); the More list and colour card can't show. Back to View with the × or a swipe right. */
@media (max-width: 760px) {
  .tabbar, #colDot, #colTheme { transition: opacity .32s cubic-bezier(.32,.72,0,1); }
  html.chs-on .tabbar, html.chs-on #colDot, html.chs-on #colTheme { opacity: 0; pointer-events: none;
    transition: opacity .32s cubic-bezier(.32,.72,0,1); }
  html.chs-on #moreMenu, html.chs-on #colCard { display: none !important; }
  html.chs-on .charts { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }
}
html.app .tabbar, html.app #colDot, html.app #colTheme { transition: opacity .32s cubic-bezier(.32,.72,0,1); }
html.app.chs-on .tabbar, html.app.chs-on #colDot, html.app.chs-on #colTheme { opacity: 0; pointer-events: none;
  transition: opacity .32s cubic-bezier(.32,.72,0,1); }
html.app.chs-on #moreMenu, html.app.chs-on #colCard { display: none !important; }
html.app.chs-on .charts { padding-bottom: calc(24px + env(safe-area-inset-bottom, 0px)); }

/* Day in the text colour, not gold (2026-10-03 21:38, Emilian: "Make day a different color, the gold stands out too much"). */
html:root body .timebar .units button[aria-pressed="true"] { color: var(--text) !important; }

/* The step sizes open as a vertical list with no bubble (2026-10-03 21:38, Emilian: "the day menu should open vertically",
   "Make that vertical menu also open without a bubble"): words only, one under the other, the chosen one in the text colour
   and bold, the rest grey; a soft halo in the page colour keeps them readable over the wheel. */
html:root body .timebar .units[data-open="true"] { flex-direction: column !important; align-items: center !important;
  background: transparent !important; border: 0 !important; box-shadow: none !important; padding: 0 !important; gap: 0 !important;
  top: calc(100% + 4px) !important; left: 50% !important; right: auto !important; transform: translateX(-50%); align-items: center !important; }
/* the chosen word stays in the strip while the list hangs under it (the slot shows it, written in by openUnitsNow) */
html:root body .timebar .units-slot:has(.units[data-open="true"])::before { content: attr(data-word); position: absolute; inset: 0;
  display: flex; align-items: center; justify-content: center; font: 600 12.5px var(--f-body); letter-spacing: .02em; color: var(--text); pointer-events: none; }
html:root body .timebar .units[data-open="true"] button:hover, html:root body .timebar .units[data-open="true"] button:active,
:root[data-theme="dark"] body .timebar .units[data-open="true"] button:hover { background: transparent !important; box-shadow: none !important; }
html:root body .timebar .units[data-open="true"] button { background: transparent !important; height: 34px !important; min-height: 34px !important;
  padding: 0 8px !important; text-align: center; justify-content: center;
  text-shadow: 0 0 6px var(--bg), 0 0 12px var(--bg), 0 0 2px var(--bg); }
html:root body .timebar .units[data-open="true"] button[aria-pressed="true"],
:root[data-theme="dark"] body .timebar .units[data-open="true"] button[aria-pressed="true"] { background: transparent !important; color: var(--text) !important; font-weight: 700 !important; }
/* The step sizes in a menu card (2026-10-06 22:12, Emilian: "When I hit the day button, create a menu behind it in the proper style"):
   the list hangs under Day in a small rounded card like the More menu and the bubbles (light: card with 10% gold, gold-tinted edge,
   soft shadow; night: Onyx, the menu gold edge and soft glow); the words in the menu gold, the chosen one bright gold and bold. */
html:root body .timebar .units[data-open="true"] { top: calc(100% + 12px) !important; min-width: 104px; padding: 6px 4px !important;
  border-radius: 16px !important; background: color-mix(in srgb, var(--card) 90%, var(--accent) 10%) !important;
  border: 1px solid color-mix(in srgb, var(--accent) 28%, var(--line)) !important; box-shadow: 0 10px 28px rgba(60, 40, 10, .16) !important; }
:root[data-theme="dark"] body .timebar .units[data-open="true"] { background: var(--bgd-onyx, #121216) !important;
  border-color: color-mix(in srgb, var(--zs-gold) 55%, transparent) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--zs-gold) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--zs-gold) 12%, transparent) !important; }
html:root body .timebar .units[data-open="true"] button { text-shadow: none !important; width: 100%; height: 38px !important; min-height: 38px !important;
  font-size: 15px !important; color: var(--text-2) !important; }
:root[data-theme="dark"] body .timebar .units[data-open="true"] button { color: var(--zs-gold) !important; }
html:root body .timebar .units[data-open="true"] button[aria-pressed="true"],
:root[data-theme="dark"] body .timebar .units[data-open="true"] button[aria-pressed="true"] { color: var(--accent) !important; font-weight: 700 !important; }
/* The date window at night in the current style (2026-10-06 22:13, Emilian: "When I hit the date/time, the menu that opens, make it in
   the current dark mode style"): Onyx, the menu gold edge and soft glow, like the More menu and the bottom menu. */
:root[data-theme="dark"] body .cal { background: var(--bgd-onyx, #121216) !important; border: 1px solid color-mix(in srgb, var(--zs-gold) 55%, transparent) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--zs-gold) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--zs-gold) 12%, transparent) !important; }
:root[data-theme="dark"] body .cal .mo-show { background: transparent !important; color: var(--accent) !important; border: 1px solid var(--accent) !important; }
:root[data-theme="dark"] body .cal input { background: transparent !important; }
/* The search panel in the same style at night (2026-10-06 22:14, Emilian: "Opening the search bar should also fit with the new style"):
   Onyx, the menu gold edge and soft glow; its dropdown lists too; Find outlined like Show. */
:root[data-theme="dark"] body #findPanel, :root[data-theme="dark"] body .f-menu { background: var(--bgd-onyx, #121216) !important;
  border: 1px solid color-mix(in srgb, var(--zs-gold) 55%, transparent) !important;
  box-shadow: 0 0 14px color-mix(in srgb, var(--zs-gold) 30%, transparent), inset 0 0 12px color-mix(in srgb, var(--zs-gold) 12%, transparent) !important; }
:root[data-theme="dark"] body #findPanel .f-dd, :root[data-theme="dark"] body #findPanel select { background: transparent !important; }
/* The chart-name menus like the More menu (2026-10-07, Emilian: "The menu that opens when clicking on a chart name in the view tab, make it
   more in line with our theme, also make it more narrow"; "Same with opening another chart"): 232px wide (was 320), rounder (16px),
   40px rows; at night the words and icons in the menu gold, the chart that's open in bright gold on a faint gold tint, and the rows'
   faces Onyx like the menu; light mode a gold-tinted edge. The sign beside a name keeps its element colour. */
html:root body .f-menu.pm:not(.pm-date) { border-radius: 16px !important; padding: 4px !important; border-color: color-mix(in srgb, var(--accent) 28%, var(--line)); }
html:root body .f-menu.pm:not(.pm-date) button { border-radius: 12px !important; gap: 10px !important; padding-left: 12px !important; padding-right: 12px !important; font-size: 17.5px !important; }   /* 15.5px until 2026-11-12 22:56, Emilian: "make the text here slightly larger" */
html:root body .f-menu.pm:not(.pm-date) .f-mi svg { width: 21px; height: 21px; }
:root[data-theme="dark"] body .f-menu.pm:not(.pm-date) button:not([aria-current="true"]),
:root[data-theme="dark"] body .f-menu.pm:not(.pm-date) button:not([aria-current="true"]) .f-mi { color: var(--zs-gold) !important; }
:root[data-theme="dark"] body .f-menu.pm .pm-row > button[data-id] { background: var(--bgd-onyx, #121216) !important; }
:root[data-theme="dark"] body #findPanel .find-go { background: transparent !important; color: var(--accent) !important; border: 1px solid var(--accent) !important; }

/* The Day menu, the date window and the search panel in one style with the menus (2026-10-07, Emilian: "When the day, date/time, and
   search buttons are opened, the menus that come up are not with the rest of the theme. FIx"): by day frosted glass of the chosen page
   colour with an edge in a deeper shade of it, like the top menu; at night Onyx with the gold edge and glow (kept). Inside, no grey boxes:
   every field is see-through with a thin gold line round it, and every button (Now, Show, Next, Find) an outlined gold pill. */
html:root:not([data-theme="dark"]) body :is(.timebar .units[data-open="true"], .cal, #findPanel, .f-menu:not(.pm)) {
  background: color-mix(in srgb, color-mix(in srgb, var(--pgl) 52%, #fff) 90%, transparent) !important;
  -webkit-backdrop-filter: blur(16px) saturate(1.1); backdrop-filter: blur(16px) saturate(1.1);
  border: 1px solid color-mix(in srgb, var(--pgl) 80%, #3a2a14) !important;
  box-shadow: 0 8px 24px color-mix(in srgb, var(--pgl) 50%, rgba(30, 20, 10, .24)) !important; }
html:root body :is(.timebar .units[data-open="true"], .cal, #findPanel) { border-radius: 18px !important; }
html:root body :is(.cal, #findPanel) :is(input, select, .f-dd) { background: transparent !important; box-shadow: none !important; border-radius: 10px !important;
  border: 1px solid color-mix(in srgb, var(--accent) 38%, transparent) !important; color: var(--text) !important; }
:root[data-theme="dark"] body :is(.cal, #findPanel) :is(input, select, .f-dd) { border-color: color-mix(in srgb, var(--zs-gold) 42%, transparent) !important; }
html:root body :is(.cal, #findPanel) :is(input, .f-dd):focus-visible { border-color: var(--accent) !important; outline: none; }
html:root body :is(.cal .mo-now, .cal .mo-show, #findPanel .find-go) { background: transparent !important; box-shadow: none !important; text-shadow: none !important;
  color: var(--accent) !important; border: 1px solid var(--accent) !important; }
:root[data-theme="dark"] body :is(.cal .mo-now, .cal .mo-show, #findPanel .find-go) { color: var(--zs-gold) !important; border-color: var(--zs-gold) !important; }
html:root body :is(.cal, #findPanel) .mo-label { color: var(--accent) !important; }
:root[data-theme="dark"] body :is(.cal, #findPanel) .mo-label { color: var(--zs-gold) !important; }

/* Signs beside the planets in the box under the chart, and a symbols-only version (2026-10-03, Emilian) */
.now-title .now-sg { width: 17px; height: 17px; vertical-align: -2px; margin-left: -2px; }
.now-syms { display: inline-flex; align-items: center; gap: 10px; }
.now-syms .pg { width: 24px; height: 24px; }
.now-syms .now-pair { display: inline-flex; align-items: center; gap: 3px; }
.now-syms .now-ag { width: 18px; height: 18px; fill: none; stroke: var(--accent); stroke-width: 1.6; }
.now-syms .now-st { color: var(--accent); font-size: 22px; line-height: 1; }
.now-head .now-icons, .now-head .now-title { display: none !important; }   /* symbols only, no words (Emilian, 2026-10-03 22:29) */

/* The box under the chart is just its title line again (2026-10-03 22:29, Emilian: "Don't give any of the information that I
   currently see below the title, remove all that, go back to just the title"): no possibilities, question, writing box, Stream
   link or fold chevron; the code stays so they can come back. The title (symbols + countdown) still opens the aspect panel. */
html:root body #nowCard .now-poss, html:root body #nowCard .now-note, html:root body #nowCard .now-stream, html:root body #nowFold { display: none !important; }
html:root body #nowCard .now-head { margin-bottom: 0 !important; padding-right: 0 !important; }
/* No countdown, and the symbols centred under the chart (2026-10-03 22:30-22:31, Emilian: "remove the hours." "Center the sun saturn opposition") */
html:root body #nowCard .now-when { display: none !important; }
html:root body #nowCard .now-head { width: 100%; justify-content: center; text-align: center; }
html:root body #nowCard .now-head2 { margin-top: 10px !important; }
/* Nothing under the chart (2026-10-03 23:23, Emilian: "Remove the symbols below the chart. Leave the space empty again"); the code stays */
html:root body #nowCard { visibility: hidden !important; pointer-events: none !important; }
/* The wheel's lines more gold in dark mode (2026-10-03 21:50, Emilian: "make the wheel more gold in dark mode"; was #76643f / #4f4330) */
:root[data-theme="dark"]:root { --ring: #a3854c; --ring-2: #6f5a35; }   /* the next closest transit, same format (22:31) */
