/* Изи Сотка — новый вид кабинета репетитора (body.kab): воздушный фон, белые карточки 24px, пилюли, узкий рельс из круглых иконок.
   Подключается после app.css и только переопределяет. Ученик и сайт не затронуты. */
body.kab{
  --bg:#f3f6fd; --paper:#ffffff; --ui2:#edf1f8; --line:#e3e8f2; --muted:#5f6b80;
  --accent:#2f5be0; --accent-soft:#e8eefd;
  --r:24px; --r-sm:16px; --card-line:transparent;
  --shadow:0 1px 2px rgba(30,50,110,.04),0 8px 28px rgba(30,50,110,.07);
  --st-live:#16a34a; --st-done:#64748b; --st-planned:#2f5be0; --st-moved:#d97706; --st-canceled:#dc2626;
}
@media (prefers-color-scheme:dark){:root:not([data-theme="light"]) body.kab{
  --bg:#0f131b; --paper:#171c27; --ui2:#1f2633; --line:#2a3242; --muted:#9aa5b8;
  --accent:#8fb0ff; --accent-soft:#1f2a45; --card-line:#252d3c;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 28px rgba(0,0,0,.25);
  --st-live:#4ade80; --st-done:#94a3b8; --st-planned:#8fb0ff; --st-moved:#fbbf24; --st-canceled:#f87171}}
:root[data-theme="dark"] body.kab{
  --bg:#0f131b; --paper:#171c27; --ui2:#1f2633; --line:#2a3242; --muted:#9aa5b8;
  --accent:#8fb0ff; --accent-soft:#1f2a45; --card-line:#252d3c;
  --shadow:0 1px 2px rgba(0,0,0,.3),0 8px 28px rgba(0,0,0,.25);
  --st-live:#4ade80; --st-done:#94a3b8; --st-planned:#8fb0ff; --st-moved:#fbbf24; --st-canceled:#f87171}

/* ---- общие элементы ---- */
body.kab main{max-width:1360px}
body.kab .head h1{font-size:26px}
body.kab .card,body.kab .kpi{border-radius:var(--r);border-color:var(--card-line);box-shadow:var(--shadow)}
body.kab .card{padding:20px}
body.kab .li{border-radius:var(--r-sm);border-color:var(--card-line);box-shadow:var(--shadow)}
body.kab .btn{border-radius:999px;padding:9px 18px;font-weight:600}
body.kab .btn:not(.primary):not(.ok){background:var(--ui2);border-color:transparent}
body.kab .btn:not(.primary):not(.ok):hover{background:color-mix(in srgb,var(--ui2) 70%,var(--line))}
body.kab .btn.sm{border-radius:999px;padding:6px 12px}
body.kab .btn.icon{width:32px;height:32px;padding:0;font-size:17px;line-height:1}
body.kab .inp,body.kab label.f input,body.kab label.f select,body.kab label.f textarea{border-radius:14px}
body.kab .dlg{border-radius:var(--r);border-color:var(--card-line)}
body.kab .banner{border-radius:20px}
body.kab .tbl{border-radius:var(--r-sm)}
body.kab .subtabs,body.kab .seg{border-radius:999px;background:var(--ui2);border:0;padding:4px;gap:2px}
body.kab .subtabs a,body.kab .seg button{border-radius:999px}
body.kab .seg button[aria-pressed="true"]{background:var(--paper);color:var(--fg);box-shadow:0 1px 3px rgba(20,32,55,.12)}
.seg2{display:inline-flex;gap:2px;padding:4px;border-radius:999px;background:var(--ui2);max-width:100%;overflow-x:auto;scrollbar-width:none;align-self:flex-start}
.seg2::-webkit-scrollbar{display:none}
.seg2 button{border:0;background:none;padding:6px 14px;border-radius:999px;font-weight:600;font-size:13.5px;color:var(--muted);white-space:nowrap;transition:background .15s,color .15s}
.seg2 button:hover{color:var(--fg)}
.seg2 button.on{background:var(--paper);color:var(--fg);box-shadow:0 1px 3px rgba(20,32,55,.12)}
/* единое пустое состояние */
body.kab .empty{border:0;border-radius:var(--r);box-shadow:var(--shadow);padding:32px 20px}
.es{display:flex;flex-direction:column;align-items:center;text-align:center;gap:6px;padding:28px 16px;color:var(--muted)}
.es .es-pic{width:120px;height:120px;margin-bottom:4px}
.es .es-pic svg{width:100%;height:100%;display:block}
.es b{color:var(--fg);font-size:16px}
.es span{font-size:13.5px;max-width:36ch}
.es .btn{margin-top:8px}
.es.sm{padding:10px 8px;gap:4px}.es.sm .es-pic{width:84px;height:84px}.es.sm b{font-size:15px}
/* скелетоны */
body.kab .skel i{border-radius:var(--r-sm)}
body.kab .skel .srow i{border-radius:var(--r)}

/* ---- рельс: узкая левая колонка круглых иконок (только компьютер) ---- */
@media (min-width:821px){
  body.kab #app{grid-template-columns:88px minmax(0,1fr)}
  body.kab nav.side{background:var(--bg);border-right:0;padding:16px 6px 12px;align-items:stretch;gap:2px;scrollbar-width:none}
  body.kab nav.side::-webkit-scrollbar{display:none}
  body.kab nav.side .brand{font-size:0;gap:0;padding:0 0 14px;justify-content:center}
  body.kab nav.side .brand svg{width:40px!important;height:40px!important}
  body.kab nav.side .brand .themebtn{display:none}
  body.kab .nav{display:flex;flex-direction:column;gap:2px}
  body.kab .nav a{flex-direction:column;gap:3px;padding:4px 0 6px;border-radius:14px;background:none!important;color:var(--muted);font-size:10.5px;font-weight:600;text-align:center;line-height:1.15}
  body.kab .nav a .nl{display:none}
  body.kab .nav a .ns{display:block;max-width:76px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
  body.kab .nav a svg{width:44px;height:44px;padding:12px;border-radius:50%;background:var(--paper);box-shadow:var(--shadow);transition:background .15s,color .15s,transform .15s;color:var(--fg)}
  body.kab .nav a:hover svg{background:var(--accent-soft);color:var(--accent)}
  body.kab .nav a:hover{color:var(--fg)}
  body.kab .nav a.on{color:var(--accent)}
  body.kab .nav a.on svg{background:var(--accent);color:var(--accent-fg)}
  body.kab .nav a:active svg{transform:scale(.94)}
  body.kab .nav a .badge{position:absolute;top:0;left:calc(50% + 8px);margin:0;min-width:18px;height:18px;font-size:10.5px;padding:0 5px;border:2px solid var(--bg)}
  body.kab .nav-sep{font-size:0;height:1px;background:var(--line);margin:8px 14px}
  body.kab .nav-me{display:none}
  body.kab .side .who{justify-content:center;border-top:0;padding:8px 0;margin-top:auto;background:none}
  body.kab .side .who .ava{width:44px;height:44px;font-size:17px;box-shadow:var(--shadow)}
  body.kab .side .who .who-t,body.kab .side .who .who-dots{display:none}
  body.kab .side .who .badge{left:auto;right:12px}
  body.kab main{padding-top:24px}
}

/* ---- главная: плитки ---- */
.hstats{display:grid;grid-template-columns:repeat(4,minmax(0,1fr));gap:12px;margin-bottom:20px}
.hstat{display:flex;flex-direction:column;gap:2px;background:var(--paper);border-radius:var(--r-sm,16px);box-shadow:var(--shadow);padding:12px 16px;text-decoration:none;color:var(--fg);min-width:0;border:1px solid var(--card-line,transparent)}
a.hstat:hover{box-shadow:0 0 0 2px var(--accent-soft),var(--shadow)}
.hstat span{font-size:12.5px;color:var(--muted);white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hstat b{font-size:20px;font-weight:700;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.hstat.good b{color:var(--ok)}.hstat.bad b{color:var(--bad)}
.dash{display:grid;grid-template-columns:repeat(12,minmax(0,1fr));gap:20px;align-items:start}
.tile{background:var(--paper);border-radius:var(--r,24px);box-shadow:var(--shadow);border:1px solid var(--card-line,transparent);padding:20px;display:flex;flex-direction:column;gap:14px;min-width:0}
.tile-h{display:flex;align-items:center;gap:8px;flex-wrap:wrap;min-height:32px}
.tile-h h2{margin:0;font-size:17px;font-weight:700}
.tile-f{display:flex;align-items:center;gap:12px;flex-wrap:wrap;justify-content:space-between;margin-top:auto}
.klnk{font-weight:600;font-size:13.5px;text-decoration:none;color:var(--accent);white-space:nowrap}
.klnk:hover{text-decoration:underline}
.t-next{grid-column:span 5}.t-week{grid-column:span 7}.t-people{grid-column:span 4}.t-recent{grid-column:span 5}.t-kb{grid-column:span 3}
/* ближайшее занятие */
.nx{display:flex;flex-direction:column;gap:14px;background:var(--accent-soft);border-radius:18px;padding:16px}
.nx-when b{display:block;font-size:13px;color:var(--accent);text-transform:capitalize}
.nx-when span{font-size:28px;font-weight:700;letter-spacing:-.01em}
.nx-who{display:flex;align-items:center;gap:12px;min-width:0}
.nx-who>div:last-child{min-width:0}
.nx-who b{display:block;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.nx-who span{font-size:13px;color:var(--muted)}
.avs{display:flex;flex:none}.avs .ava{width:36px;height:36px;border:2px solid var(--paper)}.avs .ava+.ava{margin-left:-10px}
.nx-act{gap:8px}
.btn.quick{width:100%;justify-content:center;gap:8px;background:none!important;border:1.5px dashed var(--line)!important;color:var(--accent)}
.btn.quick:hover{border-color:var(--accent)!important;background:var(--accent-soft)!important}
.btn.quick svg{width:18px;height:18px;fill:currentColor;stroke:none}
.qlist{display:flex;flex-direction:column;gap:6px;max-height:min(420px,60vh);overflow:auto}
.qpick{display:flex;align-items:center;gap:12px;border:0;background:var(--ui2);border-radius:16px;padding:10px 14px;text-align:left;width:100%}
.qpick:hover{background:var(--accent-soft)}
.qpick>span:nth-child(2){flex:1;min-width:0}.qpick b{display:block}.qpick small{color:var(--muted)}
.qpick i{font-style:normal;color:var(--accent);font-weight:700}
/* неделя */
.wk{display:grid;grid-template-columns:repeat(7,minmax(0,1fr));gap:6px;transition:opacity .15s}
.wk.ld{opacity:.5}
.wk-d{background:var(--ui2);border-radius:16px;padding:8px 6px;display:flex;flex-direction:column;gap:6px;min-height:150px;min-width:0}
.wk-d.today{background:var(--accent-soft);box-shadow:inset 0 0 0 1.5px var(--accent)}
.wk-h{display:flex;flex-direction:column;align-items:center;line-height:1.1}
.wk-h span{font-size:11.5px;color:var(--muted);font-weight:600;text-transform:uppercase}
.wk-h b{font-size:17px}
.wk-d.today .wk-h b{color:var(--accent)}
.wk-ls{display:flex;flex-direction:column;gap:4px;flex:1}
.wk-e{border:0;text-align:left;border-radius:10px;padding:4px 6px;background:var(--paper);font-size:11.5px;line-height:1.25;display:flex;flex-direction:column;border-left:3px solid var(--c,var(--st-planned));min-width:0}
.wk-e b{font-size:12px}.wk-e span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.wk-e:hover{box-shadow:0 0 0 1.5px var(--c,var(--accent))}
.wk-e.st-canceled b,.wk-e.st-canceled span{text-decoration:line-through;opacity:.7}
.wk-add{flex:1;border:1.5px dashed transparent;background:none;border-radius:10px;color:transparent;font-size:18px;min-height:40px}
.wk-d:hover .wk-add,.wk-add:focus-visible{border-color:var(--line);color:var(--muted)}
.wk-l{font-size:13.5px;white-space:nowrap}
.st-live{--c:var(--st-live)}.st-done{--c:var(--st-done)}.st-planned{--c:var(--st-planned)}.st-moved{--c:var(--st-moved)}.st-canceled{--c:var(--st-canceled)}
.pill.st-live{background:color-mix(in srgb,var(--st-live) 16%,transparent);color:var(--st-live)}
.legend{display:flex;gap:12px;flex-wrap:wrap;font-size:12px;color:var(--muted)}
.legend .lg{display:inline-flex;align-items:center;gap:5px}
/* кружок статуса — только в строках плиток: класс .dot без уточнения занят мини-календарём (.md.dot) и пробниками */
.legend i,.hrow>.dot{width:9px;height:9px;border-radius:50%;background:var(--c);flex:none;display:inline-block}
/* списки в плитках */
.kplist{display:flex;flex-direction:column;gap:2px}
.hrow{display:flex;align-items:center;gap:12px;padding:8px 10px;margin:0 -10px;border-radius:14px;text-decoration:none;color:var(--fg);cursor:pointer;min-width:0}
.hrow:hover{background:var(--ui2)}
.hrow>span:nth-child(2){flex:1;min-width:0}
.hrow b{display:block;font-weight:600;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hrow small{display:block;color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.hrow .ava{width:36px;height:36px;flex:none}
.kplist>.klnk{margin-top:6px}
/* база знаний */
.kb-links{display:grid;grid-template-columns:repeat(2,minmax(0,1fr));gap:8px}
.kb-a{display:flex;flex-direction:column;gap:6px;background:var(--ui2);border-radius:16px;padding:12px;text-decoration:none;color:var(--fg);font-weight:600;font-size:13.5px;position:relative}
.kb-a:hover{background:var(--accent-soft);color:var(--accent)}
.kb-a svg{width:22px;height:22px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.kb-a small{position:absolute;top:10px;right:12px;color:var(--muted);font-weight:600}
.kb-sub{font-size:12.5px;margin:6px 0 2px}
.kb-ic{width:36px;height:36px;border-radius:12px;background:var(--accent-soft);color:var(--accent);display:grid;place-items:center;flex:none}
.kb-ic svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}

@media (max-width:1180px){.t-next,.t-week{grid-column:span 12}.t-people,.t-recent{grid-column:span 6}.t-kb{grid-column:span 12}.kb-links{grid-template-columns:repeat(4,minmax(0,1fr))}}
@media (max-width:820px){
  .dash{gap:14px}.t-next,.t-week,.t-people,.t-recent,.t-kb{grid-column:span 12}
  .hstats{grid-template-columns:repeat(2,minmax(0,1fr));gap:8px;margin-bottom:14px}
  .tile{padding:16px;border-radius:20px}
  .kb-links{grid-template-columns:repeat(2,minmax(0,1fr))}
}
@media (max-width:640px){
  .wk{grid-template-columns:minmax(0,1fr);gap:4px}
  .wk-d{flex-direction:row;align-items:center;min-height:0;padding:6px 10px;gap:10px}
  .wk-d.free{opacity:.75}
  .wk-h{flex-direction:row;gap:6px;width:56px;flex:none;align-items:baseline}
  .wk-ls{flex-direction:row;flex-wrap:wrap;min-width:0}
  .wk-e{flex:0 1 auto;max-width:100%}
  .wk-add{min-height:30px;border-color:var(--line);color:var(--muted);max-width:44px}
  .t-week .tile-h .wk-l{order:5;flex:1 1 100%}
  .nx-when span{font-size:24px}
}
@media (prefers-reduced-motion:reduce){.nav a svg,.wk{transition:none}}
/* талисман: точки «думаю» в позе загрузки */
.mascot .m-dots circle{animation:mdot 1.2s ease-in-out infinite}
.mascot .m-dots circle:nth-child(2){animation-delay:.2s}.mascot .m-dots circle:nth-child(3){animation-delay:.4s}
@keyframes mdot{0%,100%{opacity:.25}50%{opacity:1}}
@media (prefers-reduced-motion:reduce){.mascot .m-dots circle{animation:none}}

/* ---- расписание: цвета статусов, легенда, правая панель ---- */
body.kab .ev[class*=" st-"]{background:color-mix(in srgb,var(--c) 13%,var(--paper));border-left:3px solid var(--c);color:var(--fg);text-decoration:none;opacity:1}
body.kab .ev.st-canceled{opacity:.7}body.kab .ev.st-canceled b{text-decoration:line-through}
body.kab .mchip[class*=" st-"]{background:color-mix(in srgb,var(--c) 15%,var(--paper));box-shadow:inset 3px 0 0 var(--c)}
body.kab .ev.sel,body.kab .mchip.sel{outline:2px solid var(--c);outline-offset:1px;z-index:3}
body.kab .ev.st-live{box-shadow:0 0 0 2px color-mix(in srgb,var(--st-live) 35%,transparent)}
body.kab .week,body.kab .month{background:var(--paper);border-radius:var(--r);box-shadow:var(--shadow);border-color:var(--card-line);overflow:hidden}
.cal-legend{margin:0 0 12px}
.calwrap{display:grid;grid-template-columns:minmax(0,1fr) 320px;gap:20px;align-items:start}
.calside{position:sticky;top:16px;background:var(--paper);border-radius:var(--r,24px);box-shadow:var(--shadow);border:1px solid var(--card-line,transparent);padding:18px;min-width:0;max-height:calc(100vh - 32px);overflow:auto}
.lp{display:flex;flex-direction:column;gap:14px}
.lp-top{display:flex;align-items:center;gap:8px}
.lp h3{margin:0;font-size:19px;line-height:1.25;overflow-wrap:anywhere}
.pill.lstate{background:color-mix(in srgb,var(--c) 15%,transparent);color:var(--c)}
.pill.lstate i{width:7px;height:7px;border-radius:50%;background:var(--c)}
.lp-when b{display:block;text-transform:capitalize}
.lp-when span{color:var(--muted)}
.lp-moved{font-size:13px;color:var(--st-moved);background:color-mix(in srgb,var(--st-moved) 12%,transparent);border-radius:12px;padding:6px 10px}
.lp-sec{display:flex;flex-direction:column;gap:6px;border-top:1px solid var(--line);padding-top:12px}
.lp-sec small{color:var(--muted);font-size:12px;font-weight:600;text-transform:uppercase;letter-spacing:.04em}
.lp-p{display:flex;align-items:center;gap:8px;min-width:0}
.lp-p .ava{width:30px;height:30px;flex:none}
.lp-p>span:nth-child(2){flex:1;min-width:0;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.lp-p b{font-size:13px;font-weight:600}
.lp-act{display:flex;flex-direction:column;gap:8px}
.lp-act .btn{width:100%}

/* ---- ученики: список слева, карточка справа ---- */
.split2{display:grid;grid-template-columns:320px minmax(0,1fr);gap:20px;align-items:start}
.slist-col{position:sticky;top:16px;max-height:calc(100vh - 32px);overflow:auto}
.slist{display:flex;flex-direction:column;gap:12px;min-width:0}
.slist .inp{border-radius:999px;background:var(--ui2);border-color:transparent;padding-left:16px}
.hrow.on{background:var(--accent-soft)}
.hrow.on b{color:var(--accent)}
.spane{min-width:0}
.spane.tile{min-height:420px;justify-content:center}

/* ---- база знаний ---- */
.kb{gap:16px}
.kb-bar{display:flex;align-items:center;gap:10px;flex-wrap:wrap}
.kb-q{flex:1 1 220px;max-width:360px;border-radius:999px!important;background:var(--ui2);border-color:transparent!important;padding-left:16px}
.kb-sort{width:auto;border-radius:999px!important}
.kb-view button{display:grid;place-items:center;padding:6px 10px}
.kb-view svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.kb-grid{display:grid;grid-template-columns:repeat(auto-fill,minmax(210px,1fr));gap:14px}
.kb-list{display:flex;flex-direction:column;gap:2px}
.kb-it{position:relative;display:flex;flex-direction:column;gap:10px;background:var(--ui2);border-radius:20px;padding:10px;cursor:pointer;min-width:0;transition:box-shadow .15s,background .15s}
.kb-it:hover{box-shadow:0 0 0 2px var(--accent-soft),var(--shadow);background:var(--paper)}
.kb-pic{height:110px;border-radius:14px;background:var(--paper);display:grid;place-items:center;position:relative;color:var(--accent)}
.kb-pic.t-docs{color:var(--st-live)}.kb-pic.t-files{color:var(--st-moved)}
.kb-pic svg{width:38px;height:38px;fill:none;stroke:currentColor;stroke-width:1.5;stroke-linecap:round;stroke-linejoin:round}
.kb-pic em{position:absolute;left:10px;bottom:8px;font-style:normal;font-size:11.5px;color:var(--muted)}
.kb-t{display:flex;flex-direction:column;min-width:0;padding:0 34px 2px 4px}
.kb-t b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kb-t small{color:var(--muted);font-size:12.5px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.kb-star,.kb-more{position:absolute;border:0;background:var(--paper);border-radius:50%;width:32px;height:32px;display:grid;place-items:center;color:var(--muted);box-shadow:var(--shadow)}
.kb-star{top:16px;right:16px;opacity:0;transition:opacity .15s}
.kb-it:hover .kb-star,.kb-star.on,.kb-star:focus-visible{opacity:1}
.kb-star svg{width:17px;height:17px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linejoin:round}
.kb-star.on{color:#f5a400}.kb-star.on svg{fill:currentColor}
.kb-more{right:10px;bottom:12px;background:none;box-shadow:none;font-size:20px;line-height:1}
.kb-more:hover{background:var(--paper)}
.kb-list .kb-it{flex-direction:row;align-items:center;background:none;padding:8px 10px;border-radius:14px}
.kb-list .kb-it:hover{background:var(--ui2);box-shadow:none}
.kb-list .kb-pic{height:40px;width:40px;flex:none;border-radius:12px;background:var(--accent-soft)}
.kb-list .kb-pic svg{width:20px;height:20px}.kb-list .kb-pic em{display:none}
.kb-list .kb-t{flex:1;padding:0}
.kb-list .kb-star,.kb-list .kb-more{position:static;opacity:1;box-shadow:none;background:none;flex:none}
.kb-list .kb-star:not(.on){opacity:.5}
@media (max-width:640px){.kb-grid{grid-template-columns:repeat(2,minmax(0,1fr));gap:10px}.kb-pic{height:84px}.kb-star{opacity:1}.kb-q{max-width:none}}

/* ---- домашки: раздел и редактор ---- */
.hwh{gap:16px}
.hd-row .kb-more{position:static;flex:none}
.hd-top{display:flex;align-items:center;gap:10px;flex-wrap:wrap;margin-bottom:16px}
.hd-saved{font-size:13px;color:var(--muted)}
.hd-page{max-width:880px;margin:0 auto;padding:28px clamp(16px,4vw,48px) 40px;gap:6px}
.hd-title{border:0;background:none;resize:none;font:700 30px/1.2 var(--f);color:var(--fg);padding:0;margin:0 0 4px;outline:none;overflow:hidden}
.hd-title::placeholder{color:color-mix(in srgb,var(--muted) 60%,transparent)}
.hd-hint{margin:0 0 14px;font-size:13px;color:var(--muted)}
.hd-ed{display:flex;flex-direction:column;gap:2px}
.hd-b{display:grid;grid-template-columns:52px minmax(0,1fr);align-items:start;margin-left:-52px;border-radius:10px}
.hd-hs{display:flex;gap:2px;padding-top:4px;opacity:0;transition:opacity .12s;justify-content:flex-end;padding-right:4px}
.hd-b:hover .hd-hs,.hd-b:focus-within .hd-hs{opacity:1}
.hd-h{border:0;background:none;color:var(--muted);width:22px;height:24px;border-radius:6px;font-size:14px;line-height:1;padding:0;letter-spacing:-2px}
.hd-h:hover{background:var(--ui2);color:var(--fg)}
.hd-body{min-width:0}
.hd-in,.hd-li-in{width:100%;border:0;background:none;resize:none;outline:none;padding:4px 2px;font:inherit;color:var(--fg);line-height:1.55;overflow:hidden;box-shadow:none!important}
.hd-in::placeholder,.hd-li-in::placeholder{color:transparent}
.hd-in:focus::placeholder,.hd-li-in:focus::placeholder{color:color-mix(in srgb,var(--muted) 70%,transparent)}
textarea.hd-in:placeholder-shown:only-child{min-height:30px}
.hd-h1{font-size:26px;font-weight:700;line-height:1.25;margin-top:14px}
.hd-h2{font-size:21px;font-weight:700;margin-top:10px}
.hd-h3{font-size:17px;font-weight:700;margin-top:6px}
.hd-quote{border-left:3px solid var(--fg)!important;padding-left:14px!important;font-style:italic}
.hd-callout{background:var(--accent-soft)!important;border-radius:12px;padding:10px 14px!important}
.hd-code,.hd-mono{font-family:ui-monospace,"SF Mono",Menlo,monospace!important;font-size:13.5px}
textarea.hd-code{background:var(--ui2)!important;border-radius:12px;padding:10px 14px!important}
.hd-list{display:flex;flex-direction:column}
.hd-li{display:flex;align-items:center;gap:8px}
.hd-mk{font-style:normal;color:var(--muted);min-width:18px;text-align:right;font-variant-numeric:tabular-nums}
.hd-li input[type=checkbox]{width:17px;height:17px;accent-color:var(--accent);flex:none}
.hd-tbl table{border-collapse:collapse;width:100%}
.hd-tbl th,.hd-tbl td{border:1px solid var(--line);padding:0}
.hd-tbl th{background:var(--ui2)}
.hd-tbl input{width:100%;min-width:80px;border:0;background:none;padding:7px 9px;font:inherit;color:var(--fg);outline:none;box-shadow:none!important}
.hd-tbl th input{font-weight:600}
.hd-tbtn{margin-top:6px;gap:6px}
.hd-tw{overflow-x:auto;max-width:100%}
.hd-media{display:flex;flex-direction:column;gap:8px;align-items:flex-start;padding:4px 0}
.hd-media img,.hd-media video{max-width:100%;max-height:420px;border-radius:14px}
.hd-media audio{width:100%;max-width:480px}
.hd-cap{border:0;background:none;padding:2px;font-size:13px;color:var(--muted);width:100%;outline:none;box-shadow:none!important}
.hd-drop{width:100%;display:flex;align-items:center;justify-content:space-between;gap:12px;flex-wrap:wrap;border:1.5px dashed var(--line);border-radius:14px;padding:12px 14px;color:var(--muted);font-size:13px}
.hd-filelink{font-weight:600;text-decoration:none}
.hd-mathed,.hd-graphed{display:flex;flex-direction:column;gap:8px;background:var(--ui2);border-radius:14px;padding:10px 12px}
.hd-mathed .hd-in,.hd-graphed .hd-in{background:var(--paper);border-radius:10px;padding:6px 10px}
.hd-mathpv{min-height:40px;display:grid;place-items:center;color:var(--muted);font-size:13px;overflow-x:auto}
.hd-graphed .row{gap:8px;flex-wrap:wrap}.hd-graphed .row .hd-in{flex:1 1 200px;width:auto}
.hd-gx{display:inline-flex;align-items:center;gap:6px;font-size:13px;color:var(--muted)}
.hd-gx input{width:72px;border:1px solid var(--line);border-radius:10px;padding:5px 8px;background:var(--paper);color:var(--fg)}
.hd-taskEd{display:flex;flex-direction:column;gap:6px;border:1.5px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:16px;padding:10px 14px;margin:6px 0}
.hd-tnum{font-size:12px;font-weight:700;color:var(--accent);text-transform:uppercase;letter-spacing:.05em}
.hd-taskEd .hd-in{min-height:28px}
.hd-ans{display:flex;align-items:center;gap:10px;font-size:13px;color:var(--muted)}
.hd-ans input{flex:1;border:1px solid var(--line);border-radius:999px;padding:6px 12px;background:var(--paper);color:var(--fg);min-width:0}
.hd-sol summary{cursor:pointer;font-size:13px;color:var(--muted)}
.hd-sol .hd-in{background:var(--ui2);border-radius:10px;padding:6px 10px;margin-top:6px}
.hd-hr{border:0;border-top:1px solid var(--line);margin:14px 0}
.hd-hr:focus{outline:2px solid var(--accent);outline-offset:4px}
.hd-tail{border:0;background:none;width:100%;min-height:60px;cursor:text}
.hd-menu{position:fixed;z-index:80;width:290px;max-height:320px;overflow:auto;background:var(--paper);border:1px solid var(--line);border-radius:16px;box-shadow:0 12px 40px rgba(20,32,55,.18);padding:6px}
.hd-menu button{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:6px 8px;border-radius:10px;color:var(--fg)}
.hd-menu button.on,.hd-menu button:hover{background:var(--accent-soft)}
.hd-menu i{font-style:normal;width:32px;height:32px;border-radius:9px;background:var(--ui2);display:grid;place-items:center;font-weight:700;font-size:13px;flex:none}
.hd-menu b{display:block;font-weight:600;font-size:14px}.hd-menu small{color:var(--muted);font-size:12px}
.hd-mnone{padding:10px;color:var(--muted);font-size:13px}
.hd-preview{padding-top:6px}
@media (max-width:820px){.hd-b{grid-template-columns:minmax(0,1fr);margin-left:0}.hd-hs{display:none}.hd-title{font-size:24px}.hd-page{padding:18px 14px 28px}.hd-top .spacer{display:none}}
/* документ у ученика и в предпросмотре (без body.kab — его видят все) */
.hd{line-height:1.6}
.hd>*:first-child{margin-top:0}
.hd h3.hd-h1{font-size:22px;margin:16px 0 6px}.hd h4.hd-h2{font-size:18px;margin:14px 0 6px}.hd h5.hd-h3{font-size:15.5px;margin:12px 0 4px}
.hd blockquote{margin:10px 0;border-left:3px solid currentColor;padding-left:14px;font-style:italic}
.hd .hd-callout{background:var(--accent-soft);border-radius:12px;padding:10px 14px;margin:10px 0}
.hd pre.hd-code{background:var(--ui2);border-radius:12px;padding:10px 14px;overflow-x:auto;font-size:13.5px}
.hd .hd-todo{list-style:none;padding-left:4px}
.hd .hd-tw{overflow-x:auto;margin:10px 0}
.hd table.hd-table{border-collapse:collapse}.hd table.hd-table th,.hd table.hd-table td{border:1px solid var(--line);padding:6px 10px;text-align:left}.hd table.hd-table th{background:var(--ui2)}
.hd figure{margin:12px 0}.hd figure img,.hd figure video{max-width:100%;border-radius:12px}.hd figure audio{width:100%;max-width:480px}
.hd figcaption{font-size:13px;color:var(--muted);margin-top:4px}
.hd-graph svg{width:100%;max-width:520px;height:auto;display:block;background:var(--paper);border:1px solid var(--line);border-radius:12px}
.hd-graph .ax{stroke:currentColor;stroke-opacity:.35;stroke-width:1.2;fill:none}
.hd-graph .ln{stroke:var(--accent);stroke-width:2.4;fill:none;stroke-linejoin:round;stroke-linecap:round}
.hd-graph text{font-size:12px;fill:currentColor;fill-opacity:.6}
.hd-graph.bad{color:var(--bad);font-size:13px;padding:8px 0}
.hd .hd-math{overflow-x:auto;margin:10px 0}
.hd .hd-task{border:1.5px solid color-mix(in srgb,var(--accent) 35%,var(--line));border-radius:14px;padding:10px 14px;margin:12px 0}
.hd .hd-task>b{display:block;font-size:12px;color:var(--accent);text-transform:uppercase;letter-spacing:.05em}
.hd .hd-task small{display:block;color:var(--ok);margin-top:6px}
.hd .hd-graph svg,.hd-graphed .hd-graph svg{width:100%!important;max-width:520px!important;height:auto!important}

/* ---- чаты ---- */
.chx{display:grid;grid-template-columns:350px minmax(0,1fr);gap:20px;height:calc(100dvh - 48px);min-height:520px}
#bannerSlot:not(:empty)+.chx{height:calc(100dvh - 120px)}
.chx-l,.chx-r{min-height:0;overflow:hidden}
.chx-l{gap:12px;padding:18px 14px}
.chx-l .tile-h{padding:0 6px}
.chx-l .seg2{align-self:stretch}.chx-l .seg2 button{flex:1}
.chx-q{border-radius:999px!important;background:var(--ui2);border-color:transparent!important;padding-left:16px}
.chx-arch{display:flex;align-items:center;gap:12px;border:0;background:none;padding:8px 10px;border-radius:14px;color:var(--fg);font-weight:600;text-align:left}
.chx-arch:hover{background:var(--ui2)}
.chx-arch small{color:var(--muted);font-weight:600}.chx-arch i{margin-left:auto;font-style:normal;color:var(--muted);font-size:18px}
.chx-archi{width:40px;height:40px;border-radius:50%;background:var(--ui2);display:grid;place-items:center;color:var(--muted)}
.chx-archi svg{width:20px;height:20px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chx-items{flex:1;overflow-y:auto;display:flex;flex-direction:column;gap:2px;margin:0 -4px;padding:0 4px}
.chx-row{position:relative;display:flex;align-items:center;gap:12px;padding:9px 10px;border-radius:16px;text-decoration:none;color:var(--fg);min-width:0}
.chx-row:hover{background:var(--ui2)}.chx-row.on{background:var(--accent-soft)}
.chx-row .ava{width:44px;height:44px;flex:none}
.chx-rw{flex:1;min-width:0;display:flex;flex-direction:column;gap:2px}
.chx-rt,.chx-rl{display:flex;align-items:center;gap:6px;min-width:0}
.chx-rt b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;flex:0 1 auto}
.chx-rt i{font-style:normal;font-size:11px}.chx-rt small{margin-left:auto;color:var(--muted);font-size:12px;flex:none}
.chx-rl span:first-child{flex:1;min-width:0;color:var(--muted);font-size:13px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chx-rl .badge{margin:0;background:var(--accent);color:var(--accent-fg)}.chx-rl .badge.gray{background:var(--muted)}
.chx-more{position:absolute;right:8px;top:50%;transform:translateY(-50%);border:0;background:var(--paper);border-radius:50%;width:28px;height:28px;color:var(--muted);opacity:0;box-shadow:var(--shadow)}
.chx-row:hover .chx-more,.chx-more:focus-visible{opacity:1}
.chx-found{max-height:50vh;overflow:auto}
.chx-r{padding:0;gap:0}
.chx-r>.es{margin:auto}
.chx-head{display:flex;align-items:center;gap:10px;padding:12px 16px;border-bottom:1px solid var(--line)}
.chx-head .ava{width:40px;height:40px}
.chx-ht{display:flex;flex-direction:column;min-width:0}.chx-ht b{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chx-sub{color:var(--muted);font-size:12.5px;min-height:1em}.chx-sub.typing{color:var(--accent);font-weight:600}
.chx-head .btn.icon svg{width:18px;height:18px;fill:none;stroke:currentColor;stroke-width:1.7;stroke-linecap:round;stroke-linejoin:round}
.chx-back{display:none!important}
.chx-search{padding:10px 16px;border-bottom:1px solid var(--line);display:flex;flex-direction:column;gap:6px;max-height:240px;overflow:auto}
.chx-search .inp{border-radius:999px}
.chx-sitem{display:grid;grid-template-columns:auto minmax(0,1fr) auto;gap:8px;border:0;background:none;text-align:left;padding:6px 8px;border-radius:10px;color:var(--fg);align-items:baseline}
.chx-sitem:hover{background:var(--ui2)}.chx-sitem span{overflow:hidden;text-overflow:ellipsis;white-space:nowrap;color:var(--muted)}.chx-sitem small{color:var(--muted)}
.chx-msgs{flex:1;overflow-y:auto;padding:16px;display:flex;flex-direction:column;gap:4px;background:color-mix(in srgb,var(--ui2) 45%,var(--paper))}
.chx-none{margin:auto}
.chx-day{align-self:center;margin:10px 0 6px;position:sticky;top:0;z-index:2}
.chx-day span{display:inline-block;background:var(--paper);color:var(--muted);font-size:12px;font-weight:600;padding:3px 12px;border-radius:999px;box-shadow:var(--shadow)}
.chx-m{display:flex;align-items:flex-end;gap:8px;max-width:min(78%,640px);position:relative}
.chx-m.mine{align-self:flex-end;flex-direction:row-reverse}
.chx-m .ava{width:30px;height:30px;flex:none;font-size:13px}
.chx-bw{display:flex;flex-direction:column;gap:3px;min-width:0}
.chx-m.mine .chx-bw{align-items:flex-end}
.chx-b{background:var(--paper);border-radius:18px 18px 18px 6px;padding:8px 12px 6px;box-shadow:0 1px 2px rgba(20,32,55,.06);min-width:0;overflow-wrap:anywhere}
.chx-m.mine .chx-b{background:var(--accent);color:var(--accent-fg);border-radius:18px 18px 6px 18px}
.chx-m.hl .chx-b{box-shadow:0 0 0 3px color-mix(in srgb,var(--st-moved) 60%,transparent)}
.chx-nm{font-size:12px;font-weight:700;color:var(--accent);margin-bottom:2px}
.chx-t{white-space:pre-wrap}
.chx-b img{max-width:280px;max-height:280px;border-radius:12px;display:block;margin-top:4px}
.chx-b a{color:inherit}
.chx-audio{display:block;width:260px;max-width:100%;height:36px;margin-top:4px}
.chx-reply{display:flex;flex-direction:column;border:0;text-align:left;background:color-mix(in srgb,currentColor 10%,transparent);border-left:3px solid currentColor;border-radius:8px;padding:4px 8px;margin:2px 0 6px;color:inherit;max-width:100%;font-size:12.5px}
.chx-reply span{opacity:.8;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chx-time{display:flex;align-items:center;justify-content:flex-end;gap:4px;font-size:11px;opacity:.7;margin-top:2px}
.chx-tick.read{font-weight:700}
.chx-m.del .chx-b{background:none;box-shadow:inset 0 0 0 1px var(--line);color:var(--muted)}
.chx-deltext{font-size:13px}
.chx-reacts{display:flex;gap:4px;flex-wrap:wrap}
.chx-reacts button{border:1px solid var(--line);background:var(--paper);border-radius:999px;padding:1px 8px;font-size:13px;display:inline-flex;gap:4px;align-items:center;color:var(--fg)}
.chx-reacts button.on{border-color:var(--accent);background:var(--accent-soft)}
.chx-tools{display:flex;gap:2px;align-self:center;opacity:0;transition:opacity .12s}
.chx-m:hover .chx-tools,.chx-tools:focus-within{opacity:1}
.chx-tools>button,.chx-rbtn>button{border:0;background:var(--paper);width:28px;height:28px;border-radius:50%;color:var(--muted);box-shadow:var(--shadow)}
.chx-rbtn{position:relative}
.chx-pick{position:absolute;bottom:34px;left:50%;transform:translateX(-50%);display:none;gap:2px;background:var(--paper);border-radius:999px;padding:4px;box-shadow:0 8px 24px rgba(20,32,55,.18);z-index:5;white-space:nowrap}
.chx-rbtn:hover .chx-pick,.chx-rbtn:focus-within .chx-pick{display:flex}
.chx-pick button{border:0;background:none;font-size:18px;width:32px;height:32px;border-radius:50%}
.chx-pick button:hover{background:var(--ui2);transform:scale(1.15)}
.chx-comp{border-top:1px solid var(--line);padding:10px 12px;display:flex;flex-direction:column;gap:8px}
.chx-ctx{display:flex;align-items:center;gap:10px;background:var(--ui2);border-left:3px solid var(--accent);border-radius:10px;padding:6px 8px 6px 12px}
.chx-ctx>span{flex:1;min-width:0;display:flex;flex-direction:column;font-size:13px}.chx-ctx>span span{color:var(--muted);overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chx-row2{display:flex;align-items:flex-end;gap:8px}
.chx-row2 textarea{flex:1;min-width:0;resize:none;border:1px solid var(--line);border-radius:20px;padding:9px 14px;background:var(--ui2);color:var(--fg);font:inherit;max-height:160px;outline:none}
.chx-row2 textarea:focus{border-color:var(--accent);background:var(--paper)}
.chx-ic{width:40px!important;height:40px!important;font-size:17px!important}
.chx-ic.on{background:var(--bad)!important;color:#fff!important;animation:recPulse 1.2s ease-in-out infinite}
@keyframes recPulse{50%{box-shadow:0 0 0 6px color-mix(in srgb,var(--bad) 25%,transparent)}}
.chx-send{width:40px!important;height:40px!important}
.chx-rec{color:var(--bad);font-weight:700;align-self:center;font-size:13px}
@media (max-width:820px){
  .chx{grid-template-columns:minmax(0,1fr);height:calc(100dvh - 150px);gap:0}
  .chx.open .chx-l,.chx:not(.open) .chx-r{display:none}
  .chx-back{display:inline-flex!important}
  .chx-m{max-width:88%}
  .chx-tools{display:none}
  .chx-head{padding:10px 12px}.chx-msgs{padding:12px 10px}
  .chx-more{opacity:1;box-shadow:none;background:none}
}
@media (prefers-reduced-motion:reduce){.chx-ic.on{animation:none}}
.chx-row2 textarea{scrollbar-width:none}.chx-row2 textarea::-webkit-scrollbar{display:none}
/* чаты занимают ровно экран: колонка main растягивается, баннеры сверху не выталкивают поле ввода вниз */
body[data-sec="chats"] main{display:flex;flex-direction:column;height:100dvh;padding-bottom:20px}
body[data-sec="chats"] main>.chx{flex:1;height:auto!important;min-height:0}
body[data-sec="chats"] main>.ghost,body[data-sec="chats"] main>.skel{flex:none}
@media (max-width:820px){body[data-sec="chats"] main{padding-bottom:calc(76px + env(safe-area-inset-bottom,0px));padding-top:10px}
  body[data-sec="chats"] main>.chx{min-height:0}
  body[data-sec="chats"] .chx-r,body[data-sec="chats"] .chx-l{border-radius:20px}}
/* «Наши каналы» не загромождают колонку меню — они в меню профиля (core.js, openUserMenu) */
@media (min-width:821px){body.kab nav.side .soc-side{display:none}}
.umenu .soc-um{margin:6px 4px 2px;padding:10px 6px 4px;border-top:1px solid var(--line)}
.umenu .soc-um .soc-row{margin-top:8px}
/* три кнопки поровну по ширине меню, только значки (название — в подсказке и для экранного диктора) */
.umenu .soc-um .soc-row{gap:6px}
.umenu .soc-um a.soc-btn{flex:1 1 0;min-width:0;height:36px;color:#fff;padding:0;border-radius:10px;justify-content:center;gap:0}
.umenu .soc-um a.soc-btn span{display:none}
.umenu .soc-um a.soc-btn:hover{background:none;filter:brightness(1.08)}
.umenu a[href="#logout"]{color:var(--bad)}

/* ---- ровная вёрстка ---- */
/* колонка содержимого по центру: на широком экране поля слева и справа одинаковые */
body.kab main{margin-inline:auto}
/* широкий монитор: колонка шире, пустые поля по бокам небольшие */
body.kab main{max-width:1760px}
/* карточки в сетке одной высоты, кнопка прижата к низу — в ряду все кнопки на одной линии */
body.kab .rep-grid{gap:16px;grid-template-columns:repeat(auto-fill,minmax(240px,1fr))}
body.kab .rep-card{display:flex;flex-direction:column;gap:4px;padding:18px;border-radius:var(--r);border-color:var(--card-line);box-shadow:var(--shadow);transition:box-shadow .15s}
body.kab .rep-card:hover{box-shadow:0 0 0 2px var(--accent-soft),var(--shadow)}
body.kab .rep-card>.row{margin-top:auto!important;padding-top:12px}
body.kab .rep-card>.muted{margin-top:2px!important}
/* вкладки раздела: счётчик внутри «таблетки» */
body.kab .subtabs a{display:inline-flex;align-items:center;gap:6px}
body.kab .subtabs a .badge{margin:0;min-width:18px;height:18px;font-size:11px;padding:0 5px}
/* плитки главной в одном ряду — одной высоты, кнопки и ссылки внизу плитки на одной линии */
.dash{align-items:stretch}
.tile>.btn.quick,.tile>.tile-f,.t-kb>.kplist:last-child{margin-top:auto}
.t-people>.kplist,.t-recent>.kplist{flex:1}

/* шапка страницы: заголовок не сжимается под кнопки — кнопки переносятся на следующую строку */
@media (min-width:821px){body.kab .head h1{flex:1 0 auto;max-width:100%}body.kab .head{row-gap:10px}}
/* разделитель админ-пунктов в узкой колонке — тонкая линия, без подписи */
@media (min-width:821px){body.kab .nav-sep{font-size:0;height:1px;padding:0;border:0;background:var(--line);margin:8px 20px}}

/* ---- картинки в домашке: редактор ---- */
.hd-ed.hd-drag,.hd-b.hd-drag{outline:2px dashed var(--accent);outline-offset:4px;border-radius:12px;background:var(--accent-soft)}
.hd-strip{display:flex;flex-wrap:wrap;gap:8px;align-items:center;margin:2px 0 4px}
.hd-tile{position:relative;width:96px;height:72px;border-radius:12px;overflow:hidden;background:var(--ui2);flex:none}
.hd-tile img{width:100%;height:100%;object-fit:cover;display:block}
.hd-tile.hd-loading{display:grid;place-items:center}
.hd-tx,.hd-tsz{position:absolute;top:4px;border:0;border-radius:999px;background:rgba(15,20,30,.62);color:#fff;font-size:11px;font-weight:700;min-width:22px;height:22px;padding:0 6px;line-height:22px}
.hd-tx{right:4px}.hd-tsz{left:4px}
.hd-tx:hover,.hd-tsz:hover{background:rgba(15,20,30,.85)}
.hd-tadd{border:1.5px dashed var(--line);background:none;border-radius:12px;padding:8px 12px;color:var(--muted);font-size:13px;font-weight:600}
.hd-tadd:hover{border-color:var(--accent);color:var(--accent);background:var(--accent-soft)}
.hd-spin{width:22px;height:22px;border-radius:50%;border:3px solid color-mix(in srgb,var(--accent) 25%,transparent);border-top-color:var(--accent);animation:hdspin .8s linear infinite;display:inline-block;flex:none}
@keyframes hdspin{to{transform:rotate(360deg)}}
.hd-drop.hd-loading{justify-content:flex-start;gap:10px}
.hd-media img.hd-w33{width:33%}.hd-media img.hd-w50{width:50%}.hd-media img.hd-w75{width:75%}.hd-media img.hd-w100{width:100%}
.hd-media img{max-height:none!important;height:auto;object-fit:contain}
.hd-imgbar{display:flex;align-items:center;gap:8px;flex-wrap:wrap;width:100%}
.hd-imgbar .hd-cap{flex:1 1 180px;width:auto}
.hd-size button{padding:4px 12px;font-size:12.5px}
@media (prefers-reduced-motion:reduce){.hd-spin{animation-duration:2.4s}}
/* ---- картинки в домашке: у ученика и в предпросмотре ---- */
.hd .hd-imgs{display:flex;flex-wrap:wrap;gap:8px;margin:8px 0 4px}
.hd .hd-imgs a{display:block;border-radius:10px;overflow:hidden;border:1px solid var(--line);background:var(--paper)}
.hd .hd-imgs a.hd-w100{flex:1 1 100%}.hd .hd-imgs a.hd-w75{flex:0 1 calc(75% - 4px)}.hd .hd-imgs a.hd-w50{flex:0 1 calc(50% - 4px)}.hd .hd-imgs a.hd-w33{flex:0 1 calc(33.3% - 6px)}
.hd .hd-imgs img{display:block;width:100%;height:auto}
.hd figure.hd-img img{height:auto}
.hd figure.hd-img.hd-w33 img{width:33%}.hd figure.hd-img.hd-w50 img{width:50%}.hd figure.hd-img.hd-w75 img{width:75%}.hd figure.hd-img.hd-w100 img{width:100%}
.hd details.hd-solv{margin-top:8px}.hd details.hd-solv summary{cursor:pointer;color:var(--muted);font-size:13px}
@media (max-width:640px){.hd .hd-imgs a.hd-w33{flex-basis:calc(50% - 4px)}.hd figure.hd-img.hd-w33 img{width:60%}.hd figure.hd-img.hd-w50 img{width:80%}}
