/* settings.css — Sozlamalar, Xodimlar, Ruxsatlar, Jurnallar (logs), SMS, Qo'ng'iroqlar, Vazifalar, Qidiruv, Profil,
   O'quvchi kabineti (/me/). Modme (20-sozlamalar, 21-xodimlar, 18-sms, 19-jurnallar) ko'rinishi.
   Barcha klasslar prefiksli (st-, jr-, me-) — boshqa sahifalarga ta'sir qilmaydi. app.css klasslari ustiga yoziladi. */

/* =========================================================== Sozlamalar: chap menyu + kontent */
.st-layout { display:grid; grid-template-columns:170px minmax(0,1fr); align-items:stretch; margin-top:-10px;
  box-shadow:var(--shadow-card); min-height:calc(100vh - 210px); }
.st-menu { background:var(--panel); border-right:1px solid var(--line); padding:12px 0; }
.st-menu a { position:relative; display:block; text-align:right; font-size:12.8px; line-height:1.3; padding:9px 18px 9px 10px;
  color:var(--text); border-bottom:1px solid var(--line); }
.st-menu a:last-child { border-bottom:0; }
.st-menu a:hover { color:var(--accent); }
.st-menu a.on { color:var(--accent); }
.st-menu a.on::before { content:""; position:absolute; left:0; top:6px; bottom:6px; width:3px; border-radius:0 3px 3px 0; background:var(--accent); }
.st-menu a.on::after { content:""; position:absolute; right:-1px; top:6px; bottom:6px; width:3px; border-radius:3px 0 0 3px; background:var(--accent); }
.st-menu .st-sep { height:10px; border-bottom:1px solid var(--line); }
.st-body { background:var(--panel); padding:26px 28px 34px; min-width:0; }
.st-body + .st-body { margin-top:0; }
.st-title { font-size:22px; font-weight:500; margin:0 0 22px; line-height:1.3; display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.st-title .count { font-size:12.8px; }
.st-sub { color:var(--muted); font-size:12px; margin:-14px 0 20px; }
.st-h { font-size:16px; font-weight:600; margin:30px 0 14px; display:flex; align-items:center; justify-content:space-between; gap:10px; flex-wrap:wrap; }
.st-h:first-child { margin-top:0; }
.st-divider { border:0; border-top:1px solid var(--line); margin:30px 0 24px; }

/* Forma: 2 ustun, Modme o'lchamlari */
.st-form { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:18px 26px; max-width:900px; }
.st-form .full { grid-column:1/-1; }
.st-form .field label, .st-lbl { display:block; font-size:12px; font-weight:600; margin-bottom:7px; color:var(--text); }
.st-form .req, .st-lbl .req { color:var(--red); }
.st-form .help { color:var(--muted); font-size:11.5px; margin-top:5px; }
.st-form .err { color:var(--red); font-size:12px; margin-top:4px; }
.st-actions { display:flex; gap:10px; align-items:center; margin-top:30px; flex-wrap:wrap; }
@media (max-width:1000px){ .st-layout { grid-template-columns:1fr; } .st-menu { display:flex; overflow-x:auto; padding:0; }
  .st-menu a { border-bottom:0; white-space:nowrap; } .st-form { grid-template-columns:1fr; } }

/* Ikonkali input (soat) */
.st-ico { position:relative; }
.st-ico > .ti { position:absolute; z-index:2; left:11px; top:50%; transform:translateY(-50%); color:var(--text); font-size:15px; pointer-events:none; }
.st-ico > input { padding-left:34px; position:relative; }
.st-ico > input::-webkit-calendar-picker-indicator { position:absolute; inset:0; width:auto; height:auto; opacity:0; cursor:pointer; }

/* iOS uslubidagi switch (yoqilgan — to'q sariq). <label class="st-switch"><input type="checkbox" ...><span></span></label> */
.st-switch { position:relative; display:inline-flex; align-items:center; gap:10px; cursor:pointer; vertical-align:middle; user-select:none; }
.st-switch input { position:absolute; opacity:0; width:1px; height:1px; margin:0; pointer-events:none; }
.st-form .field label.st-switch, label.st-switch { display:inline-flex; margin:0; font-weight:400; }
.st-switch > span { display:inline-block; position:relative; width:36px; height:20px; border-radius:20px; background:var(--bg); border:1px solid var(--input-border);
  flex:none; transition:background .18s, border-color .18s; }
.st-switch > span::after { content:""; position:absolute; top:2px; left:2px; width:14px; height:14px; border-radius:50%; background:#fff;
  box-shadow:0 1px 2px rgba(0,0,0,.35); transition:transform .18s; }
.st-switch input:checked + span { background:var(--accent); border-color:var(--accent); }
.st-switch input:checked + span::after { transform:translateX(16px); }
.st-switch input:focus-visible + span { outline:2px solid color-mix(in srgb,var(--accent) 55%,transparent); outline-offset:2px; }
.st-switch input:disabled + span { opacity:.5; cursor:not-allowed; }
.st-switch.sm > span { width:30px; height:17px; } .st-switch.sm > span::after { width:11px; height:11px; }
.st-switch.sm input:checked + span::after { transform:translateX(13px); }
[data-theme="light"] .st-switch > span { background:#dfe3ea; }
[data-theme="light"] .st-switch input:checked + span { background:var(--accent); }

/* − 30 + stepper */
.st-stepper { display:flex; align-items:stretch; height:35px; }
.st-stepper button { width:36px; flex:none; background:var(--panel2); border:1px solid var(--input-border); color:var(--text); cursor:pointer;
  font-size:16px; display:grid; place-items:center; padding:0; }
.st-stepper button:first-child { border-radius:4px 0 0 4px; border-right:0; }
.st-stepper button:last-child { border-radius:0 4px 4px 0; border-left:0; }
.st-stepper button:hover { color:var(--accent); }
.st-stepper input { flex:1; min-width:0; text-align:center; border-radius:0 !important; -moz-appearance:textfield; }
.st-stepper input::-webkit-outer-spin-button, .st-stepper input::-webkit-inner-spin-button { -webkit-appearance:none; margin:0; }

/* Logotip kvadrati */
.st-logo { position:relative; width:180px; height:180px; display:grid; place-items:center; background:var(--panel2); border:1px solid var(--input-border);
  border-radius:4px; overflow:hidden; cursor:pointer; color:var(--muted); }
.st-logo img { width:100%; height:100%; object-fit:contain; padding:8px; }
.st-logo .ph { display:flex; flex-direction:column; align-items:center; gap:6px; font-size:12px; }
.st-logo .ph .ti { font-size:34px; }
.st-logo .ov { position:absolute; inset:auto 0 0 0; padding:6px; background:rgba(0,0,0,.55); color:#fff; font-size:11.5px; text-align:center;
  opacity:0; transition:opacity .15s; }
.st-logo:hover .ov { opacity:1; }
.st-logo input[type=file] { display:none; }

/* Asosiy rang — 5 doira (tanlangan — halqa) */
.st-colors { display:flex; gap:34px; align-items:center; flex-wrap:wrap; padding:6px 0 2px; }
.st-colors label { position:relative; width:24px; height:24px; border-radius:50%; background:var(--c); cursor:pointer; border:2px solid var(--c);
  transition:transform .12s; }
.st-colors label:hover { transform:scale(1.12); }
.st-colors input { position:absolute; opacity:0; pointer-events:none; }
.st-colors label:has(input:checked) { background:transparent; }
.st-colors .custom { background:conic-gradient(#f44336,#ff9800,#ffeb3b,#4caf50,#2196f3,#9c27b0,#f44336); border-color:var(--input-border); }
.st-colors .custom input[type=color] { position:absolute; inset:0; opacity:0; width:100%; height:100%; cursor:pointer; pointer-events:auto; }

/* Fayl tanlash (ko'k tugma) */
.st-file { display:flex; align-items:center; gap:12px; flex-wrap:wrap; }
.st-file input[type=file] { display:none; }
.st-file .btn-blue { border-radius:3px; padding:7px 18px; font-size:12px; font-weight:600; cursor:pointer; }
.st-file .fname { font-size:12px; color:var(--muted); }

/* Filiallar jadvali */
.st-branch-form { display:flex; gap:8px; align-items:center; }
.st-branch-form input { height:32px; min-width:140px; }

/* Integratsiyalar */
.st-int { border-top:1px solid var(--line); padding:22px 0 4px; }
.st-int:first-of-type { border-top:0; padding-top:4px; }
.st-int-head { display:flex; gap:14px; align-items:flex-start; margin-bottom:16px; }
.st-int-head .ic { width:40px; height:40px; border-radius:50%; display:grid; place-items:center; font-size:19px; color:var(--accent);
  border:1px solid color-mix(in srgb,var(--accent) 55%,transparent); flex:none; }
.st-int-head h3 { margin:0; font-size:15px; font-weight:600; }
.st-int-head p { margin:3px 0 0; color:var(--muted); font-size:12px; max-width:720px; }
.st-scope { border:1px solid var(--line); border-radius:4px; padding:12px 16px; margin-top:10px; background:var(--panel2); }
.st-scope summary { cursor:pointer; font-weight:600; }
.st-scope[open] summary { margin-bottom:12px; }
.st-secret { font-size:11.5px; margin-top:5px; display:flex; gap:10px; align-items:center; }
.st-boolrow { display:flex; align-items:center; gap:10px; min-height:35px; }

/* Chek namunasi */
.st-receipt { width:300px; margin:0 auto; background:#fff; color:#111; border-radius:4px; padding:18px 16px;
  font-family:ui-monospace,Consolas,monospace; font-size:12.5px; box-shadow:var(--shadow); }
.st-receipt .ln { display:flex; justify-content:space-between; gap:8px; padding:3px 0; border-bottom:1px dashed #ddd; }
.st-receipt .off { display:none !important; }
.st-receipt .center { text-align:center; }
.st-receipt .logo-box { width:56px; height:56px; border-radius:6px; margin:0 auto 6px; display:grid; place-items:center; background:#f3f3f3;
  font-weight:800; color:var(--accent); overflow:hidden; }
.st-receipt .logo-box img { max-width:56px; max-height:56px; }
.st-inv-grid { display:grid; grid-template-columns:minmax(0,1fr) 340px; gap:30px; align-items:start; }
.st-inv-list { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:4px 26px; }
.st-inv-list label { display:flex; align-items:center; justify-content:space-between; gap:10px; padding:9px 0; border-bottom:1px solid var(--line); cursor:pointer; }
@media (max-width:1100px){ .st-inv-grid { grid-template-columns:1fr; } }

/* Roadmap */
.st-ring { --p:0; --c:var(--accent); width:120px; height:120px; border-radius:50%; display:grid; place-items:center; flex:none;
  background:conic-gradient(var(--c) calc(var(--p) * 1%), var(--panel2) 0); }
.st-ring > div { width:96px; height:96px; border-radius:50%; background:var(--panel); display:grid; place-items:center; text-align:center; }
.st-ring b { font-size:26px; display:block; line-height:1; font-weight:700; }
.st-ring span { font-size:10.5px; color:var(--muted); }
.st-ring.sm { width:46px; height:46px; } .st-ring.sm > div { width:36px; height:36px; } .st-ring.sm b { font-size:13px; }
.st-ring.c-green { --c:var(--green); } .st-ring.c-yellow { --c:var(--yellow); } .st-ring.c-red { --c:var(--red); } .st-ring.c-accent { --c:var(--accent); }
.st-rm-top { display:flex; gap:26px; align-items:center; flex-wrap:wrap; padding-bottom:22px; border-bottom:1px solid var(--line); margin-bottom:6px; }
.st-rm-secs { display:grid; grid-template-columns:repeat(auto-fill,minmax(160px,1fr)); gap:10px; flex:1; }
.st-rm-secs a { display:flex; gap:10px; align-items:center; padding:8px 10px; border-radius:4px; background:var(--panel2); }
.st-rm-secs a:hover { box-shadow:inset 0 0 0 1px var(--accent); }
.st-rm-grid { display:grid; grid-template-columns:repeat(2,minmax(0,1fr)); gap:10px 30px; }
.st-rm-sec { padding:20px 0 6px; }
.st-rm-sec h3 { display:flex; align-items:center; justify-content:space-between; gap:10px; font-size:15px; margin:0 0 10px; }
.st-rm-item { display:flex; gap:12px; align-items:center; justify-content:space-between; padding:9px 0; border-bottom:1px solid var(--line); cursor:pointer; line-height:1.4; }
.st-rm-item:last-child { border-bottom:0; }
@media (max-width:1100px){ .st-rm-grid { grid-template-columns:1fr; } }

/* Ruxsatlar matritsasi */
.st-perm { width:100%; }
.st-perm th.role, .st-perm td.cb { text-align:center; min-width:104px; }
.st-perm th.role .r-name { display:block; white-space:normal; }
.st-perm th.role .r-meta { display:flex; flex-direction:column; align-items:center; gap:5px; margin-top:6px; font-weight:400; }
.st-perm td.cb.diff { box-shadow:inset 0 0 0 1px color-mix(in srgb,var(--yellow) 60%,transparent), var(--shadow-row); }
.st-perm tr.grp td { background:transparent; box-shadow:none; height:auto; padding:18px 10px 4px; font-weight:700; font-size:11.5px;
  text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.st-perm tbody td { height:46px; }
.st-perm td.lbl .code { font-family:ui-monospace,monospace; font-size:10.5px; color:var(--muted); }
.st-perm tr.money td.lbl { box-shadow:inset 3px 0 0 var(--green), var(--shadow-row); }
.st-perm thead th { vertical-align:top; }

/* Sozlamalar markazi (hub) */
.st-tiles { display:grid; grid-template-columns:repeat(auto-fill,minmax(210px,1fr)); gap:14px; margin-bottom:26px; }
.st-tile { display:flex; gap:14px; align-items:center; padding:16px 18px; background:var(--panel2); border-left:4px solid var(--c,var(--blue)); border-radius:2px; }
.st-tile .ic { font-size:30px; color:var(--c,var(--blue)); margin-left:auto; }
.st-tile .v { font-size:22px; font-weight:600; line-height:1.2; }
.st-tile .v small { font-size:13px; color:var(--muted); font-weight:500; }
.st-tile .k { font-size:12px; color:var(--muted); }
.st-cards { display:grid; grid-template-columns:repeat(auto-fill,minmax(270px,1fr)); gap:12px; }
.st-cardlink { display:flex; gap:14px; align-items:flex-start; padding:16px; background:var(--panel2); border-radius:4px; box-shadow:var(--shadow-row); }
.st-cardlink:hover { box-shadow:inset 0 0 0 1px var(--accent); }
.st-cardlink .ic { width:38px; height:38px; border-radius:50%; display:grid; place-items:center; font-size:18px; color:var(--accent);
  border:1px solid color-mix(in srgb,var(--accent) 55%,transparent); flex:none; }
.st-cardlink h3 { margin:0 0 3px; font-size:13.5px; font-weight:600; }
.st-cardlink p { margin:0; color:var(--muted); font-size:12px; line-height:1.4; }

/* =========================================================== Xodimlar (21) */
.st-staff-head { display:flex; align-items:center; justify-content:space-between; gap:12px; flex-wrap:wrap; margin-bottom:6px; }
.st-staff-head h1 { padding-bottom:0; }
.st-staff-head .actions { display:flex; gap:10px; align-items:center; }
.st-staff-filters { display:flex; gap:8px; align-items:center; flex-wrap:wrap; margin:6px 0 4px; }
.st-staff-filters input, .st-staff-filters select { height:28px; width:auto; min-width:150px; font-size:12px; padding:0 12px; }
.st-staff-filters select { padding-right:28px; }
.st-ico-act { display:inline-flex; gap:6px; align-items:center; justify-content:flex-end; }
.st-ico-act form { display:inline; margin:0; }
.st-ico-act a, .st-ico-act button { width:28px; height:28px; display:inline-grid; place-items:center; border-radius:50%; background:none; border:0;
  color:var(--text); font-size:18px; cursor:pointer; padding:0; }
.st-ico-act a:hover, .st-ico-act button:hover { color:var(--accent); background:color-mix(in srgb,var(--accent) 12%,transparent); }
.st-ico-act .del:hover { color:var(--red); background:color-mix(in srgb,var(--red) 12%,transparent); }
.st-ico-act .ok:hover { color:var(--green); background:color-mix(in srgb,var(--green) 12%,transparent); }
.st-staff td.id { color:var(--text); width:110px; }
.st-staff .t-name { font-size:12.8px; font-weight:400; }

/* Xodim drawer formasi */
.st-perm-mode { display:flex; gap:18px; flex-wrap:wrap; margin:8px 0 10px; }
.st-perm-mode label { display:flex; gap:8px; align-items:center; cursor:pointer; font-size:12.8px; }
.st-perm-groups { display:grid; grid-template-columns:1fr; gap:10px; }
.st-perm-groups .pg { background:var(--panel2); border-radius:4px; padding:10px 12px; }
.st-perm-groups .pg h4 { margin:0 0 8px; font-size:11px; text-transform:uppercase; letter-spacing:.04em; color:var(--muted); }
.st-perm-groups .st-switch { display:flex; justify-content:space-between; padding:4px 0; font-size:12.5px; }
.st-perm-sum h4 { margin:12px 0 5px; font-size:11px; color:var(--muted); text-transform:uppercase; letter-spacing:.04em; }
.st-perm-sum .badge { margin:0 4px 4px 0; }
dialog.modal.drawer .st-drawer-sec { border-top:1px solid var(--line); margin-top:22px; padding-top:18px; }
dialog.modal.drawer .st-drawer-sec h3 { font-size:14px; margin:0 0 6px; }
dialog.modal.drawer select[multiple] { min-height:84px; }

/* =========================================================== Jurnallar (19), SMS (18), Qo'ng'iroqlar */
.jr-grid { display:grid; grid-template-columns:minmax(0,2fr) minmax(260px,1fr); gap:20px; align-items:start; }
@media (max-width:1100px){ .jr-grid { grid-template-columns:1fr; } }
.jr-card { background:var(--panel); box-shadow:var(--shadow-card); border-radius:2px; padding:24px 28px 18px; }
.jr-card-title { font-size:21px; font-weight:500; margin:0 0 16px; display:flex; align-items:center; justify-content:space-between; gap:10px; }
.jr-card-title.big { font-size:28px; margin-bottom:20px; }
.jr-card-title .count { font-size:12.8px; }
.jr-list { list-style:none; margin:0; padding:0; }
.jr-row { display:grid; grid-template-columns:14px minmax(0,1.25fr) minmax(0,1fr) auto; gap:14px; align-items:center; padding:8px 0;
  border-bottom:1px solid var(--line); min-height:50px; }
.jr-row:last-child { border-bottom:0; }
.jr-dot { width:11px; height:11px; border-radius:50%; border:2px solid var(--accent); flex:none; }
.jr-dot.red { border-color:var(--red); } .jr-dot.green { border-color:var(--green); } .jr-dot.blue { border-color:var(--blue); }
.jr-main { min-width:0; }
.jr-main .tag { margin-bottom:3px; font-weight:600; }
.jr-text { font-size:12.8px; line-height:1.4; overflow-wrap:anywhere; }
.jr-text .muted { font-size:11px; }
.jr-who { color:var(--accent); font-size:11.5px; display:flex; align-items:center; gap:6px; min-width:0; }
.jr-who .ti { color:var(--muted); font-size:14px; flex:none; }
.jr-who span { overflow:hidden; text-overflow:ellipsis; white-space:nowrap; }
.jr-time { font-size:12.5px; color:var(--text); text-align:right; white-space:nowrap; }
.jr-time small { display:block; font-size:12px; }
.jr-side-title { font-size:21px; font-weight:500; margin:-8px 0 8px; }
.jr-side { background:var(--panel); box-shadow:var(--shadow-card); border-radius:2px; padding:14px 16px; }
.jr-side + .jr-side-title { margin-top:22px; }
.jr-chips { display:flex; flex-wrap:wrap; gap:8px; }
.jr-chip { display:inline-flex; align-items:center; gap:5px; background:var(--panel2); color:var(--text); border:1px solid transparent; border-radius:2px;
  padding:4px 14px; font-size:11.5px; line-height:1.4; white-space:nowrap; }
.jr-chip:hover { color:var(--accent); }
.jr-chip.on { color:var(--accent); border-color:color-mix(in srgb,var(--accent) 60%,transparent); }
.jr-side form { display:grid; gap:10px; }
.jr-side form input, .jr-side form select { height:32px; }
.jr-side .two { display:grid; grid-template-columns:1fr 1fr; gap:8px; }
.jr-side .btns { display:flex; gap:8px; }
.jr-empty { text-align:center; color:var(--muted); padding:40px 10px; }

/* SMS qatori: dot · teg · matn · badge'lar · sana */
.jr-sms { grid-template-columns:14px minmax(0,1fr) 78px 132px 80px; gap:12px; min-height:48px; }
.jr-sms > .jr-badge, .jr-call > .jr-badge { justify-self:end; }
.jr-sms .jr-main { display:flex; align-items:baseline; gap:10px; }
.jr-sms .jr-main .tag { flex:none; margin:0; }
.jr-badge { display:inline-block; padding:2px 8px; border-radius:3px; font-size:10.5px; font-weight:700; color:#fff; background:var(--accent); white-space:nowrap; }
.jr-badge.red { background:#b4323c; } .jr-badge.green { background:#2e8b47; } .jr-badge.yellow { background:#b88a0b; } .jr-badge.blue { background:#1b74c5; }
.jr-filters { display:flex; gap:8px; flex-wrap:wrap; align-items:center; margin:-6px 0 14px; }
.jr-filters input, .jr-filters select { height:28px; width:auto; min-width:170px; font-size:12px; padding:0 12px; }
.jr-filters select { padding-right:28px; }
.jr-tabs { margin-bottom:22px; }
.jr-tabs button { font-family:inherit; font-size:12.8px; font-weight:600; cursor:pointer; }

/* Qo'ng'iroqlar qatori */
.jr-call { grid-template-columns:14px minmax(0,1.2fr) minmax(0,1fr) 130px 220px 92px; }
.jr-call audio { height:28px; width:210px; }

/* =========================================================== Vazifalar, qidiruv, profil */
.st-task-check { width:26px; height:26px; border-radius:50%; border:2px solid var(--accent); background:none; color:transparent; display:grid;
  place-items:center; cursor:pointer; padding:0; font-size:14px; }
.st-task-check:hover { color:var(--accent); }
.st-task-check.done { background:var(--green); border-color:var(--green); color:#fff; }
.st-tabs .badge { margin-left:4px; }
.st-search-card { padding:20px 24px; }
.st-search-row { display:flex; align-items:center; gap:12px; padding:10px 0; border-bottom:1px solid var(--line); }
.st-search-row:last-child { border-bottom:0; }
.st-search-row .grow { flex:1; min-width:0; }
.st-search-row .grow a { font-size:14px; font-weight:500; }
.st-profile-head { display:flex; align-items:center; gap:18px; margin-bottom:22px; }
.st-profile-head .avatar { width:80px; height:80px; font-size:30px; border-radius:50%; }
.st-profile-head h1 { padding:0; }
.st-profile-meta { display:flex; gap:10px; align-items:center; flex-wrap:wrap; margin-top:6px; }

/* =========================================================== O'quvchi kabineti (/me/) */
.me-wrap { max-width:1180px; margin:0 auto; }
.me-top { position:sticky; top:0; z-index:30; display:flex; align-items:center; gap:14px; height:70px; padding:0 24px; margin:-20px -24px 24px;
  background:var(--panel); border-bottom:1px solid var(--hd-border); box-shadow:var(--shadow-card); }
.me-top .brand { display:flex; align-items:center; gap:12px; font-weight:600; font-size:17px; color:var(--text); }
.me-top .brand img { max-height:46px; max-width:90px; object-fit:contain; }
.me-top .brand .logo-txt { width:40px; height:40px; border-radius:10px; background:var(--accent); color:#fff; display:grid; place-items:center;
  font-weight:800; font-size:15px; }
.me-top .sp { flex:1; }
.me-top .me-coin { display:inline-flex; align-items:center; gap:8px; padding:5px 14px; border:1px solid var(--input-border); border-radius:20px; }
.me-top .theme-btn { width:32px; height:32px; border-radius:50%; background:none; border:1px solid var(--input-border); color:var(--text);
  display:grid; place-items:center; cursor:pointer; font-size:16px; padding:0; }
.me-top .theme-btn:hover { color:var(--accent); border-color:var(--accent); }
.me-top .me-user { display:flex; align-items:center; gap:10px; background:none; border:0; color:var(--text); cursor:pointer; font-family:inherit;
  font-size:13px; font-weight:600; padding:0; }
.me-top .me-user .avatar { width:40px; height:40px; border-radius:50%; }
.me-nav { margin-bottom:22px; }
.me-nav a .ti { margin-right:4px; }
.me-hero { display:flex; align-items:center; justify-content:space-between; gap:16px; flex-wrap:wrap; margin-bottom:20px; }
.me-hero h1 { padding:0; }
.me-hero .muted { margin-top:4px; }
.me-stats { display:grid; grid-template-columns:repeat(auto-fill,minmax(250px,1fr)); gap:16px; margin-bottom:20px; }
.me-stat { display:flex; gap:14px; align-items:flex-start; background:var(--panel2); border-left:4px solid var(--c,var(--blue)); border-radius:2px;
  padding:16px 20px; box-shadow:var(--shadow-row); }
.me-stat .ic { margin-left:auto; font-size:30px; color:var(--c,var(--blue)); }
.me-stat .k { color:var(--muted); font-size:12px; }
.me-stat .v { font-size:22px; font-weight:600; margin-top:2px; line-height:1.25; }
.me-stat.debt { --c:var(--red); }
.me-stat.debt .v { color:var(--red); }
.me-stat.ok { --c:var(--green); }
.me-stat.coins { --c:var(--coin); }
.me-group { background:var(--panel2); border-radius:4px; padding:14px 16px; margin-bottom:10px; box-shadow:var(--shadow-row); }
.me-group .nm { font-size:15px; font-weight:500; }
.me-lesson { display:flex; gap:14px; align-items:center; padding:10px 0; border-bottom:1px solid var(--line); }
.me-lesson:last-child { border-bottom:0; }
.me-lesson .date { width:52px; text-align:center; border-radius:4px; background:var(--panel2); padding:6px 0; flex:none; line-height:1.2; }
.me-lesson .date b { display:block; font-size:18px; font-weight:600; }
.me-lesson.today .date { background:var(--accent); color:#fff; }
.me-pct { font-weight:700; }
.me-pct.good { color:var(--green); } .me-pct.mid { color:var(--yellow); } .me-pct.bad { color:var(--red); }
.me-days { display:flex; flex-wrap:wrap; gap:6px; }
.me-day { width:46px; border-radius:4px; background:var(--panel2); text-align:center; padding:5px 0; font-size:11px; color:var(--muted);
  border:1px solid transparent; }
.me-day b { display:block; font-size:15px; color:var(--text); font-weight:600; }
.me-day.was { border-color:var(--green); background:color-mix(in srgb,var(--green) 14%,var(--panel2)); }
.me-day.was b { color:var(--green); }
.me-day.absent { border-color:var(--red); background:color-mix(in srgb,var(--red) 12%,var(--panel2)); }
.me-day.absent b { color:var(--red); }
.me-day.future { opacity:.55; border:1px dashed var(--input-border); }
.me-legend { display:flex; gap:16px; flex-wrap:wrap; font-size:12px; color:var(--muted); margin-bottom:14px; }
.me-legend i.sq { display:inline-block; width:12px; height:12px; border-radius:3px; vertical-align:-1px; margin-right:5px; background:var(--panel2); border:1px solid var(--input-border); }
.me-legend i.sq.was { border-color:var(--green); background:color-mix(in srgb,var(--green) 30%,var(--panel2)); }
.me-legend i.sq.absent { border-color:var(--red); background:color-mix(in srgb,var(--red) 30%,var(--panel2)); }
.me-legend i.sq.future { border-style:dashed; }
.me-month { display:inline-flex; align-items:center; gap:6px; }
.me-month .lbl { min-width:130px; text-align:center; font-weight:600; }
.me-feed { list-style:none; margin:0; padding:0; }
.me-feed li { display:flex; gap:12px; padding:9px 0; border-bottom:1px solid var(--line); align-items:flex-start; }
.me-feed li:last-child { border-bottom:0; }
.me-feed .amt { font-weight:700; min-width:44px; text-align:right; }
.me-pay { margin-top:12px; }
.me-pay .row { gap:6px; }
.me-pay input { width:140px; height:32px; }
.me-pay .btn { color:#fff; border:0; }
.me-pay .payme { background:#33cccc; } .me-pay .click { background:#0073ff; }
