

/* PhysioSapiens | Список уроков и подтренингов v3.0 | Браузер + WebView */
html.ps-stream-view {
  --pst-orange:#f58220; --pst-primary:#302e2c; --pst-primary-hover:#1e1c1a;
  --pst-link:#9c470f; --pst-dark:#302e2c; --pst-text:#302e2c;
  --pst-bg:#f3f0eb; --pst-muted:#766f69; --pst-border:#e6dfd6;
  --pst-white:#fff; --pst-max-width:1320px; --pst-font:Manrope,Arial,sans-serif;
}
html.ps-stream-view .ps-stream-main {background:var(--pst-bg)!important;min-height:100vh;color:var(--pst-text);font-family:var(--pst-font);}
html.ps-stream-view .ps-stream-page,html.ps-stream-view .ps-stream-container {width:100%!important;max-width:none!important;padding:0!important;margin:0!important;overflow:visible!important;}
html.ps-stream-view .ps-stream-old-logo {display:none!important;}
html.ps-stream-view .ps-stream-container > div:has(> .ps-stream-old-logo):not(:has(> :not(.ps-stream-old-logo))) {display:none!important;}
/* Шапка, не фиксированная: боковое меню остается поверх */
html.ps-stream-view .ps-stream-header {position:relative; z-index:30; width:100%; background:var(--pst-primary); color:#fff;}
html.ps-stream-view .ps-stream-header * {box-sizing:border-box;}
html.ps-stream-view .ps-stream-header-inner {max-width:var(--pst-max-width); margin:0 auto; padding:18px 28px; min-height:94px; display:grid; grid-template-columns:minmax(130px, 220px) minmax(0, 1fr) auto; gap:24px; align-items:center;}
html.ps-stream-view .ps-stream-brand {display:flex; align-items:center; text-decoration:none !important; color:#fff !important; font-size:28px; font-weight:800; line-height:1.1; min-width:0; overflow-wrap:anywhere;}
html.ps-stream-view .ps-stream-brand img {display:block; max-width:100%; width:auto; max-height:56px; height:auto; object-fit:contain;}
html.ps-stream-view .ps-stream-support {display:inline-flex; justify-content:center; align-items:center; gap:10px; min-height:54px; padding:12px 22px; border-radius:12px; background:var(--pst-orange); color:var(--pst-dark) !important; border:1px solid var(--pst-orange); font:800 14px/1.3 var(--pst-font); text-decoration:none !important; white-space:nowrap; transition:background .2s, color .2s;}
html.ps-stream-view .ps-stream-support:hover {background:#fff; color:var(--pst-dark) !important; border-color:#fff;}
html.ps-stream-view .ps-stream-support svg {width:23px;height:23px;flex:none;}
/* Поиск */
html.ps-stream-view .lx-training-search {position:relative; width:100%; margin:0 !important; min-width:0; font-family:var(--pst-font);}
html.ps-stream-view .lx-training-search__field {position:relative;width:100%;}
html.ps-stream-view .lx-training-search__icon {position:absolute;top:50%;left:17px;transform:translateY(-50%);width:24px;height:24px;color:var(--pst-muted);pointer-events:none;}
html.ps-stream-view .lx-training-search__input {display:block;width:100% !important;height:56px !important;padding:0 50px 0 52px !important;background:#fff !important;color:var(--pst-dark) !important;border:1px solid transparent !important;border-radius:12px !important;outline:none !important;box-shadow:none !important;font:600 15px/1.3 var(--pst-font) !important;appearance:none;}
html.ps-stream-view .lx-training-search__input::placeholder {color:#8b8076; font-weight:500;}
html.ps-stream-view .lx-training-search__input:focus {border-color:var(--pst-orange) !important;box-shadow:0 0 0 3px #f5822038 !important;}
html.ps-stream-view .lx-training-search__input::-webkit-search-cancel-button {display:none;}
html.ps-stream-view .lx-training-search__clear {position:absolute;right:10px;top:50%;transform:translateY(-50%);display:none;place-items:center;width:34px;height:34px;border:0;border-radius:8px;background:#f7ede4;color:var(--pst-dark);font-size:24px;line-height:1;cursor:pointer;padding:0;}
html.ps-stream-view .lx-training-search__clear.is-visible {display:grid;}
html.ps-stream-view .lx-training-search__clear:hover {background:#f7d9bf;}
html.ps-stream-view .lx-training-search__status {margin-top:7px;color:#fff;font-size:12px;line-height:1.35;}
html.ps-stream-view .lx-training-search__status:empty {display:none;}
html.ps-stream-view .lx-training-search__results {position:absolute;left:0;right:0;top:calc(100% + 10px);z-index:40;overflow:auto;max-height:min(420px,60vh);border:1px solid var(--pst-border);border-radius:14px;background:#fff;box-shadow:0 18px 42px #302e2c21;}
html.ps-stream-view .lx-training-search__results[hidden] {display:none !important;}
html.ps-stream-view .lx-search-result {display:flex;flex-direction:column;gap:5px;padding:14px 16px;border-bottom:1px solid var(--pst-border);color:var(--pst-dark) !important;text-decoration:none !important;}
html.ps-stream-view .lx-search-result:last-child {border-bottom:0;}
html.ps-stream-view .lx-search-result:hover {background:#fff3e6;}
html.ps-stream-view .lx-search-result__top {display:flex;align-items:center;gap:10px;min-width:0;}
html.ps-stream-view .lx-search-result__type {flex:none;background:#f3eee9;color:#9c470f;border-radius:7px;padding:5px 8px;font-size:11px;font-weight:800;}
html.ps-stream-view .lx-search-result__title {font-size:14px;font-weight:800;overflow-wrap:anywhere;}
html.ps-stream-view .lx-search-result__text,html.ps-stream-view .lx-search-result__empty {color:var(--pst-muted);font-size:13px;line-height:1.5;overflow-wrap:anywhere;}
html.ps-stream-view .lx-search-result__empty {padding:20px;text-align:center;}
html.ps-stream-view .lx-search-frame {position:fixed;width:1px;height:1px;left:-9999px;top:0;opacity:0;pointer-events:none;border:0;}

html.ps-stream-view .ps-stream-header {z-index:100;overflow:visible!important;}
html.ps-stream-view .ps-stream-header-inner {overflow:visible!important;}
html.ps-stream-view .ps-stream-support {background:#fff!important;border-color:#fff!important;color:var(--pst-link)!important;}
html.ps-stream-view .ps-stream-support:hover {background:#fff0df!important;border-color:#fff0df!important;}
html.ps-stream-view .ps-stream-hero {background:var(--pst-primary);color:#fff;position:relative;z-index:80!important;overflow:visible!important;}
html.ps-stream-view .ps-stream-hero-inner {max-width:var(--pst-max-width);margin:auto;padding:42px 28px 44px;display:grid;grid-template-columns:minmax(0,1fr);gap:36px;align-items:center;box-sizing:border-box;overflow:visible!important;}
html.ps-stream-view .ps-stream-hero-inner.has-cover {grid-template-columns:minmax(0,1fr) minmax(180px,28%);}
html.ps-stream-view .ps-stream-hero-copy {min-width:0;overflow:visible!important;}
html.ps-stream-view .ps-stream-hero-cover {display:block;width:100%;aspect-ratio:1;object-fit:cover;border-radius:20px;}
html.ps-stream-view .ps-stream-hero .breadcrumbs {display:flex;flex-wrap:wrap;gap:7px;color:#f5eee7!important;font-size:14px;margin:0 0 18px!important;padding:0!important;}
html.ps-stream-view .ps-stream-hero .breadcrumbs a {color:#fff!important;text-decoration:underline;text-underline-offset:4px;}
html.ps-stream-view .ps-stream-hero .page-header {display:flex;flex-direction:column;align-items:flex-start;gap:14px;margin:0!important;padding:0!important;border:0!important;background:none!important;min-height:0!important;color:#fff;overflow:visible!important;}
html.ps-stream-view .ps-stream-hero .page-header > h1 {order:0;color:#fff!important;font:750 clamp(28px,3.4vw,46px)/1.2 var(--pst-font)!important;margin:0!important;overflow-wrap:anywhere;}
html.ps-stream-view .ps-stream-summary {order:1;display:flex;flex-wrap:wrap;gap:8px 20px;font-size:15px;color:#f5eee7;}
html.ps-stream-view .ps-stream-description {order:2;color:#fff;font:500 16px/1.65 var(--pst-font);overflow-wrap:anywhere;}
html.ps-stream-view .ps-stream-hero .page-header > .clearfix {order:3;margin:0!important;}
html.ps-stream-view .ps-stream-hero .gc-tags .no-tags {background:#fff;color:var(--pst-link);border-radius:6px;padding:4px 8px;}
html.ps-stream-view .ps-stream-hero .content-menu {order:4;width:100%;border:0!important;background:none!important;margin:12px 0 0!important;padding:0!important;}
html.ps-stream-view .ps-stream-hero .page-menu {display:flex!important;flex-wrap:wrap;gap:5px 12px;margin:0!important;padding:0!important;border:0!important;list-style:none;}
html.ps-stream-view .ps-stream-hero .page-menu > li {float:none!important;display:block!important;margin:0!important;padding:0!important;border:0!important;background:none!important;}
html.ps-stream-view .ps-stream-hero .page-menu > li > a {display:block;color:#fff!important;background:transparent!important;border:0!important;padding:7px 10px!important;border-radius:8px;text-decoration:none!important;font:600 14px/1.4 var(--pst-font);}
html.ps-stream-view .ps-stream-hero .page-menu > li.active > a,html.ps-stream-view .ps-stream-hero .page-menu > li > a:hover {background:#ffffff26!important;color:#fff!important;}
html.ps-stream-view .ps-stream-hero .page-actions {order:5;position:relative!important;float:none!important;display:flex;flex-wrap:wrap;gap:10px;align-items:center;justify-content:flex-start;width:100%;margin:10px 0 0!important;z-index:10!important;overflow:visible!important;}
html.ps-stream-view .ps-stream-hero .page-actions > .btn-group {position:relative;float:none!important;margin:0!important;overflow:visible!important;}
html.ps-stream-view .ps-stream-hero .page-actions > .btn-group.open {z-index:2;}
html.ps-stream-view .ps-stream-hero .page-actions .btn {border:0!important;border-radius:999px!important;background:#fff!important;color:var(--pst-link)!important;padding:10px 18px!important;font:700 14px/1.4 var(--pst-font);box-shadow:none!important;}
html.ps-stream-view .ps-stream-hero .page-actions .btn-success {background:var(--pst-orange)!important;color:var(--pst-dark)!important;}
/* Меню «Действия» и «Добавить»: выше карточек, ниже поиска и бокового меню.
   Не переопределяем display — открытие/закрытие остается штатным. */
html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu {
  position:absolute!important;
  z-index:100!important;
  top:100%;left:0;right:auto;
  box-sizing:border-box;
  width:320px;
  min-width:0!important;
  max-width:calc(100vw - 32px);
  max-height: min(440px, 55vh);
  overflow-y:auto!important;
  margin:8px 0 0!important;
  padding:7px!important;
  border:1px solid var(--pst-border)!important;
  border-radius:14px!important;
  background:#fff!important;
  color:var(--pst-dark)!important;
  box-shadow:0 14px 36px rgba(48,46,44,.19)!important;
  text-align:left;
}
html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu > li > a {
  display:block;
  padding:10px 12px!important;
  color:var(--pst-dark)!important;
  background:transparent;
  border-radius:8px;
  font:600 14px/1.45 var(--pst-font)!important;
  white-space:normal!important;
  overflow-wrap:anywhere;
  text-decoration:none!important;
}
html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu > li:not(.disabled) > a:hover,
html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu > li:not(.disabled) > a:focus-visible {
  background:#fff3e6!important;color:var(--pst-link)!important;
}
html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu > li.disabled > a {color:var(--pst-muted)!important;cursor:not-allowed;}
html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu .divider {margin:5px 0!important;background:var(--pst-border)!important;}
html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu .fa {margin-right:6px;}
@media(max-width:600px){
  html.ps-stream-view .ps-stream-hero .page-actions > .btn-group {position:static!important;}
  html.ps-stream-view .ps-stream-hero .page-actions .dropdown-menu {width:320px;max-width:100%;left:0!important;right:auto!important;}
}
html.ps-stream-view .ps-stream-content {position:relative!important;z-index:0!important;isolation:isolate;max-width:var(--pst-max-width);margin:0 auto!important;padding:42px 28px 60px!important;box-sizing:border-box;width:100%!important;}
html.ps-stream-view .ps-stream-content .xdget-row.ps-stream-single-column {margin-left:0!important;margin-right:0!important;}
html.ps-stream-view .ps-stream-content .ps-stream-single-column > .xdget-col:not(.ps-stream-empty-col) {width:100%!important;max-width:none!important;float:none!important;flex:0 0 100%!important;padding:0!important;}
html.ps-stream-view .ps-stream-content .ps-stream-empty-col {display:none!important;}
html.ps-stream-view .ps-stream-section-title {font:750 clamp(26px,3vw,38px)/1.25 var(--pst-font)!important;color:var(--pst-dark)!important;margin:0 0 24px!important;}
html.ps-stream-view .xdget-lessonList,html.ps-stream-view .xdget-trainingList {margin:0 0 28px!important;}
/* Native lesson list: keep <li>, <a>, ordering inputs and all statuses intact. */
html.ps-stream-view .ps-stream-content .lesson-list {list-style:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
html.ps-stream-view .ps-stream-content .lesson-list > li {position:relative;margin:0 0 12px!important;padding:0!important;border:0!important;background:transparent!important;}
html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a {box-sizing:border-box;display:flex!important;align-items:center;gap:18px;min-height:148px;width:100%;padding:26px 28px!important;background:#fff!important;border:1px solid transparent!important;border-radius:20px!important;text-decoration:none!important;color:var(--pst-dark)!important;box-shadow:0 3px 12px #302e2c08;transition:border-color .18s,box-shadow .18s;}
html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a:hover,html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a:focus-visible {border-color:var(--pst-primary)!important;box-shadow:0 5px 18px #302e2c13;}
html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-accomplished > a.item-a {border-color:#83bda5!important;}
html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a > .info {flex:1 1 auto;min-width:0;width:auto!important;max-width:none!important;margin:0!important;padding:0!important;float:none!important;background:transparent!important;border:0!important;}
html.ps-stream-view .ps-stream-content .lesson-list .info table {width:100%!important;margin:0!important;background:transparent!important;border:0!important;}
html.ps-stream-view .ps-stream-content .lesson-list .info td {background:transparent!important;border:0!important;padding:0!important;vertical-align:middle;}
html.ps-stream-view .ps-stream-content .lesson-list .info .vmiddle {display:flex;flex-direction:column;align-items:flex-start;gap:9px;min-width:0;}
html.ps-stream-view .ps-stream-content .lesson-list .info .link.title {order:-2;font:750 clamp(19px,2vw,27px)/1.3 var(--pst-font)!important;color:var(--pst-dark)!important;margin:0!important;padding:0!important;overflow-wrap:anywhere;}
html.ps-stream-view .ps-stream-content .lesson-list .description,html.ps-stream-view .ps-stream-content .lesson-list .lesson-description {order:-1;font:500 15px/1.55 var(--pst-font);color:var(--pst-muted);margin:0!important;}
html.ps-stream-view .ps-stream-content .lesson-list .user-state-label {font:600 13px/1.45 var(--pst-font)!important;color:var(--pst-link)!important;background:#fff3e6!important;border-radius:7px;padding:5px 9px!important;margin:0!important;}
html.ps-stream-view .ps-stream-content .lesson-list .lesson-date {color:var(--pst-muted)!important;background:#f7f2ed!important;}
/* Вместо штатных иконок — текстовый статус выполненного задания. */
html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a > .state-icon-block {display:none!important;}
html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a {position:relative!important;}
html.ps-stream-view .ps-stream-completed-label {display:none!important;}
html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-accomplished:has(> a.item-a > .state-icon-block .fa-check) > a.item-a {padding-bottom:54px!important;}
html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-accomplished:has(> a.item-a > .state-icon-block .fa-check) > a.item-a > .ps-stream-completed-label {display:block!important;position:absolute;right:28px;bottom:18px;max-width:calc(100% - 56px);font:650 13px/1.4 var(--pst-font);color:#24734d!important;white-space:normal;text-align:right;pointer-events:none;}
html.ps-stream-view .ps-stream-content .lesson-list .ps-stream-lesson-cover-cell {width:132px!important;padding-left:20px!important;}
html.ps-stream-view .ps-stream-content .lesson-list .ps-stream-lesson-cover-cell img {display:block;width:112px!important;max-width:100%;height:auto!important;border-radius:12px;object-fit:cover;}
/* Подтренинги */
html.ps-stream-view .xdget-trainingList > .row {margin:0!important;}
html.ps-stream-view .xdget-trainingList > .row > .col-md-12 {padding:0!important;}
html.ps-stream-view .xdget-trainingList .stream-table,html.ps-stream-view .xdget-trainingList .stream-table > tbody {display:block;width:100%!important;margin:0!important;}
html.ps-stream-view .xdget-trainingList tr.training-row {display:block!important;width:100%!important;max-width:none!important;background:#fff!important;border:0!important;border-radius:22px!important;margin:0 0 20px!important;box-shadow:0 3px 12px #302e2c0b;transition:box-shadow .2s,transform .2s;}
html.ps-stream-view .xdget-trainingList tr.training-row:hover {box-shadow:0 8px 25px #302e2c16;transform:translateY(-2px);}
html.ps-stream-view .xdget-trainingList tr.training-row > td {display:block!important;width:100%!important;height:auto!important;padding:0!important;margin:0!important;background:transparent!important;border:0!important;box-sizing:border-box;}
html.ps-stream-view .ps-stream-child-card {display:flex!important;align-items:center;gap:24px;position:relative;width:100%!important;min-height:155px;padding:26px 28px!important;box-sizing:border-box;text-decoration:none!important;color:var(--pst-dark)!important;background:transparent!important;border-radius:22px;overflow-wrap:anywhere;}
html.ps-stream-view .ps-stream-child-copy {display:flex;flex:1 1 auto;min-width:0;flex-direction:column;align-items:flex-start;gap:12px;}
html.ps-stream-view .ps-stream-child-card .stream-title {display:block!important;color:var(--pst-dark)!important;font:800 clamp(19px,1.7vw,27px)/1.3 var(--pst-font)!important;margin:0!important;white-space:normal!important;overflow-wrap:anywhere;}
html.ps-stream-view .ps-stream-child-card:hover .stream-title {color:var(--pst-link)!important;}
html.ps-stream-view .ps-stream-child-card .ps-stream-child-count {display:inline-flex!important;align-items:center;align-self:flex-start;background:var(--pst-orange)!important;color:var(--pst-dark)!important;padding:5px 10px!important;border-radius:7px;margin:0!important;font:800 12px/1.3 var(--pst-font)!important;}
html.ps-stream-view .ps-stream-child-meta {font:500 15px/1.6 var(--pst-font)!important;color:var(--pst-muted)!important;margin:0!important;overflow-wrap:anywhere;}
html.ps-stream-view .ps-stream-child-meta[hidden] {display:none!important;}
html.ps-stream-view .ps-stream-child-cover {display:block;flex:0 0 26%;width:26%;max-width:180px;max-height:160px;object-fit:contain;border-radius:12px;}
html.ps-stream-view .ps-stream-child-card:focus-visible {outline:3px solid var(--pst-orange);outline-offset:-3px;}
html.ps-stream-view .gc-tasks-block {display:none!important;}

@media(max-width:900px){
 html.ps-stream-view .ps-stream-header-inner {grid-template-columns:minmax(0,1fr) auto;padding:16px 20px;gap:15px;}
 html.ps-stream-view .lx-training-search {grid-column:1/-1;grid-row:2;}
 html.ps-stream-view .ps-stream-hero-inner {padding:30px 20px;gap:20px;}
 html.ps-stream-view .ps-stream-hero-inner.has-cover {grid-template-columns:minmax(0,1fr) minmax(110px,26%);}
 html.ps-stream-view .ps-stream-content {padding:30px 20px 50px!important;}
}
@media(max-width:600px){
 html.ps-stream-view .ps-stream-header-inner {padding:12px 14px;gap:12px;}
 html.ps-stream-view .ps-stream-brand {font-size:21px;}
 html.ps-stream-view .ps-stream-brand img {max-height:40px;}
 html.ps-stream-view .ps-stream-support {font-size:12px;min-height:42px;padding:9px 12px;white-space:normal;}
 html.ps-stream-view .ps-stream-support svg {width:18px;height:18px;}
 html.ps-stream-view .ps-stream-hero-inner,html.ps-stream-view .ps-stream-hero-inner.has-cover {grid-template-columns:minmax(0,1fr);padding:24px 14px;gap:16px;}
 html.ps-stream-view .ps-stream-hero-cover {width:100%;max-width:260px;aspect-ratio:4/3;}
 html.ps-stream-view .ps-stream-content {padding:24px 14px 80px!important;}
 html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a {min-height:120px;padding:18px!important;gap:10px;}
 html.ps-stream-view .ps-stream-content .lesson-list .ps-stream-lesson-cover-cell {width:75px!important;padding-left:10px!important;}
 html.ps-stream-view .ps-stream-content .lesson-list .ps-stream-lesson-cover-cell img {width:65px!important;}
 html.ps-stream-view .ps-stream-child-card {padding:20px!important;min-height:120px;gap:12px;}
 html.ps-stream-view .ps-stream-child-cover {max-width:95px;}
 html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-accomplished:has(> a.item-a > .state-icon-block .fa-check) > a.item-a {padding-bottom:50px!important;}
 html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-accomplished:has(> a.item-a > .state-icon-block .fa-check) > a.item-a > .ps-stream-completed-label {right:18px;bottom:15px;max-width:calc(100% - 36px);font-size:12px;}
}
@media(prefers-reduced-motion:reduce){html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a,html.ps-stream-view .xdget-trainingList tr.training-row {transition:none!important;}}

@media(prefers-reduced-motion:reduce){html.ps-stream-view .xdget-trainingList tr.training-row:hover {transform:none!important;}}

/* PhysioSapiens: фирменные элементы и минимальная анимация. */
html.ps-stream-view .ps-stream-header,
html.ps-stream-view .ps-stream-hero { background: #302e2c !important; }
html.ps-stream-view .ps-stream-support {
  background:#f58220!important;border-color:#f58220!important;color:#302e2c!important;
}
html.ps-stream-view .ps-stream-support:hover {
  background:#ff9b42!important;border-color:#ff9b42!important;color:#302e2c!important;
}
html.ps-stream-view .ps-stream-hero .page-actions .btn-success {
  background:#f58220!important;color:#302e2c!important;
}
html.ps-stream-view .ps-stream-hero .page-actions .btn-success:hover {
  background:#ff9b42!important;
}
html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a,
html.ps-stream-view .xdget-trainingList tr.training-row {box-shadow:0 3px 14px rgba(48,46,44,.055)!important;}
html.ps-stream-view .ps-stream-content .lesson-list > li > a.item-a:hover,
html.ps-stream-view .xdget-trainingList tr.training-row:hover {
  border-color:#f5b57d!important; box-shadow:0 8px 24px rgba(48,46,44,.11)!important;
}
html.ps-stream-view .ps-stream-content .lesson-list .lesson-list__video-watched {
  /* GetCourse exclusively controls visibility. */
  background:#fff0df!important;color:#9c470f!important;
}
html.ps-stream-view .ps-stream-content .lesson-list .user-state-label {
  background:#fff0df!important;color:#9c470f!important;
}

/* ================================================================
   PhysioSapiens | WebView тренинга/подтренинга v3.0
   Только упрощённая страница приложения (.gc-chtm-webview).
   Браузерный вид из v1.2 выше остаётся без изменений.
   ================================================================ */
html.ps-stream-webview {
  --ps-wv-primary:#302e2c;
  --ps-wv-link:#9c470f;
  --ps-wv-orange:#f58220;
  --ps-wv-bg:#f3f0eb;
  --ps-wv-line:#e6dfd6;
  --ps-wv-text:#302e2c;
  --ps-wv-muted:#766f69;
}
html.ps-stream-webview body.gc-chtm-webview {
  margin:0!important; padding:0!important; min-width:0!important;
  background:var(--ps-wv-bg)!important;
  color:var(--ps-wv-text); font-family:Manrope,Arial,sans-serif;
  overflow-x:hidden;
}
html.ps-stream-webview body.gc-chtm-webview *,
html.ps-stream-webview body.gc-chtm-webview *::before,
html.ps-stream-webview body.gc-chtm-webview *::after {box-sizing:border-box;}
html.ps-stream-webview .ps-wv-stream-head {
  background:var(--ps-wv-primary); color:#fff;
  padding:0 max(16px,calc((100% - 1320px)/2));
}
html.ps-stream-webview .ps-wv-stream-head-inner {
  display:grid;grid-template-columns:minmax(150px,220px) minmax(0,1fr) auto;
  gap:20px;align-items:center;min-height:90px;padding:16px 20px;
}
html.ps-stream-webview .ps-wv-stream-brand {display:flex;align-items:center;color:#fff!important;text-decoration:none!important;font-weight:800;font-size:25px;min-width:0;}
html.ps-stream-webview .ps-wv-stream-brand img {display:block;width:auto;max-width:100%;max-height:54px;object-fit:contain;}
html.ps-stream-webview .ps-wv-search {display:flex;position:relative;min-width:0;}
html.ps-stream-webview .ps-wv-search input {width:100%!important;min-width:0!important;height:54px!important;padding:12px 16px 12px 48px!important;border:1px solid transparent!important;border-radius:12px!important;background:#fff!important;color:#302e2c!important;box-shadow:none!important;font:500 15px/1.3 Manrope,Arial,sans-serif!important;}
html.ps-stream-webview .ps-wv-search input:focus {outline:2px solid var(--ps-wv-orange)!important;outline-offset:1px;}
html.ps-stream-webview .ps-wv-search-icon {position:absolute;left:17px;top:50%;transform:translateY(-50%);font-size:25px;color:#766f69;pointer-events:none;line-height:1;}
html.ps-stream-webview .ps-wv-stream-support {display:inline-flex;align-items:center;justify-content:center;min-height:54px;padding:12px 18px;border-radius:12px;background:#fff;color:var(--ps-wv-link)!important;font:700 14px/1.35 Manrope,Arial,sans-serif;text-decoration:none!important;white-space:nowrap;text-align:center;}
html.ps-stream-webview .ps-wv-stream-support:hover {background:#fff1df;color:var(--ps-wv-link)!important;}
html.ps-stream-webview .ps-wv-stream-hero {padding:24px 20px 34px;}
html.ps-stream-webview .ps-wv-stream-hero h1 {margin:0!important;color:#fff!important;font:750 clamp(27px,3.8vw,45px)/1.18 Manrope,Arial,sans-serif!important;overflow-wrap:anywhere;}
html.ps-stream-webview .ps-wv-stream-meta {margin-top:13px;color:#f3eee9;font-size:15px;}

/* Для WebView GetCourse выводит .xdget-root прямо в body — без .gc-main-content. */
html.ps-stream-webview body.gc-chtm-webview > .xdget-root {
  width:100%!important;max-width:1320px!important;min-width:0!important;
  margin:0 auto!important;padding:32px 28px 64px!important;
  background:transparent!important;
}
html.ps-stream-webview .xdget-root :is(.xdget-training,.xdget-lessonList,.xdget-trainingList,.xdget-container) {min-width:0!important;max-width:100%!important;}
html.ps-stream-webview .xdget-root .xdget-row.ps-wv-full-row {display:block!important;margin:0!important;}
html.ps-stream-webview .xdget-root .xdget-row.ps-wv-full-row > .xdget-col:not(.ps-wv-empty-col) {float:none!important;width:100%!important;max-width:100%!important;flex:none!important;padding:0!important;}
html.ps-stream-webview .xdget-root .xdget-row.ps-wv-full-row > .ps-wv-empty-col {display:none!important;}
html.ps-stream-webview .xdget-root .ps-wv-section-title {margin:0 0 20px;color:var(--ps-wv-text)!important;font:750 clamp(25px,3vw,35px)/1.25 Manrope,Arial,sans-serif!important;}
html.ps-stream-webview .xdget-root .xdget-lessonList,
html.ps-stream-webview .xdget-root .xdget-trainingList {margin:0 0 26px!important;width:100%!important;}
html.ps-stream-webview .xdget-root .lesson-sort-block {max-width:100%;}
html.ps-stream-webview .xdget-root .lesson-list {display:flex!important;flex-direction:column!important;gap:14px!important;list-style:none!important;margin:0!important;padding:0!important;border:0!important;background:transparent!important;}
html.ps-stream-webview .xdget-root .lesson-list > li {margin:0!important;padding:0!important;border:0!important;background:transparent!important;width:100%!important;}
html.ps-stream-webview .xdget-root .lesson-list > li > a.item-a {
  display:flex!important;align-items:center!important;position:relative;gap:20px;
  width:100%!important;min-width:0!important;min-height:142px!important;
  margin:0!important;padding:26px 28px!important;
  border:1px solid transparent!important;border-radius:22px!important;
  background:#fff!important;color:var(--ps-wv-text)!important;
  box-shadow:0 3px 14px rgba(48,46,44,.035)!important;
  text-decoration:none!important;transition:border-color .18s,box-shadow .18s;
}
html.ps-stream-webview .xdget-root .lesson-list > li > a.item-a:hover,
html.ps-stream-webview .xdget-root .lesson-list > li > a.item-a:focus-visible {border-color:#f5b57d!important;box-shadow:0 6px 18px rgba(48,46,44,.09)!important;outline:0;}
html.ps-stream-webview .xdget-root .lesson-list > li.user-state-accomplished > a.item-a {border-color:#80bfa5!important;}
html.ps-stream-webview .xdget-root .lesson-list .state-icon-block {display:none!important;}
html.ps-stream-webview .xdget-root .lesson-list .info {position:static!important;float:none!important;flex:1 1 auto;min-width:0!important;max-width:100%!important;width:auto!important;margin:0!important;padding:0!important;}
html.ps-stream-webview .xdget-root .lesson-list .info table,
html.ps-stream-webview .xdget-root .lesson-list .info tbody,
html.ps-stream-webview .xdget-root .lesson-list .info tr {display:block!important;max-width:100%!important;width:100%!important;border:0!important;background:transparent!important;margin:0!important;}
html.ps-stream-webview .xdget-root .lesson-list .info td {display:block!important;float:none!important;max-width:100%!important;width:100%!important;height:auto!important;border:0!important;padding:0!important;background:transparent!important;}
html.ps-stream-webview .xdget-root .lesson-list .info .vmiddle {display:flex;flex-direction:column;align-items:flex-start;gap:10px;min-width:0;}
html.ps-stream-webview .xdget-root .lesson-list .info .link.title {display:block!important;font:750 clamp(19px,2.1vw,26px)/1.3 Manrope,Arial,sans-serif!important;color:var(--ps-wv-text)!important;white-space:normal!important;overflow-wrap:anywhere;}
html.ps-stream-webview .xdget-root .lesson-list .description {color:var(--ps-wv-muted)!important;font-size:15px!important;line-height:1.5!important;overflow-wrap:anywhere;}
html.ps-stream-webview .xdget-root .lesson-list .lesson-list__video-watched {vertical-align:middle;margin:6px 0 0 0;padding:4px 8px;border-radius:6px;background:#fff0df;color:var(--ps-wv-link);font-size:12px;font-weight:600;white-space:nowrap;}
html.ps-stream-webview .xdget-root .lesson-list .user-state-label {display:inline-block;padding:5px 9px!important;border-radius:7px;background:#fff0df!important;color:var(--ps-wv-link)!important;font-size:13px;}
html.ps-stream-webview .xdget-root .lesson-list .ps-wv-done {
  position:absolute;bottom:14px;right:23px;display:block;padding:5px 10px;
  border-radius:8px;background:#e6f6ef;color:#15704c;font-weight:700;font-size:12px;
}
html.ps-stream-webview .xdget-root .lesson-list li:has(> a > .ps-wv-done) > a.item-a {padding-bottom:58px!important;}

/* Подтренинги оформляются как карточки тренингов на главной странице. */
html.ps-stream-webview .xdget-root .xdget-trainingList :is(.stream-table,tbody) {display:block!important;width:100%!important;max-width:100%!important;}
html.ps-stream-webview .xdget-root .xdget-trainingList tr.training-row {display:block!important;width:100%!important;margin:0 0 16px!important;border:0!important;border-radius:22px!important;background:#fff!important;overflow:hidden!important;box-shadow:0 3px 14px rgba(48,46,44,.035)!important;}
html.ps-stream-webview .xdget-root .xdget-trainingList tr.training-row > td {display:block!important;width:100%!important;padding:0!important;border:0!important;}
html.ps-stream-webview .xdget-root .xdget-trainingList a.ps-wv-child-card {display:flex!important;flex-direction:column;align-items:flex-start;gap:10px;min-height:148px;width:100%;padding:25px 28px!important;color:var(--ps-wv-text)!important;text-decoration:none!important;border:1px solid transparent;border-radius:22px;}
html.ps-stream-webview .xdget-root .xdget-trainingList a.ps-wv-child-card:hover {border-color:#f5b57d!important;}
html.ps-stream-webview .xdget-root .xdget-trainingList .stream-title {font:750 clamp(20px,2.2vw,28px)/1.3 Manrope,Arial,sans-serif!important;color:var(--ps-wv-text)!important;white-space:normal!important;overflow-wrap:anywhere;}
html.ps-stream-webview .xdget-root .xdget-trainingList a.ps-wv-child-card b,
html.ps-stream-webview .xdget-root .xdget-trainingList a.ps-wv-child-card strong {display:inline-block;padding:5px 11px;border-radius:7px;background:var(--ps-wv-orange);color:#302e2c;font:700 13px/1.3 Manrope,Arial,sans-serif;}
html.ps-stream-webview .xdget-root .xdget-trainingList a.ps-wv-child-card img {max-width:180px;height:auto;border-radius:12px;}
html.ps-stream-webview .xdget-root .alert {border-radius:12px;max-width:100%;}
@media(max-width:760px) {
  html.ps-stream-webview .ps-wv-stream-head-inner {grid-template-columns:minmax(0,1fr) auto;gap:12px;padding:14px 10px;}
  html.ps-stream-webview .ps-wv-search {grid-column:1/-1;grid-row:2;}
  html.ps-stream-webview .ps-wv-stream-support {min-height:42px;padding:10px 12px;white-space:normal;font-size:12px;}
  html.ps-stream-webview .ps-wv-stream-hero {padding:14px 10px 24px;}
  html.ps-stream-webview body.gc-chtm-webview > .xdget-root {padding:20px 16px 54px!important;}
  html.ps-stream-webview .xdget-root .lesson-list > li > a.item-a {min-height:115px!important;gap:10px;padding:18px!important;border-radius:16px!important;}
  html.ps-stream-webview .xdget-root .lesson-list .info .link.title {font-size:19px!important;}
  html.ps-stream-webview .xdget-root .lesson-list .description {font-size:13px!important;}
  html.ps-stream-webview .xdget-root .xdget-trainingList a.ps-wv-child-card {padding:18px!important;min-height:120px;}
}
@media(max-width:390px) {
  html.ps-stream-webview .ps-wv-stream-brand img {max-height:38px;}
  html.ps-stream-webview .ps-wv-stream-support {padding:9px;font-size:11px;}
  html.ps-stream-webview .ps-wv-search input {height:46px!important;font-size:13px!important;}
}


/* PhysioSapiens v3.0 | Video watched: never force display — GetCourse controls it. */
/* Keep the status span inside its native .link.title so GC visibility selectors work. */
html.ps-stream-view .ps-stream-content .lesson-list .info .link.title,
html.ps-stream-webview .xdget-root .lesson-list .info .link.title {
  display:flex!important;
  flex-direction:column!important;
  align-items:flex-start!important;
  justify-content:flex-start!important;
  gap:7px!important;
  border:0!important;
  border-left:0!important;
  background:transparent!important;
  box-shadow:none!important;
  text-transform:none!important;
}
html.ps-stream-view .ps-stream-content .lesson-list .lesson-list__video-watched,
html.ps-stream-webview .xdget-root .lesson-list .lesson-list__video-watched {
  /* DO NOT set display here, including !important. */
  order:-1;
  flex:none;
  align-self:flex-start;
  margin:0!important;
  padding:5px 10px!important;
  border:0!important;
  border-radius:8px!important;
  background:#fff0df!important;
  color:#9c470f!important;
  font:650 12px/1.3 Manrope,Arial,sans-serif!important;
  text-transform:none!important;
  white-space:normal;
  box-shadow:none!important;
}
/* Remove leftover vertical stroke in the left part of each lesson card. */
html.ps-stream-webview .xdget-root .lesson-list :is(.vmiddle,.link.title,.item-main-td,.info),
html.ps-stream-view .ps-stream-content .lesson-list :is(.vmiddle,.link.title,.item-main-td,.info) {
  border-left:0!important;
  box-shadow:none!important;
}
html.ps-stream-webview .xdget-root .lesson-list :is(.vmiddle,.link.title,.item-main-td)::before,
html.ps-stream-webview .xdget-root .lesson-list :is(.vmiddle,.link.title,.item-main-td)::after,
html.ps-stream-view .ps-stream-content .lesson-list :is(.vmiddle,.link.title,.item-main-td)::before,
html.ps-stream-view .ps-stream-content .lesson-list :is(.vmiddle,.link.title,.item-main-td)::after {
  content:none!important;
  display:none!important;
}
/* Support icon for WebView header. */
html.ps-stream-webview .ps-wv-stream-support {
  gap:10px;
}
html.ps-stream-webview .ps-wv-stream-support svg {
  display:block!important;
  flex:0 0 21px;
  width:21px;
  height:21px;
  fill:none;
  stroke:currentColor;
}
@media(max-width:760px){
  html.ps-stream-webview .ps-wv-stream-support svg {flex-basis:18px;width:18px;height:18px;}
}

/* PhysioSapiens | Финальные настройки WebView */
html.ps-stream-webview .ps-wv-stream-head {background:#302e2c!important;color:#fff!important;}
html.ps-stream-webview .ps-wv-stream-support {
  display:inline-flex!important;gap:10px;
  background:#f58220!important;color:#302e2c!important;
}
html.ps-stream-webview .ps-wv-stream-support:hover {background:#ff9b42!important;color:#302e2c!important;}
html.ps-stream-webview .xdget-root .lesson-list > li > a.item-a,
html.ps-stream-webview .xdget-root .xdget-trainingList tr.training-row {box-shadow:0 3px 14px rgba(48,46,44,.06)!important;}
html.ps-stream-webview .xdget-root .lesson-list > li > a.item-a:hover,
html.ps-stream-webview .xdget-root .xdget-trainingList a.ps-wv-child-card:hover {
  border-color:#f5b57d!important;
}
html.ps-stream-webview .xdget-root .lesson-list .lesson-list__video-watched {
  /* Показом плашки управляет GetCourse. */
  background:#fff0df!important;color:#9c470f!important;
}
html.ps-stream-webview .xdget-root .lesson-list .user-state-label {
  background:#fff0df!important;color:#9c470f!important;
}
/* PhysioSapiens | Список уроков / стоп-урок — дополнительный CSS v3.1
   Плашка «Необходимо выполнить задание (стоп-урок)» над заголовком.
   Без изменения JavaScript или состояний GetCourse. */

/* Собираем текст карточки в вертикальную колонку только у стоп-уроков. */
html:is(.ps-stream-view, .ps-stream-webview)
.xdget-lessonList .lesson-list > li.user-state-need_accomplish
.info .vmiddle:has(> .user-state-label.is-stop-lesson) {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
}

/* Убираем возможное абсолютное позиционирование штатной плашки GetCourse. */
html:is(.ps-stream-view, .ps-stream-webview)
.xdget-lessonList .lesson-list > li.user-state-need_accomplish
.info .vmiddle > .user-state-label.is-stop-lesson {
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    clear: none !important;
    order: -2 !important;
    display: inline-flex !important;
    align-items: center !important;
    align-self: flex-start !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 100% !important;
    height: auto !important;
    min-height: 0 !important;
    margin: 0 0 2px !important;
    padding: 6px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff0df !important;
    color: #9c470f !important;
    font: 650 12px/1.4 Manrope, Arial, sans-serif !important;
    text-align: left !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
    box-shadow: none !important;
}

/* Заголовок и лектор идут после статуса. */
html:is(.ps-stream-view, .ps-stream-webview)
.xdget-lessonList .lesson-list > li.user-state-need_accomplish
.info .vmiddle:has(> .user-state-label.is-stop-lesson) > .link.title {
    order: 0 !important;
    margin: 0 !important;
}

html:is(.ps-stream-view, .ps-stream-webview)
.xdget-lessonList .lesson-list > li.user-state-need_accomplish
.info .vmiddle:has(> .user-state-label.is-stop-lesson) > .description {
    order: 1 !important;
    margin: 0 !important;
}
/* PhysioSapiens | Список уроков — плашка «Есть задание» над названием
   Дополнение CSS v3.2 для браузера и GetCourse WebView.
   Работает только с уроками в состоянии user-state-has_mission. */

html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-has_mission .info .vmiddle,
html.ps-stream-webview .xdget-root .lesson-list > li.user-state-has_mission .info .vmiddle {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
    justify-content: flex-start !important;
    gap: 8px !important;
    min-width: 0 !important;
}

/* GetCourse уже выводит эту плашку перед названием.
   Переопределяем только визуальный порядок и позиционирование. */
html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-has_mission .info .vmiddle > .user-state-label,
html.ps-stream-webview .xdget-root .lesson-list > li.user-state-has_mission .info .vmiddle > .user-state-label {
    order: -3 !important;
    position: static !important;
    inset: auto !important;
    transform: none !important;
    float: none !important;
    align-self: flex-start !important;
    display: inline-flex !important;
    align-items: center !important;
    box-sizing: border-box !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 !important;
    padding: 5px 9px !important;
    border-radius: 8px !important;
    background: #fff0df !important;
    color: #9c470f !important;
    font: 650 12px/1.4 Manrope, Arial, sans-serif !important;
    white-space: normal !important;
}

html.ps-stream-view .ps-stream-content .lesson-list > li.user-state-has_mission .info .vmiddle > .link.title,
html.ps-stream-webview .xdget-root .lesson-list > li.user-state-has_mission .info .vmiddle > .link.title {
    order: -2 !important;
    margin: 0 !important;
}
/* =============================================================
   PhysioSapiens | Список уроков — дата НАД названием / v3.3
   Добавить ПОСЛЕ правок «стоп-урок» и «Есть задание».
   Только CSS, JS не меняем.
   ============================================================= */

/* Основная браузерная версия GetCourse */
html.ps-stream-view .ps-stream-content .lesson-list .info .vmiddle {
    display: flex !important;
    flex-direction: column !important;
    align-items: flex-start !important;
}
html.ps-stream-view .ps-stream-content .lesson-list .info .vmiddle > .user-state-label.has-start-at.lesson-date {
    box-sizing: border-box !important;
    display: inline-flex !important;
    order: -3 !important; /* Выше заголовка с order:-2 */
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 7px !important;
    padding: 5px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff0df !important;
    color: #9c470f !important;
    font: 650 12px/1.4 Manrope, Arial, sans-serif !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

/* Мобильная WebView-страница тренинга */
html.ps-stream-webview .xdget-root .lesson-list .info .vmiddle > .user-state-label.has-start-at.lesson-date {
    box-sizing: border-box !important;
    display: inline-flex !important;
    order: -3 !important;
    align-self: flex-start !important;
    width: auto !important;
    max-width: 100% !important;
    margin: 0 0 7px !important;
    padding: 5px 10px !important;
    border: 0 !important;
    border-radius: 8px !important;
    background: #fff0df !important;
    color: #9c470f !important;
    font: 650 12px/1.4 Manrope, Arial, sans-serif !important;
    white-space: normal !important;
    overflow-wrap: anywhere !important;
}

