/* Экран «Мои расчёты» (views/calcs.js): плитки с рисунками дизайнера, как «Моя карта» в прототипе 08.10.
 * Открытый расчёт — яркая плитка с бирюзовой меткой, закрытый — приглушённая с фиолетовой. Только классы calcs-. */
.calcs-body { display: flex; flex-direction: column; }

.calcs-sum { display: flex; flex-direction: column; align-items: flex-start; gap: 8px; }
.calcs-sum__count { margin: 0; display: flex; align-items: baseline; gap: 6px; font: 300 15px var(--f-head); letter-spacing: .04em; color: var(--muted); }
.calcs-sum__count b { font: 300 38px/1 var(--f-head); color: var(--text); font-variant-numeric: lining-nums; }
.calcs-sum__text { font-size: 14px; color: var(--muted); }
.calcs-sum__go { margin-top: 4px; }

.calcs-grid { display: grid; grid-template-columns: repeat(2, minmax(0, 1fr)); gap: 10px; }
@media (min-width: 640px) { .calcs-grid { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.calcs-tile {
  position: relative; display: flex; flex-direction: column; justify-content: flex-end; min-width: 0; min-height: 156px;
  padding: 0; overflow: hidden; border-radius: var(--r-tile); text-align: left;
  border: 1px solid var(--line); background: radial-gradient(circle at 50% 38%, rgba(var(--glow-rgb), .3), var(--ink-2) 70%);
  box-shadow: var(--shadow-card); transition: transform .3s ease, border-color .3s ease;
}
.calcs-tile__img { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; opacity: .9; transition: transform .6s cubic-bezier(.2, .8, .2, 1); }
.calcs-tile__cap {
  position: relative; display: flex; flex-direction: column; gap: 2px; padding: 26px 12px 11px;
  background: linear-gradient(0deg, rgba(8, 12, 32, .94), rgba(8, 12, 32, .7) 60%, rgba(8, 12, 32, 0));
}
.calcs-tile__title { font: 500 15px/1.2 var(--f-head); letter-spacing: .02em; color: var(--text); }
.calcs-tile__short { font-size: 12px; line-height: 1.3; color: var(--muted); }
.calcs-tile__badge {
  position: absolute; top: 8px; right: 8px; padding: 2px 9px; border-radius: 10px; font-size: 11px; line-height: 1.6;
  color: #d6d0ff; background: rgba(var(--violet-rgb), .3); border: 1px solid rgba(var(--violet-rgb), .45);
  -webkit-backdrop-filter: blur(6px); backdrop-filter: blur(6px);
}
.calcs-tile--open { border-color: var(--line-strong); }
.calcs-tile--open .calcs-tile__badge { color: var(--on-accent); background: var(--accent); border-color: transparent; font-weight: 600; }
.calcs-tile--locked .calcs-tile__img, .calcs-tile--soon .calcs-tile__img { filter: saturate(.7) brightness(.8); }
.calcs-tile--soon .calcs-tile__badge { color: var(--text); background: rgba(8, 12, 32, .6); border-color: var(--line); }
.calcs-tile:hover .calcs-tile__img { transform: scale(1.05); }
.calcs-tile:active { transform: scale(.98); }

.calcs-note { margin: 14px 4px 0; font-size: 12.5px; line-height: 1.5; color: var(--muted); }
.calcs-error { display: flex; flex-direction: column; align-items: center; }

@media (prefers-reduced-motion: reduce) {
  .calcs-tile, .calcs-tile__img { transition: none; }
}
