/* Online Dars — «maktab daftari»: katak qog'oz, siyoh ko'k, marker sariq */
:root {
  --paper: #f7f8fc;
  --grid: #e3e7f3;
  --sheet: #ffffff;
  --ink: #1e2a78;
  --ink-2: #3446c4;
  --ink-soft: #e8ebfb;
  --text: #161b33;
  --muted: #5e6587;
  --line: #dde1f0;
  --marker: #ffd43b;
  --marker-soft: #fff4c2;
  --leaf: #1f9d6b;
  --leaf-soft: #ddf4ea;
  --pen: #e5484d;
  --pen-soft: #fde7e8;
  --on-ink: #ffffff;
  --r-lg: 22px;
  --r-md: 14px;
  --r-sm: 10px;
  --nav-h: 68px;
  --display: "Unbounded", "Golos Text", system-ui, sans-serif;
  --body: "Golos Text", system-ui, -apple-system, "Segoe UI", sans-serif;
  color-scheme: light;
}
:root[data-theme="dark"] {
  --paper: #0e1330; --grid: #182052; --sheet: #161d45; --ink: #8fa0ff; --ink-2: #b4c0ff; --ink-soft: #222b63;
  --text: #eef0ff; --muted: #9aa2cc; --line: #273072; --marker: #ffd43b; --marker-soft: #3b3417;
  --leaf: #3ccf94; --leaf-soft: #12352b; --pen: #ff7377; --pen-soft: #3d1a22; --on-ink: #0e1330;
  color-scheme: dark;
}
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) {
    --paper: #0e1330; --grid: #182052; --sheet: #161d45; --ink: #8fa0ff; --ink-2: #b4c0ff; --ink-soft: #222b63;
    --text: #eef0ff; --muted: #9aa2cc; --line: #273072; --marker: #ffd43b; --marker-soft: #3b3417;
    --leaf: #3ccf94; --leaf-soft: #12352b; --pen: #ff7377; --pen-soft: #3d1a22; --on-ink: #0e1330;
    color-scheme: dark;
  }
}

* { box-sizing: border-box; }
html, body { margin: 0; padding: 0; }
body {
  font-family: var(--body);
  font-size: 15px;
  line-height: 1.5;
  color: var(--text);
  background-color: var(--paper);
  /* katak daftar */
  background-image:
    linear-gradient(var(--grid) 1px, transparent 1px),
    linear-gradient(90deg, var(--grid) 1px, transparent 1px);
  background-size: 22px 22px;
  background-attachment: fixed;
  min-height: 100vh;
  -webkit-font-smoothing: antialiased;
  overscroll-behavior-y: contain;
}
#app { padding: 18px 16px calc(var(--nav-h) + 34px + env(safe-area-inset-bottom)); max-width: 680px; margin: 0 auto; }
.hidden { display: none !important; }
a { color: var(--ink-2); }
:focus-visible { outline: 3px solid var(--marker); outline-offset: 2px; }

/* ---- Tipografiya ---- */
h1, h2, h3 { font-family: var(--display); letter-spacing: -.01em; color: var(--text); }
h1 { font-size: 26px; line-height: 1.15; font-weight: 700; margin: 6px 0 8px; }
h2 { font-size: 17px; font-weight: 600; margin: 26px 0 12px; }
h3 { font-size: 15px; font-weight: 600; margin: 4px 0 10px; }
p { margin: 6px 0; }
.muted { color: var(--muted); font-size: 13px; }
.small { font-size: 12px; }
.num { font-variant-numeric: tabular-nums; }
.title { font-weight: 700; font-size: 16px; line-height: 1.3; }
/* marker bilan chizilgan — faqat muhim raqam/holat uchun */
.mark { background: linear-gradient(transparent 55%, var(--marker) 55%, var(--marker) 92%, transparent 92%); padding: 0 2px; color: inherit; }
:root[data-theme="dark"] .mark { color: var(--text); background: linear-gradient(transparent 55%, rgba(255,212,59,.45) 55%, rgba(255,212,59,.45) 92%, transparent 92%); }
.kicker { display: none; } /* eski belgilar uchun moslik */

/* ---- Joylashuv ---- */
.row { display: flex; align-items: center; gap: 12px; }
.row.between { justify-content: space-between; }
.wrap { flex-wrap: wrap; }
.grow { flex: 1; min-width: 0; }
.grid2 { display: grid; grid-template-columns: 1fr 1fr; gap: 10px; }
.grid3 { display: grid; grid-template-columns: repeat(3, 1fr); gap: 8px; }
.stack > * + * { margin-top: 12px; }

/* ---- Varaq (asosiy yuzalar) ---- */
.card {
  background: var(--sheet); border-radius: var(--r-lg); padding: 16px; border: 1.5px solid var(--line);
}
.card.tap { cursor: pointer; transition: border-color .15s, transform .08s; }
.card.tap:hover { border-color: var(--ink-2); }
.card.tap:active { transform: scale(.99); }
.card.soft { background: var(--ink-soft); border-color: transparent; }
.card.warn { background: var(--marker-soft); border-color: transparent; }
.card.danger { background: var(--pen-soft); border-color: transparent; }
.card.ok { background: var(--leaf-soft); border-color: transparent; }
.card.accent { background: var(--ink); color: var(--on-ink); border-color: transparent; }
.card.accent .muted { color: inherit; opacity: .75; }

.emoji { width: 44px; height: 44px; border-radius: var(--r-md); display: grid; place-items: center; font-size: 22px; background: var(--ink-soft); flex: none; }
.emoji.acc { background: var(--ink-soft); }
.emoji.warn { background: var(--marker); }
.chev { color: var(--muted); font-size: 22px; line-height: 1; }

/* ---- Yuqori qator ---- */
.topbar { display: flex; align-items: center; margin-bottom: 14px; }
.back {
  display: inline-flex; align-items: center; gap: 6px; background: var(--sheet); border: 1.5px solid var(--line);
  border-radius: 999px; padding: 7px 14px 7px 10px; font: 600 14px var(--body); color: var(--text); cursor: pointer; max-width: 100%;
  overflow: hidden; text-overflow: ellipsis; white-space: nowrap;
}
.avatar {
  width: 46px; height: 46px; border-radius: 50%; background: var(--ink); color: var(--on-ink); display: grid; place-items: center;
  font: 700 17px var(--display); flex: none;
}

/* ---- Belgilar ---- */
.pill { display: inline-flex; align-items: center; gap: 4px; padding: 3px 10px; border-radius: 999px; font-size: 12px; font-weight: 700; background: var(--ink-soft); color: var(--ink); white-space: nowrap; text-decoration: none; }
.pill.warn { background: var(--marker); color: #3a2c00; }
.pill.danger { background: var(--pen-soft); color: var(--pen); }
.pill.ok { background: var(--leaf-soft); color: var(--leaf); }
.pill.acc { background: var(--ink); color: var(--on-ink); }
.pill.gray { background: var(--line); color: var(--muted); }

/* ---- Tugmalar ---- */
.btn {
  display: inline-flex; align-items: center; justify-content: center; gap: 8px; width: 100%;
  padding: 14px 18px; border-radius: var(--r-md); border: 0; font: 700 15px var(--body); cursor: pointer;
  background: var(--ink); color: var(--on-ink); text-decoration: none; transition: filter .1s, transform .08s;
}
.btn:active { transform: translateY(1px); filter: brightness(.94); }
.btn:disabled { opacity: .5; cursor: default; }
.btn.secondary { background: var(--sheet); color: var(--text); border: 1.5px solid var(--line); }
.btn.soft { background: var(--ink-soft); color: var(--ink); }
.btn.accent, .btn.marker { background: var(--marker); color: #2a2100; }
.btn.danger { background: var(--pen-soft); color: var(--pen); }
.btn.ok { background: var(--leaf); color: #fff; }
.btn.sm { width: auto; padding: 9px 14px; font-size: 13px; border-radius: var(--r-sm); }
.btn.xs { width: auto; padding: 6px 10px; font-size: 12px; border-radius: 8px; }
.btn.auto { width: auto; }
.btns { display: flex; gap: 8px; flex-wrap: wrap; }
.btns .btn { flex: 1; }

/* ---- Forma ---- */
input, select, textarea {
  width: 100%; padding: 12px 14px; border-radius: var(--r-md); border: 1.5px solid var(--line); background: var(--sheet); color: var(--text); font: 15px var(--body);
}
textarea { min-height: 110px; resize: vertical; line-height: 1.5; }
input:focus, select:focus, textarea:focus { outline: none; border-color: var(--ink-2); box-shadow: 0 0 0 3px var(--ink-soft); }
label.f { display: block; font-size: 13px; color: var(--muted); font-weight: 600; margin: 12px 0 6px; }
.check { display: flex; align-items: center; gap: 10px; font-size: 15px; margin: 12px 0; cursor: pointer; }
.check input { width: 20px; height: 20px; accent-color: var(--ink); }

/* ---- Progress ---- */
.progress { height: 6px; background: var(--ink-soft); border-radius: 999px; overflow: hidden; }
.progress > i { display: block; height: 100%; background: var(--ink); border-radius: 999px; transition: width .4s; }
.card.accent .progress { background: rgba(255,255,255,.2); }
.card.accent .progress > i { background: var(--marker); }

/* ---- Ro'yxat ---- */
.list > .item { display: flex; align-items: center; gap: 12px; padding: 12px 0; border-bottom: 1.5px dashed var(--line); }
.list > .item:first-child { padding-top: 2px; }
.list > .item:last-child { border-bottom: 0; padding-bottom: 2px; }
.list .item .t { font-weight: 600; }

/* ---- Statistika ---- */
.stat { background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 12px 14px; }
.stat .v { font: 700 20px var(--display); letter-spacing: -.02em; }
.stat .l { font-size: 12px; color: var(--muted); margin-top: 2px; line-height: 1.3; }
.stat.big { grid-column: 1 / -1; background: var(--ink); color: var(--on-ink); border-color: transparent; }
.stat.big .v { font-size: 30px; }
.stat.big .l { color: inherit; opacity: .75; }
.bars { display: flex; align-items: flex-end; gap: 8px; height: 130px; padding-top: 10px; }
.bars .b { flex: 1; display: flex; flex-direction: column; align-items: center; justify-content: flex-end; height: 100%; gap: 4px; font-size: 11px; color: var(--muted); }
.bars .b i { display: block; width: 100%; background: var(--ink-soft); border-radius: 6px 6px 2px 2px; min-height: 3px; }
.bars .b.now i { background: var(--ink); }
.bars .b b { font-size: 10px; color: var(--text); font-weight: 600; }

/* ---- Tablar ---- */
.tabs { display: flex; gap: 6px; overflow-x: auto; padding: 2px 0 12px; scrollbar-width: none; }
.tabs::-webkit-scrollbar { display: none; }
.tabs .tab { flex: none; padding: 8px 14px; border-radius: 999px; background: var(--sheet); border: 1.5px solid var(--line); font-size: 13px; font-weight: 600; cursor: pointer; color: var(--text); text-decoration: none; }
.tabs .tab.on { background: var(--ink); color: var(--on-ink); border-color: var(--ink); }

/* ---- Salomlashuv (bosh sahifa) ---- */
.greet { display: flex; align-items: center; gap: 12px; margin-bottom: 18px; }
.greet .hello { font-size: 13px; color: var(--muted); }
.greet .name { font: 700 18px var(--display); line-height: 1.2; }

/* «Davom etish» — sahifaning asosiy elementi */
.continue {
  position: relative; display: block; background: var(--ink); color: var(--on-ink); border-radius: 26px; padding: 18px 18px 16px;
  cursor: pointer; overflow: hidden; text-decoration: none;
}
.continue::after { /* chet bo'ylab daftar hoshiyasi */
  content: ""; position: absolute; top: 0; bottom: 0; left: 34px; width: 2px; background: var(--pen); opacity: .55;
}
.continue > * { position: relative; z-index: 1; padding-left: 30px; }
.continue .ttl, .continue .sub { padding-right: 62px; }
.continue .lbl { font-size: 13px; opacity: .8; }
.continue .ttl { font: 700 21px/1.2 var(--display); margin: 6px 0 4px; }
.continue .sub { font-size: 13px; opacity: .8; }
.continue .play {
  position: absolute; right: 16px; bottom: 16px; width: 52px; height: 52px; border-radius: 50%; background: var(--marker); color: #2a2100;
  display: grid; place-items: center; padding: 0; z-index: 2;
}
.continue .play svg { width: 22px; height: 22px; margin-left: 3px; }
.continue .progress { margin-top: 14px; margin-right: 64px; background: rgba(255,255,255,.18); }
.continue .progress > i { background: var(--marker); }
.continue.empty { background: var(--sheet); color: var(--text); border: 1.5px dashed var(--ink-2); }
.continue.empty::after { background: var(--pen); }

/* Kunlik ko'rsatkichlar — bitta qatorda, kartasiz */
.tally { display: flex; gap: 0; margin: 14px 0 4px; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r-md); }
.tally > div { flex: 1; padding: 10px 12px; }
.tally > div + div { border-left: 1.5px dashed var(--line); }
.tally .v { font: 700 20px var(--display); }
.tally .l { font-size: 12px; color: var(--muted); }

/* ---- Kurs muqovalari (daftar muqovasi) ---- */
.covers { display: grid; gap: 12px; }
.cover {
  position: relative; display: flex; gap: 14px; background: var(--sheet); border: 1.5px solid var(--line); border-radius: 8px 22px 22px 8px;
  padding: 16px 16px 16px 26px; cursor: pointer; text-decoration: none; color: var(--text); transition: border-color .15s;
}
.cover::before { /* muqova orqasi (koreshok) */
  content: ""; position: absolute; left: 0; top: 0; bottom: 0; width: 12px; border-radius: 7px 0 0 7px; background: var(--spine, var(--ink));
}
.cover:hover { border-color: var(--ink-2); }
.cover .em { font-size: 30px; line-height: 1; width: 40px; flex: none; padding-top: 2px; }
.cover .ct { font: 600 16px/1.25 var(--display); }
.cover .cd { font-size: 13px; color: var(--muted); margin-top: 4px; display: -webkit-box; -webkit-line-clamp: 2; -webkit-box-orient: vertical; overflow: hidden; }
.cover .cm { display: flex; align-items: center; gap: 8px; flex-wrap: wrap; margin-top: 10px; font-size: 13px; color: var(--muted); }
.cover .progress { margin-top: 10px; }
.cover.off { opacity: .6; }

/* Kurs sarlavhasi */
.course-head { padding: 4px 0 6px; }
.course-head .em { font-size: 40px; line-height: 1; }
.course-head h1 { font-size: 24px; margin: 10px 0 6px; }
.course-head .desc { color: var(--muted); max-width: 60ch; }
.cta-box { margin-top: 16px; }
.price-line { display: flex; align-items: baseline; gap: 6px; margin-bottom: 10px; }
.price-line b { font: 700 24px var(--display); }

/* ---- Darslar yo'li (ketma-ketlik) ---- */
.path { list-style: none; margin: 0; padding: 0; position: relative; }
.path::before { content: ""; position: absolute; left: 19px; top: 20px; bottom: 20px; width: 2px; background: repeating-linear-gradient(var(--line) 0 6px, transparent 6px 11px); }
.path li { position: relative; display: flex; align-items: center; gap: 14px; padding: 8px 0; cursor: pointer; }
.path .dot {
  width: 40px; height: 40px; border-radius: 50%; flex: none; display: grid; place-items: center; font: 700 14px var(--display);
  background: var(--sheet); border: 2px solid var(--line); color: var(--muted); position: relative; z-index: 1;
}
.path li.done .dot { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.path li.open .dot { border-color: var(--ink); color: var(--ink); }
.path li.now .dot { background: var(--ink); border-color: var(--ink); color: var(--on-ink); box-shadow: 0 0 0 5px var(--ink-soft); }
.path li.locked .dot { background: var(--paper); border-style: dashed; }
.path .lb { flex: 1; min-width: 0; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r-md); padding: 10px 14px; }
.path li:hover .lb { border-color: var(--ink-2); }
.path li.locked .lb { background: transparent; border-style: dashed; }
.path li.locked .lt { color: var(--muted); }
.path .lt { font-weight: 600; line-height: 1.3; }
.path .lm { font-size: 12px; color: var(--muted); margin-top: 2px; display: flex; gap: 8px; flex-wrap: wrap; }
.path .free { color: var(--leaf); font-weight: 700; }

/* ---- Video va matn ---- */
.video-wrap { position: relative; width: 100%; aspect-ratio: 16/9; background: #000; border-radius: var(--r-lg); overflow: hidden; }
.video-wrap video, .video-wrap iframe { position: absolute; inset: 0; width: 100%; height: 100%; border: 0; }
.notes {
  margin-top: 14px; background: var(--sheet); border: 1.5px solid var(--line); border-radius: var(--r-lg); padding: 16px 16px 16px 30px; position: relative;
  background-image: linear-gradient(transparent 26px, var(--grid) 26px); background-size: 100% 27px; background-position: 0 10px;
}
.notes::before { content: ""; position: absolute; left: 18px; top: 0; bottom: 0; width: 2px; background: var(--pen); opacity: .45; }
.body-text { white-space: pre-wrap; line-height: 27px; font-size: 15px; max-width: 70ch; }
.lock { opacity: .55; }
.receipt-img { width: 100%; border-radius: var(--r-md); border: 1.5px solid var(--line); display: block; }

/* To'lov kartasi */
.paycard {
  background: var(--ink); color: var(--on-ink); border-radius: var(--r-lg); padding: 18px; position: relative; overflow: hidden;
}
.paycard .code { font: 600 clamp(15px, 5.2vw, 22px) var(--display); letter-spacing: .04em; margin: 6px 0 2px; white-space: nowrap; }
.no-video { aspect-ratio: 16/9; border: 1.5px dashed var(--line); border-radius: var(--r-lg); display: grid; place-items: center; text-align: center; color: var(--muted); padding: 16px; background: var(--sheet); }
.paycard .muted { color: inherit; opacity: .75; }
.paycard .btn { background: var(--marker); color: #2a2100; margin-top: 12px; }
.plan { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.plan .pm { font: 700 18px var(--display); }
.plan.best { border-color: var(--ink); }

/* ---- Pastki navigatsiya ---- */
.nav {
  position: fixed; left: 12px; right: 12px; bottom: calc(10px + env(safe-area-inset-bottom)); height: var(--nav-h); max-width: 560px; margin: 0 auto;
  background: var(--ink); border-radius: 24px; display: flex; justify-content: space-around; align-items: center; z-index: 20; padding: 0 6px;
  box-shadow: 0 10px 30px rgba(30, 42, 120, .28);
}
:root[data-theme="dark"] .nav { background: var(--sheet); border: 1.5px solid var(--line); box-shadow: none; }
.nav a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 4px; font-size: 11px; color: rgba(255,255,255,.65); text-decoration: none; padding: 8px 0; font-weight: 600; }
:root[data-theme="dark"] .nav a { color: var(--muted); }
.nav a svg { width: 22px; height: 22px; }
.nav a.on { color: var(--marker); }
.nav a .ic { width: 42px; height: 28px; display: grid; place-items: center; border-radius: 12px; }
.nav a.on .ic { background: rgba(255,212,59,.16); }

/* ---- Toast, loading, modal ---- */
.toast { position: fixed; left: 50%; bottom: calc(var(--nav-h) + 26px + env(safe-area-inset-bottom)); transform: translateX(-50%); background: var(--text); color: var(--paper); padding: 11px 16px; border-radius: var(--r-md); font-size: 14px; font-weight: 600; z-index: 50; max-width: 90vw; }
.toast.err { background: var(--pen); color: #fff; }
.loading { display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 12px; min-height: 60vh; color: var(--muted); }
.spinner { width: 34px; height: 34px; border: 3px solid var(--ink-soft); border-top-color: var(--ink); border-radius: 50%; animation: spin .8s linear infinite; }
@keyframes spin { to { transform: rotate(360deg); } }
.modal-bg { position: fixed; inset: 0; background: rgba(14, 19, 48, .5); z-index: 40; display: flex; align-items: flex-end; justify-content: center; animation: fade .15s; }
.modal { background: var(--sheet); width: 100%; max-width: 680px; border-radius: 26px 26px 0 0; padding: 10px 18px calc(20px + env(safe-area-inset-bottom)); max-height: 92vh; overflow: auto; animation: up .2s ease-out; }
.modal::before { content: ""; display: block; width: 40px; height: 4px; border-radius: 4px; background: var(--line); margin: 0 auto 14px; }
@keyframes fade { from { opacity: 0; } }
@keyframes up { from { transform: translateY(30px); opacity: .5; } }
@media (prefers-reduced-motion: reduce) { .modal, .modal-bg, .spinner { animation: none; } }

.table { width: 100%; border-collapse: collapse; font-size: 13px; }
.table th, .table td { text-align: left; padding: 9px 6px; border-bottom: 1.5px dashed var(--line); vertical-align: top; }
.table tr:last-child td { border-bottom: 0; }
.table th { color: var(--muted); font-weight: 600; font-size: 12px; }
.table td.r, .table th.r { text-align: right; }

.hero { padding: 22px 18px; border-radius: 26px; background: var(--sheet); border: 1.5px solid var(--line); }
.dev-login { display: grid; gap: 8px; }
.code { font: 600 18px var(--display); letter-spacing: .06em; }
.upload-bar { margin-top: 10px; }
.admin-head { display: flex; align-items: baseline; justify-content: space-between; gap: 10px; }
.admin-head .who { font-size: 13px; color: var(--muted); }
.empty-note { text-align: center; padding: 22px 16px; color: var(--muted); border: 1.5px dashed var(--line); border-radius: var(--r-lg); background: var(--sheet); }
.empty-note .btn { margin-top: 12px; }

/* ---- Himoya: suv belgisi va nusxa olishga qarshi ---- */
.video-wrap { -webkit-user-select: none; user-select: none; }
.wm {
  position: absolute; z-index: 5; pointer-events: none; font: 600 11px var(--body); letter-spacing: .02em;
  color: rgba(255,255,255,.55); background: rgba(0,0,0,.28); padding: 3px 8px; border-radius: 6px; transition: left 1.2s, top 1.2s;
  text-shadow: 0 1px 2px rgba(0,0,0,.6); white-space: nowrap; max-width: 80%; overflow: hidden; text-overflow: ellipsis;
}
.video-msg { position: absolute; inset: 0; display: grid; place-items: center; color: #fff; padding: 20px; text-align: center; }
.video-err { background: rgba(255,255,255,.08); border: 1px dashed rgba(255,255,255,.3); border-radius: 12px; padding: 16px 18px; font-size: 14px; line-height: 1.5; }
body.protect, body.protect * { -webkit-user-select: none; user-select: none; -webkit-touch-callout: none; }
body.protect input, body.protect textarea { -webkit-user-select: text; user-select: text; }
body.protect .notes { -webkit-user-select: none; user-select: none; }
@media print { body.protect #app { display: none; } }

/* ---- Ustoz: ishga tushirish ro'yxati ---- */
.card.setup { border-color: var(--ink); border-width: 2px; }
.steps { list-style: none; margin: 10px 0 0; padding: 0; }
.steps li { display: flex; align-items: center; gap: 10px; padding: 7px 0; border-bottom: 1.5px dashed var(--line); font-size: 14px; }
.steps li:last-child { border-bottom: 0; }
.steps .tick { width: 22px; height: 22px; border-radius: 50%; border: 2px solid var(--line); display: grid; place-items: center; font-size: 12px; font-weight: 700; flex: none; }
.steps li.done { color: var(--muted); }
.steps li.done .tick { background: var(--leaf); border-color: var(--leaf); color: #fff; }
.steps a { font-weight: 600; text-decoration: none; }

/* ---- Daftar yozuvlari: turli fanlardan qo'lyozma misollar (fon bezagi) ---- */
#board { position: fixed; inset: 0; z-index: 0; pointer-events: none; overflow: hidden; }
#app { position: relative; z-index: 1; }
.note {
  position: absolute; font-family: "Caveat", "Segoe Script", cursive; font-weight: 600; color: var(--ink);
  opacity: .26; white-space: nowrap; line-height: 1.1; transform-origin: left top; user-select: none;
}
.note.red { color: var(--pen); }
.note.u { text-decoration: underline; text-decoration-thickness: 1.5px; text-underline-offset: 3px; }
.note.box { border: 1.5px solid currentColor; border-radius: 4px; padding: 0 6px; }
.note.l { font-size: 30px; }
.note.m { font-size: 24px; }
.note.s { font-size: 19px; }
:root[data-theme="dark"] .note { opacity: .2; }
@media (max-width: 600px) { .note { opacity: .2; } .note.l { font-size: 25px; } .note.m { font-size: 21px; } .note.s { font-size: 17px; } }
@media (prefers-reduced-motion: no-preference) { .note { animation: inkin .9s ease-out both; } }
@keyframes inkin { from { opacity: 0; } }
.chart-empty { position: absolute; inset: 0; display: grid; place-items: center; color: var(--muted); font-size: 13px; }
.bars { position: relative; }

/* ---- Davomat ---- */
.att-grid { display: flex; flex-wrap: wrap; gap: 6px; }
.att { font-size: 12px; font-weight: 700; padding: 4px 8px; border-radius: 8px; font-variant-numeric: tabular-nums; }
.att.yes { background: var(--leaf-soft); color: var(--leaf); }
.att.no { background: var(--pen-soft); color: var(--pen); text-decoration: line-through; }
label.item { display: flex; }
