/* MotivaJournal – dizajni miqësor për fëmijë (06.12.2026). Dizajni i vjetër: Samsung 840/MotivaJournal-dizajni-i-vjeter-2026-12-06 */
:root {
  --ink: #22304a; --muted: #5a6782; --line: #e3e9f4; --paper: #fff; --bg: #f3f6fc;
  --sun: #ffc531; --sun-soft: #fff5d1; --sun-line: #ffdc73; --sun-deep: #8a5a00; --sun-shadow: #f0b21a;
  --orange: #ff8f3f; --orange-soft: #fff0e4;
  --grape: #8a6bff; --grape-soft: #f1edff; --grape-line: #cfc2ff; --grape-deep: #5a3fd6;
  --berry: #ff5f92; --berry-soft: #ffeaf1; --berry-line: #ffbfd2; --berry-deep: #c2245a;
  --leaf: #2fb36a; --leaf-soft: #e3f8ec; --leaf-line: #a6e3c1; --leaf-deep: #1d8049;
  --sky: #3b8bff; --sky-soft: #e8f2ff; --sky-line: #b9d5ff; --sky-deep: #2363d6;
  --red: #e0473f; --red-soft: #fff2f1;
  /* emrat e vjetër (përdoren ende në disa vende) */
  --moon: var(--sky); --moon-soft: var(--sky-soft); --moon-deep: var(--sky-deep); --green: var(--leaf); --green-soft: var(--leaf-soft); --pink: var(--berry);
  --radius: 24px; --shadow: 0 4px 0 rgba(34, 48, 74, .07), 0 10px 24px rgba(34, 48, 74, .07);
  --font: ui-rounded, "SF Pro Rounded", "Nunito", "Quicksand", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-display: ui-rounded, "SF Pro Rounded", "Nunito", "Varela Round", "Arial Rounded MT Bold", system-ui, -apple-system, "Segoe UI", sans-serif;
  --sky-top: #bfe2ff; --sky-mid: #e6f4ff; --sky-low: #fff7e3;
}
body[data-time="afternoon"] { --sky-top: #d6cdff; --sky-mid: #eee9ff; --sky-low: #fff0f5; }
* { box-sizing: border-box; }
[hidden] { display: none !important; }
html { -webkit-text-size-adjust: 100%; }
body { margin: 0; background: var(--bg); color: var(--ink); font: 18px/1.5 var(--font); min-height: 100vh; }
h1, h2, h3 { font-family: var(--font-display); line-height: 1.2; margin: .3em 0 .5em; letter-spacing: -.01em; }
h1 { font-size: clamp(1.7rem, 4vw, 2.4rem); font-weight: 900; }
h2 { font-size: 1.35rem; font-weight: 800; display: flex; align-items: center; gap: .4em; flex-wrap: wrap; }
h3 { font-weight: 800; }
a { color: var(--sky-deep); }
input, textarea, select { font: inherit; color: inherit; width: 100%; min-height: 54px; padding: 10px 16px; border: 3px solid var(--line); border-radius: 16px; background: #fff; transition: border-color .15s, box-shadow .15s; }
input:focus, textarea:focus, select:focus { outline: none; border-color: var(--sky); box-shadow: 0 0 0 5px var(--sky-soft); }
label { display: block; font-weight: 700; margin: 10px 0 6px; }
label.check { display: flex; align-items: center; gap: .6em; font-weight: 700; }
label.check input { width: 1.3em; height: 1.3em; min-height: 0; accent-color: var(--sky); }
code { background: var(--sky-soft); padding: .1em .45em; border-radius: 8px; font-size: .9em; }
hr { border: 0; border-top: 3px dotted var(--line); margin: 1.2em 0; }
.loading { text-align: center; margin-top: 30vh; color: var(--muted); font-weight: 700; }
.muted { color: var(--muted); } .small { font-size: .88rem; }
.row { display: flex; align-items: center; gap: .6em; } .row.wrap { flex-wrap: wrap; } .row.between { justify-content: space-between; } .row.end { justify-content: flex-end; margin-top: 1em; }
.two { display: grid; grid-template-columns: minmax(0, 1fr) minmax(0, 1fr); gap: .8em; }
.two input, .two select { min-width: 0; padding-left: 12px; padding-right: 10px; }
.push { margin-left: auto; }
.card { background: var(--paper); border-radius: var(--radius); box-shadow: var(--shadow); padding: 22px; border: 3px solid #fff; }
.note { background: var(--sun-soft); border-radius: 18px; padding: 14px 18px; border: 3px solid var(--sun-line); margin: 1em 0; font-weight: 600; }
.note.err { background: var(--red-soft); border-color: #f6c1bd; }
.empty { text-align: center; color: var(--muted); padding: 2em; display: flex; flex-direction: column; align-items: center; gap: .5em; font-weight: 600; }

/* ---------- skena: qielli, retë dhe kodrat (hyrja, fëmija, prindi) ---------- */
body[data-role="guest"], body[data-role="student"], body[data-role="parent"] {
  background:
    url("bg-flowers.svg") left 20px bottom 6px / 420px 56px repeat-x,
    url("bg-hills.svg") center bottom / 100% 170px no-repeat,
    url("bg-clouds.svg") left -40px top 64px / 720px 240px repeat-x,
    linear-gradient(180deg, var(--sky-top) 0, var(--sky-mid) 380px, var(--sky-low) 100%) var(--sky-low);
}
body[data-role="guest"] main, body[data-role="student"] main, body[data-role="parent"] main { padding-bottom: 190px !important; }

/* ---------- butonat ---------- */
.btn { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 54px; padding: 10px 24px; border: 3px solid var(--line); border-radius: 18px;
  background: #fff; color: var(--ink); font: inherit; font-family: var(--font-display); font-weight: 800; cursor: pointer; text-decoration: none; box-shadow: 0 4px 0 var(--line); transition: transform .08s, box-shadow .08s, filter .15s; }
.btn:hover { filter: brightness(1.03); }
.btn:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
.btn.primary { background: var(--sky); border-color: var(--sky); color: #fff; box-shadow: 0 4px 0 var(--sky-deep); }
.btn.primary:active { box-shadow: 0 1px 0 var(--sky-deep); }
.btn.soft { background: var(--sun-soft); border-color: var(--sun-line); color: var(--ink); box-shadow: 0 4px 0 var(--sun-line); }
.btn.ghost { background: #fff; }
.btn.danger { background: #fff; color: var(--red); border-color: #f6c1bd; box-shadow: 0 4px 0 #f6c1bd; }
.btn.small { min-height: 42px; padding: 6px 14px; font-size: .9rem; border-radius: 14px; }
.btn.block { width: 100%; margin-top: 14px; }
.big-btn { min-height: 66px; font-size: 1.3rem; border-radius: 22px; }
.icon-btn { border: 0; background: var(--bg); width: 44px; height: 44px; border-radius: 50%; font-size: 1.7rem; line-height: 1; cursor: pointer; color: var(--muted); display: grid; place-items: center; }
.icon-btn:hover { background: var(--line); }
.link { background: none; border: 0; color: var(--sky-deep); font: inherit; font-weight: 700; text-decoration: underline; text-underline-offset: 3px; cursor: pointer; padding: 10px 0; }
.back { display: inline-flex; align-items: center; gap: 6px; min-height: 50px; padding: 0 20px 0 12px; border-radius: 999px; background: #fff; box-shadow: 0 4px 0 var(--line); border: 3px solid var(--line);
  text-decoration: none; font-family: var(--font-display); font-weight: 800; color: var(--ink); margin: 8px 0 14px; }
.back:active { transform: translateY(3px); box-shadow: 0 1px 0 var(--line); }
:focus-visible { outline: 4px solid var(--sky); outline-offset: 3px; }
body[data-role="student"] .btn.primary { background: var(--leaf); border-color: var(--leaf); box-shadow: 0 5px 0 var(--leaf-deep); }
body[data-role="student"] .btn.primary:active { box-shadow: 0 1px 0 var(--leaf-deep); }

/* ---------- koka ---------- */
.top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: calc(100% - 24px); max-width: 1000px; margin: 10px auto 0; padding: 8px 10px 8px 16px;
  position: sticky; top: 10px; z-index: 5; background: rgba(255, 255, 255, .9); border-radius: 999px; box-shadow: 0 4px 0 rgba(34, 48, 74, .06), 0 8px 24px rgba(34, 48, 74, .08);
  -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
.brand { display: flex; align-items: center; gap: 8px; text-decoration: none; font-family: var(--font-display); font-weight: 900; font-size: 1.35rem; color: var(--sky-deep); letter-spacing: -.01em; }
.brand b { color: var(--orange); }
.brand svg { animation: spin 24s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.top-right { display: flex; align-items: center; gap: .5em; }
.lang { display: flex; background: var(--bg); border-radius: 999px; padding: 4px; }
.lang button { border: 0; background: none; font: inherit; font-family: var(--font-display); font-weight: 800; font-size: .85rem; padding: 6px 12px; border-radius: 999px; cursor: pointer; color: var(--muted); }
.lang button.on { background: var(--sky); color: #fff; box-shadow: 0 2px 0 var(--sky-deep); }
.avatar-btn { display: flex; padding: 6px; border-radius: 999px; background: #fff; box-shadow: var(--shadow); }
.top .btn.small { min-height: 40px; box-shadow: 0 3px 0 var(--line); }

/* ---------- faqja hyrëse ---------- */
.landing { max-width: 1000px; margin: 0 auto; padding: 1.8em 16px 3em; }
.hero { display: grid; grid-template-columns: 1.3fr 1fr; gap: 2em; align-items: start; }
.eyebrow { display: inline-block; font-family: var(--font-display); font-weight: 900; color: var(--sun-deep); background: var(--sun-soft); border: 3px solid var(--sun-line);
  text-transform: uppercase; letter-spacing: .06em; font-size: .8rem; margin: 0; padding: .35em .9em; border-radius: 999px; }
.hero h1 { font-size: clamp(2rem, 4.6vw, 3.1rem); margin-top: .4em; }
.lead { font-size: 1.15rem; color: var(--muted); font-weight: 500; }
.features { display: grid; grid-template-columns: 1fr 1fr; gap: .9em; margin: 1.4em 0; }
.feature { display: flex; gap: 12px; align-items: flex-start; padding: 16px; border-radius: 22px; background: var(--sun-soft); border: 3px solid var(--sun-line); box-shadow: 0 4px 0 var(--sun-line); }
.feature:nth-child(2) { background: var(--grape-soft); border-color: var(--grape-line); box-shadow: 0 4px 0 var(--grape-line); }
.feature:nth-child(3) { background: var(--orange-soft); border-color: #ffd0ad; box-shadow: 0 4px 0 #ffd0ad; }
.feature:nth-child(4) { background: var(--berry-soft); border-color: var(--berry-line); box-shadow: 0 4px 0 var(--berry-line); }
.feature > svg { flex: none; width: 52px; height: 52px; padding: 8px; background: #fff; border-radius: 50%; }
.feature b { display: block; font-family: var(--font-display); font-weight: 900; font-size: 1.05rem; } .feature span { font-size: .93rem; color: var(--muted); }
.principles { display: inline-flex; gap: .5em; align-items: center; font-weight: 800; color: var(--leaf-deep); background: var(--leaf-soft); border: 3px solid var(--leaf-line); border-radius: 18px; padding: .6em 1em; }
.auth { position: relative; overflow: hidden; padding-top: 30px; }
.auth::before { content: ""; position: absolute; inset: 0 0 auto; height: 10px; background: linear-gradient(90deg, var(--sun), var(--orange), var(--berry), var(--grape), var(--sky), var(--leaf)); }
.auth h2 { margin-top: 0; font-size: 1.6rem; }
.journal-preview { margin: 3em 0 2em; }
.preview { display: grid; grid-template-columns: 1fr 1fr; gap: 2em; }
.preview .jpage:first-child { transform: rotate(-1.5deg); } .preview .jpage:last-child { transform: rotate(1.2deg); }
.ph { font-size: 1.4rem; }
.foot { border-top: 3px dotted rgba(34, 48, 74, .15); padding-top: 1em; color: var(--muted); font-size: .92rem; }
.foot summary { cursor: pointer; font-weight: 800; }

/* ---------- faqet e ditarit (fletorja) ---------- */
.jpage { --tape: rgba(255, 197, 49, .8); --tape2: rgba(255, 220, 115, .8); --hole: #dce9f8;
  background: #fff; border-radius: 26px; padding: 30px 24px 26px 58px; position: relative; border: 3px solid #fff; box-shadow: 0 6px 0 rgba(34, 48, 74, .08), 0 14px 30px rgba(34, 48, 74, .08); }
.jpage::before { content: ""; position: absolute; left: 18px; top: 26px; bottom: 26px; width: 18px;
  background: radial-gradient(circle at 9px 9px, var(--hole) 6px, transparent 7px) 0 0 / 18px 36px repeat-y; }
.jpage::after { content: ""; position: absolute; top: -14px; left: 50%; width: 130px; height: 30px; transform: translateX(-50%) rotate(-3deg); border-radius: 4px;
  background: repeating-linear-gradient(45deg, var(--tape) 0 10px, var(--tape2) 10px 20px); }
.jpage.afternoon { --tape: rgba(138, 107, 255, .55); --tape2: rgba(178, 160, 255, .55); }
.jpage.week { --tape: rgba(255, 95, 146, .55); --tape2: rgba(255, 150, 185, .55); }
.jpage.big { padding: 2em clamp(1em, 3vw, 2em) 1.8em clamp(3.4em, 6vw, 4.2em); }
.jhead { display: flex; align-items: center; gap: .8em; margin-bottom: .5em; font-family: var(--font-display); font-weight: 900; color: var(--muted); }
.jhead > span { display: inline-block; } .jhead > span::first-letter { text-transform: uppercase; }
.jhead > svg { flex: none; padding: 8px; border-radius: 50%; background: var(--sun-soft); box-sizing: content-box; }
.afternoon .jhead > svg { background: var(--grape-soft); } .week .jhead > svg { background: var(--berry-soft); }
.datebox { display: flex; gap: 1.2em; flex-wrap: wrap; font-size: .95rem; margin-top: .2em; color: var(--ink); font-family: var(--font); font-weight: 500; }
.prompt { font-size: clamp(1.45rem, 3.6vw, 1.95rem); margin: .5em 0 .6em; font-weight: 900; }
.pline { display: flex; align-items: center; gap: .6em; border-bottom: 3px dotted var(--line); height: 2.6em; }
.pline.long { height: 2.3em; }
.num { width: 44px; height: 44px; border-radius: 50%; background: var(--sun); color: var(--ink); font-family: var(--font-display); font-weight: 900; font-size: 1.15rem;
  display: inline-grid; place-items: center; flex: none; box-shadow: 0 3px 0 var(--sun-shadow); }
.grat-row:nth-child(3) .num, .pline:nth-of-type(3) .num { background: var(--orange); color: #fff; box-shadow: 0 3px 0 #db6a1f; }
.grat-row:nth-child(4) .num, .pline:nth-of-type(4) .num { background: var(--berry); color: #fff; box-shadow: 0 3px 0 var(--berry-deep); }
.afternoon .num { background: var(--grape); color: #fff; box-shadow: 0 3px 0 var(--grape-deep); }
.faces { display: flex; gap: clamp(.6em, 3vw, 1.4em); justify-content: center; margin: .8em 0 .2em; flex-wrap: wrap; }
.faces.static { justify-content: flex-start; }
.face { display: flex; flex-direction: column; align-items: center; gap: 6px; border: 3px solid var(--line); background: #fff; border-radius: 24px; padding: 12px 12px 10px; min-width: 110px;
  cursor: pointer; transition: transform .15s; box-shadow: 0 4px 0 var(--line); font: inherit; color: var(--ink); }
.face:hover { transform: translateY(-3px); }
.face.on { border-color: var(--grape); transform: scale(1.06); background: var(--grape-soft); box-shadow: 0 4px 0 var(--grape-line); }
.face-label { font-family: var(--font-display); font-weight: 800; font-size: .9rem; line-height: 1.2; text-align: center; max-width: 9em; }
.tip { display: flex; gap: 12px; align-items: flex-start; background: var(--sky-soft); border: 3px solid var(--sky-line); border-radius: 20px; padding: 12px 16px; margin: 4px 0 18px; font-size: .97rem; position: relative; }
.tip > svg { flex: none; background: #fff; border-radius: 50%; padding: 4px; box-sizing: content-box; }
.tip b { font-family: var(--font-display); }
.grat-table { display: grid; gap: .8em; }
.grat-head, .grat-row { display: grid; grid-template-columns: 2.6em 1fr auto; gap: .8em; align-items: center; }
.grat-head { font-size: .8rem; font-weight: 900; color: var(--muted); text-transform: uppercase; letter-spacing: .05em; }
.kid-input { font-size: 1.3rem; font-weight: 600; min-height: 62px; border-width: 3px; border-radius: 20px; box-shadow: inset 0 3px 0 rgba(34, 48, 74, .04); background: #fffdf6; }
.morning .kid-input:focus { border-color: var(--sun); box-shadow: 0 0 0 5px var(--sun-soft); }
.afternoon .kid-input:focus { border-color: var(--grape); box-shadow: 0 0 0 5px var(--grape-soft); }
.week .kid-input:focus { border-color: var(--berry); box-shadow: 0 0 0 5px var(--berry-soft); }
textarea.lined { background-color: #fffdf6; background-image: repeating-linear-gradient(transparent 0 2.05em, #dfe7f3 2.05em 2.15em); line-height: 2.15em; padding-top: .1em; resize: vertical; }
.draw-slot .thumb { border: 3px solid var(--line); border-radius: 16px; padding: 0; background: #fff; cursor: pointer; width: 104px; height: 70px; overflow: hidden; box-shadow: 0 3px 0 var(--line); }
.thumb img { width: 100%; height: 100%; object-fit: cover; display: block; }
.proud { margin-top: 22px; text-align: center; background: #faf8ff; box-shadow: none; border: 3px dashed var(--grape-line); }
.proud h3 { margin-bottom: .2em; font-size: 1.3rem; }
.fav-days { display: flex; flex-wrap: wrap; gap: .7em; }
.fav { display: inline-flex; align-items: center; gap: 6px; min-height: 62px; font: inherit; font-family: var(--font-display); font-size: 1.15rem; font-weight: 800; border: 3px solid var(--line); background: #fff; border-radius: 20px; padding: 8px 20px; cursor: pointer; box-shadow: 0 4px 0 var(--line); color: var(--ink); }
.fav.on { border-color: var(--berry); background: var(--berry-soft); box-shadow: 0 4px 0 var(--berry-line); }
.write .row { margin-top: .9em; }
.write .grat-row .row { margin-top: 0; }
.write .big-btn.block { margin-top: 26px; }

/* ---------- fëmija: kreu ---------- */
.kid { max-width: 1000px; margin: 0 auto; padding: 1.2em 16px 3em; }
.kid-hello { display: flex; align-items: center; gap: 16px; margin: .4em 0 1em; }
.kid-hello h1 { margin: 0 0 .1em; }
.wide-main .kid-hello { display: block; } .wide-main .kid-hello h1 { margin: 0; }
.kid-hello p { margin: 0; }
.hello-avatar { position: relative; flex: none; width: 104px; height: 104px; border-radius: 50%; background: #fff; display: grid; place-items: center; border: 4px solid #fff;
  box-shadow: 0 6px 0 rgba(34, 48, 74, .1), 0 12px 24px rgba(34, 48, 74, .1); animation: bob 3.2s ease-in-out infinite; }
.hello-edit { position: absolute; right: -2px; bottom: -2px; width: 34px; height: 34px; border-radius: 50%; background: var(--sun); display: grid; place-items: center; border: 3px solid #fff; }
@keyframes bob { 0%, 100% { transform: translateY(0); } 50% { transform: translateY(-5px); } }
.hello-bubble { position: relative; flex: 1; background: #fff; border-radius: 26px; padding: 16px 20px; box-shadow: var(--shadow); }
.hello-bubble::before { content: ""; position: absolute; left: -12px; top: 38px; border: 12px solid transparent; border-left: 0; border-right-color: #fff; }
.weeks-track { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 10px; }
.wk { width: 30px; height: 30px; border-radius: 50%; display: grid; place-items: center; font-size: .8rem; font-weight: 900; font-family: var(--font-display); background: var(--bg); color: var(--muted); border: 2px solid var(--line); }
.wk.done { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.wk.now { background: var(--sun); border-color: var(--sun-shadow); color: var(--ink); transform: scale(1.15); }
.mail-card { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 22px; background: linear-gradient(135deg, #fff1c7, #ffd9b8); border: 3px solid #ffc98f; color: var(--ink); text-decoration: none;
  font-family: var(--font-display); font-weight: 800; font-size: 1.1rem; margin: 12px 0; box-shadow: 0 5px 0 #ffc98f; animation: wiggle 1.6s ease-in-out infinite; }
.mail-card > svg { background: #fff; border-radius: 50%; padding: 6px; box-sizing: content-box; flex: none; }
@keyframes wiggle { 0%, 100% { transform: rotate(0); } 50% { transform: rotate(-1deg) scale(1.01); } }
.week-strip { display: grid; grid-template-columns: repeat(5, 1fr); gap: .6em; margin: 1em 0; padding: 12px; background: rgba(255, 255, 255, .55); border-radius: 28px; border: 3px solid rgba(255, 255, 255, .9); }
.wday { position: relative; background: #fff; border-radius: 20px; padding: 10px 4px; display: flex; flex-direction: column; align-items: center; gap: 6px; text-decoration: none; color: var(--ink);
  min-height: 100px; border: 3px solid var(--line); box-shadow: 0 4px 0 var(--line); transition: transform .12s; }
a.wday:hover { transform: translateY(-3px); }
.wday.now { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 4px 0 var(--sky-deep); }
.wday.now::before { content: attr(data-today); position: absolute; top: -13px; left: 50%; transform: translateX(-50%); background: var(--sky); color: #fff; font-family: var(--font-display);
  font-size: .72rem; font-weight: 900; padding: 1px 10px; border-radius: 999px; white-space: nowrap; text-transform: uppercase; letter-spacing: .04em; }
.wday.future { opacity: .5; box-shadow: none; border-style: dashed; }
.wd { font-family: var(--font-display); font-weight: 900; font-size: 1.1rem; }
.dots { display: flex; gap: 6px; } .dots i { width: 16px; height: 16px; border-radius: 50%; background: var(--line); display: block; }
.dots i.on.sun { background: var(--sun); box-shadow: 0 2px 0 var(--sun-shadow); } .dots i.on.moon { background: var(--grape); box-shadow: 0 2px 0 var(--grape-deep); }
.wday > svg { width: 24px; height: 24px; }
.sp, .sp18 { display: block; height: 18px; } .wday .sp { height: 24px; }
.parts { display: grid; gap: 1.1em; margin: 1.2em 0; }
.part-card { --c-soft: var(--sun-soft); --c2: #ffe7a3; --c-line: var(--sun-line); --c-deep: var(--sun-deep); --c-shadow: var(--sun-shadow);
  position: relative; display: flex; align-items: center; gap: 18px; padding: 20px 22px; min-height: 132px; border-radius: 28px; text-decoration: none; color: var(--ink);
  background: linear-gradient(135deg, var(--c-soft), var(--c2)); border: 3px solid var(--c-line); box-shadow: 0 6px 0 var(--c-shadow), 0 14px 26px rgba(34, 48, 74, .08); transition: transform .12s, box-shadow .12s; }
.part-card:hover { transform: translateY(-3px); }
.part-card:active { transform: translateY(4px); box-shadow: 0 2px 0 var(--c-shadow); }
.part-card.afternoon { --c-soft: var(--grape-soft); --c2: #ddd3ff; --c-line: var(--grape-line); --c-deep: var(--grape-deep); --c-shadow: #b3a2ff; }
.part-card.week { --c-soft: var(--berry-soft); --c2: #ffd1df; --c-line: var(--berry-line); --c-deep: var(--berry-deep); --c-shadow: #ff9dbb; }
.part-card.done::after { content: "✓"; position: absolute; top: -12px; right: -6px; width: 44px; height: 44px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center;
  font-size: 1.4rem; font-weight: 900; border: 3px solid #fff; box-shadow: 0 3px 0 var(--leaf-deep); transform: rotate(10deg); }
.part-ic { flex: none; width: 88px; height: 88px; border-radius: 50%; background: #fff; display: grid; place-items: center; box-shadow: inset 0 -5px 0 rgba(34, 48, 74, .05); }
.part-txt { display: flex; flex-direction: column; flex: 1; align-items: flex-start; }
.part-txt b { font-family: var(--font-display); font-size: 1.3rem; line-height: 1.25; font-weight: 900; }
.part-label { display: block; font-family: var(--font-display); font-size: .85rem; font-weight: 900; color: var(--c-deep, var(--muted)); text-transform: uppercase; letter-spacing: .05em; }
.part-state { display: inline-flex; align-items: center; gap: .35em; font-family: var(--font-display); font-weight: 800; color: var(--leaf-deep); font-size: .95rem; margin-top: .5em;
  background: #fff; border-radius: 999px; padding: .3em .9em .3em .6em; }
.part-state.go { color: var(--c-deep); }
.part-state.go::after { content: "→"; font-weight: 900; margin-left: .2em; }
.part-card > svg:last-child { flex: none; background: #fff; border-radius: 50%; padding: 4px; box-sizing: content-box; }
.bravo { display: flex; align-items: center; justify-content: center; gap: 10px; font-family: var(--font-display); font-weight: 900; font-size: 1.2rem; color: var(--leaf-deep);
  background: var(--leaf-soft); border: 3px solid var(--leaf-line); border-radius: 22px; padding: 16px 18px; box-shadow: 0 4px 0 var(--leaf-line); }
.bravo svg { animation: bob 1.8s ease-in-out infinite; }
.past { display: grid; gap: .6em; margin: 1em 0; }
.past-day { display: flex; align-items: center; gap: 12px; padding: 14px 18px; border-radius: 20px; background: rgba(255, 255, 255, .85); border: 3px dashed var(--sun-line); color: var(--ink); text-decoration: none; font-weight: 700; }
.past-day > svg { flex: none; }
.progress { margin: 1.2em 0; }
.stars-row { display: flex; align-items: center; justify-content: center; gap: 2em; }
.star-count { flex: none; display: flex; flex-direction: column; align-items: center; text-align: center; min-width: 96px; font-family: var(--font-display); font-weight: 800; }
.stars-row .big { font-family: var(--font-display); font-size: 2.8rem; font-weight: 900; display: block; line-height: 1; color: var(--sun-deep); }
.star-jar { position: relative; display: flex; flex-wrap: wrap; align-content: flex-end; justify-content: center; gap: 2px; flex: 0 1 300px; min-height: 120px; padding: 22px 14px 14px; margin: 12px auto 0;
  border: 3px solid var(--sky-line); border-radius: 18px 18px 30px 30px; background: linear-gradient(180deg, rgba(232, 242, 255, .5), #e8f2ff); }
.star-jar svg { width: 28px; height: 28px; }
.star-jar::before { content: ""; position: absolute; top: -12px; left: 8%; right: 8%; height: 12px; border-radius: 8px 8px 3px 3px; background: var(--orange); box-shadow: 0 2px 0 #db6a1f; }
.journal-btn { background: linear-gradient(135deg, var(--sky), var(--grape)) !important; border-color: transparent !important; color: #fff !important; box-shadow: 0 5px 0 var(--grape-deep) !important; }
.journal-btn svg { background: #fff; border-radius: 50%; padding: 4px; box-sizing: content-box; }
.avatars { display: grid; grid-template-columns: repeat(auto-fill, minmax(120px, 1fr)); gap: 1.1em; }
.avatar { position: relative; aspect-ratio: 1; border: 4px solid #fff; border-radius: 50%; background: #fff; box-shadow: 0 5px 0 rgba(34, 48, 74, .08), 0 10px 20px rgba(34, 48, 74, .08); cursor: pointer; display: grid; place-items: center; transition: transform .15s; }
.avatar:hover { transform: translateY(-4px) rotate(-4deg); }
.avatar.on { border-color: var(--leaf); background: var(--leaf-soft); }
.avatar.on::after { content: "✓"; position: absolute; right: 2px; top: 2px; width: 34px; height: 34px; border-radius: 50%; background: var(--leaf); color: #fff; display: grid; place-items: center; font-weight: 900; border: 3px solid #fff; }

/* ---------- ditari si listë ---------- */
.timeline { display: grid; gap: 1.6em; margin-top: 1em; }
.tl-week-head { display: inline-flex; align-items: center; gap: .3em; font-size: 1.05rem; margin: 20px 0 12px; color: #fff; background: var(--grape); padding: .35em 1.1em; border-radius: 999px; box-shadow: 0 4px 0 var(--grape-deep); }
.tl-day { display: grid; grid-template-columns: 116px 1fr; gap: 1em; margin: .9em 0; }
.tl-date { display: flex; flex-direction: column; align-self: start; background: #fff; border-radius: 18px; padding: 8px 12px; box-shadow: var(--shadow); text-align: center; }
.tl-date b { font-family: var(--font-display); font-weight: 900; }
.tl-date span { color: var(--muted); font-size: .88rem; }
.tl-entries { display: grid; gap: .7em; }
.entry { background: #fffdf2; border-radius: 22px; padding: 14px 18px; border: 3px solid var(--sun-line); box-shadow: 0 4px 0 var(--sun-line); }
.entry.afternoon { background: #faf8ff; border-color: var(--grape-line); box-shadow: 0 4px 0 var(--grape-line); }
.entry.week { background: #fff8fa; border-color: var(--berry-line); box-shadow: 0 4px 0 var(--berry-line); }
.entry-head { display: flex; align-items: center; gap: .5em; margin-bottom: .3em; font-family: var(--font-display); }
.entry-head > svg:first-child { flex: none; background: #fff; border-radius: 50%; padding: 4px; box-sizing: content-box; }
.entry-head .reaction { margin-left: auto; animation: pop .4s; background: #fff; border-radius: 50%; padding: 4px; display: flex; box-shadow: 0 2px 0 var(--line); }
.entry-head .badge { margin-left: auto; color: var(--berry); font-size: 1.8rem; line-height: .5; }
@keyframes pop { from { transform: scale(0); } to { transform: scale(1); } }
.grat-list { margin: 0; padding-left: 1.4em; } .grat-list li { margin: .2em 0; } .grat-list li::marker { color: var(--sun-deep); font-weight: 900; }
.quote { margin: .2em 0; font-size: 1.08rem; }
.mini { display: block; max-width: 240px; width: 100%; border-radius: 14px; border: 3px solid #fff; box-shadow: 0 3px 10px rgba(34, 48, 74, .12); margin: .5em 0; }
.pride-line { display: flex; align-items: center; gap: .5em; }
.react-row { display: flex; gap: .35em; margin-top: .6em; flex-wrap: wrap; }
.react { border: 3px solid var(--line); background: #fff; border-radius: 14px; padding: .3em .45em; cursor: pointer; display: grid; place-items: center; box-shadow: 0 3px 0 var(--line); }
.react.on { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 3px 0 var(--sky-line); }
.feedback-card { display: flex; gap: 14px; align-items: flex-start; background: #fff; border: 3px dashed var(--orange); border-radius: 22px; padding: 16px 18px; margin: 12px 0; position: relative; box-shadow: var(--shadow); }
.feedback-card > svg { flex: none; background: var(--sun-soft); border-radius: 50%; padding: 6px; box-sizing: content-box; }
.feedback-card p { margin: .2em 0 0; font-size: 1.08rem; }
.feedback-card .part-label { color: var(--orange); }

/* ---------- mësuesi, studiuesi, administratori ---------- */
.wide-main { max-width: 1000px; margin: 0 auto; padding: 1.2em 16px 3em; }
.wide-main > section, .wide-main > details { margin: 1.2em 0; }
.grid { display: grid; grid-template-columns: repeat(auto-fill, minmax(260px, 1fr)); gap: 1em; }
.class-card, .kid-card { text-decoration: none; color: var(--ink); transition: transform .12s; }
.class-card { border-top: 8px solid var(--sky); }
.grid .class-card:nth-child(3n+2) { border-top-color: var(--grape); } .grid .class-card:nth-child(3n+3) { border-top-color: var(--orange); }
.class-card:hover, .kid-card:hover { transform: translateY(-3px); }
.class-card h2 { margin: 0; }
.kid-card { display: grid; gap: .5em; }
.kid-card b { font-family: var(--font-display); font-weight: 900; }
.kid-card small { display: block; }
.pill { display: inline-block; font-size: .78rem; font-weight: 900; padding: .25em .7em; border-radius: 99px; background: var(--sky-soft); color: var(--sky-deep); }
.pill.soft { background: var(--bg); color: var(--muted); } .pill.sun { background: var(--sun-soft); color: var(--sun-deep); } .pill.alert { background: #fde2e1; color: #a61e1e; }
.today-row { display: flex; align-items: center; gap: .4em; }
.tday { opacity: .22; filter: grayscale(1); display: flex; } .tday.on { opacity: 1; filter: none; }
.ok-text { color: var(--leaf-deep); font-weight: 800; }
.new-class h2 { margin-top: 0; }
.howto ol { padding-left: 1.3em; } .howto li { margin: .3em 0; } .howto li::marker { color: var(--sky); font-weight: 900; }
.stats { display: flex; flex-wrap: wrap; gap: 1.5em; align-items: flex-end; }
.stat b { display: block; font-family: var(--font-display); font-size: 2.2rem; font-weight: 900; line-height: 1; color: var(--sky-deep); } .stat span { font-size: .85rem; color: var(--muted); font-weight: 600; }
.stat:nth-child(2) b { color: var(--grape-deep); } .stat:nth-child(3) b { color: var(--leaf-deep); } .stat:nth-child(4) b { color: var(--berry-deep); } .stat:nth-child(5) b { color: var(--sun-deep); }
.chart { flex: 1; min-width: 260px; }
.bars { display: flex; align-items: flex-end; gap: 6px; height: 120px; margin-top: .4em; }
.bar-col { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 3px; }
.bar { width: 100%; max-width: 34px; background: linear-gradient(#7ee0a4, var(--leaf)); border-radius: 10px 10px 4px 4px; min-height: 3px; }
.bar-col small { font-size: .7rem; color: var(--muted); font-weight: 700; }
.week-tabs { display: flex; flex-wrap: wrap; gap: .35em; margin: .5em 0 .8em; }
.wtab { width: 2.4em; height: 2.4em; border-radius: 12px; border: 3px solid var(--line); background: #fff; font: inherit; font-weight: 900; cursor: pointer; }
.wtab.has { background: var(--leaf-soft); border-color: var(--leaf-line); }
.wtab.on { border-color: var(--sky); background: var(--sky); color: #fff; }
.wtab.future { opacity: .5; }
.table-wrap { overflow-x: auto; }
table { border-collapse: collapse; width: 100%; font-size: .93rem; }
th, td { text-align: left; padding: 9px 10px; border-bottom: 2px solid var(--line); white-space: nowrap; }
th { font-size: .78rem; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); font-weight: 900; }
tbody tr:hover { background: var(--bg); }
td.numc { font-variant-numeric: tabular-nums; color: var(--muted); }
td.actions { display: flex; gap: .4em; justify-content: flex-end; }
.settings summary { cursor: pointer; font-weight: 800; display: flex; align-items: center; gap: .3em; }

/* ---------- kartat e hyrjes ---------- */
.cards { display: grid; grid-template-columns: repeat(auto-fill, minmax(230px, 1fr)); gap: .8em; }
.login-card { border: 3px dashed #9aa6bd; border-radius: 18px; padding: 14px; background: #fff; break-inside: avoid; }
.login-card.parent { border-color: #f783ac; }
.lc-head { display: flex; align-items: center; gap: .4em; } .lc-head span { margin-left: auto; font-size: .75rem; color: var(--muted); }
.lc-name { font-family: var(--font-display); font-size: 1.35rem; font-weight: 900; margin: .3em 0; }
.login-card dl { display: grid; grid-template-columns: auto 1fr; gap: .2em .7em; margin: 0; }
.login-card dt { color: var(--muted); font-size: .85rem; } .login-card dd { margin: 0; font-family: ui-monospace, Menlo, monospace; font-weight: 700; }
.lc-url { font-size: .75rem; color: var(--muted); word-break: break-all; margin: .5em 0 0; }

/* ---------- dritarja ---------- */
.modal-back { position: fixed; inset: 0; background: rgba(34, 48, 74, .45); display: grid; place-items: center; z-index: 50; padding: 12px; }
.modal { background: #fff; border-radius: 28px; width: min(520px, 100%); max-height: calc(100vh - 24px); overflow: auto; box-shadow: 0 8px 0 rgba(34, 48, 74, .12), 0 24px 60px rgba(0, 0, 0, .25); }
.modal.wide { width: min(860px, 100%); }
.modal-head { display: flex; justify-content: space-between; align-items: center; padding: 1em 1.2em 0; }
.modal-head h2 { margin: 0; }
.modal-body { padding: .5em 1.2em 1.3em; }
.modal.draw { width: min(1320px, 100%); max-height: calc(100dvh - 16px); }
.modal.draw .modal-body { padding: 4px 14px 14px; }
body.drawing { overflow: hidden; }
.draw-layout { display: grid; grid-template-columns: minmax(0, 1fr) 300px; gap: 14px; align-items: start; }
.pad-col { display: flex; flex-direction: column; gap: 10px; min-width: 0; }
.pad-stage { position: relative; width: min(100%, calc((100dvh - 190px) * 1.5)); aspect-ratio: 3 / 2; margin: 0 auto; }
.pad, .pad-overlay { position: absolute; inset: 0; width: 100%; height: 100%; border-radius: 18px; }
.pad { border: 3px solid var(--line); background: #fff; touch-action: none; cursor: crosshair; -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
.pad-overlay { pointer-events: none; opacity: .4; }
.pad-lines { pointer-events: none; }
.draw-actions { display: flex; flex-wrap: wrap; gap: 8px; justify-content: space-between; align-items: center; }
.draw-actions .btn:disabled { opacity: .4; cursor: default; }
.draw-side { display: grid; gap: 12px; align-content: start; max-height: calc(100dvh - 110px); overflow: auto; padding: 2px 2px 8px; }
.tools { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.tool { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 2px; min-height: 68px; border: 3px solid var(--line); border-radius: 16px;
  background: #fff; font: inherit; font-size: .8rem; font-weight: 800; color: var(--ink); cursor: pointer; box-shadow: 0 3px 0 var(--line); }
.tool.on { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 3px 0 var(--sky); }
.swatches { display: grid; grid-template-columns: repeat(6, 1fr); gap: 6px; }
.sw { aspect-ratio: 1; width: 100%; border-radius: 50%; border: 3px solid #fff; box-shadow: 0 0 0 2px var(--line); cursor: pointer; padding: 0; }
.sw.on { box-shadow: 0 0 0 3px var(--sky); transform: scale(1.08); }
.sizes { display: grid; grid-template-columns: repeat(4, 1fr); gap: 6px; }
.size { height: 48px; border-radius: 14px; border: 3px solid var(--line); background: #fff; cursor: pointer; display: grid; place-items: center; }
.size i { border-radius: 50%; display: block; box-shadow: 0 0 0 1px rgba(0,0,0,.15); }
.size.on { border-color: var(--sky); background: var(--sky-soft); }
.emo { font-family: "Apple Color Emoji", "Segoe UI Emoji", "Noto Color Emoji", sans-serif; line-height: 1; }
.stamp-box { display: grid; gap: 8px; }
.stamp-tabs { display: grid; grid-template-columns: repeat(4, 1fr); gap: 4px; }
.stab { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 6px 2px; border: 3px solid var(--line); border-radius: 14px; background: #fff; cursor: pointer; font: inherit; }
.stab .emo { font-size: 1.4rem; } .stab small { font-size: .68rem; font-weight: 800; color: var(--muted); }
.stab.on { border-color: var(--sky); background: var(--sky-soft); }
.stamps { display: grid; grid-template-columns: repeat(5, 1fr); gap: 4px; }
.stampb { font-size: 1.75rem; aspect-ratio: 1; border: 3px solid transparent; border-radius: 14px; background: var(--bg); cursor: pointer; padding: 0; }
.stampb.on { border-color: var(--sky); background: var(--sky-soft); }
.pen-note { margin: 0; }
.pages-box { display: grid; gap: 8px; }
.pages-box p { margin: 0; }
.pages { display: grid; grid-template-columns: repeat(2, 1fr); gap: 8px; }
.pageb { display: grid; gap: 2px; padding: 4px 4px 6px; border: 3px solid var(--line); border-radius: 16px; background: #fff; cursor: pointer; font: inherit; box-shadow: 0 3px 0 var(--line); }
.pageb canvas { width: 100%; height: auto; border-radius: 10px; display: block; }
.pageb small { font-size: .75rem; font-weight: 800; color: var(--ink); }
.pageb.on { border-color: var(--sky); background: var(--sky-soft); box-shadow: 0 3px 0 var(--sky); }
@media (max-width: 980px), (orientation: portrait) {
  .draw-layout { grid-template-columns: 1fr; }
  .pad-stage { width: 100%; }
  .draw-side { max-height: none; overflow: visible; order: -1; }
  .tools { grid-template-columns: repeat(7, 1fr); }
  .pages { grid-template-columns: repeat(5, 1fr); max-height: 300px; overflow-y: auto; }
  .swatches { grid-template-columns: repeat(9, 1fr); }
  .stamp-tabs { grid-template-columns: repeat(7, 1fr); }
  .stamps { grid-template-columns: repeat(9, 1fr); max-height: 136px; overflow-y: auto; }
  .modal.draw { max-height: 100dvh; border-radius: 0; }
  .pen-note, .stamp-box > p { display: none; }
}
@media (max-width: 560px) {
  .tools { grid-template-columns: repeat(4, 1fr); }
  .pages { grid-template-columns: repeat(3, 1fr); }
  .swatches { grid-template-columns: repeat(6, 1fr); }
  .stamp-tabs { grid-template-columns: repeat(4, 1fr); }
  .stamps { grid-template-columns: repeat(6, 1fr); }
}

/* ---------- njoftimet dhe festimi ---------- */
.toast { position: fixed; left: 50%; bottom: 24px; transform: translate(-50%, 30px); opacity: 0; background: var(--ink); color: #fff; padding: .8em 1.3em; border-radius: 18px;
  font-family: var(--font-display); font-weight: 800; z-index: 80; transition: .25s; max-width: calc(100% - 32px); box-shadow: 0 6px 20px rgba(0, 0, 0, .2); }
.toast.show { opacity: 1; transform: translate(-50%, 0); }
.toast.ok { background: var(--leaf-deep); }
.toast.err { background: var(--red); }
.confetti { position: fixed; inset: 0; pointer-events: none; z-index: 90; overflow: hidden; }
.confetti svg { position: absolute; top: -40px; animation: fall 2.2s ease-in forwards; }
@keyframes fall { to { transform: translateY(110vh) rotate(540deg); } }

@media (max-width: 820px) {
  .hero { grid-template-columns: 1fr; }
  .hero .auth { order: -1; }
  .preview { grid-template-columns: 1fr; }
}
@media (max-width: 560px) {
  body { font-size: 16px; }
  .features, .two { grid-template-columns: 1fr; }
  .tl-day { grid-template-columns: 1fr; gap: .4em; }
  .tl-date { flex-direction: row; gap: .5em; justify-self: start; padding: 4px 12px; }
  .grat-head { display: none; }
  .grat-row { grid-template-columns: 2.6em 1fr; }
  .grat-row .draw-slot { grid-column: 2; }
  .brand span { display: none; }
  .top { gap: 6px; padding-left: 10px; }
  .top-right { gap: 6px; }
  .lang button { padding: 6px 8px; font-size: .78rem; }
  .top .btn.small { white-space: nowrap; padding: 6px 10px; }
  .avatar-btn svg { width: 28px; height: 28px; }
  .kid-hello { gap: 10px; align-items: flex-start; }
  .hello-avatar { width: 62px; height: 62px; border-width: 3px; }
  .hello-avatar > svg:first-child { width: 42px; height: 42px; }
  .hello-edit { width: 26px; height: 26px; right: -6px; bottom: -6px; }
  .hello-edit svg { width: 14px; height: 14px; }
  .hello-bubble { padding: 12px 14px; border-radius: 22px; }
  .hello-bubble::before { top: 20px; }
  .kid-hello h1 { font-size: 1.45rem; }
  .kid-hello p { font-size: .92rem; }
  .weeks-track { gap: 4px; }
  .wk { width: 24px; height: 24px; font-size: .7rem; }
  .week-strip { gap: .35em; padding: 8px; }
  .wday { min-height: 84px; border-radius: 16px; }
  .wd { font-size: 1rem; }
  .part-card { padding: 16px; gap: 12px; min-height: 116px; }
  .part-ic { width: 64px; height: 64px; }
  .part-ic svg { width: 44px; height: 44px; }
  .part-txt b { font-size: 1.12rem; }
  .jpage { padding-left: 46px; }
  .jpage::before { left: 12px; }
  .jpage.big { padding-left: 46px; }
  .face { min-width: 0; flex: 1; padding: 10px 6px; }
  .face svg { width: 52px; height: 52px; }
  .stars-row { flex-direction: column; align-items: stretch; }
  .star-count { flex-direction: row; gap: .5em; min-width: 0; justify-content: center; }
}
@media (prefers-reduced-motion: reduce) {
  .confetti { display: none; }
  .mail-card, .brand svg, .hello-avatar, .bravo svg { animation: none; }
  * { transition: none !important; }
}
@media print {
  body { background: #fff !important; }
  body * { visibility: hidden; }
  .print-area, .print-area * { visibility: visible; }
  .print-area { position: absolute; left: 0; top: 0; width: 100%; grid-template-columns: repeat(2, 1fr); }
  .modal-back { position: static; background: none; }
}

/* ---------- fshirja e klasës ---------- */
.class-card { display: flex; flex-direction: column; }
.class-link { display: block; flex: 1; text-decoration: none; color: inherit; }
.class-actions { display: flex; justify-content: flex-end; margin-top: .8em; padding-top: .6em; border-top: 2px dashed var(--line); }
.class-actions .btn.del { color: var(--red); background: transparent; border-color: transparent; box-shadow: none; min-height: 38px; font-size: .85rem; }
.class-actions .btn.del:hover { background: var(--red-soft); border-color: #f6c1bd; }
.del-list { margin: .3em 0 1em; padding-left: 1.3em; } .del-list li { margin: .25em 0; }
.delete-class .row.between { margin-top: 1.2em; }
.btn:disabled { opacity: .45; cursor: not-allowed; }

/* ---------- klasa 1–9: shenjat e nivelit (mësuesja) ---------- */
.pill.level.lower { background: var(--sun-soft); color: var(--sun-deep); }
.pill.level.upper { background: #e6e8ff; color: #3a43a8; }
h1 .pill.level { vertical-align: middle; font-size: .8rem; font-family: var(--font); letter-spacing: 0; }
.class-card .row + .row { margin-top: .4em; }
.level-hint { display: flex; flex-direction: column; gap: 2px; margin: 10px 0 2px; padding: 10px 14px; border-radius: 14px; font-size: .9rem; line-height: 1.4; border: 2px solid var(--sun-line); background: var(--sun-soft); }
.level-hint b { font-family: var(--font-display); }
.level-hint span { color: var(--muted); }
.level-hint[data-level="upper"] { border-color: #c9cdf6; background: #eef0ff; }

/* ---------- klasat 6–9 (arsimi i mesëm i ulët): dizajn më i qetë, si planer personal ---------- */
body[data-level="upper"] {
  --ink: #1e2433; --muted: #5b6378; --line: #e2e5ee; --bg: #f4f5f9;
  --sky: #4f5bd5; --sky-soft: #eceefd; --sky-line: #c9cdf6; --sky-deep: #3a43a8;
  --grape: #7a5af0; --grape-soft: #f1eefe; --grape-line: #d6ccfb; --grape-deep: #5b3fd0;
  --sun: #f2a516; --sun-soft: #fff6e0; --sun-line: #f6d896; --sun-deep: #8a5800; --sun-shadow: #d68f0a;
  --orange: #f07a3a; --berry: #e2557f; --berry-soft: #fdeef3; --berry-line: #f5c3d3; --berry-deep: #b02c57;
  --leaf: #12a189; --leaf-soft: #e1f6f1; --leaf-line: #a5e2d5; --leaf-deep: #0c7766;
  --radius: 18px; --shadow: 0 1px 2px rgba(30, 36, 51, .06), 0 8px 24px rgba(30, 36, 51, .07);
  --font: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  --font-display: system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-size: 17px;
}
body[data-level="upper"][data-role="student"], body[data-level="upper"][data-role="parent"] {
  background:
    radial-gradient(circle at 1px 1px, rgba(58, 67, 168, .13) 1.1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(900px 460px at 100% -8%, rgba(79, 91, 213, .20), transparent 70%),
    radial-gradient(720px 420px at -12% 12%, rgba(18, 161, 137, .14), transparent 70%),
    linear-gradient(180deg, #eef0fa 0, #f6f7fb 420px) #f6f7fb;
}
body[data-level="upper"][data-time="afternoon"][data-role="student"], body[data-level="upper"][data-time="afternoon"][data-role="parent"] {
  background:
    radial-gradient(circle at 1px 1px, rgba(91, 63, 208, .13) 1.1px, transparent 1.6px) 0 0 / 24px 24px,
    radial-gradient(900px 460px at 100% -8%, rgba(122, 90, 240, .20), transparent 70%),
    radial-gradient(720px 420px at -12% 12%, rgba(226, 85, 127, .12), transparent 70%),
    linear-gradient(180deg, #f2effb 0, #f7f6fb 420px) #f7f6fb;
}
body[data-level="upper"] main { padding-bottom: 3em !important; }
body[data-level="upper"] h1 { font-weight: 800; letter-spacing: -.02em; }
body[data-level="upper"] h2, body[data-level="upper"] h3 { font-weight: 700; }
body[data-level="upper"] input, body[data-level="upper"] textarea, body[data-level="upper"] select { border-width: 2px; border-radius: 12px; min-height: 48px; }
body[data-level="upper"] .card { border: 1px solid var(--line); }
body[data-level="upper"] .note { border-width: 2px; border-radius: 14px; }
body[data-level="upper"] .modal { border-radius: 20px; }
/* butonat: të sheshtë, pa efektin «karamele» */
body[data-level="upper"] .btn { border-width: 2px; border-radius: 12px; min-height: 48px; font-weight: 700; box-shadow: 0 1px 2px rgba(30, 36, 51, .08); }
body[data-level="upper"] .btn:active { transform: translateY(1px); box-shadow: none; }
body[data-level="upper"] .btn.primary { background: var(--sky); border-color: var(--sky); box-shadow: 0 1px 2px rgba(58, 67, 168, .3); }
body[data-level="upper"] .btn.soft, body[data-level="upper"] .btn.danger { box-shadow: none; }
body[data-level="upper"] .big-btn { min-height: 56px; font-size: 1.1rem; border-radius: 14px; }
body[data-level="upper"] .journal-btn { background: var(--ink) !important; box-shadow: 0 1px 2px rgba(0, 0, 0, .2) !important; }
body[data-level="upper"] .back { border-width: 2px; border-radius: 12px; box-shadow: none; min-height: 44px; font-weight: 700; }
/* koka */
body[data-level="upper"] .top { border-radius: 16px; box-shadow: var(--shadow); }
body[data-level="upper"] .brand { color: var(--ink); font-weight: 800; }
body[data-level="upper"] .brand b { color: var(--sky); }
body[data-level="upper"] .brand svg { animation: none; }
body[data-level="upper"] .lang button.on { box-shadow: none; }
/* përshëndetja: avatar katror, java si shirit progresi */
body[data-level="upper"] .hello-avatar { width: 76px; height: 76px; border-radius: 22px; border: 2px solid var(--line); animation: none; box-shadow: var(--shadow); }
body[data-level="upper"] .hello-avatar > svg:first-child { width: 48px; height: 48px; }
body[data-level="upper"] .hello-edit { width: 26px; height: 26px; border-width: 2px; right: -6px; bottom: -6px; }
body[data-level="upper"] .hello-edit svg { width: 14px; height: 14px; }
body[data-level="upper"] .hello-bubble { border-radius: 18px; border: 1px solid var(--line); }
body[data-level="upper"] .hello-bubble::before { display: none; }
body[data-level="upper"] .weeks-track { flex-wrap: nowrap; gap: 4px; margin-top: 12px; }
body[data-level="upper"] .wk { flex: 1; width: auto; height: 8px; border: 0; border-radius: 4px; font-size: 0; background: var(--line); transform: none; }
body[data-level="upper"] .wk.done { background: var(--leaf); }
body[data-level="upper"] .wk.now { background: var(--sky); }
body[data-level="upper"] .mail-card { animation: none; background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--sun); border-radius: 14px; box-shadow: var(--shadow); font-size: 1rem; }
/* java dhe pjesët e ditës */
body[data-level="upper"] .week-strip { background: rgba(255, 255, 255, .7); border: 1px solid var(--line); border-radius: 18px; }
body[data-level="upper"] .wday { border-width: 2px; border-radius: 14px; box-shadow: none; min-height: 88px; }
body[data-level="upper"] .wday.now { box-shadow: inset 0 0 0 1px var(--sky); }
body[data-level="upper"] .wday.now::before { font-size: .66rem; }
body[data-level="upper"] .dots i { width: 12px; height: 12px; box-shadow: none !important; }
body[data-level="upper"] .part-card { --c-acc: var(--sun); background: #fff; border: 1px solid var(--line); border-left: 6px solid var(--c-acc); border-radius: 16px; min-height: 104px; box-shadow: var(--shadow); }
body[data-level="upper"] .part-card.afternoon { --c-acc: var(--grape); }
body[data-level="upper"] .part-card.week { --c-acc: var(--berry); }
body[data-level="upper"] .part-card:active { transform: translateY(1px); box-shadow: var(--shadow); }
body[data-level="upper"] .part-ic { width: 64px; height: 64px; border-radius: 16px; background: var(--c-soft); box-shadow: none; }
body[data-level="upper"] .part-ic svg { width: 42px; height: 42px; }
body[data-level="upper"] .part-txt b { font-size: 1.15rem; font-weight: 700; }
body[data-level="upper"] .part-state { background: var(--bg); }
body[data-level="upper"] .part-card > svg:last-child { background: var(--bg); }
body[data-level="upper"] .part-card.done::after { width: 30px; height: 30px; font-size: 1rem; top: -10px; right: 14px; transform: none; border-width: 2px; box-shadow: none; }
body[data-level="upper"] .bravo { border-width: 2px; border-radius: 14px; box-shadow: none; font-size: 1.05rem; }
body[data-level="upper"] .bravo svg { animation: none; }
body[data-level="upper"] .past-day { background: #fff; border: 1px solid var(--line); border-left: 4px solid var(--sun); border-radius: 12px; }
/* progresi: yjet si koleksion i thjeshtë */
body[data-level="upper"] .stars-row .big { color: var(--ink); }
body[data-level="upper"] .star-jar { min-height: 72px; padding: 12px; border: 1px solid var(--line); border-radius: 14px; background: var(--bg); align-content: center; justify-content: flex-start; }
body[data-level="upper"] .star-jar::before { display: none; }
body[data-level="upper"] .star-jar svg { width: 20px; height: 20px; }
body[data-level="upper"] .star-jar:empty { display: none; }
/* faqja e shkrimit: planer me vijë ngjyre në vend të spiraleve dhe shiritit ngjitës */
body[data-level="upper"] .jpage { --acc: var(--sun); padding: 26px 24px 24px 28px; border: 1px solid var(--line); border-left: 6px solid var(--acc); border-radius: 18px; box-shadow: var(--shadow); }
body[data-level="upper"] .jpage.afternoon { --acc: var(--grape); }
body[data-level="upper"] .jpage.week { --acc: var(--berry); }
body[data-level="upper"] .jpage::before, body[data-level="upper"] .jpage::after { display: none; }
body[data-level="upper"] .jpage.big { padding: 2em clamp(1em, 3vw, 2em) 1.8em; }
body[data-level="upper"] .jhead > svg { border-radius: 12px; }
body[data-level="upper"] .prompt { font-size: clamp(1.3rem, 3vw, 1.65rem); font-weight: 800; }
body[data-level="upper"] .num { width: 34px; height: 34px; border-radius: 10px; font-size: .95rem; box-shadow: none !important; }
body[data-level="upper"] .kid-input { font-size: 1.1rem; min-height: 52px; border-width: 2px; border-radius: 12px; background: #fff; box-shadow: none; }
body[data-level="upper"] textarea.lined { background-color: #fff; }
body[data-level="upper"] .tip { border-width: 1px; border-radius: 14px; }
body[data-level="upper"] .face { border-width: 2px; border-radius: 16px; box-shadow: none; min-width: 96px; }
body[data-level="upper"] .face:hover { transform: translateY(-1px); }
body[data-level="upper"] .face.on { transform: none; box-shadow: inset 0 0 0 1px var(--grape); }
body[data-level="upper"] .fav { border-width: 2px; border-radius: 14px; box-shadow: none; min-height: 52px; font-size: 1rem; }
body[data-level="upper"] .draw-slot .thumb { border-width: 2px; border-radius: 12px; box-shadow: none; }
body[data-level="upper"] .proud { border-width: 2px; }
/* ditari si listë */
body[data-level="upper"] .tl-week-head { background: var(--ink); border-radius: 10px; box-shadow: none; font-size: .95rem; }
body[data-level="upper"] .tl-date { border: 1px solid var(--line); border-radius: 12px; box-shadow: none; }
body[data-level="upper"] .entry { background: #fff; border: 1px solid var(--line); border-left: 5px solid var(--sun); border-radius: 14px; box-shadow: none; }
body[data-level="upper"] .entry.afternoon { border-left-color: var(--grape); }
body[data-level="upper"] .entry.week { border-left-color: var(--berry); }
body[data-level="upper"] .feedback-card { border: 1px solid var(--line); border-left: 5px solid var(--orange); border-radius: 14px; }
body[data-level="upper"] .react { border-width: 2px; box-shadow: none; }
body[data-level="upper"] .avatar { border-radius: 24px; border-width: 2px; box-shadow: var(--shadow); }
body[data-level="upper"] .avatar:hover { transform: translateY(-2px); }
@media (max-width: 560px) {
  body[data-level="upper"] { font-size: 16px; }
  body[data-level="upper"] .hello-avatar { width: 56px; height: 56px; border-radius: 16px; }
  body[data-level="upper"] .hello-avatar > svg:first-child { width: 38px; height: 38px; }
  body[data-level="upper"] .jpage, body[data-level="upper"] .jpage.big { padding-left: 20px; }
  body[data-level="upper"] .part-ic { width: 52px; height: 52px; }
  body[data-level="upper"] .part-ic svg { width: 36px; height: 36px; }
  body[data-level="upper"] .face { min-width: 0; }
}
