/* İşçi tərəfi (390px əsas) */
.wrap{max-width:460px;margin:0 auto;padding:calc(14px + env(safe-area-inset-top)) 16px calc(28px + env(safe-area-inset-bottom));display:flex;flex-direction:column;gap:14px}
.top{display:flex;align-items:center;gap:12px;padding:2px 4px}
.logo{width:92px;height:auto}
.brand{display:block;font-size:17px;letter-spacing:.06em;color:var(--p)}
.card{padding:18px;display:flex;flex-direction:column;gap:14px}
.card h2{margin:0;font-size:21px}
.center{text-align:center}
#clock{font:700 52px/1 ui-rounded,-apple-system,"SF Pro Rounded",system-ui,sans-serif;text-align:center;color:var(--p);font-variant-numeric:tabular-nums;letter-spacing:.02em}
#clockCard{padding:14px 18px;gap:6px}
.who{display:flex;align-items:center;gap:12px}
.grow{flex:1;min-width:0}
.hi{font-weight:800;font-size:18px}
.score{background:rgba(255,255,255,.75);border-radius:14px;padding:10px 12px;font-weight:700;color:var(--p)}
.big{border:0;border-radius:18px;padding:22px 10px;font-size:21px;font-weight:800;color:#fff;box-shadow:0 10px 24px rgba(60,20,100,.22);transition:transform .1s}
.big:active{transform:scale(.97)}
.big:disabled{opacity:.55}
.in{background:linear-gradient(135deg,#2fbf86,#1f9d6b)}
.out{background:linear-gradient(135deg,#f0708a,#c4466f)}
.big1{padding:16px;font-size:17px}
.links{display:flex;flex-wrap:wrap;gap:8px}
#otherBox{display:flex;flex-direction:column;gap:12px}
.pinrow{display:flex;gap:8px}.pinrow input{flex:1}
.mhead{display:flex;justify-content:space-between;align-items:center;gap:10px}
.mhead select{width:auto;padding:8px 12px;font-size:15px}
.hint{text-align:center;margin:0 8px}
.lg-g{background:#bfe9d4}.lg-y{background:#ffe39a}.lg-b{background:#c4d8f7}.lg-r{background:#f7bcc7}
#top3 h3{margin:0;font-size:13px;color:#8a6000;text-transform:uppercase;letter-spacing:.06em}
#top3 .pod{display:flex;flex-direction:column;gap:6px;font-size:15px}

/* ===================== CHG-046: dekor və 3 tema (yalnız işçi səhifəsi) ===================== */
#sky{position:fixed;inset:0;width:100%;height:100%;z-index:0;pointer-events:none}
.deco{position:fixed;z-index:0;pointer-events:none}
.moon{top:calc(18px + env(safe-area-inset-top));right:max(12px,5vw);width:70px;height:70px;filter:drop-shadow(0 0 18px rgba(255,236,170,.55));animation:bob 9s ease-in-out infinite}
.planet{left:max(-34px,-5vw);bottom:-40px;width:170px;height:170px;opacity:.9;animation:bob 12s ease-in-out infinite reverse}
.prince{display:none;right:10px;bottom:calc(10px + env(safe-area-inset-bottom));width:96px;height:112px;animation:bob 10s ease-in-out infinite}
@keyframes bob{0%,100%{transform:translateY(0)}50%{transform:translateY(-8px)}}
.wrap{position:relative;z-index:1}
.top{padding-right:84px}  /* Ay loqonun/tarixin üstünə düşməsin */
.qcard{padding:12px 16px;display:flex;flex-direction:column;gap:4px;text-align:center;background:linear-gradient(135deg,rgba(255,255,255,.62),rgba(255,248,230,.55))}
.qcard .ql{font-size:11px;letter-spacing:.14em;text-transform:uppercase;color:#8a6000;font-weight:700}
.qcard .qt{font-family:Georgia,"Times New Roman",serif;font-style:italic;font-size:16px;line-height:1.45;text-wrap:balance}
.quiet{border:0;background:none;color:var(--mut);font-size:13px;padding:2px 0;align-self:center;text-decoration:underline;text-underline-offset:3px;text-decoration-color:rgba(95,86,117,.4)}
#themes{display:flex;justify-content:center;gap:6px;flex-wrap:wrap;align-items:center;padding-bottom:6px}
#themes .tl{font-size:12.5px;color:var(--mut);margin-right:2px}
#themes button{font-size:13px;padding:6px 12px;border-radius:999px;border:1px solid rgba(91,42,134,.25);background:rgba(255,255,255,.55);color:var(--ink)}
#themes button.on{background:var(--p);border-color:var(--p);color:#fff;font-weight:700}

/* --- Şəfəq: çəhrayı-şaftalı-bənövşəyi (köhnə kimi); mətn tünd qalır --- */
html[data-theme=sefeq]{background:#fff0ea}
html[data-theme=sefeq] body{background:linear-gradient(180deg,#ffe6d8 0%,#fbe3f1 45%,#ece6ff 100%) fixed}
html[data-theme=sefeq] #clock{color:#a83c63}
html[data-theme=sefeq] .brand{color:#8a2f6a}
html[data-theme=sefeq] .glass{background:rgba(255,255,255,.66)}
html[data-theme=sefeq] .qcard .ql{color:#a8456b}
html[data-theme=sefeq] .moon{filter:drop-shadow(0 0 14px rgba(255,190,150,.6))}

/* --- Gündüz (default): Aurora; Ay yumşaq --- */
html[data-theme=gunduz] .moon{filter:drop-shadow(0 0 10px rgba(240,200,90,.45))}

/* --- Gecə / Kiçik Şahzadə: tünd göy fon, açıq mətn --- */
html[data-theme=gece]{background:#07061a;color-scheme:dark;
  --ink:#f3f0ff;--mut:#c8c0e8;--glass:rgba(22,18,58,.66);--glass2:rgba(255,255,255,.08);--edge:rgba(255,255,255,.14);--sh:0 20px 60px rgba(0,0,0,.45)}
html[data-theme=gece] body{background:radial-gradient(120% 80% at 70% 0%,#2b1f6e 0%,#15103f 45%,#07061a 100%) fixed;color:var(--ink)}
html[data-theme=gece] .prince{display:block}
html[data-theme=gece] .logo{filter:brightness(0) invert(1);opacity:.95}
html[data-theme=gece] .brand{color:#e2d8ff}
html[data-theme=gece] #clock{color:#ffeab0;text-shadow:0 0 18px rgba(255,220,140,.45)}
html[data-theme=gece] .glass{-webkit-backdrop-filter:blur(10px);backdrop-filter:blur(10px)}
html[data-theme=gece] .qcard{background:linear-gradient(135deg,rgba(255,234,176,.10),rgba(195,181,255,.12));border-color:rgba(255,234,176,.22)}
html[data-theme=gece] .qcard .ql{color:#ffeab0}
html[data-theme=gece] input,html[data-theme=gece] select,html[data-theme=gece] textarea{background:rgba(255,255,255,.08);color:var(--ink);border-color:rgba(255,255,255,.22)}
html[data-theme=gece] select option{background:#1b1648;color:#f3f0ff}
html[data-theme=gece] input::placeholder,html[data-theme=gece] textarea::placeholder{color:rgba(243,240,255,.5)}
html[data-theme=gece] .link{color:#cdbfff}
html[data-theme=gece] .quiet{text-decoration-color:rgba(200,192,232,.45)}
html[data-theme=gece] .btn.ghost{background:rgba(255,255,255,.08);color:#e2d8ff;border-color:rgba(255,255,255,.22)}
html[data-theme=gece] .chip{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.2);color:var(--ink)}
html[data-theme=gece] .chip.on{background:#8f7bff;border-color:#8f7bff;color:#120d33}
html[data-theme=gece] .score{background:rgba(255,255,255,.08);color:#ffeab0}
html[data-theme=gece] .msg.ok{background:rgba(63,214,154,.16);color:#7ef0c0}
html[data-theme=gece] .msg.bad{background:rgba(255,122,122,.16);color:#ffb0b0}
html[data-theme=gece] .msg.warn{background:rgba(255,210,122,.16);color:#ffe0a0}
html[data-theme=gece] #top3 h3{color:#ffd27a}
html[data-theme=gece] .kp{background:rgba(255,255,255,.08)}
html[data-theme=gece] .d{color:#4a4560}
html[data-theme=gece] .d b,html[data-theme=gece] .d i{color:#1f1630}
html[data-theme=gece] .d.w,html[data-theme=gece] .d.h{background:rgba(255,255,255,.1);color:#a9a2c8}
html[data-theme=gece] .d.w b,html[data-theme=gece] .d.h b{color:#d9d4ee}
html[data-theme=gece] .mbox{color:#1f1630}
html[data-theme=gece] #themes button{background:rgba(255,255,255,.07);border-color:rgba(255,255,255,.22)}
html[data-theme=gece] #themes button.on{background:#ffeab0;border-color:#ffeab0;color:#16123a}

@media (prefers-reduced-motion:reduce){.moon,.planet,.prince{animation:none}}
@media (max-width:360px){.moon{width:56px;height:56px}.top{padding-right:64px}}
/* aşağıdakı sabit planet/siluet sonuncu sətri (Tema) örtməsin */
.wrap{padding-bottom:calc(150px + env(safe-area-inset-bottom))}

/* ===================== CHG-047: Mənim ayım — şəxsi dashboard ===================== */
.dash{display:flex;flex-direction:column;gap:14px}
.mnav{display:flex;align-items:center;gap:6px}
.mnav b{min-width:122px;text-align:center;font-size:16px}
.mnav button{width:38px;height:38px;border-radius:12px;border:1px solid rgba(91,42,134,.22);background:rgba(255,255,255,.6);font-size:22px;line-height:1;color:var(--p)}
.mnav button:disabled{opacity:.3}
.hero{padding:18px;display:flex;flex-direction:column;gap:8px}
.hrow{display:flex;justify-content:space-between;align-items:flex-end;gap:12px}
.hl{font-size:13px;color:var(--mut);font-weight:700;text-transform:uppercase;letter-spacing:.06em}
.hx{font-size:56px;font-weight:900;line-height:1;color:var(--p);font-variant-numeric:tabular-nums}
.hx small,.hs small{display:block;font-size:12px;font-weight:600;color:var(--mut);margin-top:4px;letter-spacing:0}
.hs{font-size:30px;font-weight:800;text-align:right}
.hc{font-size:15px}
.hm{font-size:14px;color:var(--mut);background:rgba(255,255,255,.45);border-radius:12px;padding:8px 10px}
.dcal{gap:4px}
.dc{border:0;background:none;padding:3px 0;display:flex;flex-direction:column;align-items:center;gap:2px;border-radius:12px;color:var(--ink)}
.dc .dn{font-size:11px;color:var(--mut);font-weight:700}
.dc.sel{background:rgba(123,63,179,.14)}
.dc.today .dot{box-shadow:0 0 0 2px #fff,0 0 0 4px var(--p2)}
.dot{width:32px;height:32px;border-radius:50%;display:grid;place-items:center;font-style:normal;font-size:15px;font-weight:800;color:#fff;line-height:1}
.c-g{background:#1f9d6b}.c-y{background:#f0b429;color:#3a2700}.c-b{background:#2f6fd6}.c-m{background:#7b3fb3}.c-x{background:#b78ca0}
.c-r{background:#d23b52}.c-w,.c-h{background:#ddd8e6;color:#6b6280}.c-n{background:transparent;border:2px dashed var(--p2);color:var(--p2)}
.c-f{background:rgba(255,255,255,.45);border:1px solid rgba(91,42,134,.12)}.c-e{background:transparent}
.dleg{gap:8px 12px}
.dleg .dot{width:18px;height:18px;font-size:10px;display:inline-grid;margin-right:4px;vertical-align:-4px;border-radius:50%}
.daypanel{background:rgba(255,255,255,.5);border-radius:16px;padding:12px 14px;font-size:14px;min-height:56px;display:flex;flex-direction:column;gap:6px}
.dh{display:flex;align-items:center;gap:8px;flex-wrap:wrap}.dh .dot{width:26px;height:26px;font-size:13px}
.dr{display:flex;gap:10px;align-items:baseline}.dr span{min-width:86px;color:var(--mut)}.dr i{font-style:normal;color:var(--mut);font-size:13px}
.parts{font-size:12.5px;color:var(--mut)}
.tiles{display:grid;grid-template-columns:1fr 1fr;gap:10px}
.tile{padding:12px 14px;display:flex;flex-direction:column;gap:2px;border-radius:18px}
.tile .ti{font-size:16px}.tile b{font-size:24px;line-height:1.15}.tile span:not(.ti){font-size:12.5px;color:var(--mut)}
.tile em{font-style:normal;font-size:11.5px;color:var(--mut);margin-top:2px}
.empty{grid-column:1/-1;margin:0;font-size:13.5px;color:var(--mut);text-align:center}
#mMonths h3,#mTop3 h3{margin:0;font-size:15px}
.mt{width:100%;border-collapse:collapse;font-size:14px}
.mt th,.mt td{padding:7px 6px;text-align:left;border-bottom:1px solid rgba(91,42,134,.1)}
.mt th{font-size:12px;color:var(--mut)}
.mt tr[data-ym]{cursor:pointer}.mt tr.on td{background:rgba(123,63,179,.12);font-weight:700}
#mTop3 .pod{display:flex;flex-direction:column;gap:4px}
#okMonth{font-size:15px}
html[data-theme=gece] .mnav button{background:rgba(255,255,255,.08);border-color:rgba(255,255,255,.2);color:#e2d8ff}
html[data-theme=gece] .hx{color:#ffeab0}
html[data-theme=gece] .hm,html[data-theme=gece] .daypanel{background:rgba(255,255,255,.07)}
html[data-theme=gece] .dc.today .dot{box-shadow:0 0 0 2px #15103f,0 0 0 4px #ffeab0}
html[data-theme=gece] .dc.sel{background:rgba(255,234,176,.12)}
html[data-theme=gece] .c-w,html[data-theme=gece] .c-h{background:rgba(255,255,255,.16);color:#c8c0e8}
html[data-theme=gece] .c-f{background:rgba(255,255,255,.05);border-color:rgba(255,255,255,.12)}
html[data-theme=gece] .c-n{border-color:#ffeab0;color:#ffeab0}
html[data-theme=gece] .mt th,html[data-theme=gece] .mt td{border-bottom-color:rgba(255,255,255,.1)}
html[data-theme=gece] .mt tr.on td{background:rgba(255,234,176,.12)}
html[data-theme=sefeq] .hx{color:#a83c63}
