:root{
  --bg:#F4F5F7; --surface:#FFFFFF; --surface-2:#FAFAFC;
  --ink:#15171C; --muted:#61656E; --line:#E3E5EA; --line-strong:#CFD3DB;
  --accent:#2E4BC7;
  --fiz:#B4460F; --emo:#A81E5A; --int:#0D6E63;
  --intu:#6B5CC4; --este:#8A6E2F; --samo:#3C7A8A; --duch:#5F7A3C;
  --up:#1F7A4C; --down:#A63A2A;
  --up-rgb:31,122,76; --down-rgb:166,58,42;
  --sun:#C2820B; --moon:#5B5F9E;
  --tint-max:.42;
  --shadow:0 1px 2px rgba(21,23,28,.05), 0 8px 24px -16px rgba(21,23,28,.35);
}
@media (prefers-color-scheme: dark){
  :root:not([data-theme="light"]){
    --bg:#14161B; --surface:#1B1E25; --surface-2:#20242C;
    --ink:#EDEEF2; --muted:#9AA0AC; --line:#2A2E37; --line-strong:#3A3F4B;
    --accent:#8FA6FF;
    --fiz:#F19A5E; --emo:#F07FB0; --int:#4CC9BC;
    --intu:#A99CF0; --este:#D8B26A; --samo:#78BDD0; --duch:#A9C177;
    --up:#5FCB92; --down:#F08A77;
    --up-rgb:95,203,146; --down-rgb:240,138,119;
    --sun:#E8B84B; --moon:#A6A9E8;
    --tint-max:.34;
    --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.8);
  }
}
:root[data-theme="dark"]{
  --bg:#14161B; --surface:#1B1E25; --surface-2:#20242C;
  --ink:#EDEEF2; --muted:#9AA0AC; --line:#2A2E37; --line-strong:#3A3F4B;
  --accent:#8FA6FF;
  --fiz:#F19A5E; --emo:#F07FB0; --int:#4CC9BC;
  --intu:#A99CF0; --este:#D8B26A; --samo:#78BDD0; --duch:#A9C177;
  --up:#5FCB92; --down:#F08A77;
  --up-rgb:95,203,146; --down-rgb:240,138,119;
  --sun:#E8B84B; --moon:#A6A9E8;
  --tint-max:.34;
  --shadow:0 1px 2px rgba(0,0,0,.4), 0 8px 24px -16px rgba(0,0,0,.8);
}
*{box-sizing:border-box}
body{margin:0; background:var(--bg); color:var(--ink);
  font-family:"Archivo","Helvetica Neue",Arial,sans-serif; font-size:15px; line-height:1.5;
  -webkit-font-smoothing:antialiased}
.num,.mono{font-family:"IBM Plex Mono",ui-monospace,monospace; font-variant-numeric:tabular-nums}
.wrap{max-width:1000px; margin:0 auto; padding-inline:20px; padding-block:28px 60px}
.eyebrow{font-size:11.5px; letter-spacing:.13em; text-transform:uppercase; color:var(--muted); margin:0}
h1{font-family:"Newsreader",Georgia,serif; font-weight:500; font-size:clamp(27px,4.4vw,38px);
  line-height:1.1; margin:5px 0 0; letter-spacing:-.01em; text-wrap:balance}
h2{font-family:"Newsreader",Georgia,serif; font-weight:500; font-size:23px; margin:4px 0 4px}
h3{font-family:"Newsreader",Georgia,serif; font-weight:500; font-size:18px; margin:0 0 4px}
.lead{margin:0; font-size:13px; color:var(--muted); max-width:64ch}
section{margin-top:38px}
.sec-head{margin-bottom:16px}
a{color:var(--accent)}

/* ---- pasek górny i zakładki ---- */
.topbar{display:flex; flex-wrap:wrap; gap:14px 24px; align-items:flex-end; justify-content:space-between}
.sync{display:flex; align-items:center; gap:7px; font-size:12px; color:var(--muted)}
.sync i{width:7px; height:7px; border-radius:50%; background:var(--muted)}
.sync.ok i{background:var(--up)} .sync.local i{background:var(--sun)} .sync.err i{background:var(--down)}
nav.tabs{display:flex; gap:4px; flex-wrap:wrap; margin:22px 0 0; border-bottom:1px solid var(--line)}
nav.tabs button{appearance:none; background:none; border:none; border-bottom:2px solid transparent;
  color:var(--muted); font:600 14px/1 "Archivo",sans-serif; padding:11px 13px; cursor:pointer; margin-bottom:-1px}
nav.tabs button[aria-selected="true"]{color:var(--ink); border-bottom-color:var(--accent)}
nav.tabs button:focus-visible{outline:2px solid var(--accent); outline-offset:-2px; border-radius:4px}
.tabpanel[hidden]{display:none}

.toggle-ext{display:inline-flex; align-items:center; gap:9px; background:var(--surface); color:var(--ink);
  border:1px solid var(--line-strong); border-radius:99px; padding:8px 15px 8px 12px;
  font:600 13px/1 "Archivo",sans-serif; cursor:pointer; box-shadow:var(--shadow); white-space:nowrap}
.toggle-ext:hover{border-color:var(--ink)}
.toggle-ext:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.toggle-ext .sw{position:relative; width:30px; height:17px; border-radius:99px; background:var(--line-strong);
  flex:none; transition:background .2s ease}
.toggle-ext .sw::after{content:""; position:absolute; top:2px; left:2px; width:13px; height:13px; border-radius:50%;
  background:var(--surface); transition:translate .2s ease; box-shadow:0 1px 2px rgba(0,0,0,.25)}
.toggle-ext[aria-pressed="true"]{border-color:var(--accent); color:var(--accent)}
.toggle-ext[aria-pressed="true"] .sw{background:var(--accent)}
.toggle-ext[aria-pressed="true"] .sw::after{translate:13px 0}
.cycle.secondary{opacity:.93}
.cycle.secondary .name{font-weight:500; font-size:15px}
.ext-note{margin:14px 0 0; font-size:12.5px; color:var(--muted); max-width:70ch}
.crossbar{display:grid; grid-template-columns:repeat(auto-fit,minmax(120px,1fr)); gap:14px 20px; margin-bottom:16px}

.calc{border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:var(--shadow);
  padding:18px 20px}
.calc table{width:100%; border-collapse:collapse; font-size:13.5px}
.calc td{padding:7px 0; border-bottom:1px solid var(--line); vertical-align:baseline}
.calc tr:last-child td{border-bottom:none}
.calc td.lab{color:var(--muted); width:34%}
.calc td.eq{font-family:"IBM Plex Mono",monospace}
.calc td.res{text-align:right; font-family:"IBM Plex Mono",monospace; font-weight:500}
.bignum{display:flex; align-items:baseline; gap:16px; flex-wrap:wrap; margin-bottom:14px}
.bignum .n{font-family:"IBM Plex Mono",monospace; font-size:54px; line-height:1; font-weight:500; color:var(--accent)}
.bignum .t{font-family:"Newsreader",Georgia,serif; font-size:24px}
.bignum .k{font-size:13px; color:var(--muted); flex-basis:100%}
.numgrid{display:grid; grid-template-columns:repeat(auto-fit,minmax(210px,1fr)); gap:18px}
.numcard{border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:15px 16px}
.numcard .hd{display:flex; align-items:baseline; gap:10px; justify-content:space-between}
.numcard .v{font-family:"IBM Plex Mono",monospace; font-size:28px; font-weight:500; color:var(--accent); line-height:1}
.numcard .ttl{font-weight:600; font-size:14.5px}
.numcard .eq{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--muted); margin-top:4px}
.numcard p{margin:9px 0 0; font-size:13px; color:var(--muted); line-height:1.55}
.pdstrip{display:grid; grid-template-columns:repeat(auto-fill,minmax(46px,1fr)); gap:5px; margin-top:12px}
.pdcell{border:1px solid var(--line); border-radius:5px; background:var(--surface); padding:6px 2px; text-align:center;
  font-family:"IBM Plex Mono",monospace; cursor:pointer}
.pdcell:hover{border-color:var(--line-strong)}
.pdcell:focus-visible{outline:2px solid var(--accent); outline-offset:1px}
.pdcell .dt{display:block; font-size:10.5px; color:var(--muted)}
.pdcell .pd{display:block; font-size:17px; font-weight:500; line-height:1.2}
.pdcell.match{border-color:var(--accent); box-shadow:inset 0 0 0 1px var(--accent)}
.pdcell.sel{background:var(--surface-2); box-shadow:inset 0 0 0 2px var(--ink)}
.letters{display:flex; flex-wrap:wrap; gap:5px; margin-top:12px}
.letters .l{border:1px solid var(--line); border-radius:5px; background:var(--surface); min-width:30px;
  padding:5px 3px; text-align:center; font-family:"IBM Plex Mono",monospace}
.letters .l.vow{background:var(--surface-2); border-color:var(--line-strong)}
.letters .l .c{display:block; font-size:14px; font-weight:500}
.letters .l .v{display:block; font-size:11px; color:var(--muted)}
.keytable{width:100%; border-collapse:collapse; font-family:"IBM Plex Mono",monospace; font-size:13px; margin-top:12px}
.keytable td,.keytable th{padding:6px 8px; border:1px solid var(--line); text-align:center}
.keytable th{background:var(--surface-2); font-weight:500; color:var(--muted)}
.statustable{width:100%; border-collapse:collapse; font-size:13.5px; margin-top:12px}
.statustable th,.statustable td{padding:10px 12px; border-bottom:1px solid var(--line); text-align:left; vertical-align:top}
.statustable th{font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); font-weight:500}
.statustable .st{white-space:nowrap; font-size:12.5px}
.disclaim{border:1px solid var(--line-strong); border-left:3px solid var(--sun); border-radius:8px;
  padding:16px 18px; background:var(--surface); font-size:13.5px; line-height:1.6}
.disclaim b{color:var(--ink)}

.profile{display:grid; grid-template-columns:repeat(auto-fit,minmax(260px,1fr)); gap:22px; margin-top:20px}
.profile .blk h4{margin:0 0 9px; font:600 13px/1 "Archivo",sans-serif; letter-spacing:.02em}
.profile ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:7px}
.profile li{position:relative; padding-left:16px; font-size:13.5px; line-height:1.5; color:var(--muted)}
.profile li::before{content:""; position:absolute; left:0; top:8px; width:5px; height:5px; border-radius:50%;
  background:var(--c,var(--accent))}
.profile li b{color:var(--ink); font-weight:500}
.longtext{margin:16px 0 0; font-size:14.5px; line-height:1.65}
.todo{border:1px solid var(--line); border-left:3px solid var(--accent); border-radius:8px; background:var(--surface);
  padding:16px 18px; margin-top:22px}
.todo ol{margin:10px 0 0; padding-left:20px; display:flex; flex-direction:column; gap:9px}
.todo li{font-size:13.5px; line-height:1.55}
.daycols{display:grid; grid-template-columns:repeat(auto-fit,minmax(240px,1fr)); gap:18px}
.daycols .col{border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:15px 16px}
.daycols .col.good{border-left:3px solid var(--up)}
.daycols .col.skip{border-left:3px solid var(--down)}
.daycols .col h4{margin:0 0 10px; font:600 13px/1 "Archivo",sans-serif}
.daycols ul{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
.daycols li{font-size:13.5px; line-height:1.5; padding-left:15px; position:relative}
.daycols li::before{content:""; position:absolute; left:0; top:7px; width:6px; height:6px; border-radius:2px}
.daycols .col.good li::before{background:var(--up)}
.daycols .col.skip li::before{background:var(--down)}
.mapcard{border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:var(--shadow);
  padding:16px 18px; margin-bottom:14px}
.mapcard .hd{display:flex; flex-wrap:wrap; gap:8px 12px; align-items:baseline; margin-bottom:6px}
.mapcard .pair{font-family:"IBM Plex Mono",monospace; font-size:15px; color:var(--accent)}
.mapcard .lbl{font-weight:600; font-size:14.5px}
.mapcard .tagx{font-size:11px; letter-spacing:.08em; text-transform:uppercase; border:1px solid currentColor;
  border-radius:99px; padding:2px 8px}
.mapcard p{margin:0; font-size:13.5px; color:var(--muted); line-height:1.6}
.question{margin-top:16px; padding:14px 16px; border:1px dashed var(--line-strong); border-radius:8px;
  font-size:14px; line-height:1.55}
.question > b:first-child{display:block; font-size:11.5px; letter-spacing:.09em; text-transform:uppercase;
  color:var(--muted); margin-bottom:6px; font-weight:500}
.question b{font-weight:600; color:var(--ink)}

.teaser{display:flex; flex-wrap:wrap; gap:12px 20px; align-items:center; justify-content:space-between;
  border:1px dashed var(--line-strong); border-radius:8px; padding:14px 18px; margin-top:34px}
.teaser b{display:block; font-size:14.5px; margin-bottom:3px}
.teaser span{font-size:13px; color:var(--muted); max-width:62ch; display:block}
.herhead{display:flex; flex-wrap:wrap; gap:14px 22px; align-items:center; margin-bottom:6px}
.herhead .big{font-family:"IBM Plex Mono",monospace; font-size:56px; line-height:1; font-weight:500; color:var(--accent)}
.herhead .who{font-family:"Newsreader",Georgia,serif; font-size:26px; line-height:1.2}
.herhead .sub{font-size:13px; color:var(--muted)}

.moonstrip{display:grid; grid-template-columns:repeat(auto-fill,minmax(62px,1fr)); gap:8px}
.mooncell{border:1px solid var(--line); border-radius:6px; background:var(--surface); padding:8px 4px 6px;
  text-align:center; cursor:pointer; display:flex; flex-direction:column; align-items:center; gap:4px}
.mooncell:hover{border-color:var(--line-strong)}
.mooncell:focus-visible{outline:2px solid var(--accent); outline-offset:1px}
.mooncell .dt{font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--muted)}
.mooncell .il{font-family:"IBM Plex Mono",monospace; font-size:11px}
.mooncell.sel{box-shadow:inset 0 0 0 2px var(--accent); border-color:var(--accent)}
.mooncell.key{border-color:var(--moon)}
.mooncell.ret{box-shadow:inset 0 0 0 2px var(--up)}
.moonhead{display:flex; flex-wrap:wrap; gap:18px 24px; align-items:center}
.moonhead .txt{flex:1; min-width:240px}
.moonhead .nm{font-family:"Newsreader",Georgia,serif; font-size:27px; line-height:1.2}
.moonhead .meta{font-size:13px; color:var(--muted); margin-top:4px}

/* ---- nawigacja modułów ---- */
.modbtn{display:inline-flex; align-items:center; gap:8px; background:var(--ink); color:var(--bg);
  border:1px solid var(--ink); border-radius:99px; padding:9px 16px 9px 13px; font:600 13px/1 "Archivo",sans-serif;
  cursor:pointer; box-shadow:var(--shadow)}
.modbtn .ico{font-size:15px; line-height:1}
.modbtn .cnt{background:var(--bg); color:var(--ink); border-radius:99px; padding:2px 7px; font-family:"IBM Plex Mono",monospace;
  font-size:11px; min-width:20px; text-align:center}
.modbtn:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.drawer-wrap{margin-top:18px}
.drawer{border:1px solid var(--line-strong); border-radius:12px; background:var(--surface); box-shadow:var(--shadow); padding:20px 22px}
.drawer-head{display:flex; justify-content:space-between; align-items:flex-start; gap:12px}
.modgroup{margin-top:16px}
.modgroup > .eyebrow{margin-bottom:8px}
.modrow{display:grid; grid-template-columns:auto minmax(0,1fr) auto; gap:4px 14px; align-items:center;
  padding:11px 0; border-top:1px solid var(--line)}
.modrow .sw{position:relative; width:38px; height:22px; border-radius:99px; background:var(--line-strong);
  border:none; cursor:pointer; padding:0; transition:background .2s ease; flex:none}
.modrow .sw::after{content:""; position:absolute; top:3px; left:3px; width:16px; height:16px; border-radius:50%;
  background:var(--surface); box-shadow:0 1px 2px rgba(0,0,0,.3); transition:translate .2s ease}
.modrow .sw[aria-checked="true"]{background:var(--accent)}
.modrow .sw[aria-checked="true"]::after{translate:16px 0}
.modrow .sw:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.modrow .sw[disabled]{opacity:.35; cursor:default}
.modrow .nm{font-weight:600; font-size:14.5px}
.modrow .ds{grid-column:2/4; font-size:12.5px; color:var(--muted); line-height:1.5}
.modrow .soon{font-size:11px; letter-spacing:.08em; text-transform:uppercase; color:var(--muted);
  border:1px dashed var(--line-strong); border-radius:99px; padding:3px 9px; white-space:nowrap}
.modrow .open{font:500 12.5px/1 "Archivo",sans-serif; color:var(--accent); background:none; border:none;
  cursor:pointer; text-decoration:underline; text-underline-offset:3px; white-space:nowrap}
.kind{display:inline-block; font-size:10.5px; letter-spacing:.08em; text-transform:uppercase; border-radius:99px;
  padding:2px 8px; margin-left:8px; vertical-align:middle; font-weight:600; font-family:"Archivo",sans-serif}
.kind.science{color:var(--up); border:1px solid rgba(var(--up-rgb),.5); background:rgba(var(--up-rgb),.08)}
.kind.data{color:var(--accent); border:1px solid var(--accent); background:transparent}
.kind.symbol{color:var(--sun); border:1px solid var(--sun); background:transparent}
.kind.astro{color:var(--moon); border:1px solid var(--moon); background:transparent}
.tabs-wrap{position:relative; margin:22px 0 0; overflow-x:auto; scrollbar-width:none; -webkit-overflow-scrolling:touch}
.tabs-wrap::-webkit-scrollbar{display:none}
nav.tabs{margin:0; min-width:max-content; white-space:nowrap; flex-wrap:nowrap}
nav.tabs button{display:inline-flex; align-items:center; gap:7px}
.tdot{width:7px; height:7px; border-radius:50%; flex:none}
.tdot.science{background:var(--up)} .tdot.symbol{background:var(--sun)}
.tabsep{display:inline-block; width:1px; height:18px; background:var(--line-strong); margin:0 6px; align-self:center}
.disclaim.science{border-left-color:var(--up)}

/* ---- rytm dobowy ---- */
.rytm-adv li{font-size:13.5px; line-height:1.55}

/* ---- tarot ---- */
.tarotwrap{display:grid; grid-template-columns:minmax(0,220px) minmax(0,1fr); gap:26px; align-items:start}
@media (max-width:640px){.tarotwrap{grid-template-columns:1fr}}
.tcard{aspect-ratio:2/3.3; max-width:220px; border:1px solid var(--line-strong); border-radius:12px; background:var(--surface);
  box-shadow:var(--shadow); display:flex; flex-direction:column; justify-content:space-between; padding:16px 14px;
  position:relative; overflow:hidden}
.tcard::before{content:""; position:absolute; inset:8px; border:1px solid var(--line); border-radius:8px; pointer-events:none}
.tcard .rn{font-family:"IBM Plex Mono",monospace; font-size:13px; color:var(--muted); letter-spacing:.1em}
.tcard .glyph{font-family:"Newsreader",Georgia,serif; font-size:64px; line-height:1; text-align:center; color:var(--sun); font-weight:500}
.tcard .nm{font-family:"Newsreader",Georgia,serif; font-size:24px; text-align:center; line-height:1.15}
.tcard .kw{font-size:11.5px; color:var(--muted); text-align:center; line-height:1.4}
.tcard.small{max-width:none; aspect-ratio:auto; min-height:164px; padding:13px 12px}
.tcard.small .glyph{font-size:40px; margin:6px 0}
.tcard.small .rn{font-size:10.5px}
.tcard.small .nm{font-size:19px}
.tcard.mine{border-color:var(--accent)}
.tcard.hers{border-color:var(--emo)}
.tcard.ours{border-color:var(--sun)}
.tcards3{display:grid; grid-template-columns:repeat(auto-fit,minmax(185px,1fr)); gap:16px}
.tcards3 .who{font-size:11px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); text-align:center;
  margin-bottom:7px; font-weight:600}
.tcard .glyph.rev{rotate:180deg}
/* ilustracje kart — rysunki dziedziczą kolor po karcie */
.tart{display:block; color:var(--sun); overflow:visible}
.tcard .glyph.art{display:flex; justify-content:center; margin:2px 0 4px; transition:rotate .25s ease}
.tcard.small .glyph.art{margin:2px 0}
.tmini .glyph.art{display:flex; justify-content:center; margin:4px 0 2px}
.tmini .glyph.art .tart{color:var(--sun)}
.tcard.mine .tart{color:var(--accent)}
.tcard.hers .tart{color:var(--emo)}
.orient{display:inline-flex; align-items:center; gap:6px; font-size:11px; letter-spacing:.08em; text-transform:uppercase;
  border:1px solid currentColor; border-radius:99px; padding:3px 10px; font-weight:600}
.orient.up{color:var(--up)} .orient.rv{color:var(--sun)}
.tarot-img{font-size:13.5px; line-height:1.6; color:var(--muted); border-left:2px solid var(--line-strong);
  padding-left:14px; margin:14px 0 0}
.revbox{border:1px solid var(--sun); border-radius:8px; background:var(--surface); padding:14px 16px; margin-top:16px}
.revbox b{display:block; font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--sun); margin-bottom:6px}
.revbox p{margin:0; font-size:13.5px; line-height:1.6}
.tmini .rev{display:inline-block; font-size:9px; color:var(--sun); letter-spacing:.06em}
.tarotstrip{display:grid; grid-template-columns:repeat(auto-fill,minmax(88px,1fr)); gap:8px}
.tmini{border:1px solid var(--line); border-radius:8px; background:var(--surface); padding:9px 8px; text-align:center; cursor:pointer}
.tmini:hover{border-color:var(--line-strong)}
.tmini:focus-visible{outline:2px solid var(--accent); outline-offset:1px}
.tmini.sel{box-shadow:inset 0 0 0 2px var(--accent); border-color:var(--accent)}
.tmini .dt{display:block; font-family:"IBM Plex Mono",monospace; font-size:10.5px; color:var(--muted)}
.tmini .rn{display:block; font-family:"Newsreader",Georgia,serif; font-size:22px; color:var(--sun); line-height:1.2; margin:3px 0}
.tmini .nm{display:block; font-size:11.5px; line-height:1.3}
.tmini .has{display:inline-block; width:5px; height:5px; border-radius:50%; background:var(--accent); margin-top:4px}

/* ---- urządzenia ---- */
.devices{border:1px solid var(--line); border-radius:8px; background:var(--surface); overflow:hidden}
.devrow{display:flex; justify-content:space-between; align-items:center; gap:14px; padding:12px 16px; border-bottom:1px solid var(--line)}
.devrow:last-child{border-bottom:none}
.devrow b{display:block; font-size:14px}
.devrow span{font-size:12.5px; color:var(--muted)}
.devst{font-size:11px; letter-spacing:.08em; text-transform:uppercase; border:1px dashed var(--line-strong); border-radius:99px; padding:3px 9px; white-space:nowrap}

/* ---- pola ---- */
.controls{display:flex; flex-wrap:wrap; gap:14px; align-items:flex-end}
.field{display:flex; flex-direction:column; gap:5px}
.field label{font-size:11.5px; letter-spacing:.1em; text-transform:uppercase; color:var(--muted)}
.field input,.field select{font:500 14px/1.2 "IBM Plex Mono",monospace; color:var(--ink);
  background:var(--surface); border:1px solid var(--line-strong); border-radius:6px; padding:8px 10px; min-width:150px}
.field input.name{font-family:"Archivo",sans-serif; min-width:120px}
.field input:focus-visible,.field select:focus-visible{outline:2px solid var(--accent); outline-offset:1px}
button.btn{font:600 14px/1 "Archivo",sans-serif; color:#fff; background:var(--accent); border:1px solid var(--accent);
  border-radius:6px; padding:11px 18px; cursor:pointer}
button.btn.ghost{background:none; color:var(--accent)}
button.btn:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
button.btn[disabled]{opacity:.5; cursor:default}
.linkish{background:none; border:none; color:var(--accent); font:500 13px/1 "Archivo",sans-serif;
  cursor:pointer; padding:8px 2px; text-decoration:underline; text-underline-offset:3px}

/* ---- check-in ---- */
.checkin{border:1px solid var(--line); border-radius:10px; background:var(--surface); box-shadow:var(--shadow);
  padding:20px 22px}
.checkin.done{border-color:rgba(var(--up-rgb),.45)}
.ci-head{display:flex; flex-wrap:wrap; gap:8px 16px; align-items:baseline; justify-content:space-between; margin-bottom:18px}
.ci-state{font-size:12.5px; color:var(--muted)}
.sliders{display:grid; grid-template-columns:repeat(auto-fit,minmax(230px,1fr)); gap:18px 28px}
.slider{display:grid; grid-template-columns:1fr auto; gap:3px 10px; align-items:baseline}
.slider .sl{font-weight:600; font-size:14px}
.slider .sv{font-family:"IBM Plex Mono",monospace; font-size:17px; font-variant-numeric:tabular-nums; color:var(--c,var(--ink))}
.slider .sd{grid-column:1/3; font-size:12px; color:var(--muted); margin-top:-2px}
.slider input[type=range]{grid-column:1/3; width:100%; margin:8px 0 0; accent-color:var(--c,var(--accent))}
.slider input[type=range]:focus-visible{outline:2px solid var(--accent); outline-offset:3px}
.tagrow{display:flex; flex-wrap:wrap; gap:8px; margin-top:20px}
.tagrow button{font:500 13px/1 "Archivo",sans-serif; color:var(--muted); background:var(--surface-2);
  border:1px solid var(--line); border-radius:99px; padding:7px 13px; cursor:pointer}
.tagrow button[aria-pressed="true"]{color:var(--ink); border-color:var(--ink); background:var(--surface)}
.notefield{margin-top:16px}
.notefield textarea{width:100%; min-height:58px; resize:vertical; font:400 14px/1.45 "Archivo",sans-serif;
  color:var(--ink); background:var(--surface); border:1px solid var(--line-strong); border-radius:6px; padding:9px 11px}
.ci-actions{display:flex; flex-wrap:wrap; gap:12px; align-items:center; margin-top:18px}
.ci-actions .msg{font-size:12.5px; color:var(--muted)}

/* ---- cykle ---- */
.cycles{display:flex; flex-direction:column; border-top:1px solid var(--line)}
.cycle{display:grid; grid-template-columns:minmax(0,1fr) 150px 92px; gap:8px 20px; align-items:center;
  padding:15px 0; border-bottom:1px solid var(--line)}
.cycles.compact .cycle{padding:10px 0; grid-template-columns:minmax(0,1fr) 120px 78px}
.cycle .name{display:flex; align-items:baseline; gap:9px; font-weight:600; font-size:16px}
.dot{width:9px; height:9px; border-radius:50%; background:var(--c); flex:none; translate:0 -1px; display:inline-block}
.cycle .sub{margin:3px 0 0 18px; font-size:12.5px; color:var(--muted)}
.meter{position:relative; height:8px; background:var(--surface-2); border:1px solid var(--line); border-radius:2px; overflow:hidden}
.meter::after{content:""; position:absolute; inset-block:0; left:50%; width:1px; background:var(--line-strong)}
.meter i{position:absolute; inset-block:1px; background:var(--c); border-radius:1px; transition:left .35s ease,width .35s ease}
.cycle .val{text-align:right; font-family:"IBM Plex Mono",monospace; font-size:21px; font-weight:500;
  font-variant-numeric:tabular-nums; color:var(--c)}
.cycle .phase{grid-column:2/4; text-align:right; font-size:12.5px; color:var(--muted); margin-top:-2px}
@media (max-width:620px){
  .cycle,.cycles.compact .cycle{grid-template-columns:minmax(0,1fr) 92px}
  .meter{grid-column:1/3; order:3}
  .cycle .phase{grid-column:1/3; text-align:left; order:4; margin-top:2px}
}

/* ---- plan dnia ---- */
.mode{display:flex; flex-wrap:wrap; gap:10px 16px; align-items:baseline; margin-bottom:16px}
.mode h2{margin:0}
.badge{font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted);
  border:1px solid var(--line-strong); border-radius:99px; padding:3px 10px}
.plan{display:grid; grid-template-columns:minmax(0,1.55fr) minmax(0,1fr); gap:30px; align-items:start}
@media (max-width:720px){.plan{grid-template-columns:1fr}}
ol.acts{list-style:none; margin:0; padding:0}
ol.acts li{display:grid; grid-template-columns:22px minmax(0,1fr) 56px; gap:4px 12px; align-items:baseline;
  padding:11px 0; border-bottom:1px solid var(--line)}
ol.acts .rank{font-family:"IBM Plex Mono",monospace; font-size:12px; color:var(--muted)}
ol.acts .an{font-weight:600; font-size:15px}
ol.acts .as{text-align:right; font-family:"IBM Plex Mono",monospace; font-size:14px; font-variant-numeric:tabular-nums}
ol.acts .aw{grid-column:2/4; font-size:12.5px; color:var(--muted); margin-top:-2px}
ol.acts .track{grid-column:2/4; height:5px; border-radius:3px; background:var(--surface-2);
  border:1px solid var(--line); overflow:hidden; margin-top:6px}
ol.acts .track i{display:block; height:100%}
.side{display:flex; flex-direction:column; gap:18px}
.card{border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:var(--shadow); padding:15px 16px}
.card p.eyebrow{margin-bottom:10px}
ul.plain{list-style:none; margin:0; padding:0; display:flex; flex-direction:column; gap:8px}
ul.plain li{display:grid; grid-template-columns:1fr auto; gap:10px; align-items:baseline; font-size:13.5px;
  padding-bottom:8px; border-bottom:1px solid var(--line)}
ul.plain li:last-child{border-bottom:none; padding-bottom:0}
.warn{display:flex; gap:9px; align-items:flex-start; font-size:13px; padding:9px 0; border-bottom:1px solid var(--line)}
.warn:last-child{border-bottom:none}
.warn i{flex:none; width:7px; height:7px; border-radius:50%; background:var(--c); translate:0 6px}

/* ---- wykresy ---- */
.chart-head{display:flex; flex-wrap:wrap; gap:6px 18px; align-items:baseline; justify-content:space-between; margin-bottom:10px}
.legend{display:flex; gap:14px; flex-wrap:wrap; font-size:12.5px; color:var(--muted)}
.legend span{display:inline-flex; align-items:center; gap:6px}
.legend .bar{width:16px; height:0; border-top:2px solid var(--c)}
.legend .bar.dash{border-top-style:dashed}
.chart-box{background:var(--surface); border:1px solid var(--line); border-radius:8px; box-shadow:var(--shadow);
  padding:8px 4px 2px; overflow:hidden}
.chart-box.interactive{cursor:grab; touch-action:pan-y; user-select:none; -webkit-user-select:none}
.chart-box.interactive.grabbing{cursor:grabbing}
.chart-box.interactive:focus-visible{outline:2px solid var(--accent); outline-offset:2px}
.chart-hint{margin:9px 0 0; font-size:12px; color:var(--muted)}
svg{display:block; max-width:100%}

/* ---- światło i księżyc ---- */
.two{display:grid; grid-template-columns:repeat(auto-fit,minmax(290px,1fr)); gap:24px}
.suncard{display:grid; grid-template-columns:1fr auto; gap:14px 18px; align-items:start}
.sunstats{display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:12px 18px}
.stat .k{font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted); display:block}
.stat .v{display:block; font-family:"IBM Plex Mono",monospace; font-size:19px; font-variant-numeric:tabular-nums;
  line-height:1.25; margin-top:2px}
.stat .n{display:block; font-size:12px; color:var(--muted); line-height:1.35}
.moonrow{display:flex; gap:18px; align-items:center}
.tip{margin:14px 0 0; font-size:13px; color:var(--muted)}

/* ---- kafelki ---- */
.tiles{display:grid; grid-template-columns:repeat(auto-fit,minmax(150px,1fr)); gap:1px; background:var(--line);
  border:1px solid var(--line); border-radius:8px; overflow:hidden}
.tile{background:var(--surface); padding:14px 16px; display:flex; flex-direction:column; gap:2px}
.tile .k{font-size:11.5px; letter-spacing:.09em; text-transform:uppercase; color:var(--muted)}
.tile .v{font-family:"IBM Plex Mono",monospace; font-size:22px; font-weight:500; font-variant-numeric:tabular-nums}
.tile .n{font-size:12.5px; color:var(--muted)}

/* ---- kalendarze ---- */
.months{display:grid; grid-template-columns:repeat(auto-fit,minmax(250px,1fr)); gap:22px}
.month h4{margin:0 0 8px; font:600 13px/1 "Archivo",sans-serif}
.dow,.days-grid{display:grid; grid-template-columns:repeat(7,1fr); gap:3px}
.dow span{text-align:center; font-size:10.5px; letter-spacing:.06em; text-transform:uppercase; color:var(--muted); padding-bottom:5px}
.cell{position:relative; aspect-ratio:1/1; min-height:32px; border:1px solid var(--line); border-radius:4px;
  background:rgba(var(--rgb),var(--a)); color:var(--ink); font:500 12.5px/1 "IBM Plex Mono",monospace;
  cursor:pointer; padding:0; display:flex; align-items:center; justify-content:center}
.cell:hover{border-color:var(--line-strong)}
.cell:focus-visible{outline:2px solid var(--accent); outline-offset:1px}
.cell.blank{border:none; background:none; cursor:default}
.cell.today{box-shadow:inset 0 0 0 1px var(--ink)}
.cell.sel{box-shadow:inset 0 0 0 2px var(--accent); border-color:var(--accent)}
.cell .crit{position:absolute; bottom:3px; left:50%; translate:-50% 0; width:4px; height:4px; border-radius:50%;
  background:var(--ink); opacity:.55}
.cell .pd{position:absolute; bottom:3px; width:4px; height:4px; border-radius:50%}
.cell .pd.me{left:calc(50% - 6px)} .cell .pd.her{left:calc(50% + 2px)}
.cell .logged{position:absolute; top:3px; right:3px; width:5px; height:5px; border-radius:50%; background:var(--accent)}
.scale{display:flex; align-items:center; gap:10px; font-size:11.5px; color:var(--muted); margin-top:14px; flex-wrap:wrap}
.scale .ramp{flex:1; max-width:240px; height:8px; border-radius:2px; border:1px solid var(--line);
  background:linear-gradient(90deg,rgba(var(--down-rgb),var(--tint-max)),rgba(var(--down-rgb),0) 45%,
    rgba(var(--up-rgb),0) 55%,rgba(var(--up-rgb),var(--tint-max)))}
.pick{display:flex; flex-wrap:wrap; gap:6px 18px; align-items:baseline; padding:12px 15px; border:1px solid var(--line);
  border-radius:8px; background:var(--surface); box-shadow:var(--shadow); margin-bottom:16px; font-size:13px}
.pick .d{font-family:"IBM Plex Mono",monospace; font-weight:500; font-size:14px}
.pick .lbl{color:var(--muted)}
.pick .adv{flex-basis:100%; color:var(--muted); font-size:12.5px}

/* ---- listy dni ---- */
.grid3{display:grid; grid-template-columns:repeat(auto-fit,minmax(270px,1fr)); gap:28px}
ol.days{list-style:none; margin:10px 0 0; padding:0}
ol.days li{display:grid; grid-template-columns:1fr auto; gap:2px 14px; align-items:baseline; padding:9px 0;
  border-bottom:1px solid var(--line)}
.day-date{font-family:"IBM Plex Mono",monospace; font-size:14px; font-weight:500}
.day-rel{font-size:12.5px; color:var(--muted)}
.day-score{font-family:"IBM Plex Mono",monospace; font-size:15px; font-variant-numeric:tabular-nums}
.day-score.good{color:var(--up)} .day-score.bad{color:var(--down)}
.day-detail{grid-column:1/3; font-size:12px; color:var(--muted); font-family:"IBM Plex Mono",monospace}
.tag{display:inline-block; padding:1px 6px; border-radius:3px; font-size:11px; border:1px solid currentColor;
  margin-right:5px; font-family:"Archivo",sans-serif}
.empty{font-size:13px; color:var(--muted); padding:10px 0}

/* ---- biopowinowactwo ---- */
.pair{display:grid; grid-template-columns:minmax(0,340px) minmax(0,1fr); gap:30px; align-items:start}
@media (max-width:720px){.pair{grid-template-columns:1fr}}
.compat{display:flex; flex-direction:column; gap:14px}
.compat .row{display:grid; grid-template-columns:1fr auto; gap:4px 12px}
.compat .cap{font-size:13.5px; font-weight:500}
.compat .pc{font-family:"IBM Plex Mono",monospace; font-size:15px; font-variant-numeric:tabular-nums; color:var(--c)}
.compat .track{grid-column:1/3; height:6px; border-radius:3px; background:var(--surface-2); border:1px solid var(--line); overflow:hidden}
.compat .track i{display:block; height:100%; background:var(--c)}
.compat .note{grid-column:1/3; font-size:12px; color:var(--muted)}
.total{border:1px solid var(--line); border-radius:8px; background:var(--surface); box-shadow:var(--shadow);
  padding:16px 18px; display:flex; align-items:baseline; gap:12px; margin-bottom:20px}
.total .big{font-family:"IBM Plex Mono",monospace; font-size:34px; font-weight:500; line-height:1}
.total .txt{font-size:13px; color:var(--muted)}

/* ---- analiza ---- */
.corr{display:flex; flex-direction:column; gap:0}
.corr .row{display:grid; grid-template-columns:minmax(0,1fr) 70px; gap:4px 14px; padding:12px 0; border-bottom:1px solid var(--line)}
.corr .cn{font-weight:600; font-size:14.5px}
.corr .cv{text-align:right; font-family:"IBM Plex Mono",monospace; font-size:16px; font-variant-numeric:tabular-nums}
.corr .cw{grid-column:1/3; font-size:12.5px; color:var(--muted)}
.corr .bar{grid-column:1/3; position:relative; height:6px; background:var(--surface-2); border:1px solid var(--line);
  border-radius:3px; margin-top:6px; overflow:hidden}
.corr .bar::after{content:""; position:absolute; inset-block:0; left:50%; width:1px; background:var(--line-strong)}
.corr .bar i{position:absolute; inset-block:0; border-radius:2px}
.hm{display:grid; grid-template-columns:repeat(auto-fill,14px); gap:3px}
.hm i{width:14px; height:14px; border-radius:3px; background:rgba(var(--rgb),var(--a)); border:1px solid var(--line)}
.bars{display:flex; align-items:flex-end; gap:8px; height:140px; margin-top:10px}
.bars .b{flex:1; display:flex; flex-direction:column; justify-content:flex-end; align-items:center; gap:6px; height:100%}
.bars .b i{width:100%; background:var(--accent); border-radius:3px 3px 0 0; min-height:2px}
.bars .b span{font-size:11px; color:var(--muted); font-family:"IBM Plex Mono",monospace}
.notice{border:1px dashed var(--line-strong); border-radius:8px; padding:16px 18px; font-size:13.5px; color:var(--muted)}
.notice b{color:var(--ink)}
footer{border-top:1px solid var(--line); padding-top:18px; margin-top:44px; display:flex; flex-direction:column; gap:8px}
footer p{margin:0; font-size:12.5px; color:var(--muted); max-width:74ch}
code{font-family:"IBM Plex Mono",monospace; font-size:12.5px; background:var(--surface-2); border:1px solid var(--line);
  border-radius:4px; padding:1px 5px}
@media (prefers-reduced-motion:reduce){*{transition:none !important}}
