/*
VOICE: zart, feierlich, ruhig – ein Lichttempel für die eigene Seele.
IDEA: ein Seelen-Journal aus Perlpapier mit goldener Prägung und Sternenstaub.
PICTURE: leuchtende Aura-Ringe je Lebenssphäre, die sich wie Licht füllen; Blume des Lebens als feine Linie.
COLOUR and TYPE: Perlweiß, Lavendel, Rosé, Gold; nachts Indigo mit Gold. Cormorant Garamond + Jost.
LAYOUT: ruhige Spalte bis 1180px, gläserne Karten, auf dem Handy alles untereinander.
*/
:root {
  color-scheme: light;
  --bg: light-dark(#fbf8f5, #15112a);
  --ink: light-dark(#3a2d4c, #f2eaf7);
  --soft: light-dark(#76688a, #b9aecb);
  --gold: light-dark(#a87a2f, #e5c47e);
  --gold2: light-dark(#d9b56c, #f3dca6);
  --lav: light-dark(#e7ddf6, #2c2350);
  --rose: light-dark(#f7dfe5, #3a2240);
  --card: light-dark(rgba(255,255,255,.66), rgba(36,28,66,.62));
  --card2: light-dark(rgba(255,255,255,.88), rgba(46,37,82,.9));
  --line: light-dark(rgba(168,122,47,.24), rgba(229,196,126,.22));
  --shadow: light-dark(0 10px 40px -18px rgba(110,80,150,.35), 0 10px 40px -18px rgba(0,0,0,.6));
  --r: 22px;
}
:root[data-theme=light] { color-scheme: light; }
:root[data-theme=dark] { color-scheme: dark; }
* { box-sizing: border-box; min-width: 0; }
html { scroll-padding-top: 90px; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 300 16.5px/1.6 Jost, 'Segoe UI', system-ui, sans-serif; overflow-x: clip; min-height: 100vh; }
h1, h2, h3 { font-family: 'Cormorant Garamond', Georgia, serif; font-weight: 600; line-height: 1.08; margin: 0; text-wrap: balance; color: var(--ink); }
h1 { font-size: clamp(36px, 5vw, 52px); }
h2 { font-size: clamp(26px, 3vw, 32px); }
h3 { font-size: 22px; }
p { margin: 0; }
a { color: inherit; }
.muted { color: var(--soft); }
.small { font-size: 14px; }
.serif { font-family: 'Cormorant Garamond', Georgia, serif; }
.it { font-style: italic; }

/* Himmel: Farbschleier, Heilige Geometrie, Sternenstaub */
.sky { position: fixed; inset: 0; z-index: -1; pointer-events: none;
  background:
    radial-gradient(60vw 50vh at 8% 0%, var(--lav), transparent 70%),
    radial-gradient(50vw 45vh at 100% 18%, var(--rose), transparent 70%),
    radial-gradient(60vw 40vh at 50% 105%, light-dark(#f4e7c8, #2a2147), transparent 70%), var(--bg); }
.geo { position: absolute; right: -14vmin; top: 8vh; width: 78vmin; height: 78vmin; opacity: .16; color: var(--gold);
  background: url("data:image/svg+xml,%3Csvg xmlns='http://www.w3.org/2000/svg' viewBox='-60 -60 120 120'%3E%3Cg fill='none' stroke='%23a87a2f' stroke-width='.35'%3E%3Ccircle r='50'/%3E%3Ccircle r='52'/%3E%3Ccircle r='15'/%3E%3Ccircle cx='0' cy='-15' r='15'/%3E%3Ccircle cx='0' cy='15' r='15'/%3E%3Ccircle cx='13' cy='-7.5' r='15'/%3E%3Ccircle cx='13' cy='7.5' r='15'/%3E%3Ccircle cx='-13' cy='-7.5' r='15'/%3E%3Ccircle cx='-13' cy='7.5' r='15'/%3E%3Ccircle cx='0' cy='-30' r='15'/%3E%3Ccircle cx='0' cy='30' r='15'/%3E%3Ccircle cx='26' cy='-15' r='15'/%3E%3Ccircle cx='26' cy='15' r='15'/%3E%3Ccircle cx='-26' cy='-15' r='15'/%3E%3Ccircle cx='-26' cy='15' r='15'/%3E%3Ccircle cx='13' cy='-22.5' r='15'/%3E%3Ccircle cx='-13' cy='-22.5' r='15'/%3E%3Ccircle cx='13' cy='22.5' r='15'/%3E%3Ccircle cx='-13' cy='22.5' r='15'/%3E%3Ccircle cx='26' cy='0' r='15'/%3E%3Ccircle cx='-26' cy='0' r='15'/%3E%3C/g%3E%3C/svg%3E") center/contain no-repeat; }
.dust { position: absolute; inset: 0; }
.dust i { position: absolute; width: 3px; height: 3px; border-radius: 50%; background: var(--gold2); box-shadow: 0 0 6px 1px var(--gold2); opacity: .5; animation: twinkle 5s ease-in-out infinite; }
@keyframes twinkle { 0%, 100% { opacity: .12; transform: scale(.6); } 50% { opacity: .85; transform: scale(1); } }
@media (prefers-reduced-motion: reduce) { .dust i { animation: none; } * { transition: none !important; } }

/* Kopfzeile */
.top { position: sticky; top: 0; z-index: 20; display: flex; align-items: center; gap: 18px; padding: 12px max(4vw, 14px);
  background: light-dark(rgba(251,248,245,.78), rgba(21,17,42,.78)); backdrop-filter: blur(14px); border-bottom: 1px solid var(--line); }
.brand { display: flex; align-items: center; gap: 10px; text-decoration: none; font-family: 'Cormorant Garamond', serif; font-size: 23px; font-weight: 600; flex: none; }
.brand svg { width: 34px; height: 34px; color: var(--gold); }
.nav { display: flex; gap: 4px; overflow-x: auto; scrollbar-width: none; flex: 1; }
.nav a { flex: none; text-decoration: none; padding: 9px 14px; border-radius: 999px; font-size: 15px; color: var(--soft); min-height: 40px; display: flex; align-items: center; }
.nav a:hover { color: var(--ink); background: var(--card); }
.nav a.on { color: var(--ink); background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); font-weight: 400; }
.icon-btn { flex: none; width: 44px; height: 44px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--gold); cursor: pointer; display: grid; place-items: center; }
.icon-btn svg { width: 22px; height: 22px; fill: none; stroke: currentColor; stroke-width: 1.5; stroke-linecap: round; }
@media (max-width: 760px) {
  .top { flex-wrap: wrap; gap: 8px; padding-bottom: 6px; }
  .brand span { font-size: 21px; }
  .nav { order: 3; flex-basis: 100%; }
  .icon-btn { margin-left: auto; }
}

/* Seitengerüst */
main { max-width: 1180px; margin: 0 auto; padding: clamp(24px, 4vw, 56px) max(4vw, 14px) 90px; outline: none; }
.page-head { display: flex; flex-wrap: wrap; align-items: end; justify-content: space-between; gap: 16px 28px; margin-bottom: 28px; }
.page-head .lead { max-width: 62ch; margin-top: 10px; color: var(--soft); }
.kicker { color: var(--gold); font-size: 15px; margin-bottom: 6px; font-weight: 400; }
.grid { display: grid; gap: 18px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 270px), 1fr)); }
.grid.wide { grid-template-columns: repeat(auto-fill, minmax(min(100%, 340px), 1fr)); }
.cols { display: grid; gap: 22px; grid-template-columns: minmax(0, 1.5fr) minmax(0, 1fr); align-items: start; }
@media (max-width: 900px) { .cols { grid-template-columns: minmax(0, 1fr); } }
.section { margin-top: 44px; }
.section > h2 { margin-bottom: 16px; }
.row { display: flex; gap: 10px; align-items: center; flex-wrap: wrap; }
.spread { display: flex; gap: 10px; align-items: center; justify-content: space-between; flex-wrap: wrap; }

.card { background: var(--card); border: 1px solid var(--line); border-radius: var(--r); padding: 22px; box-shadow: var(--shadow); backdrop-filter: blur(10px); }
a.card { text-decoration: none; display: block; transition: transform .25s, box-shadow .25s; }
a.card:hover { transform: translateY(-3px); box-shadow: 0 18px 50px -20px rgba(150,100,190,.5); }

/* Bedienelemente */
.btn { font: inherit; font-weight: 400; font-size: 15.5px; min-height: 44px; padding: 10px 20px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--ink); cursor: pointer; display: inline-flex; align-items: center; gap: 8px; text-decoration: none; }
.btn:hover { border-color: var(--gold); }
.btn.gold { background: linear-gradient(135deg, var(--gold2), var(--gold)); color: light-dark(#fff, #1d1636); border-color: transparent; box-shadow: 0 6px 22px -8px var(--gold); }
.btn.ghost { background: transparent; }
.btn.small { min-height: 36px; padding: 6px 14px; font-size: 14px; }
.btn.danger { color: light-dark(#a3324a, #ff9fb1); }
:focus-visible { outline: 2px solid var(--gold); outline-offset: 2px; }
input, textarea, select { font: inherit; font-size: 16px; color: var(--ink); background: var(--card2); border: 1px solid var(--line); border-radius: 14px; padding: 11px 14px; width: 100%; min-height: 44px; }
textarea { resize: vertical; min-height: 96px; line-height: 1.55; }
input:focus, textarea:focus { border-color: var(--gold); outline: none; box-shadow: 0 0 0 3px light-dark(rgba(217,181,108,.25), rgba(229,196,126,.2)); }
label { display: block; font-size: 14px; color: var(--soft); margin: 14px 0 6px; font-weight: 400; }
.editable { cursor: text; border-radius: 10px; padding: 2px 4px; margin: -2px -4px; }
.editable:hover { background: var(--card); }
.editable.empty { color: var(--soft); font-style: italic; }
.chip { font-size: 13px; padding: 3px 11px; border-radius: 999px; border: 1px solid var(--line); background: var(--card2); color: var(--soft); white-space: nowrap; }
.chip.gold { color: var(--gold); border-color: var(--gold); }
button.chip { cursor: pointer; font: inherit; font-size: 13px; min-height: 30px; }

/* Aura-Ringe */
.aura { position: relative; display: inline-grid; place-items: center; flex: none; }
.aura svg { display: block; overflow: visible; }
.aura .val { position: absolute; inset: 0; display: grid; place-items: center; text-align: center; font-family: 'Cormorant Garamond', serif; font-weight: 600; line-height: 1; }
.aura .val small { display: block; font-family: Jost, sans-serif; font-weight: 300; font-size: 12px; color: var(--soft); margin-top: 4px; }
.glyph { width: 26px; height: 26px; fill: none; stroke: currentColor; stroke-width: 1.4; stroke-linecap: round; stroke-linejoin: round; flex: none; }

/* Startseite */
.temple { display: grid; grid-template-columns: minmax(0, 1.2fr) minmax(0, 1fr); gap: 28px; align-items: center; padding: clamp(24px, 4vw, 48px); }
.temple .intent { font-family: 'Cormorant Garamond', serif; font-size: clamp(24px, 2.6vw, 30px); font-style: italic; line-height: 1.3; margin-top: 18px; }
.temple .affirm { margin-top: 22px; padding-top: 18px; border-top: 1px solid var(--line); }
.temple .big { justify-self: center; }
@media (max-width: 760px) { .temple { grid-template-columns: minmax(0, 1fr); } }
.sphere-mini { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 8px; padding: 18px 12px; }
.sphere-mini .nm { font-size: 14.5px; line-height: 1.3; }
.grid.spheres { grid-template-columns: repeat(auto-fill, minmax(min(100%, 150px), 1fr)); gap: 14px; }

/* Sphärenkarte */
.sphere { display: flex; flex-direction: column; gap: 14px; }
.sphere .hd { display: flex; gap: 14px; align-items: center; }
.sphere .intent { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 18px; color: var(--soft); }
.bar { height: 7px; border-radius: 9px; background: light-dark(rgba(120,90,160,.12), rgba(255,255,255,.1)); overflow: hidden; }
.bar i { display: block; height: 100%; border-radius: 9px; background: linear-gradient(90deg, hsl(var(--h) 60% 75%), var(--gold2)); box-shadow: 0 0 12px hsl(var(--h) 70% 70%); transition: width .6s; }

/* Ziele */
.goal { display: flex; flex-direction: column; gap: 12px; }
.goal .meta { display: flex; gap: 8px; flex-wrap: wrap; align-items: center; }
.checks { list-style: none; margin: 0; padding: 0; display: flex; flex-direction: column; gap: 2px; }
.checks li { display: flex; gap: 10px; align-items: center; padding: 4px 0; }
.checks li .t { flex: 1; }
.checks li.done .t { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--gold); }
.check { appearance: none; -webkit-appearance: none; width: 24px; height: 24px; min-height: 0; padding: 0; border-radius: 50%; border: 1.5px solid var(--gold); background: transparent; cursor: pointer; flex: none; display: grid; place-items: center; }
.check:checked { background: radial-gradient(circle, var(--gold2) 30%, var(--gold) 75%); box-shadow: 0 0 10px var(--gold2); }
.check:checked::after { content: ''; width: 6px; height: 10px; border: solid light-dark(#fff, #1d1636); border-width: 0 2px 2px 0; transform: translateY(-1px) rotate(45deg); }
.x { border: 0; background: none; color: var(--soft); cursor: pointer; width: 34px; height: 34px; border-radius: 50%; font-size: 18px; flex: none; opacity: .55; }
.x:hover { opacity: 1; background: var(--card); }
.add { display: flex; gap: 8px; margin-top: 8px; }
.add input { min-height: 40px; padding: 8px 12px; border-radius: 12px; }
.add .btn { min-height: 40px; }
input[type=range] { accent-color: var(--gold); padding: 0; border: 0; background: none; min-height: 30px; }

/* Jahresmatrix */
.matrix-wrap { overflow-x: auto; }
.matrix { border-collapse: separate; border-spacing: 4px; width: 100%; min-width: 860px; }
.matrix th { font-weight: 400; font-size: 13px; color: var(--soft); padding: 4px; }
.matrix th.nm { text-align: left; font-size: 14.5px; color: var(--ink); white-space: nowrap; padding-right: 10px; }
.matrix th.nm a { text-decoration: none; display: flex; gap: 8px; align-items: center; }
.matrix td { padding: 0; }
.matrix td a { display: flex; flex-direction: column; justify-content: center; gap: 4px; height: 52px; border-radius: 12px; padding: 4px 8px; text-decoration: none; background: var(--card); border: 1px solid transparent; font-size: 12.5px; color: var(--soft); }
.matrix td a:hover { border-color: var(--gold); }
.matrix td a.has { background: linear-gradient(160deg, hsl(var(--h) 70% 85% / .55), var(--card)); color: var(--ink); }
.matrix td a.now { box-shadow: inset 0 0 0 1.5px var(--gold); }
.dots { display: flex; gap: 3px; flex-wrap: wrap; }
.dots i { width: 7px; height: 7px; border-radius: 50%; border: 1px solid var(--gold); }
.dots i.d { background: var(--gold); }
.focus-snip { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }

/* Monatsplanung */
.month-nav { display: flex; gap: 10px; align-items: center; }
.month-nav h1 { min-width: 9ch; text-align: center; }
.mcard textarea { min-height: 64px; font-family: 'Cormorant Garamond', serif; font-size: 18px; font-style: italic; }

/* Vision */
.vcard { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.vcard .img { aspect-ratio: 4/3; background: var(--lav) center/cover; position: relative; }
.vcard .img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.vcard .body { padding: 18px 20px 20px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.vcard .body p { white-space: pre-line; }
.vcard.achieved { box-shadow: 0 0 0 1.5px var(--gold), 0 12px 46px -14px var(--gold2); }
.vcard .badge { position: absolute; left: 14px; top: 14px; background: var(--card2); color: var(--gold); border-radius: 999px; padding: 4px 12px; font-size: 13px; }
.vcard .tools { display: flex; gap: 6px; margin-top: auto; padding-top: 8px; }
.newcard { display: grid; place-items: center; min-height: 260px; border: 1.5px dashed var(--line); background: transparent; box-shadow: none; cursor: pointer; color: var(--gold); font: inherit; font-size: 17px; border-radius: var(--r); }
.newcard:hover { background: var(--card); }
.prose-intro { font-family: 'Cormorant Garamond', serif; font-size: clamp(21px, 2.3vw, 26px); font-style: italic; line-height: 1.4; max-width: 46ch; white-space: pre-line; }

/* Freude */
.joy li { padding: 10px 4px; border-bottom: 1px solid var(--line); font-size: 17px; }
.joy li:last-child { border: 0; }

/* Tagebuch */
.moods { display: flex; gap: 8px; flex-wrap: wrap; }
.moods button { width: 52px; height: 52px; border-radius: 50%; border: 1px solid var(--line); background: var(--card2); cursor: pointer; display: grid; place-items: center; color: var(--gold); padding: 0; }
.moods button svg { width: 30px; height: 30px; }
.moods button.on { box-shadow: 0 0 0 2px var(--gold), 0 0 18px var(--gold2); }
.cal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 4px; text-align: center; font-size: 13px; }
.cal b { font-weight: 400; color: var(--soft); padding: 4px 0; }
.cal button { aspect-ratio: 1; border-radius: 50%; border: 0; background: none; font: inherit; font-size: 13.5px; color: var(--ink); cursor: pointer; position: relative; padding: 0; min-height: 34px; }
.cal button.has::after { content: ''; position: absolute; bottom: 3px; left: 50%; width: 5px; height: 5px; margin-left: -2.5px; border-radius: 50%; background: var(--gold); box-shadow: 0 0 6px var(--gold2); }
.cal button.sel { background: var(--card2); box-shadow: inset 0 0 0 1.5px var(--gold); }
.cal button.today { font-weight: 500; color: var(--gold); }
.entries { display: flex; flex-direction: column; gap: 10px; margin-top: 14px; max-height: 640px; overflow-y: auto; padding-right: 4px; }
.entry { text-align: left; font: inherit; color: inherit; background: var(--card2); border: 1px solid var(--line); border-radius: 16px; padding: 12px 14px; cursor: pointer; }
.entry:hover { border-color: var(--gold); }
.entry .d { font-family: 'Cormorant Garamond', serif; font-size: 18px; font-weight: 600; }
.entry .s { font-size: 14px; color: var(--soft); display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
mark { background: light-dark(#f6e3b0, #6b5420); color: inherit; border-radius: 3px; padding: 0 2px; }
.saved { font-size: 13px; color: var(--soft); min-height: 20px; }

/* Rückblick */
.stats { display: grid; gap: 14px; grid-template-columns: repeat(auto-fit, minmax(min(100%, 150px), 1fr)); }
.stat .n { font-family: 'Cormorant Garamond', serif; font-size: clamp(36px, 4vw, 46px); font-weight: 600; line-height: 1; color: var(--gold); }
.stat .l { font-size: 14px; color: var(--soft); margin-top: 6px; }
.fig { position: relative; min-height: 280px; }
.fig > svg { position: absolute; inset: 0; width: 100%; height: 100%; overflow: visible; }
.legend { display: flex; gap: 18px; flex-wrap: wrap; font-size: 14px; color: var(--soft); margin-top: 10px; }
.legend i { display: inline-block; width: 18px; height: 3px; border-radius: 3px; vertical-align: middle; margin-right: 6px; }
.hrow { display: grid; grid-template-columns: minmax(0, 14em) minmax(0, 1fr) 4.5em; gap: 14px; align-items: center; padding: 8px 0; border-bottom: 1px solid var(--line); }
.hrow:last-child { border: 0; }
.hrow .v { text-align: right; font-variant-numeric: tabular-nums; white-space: nowrap; }
.hrow .delta { font-size: 13px; color: var(--gold); }
@media (max-width: 600px) { .hrow { grid-template-columns: minmax(0, 1fr) 4.5em; } .hrow .bar { grid-column: 1 / -1; order: 3; } }

/* Dialog, Hinweis, Login */
.modal { position: fixed; inset: 0; z-index: 50; display: grid; place-items: center; padding: 16px; background: light-dark(rgba(80,60,110,.28), rgba(5,3,15,.6)); backdrop-filter: blur(6px); }
.modal[hidden] { display: none; }
.modal-card { width: min(560px, 100%); max-height: calc(100vh - 32px); overflow-y: auto; background: var(--bg); border: 1px solid var(--line); border-radius: 26px; padding: 26px; box-shadow: 0 30px 80px -20px rgba(60,30,90,.5); }
.modal-card .actions { display: flex; gap: 10px; justify-content: flex-end; flex-wrap: wrap; margin-top: 22px; }
.preview-img { margin-top: 10px; border-radius: 16px; overflow: hidden; aspect-ratio: 4/3; background: var(--lav) center/cover; }
.preview-img img { width: 100%; height: 100%; object-fit: cover; display: block; }
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; transition: .3s; z-index: 60; background: var(--card2); border: 1px solid var(--gold); color: var(--ink); border-radius: 999px; padding: 10px 20px; box-shadow: var(--shadow); pointer-events: none; }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.login { min-height: 82vh; display: grid; place-items: center; }
.login .card { width: min(420px, 100%); text-align: center; padding: 40px 30px; }
.login svg.lg { width: 92px; height: 92px; color: var(--gold); margin: 0 auto 18px; display: block; filter: drop-shadow(0 0 14px var(--gold2)); }
.login form { margin-top: 22px; display: flex; flex-direction: column; gap: 12px; }
.err { color: light-dark(#a3324a, #ff9fb1); font-size: 14px; min-height: 20px; }
.empty-note { color: var(--soft); font-style: italic; font-family: 'Cormorant Garamond', serif; font-size: 18px; }
.demo-note { font-size: 13px; color: var(--soft); text-align: center; margin-top: 40px; }

/* Lichtpunkte & Woche */
.pts { flex: none; text-decoration: none; display: inline-flex; align-items: center; gap: 6px; min-height: 40px; padding: 6px 14px; border-radius: 999px; background: linear-gradient(135deg, light-dark(#fff6df, #3a2e52), var(--card2)); border: 1px solid var(--gold); color: var(--gold); font-weight: 500; white-space: nowrap; }
.pts .lvl { font-weight: 300; font-size: 13px; color: var(--soft); }
@media (max-width: 760px) { .pts { margin-left: auto; } .pts .lvl { display: none; } .icon-btn { margin-left: 0; } }
.week { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 12px; }
.week a { display: flex; flex-direction: column; align-items: center; gap: 6px; padding: 8px 0; border-radius: 14px; text-decoration: none; }
.week a.sel { background: var(--card2); box-shadow: inset 0 0 0 1px var(--line); }
.wd { width: 30px; height: 30px; border-radius: 50%; border: 1.5px solid var(--line); }
.wd.some { border-color: var(--gold); }
.wd.min { border-color: var(--gold); background: linear-gradient(90deg, var(--gold2) 50%, transparent 50%); }
.wd.max { border-color: var(--gold); background: radial-gradient(circle, #fff3cf, var(--gold2) 60%, var(--gold)); box-shadow: 0 0 14px var(--gold2); }
select { appearance: none; background-image: linear-gradient(45deg, transparent 50%, var(--gold) 50%), linear-gradient(135deg, var(--gold) 50%, transparent 50%); background-position: calc(100% - 20px) 50%, calc(100% - 15px) 50%; background-size: 5px 5px; background-repeat: no-repeat; padding-right: 36px; }

/* Mindmap neues Ich */
.mind { position: relative; width: 100%; max-width: 780px; aspect-ratio: 1; margin: 0 auto; }
.mind-lines { position: absolute; inset: 0; width: 100%; height: 100%; color: var(--gold); }
.mind-center { position: absolute; left: 50%; top: 50%; width: 32%; transform: translate(-50%, -50%); text-align: center; }
.mind-center .me { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--lav) center/cover; box-shadow: 0 0 0 3px var(--card2), 0 0 0 4.5px var(--gold2), 0 0 60px 12px light-dark(rgba(243,213,140,.55), rgba(229,196,126,.3)); }
.mind-center p { font-size: clamp(18px, 2.4vw, 24px); margin-top: 8px; }
.qnode { position: absolute; transform: translate(-50%, -50%); width: 19%; aspect-ratio: 1; border-radius: 50%; border: 1px solid hsl(var(--h) 50% 70% / .7); cursor: pointer; font: inherit; color: var(--ink); padding: 6px;
  background: radial-gradient(circle at 50% 40%, light-dark(#fff, hsl(var(--h) 30% 30%)), hsl(var(--h) 70% 85% / calc(.35 + var(--g) * .5)));
  box-shadow: 0 0 calc(var(--g) * 34px) calc(var(--g) * 6px) hsl(var(--h) 80% 75% / .6); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; transition: transform .3s; }
.qnode:hover { transform: translate(-50%, -50%) scale(1.06); }
.qnode .qn { font-family: 'Cormorant Garamond', serif; font-weight: 600; font-size: clamp(14px, 1.9vw, 19px); line-height: 1.1; }
.qnode .qd { font-size: 9px; letter-spacing: 1px; color: var(--gold); }
@media (max-width: 600px) {
  .mind { aspect-ratio: auto; display: flex; flex-wrap: wrap; gap: 10px; justify-content: center; }
  .mind-lines { display: none; }
  .mind-center { position: static; transform: none; width: 60%; margin: 0 20% 14px; }
  .qnode { position: static; transform: none; width: calc(33.3% - 8px); }
  .qnode:hover { transform: scale(1.04); }
}
.item-t { flex: 1; text-align: left; background: none; border: 0; padding: 2px 0; font: inherit; color: inherit; cursor: pointer; }
.item-t:hover { color: var(--gold); }
.checks li.done .item-t { color: var(--soft); text-decoration: line-through; text-decoration-color: var(--gold); }

/* Freude-Woche */
.joyweek { display: grid; gap: 12px; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); }
.jday { display: flex; flex-direction: column; gap: 10px; align-items: flex-start; padding: 18px; }
.jday .jt { font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; line-height: 1.2; flex: 1; }
.jday.today { box-shadow: 0 0 0 1.5px var(--gold), 0 12px 40px -14px var(--gold2); background: linear-gradient(160deg, var(--rose), var(--card)); }
.joy li .btn.small { flex: none; }

/* Idealer Tag */
.timeline { list-style: none; margin: 18px 0 0; padding: 0 0 0 4.6em; position: relative; }
.timeline::before { content: ''; position: absolute; left: 3.4em; top: 8px; bottom: 8px; width: 1.5px; background: linear-gradient(var(--gold2), var(--lav)); }
.timeline > li { position: relative; margin-bottom: 16px; }
.timeline .tm { position: absolute; left: -4.6em; top: 14px; width: 3.6em; text-align: right; font-family: 'Cormorant Garamond', serif; font-size: 20px; font-weight: 600; color: var(--gold); white-space: nowrap; padding-right: 1.2em; }
.timeline .tm::after { content: ''; position: absolute; right: -6px; top: 8px; width: 11px; height: 11px; border-radius: 50%; background: var(--gold2); box-shadow: 0 0 10px var(--gold2); }
.tl-card { display: grid; grid-template-columns: 140px minmax(0, 1fr); gap: 16px; align-items: start; padding: 14px; }
.tl-img { aspect-ratio: 4/3; border-radius: 14px; background: var(--lav) center/cover; }
@media (max-width: 600px) { .tl-card { grid-template-columns: minmax(0, 1fr); } .timeline { padding-left: 3.8em; } .timeline::before { left: 2.8em; } .timeline .tm { left: -3.8em; width: 3.2em; font-size: 17px; } }

a.card.sphere-mini, a.card.sphere { display: flex; }
.nav a { padding: 9px 11px; font-size: 14.5px; }
.tool { display: flex; flex-direction: column; gap: 10px; }
.stars { display: inline-flex; flex: none; }
.stars button { border: 0; background: none; font-size: 19px; line-height: 1; padding: 4px 2px; cursor: pointer; color: light-dark(rgba(120,90,160,.25), rgba(255,255,255,.2)); min-height: 30px; }
.stars button.on { color: var(--gold2); text-shadow: 0 0 8px var(--gold2); }

.rrow { display: grid; grid-template-columns: 7.5em minmax(0, 1fr) auto; gap: 12px; align-items: center; padding: 10px 12px; border-radius: 16px; background: var(--card2); border: 1px solid var(--line); }
.rrow.today { box-shadow: 0 0 0 1.5px var(--gold), 0 10px 30px -14px var(--gold2); }
.rrow .item-t { font-size: 15.5px; }
@media (max-width: 600px) { .rrow { grid-template-columns: minmax(0, 1fr); gap: 6px; } }
.matrix { table-layout: fixed; }
.matrix th.nm { width: 230px; }

/* Карта жизни */
.lifemap { max-width: 900px; margin-top: 10px; }
.lifemap .mind-center { width: 26%; }
.lifemap .mind-center .chip { margin-top: 4px; display: inline-block; }
.snode { position: absolute; transform: translate(-50%, -50%); width: 14%; display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; text-decoration: none; color: var(--ink); transition: transform .3s; }
.snode:hover { transform: translate(-50%, -50%) scale(1.06); }
.snode .ring { width: 100%; aspect-ratio: 1; border-radius: 50%; padding: 5px; background: conic-gradient(hsl(var(--h) 65% 65%) calc(var(--p) * 1%), light-dark(rgba(120,90,160,.12), rgba(255,255,255,.1)) 0); box-shadow: 0 0 calc(8px + var(--p) * .3px) hsl(var(--h) 80% 75% / .7); }
.snode .simg { display: block; width: 100%; height: 100%; border-radius: 50%; background: var(--lav) center/cover; border: 3px solid var(--bg); }
.snode .sn { font-size: clamp(12px, 1.25vw, 14.5px); line-height: 1.2; font-weight: 400; }
.snode .sp { font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--gold); font-size: 16px; line-height: 1; }
@media (max-width: 600px) {
  .lifemap .mind-center { width: 52%; margin: 0 24% 14px; }
  .snode { position: static; transform: none; width: calc(33.3% - 8px); }
  .snode:hover { transform: scale(1.04); }
}
/* Обложки */
.banner { height: clamp(150px, 24vw, 260px); border-radius: var(--r); background: var(--lav) center/cover; margin-bottom: 24px; position: relative; box-shadow: var(--shadow); }
.banner label { position: absolute; right: 14px; bottom: 14px; margin: 0; color: var(--ink); background: var(--card2); }
.sphere-img { height: 120px; margin: 0 -22px 4px; background: var(--lav) center/cover; }
.jimg { width: calc(100% + 36px); margin: -18px -18px 4px; height: 92px; border-radius: var(--r) var(--r) 0 0; background: var(--lav) center/cover; }
/* Майндмэп */
.mm { position: relative; display: grid; grid-template-columns: minmax(0, 1fr) minmax(170px, 250px) minmax(0, 1fr); gap: 18px 56px; align-items: center; padding: 18px 4px; }
.mm-lines { position: absolute; inset: 0; width: 100%; height: 100%; pointer-events: none; overflow: visible; }
.mm-side { display: flex; flex-direction: column; gap: 16px; position: relative; }
.mm-l { align-items: flex-end; text-align: right; }
.mm-center { text-align: center; position: relative; z-index: 1; }
.mm-photo { width: 100%; max-width: 210px; margin: 0 auto; aspect-ratio: 1; border-radius: 50%; background: var(--lav) center/cover; box-shadow: 0 0 0 3px var(--card2), 0 0 0 4.5px var(--gold2), 0 0 50px 8px light-dark(rgba(243,213,140,.5), rgba(229,196,126,.25)); }
.mm-branch { position: relative; z-index: 1; max-width: 340px; width: 100%; }
.mm-head { display: inline-flex; align-items: center; gap: 8px; padding: 8px 16px; border-radius: 999px; text-decoration: none; color: var(--ink); font-family: 'Cormorant Garamond', serif; font-size: 19px; font-weight: 600; line-height: 1.15;
  background: linear-gradient(135deg, hsl(var(--h) 75% 90% / .9), var(--card2)); border: 1px solid hsl(var(--h) 50% 70% / .6); box-shadow: 0 6px 22px -10px hsl(var(--h) 60% 60%); }
a.mm-head:hover { border-color: var(--gold); }
.mm-head .chip { font-family: Jost, sans-serif; font-weight: 400; }
.mm-dot { width: 26px; height: 26px; border-radius: 50%; background: var(--lav) center/cover; flex: none; }
.mm-leaves { list-style: none; margin: 8px 0 0; padding: 0 0 0 16px; border-left: 1.5px solid hsl(var(--h) 50% 70% / .6); display: flex; flex-direction: column; gap: 5px; font-size: 14.5px; }
.mm-l .mm-leaves { padding: 0 16px 0 0; border-left: 0; border-right: 1.5px solid hsl(var(--h) 50% 70% / .6); }
.mm-leaves li { line-height: 1.35; }
.mm-empty { margin: 6px 0 0; font-style: italic; }
@media (max-width: 700px) {
  .mm { grid-template-columns: minmax(0, 1fr); gap: 14px; }
  .mm-center { order: -1; }
  .mm-photo { max-width: 150px; }
  .mm-side, .mm-l { position: static; align-items: stretch; text-align: left; }
  .mm-l .mm-leaves { padding: 0 0 0 16px; border-right: 0; border-left: 1.5px solid hsl(var(--h) 50% 70% / .6); }
  .mm-branch { max-width: none; }
  .mm-lines { display: none; }
}

/* Навигация в две строки: все разделы видны */
.top { flex-wrap: wrap; row-gap: 6px; padding-bottom: 8px; }
.nav { order: 3; flex-basis: 100%; justify-content: safe center; }
.pts { margin-left: auto; }
.top .icon-btn { margin-left: 0; }
.back[hidden] { display: none; }
.back svg { stroke-width: 2; }

/* Видение года по сферам */
.yv { display: flex; flex-direction: column; gap: 14px; }
.yv-row { display: grid; grid-template-columns: 170px minmax(0, 1fr); gap: 22px; align-items: start; padding: 14px; }
.yv-img { aspect-ratio: 4/3; border-radius: 14px; background: var(--lav) center/cover; display: block; }
.yv-text { font-family: 'Cormorant Garamond', serif; font-size: 20px; line-height: 1.5; margin-top: 6px; white-space: pre-line; }
.yv-row textarea, .card > textarea { min-height: 140px; }

/* Новое Я: качества одно под другим */
.qlist { display: flex; flex-direction: column; gap: 18px; margin-top: 18px; }
.qrow { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 16px; align-items: start; }
.qimg { aspect-ratio: 1; border-radius: 20px; background: var(--lav) center/cover; display: flex; align-items: flex-end; justify-content: center; padding: 12px; box-shadow: 0 0 0 4px hsl(var(--h) 70% 88% / .7), 0 14px 40px -18px hsl(var(--h) 60% 50%); }
.qimg .btn { opacity: .9; margin: 0; }
.steps { margin-top: 6px; }
.steps li { padding: 7px 0; border-bottom: 1px dashed var(--line); }
.steps li:last-child { border-bottom: 0; }

/* Идеальный день текстом */
.ideal { padding: clamp(20px, 3vw, 34px); background: linear-gradient(160deg, light-dark(rgba(255,250,240,.9), rgba(60,50,90,.5)), var(--card)); }
.ideal-text { font-family: 'Cormorant Garamond', serif; font-size: clamp(19px, 2vw, 22px); line-height: 1.65; white-space: pre-line; }
.ideal textarea { min-height: 360px; width: 100%; }
details.hours { margin-top: 18px; }
details.hours summary { cursor: pointer; color: var(--gold); padding: 8px 0; font-size: 16px; }

/* Список счастья */
.happy { list-style: none; margin: 0; padding: 0; }
.happy li { display: flex; gap: 12px; align-items: center; padding: 9px 0; border-bottom: 1px dashed var(--line); font-size: 17px; }
.happy li:not(.empty-note)::before { content: '♡'; color: var(--gold); font-size: 18px; flex: none; }
.happy li .t { flex: 1; }

/* Big Five for Life */
.big5 { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 200px), 1fr)); gap: 14px; }
.b5 { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.b5img { aspect-ratio: 4/5; background: var(--lav) center/cover; position: relative; }
.b5n { position: absolute; top: 10px; left: 10px; width: 36px; height: 36px; border-radius: 50%; background: rgba(255,255,255,.88); display: grid; place-items: center; font-family: 'Cormorant Garamond', serif; font-weight: 600; color: var(--gold); font-size: 21px; }
.b5 .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.b5.achieved { box-shadow: 0 0 0 1.5px var(--gold), 0 12px 46px -14px var(--gold2); }
.b5.empty { position: relative; border: 1.5px dashed var(--line); border-radius: 22px; background: transparent; min-height: 300px; cursor: pointer; display: grid; place-items: center; color: var(--soft); font: inherit; font-size: 15px; }
.b5.empty .b5n { background: var(--card); }
.jcard textarea { min-height: 120px; }
@media (max-width: 640px) {
  .yv-row { grid-template-columns: 84px minmax(0, 1fr); gap: 14px; }
  .qrow { grid-template-columns: minmax(0, 1fr); }
  .qimg { aspect-ratio: 16/9; }
}

/* Больше фиолетового: аметистовая палитра с золотыми акцентами */
:root {
  --violet: light-dark(#7a4cc2, #bfa2f5);
  --violet2: light-dark(#a57fe0, #d6c2fb);
  --bg: light-dark(#f7f2fc, #160f2e);
  --ink: light-dark(#35234f, #f3ecfb);
  --soft: light-dark(#715f94, #bcaed6);
  --lav: light-dark(#dccbf5, #33245e);
  --rose: light-dark(#f1d9ef, #3d2350);
  --card: light-dark(rgba(255,253,255,.7), rgba(40,28,74,.66));
  --line: light-dark(rgba(122,76,194,.2), rgba(191,162,245,.22));
  --shadow: light-dark(0 12px 40px -18px rgba(110,60,180,.38), 0 10px 40px -18px rgba(0,0,0,.6));
}
.sky { background:
    radial-gradient(65vw 55vh at 5% 0%, light-dark(#d9c4f6, #3a2770), transparent 70%),
    radial-gradient(50vw 45vh at 100% 15%, var(--rose), transparent 70%),
    radial-gradient(55vw 45vh at 0% 85%, light-dark(#e4d4fa, #2b1f5c), transparent 70%),
    radial-gradient(60vw 40vh at 70% 105%, light-dark(#f2e2f6, #2a2147), transparent 70%), var(--bg); }
h1, h2 { color: light-dark(#4b2a80, #efe4ff); }
.kicker { color: var(--violet); }
.btn.gold { background: linear-gradient(135deg, var(--violet2), var(--violet)); color: #fff; box-shadow: 0 6px 22px -8px var(--violet), inset 0 0 0 1px rgba(255,230,170,.35); }
.nav a.on { background: light-dark(rgba(122,76,194,.12), rgba(191,162,245,.18)); color: light-dark(#4b2a80, #fff); box-shadow: inset 0 0 0 1px light-dark(rgba(122,76,194,.3), rgba(191,162,245,.35)); }
.check { border-color: var(--violet); }
.check:checked { background: radial-gradient(circle, var(--violet2) 30%, var(--violet) 75%); box-shadow: 0 0 10px var(--violet2); }
.check:checked::after { border-color: #fff; }
.bar { background: light-dark(rgba(122,76,194,.1), rgba(191,162,245,.14)); }
.bar i { background: linear-gradient(90deg, hsl(var(--h) 60% 75%), var(--violet2)); }
.checks li.done .t { text-decoration-color: var(--violet); }
.temple, .ideal { background: linear-gradient(150deg, light-dark(rgba(236,224,252,.85), rgba(58,38,104,.6)), var(--card)); }
.yv-text, .ideal-text { color: light-dark(#3e2468, #f1e8ff); }
.happy li:not(.empty-note)::before { color: var(--violet); }
.b5n { color: var(--violet); }
details.hours summary { color: var(--violet); }
.top { background: light-dark(rgba(247,242,252,.8), rgba(22,15,46,.8)); }
@media (max-width: 480px) { .brand span { display: none; } .top { flex-wrap: wrap; } }
.matrix thead th:first-child { width: 230px; }

/* Майндмэпы: читаемый шрифт */
.mm-head { font-family: Jost, system-ui, sans-serif; font-size: 16.5px; font-weight: 500; }
.mm-leaves { font-size: 15px; color: var(--ink); }

/* Майндмэп года 2027 */
.mm.year { grid-template-columns: minmax(0, 1fr) minmax(200px, 270px) minmax(0, 1fr); gap: 22px 64px; }
.mm.year .mm-side { gap: 22px; }
.mm.year .mm-branch { max-width: 360px; }
.mm.year .mm-head { padding: 5px 16px 5px 5px; gap: 10px; background: linear-gradient(120deg, hsl(var(--h) 80% 96%), #fff); border: 1px solid hsl(var(--h) 55% 82%); box-shadow: 0 6px 20px -12px hsl(var(--h) 60% 45%); font-size: 17px; font-weight: 500; color: #35234f; }
.mm.year .mm-l .mm-head { padding: 5px 5px 5px 16px; flex-direction: row-reverse; }
.mm.year .mm-head .chip { background: hsl(var(--h) 70% 92%); border-color: transparent; color: hsl(var(--h) 45% 35%); font-weight: 500; font-size: 13px; }
.ym-ring { width: 46px; height: 46px; border-radius: 50%; padding: 3px; flex: none; background: conic-gradient(hsl(var(--h) 60% 60%) calc(var(--p) * 1%), hsl(var(--h) 40% 88%) 0); }
.ym-ring .mm-dot { width: 100%; height: 100%; display: block; border: 2px solid #fff; }
.mm.year .mm-leaves { gap: 8px; margin-top: 10px; border-color: hsl(var(--h) 50% 78%); }
.ym-obj { display: block; font-size: 15px; line-height: 1.45; color: #3e2d58; }
.ym-kr { display: flex; flex-direction: column; gap: 4px; font-size: 13.5px; color: var(--soft); }
.mm-l .ym-kr { align-items: flex-end; }
.ym-kr i { display: block; width: 140px; height: 5px; border-radius: 5px; background: hsl(var(--h) 40% 90%); overflow: hidden; }
.ym-kr b { display: block; height: 100%; background: hsl(var(--h) 60% 62%); border-radius: 5px; }
.ym-center { text-align: center; }
.ym-year { font-family: 'Cormorant Garamond', serif; font-size: 48px; font-weight: 600; line-height: 1; margin-top: 14px; color: light-dark(#4b2a80, #efe4ff); }
.ym-int { font-size: 15px; line-height: 1.45; color: var(--ink); margin-top: 8px; }
.ym-pct { display: inline-block; margin-top: 10px; padding: 4px 14px; border-radius: 999px; background: linear-gradient(135deg, var(--violet2), var(--violet)); color: #fff; font-size: 13.5px; font-weight: 500; }

/* Карточки сфер на странице года */
.scards { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 380px), 1fr)); gap: 14px; }
.scard { display: grid; grid-template-columns: 104px minmax(0, 1fr); gap: 18px; align-items: center; padding: 12px 18px 12px 12px; border-radius: 22px; text-decoration: none; color: var(--ink);
  background: linear-gradient(120deg, hsl(var(--h) 80% 97% / .9), rgba(255,255,255,.75)); border: 1px solid hsl(var(--h) 45% 86%); box-shadow: 0 10px 30px -20px hsl(var(--h) 60% 40%); transition: transform .2s, box-shadow .2s; }
.scard:hover { transform: translateY(-2px); box-shadow: 0 16px 36px -18px hsl(var(--h) 60% 40%); }
.scard-img { width: 104px; height: 104px; border-radius: 18px; background: var(--lav) center/cover; box-shadow: inset 0 0 0 1px rgba(255,255,255,.6); }
.scard-body { display: flex; flex-direction: column; gap: 6px; }
.scard-top { display: flex; justify-content: space-between; align-items: baseline; gap: 10px; }
.scard-name { font-size: 18px; font-weight: 500; line-height: 1.25; }
.scard-pct { font-size: 15px; font-weight: 500; color: hsl(var(--h) 45% 40%); }
.scard-obj { font-size: 14.5px; line-height: 1.45; color: #4a3a62; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.scard-bar { display: block; height: 6px; border-radius: 6px; background: hsl(var(--h) 40% 90%); overflow: hidden; }
.scard-bar b { display: block; height: 100%; border-radius: 6px; background: linear-gradient(90deg, hsl(var(--h) 60% 70%), hsl(var(--h) 55% 55%)); }
.scard-meta { font-size: 13px; color: var(--soft); }
@media (max-width: 700px) {
  .mm.year { grid-template-columns: minmax(0, 1fr); }
  .mm.year .mm-l .mm-head { flex-direction: row; padding: 5px 16px 5px 5px; }
  .mm-l .ym-kr { align-items: flex-start; }
  .scard { grid-template-columns: 76px minmax(0, 1fr); gap: 14px; }
  .scard-img { width: 76px; height: 76px; border-radius: 14px; }
}

/* Редактирование текста: кнопки сохранения */
.edit-box { display: flex; flex-direction: column; gap: 8px; }
.edit-box textarea { min-height: 120px; }
.edit-bar { display: flex; gap: 8px; justify-content: flex-end; }

.yv-text { font-family: Jost, system-ui, sans-serif; font-size: 16px; line-height: 1.6; color: #3e2d58; }
.yv-text.empty { font-style: italic; color: var(--soft); }
.yv-row h3 { font-family: Jost, system-ui, sans-serif; font-size: 18px; font-weight: 500; }

.goals-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 420px), 1fr)); gap: 16px; align-items: start; }
.focus-card textarea { min-height: 110px; }

.back-link { margin-bottom: 12px; }
/* Итоги: уровень и награды */
.lvl-hero { display: grid; grid-template-columns: 220px minmax(0, 1fr); gap: 30px; align-items: center; padding: clamp(20px, 3vw, 34px); background: linear-gradient(140deg, light-dark(rgba(236,224,252,.9), rgba(58,38,104,.6)), var(--card)); }
.lvl-img { width: 220px; aspect-ratio: 1; border-radius: 50%; background: var(--lav) center/cover; position: relative; box-shadow: 0 0 0 4px #fff, 0 0 0 6px var(--gold2), 0 0 60px 10px rgba(183,148,240,.45); }
.lvl-n { position: absolute; right: 6px; bottom: 6px; width: 58px; height: 58px; border-radius: 50%; display: grid; place-items: center; background: linear-gradient(135deg, var(--gold2), var(--gold)); color: #fff; font-family: 'Cormorant Garamond', serif; font-size: 30px; font-weight: 600; box-shadow: 0 6px 18px -6px var(--gold); }
.bar.big { height: 12px; }
.lvl-path { list-style: none; padding: 0; margin: 18px 0 0; display: flex; gap: 4px; flex-wrap: wrap; }
.lvl-path li { flex: 1 1 60px; display: flex; flex-direction: column; align-items: center; gap: 4px; text-align: center; }
.lvl-path span { width: 34px; height: 34px; border-radius: 50%; display: grid; place-items: center; border: 1.5px solid var(--line); color: var(--soft); font-size: 14px; background: var(--card); }
.lvl-path li.on span { background: linear-gradient(135deg, var(--violet2), var(--violet)); color: #fff; border-color: transparent; }
.lvl-path li.cur span { box-shadow: 0 0 0 3px var(--gold2), 0 0 16px var(--gold2); }
.lvl-path small { font-size: 11.5px; color: var(--soft); line-height: 1.2; }
.lvl-path li.on small { color: var(--ink); }
.badges { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 170px), 1fr)); gap: 14px; }
.badge-c { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 14px; border-radius: 22px; background: var(--card); border: 1px solid var(--line); filter: grayscale(.7); opacity: .75; }
.badge-c.won { filter: none; opacity: 1; background: linear-gradient(160deg, light-dark(#fff8e8, rgba(90,63,143,.6)), var(--card)); border-color: var(--gold2); box-shadow: 0 10px 30px -16px var(--gold); }
.medal { width: 64px; height: 64px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; background: radial-gradient(circle at 35% 30%, #fff, light-dark(#ecdffb, #43306F)); box-shadow: 0 0 0 2px var(--line); }
.badge-c.won .medal { background: radial-gradient(circle at 35% 30%, #fff6dc, #f0d08c); box-shadow: 0 0 0 2px var(--gold), 0 0 22px rgba(240,208,140,.7); }
.badge-c b { font-weight: 500; font-size: 15px; }
.badge-c small { font-size: 12.5px; color: var(--soft); }
/* Путешествия */
.trips { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 230px), 1fr)); gap: 14px; }
.trip { padding: 0; overflow: hidden; display: flex; flex-direction: column; }
.trip-img { aspect-ratio: 16/10; background: var(--lav) center/cover; position: relative; display: flex; gap: 6px; align-items: flex-start; padding: 10px; }
.trip-img .chip { background: rgba(255,255,255,.88); }
.trip .body { padding: 14px 16px 16px; display: flex; flex-direction: column; gap: 8px; flex: 1; }
.trip.achieved { box-shadow: 0 0 0 1.5px var(--gold), 0 12px 40px -16px var(--gold2); }
@media (max-width: 640px) { .lvl-hero { grid-template-columns: minmax(0, 1fr); justify-items: center; text-align: center; } .lvl-img { width: 170px; } }

/* Календарь месяца */
.mcal { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 6px; margin-top: 14px; }
.mcal > b { text-align: center; font-weight: 400; font-size: 13px; color: var(--soft); padding-bottom: 2px; }
.mc-cell { min-height: 84px; border-radius: 14px; border: 1px solid var(--line); background: var(--card); padding: 6px 7px; display: flex; flex-direction: column; gap: 3px; align-items: stretch; text-align: left; font: inherit; color: var(--ink); cursor: pointer; overflow: hidden; }
.mc-cell.empty { border: 0; background: none; cursor: default; }
.mc-cell.we { background: light-dark(rgba(236,224,252,.45), rgba(58,38,104,.35)); }
.mc-cell:hover { border-color: var(--violet); }
.mc-cell.today { box-shadow: inset 0 0 0 2px var(--violet); }
.mc-n { font-size: 14px; display: flex; align-items: center; gap: 5px; }
.mc-j { width: 6px; height: 6px; border-radius: 50%; background: var(--gold2); display: inline-block; }
.mc-ev { display: block; font-size: 11.5px; line-height: 1.25; padding: 2px 6px; border-radius: 6px; background: hsl(var(--h) 70% 90%); color: hsl(var(--h) 40% 28%); white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.mc-more { font-size: 11px; color: var(--soft); }
.mc-list { list-style: none; padding: 0; margin: 16px 0 0; display: flex; flex-direction: column; gap: 6px; }
.mc-list li { display: flex; align-items: center; gap: 10px; padding: 6px 0; border-bottom: 1px dashed var(--line); }
.mc-list .t { flex: 1; }
@media (max-width: 640px) { .mcal { gap: 3px; } .mc-cell { min-height: 54px; padding: 4px; border-radius: 10px; } .mc-ev { font-size: 0; padding: 0; height: 6px; border-radius: 3px; } .mc-more { display: none; } }

/* Итоги: путь к вершине, иконки, цветок */
.journey { margin-bottom: 18px; }
.jp-wrap { margin-top: 14px; }
.jp { width: 100%; height: auto; display: block; border-radius: 22px; }
.icon-stats { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 130px), 1fr)); gap: 12px; }
.istat { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 4px; padding: 16px 10px; border-radius: 20px; background: var(--card); border: 1px solid var(--line); }
.istat .ic { width: 54px; height: 54px; border-radius: 50%; display: grid; place-items: center; font-size: 26px; background: radial-gradient(circle at 35% 30%, #fff, light-dark(#ecdffb, #43306F)); box-shadow: 0 0 0 2px var(--line), 0 6px 18px -8px var(--violet); }
.istat b { font-family: 'Cormorant Garamond', serif; font-size: 32px; font-weight: 600; line-height: 1; margin-top: 6px; color: light-dark(#4b2a80, #efe4ff); }
.istat small { font-size: 13px; color: var(--soft); line-height: 1.3; }
.flower { width: 100%; max-width: 440px; display: block; margin: 0 auto; overflow: visible; }
.flower-list { display: flex; flex-direction: column; gap: 2px; }
.fl-row { display: grid; grid-template-columns: 14px minmax(0, 1fr) auto 3.2em; gap: 10px; align-items: center; padding: 7px 4px; border-bottom: 1px dashed var(--line); text-decoration: none; color: var(--ink); }
.fl-dot { width: 12px; height: 12px; border-radius: 50%; background: hsl(var(--h) 65% 70%); }
.fl-v { font-weight: 500; }
.fl-d { font-size: 13px; color: hsl(150 45% 40%); text-align: right; }
.icon-stats { grid-template-columns: repeat(4, minmax(0, 1fr)); }
@media (max-width: 640px) { .icon-stats { grid-template-columns: repeat(2, minmax(0, 1fr)); } }

/* Помощница */
.chat-fab { position: fixed; right: 20px; bottom: 20px; z-index: 40; display: inline-flex; align-items: center; gap: 8px; padding: 12px 20px; border-radius: 999px; border: 0; cursor: pointer; font: inherit; font-weight: 500; color: #fff;
  background: linear-gradient(135deg, var(--violet2), var(--violet)); box-shadow: 0 10px 30px -8px var(--violet), 0 0 0 4px rgba(255,255,255,.6); }
.chat-fab span { color: #ffe6b0; font-size: 18px; }
.chat-fab[hidden] { display: none; }
.chat { position: fixed; right: 20px; bottom: 20px; z-index: 41; width: min(420px, calc(100vw - 24px)); height: min(640px, calc(100vh - 110px)); display: flex; flex-direction: column; border-radius: 26px; overflow: hidden;
  background: light-dark(#fbf7ff, #241a44); border: 1px solid var(--line); box-shadow: 0 30px 80px -20px rgba(80,40,140,.45); }
.chat[hidden] { display: none; }
.chat-head { display: flex; align-items: center; gap: 12px; padding: 14px 16px; background: linear-gradient(135deg, light-dark(#efe3ff, #3a2a63), light-dark(#fbefff, #2e2150)); border-bottom: 1px solid var(--line); }
.chat-head div { flex: 1; display: flex; flex-direction: column; }
.chat-head b { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-weight: 600; line-height: 1.1; }
.chat-head small { color: var(--soft); font-size: 12.5px; }
.chat-av { width: 40px; height: 40px; border-radius: 50%; display: grid; place-items: center; color: #fff; font-size: 18px; background: radial-gradient(circle at 35% 30%, var(--violet2), var(--violet)); box-shadow: 0 0 0 2px var(--gold2); }
.chat-body { flex: 1; overflow-y: auto; padding: 16px; display: flex; flex-direction: column; gap: 10px; }
.msg { max-width: 86%; padding: 10px 14px; border-radius: 18px; font-size: 15px; line-height: 1.5; white-space: normal; }
.msg.bot { align-self: flex-start; background: light-dark(#fff, #33255a); border: 1px solid var(--line); border-bottom-left-radius: 6px; }
.msg.me { align-self: flex-end; background: linear-gradient(135deg, var(--violet2), var(--violet)); color: #fff; border-bottom-right-radius: 6px; }
.chips { display: flex; flex-wrap: wrap; gap: 6px; }
.chips .chip { cursor: pointer; font: inherit; font-size: 14px; padding: 7px 12px; background: light-dark(#fff, #33255a); }
.chips .chip:hover { border-color: var(--violet); color: var(--violet); }
.chips.menu .chip { font-size: 14.5px; }
.chat-in { display: flex; gap: 8px; align-items: flex-end; padding: 12px; border-top: 1px solid var(--line); background: light-dark(#fff, #2a1e4c); }
.chat-in textarea { flex: 1; min-height: 44px; max-height: 140px; resize: none; margin: 0; }
.chat-in .btn { flex: none; min-width: 44px; justify-content: center; }
@media (max-width: 640px) { .chat { right: 8px; bottom: 8px; height: calc(100vh - 90px); } .chat-fab { right: 12px; bottom: 12px; padding: 11px 16px; } }

/* Майндмэп «Новое Я»: фото в кружочках */
.qnode.photo { padding: 0; overflow: visible; background: none; border: 0; justify-content: flex-start; gap: 6px; }
.qnode.photo .qph { width: 100%; aspect-ratio: 1; border-radius: 50%; background: var(--lav) center/cover; flex: none;
  box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px hsl(var(--h) 60% 72%), 0 0 calc(var(--g) * 34px) calc(var(--g) * 6px) hsl(var(--h) 80% 75% / .6); transition: box-shadow .3s; }
.qnode.photo .qn { position: absolute; left: 50%; bottom: -10px; transform: translateX(-50%); white-space: nowrap; max-width: 150%; overflow: hidden; text-overflow: ellipsis;
  font-family: Jost, system-ui, sans-serif; font-weight: 500; font-size: clamp(11.5px, 1.3vw, 14.5px); padding: 3px 10px; border-radius: 999px; background: rgba(255,255,255,.92); color: #3e2468; box-shadow: 0 4px 12px -6px hsl(var(--h) 50% 40%); }
.qnode.photo .qd { position: absolute; top: -8px; left: 50%; transform: translateX(-50%); background: rgba(255,255,255,.9); border-radius: 999px; padding: 1px 6px; }

/* Заметки в сферах */
.note-card .trip-img { width: 100%; padding: 10px; text-align: left; }
.note-card .trip-img:hover { filter: brightness(1.04); }

/* Фазы луны */
.moon { display: inline-block; width: 14px; height: 14px; border-radius: 50%; flex: none; vertical-align: middle; }
.moon.new { background: radial-gradient(circle at 35% 35%, #6b4fa0, #2b1a4f); box-shadow: 0 0 0 1.5px #b9a4e6; }
.moon.full { background: radial-gradient(circle at 40% 38%, #fffbea, #f3d98a 70%, #e2bd5c); box-shadow: 0 0 10px 2px rgba(240,205,110,.7); }
.mc-moon { margin-left: auto; display: inline-flex; }
.mc-cell.m-new { background: linear-gradient(160deg, rgba(120,90,190,.16), transparent 70%), var(--card); }
.mc-cell.m-full { background: linear-gradient(160deg, rgba(245,215,130,.32), transparent 70%), var(--card); }
.moon-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 12px; margin-top: 16px; }
.moon-card { display: flex; align-items: center; gap: 14px; padding: 14px 16px; border-radius: 18px; border: 1px solid var(--line); flex-wrap: wrap; }
.moon-card .moon { width: 34px; height: 34px; }
.moon-card.new { background: linear-gradient(140deg, rgba(110,80,180,.14), transparent); }
.moon-card.full { background: linear-gradient(140deg, rgba(245,215,130,.30), transparent); }
.moon-card b { font-weight: 500; }

/* Итоги года для PDF */
.rp-tools { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; margin-bottom: 20px; }
.report { display: flex; flex-direction: column; gap: 26px; }
.rp-page { background: #fff; border-radius: 26px; padding: clamp(24px, 5vw, 56px); box-shadow: 0 18px 50px -30px rgba(90,50,160,.45); border: 1px solid var(--line); color: #2f1d52; }
.rp-page h2 { font-family: 'Cormorant Garamond', serif; font-size: 34px; color: #4b2a86; margin: 0 0 16px; }
.rp-cover { text-align: center; background: radial-gradient(circle at 50% 0%, #efe4ff, #fff 60%); }
.rp-cover-img { width: 190px; height: 190px; border-radius: 50%; margin: 0 auto 18px; background: center/cover; box-shadow: 0 0 0 6px #fff, 0 0 0 8px #c9b2f0, 0 0 60px 10px rgba(201,162,79,.35); }
.rp-cover h1 { font-family: 'Cormorant Garamond', serif; font-size: clamp(44px, 7vw, 72px); margin: 4px 0; color: #4b2a86; }
.rp-name { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 26px; color: #8a6bb8; margin: 0; }
.rp-hero-stats { display: flex; justify-content: center; align-items: center; gap: 40px; margin: 28px 0; flex-wrap: wrap; }
.rp-hero-stats > div { display: flex; flex-direction: column; align-items: center; gap: 6px; }
.rp-lvl-n { width: 70px; height: 70px; border-radius: 50%; display: grid; place-items: center; font-size: 30px; color: #fff; background: radial-gradient(circle at 35% 30%, #f6dc8f, #c9a24f); box-shadow: 0 0 30px rgba(201,162,79,.5); }
.rp-lvl b { font-family: 'Cormorant Garamond', serif; font-size: 26px; }
.rp-vision { max-width: 640px; margin: 10px auto 0; padding: 22px 26px; border-radius: 20px; background: linear-gradient(150deg, #f3ebff, #fff8ec); text-align: left; }
.rp-vision p:last-child { font-family: 'Cormorant Garamond', serif; font-size: 21px; font-style: italic; line-height: 1.45; white-space: pre-line; margin: 0; }
.rp-counts { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 12px; }
.rp-counts > div { text-align: center; padding: 16px 8px; border-radius: 18px; background: #f7f1ff; display: flex; flex-direction: column; gap: 2px; }
.rp-counts span { font-size: 24px; } .rp-counts b { font-size: 28px; font-weight: 500; color: #4b2a86; } .rp-counts small { color: #7d6a99; }
.rp-wishes { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 14px; }
.rp-wimg { aspect-ratio: 4/3; border-radius: 14px; background: center/cover; margin-bottom: 6px; }
.rp-q { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px 26px; }
.rp-q > div { display: grid; grid-template-columns: 1fr 120px 40px; align-items: center; gap: 10px; }
.rp-q i { display: block; height: 8px; border-radius: 9px; background: linear-gradient(90deg, hsl(var(--h) 60% 75%), hsl(var(--h) 55% 58%)); }
.rp-q small { color: #7d6a99; }
.rp-spheres { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; }
.rp-sphere { padding: 16px 18px; border-radius: 18px; border: 1px solid hsl(var(--h) 50% 88%); background: linear-gradient(160deg, hsl(var(--h) 70% 97%), #fff); break-inside: avoid; }
.rp-sh { display: flex; gap: 12px; align-items: center; } .rp-sh h3 { margin: 0; font-size: 19px; }
.rp-dot { width: 18px; height: 18px; border-radius: 50%; background: hsl(var(--h) 55% 75%); flex: none; margin: 0 23px; }
.rp-quote { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; margin: 10px 0 0; color: #4d3a6e; }
.rp-list { list-style: none; padding: 0; margin: 10px 0 0; font-size: 14px; }
.rp-list li { display: flex; justify-content: space-between; gap: 10px; padding: 4px 0; border-bottom: 1px dashed hsl(var(--h) 40% 88%); }
.rp-list b { font-weight: 500; color: hsl(var(--h) 45% 40%); }
.rp-list.kr li span::before { content: '◎ '; color: hsl(var(--h) 50% 60%); }
.rp-journal { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 14px; margin-top: 14px; }
.rp-journal > div { padding: 14px 16px; border-radius: 16px; background: #faf6ff; break-inside: avoid; }
.rp-journal p { margin: 8px 0 0; font-size: 14.5px; } .rp-journal .it { font-family: 'Cormorant Garamond', serif; font-style: italic; font-size: 17px; }
.rp-close { text-align: center; font-family: 'Cormorant Garamond', serif; font-size: 24px; font-style: italic; color: #8a6bb8; margin-top: 30px; }
@media (max-width: 700px) { .rp-counts { grid-template-columns: repeat(2, minmax(0, 1fr)); } .rp-spheres, .rp-journal, .rp-q { grid-template-columns: 1fr; } .rp-wishes { grid-template-columns: repeat(2, minmax(0, 1fr)); } }
@media print {
  @page { size: A4; margin: 12mm; }
  html, body { background: #fff !important; }
  body * { -webkit-print-color-adjust: exact; print-color-adjust: exact; }
  #top, .no-print, .chat-fab, .chat, .demo-note, #back, .bg-flower, .sparkles { display: none !important; }
  main, #app { padding: 0 !important; margin: 0 !important; max-width: none !important; }
  .report { gap: 0; }
  .rp-page { box-shadow: none; border: 0; border-radius: 0; padding: 0; break-after: page; }
  .rp-page:last-child { break-after: auto; }
  .rp-counts { grid-template-columns: repeat(4, 1fr); } .rp-spheres, .rp-journal, .rp-q { grid-template-columns: 1fr 1fr; } .rp-wishes { grid-template-columns: repeat(3, 1fr); }
}
.rp-spheres, .rp-journal { display: block; columns: 2; column-gap: 14px; }
.rp-sphere, .rp-journal > div { display: inline-block; width: 100%; margin-bottom: 14px; }
@media (max-width: 700px) { .rp-spheres, .rp-journal { columns: 1; } }
@media print { .rp-spheres, .rp-journal { columns: 2; } }

/* План недели */
.wp-grid { display: grid; grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 8px; margin-top: 14px; }
.wp-day { border: 1px solid var(--line); border-radius: 16px; padding: 8px; min-height: 130px; background: var(--card); display: flex; flex-direction: column; gap: 6px; }
.wp-day.today { box-shadow: inset 0 0 0 2px var(--violet); }
.wp-day.sel:not(.today) { background: var(--card2); }
.wp-h { display: flex; justify-content: space-between; align-items: center; font-size: 13px; color: var(--soft); text-transform: capitalize; }
.wp-h b { color: var(--ink); font-weight: 500; font-size: 15px; }
.wp-add { width: 26px; height: 26px; border-radius: 50%; border: 1px dashed var(--violet); background: none; color: var(--violet); cursor: pointer; font-size: 16px; line-height: 1; }
.wp-add:hover { background: var(--lav); }
.wp-day ul { list-style: none; padding: 0; margin: 0; display: flex; flex-direction: column; gap: 5px; }
.wp-it { display: flex; align-items: flex-start; gap: 5px; font-size: 12.5px; line-height: 1.3; padding: 5px 6px; border-radius: 10px; }
.wp-it .check { width: 16px; height: 16px; flex: none; margin-top: 1px; }
.wp-it .t { flex: 1; min-width: 0; overflow-wrap: anywhere; }
.wp-it .x { opacity: 0; font-size: 14px; } .wp-it:hover .x, .wp-it:focus-within .x { opacity: .6; }
.wp-it.k-joy { background: hsl(330 80% 95%); } .wp-it.k-meet { background: hsl(280 70% 95%); } .wp-it.k-place { background: hsl(190 60% 93%); }
.wp-it.done .t { text-decoration: line-through; opacity: .6; }
.wp-kinds { gap: 8px; margin-bottom: 6px; }
.wp-pool .chip { cursor: pointer; margin: 2px 0; border: 0; font: inherit; font-size: 13px; }
.wp-pool .chip:hover { background: var(--lav); }
@media (max-width: 900px) { .wp-grid { grid-template-columns: 1fr; } .wp-day { min-height: 0; } .wp-it .x { opacity: .6; } }

.chat .msg.img { padding: 4px; } .chat .msg.img img { display: block; max-width: 200px; max-height: 200px; border-radius: 14px; }
.chat .chip.pick { background: linear-gradient(135deg, #a77be6, #7a4fc9); color: #fff; border-color: transparent; }
.wp-it { position: relative; padding-right: 18px; }
.wp-it .t { overflow-wrap: break-word; hyphens: auto; }
.wp-it .x { position: absolute; top: 2px; right: 2px; width: 18px; height: 18px; padding: 0; min-width: 0; line-height: 1; }
.card form.add input { min-width: 0; }

/* ===== Рукописный акцент ===== */
.hand, .intent, .prose-intro, .rp-vision p:last-child { font-family: 'Marck Script', 'Cormorant Garamond', cursive !important; font-style: normal !important; letter-spacing: .01em; }
.intent { font-size: clamp(24px, 2.6vw, 32px) !important; line-height: 1.3; }
.prose-intro { font-size: clamp(23px, 2.4vw, 30px) !important; line-height: 1.35 !important; }
.hand { color: light-dark(#4b2a86, #f1e8ff); }

/* ===== Карта дня ===== */
.oracle { display: flex; gap: 22px; align-items: center; }
.ocard { flex: none; width: 150px; aspect-ratio: 2/3; border: 0; padding: 0; background: none; cursor: pointer; perspective: 900px; position: relative; border-radius: 14px; }
.oracle.big .ocard { width: 170px; }
.ocard .oface { position: absolute; inset: 0; border-radius: 14px; background: center/cover; backface-visibility: hidden; transition: transform 1s cubic-bezier(.3,.9,.3,1.05); box-shadow: 0 18px 40px -16px rgba(60,20,120,.6), 0 0 0 1px rgba(226,189,98,.5); overflow: hidden; }
.ocard .front { transform: rotateY(180deg); }
.ocard.flipped .back { transform: rotateY(-180deg); }
.ocard.flipped .front { transform: rotateY(0); }
.ocard .back::after { content: ''; position: absolute; inset: 0; background: linear-gradient(115deg, transparent 30%, rgba(255,255,255,.35) 45%, transparent 60%); background-size: 250% 100%; animation: shine 3.5s ease-in-out infinite; }
.ocard:not(.flipped):hover .back { transform: translateY(-4px) rotate(-1.5deg); }
.ohint { position: absolute; left: 0; right: 0; bottom: 12px; text-align: center; color: #fff1c2; font-size: 12px; }
.oname { position: absolute; left: 0; right: 0; bottom: 10px; text-align: center; font-family: 'Marck Script', cursive; font-size: 22px; color: #fff1c2; text-shadow: 0 2px 10px rgba(0,0,0,.6); }
.omsg { font-size: 22px; line-height: 1.35; margin-top: 6px; }
@keyframes shine { 0%, 100% { background-position: 120% 0; } 50% { background-position: -20% 0; } }
@media (max-width: 560px) { .oracle { flex-direction: column; text-align: center; } }

/* ===== Что сейчас ===== */
.now-row { display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1fr); gap: 18px; margin-bottom: 18px; }
.now-card h2 { margin: 0 0 12px; }
.now-list { display: flex; flex-direction: column; gap: 10px; }
.now-it { display: flex; gap: 12px; align-items: center; padding: 12px 14px; border-radius: 16px; background: light-dark(rgba(243,235,255,.7), rgba(60,40,110,.4)); text-decoration: none; color: inherit; cursor: pointer; transition: transform .25s, box-shadow .25s; }
.now-it:hover { transform: translateY(-2px); box-shadow: 0 10px 24px -14px rgba(110,60,190,.5); }
.now-it b { font-weight: 500; }
.now-it .moon { width: 26px; height: 26px; }
.now-ic { font-size: 22px; width: 26px; text-align: center; }
.now-q { padding: 12px 14px; border-radius: 16px; background: linear-gradient(140deg, rgba(245,215,130,.22), rgba(200,170,245,.22)); }
.now-q label { margin: 0 0 6px; color: var(--ink); font-size: 15px; }
@media (max-width: 860px) { .now-row { grid-template-columns: 1fr; } }

/* ===== Баланс ===== */
.givetake { display: flex; gap: 16px; align-items: center; margin-top: 16px; padding: 12px 16px; border-radius: 18px; background: linear-gradient(140deg, rgba(255,200,225,.22), rgba(245,215,130,.2)); flex-wrap: wrap; }
.givetake p { margin: 2px 0 0; }

/* ===== Мягкие анимации ===== */
.spark { position: fixed; z-index: 100; pointer-events: none; transform: translate(-50%, -50%); animation: spark 1.2s cubic-bezier(.2,.7,.3,1) forwards; }
@keyframes spark { 0% { opacity: 0; transform: translate(-50%, -50%) scale(.4); } 15% { opacity: 1; } 100% { opacity: 0; transform: translate(calc(-50% + var(--dx)), calc(-50% + var(--dy))) rotate(var(--r)) scale(1); } }
#app.enter > * { animation: rise .7s cubic-bezier(.2,.7,.3,1) both; animation-delay: calc(var(--i, 0) * 70ms); }
@keyframes rise { from { opacity: 0; transform: translateY(14px); } to { opacity: 1; transform: none; } }
.aura svg { animation: breathe 6s ease-in-out infinite; }
@keyframes breathe { 0%, 100% { filter: drop-shadow(0 0 0 rgba(201,162,79,0)); } 50% { filter: drop-shadow(0 0 14px rgba(190,150,240,.55)); } }
.card { transition: box-shadow .35s, transform .35s; }
a.card:hover, .scard:hover { transform: translateY(-3px); }
.btn { transition: transform .2s, box-shadow .25s, background .25s; }
.btn:hover { transform: translateY(-1px); }
input.check { transition: transform .2s; } input.check:checked { animation: pop .35s ease; }
@keyframes pop { 50% { transform: scale(1.25); } }
@media (prefers-reduced-motion: reduce) { #app.enter > *, .aura svg, .ocard .back::after, input.check:checked { animation: none !important; } .ocard .oface { transition: none; } }

/* ===== Сворачивание ===== */
.fold-btn { width: 30px; height: 30px; border-radius: 50%; border: 1px solid var(--line); background: var(--card); color: var(--soft); cursor: pointer; flex: none; margin-left: 8px; vertical-align: middle; display: inline-grid; place-items: center; }
.fold-btn::before { content: ''; width: 8px; height: 8px; border-right: 1.5px solid currentColor; border-bottom: 1.5px solid currentColor; transform: translateY(-2px) rotate(45deg); transition: transform .3s; }
.folded .fold-btn::before { transform: translateY(1px) rotate(-135deg); }
.fold-btn:hover { color: var(--violet); border-color: var(--violet); }
.fold-btn { margin-left: 10px; vertical-align: .15em; width: 26px; height: 26px; }
.folded > :not(.fold-keep) { display: none !important; }
.folded { padding-bottom: 14px; }
section.folded { opacity: .92; }

/* ===== Быстрая запись и нижнее меню ===== */
.quick-fab { position: fixed; right: 26px; bottom: 92px; z-index: 40; width: 52px; height: 52px; border-radius: 50%; border: 0; cursor: pointer; font-size: 28px; line-height: 1; color: #fff; background: radial-gradient(circle at 35% 30%, #f3d98a, #c9a24f); box-shadow: 0 12px 28px -10px rgba(160,120,40,.7); transition: transform .25s; }
.quick-fab:hover { transform: rotate(90deg) scale(1.05); }
.bnav { display: none; }
.bsheet { display: grid; gap: 8px; margin-top: 12px; }
.bsheet a { padding: 14px 16px; border-radius: 14px; background: var(--card2); text-decoration: none; color: var(--ink); font-size: 17px; }
.bsheet a.on { box-shadow: inset 0 0 0 2px var(--violet); }
@media (max-width: 760px) {
  .top .nav { display: none; }
  .bnav { display: flex; position: fixed; left: 0; right: 0; bottom: 0; z-index: 45; background: light-dark(rgba(255,255,255,.94), rgba(30,18,58,.94)); backdrop-filter: blur(14px); border-top: 1px solid var(--line); padding: 6px 6px calc(6px + env(safe-area-inset-bottom)); justify-content: space-around; }
  .bnav a, .bnav button { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font: inherit; font-size: 11.5px; color: var(--soft); text-decoration: none; background: none; border: 0; padding: 6px 0; border-radius: 14px; min-height: 52px; justify-content: center; cursor: pointer; }
  .bnav span { font-size: 20px; line-height: 1; }
  .bnav .on { color: var(--violet); background: var(--lav); }
  main { padding-bottom: 150px; }
  .chat-fab { bottom: calc(78px + env(safe-area-inset-bottom)) !important; }
  .quick-fab { bottom: calc(78px + env(safe-area-inset-bottom)); right: auto; left: 16px; width: 48px; height: 48px; }
  .chat { bottom: calc(76px + env(safe-area-inset-bottom)) !important; height: min(600px, calc(100vh - 170px)) !important; }
  .toast { bottom: 140px !important; }
}

/* Ценности */
.values { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 160px), 1fr)); gap: 16px; }
.value { display: flex; flex-direction: column; align-items: center; text-align: center; gap: 6px; padding: 18px 12px; border-radius: 22px; border: 1px solid var(--line); background: linear-gradient(170deg, hsl(var(--h) 70% 96%), var(--card)); cursor: pointer; font: inherit; color: inherit; transition: transform .3s, box-shadow .3s; }
.value:hover { transform: translateY(-3px); box-shadow: 0 14px 30px -18px hsl(var(--h) 50% 40%); }
.vimg { width: 96px; height: 96px; border-radius: 50%; background: center/cover; box-shadow: 0 0 0 3px #fff, 0 0 0 4.5px hsl(var(--h) 55% 75%), 0 0 24px 4px hsl(var(--h) 80% 80% / .5); margin-bottom: 6px; }
.value .vt { font-size: 26px; line-height: 1.1; }
.value .vtx { line-height: 1.4; }
.q-pic { display: flex; gap: 16px; align-items: center; margin-bottom: 6px; }
.q-pic .vimg { width: 84px; height: 84px; flex: none; margin: 0; --h: 280; }
.now-it { margin: 0; }

/* Светлый храм как фон */
.temple-bg { position: relative; overflow: hidden; isolation: isolate; background: var(--card); }
.temple-bg::before { content: ''; position: absolute; inset: 0; z-index: -2; background: var(--tbg) 70% 60% / cover no-repeat; }
.temple-bg::after { content: ''; position: absolute; inset: 0; z-index: -1; background: linear-gradient(90deg, rgba(252,248,255,.95) 0%, rgba(252,248,255,.88) 42%, rgba(252,248,255,.35) 68%, rgba(252,248,255,.15) 100%); }
.temple-bg .big .aura { filter: drop-shadow(0 10px 30px rgba(255,240,200,.9)); }
.temple-bg .big .aura .val { text-shadow: 0 0 12px #fff, 0 0 24px #fff; }
@media (max-width: 860px) { .temple-bg::after { background: linear-gradient(180deg, rgba(252,248,255,.95) 0%, rgba(252,248,255,.9) 60%, rgba(252,248,255,.45) 100%); } }
:root[data-theme=dark] .temple-bg::after { background: linear-gradient(90deg, rgba(30,18,58,.94) 0%, rgba(30,18,58,.85) 45%, rgba(30,18,58,.4) 100%); }

/* Кнопка «Назад» с подписью */
.icon-btn.back { width: auto; padding: 0 16px 0 10px; gap: 4px; border-radius: 999px; font: inherit; font-size: 14.5px; color: var(--ink); display: inline-flex; align-items: center; }
.icon-btn.back svg { width: 18px; height: 18px; }
@media (max-width: 760px) { .icon-btn.back span { display: none; } .icon-btn.back { padding: 0; width: 44px; justify-content: center; } }

/* Палитры */
:root[data-palette=rose] { --violet: light-dark(#b0496f, #f2a7c3); --violet2: light-dark(#e08aa9, #f8c9da); --lav: light-dark(#f8e1ea, #4a2338); --bg: light-dark(#fdf8f6, #1d1220); }
:root[data-palette=sea] { --violet: light-dark(#2a7890, #8fd3e0); --violet2: light-dark(#5fb5c6, #b9e6ee); --lav: light-dark(#dcf0f3, #173a44); --bg: light-dark(#f6fbfb, #0f1d24); }
:root[data-palette=night] { --violet: #c3a6f7; --violet2: #dccafc; }
.pal-row { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 8px; }
.pal { display: flex; align-items: center; gap: 8px; margin: 0; padding: 10px 12px; border-radius: 14px; border: 1px solid var(--line); cursor: pointer; color: var(--ink); font-size: 14.5px; }
.pal input { position: absolute; opacity: 0; }
.pal:has(input:checked) { box-shadow: inset 0 0 0 2px var(--violet); }
.pal .sw { width: 22px; height: 22px; border-radius: 50%; flex: none; }
.pal-lavender .sw { background: linear-gradient(135deg, #e7ddf6, #7a4cc2); } .pal-rose .sw { background: linear-gradient(135deg, #f8e1ea, #b0496f, #d9b56c); }
.pal-sea .sw { background: linear-gradient(135deg, #dcf0f3, #2a7890); } .pal-night .sw { background: linear-gradient(135deg, #2c2350, #15112a); box-shadow: inset 0 0 0 2px #e5c47e; }
.prefs { display: flex; flex-direction: column; gap: 6px; margin-top: 10px; }
.prefs.cols2 { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); }
.prefs label { display: flex; align-items: center; gap: 10px; margin: 0; color: var(--ink); font-size: 15px; }
body.no-hand .hand, body.no-hand .intent, body.no-hand .prose-intro, body.no-hand .rp-vision p:last-child { font-family: 'Cormorant Garamond', serif !important; font-style: italic !important; }
body.calm-ui #app.enter > *, body.calm-ui .aura svg, body.calm-ui .ocard .back::after { animation: none !important; }
body.big-text { font-size: 18.5px; } body.big-text .small { font-size: 15.5px; }

/* Светлые дела по чакрам */
.ch-wrap { display: flex; gap: 22px; align-items: flex-start; margin-top: 12px; }
.ch-fig { flex: none; position: sticky; top: 100px; }
.ch-list { flex: 1; display: flex; flex-direction: column; gap: 8px; }
.ch-row { display: flex; gap: 12px; align-items: flex-start; padding: 10px 12px; border-radius: 16px; background: hsl(var(--ch) 80% 96%); transition: background .4s, box-shadow .4s; }
.ch-row.lit { background: linear-gradient(120deg, hsl(var(--ch) 85% 90%), hsl(var(--ch) 80% 97%)); box-shadow: inset 0 0 0 1px hsl(var(--ch) 70% 80%); }
.ch-row.focus { box-shadow: inset 0 0 0 2px hsl(var(--ch) 70% 65%); }
.ch-row label { margin: 0 0 6px; color: var(--ink); font-size: 15px; line-height: 1.4; }
.ch-row textarea { min-height: 42px; background: rgba(255,255,255,.8); }
.ch-dot { width: 16px; height: 16px; border-radius: 50%; flex: none; margin-top: 4px; background: hsl(var(--ch) 80% 80%); box-shadow: 0 0 0 3px #fff; transition: all .4s; display: inline-block; }
.ch-row.lit .ch-dot { background: hsl(var(--ch) 85% 58%); box-shadow: 0 0 0 3px #fff, 0 0 14px hsl(var(--ch) 90% 60%); }
.ch-dot.sm { width: 12px; height: 12px; margin: 0 4px 0 0; vertical-align: -1px; background: hsl(var(--ch) 85% 58%); }
@media (max-width: 640px) { .ch-wrap { flex-direction: column; align-items: center; } .ch-fig { position: static; } .ch-list { width: 100%; } }
:root[data-theme=dark] .ch-row { background: hsl(var(--ch) 30% 20% / .5); } :root[data-theme=dark] .ch-row textarea { background: rgba(0,0,0,.2); }

/* =====================================================================
   ТИПОГРАФИКА · единая система (дизайн-аудит)
   Две гарнитуры: Cormorant Garamond (заголовки и «голос души»: аффирмации,
   намерения, видение, послания карт) — всегда прямая, 500–600;
   Jost (интерфейс и текст) — 300/400/500. Никакого курсива и рукописных шрифтов.
   ===================================================================== */
:root {
  --font-display: 'Cormorant Garamond', Georgia, serif;
  --font-ui: Jost, 'Segoe UI', system-ui, sans-serif;
  --fs-xs: 13px; --fs-sm: 14.5px; --fs-base: 16.5px; --fs-lead: 18.5px;
  --fs-quote: clamp(20px, 2vw, 24px); --fs-quote-lg: clamp(23px, 2.5vw, 29px);
  --lh-quote: 1.38; --ink-quote: light-dark(#40235f, #f1e8ff);
}
*, *::before, *::after { font-style: normal !important; }
/* «Голос души»: одна роль, один стиль */
.hand, .intent, .prose-intro, .omsg, .rp-vision p:last-child, .rp-quote, .rp-close, .rp-name, .value .vt, .serif.it {
  font-family: var(--font-display) !important; font-weight: 500; letter-spacing: .005em; line-height: var(--lh-quote); color: var(--ink-quote);
}
.intent, .prose-intro { font-size: var(--fs-quote-lg) !important; }
.hand, .omsg, .rp-vision p:last-child, .serif.it { font-size: var(--fs-quote); }
.temple .affirm .hand { font-size: var(--fs-quote-lg) !important; }
.value .vt { font-size: 23px !important; font-weight: 600; }
.oracle h3.hand { font-size: 30px !important; font-weight: 600; }
.oname { font-family: var(--font-display) !important; font-weight: 600; font-size: 13px !important; letter-spacing: .22em; text-transform: uppercase; }
.rp-close, .rp-name { color: var(--violet); }
/* Подсказки и пустые состояния — спокойный интерфейсный шрифт */
.empty-note, .editable.empty, .yv-text.empty, .mm-empty { font-family: var(--font-ui) !important; font-weight: 300; font-size: var(--fs-sm) !important; color: var(--soft); }
.mcard textarea { font-family: var(--font-ui); font-size: var(--fs-base); }
.sphere .intent { font-size: 18px !important; color: var(--soft); }
.kicker { font-family: var(--font-ui); font-weight: 400; letter-spacing: .04em; }
.small { font-size: var(--fs-sm); }

.deck-grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(84px, 1fr)); gap: 10px; margin-top: 10px; }
.deck-it { display: flex; flex-direction: column; gap: 4px; margin: 0; cursor: pointer; color: var(--ink); text-align: center; }
.deck-img { aspect-ratio: 2/3; border-radius: 10px; background: center/cover; box-shadow: 0 0 0 1px var(--line); transition: transform .2s, opacity .3s; }
.deck-it:hover .deck-img { transform: translateY(-2px); box-shadow: 0 0 0 2px var(--violet); }
.deck-it .small { font-size: 11.5px; line-height: 1.2; }
.omsg { font-size: 19px !important; line-height: 1.45; }

/* Колода: большая карта */
.olb { display: grid; grid-template-columns: minmax(220px, 340px) 1fr; gap: 28px; align-items: center; }
.olb-img { aspect-ratio: 2/3; border-radius: 16px; background: center/cover; box-shadow: 0 24px 50px -20px rgba(60,20,120,.55), 0 0 0 1px rgba(226,189,98,.55); }
.olb h2 { font-family: var(--font-display); font-size: 36px; font-weight: 600; margin: 2px 0 10px; }
.olb .omsg { font-family: var(--font-display); font-size: 21px; line-height: 1.45; }
@media (max-width: 640px) { .olb { grid-template-columns: 1fr; } .olb-img { width: 70%; margin: 0 auto; } }
.ocard .oname { text-shadow: 0 1px 8px rgba(40,10,80,.8); }
.modal-card:has(.olb) { width: min(880px, 100%); padding: 30px; }

/* Год: сферы с видением и прогрессом в одном блоке */
.ys { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 440px), 1fr)); gap: 14px; }
.ys-card { display: grid; grid-template-columns: 110px minmax(0, 1fr); gap: 18px; align-items: start; padding: 14px 20px 14px 14px; }
.ys-img { width: 110px; height: 110px; border-radius: 18px; background: var(--lav) center/cover; display: block; }
.ys-body { display: flex; flex-direction: column; gap: 6px; min-width: 0; }
.ys-body .scard-name { color: var(--ink); text-decoration: none; }
.ys-lbl { font-size: 12px; letter-spacing: .06em; text-transform: uppercase; color: hsl(var(--h) 40% 45%); margin-top: 6px; }
.ys-body .yv-text { margin-top: 0; font-size: 15px; }
.ys-body .scard-meta a { color: hsl(var(--h) 45% 40%); }
@media (max-width: 560px) { .ys-card { grid-template-columns: 72px minmax(0, 1fr); gap: 12px; } .ys-img { width: 72px; height: 72px; } }

/* =====================================================================
   DIVINE GODDESS · дизайн Алани (ноябрь 2026)
   Сирень, аметист и матовое золото. Классическая антиква для заголовков,
   спокойный гротеск для интерфейса, фотографии вместо иллюстраций.
   Содержание и функции не меняются, только оформление.
   ===================================================================== */
:root {
  --bg: light-dark(#f6f0f9, #23182a);
  --ink: light-dark(#362345, #fdf0fa);
  --soft: light-dark(#6d557b, #e4cfe4);
  --violet: light-dark(#754e9c, #c9a3e6);
  --violet2: light-dark(#8d68b4, #dcc0f2);
  --lav: light-dark(#ede0f5, #3b2a4a);
  --rose: light-dark(#f4e7f0, #522a48);
  --gold: light-dark(#96612e, #ecc891);
  --gold2: light-dark(#c59960, #f3dca6);
  --line: light-dark(#e0cfe3, #674665);
  --card: light-dark(rgba(255,252,255,.94), rgba(48,33,55,.94));
  --card2: light-dark(#fffcff, #302137);
  --shadow: light-dark(0 14px 35px rgba(81,54,78,.07), 0 12px 36px rgba(14,9,20,.45));
  --r: 20px;
  --font-display: Baskerville, 'Old Standard TT', Georgia, serif;
  --font-ui: 'Avenir Next', Jost, 'Segoe UI', system-ui, sans-serif;
  --ink-quote: var(--ink);
  --edge: light-dark(color-mix(in srgb, #e2d2ec 78%, #c49e69), #7a5677);
}
body { font: 400 15.5px/1.6 var(--font-ui); }
h1, h2, h3, .brand, .aura .val { font-family: var(--font-display); font-weight: 400; color: var(--ink); }
h1 { font-size: clamp(42px, 5.4vw, 74px); letter-spacing: -.035em; line-height: 1.02; }
h2 { font-size: clamp(27px, 3vw, 38px); letter-spacing: -.022em; line-height: 1.08; }
h3 { letter-spacing: -.012em; }
.card h3 { font-size: 23px; }
.lead, .page-head .lead { color: var(--soft); font-size: 15.5px; }

/* Фон: сиреневый рассвет и тонкий цветок жизни */
.sky { background:
  radial-gradient(ellipse 45vw 40vh at 98% 3%, light-dark(rgba(238,217,236,.75), rgba(97,59,99,.45)), transparent 70%),
  linear-gradient(154deg, light-dark(#e4d4f1, #382640) 0, var(--bg) 740px), var(--bg); }
.geo { opacity: .24; }
.top { background: light-dark(rgba(250,245,252,.86), rgba(35,24,42,.86)); border-bottom-color: var(--line); }
.brand { font-size: 25px; letter-spacing: -.03em; }

/* Надзаголовки: маленькие золотые капители */
.kicker { font-family: var(--font-ui) !important; text-transform: uppercase; letter-spacing: .15em; font-size: 11px; font-weight: 600; color: var(--gold) !important; margin-bottom: 10px; }

/* Карточки */
.card { background: linear-gradient(140deg, var(--card2), light-dark(rgba(246,236,250,.9), rgba(59,42,74,.9))); border-color: var(--edge); border-radius: var(--r); box-shadow: var(--shadow); backdrop-filter: none; }
a.card { color: inherit; }
.card:hover { box-shadow: 0 18px 40px rgba(81,54,78,.1); }

/* Кнопки: аметистовые таблетки */
.btn { font-family: var(--font-ui); font-size: 13.5px; font-weight: 500; min-height: 40px; padding: 9px 18px; border-radius: 99px; background: var(--card2); color: var(--violet); border-color: var(--line); }
.btn:hover { border-color: var(--violet2); background: var(--lav); }
.btn.gold, .btn.primary { background: linear-gradient(110deg, var(--violet), color-mix(in srgb, var(--violet), #4d2a6e 28%)); color: #fff; border-color: transparent; box-shadow: 0 8px 20px -10px var(--violet); }
.btn.gold:hover { filter: brightness(1.07); background: linear-gradient(110deg, var(--violet), color-mix(in srgb, var(--violet), #4d2a6e 28%)); }
.btn.ghost { background: var(--card2); }
.btn.small { min-height: 34px; padding: 6px 13px; font-size: 12.5px; }
.chip { background: var(--card2); border-color: var(--line); color: var(--violet); font-size: 12px; }
.chip.gold { color: var(--gold); border-color: var(--gold2); }

/* Поля */
input, textarea, select { background: var(--card2); border-color: var(--line); border-radius: 12px; font-size: 15px; }
input:focus, textarea:focus, select:focus { border-color: var(--violet2); box-shadow: 0 0 0 3px light-dark(rgba(117,78,156,.14), rgba(201,163,230,.2)); }
label { font-size: 13px; }
input[type=range] { accent-color: var(--violet); }
input.check { accent-color: var(--violet); }

/* Навигация */
.nav a { font-size: 14px; color: var(--soft); }
.nav a.on { background: var(--lav); color: var(--ink); box-shadow: inset 0 0 0 1px var(--edge); }
#pts { border-color: var(--edge); color: var(--gold); background: var(--card2); }

/* Храм света: фото храма справа, текст слева на светлом */
.temple-bg { background: var(--card2); }
.temple-bg::before { inset: 0 0 0 38%; background-position: 50% 54%; }
.temple-bg::after { background: linear-gradient(90deg, var(--card2) 0%, var(--card2) 36%, light-dark(rgba(255,252,255,.55), rgba(48,33,55,.55)) 50%, transparent 70%); }
.temple-bg .big .aura { filter: drop-shadow(0 8px 26px rgba(255,255,255,.95)); }
.temple-bg .big .aura .val { color: var(--ink); }
@media (max-width: 860px) {
  .temple-bg::before { inset: auto 0 0 0; height: 46%; }
  .temple-bg::after { background: linear-gradient(180deg, var(--card2) 0%, var(--card2) 52%, light-dark(rgba(255,252,255,.4), rgba(48,33,55,.4)) 64%, transparent 80%); }
}
:root[data-theme=dark] .temple-bg::after { background: linear-gradient(90deg, var(--card2) 0%, var(--card2) 36%, rgba(48,33,55,.55) 50%, transparent 70%); }
.temple h1 { font-size: clamp(44px, 5.6vw, 80px); }
.temple .intent { color: var(--ink); }

/* Голос души: прямая антиква, без курсива */
.hand, .intent, .prose-intro, .omsg, .serif.it, .value .vt, .rp-quote, .rp-close, .rp-name { font-family: var(--font-display) !important; font-weight: 400 !important; letter-spacing: -.01em; }
.oname { font-family: var(--font-ui) !important; font-size: 11px !important; letter-spacing: .2em; }

/* Картинки: мягкие фото в рамке */
.scard-img, .ys-img, .yv-img, .trip-img, .b5img, .vimg, .qimg, .mm-photo, .me { box-shadow: 0 8px 20px rgba(93,61,100,.16); }
.mind-center .me, .ym-center .mm-photo { outline: 1px solid #e4c38c; outline-offset: 4px; }

/* Прогресс */
.scard-bar, .bar { background: var(--lav); }
.scard-bar b { background: linear-gradient(90deg, #ac8fb1, var(--violet)); }

/* Модальные окна и чат */
.modal-card { background: var(--card2); border-color: var(--edge); border-radius: 22px; }
.chat-fab { background: linear-gradient(110deg, var(--violet), color-mix(in srgb, var(--violet), #4d2a6e 28%)) !important; color: #fff !important; }
.quick-fab { background: linear-gradient(140deg, #f1d79f, #c59960) !important; }

/* Палитры из настроек */
:root[data-palette=rose] { --violet: light-dark(#8d455d, #f2a7c3); --violet2: light-dark(#b0607d, #f8c9da); --lav: light-dark(#fae3e8, #4a2338); --bg: light-dark(#fff5f4, #1d1220); }
:root[data-palette=sea] { --violet: light-dark(#3b6b64, #8fd3e0); --violet2: light-dark(#5a8f87, #b9e6ee); --lav: light-dark(#e6f4f0, #173a44); --bg: light-dark(#f5fbfa, #0f1d24); --gold: light-dark(#835426, #ecc891); }
:root[data-palette=night] { --violet: #c9a3e6; --violet2: #dcc0f2; }

/* Итоги в стиле макета */
.medal.photo { width: 62px; height: 62px; background-size: cover; background-position: center; position: relative; box-shadow: 0 0 0 2px #fff, 0 0 0 3px var(--line), 0 6px 16px rgba(93,61,100,.18); font-size: 0; }
.badge-c.won .medal.photo { box-shadow: 0 0 0 2px #fff, 0 0 0 3.5px #d9b06a, 0 6px 18px rgba(197,153,96,.35); }
.medal.photo i { position: absolute; right: -4px; bottom: -2px; width: 20px; height: 20px; border-radius: 50%; display: grid; place-items: center; font-size: 11px; font-style: normal; color: #6b4a2a; background: linear-gradient(140deg, #f9e4ae, #c59960); box-shadow: 0 2px 6px rgba(161,120,73,.4); }
.badge-c { background: linear-gradient(150deg, var(--card2), light-dark(#f3e9f8, #3b2a4a)); border-color: var(--edge); }
.badge-c.won { background: linear-gradient(150deg, light-dark(#fff8ec, #4a3540), light-dark(#f8e6ee, #522a48)); border-color: #e2c08a; }
.badge-c b { font-family: var(--font-display); font-weight: 400; font-size: 19px; letter-spacing: -.01em; }
.lvl-img { box-shadow: 0 0 0 4px #fff, 0 0 0 5.5px #e2c08a, 0 18px 40px rgba(93,61,100,.2); }
.icon-stats .istat { align-items: flex-start; text-align: left; padding: 18px 20px; background: linear-gradient(140deg, var(--card2), light-dark(#f2e7f8, #3b2a4a)); border-color: var(--edge); }
.istat .ic { width: 36px; height: 36px; font-size: 16px; color: var(--violet); background: light-dark(#ede0f5, #4a3858); box-shadow: none; font-family: Georgia, serif; }
.istat b { font-family: var(--font-display); font-weight: 400; font-size: 36px; color: var(--ink); margin-top: 10px; }
.jp text { paint-order: stroke; stroke: #fff; stroke-width: 4px; fill: #4a2c5e; font-weight: 600; }
.fl-dot.photo { width: 26px; height: 26px; background-size: cover; background-position: center; box-shadow: 0 0 0 1.5px #fff, 0 0 0 2.5px hsl(var(--h) 35% 78%); }
#revChart { background: linear-gradient(180deg, light-dark(#f4ecf8, #3b2a4a), light-dark(#ead9f1, #45304f)); border-radius: 14px; }
/* Семь лучей: фото медитации и тонкая колонка света */
.ray-fig { aspect-ratio: 2/3; border-radius: 16px; background-size: cover; background-position: 50% 30%; position: relative; flex: none; box-shadow: 0 10px 24px rgba(93,61,100,.18), 0 0 0 1px var(--edge); align-self: start; }
.ray-col { position: absolute; right: 8px; top: 10px; bottom: 10px; display: flex; flex-direction: column; justify-content: space-between; align-items: center; padding: 8px 5px; border-radius: 99px; background: rgba(255,252,255,.55); backdrop-filter: blur(4px); }
.ray-col i { width: 8px; height: 8px; border-radius: 50%; background: hsl(var(--ch) 40% 86%); box-shadow: 0 0 0 1px #fff; }
.ray-col i.on { background: hsl(var(--ch) 60% 62%); box-shadow: 0 0 0 1px #fff, 0 0 8px hsl(var(--ch) 80% 65%); }
/* Желания и образы: компактные фото внутри карточки, как в макете */
.vcard { padding: 10px 10px 4px; }
.vcard .img { aspect-ratio: 2.1/1; border-radius: 13px; overflow: hidden; }
.vcard .img img { object-position: 50% 35%; }
.vcard .body { padding: 12px 10px 14px; gap: 6px; }
.vcard .body h3 { font-size: 21px; }
.grid.wide:has(.vcard) { grid-template-columns: repeat(auto-fill, minmax(min(100%, 300px), 1fr)); }
.badge-c { filter: none; opacity: 1; }
.badge-c:not(.won) .medal.photo { opacity: .72; filter: saturate(.75); }
.fl-row { grid-template-columns: 28px minmax(0, 1fr) auto 3.2em; }
/* Читаемость текста в обеих палитрах */
.ym-obj, .yv-text, .scard-obj { color: light-dark(#3e2d58, #eadcf0); }
.ym-kr, .ym-kr small, .mm-sub, .scard-meta { color: light-dark(var(--soft), #d8c4de); }
:root[data-theme=dark] .matrix td a.has { background: rgba(201,163,230,.16); }
/* Контраст: проверено автоматически на всех страницах */
.qname { font-size: 26px; color: light-dark(hsl(var(--h) 45% 36%), hsl(var(--h) 60% 80%)); }
:root[data-theme=dark] .btn.gold, :root[data-theme=dark] .btn.primary { background: linear-gradient(110deg, #9a6cc0, #7a4fa0); color: #fff; }
:root[data-theme=dark] .ym-pct { background: linear-gradient(110deg, #9a6cc0, #7a4fa0); }
:root[data-theme=dark] .wp-it, :root[data-theme=dark] .value, :root[data-theme=dark] .mm-head, :root[data-theme=dark] .trip-img .chip, :root[data-theme=dark] .qnode.photo .qd { color: #362345; }
:root[data-theme=dark] .value .vt, :root[data-theme=dark] .value .vtx { color: #362345 !important; }
:root[data-theme=dark] .value .vtx { color: #5d4670 !important; }
:root[data-theme=dark] .qnode.photo .qd { color: #8a5a22; }
:root[data-theme=dark] .chip.gold { color: #ecc891; border-color: #a88550; background: rgba(236,200,145,.08); }
:root[data-theme=dark] .trip-img .chip.gold { color: #7a4e1c; background: rgba(255,255,255,.9); }
:root[data-theme=dark] .scard-pct, :root[data-theme=dark] .ys-lbl, :root[data-theme=dark] .ys-body .scard-meta a { color: hsl(var(--h) 60% 78%); }
:root[data-theme=dark] .mm.year .mm-head .chip { color: hsl(var(--h) 45% 30%); }
/* Золотые символы и значки */
.gi { display: inline-block; font-family: 'Old Standard TT', Georgia, serif; font-style: normal; font-weight: 400; line-height: 1; background: linear-gradient(160deg, #f1d89c 0%, #c59960 45%, #9a6a2e 100%); -webkit-background-clip: text; background-clip: text; color: transparent; padding: 0 .08em; }
.btn.gold .gi, .chat-fab .gi, .ym-pct .gi { background: linear-gradient(160deg, #fff4d6, #f1d89c); -webkit-background-clip: text; background-clip: text; }
svg.glyph { color: #b08440 !important; }
.medal:not(.photo), .istat .ic { color: #b08440; }
.wp-it.k-joy { background: #f8e7ef; } .wp-it.k-meet { background: #efe4f7; } .wp-it.k-place { background: #f5ecdc; }
:root:not([data-theme=dark]) .ch-row { background: hsl(var(--ch) 35% 96%) !important; }
#back { display: none !important; }
/* Кнопки: подпись всегда помещается в рамку */
.btn, .chip { white-space: nowrap; flex-shrink: 0; max-width: 100%; justify-content: center; }
.btn { overflow: hidden; text-overflow: clip; }
@media (max-width: 560px) { .btn { white-space: normal; text-align: center; line-height: 1.25; height: auto; } }
.qnode.photo .qn, .qnode .qn { white-space: normal; text-align: center; max-width: 140px; line-height: 1.2; }
.site-foot { text-align: center; font-size: 12px; letter-spacing: .04em; color: var(--soft); padding: 10px 16px 110px; }
.site-foot a { color: var(--gold); text-decoration: none; }
.site-foot a:hover { text-decoration: underline; }
@media print { .site-foot { padding: 6px; } }
/* Автосохранение: понятный тихий знак */
.autosave { font-size: 12.5px; color: var(--soft); display: inline-flex; align-items: center; gap: 6px; }
.autosave::before { content: ''; width: 7px; height: 7px; border-radius: 50%; background: var(--line); }
.autosave.ok { color: light-dark(#5c7d5a, #b6d8b2); }
.autosave.ok::before { background: #8fb78a; }
.ritual .intent-in { font-family: var(--font-display); font-size: 20px; padding: 12px 16px; }
.ch-more summary { cursor: pointer; color: var(--violet); font-size: 13.5px; margin: 8px 0 4px; list-style: none; }
.ch-more summary::before { content: '✦ '; color: var(--gold); }
.ch-more[open] summary { margin-bottom: 10px; }

.hint-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; margin-bottom: 14px; border-radius: 18px; border: 1px dashed var(--edge); background: light-dark(rgba(255,252,255,.7), rgba(48,33,55,.7)); flex-wrap: wrap; }
.hint-card > div { flex: 1 1 220px; }
.hint-card .gi { font-size: 26px; }

/* Новая Я: карточки качеств раскрываются по нажатию */
details.qrow { display: block; padding: 0; scroll-margin-top: 90px; }
.qsum { display: flex; align-items: center; gap: 14px; padding: 12px 16px; cursor: pointer; list-style: none; }
.qsum::-webkit-details-marker { display: none; }
.qthumb { width: 54px; height: 54px; flex: none; border-radius: 50%; background: var(--lav) center/cover; box-shadow: 0 0 0 3px hsl(var(--h) 70% 88% / .8); }
.qs-t { flex: 1; min-width: 0; display: flex; flex-direction: column; gap: 2px; }
.qs-t .qname { font-family: var(--font-display); font-size: 20px; }
.qs-a { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.qs-lv { color: var(--gold); font-size: 14px; flex: none; }
.qs-arr { color: var(--gold); transition: transform .25s; flex: none; }
details.qrow[open] .qs-arr { transform: rotate(180deg); }
details.qrow[open] .qsum { border-bottom: 1px solid var(--line); }
.qopen { display: grid; grid-template-columns: 250px minmax(0, 1fr); gap: 24px; padding: 16px; align-items: start; }
.qopen .qbody > .spread:first-child h3.qname { display: none; }
@media (max-width: 720px) { .qopen { grid-template-columns: minmax(0, 1fr); } .qs-a { display: none; } }

/* Памятка: баллы, уровни, награды */
.modal-card:has(.memo) { width: min(720px, 100%); }
.memo h2 { margin: 2px 0 6px; }
.memo-now { display: grid; grid-template-columns: repeat(3, 1fr); gap: 10px; margin: 16px 0 6px; }
.memo-now > div { border: 1px solid var(--edge, var(--line)); border-radius: 18px; padding: 12px; text-align: center; background: linear-gradient(160deg, color-mix(in srgb, var(--gold) 8%, var(--card)), var(--card)); }
.memo-big { display: block; font-family: var(--font-display); font-size: 28px; color: var(--gold); line-height: 1.1; }
.memo-now small { color: var(--soft); font-size: 12.5px; }
.memo-h { display: flex; align-items: center; gap: 10px; margin: 24px 0 8px; font-family: var(--font-display); font-size: 21px; }
.memo-n { width: 28px; height: 28px; border-radius: 50%; display: inline-grid; place-items: center; font-size: 14px; font-family: var(--font-ui); color: #fff; background: linear-gradient(150deg, #d9b26f, #96612e); flex: none; }
.memo-ways, .memo-badges { list-style: none; padding: 0; margin: 0; display: grid; gap: 6px; }
.memo-ways li, .memo-badges li { display: flex; align-items: center; gap: 12px; padding: 9px 12px; border-radius: 14px; background: color-mix(in srgb, var(--violet) 5%, var(--card)); }
.memo-ic { width: 30px; text-align: center; font-size: 18px; flex: none; }
.memo-t { flex: 1; min-width: 0; display: flex; flex-direction: column; }
.memo-t small { color: var(--soft); font-size: 12.5px; }
.memo-p { color: var(--gold); font-weight: 600; white-space: nowrap; font-size: 14px; }
.memo-badges li:not(.on) { opacity: .72; }
.memo-badges li.on .memo-p { color: #4f8a5b; }
.memo-levels { list-style: none; padding: 0; margin: 10px 0 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(118px, 1fr)); gap: 8px; }
.memo-levels li { border: 1px solid var(--line); border-radius: 14px; padding: 8px 10px; display: flex; flex-direction: column; gap: 1px; }
.memo-levels li span { color: var(--gold); font-size: 12px; }
.memo-levels li small { color: var(--soft); font-size: 12px; }
.memo-levels li.on { border-color: color-mix(in srgb, var(--gold) 55%, var(--line)); background: color-mix(in srgb, var(--gold) 7%, var(--card)); }
.memo-levels li.cur { box-shadow: 0 0 0 2px color-mix(in srgb, var(--gold) 60%, transparent); }
#pts { cursor: pointer; }
@media (max-width: 560px) { .memo-now { grid-template-columns: 1fr 1fr 1fr; } .memo-big { font-size: 22px; } }
/* Селена: компактная кнопка в углу */
.chat-fab { padding: 9px 15px !important; font-size: 14px !important; right: 16px !important; bottom: 16px !important; box-shadow: 0 8px 22px -8px rgba(80,45,110,.55) !important; }
.chat-fab span { font-size: 15px !important; }
.quick-fab { bottom: 70px !important; right: 20px !important; width: 46px !important; height: 46px !important; font-size: 24px !important; }
@media (max-width: 760px) { .chat-fab { bottom: calc(76px + env(safe-area-inset-bottom)) !important; right: 12px !important; } .quick-fab { bottom: calc(76px + env(safe-area-inset-bottom)) !important; right: auto !important; left: 14px !important; } }

.jb-list li[hidden], .jb-empty[hidden] { display: none !important; }
.jb-add { margin: 12px 0 6px; }
.jb-add select { flex: 0 1 190px; }
.jb-ic { width: 24px; text-align: center; flex: none; }
