/* v0.9: illustrations visible again (the prototype kept them at 10–18% opacity) + weekline scroll */
.section-art{position:absolute!important;top:0!important;right:0!important;bottom:0!important;left:auto!important;width:34%!important;height:100%!important;opacity:1!important;border-radius:0!important;overflow:hidden;
  -webkit-mask-image:linear-gradient(to right,transparent 0,#000 42%);mask-image:linear-gradient(to right,transparent 0,#000 42%)}
.section-art img{width:100%;height:100%;object-fit:cover;filter:none!important}
.section-head>div:first-child{max-width:64%!important}
.dash-focus-art{opacity:.26!important}
.art-side img{opacity:.55!important;width:42%!important;-webkit-mask-image:linear-gradient(to right,transparent,#000 50%);mask-image:linear-gradient(to right,transparent,#000 50%)}
.illustrated-panel>*:not(.art-bg){position:relative;z-index:1}
.lesson-image img{object-fit:cover}
.teacher-lesson-art{position:absolute;right:0;top:0;bottom:0;width:30%;overflow:hidden;-webkit-mask-image:linear-gradient(to right,transparent,#000 45%);mask-image:linear-gradient(to right,transparent,#000 45%)}
.teacher-lesson-art img{width:100%;height:100%;object-fit:cover}
.teacher-lesson-top>*:not(.teacher-lesson-art){position:relative;z-index:1;max-width:66%}

/* weekline: always scrolls sideways, never wider than the screen */
.dashboard-weekline{min-width:0;max-width:100%;overflow:hidden}
.weekline-scroll{overflow-x:auto!important;overflow-y:hidden;max-width:100%;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity;scrollbar-width:thin;margin:0!important;padding:0 0 6px!important}
.weekline-scroll .weekline{min-width:0!important;width:max-content;min-width:100%!important}
.weekline .week-dot{flex:0 0 56px!important;scroll-snap-align:center}

@media (max-width:680px){
  .section-head{display:grid!important;grid-template-columns:minmax(0,1fr) 96px;gap:12px;align-items:start}
  .section-head>div:first-child{max-width:none!important}
  .section-art{position:relative!important;inset:auto!important;width:96px!important;height:124px!important;border-radius:18px!important;-webkit-mask-image:none;mask-image:none;align-self:start}
  .section-head .page-title{font-size:26px!important}
  .dash-focus-art{opacity:.22!important}
  .art-side img{opacity:.4!important}
  .teacher-lesson-art{position:relative;width:100%;height:180px;border-radius:16px;margin-top:12px;-webkit-mask-image:none;mask-image:none}
  .teacher-lesson-top>*:not(.teacher-lesson-art){max-width:none}
  .weekline .week-dot{flex-basis:48px!important}
}

/* home: the current lesson carries its picture */
.dash-lesson{overflow:hidden}
.dash-lesson-art{margin:-19px -19px 14px;height:170px;overflow:hidden;border-radius:inherit;border-bottom-left-radius:0;border-bottom-right-radius:0}
.dash-lesson-art img{width:100%;height:100%;object-fit:cover;display:block}
@media (max-width:680px){.dash-lesson-art{height:150px}}

/* map: "Линия курса по неделям" scrolls inside its card instead of widening the page;
   each segment takes the colour of its point (tension red · searching beige · support green) */
.pattern-card{min-width:0;max-width:100%;overflow:hidden}
.journey-track{padding:24px 0 18px!important;min-width:0}
.journey-track::before{display:none!important}
.journey-points{overflow-x:auto;overflow-y:hidden;-webkit-overflow-scrolling:touch;overscroll-behavior-x:contain;scroll-snap-type:x proximity;justify-content:flex-start!important;gap:0!important;padding:0 4px 8px;scrollbar-width:thin}
.journey-point{flex:1 0 92px!important;scroll-snap-align:center;padding:0 4px!important;display:flex!important;flex-direction:column;justify-content:flex-start;align-items:center}
.journey-week{white-space:nowrap;line-height:14px;height:14px}
.journey-point::before{content:"";position:absolute;left:0;right:0;top:60px;height:4px;background:#e6d8d2;z-index:0}
.journey-point:first-child::before{left:50%}
.journey-point:last-child::before{right:50%}
.journey-point[data-kind="tension"]::before{background:rgba(197,94,92,.45)}
.journey-point[data-kind="neutral"]::before{background:rgba(190,159,124,.45)}
.journey-point[data-kind="support"]::before{background:rgba(91,141,115,.45)}
.journey-point>*{position:relative;z-index:1}
.journey-detail-grid{grid-template-columns:1fr 1fr}
@media (max-width:680px){.journey-detail-grid{grid-template-columns:1fr}.journey-point{flex-basis:96px!important}}
