/* Mendflow «Развитие»: шапка с кольцом, «Сегодня», «Сессия», «Карта навыков» (js/growth.js).
   Селектор по id перекрывает базовые стили .growth-view из style.css и shell-comfort-sections.css. */
#growthView { --gr-violet: #6a45e0; --gr-lav: #f0ebff; --gr-blue: #e6effd; --gr-pink: #fde4ec; --gr-warm: #fdf0d8; --gr-mint: #dff5ea; --gr-peach: #fdeadb; --gr-row: #f4f2f8; }
[data-theme="dark"] #growthView { --gr-violet: #7d5cf0; --gr-lav: #2a2350; --gr-blue: #1d2c55; --gr-pink: #4a2038; --gr-warm: #40331a; --gr-mint: #173a2d; --gr-peach: #43301d; --gr-row: #241f33; }
#growthView.panel { padding: 0 !important; border: 0; border-radius: 0 !important; background: transparent; box-shadow: none; }
#growthView .gr-wrap { container-type: inline-size; display: flex; flex-direction: column; gap: 16px; }
#growthView .gr-body { display: flex; flex-direction: column; gap: 16px; min-width: 0; }

/* Шапка */
#growthView .gr-hero { position: relative; display: flex; flex-wrap: wrap; align-items: center; justify-content: space-between; gap: 20px 28px; overflow: hidden; padding: 28px; border: 0; border-radius: 28px; background: linear-gradient(120deg, #6a3fe0 0%, #6a4fe6 55%, #4f6bdc 100%); box-shadow: none; color: #fff; }
#growthView .gr-hero-net { position: absolute; inset: 0 0 0 auto; width: 60%; height: 100%; pointer-events: none; }
#growthView .gr-hero-main { position: relative; flex: 1 1 340px; min-width: 0; }
#growthView .gr-kicker { display: inline-block; padding: 5px 12px; border-radius: 999px; background: rgba(255, 255, 255, .18); color: #fff; font-size: 11.5px; font-weight: 700; letter-spacing: .08em; }
#growthView .gr-title { margin: 12px 0 10px; background: none; color: #fff; font-size: clamp(26px, 4.2cqw, 40px); font-weight: 800; line-height: 1.1; letter-spacing: -.03em; -webkit-text-fill-color: currentColor; }
#growthView .gr-sub { max-width: 34rem; margin: 0 0 16px; color: rgba(255, 255, 255, .86); font-size: 14.5px; line-height: 1.5; }
#growthView .gr-tabs { display: flex; width: fit-content; flex-wrap: nowrap; gap: 2px; max-width: 100%; margin: 0; padding: 4px; border: 0; border-radius: 999px; background: rgba(255, 255, 255, .16); overflow-x: auto; scrollbar-width: none; }
#growthView .gr-tabs::before { display: none; }
#growthView .gr-tab { display: inline-flex; flex: 0 0 auto; align-items: center; gap: 6px; width: auto; min-height: 40px; padding: 8px 15px; border: 0; border-radius: 999px; background: transparent; color: #fff; font-size: 13.5px; font-weight: 600; cursor: pointer; }
#growthView .gr-tab:hover { background: rgba(255, 255, 255, .14); color: #fff; }
#growthView .gr-tab.is-active { background: #fff; color: #5a35d6; }
#growthView .gr-tab:focus-visible { outline: 2px solid #fff; outline-offset: 2px; }
#growthView .gr-tab-lock { display: inline-flex; }
#growthView .gr-tab-lock svg { width: 13px; height: 13px; }

#growthView .gr-hero-stats { position: relative; display: flex; align-items: center; gap: 18px; padding: 16px 20px; border-radius: 20px; background: rgba(255, 255, 255, .13); }
#growthView .gr-ring { position: relative; width: 104px; height: 104px; flex: 0 0 auto; }
#growthView .gr-ring svg { display: block; width: 100%; height: 100%; }
#growthView .gr-ring-value { position: absolute; inset: 0; display: flex; flex-direction: column; align-items: center; justify-content: center; line-height: 1.1; }
#growthView .gr-ring-value strong { font-size: 26px; font-weight: 800; }
#growthView .gr-ring-value small { font-size: 11px; opacity: .85; }
#growthView .gr-hero-legend { display: grid; gap: 7px; margin: 0; padding: 0; list-style: none; font-size: 13px; }
#growthView .gr-hero-legend li { display: flex; align-items: center; gap: 8px; }
#growthView .gr-hero-legend i { flex: 0 0 auto; width: 9px; height: 9px; border-radius: 3px; }
#growthView .gr-hero-legend strong { min-width: 22px; font-size: 15px; font-weight: 800; font-variant-numeric: tabular-nums; }

/* Общие карточки */
#growthView .gr-card { position: relative; min-width: 0; margin: 0; padding: 20px; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); box-shadow: none; }
#growthView .gr-card-title { margin: 0 0 8px; color: var(--ink); font-size: 18px; font-weight: 800; letter-spacing: -.01em; }
#growthView .gr-card-title--ico { display: flex; align-items: center; gap: 12px; }
#growthView .gr-card-row { display: flex; flex-wrap: wrap; align-items: baseline; justify-content: space-between; gap: 4px 16px; margin-bottom: 10px; }
#growthView .gr-card-row .gr-card-title { margin: 0; }
#growthView .gr-card-text { color: var(--ink-soft); font-size: 14px; line-height: 1.5; }
#growthView .gr-card-hint { margin: 0; color: var(--ink-soft); font-size: 12.5px; line-height: 1.45; }
#growthView .gr-card-ico { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 40px; height: 40px; border-radius: 12px; background: var(--surface); color: var(--gr-violet); }
#growthView .gr-card--blue { border-color: transparent; background: var(--gr-blue); }
#growthView .gr-card--iconed { padding-left: 74px; }
#growthView .gr-card--iconed > .gr-card-ico { position: absolute; top: 20px; left: 20px; }
#growthView .gr-card--iconed .gr-empty-icon { display: none; }
#growthView .gr-tone--lav { background: var(--gr-lav); color: var(--gr-violet); }
#growthView .gr-tone--pink { background: var(--gr-pink); color: #c0325f; }
#growthView .gr-tone--blue { background: var(--gr-blue); color: #2f6bdc; }
#growthView .gr-tone--green { background: var(--gr-mint); color: #0e8a5f; }
#growthView .gr-tone--orange { background: var(--gr-peach); color: #c8560e; }
[data-theme="dark"] #growthView .gr-tone--lav { color: #c4b5fd; }
[data-theme="dark"] #growthView .gr-tone--pink { color: #f7a8c4; }
[data-theme="dark"] #growthView .gr-tone--blue { color: #9dbdf9; }
[data-theme="dark"] #growthView .gr-tone--green { color: #7eeab8; }
[data-theme="dark"] #growthView .gr-tone--orange { color: #fbc48d; }
#growthView .gr-notice { display: flex; align-items: center; gap: 12px; margin: 0; padding: 12px 16px; border: 0; border-radius: 16px; background: var(--gr-lav); color: var(--ink); font-size: 13.5px; font-weight: 500; line-height: 1.4; }
#growthView .gr-notice--warm { background: var(--gr-warm); }
#growthView .gr-legend { margin: 0; }
#growthView .primary-button { background: var(--gr-violet); box-shadow: none; color: #fff; border-radius: 999px; }
#growthView .ghost-button { border: 1px solid var(--border); background: var(--surface); box-shadow: none; color: var(--ink); border-radius: 999px; }

/* Сегодня */
#growthView .gr-today { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; }
@container (min-width: 780px) {
  #growthView .gr-today { grid-template-columns: minmax(0, 1.75fr) minmax(0, 1fr); }
  #growthView .gr-card--next { grid-row: span 2; }
}
#growthView .gr-card--wide { grid-column: 1 / -1; }
#growthView .gr-card--next { display: flex; flex-direction: column; justify-content: center; align-items: flex-start; gap: 10px; overflow: hidden; padding: 28px; padding-right: min(36%, 190px); border-color: transparent; background: var(--gr-lav); }
#growthView .gr-next-art { position: absolute; right: 0; bottom: 0; width: 190px; height: 190px; pointer-events: none; }
[data-theme="dark"] #growthView .gr-next-art circle:first-child { fill: #3a3170; }
#growthView .gr-card-kicker { color: var(--gr-violet); font-size: 11.5px; font-weight: 800; letter-spacing: .08em; text-transform: uppercase; }
[data-theme="dark"] #growthView .gr-card-kicker { color: #c4b5fd; }
#growthView .gr-card--next .gr-card-title { margin: 0; font-size: clamp(20px, 2.8cqw, 26px); }
#growthView .gr-card--next .gr-card-text { margin: 0; color: var(--ink); }
#growthView .gr-card--next p:first-of-type { padding: 7px 12px; border-radius: 12px; background: var(--surface); }
#growthView .gr-card-actions { display: flex; flex-wrap: wrap; gap: 10px; margin-top: 6px; }
#growthView .gr-week-bar { height: 8px; margin: 0 0 12px; border-radius: 999px; background: var(--gr-row); }
#growthView .gr-week-bar > div { height: 100%; border-radius: inherit; background: var(--gr-violet); }
#growthView .gr-metric-chips { display: grid; grid-template-columns: repeat(3, minmax(0, 1fr)); gap: 8px; margin-bottom: 10px; }
#growthView .gr-metric-chip { display: flex; flex-direction: column; align-items: center; gap: 2px; padding: 10px 6px; border: 0; border-radius: 14px; font-size: 11.5px; font-weight: 600; line-height: 1.2; text-align: center; }
#growthView .gr-metric-chip strong { font-size: 20px; font-weight: 800; font-variant-numeric: tabular-nums; }
#growthView .gr-plan { display: flex; flex-direction: column; gap: 8px; margin: 0 0 10px; padding: 0; list-style: none; }
#growthView .gr-step { display: flex; flex-wrap: wrap; align-items: center; gap: 8px 14px; padding: 10px 12px; border: 0; border-radius: 16px; background: var(--gr-row); }
#growthView .gr-step-num { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 38px; height: 38px; border-radius: 10px; background: var(--gr-mint); color: #0e8a5f; font-weight: 800; }
#growthView .gr-step-num.is-soft { background: var(--gr-peach); color: #c8560e; }
[data-theme="dark"] #growthView .gr-step-num { color: #7eeab8; }
[data-theme="dark"] #growthView .gr-step-num.is-soft { color: #fbc48d; }
#growthView .gr-step-main { display: flex; flex: 1 1 200px; flex-direction: column; align-items: flex-start; gap: 3px; min-width: 0; }
#growthView .gr-step-title { color: var(--ink); font-size: 14.5px; font-weight: 700; text-align: left; line-height: 1.3; }
#growthView .gr-step-min { color: var(--ink-soft); font-size: 12.5px; font-weight: 600; white-space: nowrap; }
#growthView .gr-step .ghost-button { min-height: 40px; padding: 7px 14px; border-color: transparent; font-size: 13px; font-weight: 700; }

/* Сессия */
#growthView .gr-session-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container (min-width: 780px) { #growthView .gr-session-layout { grid-template-columns: minmax(0, 1.9fr) minmax(280px, 1fr); } }
#growthView .gr-session-main,
#growthView .gr-session-side { display: flex; flex-direction: column; gap: 16px; min-width: 0; }
#growthView .gr-session-main > .gr-card, #growthView .gr-session-side > * { flex: 0 0 auto; }
#growthView .gr-card--session { display: flex; flex-direction: row; flex-wrap: wrap; align-items: center; justify-content: flex-start; gap: 16px 20px; padding: 24px; border-color: transparent; background: var(--gr-pink); }
#growthView .gr-session-badge { display: flex; flex: 0 0 auto; flex-direction: column; align-items: center; width: 78px; padding: 12px 4px; border-radius: 18px; background: var(--surface); color: #c0325f; font-size: 11.5px; font-weight: 700; }
[data-theme="dark"] #growthView .gr-session-badge { color: #f7a8c4; }
#growthView .gr-session-badge strong { font-size: 26px; font-weight: 800; line-height: 1.1; }
#growthView .gr-session-copy { flex: 1 1 240px; width: auto; min-width: 0; }
#growthView .gr-session-copy .gr-card-text { color: var(--ink); }
#growthView .gr-field { display: block; color: var(--ink); font-size: 13px; font-weight: 700; }
#growthView .gr-field textarea,
#growthView .gr-field input { display: block; width: 100%; margin-top: 8px; padding: 10px 14px; border: 1px solid var(--border); border-radius: 14px; background: var(--gr-row); color: var(--ink); font: inherit; font-weight: 500; }
#growthView .gr-reflect .ghost-button { margin-top: 10px; }
#growthView .gr-catalog { display: flex; flex-wrap: wrap; align-items: flex-end; gap: 10px; }
#growthView .gr-catalog .gr-field { flex: 1 1 220px; min-width: 0; }
#growthView .gr-catalog button[type="submit"] { min-height: 44px; border: 0; background: var(--gr-violet); color: #fff; }
#growthView .gr-consent { display: flex; flex-direction: column; gap: 10px; }
#growthView .gr-consent .gr-card-title { margin: 0; }
#growthView .gr-check { display: flex; align-items: center; justify-content: space-between; flex-direction: row-reverse; gap: 12px; min-height: 44px; padding: 10px 12px; border-radius: 14px; background: var(--gr-row); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35; cursor: pointer; }
#growthView .gr-check input { flex: 0 0 auto; position: relative; width: 40px; height: 22px; margin: 0; border: 0; border-radius: 999px; background: color-mix(in srgb, var(--ink) 18%, transparent); appearance: none; -webkit-appearance: none; cursor: pointer; transition: background-color .15s ease; }
#growthView .gr-check input::after { content: ""; position: absolute; top: 2px; left: 2px; width: 18px; height: 18px; border-radius: 50%; background: #fff; transition: transform .15s ease; }
#growthView .gr-check input:checked { background: var(--gr-violet); }
#growthView .gr-check input:checked::after { transform: translateX(18px); }
#growthView .gr-check input:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#growthView .gr-consent button[type="submit"] { width: 100%; justify-content: center; }
#growthView .gr-card--blue input { background: var(--surface); }
#growthView .gr-card--blue form .ghost-button { margin-top: 10px; }

/* Карта навыков */
#growthView .gr-module-list { display: flex; gap: 8px; margin: 0; padding: 0 0 2px; overflow-x: auto; list-style: none; scrollbar-width: thin; }
#growthView .gr-module-list li { flex: 1 0 170px; min-width: 0; }
#growthView .gr-module { display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; height: 100%; padding: 14px 10px; border: 0; border-radius: 18px; background: none; color: var(--ink); text-align: center; cursor: pointer; }
#growthView .gr-module:hover { background: var(--gr-row); }
#growthView .gr-module.is-active { background: var(--gr-lav); }
#growthView .gr-module:focus-visible { outline: 2px solid var(--accent); outline-offset: 2px; }
#growthView .gr-module strong { font-size: 13.5px; font-weight: 700; line-height: 1.3; }
#growthView .gr-module small { color: var(--ink-soft); font-size: 12px; }
#growthView .gr-module-ico { position: relative; display: inline-flex; align-items: center; justify-content: center; width: 52px; height: 52px; border-radius: 50%; }
#growthView .gr-module.is-active .gr-module-ico { background: var(--gr-violet); color: #fff; }
#growthView .gr-module-ico b { position: absolute; top: -5px; right: -5px; display: inline-flex; align-items: center; justify-content: center; width: 22px; height: 22px; border-radius: 50%; background: #16131d; color: #fff; font-size: 11.5px; font-weight: 700; }

#growthView .gr-map-layout { display: grid; grid-template-columns: minmax(0, 1fr); gap: 16px; align-items: start; }
@container (min-width: 780px) { #growthView .gr-map-layout { grid-template-columns: minmax(0, 2.1fr) minmax(270px, 1fr); } }
#growthView .gr-map-main { display: flex; flex-direction: column; gap: 14px; min-width: 0; }
#growthView .gr-block-banner { display: flex; align-items: center; gap: 14px; padding: 14px 18px; border-radius: 18px; background: var(--gr-lav); }
#growthView .gr-block-banner-ico { display: inline-flex; flex: 0 0 auto; align-items: center; justify-content: center; width: 46px; height: 46px; border-radius: 14px; background: var(--gr-violet); color: #fff; }
#growthView .gr-block-title { margin: 0 0 2px; color: var(--ink); font-size: 17px; font-weight: 800; }
#growthView .gr-block-desc { margin: 0; color: var(--ink-soft); font-size: 13px; line-height: 1.4; }
#growthView .gr-topics { display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 210px), 1fr)); gap: 12px; }
#growthView .gr-topic { min-width: 0; padding: 0; overflow: hidden; border: 1.5px solid var(--border); border-radius: 18px; background: var(--surface); box-shadow: none; }
#growthView .gr-topic.is-selected { border-color: var(--gr-violet); }
#growthView .gr-topic-head { display: flex; flex-direction: column; align-items: stretch; gap: 10px; width: 100%; height: 100%; padding: 14px; border: 0; background: none; color: var(--ink); text-align: left; cursor: pointer; }
#growthView .gr-topic-head:focus-visible { outline: 2px solid var(--accent); outline-offset: -2px; }
#growthView .gr-topic-top { display: flex; align-items: center; justify-content: space-between; gap: 8px; }
#growthView .gr-topic-ico,
#growthView .gr-side-ico { display: inline-flex; align-items: center; justify-content: center; border-radius: 12px; background: var(--gr-lav); color: var(--gr-violet); }
#growthView .gr-topic-ico { width: 36px; height: 36px; }
[data-theme="dark"] #growthView .gr-topic-ico { color: #c4b5fd; }
#growthView .gr-topic-name { font-size: 14.5px; font-weight: 700; line-height: 1.32; }
#growthView .gr-topic-pips { display: flex; flex-wrap: wrap; gap: 4px; }
#growthView .gr-pip { display: inline-flex; align-items: center; justify-content: center; width: 28px; height: 28px; border-radius: 50%; background: var(--gr-row); color: var(--ink-soft); }
#growthView .gr-pip svg { width: 14px; height: 14px; }
#growthView .gr-pip.is-current { background: var(--gr-violet); color: #fff; }
#growthView .gr-pip.is-done { background: var(--gr-mint); color: #0e8a5f; }
#growthView .gr-topic-count { color: var(--ink-soft); font-size: 12px; }
#growthView .gr-topic .gr-level { margin: 0; }

#growthView .gr-topic-side { min-width: 0; overflow: hidden; border: 1px solid var(--border); border-radius: 22px; background: var(--surface); }
#growthView .gr-side-head { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; padding: 20px; background: var(--gr-lav); }
#growthView .gr-side-ico { width: 46px; height: 46px; border-radius: 14px; background: var(--gr-violet); color: #fff; }
#growthView .gr-side-title { margin: 0; color: var(--ink); font-size: 19px; font-weight: 800; line-height: 1.25; letter-spacing: -.01em; }
#growthView .gr-side-head .gr-topic-count { margin: 0; }
#growthView .gr-side-body { display: flex; flex-direction: column; gap: 12px; padding: 14px; }
#growthView .gr-side-steps { display: flex; flex-direction: column; gap: 4px; margin: 0; padding: 0; list-style: none; }
#growthView .gr-side-step { display: flex; align-items: center; gap: 12px; padding: 8px 10px; border-radius: 14px; color: var(--ink); font-size: 14px; font-weight: 600; }
#growthView .gr-side-step small { margin-left: auto; color: var(--ink-soft); font-size: 12px; font-weight: 500; }
#growthView .gr-side-step-ico { display: inline-flex; align-items: center; justify-content: center; width: 34px; height: 34px; border-radius: 50%; background: var(--gr-row); color: var(--ink-soft); }
#growthView .gr-side-step-ico svg { width: 16px; height: 16px; }
#growthView .gr-side-step.is-current { background: var(--gr-lav); }
#growthView .gr-side-step.is-current .gr-side-step-ico { background: var(--gr-violet); color: #fff; }
#growthView .gr-side-step.is-done .gr-side-step-ico { background: var(--gr-mint); color: #0e8a5f; }
#growthView .gr-side-start { width: 100%; justify-content: center; }
#growthView .gr-side-body .gr-concepts { display: flex; flex-direction: column; gap: 6px; }

@media (max-width: 560px) {
  #growthView .gr-hero { padding: 20px; border-radius: 22px; }
  #growthView .gr-hero-stats { width: 100%; }
  #growthView .gr-card--next { padding: 20px; padding-right: 20px; }
  #growthView .gr-next-art { display: none; }
  #growthView .gr-step .ghost-button { width: 100%; }
  #growthView .gr-card--iconed { padding-left: 20px; padding-top: 72px; }
  #growthView .gr-tab { min-height: 44px; }
}
@media (prefers-reduced-motion: reduce) {
  #growthView .gr-check input, #growthView .gr-check input::after { transition: none; }
}
