/* Главная рабочего приложения. Стекло — вокруг действий, плотный фон — под текстом. */
.glass-home {
  --home-accent: var(--glass-primary, #287060);
  --home-accent-deep: var(--glass-primary-hover, #205b4e);
  --home-soft-ink: var(--ink-2);
  --home-glass: rgba(255, 255, 255, .68);
  --home-glass-line: rgba(255, 255, 255, .95);
  --home-shadow: 0 16px 44px -28px rgba(48, 77, 58, .28), inset 0 1px 0 rgba(255, 255, 255, .96);
  display: grid;
  gap: 30px;
  max-width: 1040px;
  margin-inline: auto;
  min-width: 0;
}
.glass-home-heading { display: grid; gap: 8px; }
.glass-home-meta { display: flex; gap: 16px; justify-content: space-between; align-items: center; min-width: 0; }
.glass-home-date { font-size: 13px; font-weight: 550; text-transform: capitalize; color: var(--home-soft-ink); }
.glass-home-heading h1 { margin: 0; font-size: clamp(27px, 3.5vw, 36px); line-height: 1.18; letter-spacing: -.035em; }
.glass-home-greeting { color: var(--home-soft-ink); font-size: 15px; overflow-wrap: anywhere; }
.glass-home-scope { display: inline-flex; align-items: center; justify-content: center; gap: 8px; min-height: 44px; max-width: 60%; padding: 8px 14px; border: 1px solid var(--home-glass-line); border-radius: 16px; background: var(--home-glass); color: var(--ink); font-size: 13px; font-weight: 600; line-height: 1.35; box-shadow: 0 3px 12px -10px #315b4380; overflow-wrap: anywhere; text-align: right; }
.glass-home-scope svg { width: 15px; height: 15px; flex: none; fill: none; stroke: currentColor; stroke-width: 1.8; }
.glass-home-scope:hover { text-decoration: none; background: var(--surface); }
.glass-home .glass-home-today {
  position: relative;
  gap: 18px;
  padding: 28px;
  border: 1px solid var(--home-glass-line);
  border-radius: 30px;
  background: linear-gradient(125deg, rgba(255, 255, 255, .88), rgba(234, 236, 229, .78) 70%, rgba(230, 235, 228, .72));
  box-shadow: var(--home-shadow);
  backdrop-filter: blur(20px) saturate(1.35);
  -webkit-backdrop-filter: blur(20px) saturate(1.35);
  overflow: hidden;
}
.glass-home-today-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; }
.glass-home-eyebrow { font-size: 14px; line-height: 1.4; font-weight: 600; color: var(--home-soft-ink); }
.glass-home-today-top .chip { flex: none; padding: 5px 9px; border: 1px solid rgba(40, 85, 62, .12); background: rgba(255, 255, 255, .75); color: var(--home-soft-ink); font-size: 12px; }
.glass-home-next { display: flex; gap: 18px; align-items: center; min-width: 0; }
.glass-home-next > div { min-width: 0; }
.glass-home-next-label { color: var(--home-soft-ink); font-size: 13px; line-height: 1.4; margin-bottom: 5px; }
.glass-home .glass-home-next h2 { font-size: clamp(24px, 3.2vw, 30px); line-height: 1.2; letter-spacing: -.025em; overflow-wrap: anywhere; }
.glass-home-next-icon { display: grid; place-items: center; flex: none; width: 70px; height: 70px; border-radius: 21px; color: #fff; background: linear-gradient(145deg, #3b816d, #287060); box-shadow: inset 0 1px 0 #ffffff91, 0 8px 17px -10px #285b43a1; }
.glass-home-next-icon .training-icon { width: 44px; height: 44px; stroke-width: 2.5; }
.glass-home-day-caption { color: var(--home-soft-ink); font-size: 15px; line-height: 1.5; }
.glass-home .today-card .glass-home-steps { gap: 7px; }
.glass-home .today-card .glass-home-steps span { height: 7px; border-radius: 9px; background: rgba(40, 93, 66, .14); }
.glass-home .today-card .glass-home-steps span.done { background: linear-gradient(90deg, #3b816d, #287060); }
.glass-home .glass-home-primary { display: flex; width: 100%; justify-content: center; gap: 12px; min-height: 52px; height: auto; padding: 13px 18px; border: 1px solid rgba(255, 255, 255, .14); border-radius: 17px; background: linear-gradient(135deg, var(--home-accent), var(--home-accent-deep)); color: var(--glass-primary-ink, #fff); font-size: 16px; font-weight: 650; box-shadow: inset 0 1px 0 #ffffff40, 0 8px 18px -12px #244d3aba; }
.glass-home .glass-home-primary:hover { opacity: 1; background: var(--glass-primary-hover, #205b4e); }
.glass-home-today-bottom { display: flex; align-items: center; justify-content: space-between; flex-wrap: wrap; gap: 8px 16px; }
.glass-home-course-meta { color: var(--home-soft-ink); font-size: 13px; line-height: 1.5; }
.glass-home-program-link, .glass-home-text-link { display: inline-flex; align-items: center; gap: 7px; min-height: 44px; color: var(--accent-ink); font-size: 14px; font-weight: 600; }
.glass-home-program-link svg, .glass-home-text-link svg { width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; }
.glass-home .training-home-section { margin: 0; min-width: 0; }
.glass-home-section-heading { display: flex; align-items: center; justify-content: space-between; gap: 12px; min-height: 36px; margin-bottom: 14px; }
.glass-home-section-heading h2 { font-size: 21px; line-height: 1.3; letter-spacing: -.02em; }
.glass-home-section-heading > .soft { text-align: right; font-size: 13px; }
.glass-home .training-app-grid { grid-template-columns: repeat(7, minmax(0, 1fr)); gap: 20px 14px; }
.glass-home .training-tile { padding: 5px 0; min-height: 116px; border-radius: 20px; gap: 10px; }
.glass-home .training-tile-art { width: 76px; height: 76px; border-radius: 24px; color: #205a4d; background: linear-gradient(145deg, rgba(255, 255, 255, .97), rgba(230, 235, 228, .85)); border: 1px solid rgba(255, 255, 255, .95); box-shadow: inset 0 1px 0 #fff, inset 0 -2px 5px #c2d1c34a, 0 9px 18px -12px #355a4383; }
.glass-home .training-tone-teal .training-tile-art { color: #286d5c; background: linear-gradient(145deg, #ffffffed, #e0ece5d9); }
.glass-home .training-tone-amber .training-tile-art { color: #5c643a; background: linear-gradient(145deg, #ffffffed, #ecebddde); }
.glass-home .training-tone-green .training-tile-art { color: #356c48; background: linear-gradient(145deg, #ffffffed, #e0ebdfd9); }
.glass-home .training-tone-violet .training-tile-art { color: #536d53; background: linear-gradient(145deg, #ffffffed, #e5ebe0d9); }
.glass-home .training-tone-coral .training-tile-art { color: #646b47; background: linear-gradient(145deg, #ffffffed, #eaeadee0); }
.glass-home .training-tone-rose .training-tile-art { color: #4c6c59; background: linear-gradient(145deg, #ffffffed, #e4ebe3d9); }
.glass-home .training-tone-indigo .training-tile-art { color: #315f51; background: linear-gradient(145deg, #ffffffed, #e1eae4d9); }
.glass-home .training-tile .training-icon { width: 48px; height: 48px; stroke-width: 2.6; }
.glass-home .training-tile-label { max-width: 150px; font-size: 14px; font-weight: 550; line-height: 1.35; }
.glass-home .training-tile-badge { top: -4px; right: -5px; border-color: #d9dfd7; background: #fff; color: #365443; min-width: 28px; padding: 3px 5px; }
.glass-home .training-tile:hover .training-tile-art { filter: brightness(1.02); }
.glass-home-lower { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; min-width: 0; }
.glass-home-lower > .card { margin: 0; padding: 24px; min-width: 0; border-radius: 25px; }
.glass-home-progress { display: flex; flex-direction: column; gap: 10px; }
.glass-home-progress .glass-home-section-heading { margin-bottom: 0; }
.glass-home-score { font-size: 46px; font-weight: 650; line-height: 1.15; letter-spacing: -.035em; font-variant-numeric: tabular-nums; }
.glass-home-score > span { font-size: 17px; color: var(--home-soft-ink); font-weight: 500; letter-spacing: normal; }
.glass-home-progress > .soft { color: var(--home-soft-ink); font-size: 15px; }
.glass-home-progress > .small { font-size: 13px; }
.glass-home-lower .assessment-entry { display: flex; flex-direction: column; align-items: flex-start; gap: 14px; }
.glass-home-lower .assessment-entry h2 { font-size: 21px; }
.glass-home-lower .assessment-entry-icon { width: 42px; height: 42px; border-radius: 13px; }
.glass-home-lower .assessment-entry p { font-size: 15px; color: var(--home-soft-ink); }
.glass-home-lower .assessment-entry .btn { min-height: 44px; font-size: 14px; }
.glass-home-install { display: flex; justify-content: center; padding-top: 4px; }
.glass-home-install .btn { min-height: 44px; height: auto; padding: 12px 15px; font-size: 14px; color: var(--home-soft-ink); text-align: center; }
.glass-home a:focus-visible, .glass-home button:focus-visible { outline: 3px solid var(--accent); outline-offset: 4px; }

/* Карточки движутся по дуге; положение и изгиб задаёт общий контроллер. */
.glass-home .home-shelf { min-width: 0; margin: 0; }
.glass-home .home-shelf-heading {
  display: grid;
  grid-template-columns: minmax(0, 1fr) auto;
  align-items: center;
  gap: 12px;
  min-height: 44px;
}
.glass-home .home-shelf-heading h2 { margin: 0; font-size: 21px; line-height: 1.25; letter-spacing: -.025em; }
.glass-home .home-shelf-controls { display: flex; align-items: center; flex: none; gap: 8px; }
.glass-home .home-shelf-counter { min-width: 42px; color: var(--ink-2); font-size: 12px; line-height: 1.35; text-align: center; font-variant-numeric: tabular-nums; white-space: nowrap; }
.glass-home .home-shelf-arrow {
  display: inline-grid;
  place-items: center;
  flex: none;
  width: 44px;
  height: 44px;
  min-height: 44px;
  padding: 0;
  border: 1px solid var(--line-2);
  border-radius: 50%;
  background: var(--glass-quiet);
  color: var(--accent-ink);
  cursor: pointer;
  touch-action: manipulation;
  transition: background 160ms ease-out, opacity 160ms ease-out;
}
.glass-home .home-shelf-arrow svg { width: 19px; height: 19px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glass-home .home-shelf-arrow:hover { background: var(--glass-active); }
.glass-home .home-shelf-arrow:disabled { opacity: .34; cursor: default; }
.glass-home .home-shelf-track {
  --arc-card-width: clamp(146px, 42vw, 190px);
  --arc-card-height: clamp(210px, 56vw, 246px);
  --arc-stage-height: 350px;
  position: relative;
  display: block;
  width: 100%;
  min-width: 0;
  max-width: 100%;
  height: var(--arc-stage-height);
  padding: 0;
  overflow: hidden;
  isolation: isolate;
  touch-action: pan-y;
  user-select: none;
  -webkit-user-select: none;
  cursor: grab;
}
.glass-home .home-shelf-track[data-dragging="true"] { cursor: grabbing; }
.glass-home .home-shelf-track > svg { position: absolute; width: 0; height: 0; pointer-events: none; }
.glass-home .home-shelf-card {
  /* Это цвет бумажной обложки: материал остаётся светлым и в тёмной теме. */
  --arc-paper: #fbfcf7;
  --arc-paper-ink: #24332f;
  position: absolute;
  left: 50%;
  top: 0;
  display: flex;
  flex-direction: column;
  width: var(--arc-card-width);
  height: var(--arc-card-height);
  min-width: 0;
  min-height: 0;
  gap: 7px;
  margin: 0;
  padding: 8px;
  border: 1px solid color-mix(in srgb, var(--arc-paper) 80%, var(--line-2));
  border-radius: 5px;
  background: var(--arc-paper);
  color: var(--arc-paper-ink);
  box-shadow: 0 10px 25px -16px color-mix(in srgb, var(--ink) 43%, transparent), 0 1px 3px #00000012;
  text-decoration: none;
  transform-origin: 50% 50%;
  transition: box-shadow 160ms ease-out, border-color 160ms ease-out;
  cursor: inherit;
  -webkit-tap-highlight-color: transparent;
}
.glass-home .home-shelf-card[data-active="true"] { box-shadow: 0 14px 28px -15px color-mix(in srgb, var(--ink) 44%, transparent), 0 2px 5px #00000016; }
.glass-home .home-shelf-card:hover { color: var(--arc-paper-ink); text-decoration: none; }
.glass-home .home-shelf-card:active { border-color: var(--accent); }
.glass-home .home-shelf-cover {
  position: relative;
  display: grid;
  place-items: center;
  flex: 1 1 auto;
  min-width: 0;
  min-height: 0;
  width: 100%;
  padding: 24px 8px 10px;
  overflow: hidden;
  border-radius: 1px;
  background: linear-gradient(140deg, var(--tile-start, var(--training-icon-blue)), var(--tile-end, var(--training-icon-blue-end)));
  color: var(--training-icon-ink);
  box-shadow: inset 0 1px 0 #ffffff40, inset 0 -1px 1px #00000016;
  isolation: isolate;
}
.glass-home .home-shelf-cover::before, .glass-home .home-shelf-cover::after {
  content: '';
  position: absolute;
  z-index: -1;
  width: 160px;
  height: 160px;
  border-radius: 50%;
  border: 1px solid #ffffff1f;
  pointer-events: none;
}
.glass-home .home-shelf-cover::before { top: -82px; right: -52px; background: #ffffff0a; box-shadow: 0 0 0 23px #ffffff08; }
.glass-home .home-shelf-cover::after { bottom: -124px; left: -14px; box-shadow: 0 0 0 16px #ffffff06; }
.glass-home .home-shelf-icon { position: relative; display: grid; place-items: center; width: 90px; height: 90px; max-width: 100%; color: inherit; }
.glass-home .home-shelf-cover .training-icon { width: 84px; height: 84px; max-width: 100%; stroke-width: 2.1; color: inherit; }
.glass-home .home-shelf-kicker { position: absolute; top: 9px; left: 9px; z-index: 1; max-width: calc(100% - 18px); color: inherit; font-size: 10px; line-height: 1.35; font-weight: 600; letter-spacing: .025em; overflow-wrap: anywhere; }
.glass-home .home-shelf-title { display: grid; align-items: center; flex: 0 0 43px; margin: 0 1px; color: var(--arc-paper-ink); font-size: 15px; line-height: 1.16; font-weight: 650; letter-spacing: -.015em; overflow-wrap: anywhere; text-wrap: balance; }
.glass-home .home-shelf-description, .glass-home .home-shelf-meta { display: none; }
.glass-home .home-shelf-caption { display: grid; gap: 9px; min-width: 0; width: min(100%, 500px); margin: -8px auto 0; padding: 0 14px; text-align: center; }
.glass-home .home-shelf-current-title { display: grid; align-items: center; min-height: 53px; max-height: 53px; margin: 0; color: var(--ink); font-size: 22px; line-height: 1.2; font-weight: 650; letter-spacing: -.025em; overflow-wrap: anywhere; text-wrap: balance; }
.glass-home .home-shelf-current-description { display: -webkit-box; -webkit-box-orient: vertical; -webkit-line-clamp: 3; min-height: 65px; max-height: 65px; margin: 0; overflow: hidden; color: var(--ink-2); font-size: 15px; line-height: 1.45; overflow-wrap: anywhere; }
.glass-home .home-shelf-current-meta { display: flex; justify-content: center; align-items: center; flex-wrap: wrap; gap: 6px 12px; min-height: 24px; color: var(--ink-2); font-size: 13px; line-height: 1.4; }
.glass-home .home-shelf-current-meta > svg { flex: none; width: 16px; height: 16px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glass-home .home-shelf-track[data-layout="fallback"] { display: flex; gap: 20px; height: auto; min-height: 260px; overflow-x: auto; padding: 16px 8px; touch-action: auto; }
.glass-home .home-shelf-track[data-layout="fallback"] .home-shelf-card { position: relative; left: auto; top: auto; flex: 0 0 170px; width: 170px; height: 230px; }
.glass-home .home-shelf-score { display: inline-flex; align-items: baseline; gap: 3px; color: var(--accent-ink); font-size: 13px; font-weight: 650; font-variant-numeric: tabular-nums; }
@media (max-width: 640px) {
  .glass-home .home-shelf-track { --arc-stage-height: 316px; }
  .glass-home .home-shelf-heading { gap: 10px; }
}
@media (max-width: 350px) {
  .glass-home .home-shelf-heading { grid-template-columns: minmax(0, 1fr) auto; gap: 8px; }
  .glass-home .home-shelf-heading h2 { font-size: 20px; }
  .glass-home .home-shelf-controls { gap: 8px; }
  .glass-home .home-shelf-counter { min-width: 32px; font-size: 12px; }
  .glass-home .home-shelf-track { --arc-stage-height: 302px; }
  .glass-home .home-shelf-caption { padding-inline: 6px; }
}
@media (hover: hover) {
  .glass-home .home-shelf-card:hover { border-color: var(--accent); }
}
@media (prefers-reduced-motion: reduce) {
  .glass-home .home-shelf-card, .glass-home .home-shelf-arrow { transition: none; }
}

@media (max-width: 920px) {
  .glass-home .training-app-grid { grid-template-columns: repeat(4, minmax(0, 1fr)); }
}
@media (max-width: 640px) {
  .glass-home { gap: 26px; }
  .glass-home-heading { gap: 6px; }
  .glass-home-meta { gap: 10px; }
  .glass-home-date { font-size: 12px; }
  .glass-home-scope { padding: 8px 11px; border-radius: 14px; font-size: 12px; max-width: 55%; }
  .glass-home-heading h1 { font-size: clamp(25px, 6.9vw, 30px); line-height: 1.2; }
  .glass-home-greeting { font-size: 14px; }
  .glass-home .glass-home-today { padding: 20px; gap: 15px; border-radius: 26px; }
  .glass-home-today-top { gap: 8px; }
  .glass-home-eyebrow { font-size: 13px; }
  .glass-home-today-top .chip { font-size: 12px; padding: 5px 7px; }
  .glass-home-next { gap: 13px; align-items: center; }
  .glass-home-next-icon { width: 56px; height: 56px; border-radius: 18px; }
  .glass-home-next-icon .training-icon { width: 37px; height: 37px; }
  .glass-home .glass-home-next h2 { font-size: 23px; }
  .glass-home-next-label { font-size: 12px; margin-bottom: 3px; }
  .glass-home-day-caption { font-size: 14px; }
  .glass-home .glass-home-primary { min-height: 50px; border-radius: 16px; }
  .glass-home-today-bottom { gap: 0 10px; }
  .glass-home-course-meta { font-size: 12px; flex: 1 1 140px; }
  .glass-home-program-link { font-size: 12px; }
  .glass-home-section-heading { margin-bottom: 12px; min-height: 30px; }
  .glass-home-section-heading h2 { font-size: 21px; }
  .glass-home-section-heading > .soft { font-size: 12px; }
  .glass-home .training-app-grid { gap: 13px 8px; }
  .glass-home .training-tile { min-height: 104px; gap: 9px; }
  .glass-home .training-tile-art { width: 62px; height: 62px; border-radius: 20px; }
  .glass-home .training-tile .training-icon { width: 40px; height: 40px; }
  .glass-home .training-tile-label { font-size: 12px; line-height: 1.35; }
  .glass-home .training-tile-badge { font-size: 12px; }
  .glass-home-lower { grid-template-columns: 1fr; gap: 16px; }
  .glass-home-lower > .card { padding: 22px; }
  .glass-home-lower .assessment-entry { flex-direction: row; }
}
@media (max-width: 350px) {
  .glass-home-meta { flex-wrap: wrap; }
  .glass-home-date { flex: 1 1 130px; }
  .glass-home-scope { max-width: 100%; }
  .glass-home .training-app-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); }
  .glass-home .glass-home-today { padding: 17px; }
  .glass-home-next-icon { width: 47px; height: 47px; border-radius: 15px; }
  .glass-home .glass-home-next h2 { font-size: 21px; }
  .glass-home-lower .assessment-entry { flex-direction: column; }
}
:root[data-theme="dark"] .glass-home {
  --home-soft-ink: var(--ink-2);
  --home-glass: rgba(33, 50, 39, .88);
  --home-glass-line: rgba(171, 201, 176, .22);
  --home-accent-deep: var(--glass-primary-hover, #205b4e);
  --home-shadow: inset 0 1px 0 #d2e6d120, 0 20px 40px -30px #000b;
}
:root[data-theme="dark"] .glass-home .glass-home-today { background: linear-gradient(125deg, #293d31ed, #203529e8 75%, #313d2fe0); }
:root[data-theme="dark"] .glass-home-today-top .chip { background: #11271b70; border-color: #dbe8d720; }
:root[data-theme="dark"] .glass-home .training-tile-art { background: linear-gradient(145deg, #344b3eed, #243b2edb); color: #cfe5d3; border-color: #b2cdb63b; box-shadow: inset 0 1px 0 #ffffff25, inset 0 -2px 5px #102b193b, 0 9px 18px -12px #0007; }
:root[data-theme="dark"] .glass-home .training-tile-badge { background: #253a2d; color: #dae8da; border-color: #4b6652; }
@media (prefers-color-scheme: dark) {
  :root:not([data-theme="light"]) .glass-home {
    --home-soft-ink: var(--ink-2);
    --home-glass: rgba(33, 50, 39, .88);
    --home-glass-line: rgba(171, 201, 176, .22);
    --home-accent-deep: var(--glass-primary-hover, #205b4e);
    --home-shadow: inset 0 1px 0 #d2e6d120, 0 20px 40px -30px #000b;
  }
  :root:not([data-theme="light"]) .glass-home .glass-home-today { background: linear-gradient(125deg, #293d31ed, #203529e8 75%, #313d2fe0); }
  :root:not([data-theme="light"]) .glass-home-today-top .chip { background: #11271b70; border-color: #dbe8d720; }
  :root:not([data-theme="light"]) .glass-home .training-tile-art { background: linear-gradient(145deg, #344b3eed, #243b2edb); color: #cfe5d3; border-color: #b2cdb63b; box-shadow: inset 0 1px 0 #ffffff25, inset 0 -2px 5px #102b193b, 0 9px 18px -12px #0007; }
  :root:not([data-theme="light"]) .glass-home .training-tile-badge { background: #253a2d; color: #dae8da; border-color: #4b6652; }
}
@supports not ((backdrop-filter: blur(1px)) or (-webkit-backdrop-filter: blur(1px))) {
  .glass-home .glass-home-today { background: linear-gradient(125deg, #fdfdf9, #eaece5 75%, #e6ebe4); }
  :root[data-theme="dark"] .glass-home .glass-home-today { background: #203529; }
  @media (prefers-color-scheme: dark) {
    :root:not([data-theme="light"]) .glass-home .glass-home-today { background: #203529; }
  }
}
@media (prefers-reduced-motion: reduce) {
  .glass-home .training-tile-art, .glass-home .btn { transition: none; }
  .glass-home .training-tile:hover .training-tile-art, .glass-home .training-tile:active .training-tile-art, .glass-home .btn:active { transform: none; }
}

/* Три главных действия собраны в бенто; геометрия каруселей ниже независима. */
.glass-home .home-bento {
  display: grid;
  grid-template-columns: minmax(0, 1.45fr) minmax(0, 1fr);
  grid-template-areas: "today progress" "today start";
  gap: 16px;
  min-width: 0;
  align-items: stretch;
}
.glass-home .home-bento > .glass-home-today {
  grid-area: today;
  min-width: 0;
  margin: 0;
  padding: 26px;
  gap: 17px;
}
.glass-home .home-bento > .glass-home-today .glass-home-primary { margin-top: auto; }
.glass-home .home-bento-card {
  display: flex;
  flex-direction: column;
  align-items: flex-start;
  gap: 8px;
  min-width: 0;
  min-height: 180px;
  margin: 0;
  padding: 20px;
  border: 1px solid var(--home-glass-line);
  border-radius: 28px;
  background: var(--home-glass);
  box-shadow: var(--home-shadow);
  color: var(--ink);
  text-decoration: none;
  text-align: left;
  touch-action: manipulation;
  backdrop-filter: blur(18px) saturate(1.2);
  -webkit-backdrop-filter: blur(18px) saturate(1.2);
  transition: background 160ms ease-out, border-color 160ms ease-out;
}
.glass-home .home-bento-progress {
  grid-area: progress;
  background: linear-gradient(145deg, var(--home-glass), color-mix(in srgb, var(--track) 30%, var(--home-glass)));
}
.glass-home .home-bento-start { grid-area: start; }
.glass-home .home-bento-card:hover { color: var(--ink); text-decoration: none; border-color: var(--line-2); }
.glass-home .home-bento-card:active { background: var(--surface-2); border-color: var(--accent); }
.glass-home .home-bento-card-top { display: flex; align-items: center; justify-content: space-between; gap: 12px; width: 100%; min-width: 0; }
.glass-home .home-bento-icon {
  display: grid;
  place-items: center;
  width: 34px;
  height: 34px;
  flex: none;
  border-radius: 11px;
  background: var(--track);
  color: var(--accent-ink);
}
.glass-home .home-bento-icon .training-icon { width: 24px; height: 24px; stroke-width: 2.6; }
.glass-home .home-bento-arrow { display: block; width: 20px; height: 20px; flex: none; color: var(--home-soft-ink); }
.glass-home .home-bento-card-top > svg, .glass-home .home-bento-arrow svg { width: 20px; height: 20px; fill: none; stroke: currentColor; stroke-width: 1.8; stroke-linecap: round; stroke-linejoin: round; }
.glass-home .home-bento-card h2 { margin: 0; font-size: 19px; font-weight: 650; line-height: 1.25; letter-spacing: -.02em; overflow-wrap: anywhere; }
.glass-home .home-bento-card p { margin: 0; }
.glass-home .home-bento-card .glass-home-score { font-size: 38px; line-height: 1.05; }
.glass-home .home-bento-card .glass-home-score > span { font-size: 15px; }
.glass-home .home-bento-score { display: grid; gap: 3px; min-width: 0; }
.glass-home .home-bento-label { color: var(--home-soft-ink); font-size: 12px; line-height: 1.4; }
.glass-home .home-bento-note, .glass-home .home-bento-description { color: var(--home-soft-ink); font-size: 14px; line-height: 1.45; overflow-wrap: anywhere; }
.glass-home .home-bento-card .home-bento-card-action { margin-top: auto; padding-top: 8px; color: var(--accent-ink); font-size: 14px; font-weight: 600; line-height: 1.4; overflow-wrap: anywhere; }
@media (max-width: 640px) {
  .glass-home .home-bento {
    grid-template-columns: repeat(2, minmax(0, 1fr));
    grid-template-areas: "today today" "progress start";
    gap: 12px;
  }
  .glass-home .home-bento > .glass-home-today { padding: 16px; gap: 10px; border-radius: 26px; }
  .glass-home .home-bento .glass-home-next-icon { width: 48px; height: 48px; border-radius: 16px; }
  .glass-home .home-bento .glass-home-next-icon .training-icon { width: 32px; height: 32px; }
  .glass-home .home-bento > .glass-home-today .glass-home-primary { min-height: 48px; padding-block: 11px; }
  .glass-home .home-bento-card { gap: 5px; min-height: 214px; padding: 14px; border-radius: 24px; }
  .glass-home .home-bento-card h2 { font-size: 17px; }
  .glass-home .home-bento-card .glass-home-score { font-size: 35px; }
  .glass-home .home-bento-icon { width: 30px; height: 30px; border-radius: 10px; }
  .glass-home .home-bento-icon .training-icon { width: 22px; height: 22px; }
  .glass-home .home-bento-card .home-bento-card-action { padding-top: 5px; }
}
@media (max-width: 350px) {
  .glass-home .home-bento { gap: 10px; }
  .glass-home .home-bento > .glass-home-today { padding: 16px; }
  .glass-home .home-bento-card { padding: 14px 12px; gap: 5px; border-radius: 22px; }
  .glass-home .home-bento-card h2 { font-size: 16px; }
  .glass-home .home-bento-card .glass-home-score { font-size: 32px; }
}
@media (prefers-reduced-motion: reduce) {
  .glass-home .home-bento-card { transition: none; }
}
