/* Подписка (ТЗ-7): метка Plus, остаток переводов ИИ, тарифы, предложения, полосы на Главной, закрытые уроки.
   Цвета только из токенов design.css; мишени 44 px, главные действия 48 px. */
.fc-sub-badge { display: inline-flex; align-items: center; min-height: 24px; padding: 3px 9px; border-radius: 999px; background: var(--fc-accent-soft); color: var(--fc-accent-text); font: 650 12px/1.3 var(--fc-sans); white-space: nowrap; }
.fc-top .fc-sub-badge { align-self: center; }
.fc-sub-small { font-size: 14px; color: var(--fc-muted); }
.fc-sub-row { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; }
.fc-sub-between { justify-content: space-between; }

/* Карточка слова: строка остатка и исчерпанный лимит. Слово, форма и «+ В словарь» остаются видны. */
.fc-sub-quota { display: flex; align-items: center; flex-wrap: wrap; gap: 6px 10px; margin: 10px 0 2px; font-size: 14px; line-height: 1.45; color: var(--fc-muted); }
.fc-sub-quota .fc-text-button { min-height: 44px; padding: 0; color: var(--fc-accent-text); font-weight: 650; }
.fc-sub-ai { display: inline-flex; align-items: center; padding: 1px 7px; border-radius: 6px; background: var(--fc-blue-soft); color: var(--fc-navy); font: 700 12px/1.5 var(--fc-sans); letter-spacing: .03em; }
.fc-sub-quota-limit { display: grid; gap: 4px; padding: 12px 14px; border-radius: 12px; background: var(--fc-soft); color: var(--fc-text); }
.fc-sub-quota-limit p { margin: 0; font-size: 15px; color: var(--fc-text); }
.fc-sub-quota-limit .fc-text-button { justify-self: start; }

/* Диалог подписки: тот же вид, что у fc-dialog; тарифы шире. */
dialog.fc-sub-dialog.fc-sub-wide { max-width: 880px; }
.fc-sub-dialog > p { font-size: 16px; }
.fc-sub-dialog h3 { font: 600 18px/1.35 var(--fc-sans); margin: 0; }
.fc-sub-benefits { margin: 16px 0; padding: 0; list-style: none; display: grid; gap: 8px; }
.fc-sub-benefits li { position: relative; padding-left: 26px; font-size: 16px; line-height: 1.45; color: var(--fc-text); }
.fc-sub-benefits li::before { content: "✓"; position: absolute; left: 2px; color: var(--fc-green); font-weight: 700; }
.fc-sub-benefits-plain li::before { content: "·"; color: var(--fc-muted); }
.fc-sub-price-note { margin: 8px 0 0; font-size: 14px; color: var(--fc-muted); }
.fc-sub-dialog .fc-dialog-actions .button, .fc-sub-plan-cta .button { min-height: 48px; }
.fc-sub-dialog .fc-dialog-actions .fc-text-button { min-height: 44px; justify-self: center; }

.fc-sub-period { display: inline-flex; gap: 4px; margin: 18px 0 16px; padding: 4px; border-radius: 14px; background: var(--fc-soft); }
.fc-sub-period button { min-width: 112px; min-height: 44px; border: 0; border-radius: 11px; background: transparent; color: var(--fc-text); font: 600 15px var(--fc-sans); cursor: pointer; white-space: nowrap; }
.fc-sub-period button[aria-pressed="true"] { background: var(--fc-card); box-shadow: 0 2px 10px #0d26361a; }
.fc-sub-period button span { color: var(--fc-green); font-weight: 700; }
.fc-sub-plans { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin-bottom: 16px; }
.fc-sub-plan { display: grid; align-content: start; gap: 6px; padding: 24px; border: 1px solid var(--fc-line); border-radius: 20px; background: var(--fc-card); }
.fc-sub-plan-plus { border: 2px solid var(--fc-accent); }
.fc-sub-plan-lead { margin: 0; color: var(--fc-muted); font-size: 14px; }
.fc-sub-dialog h2:focus { outline: none; }
dialog.fc-sub-dialog .fc-sub-plan-price { margin: 6px 0 0; font: 400 30px/1.2 var(--fc-serif); color: var(--fc-text); }
dialog.fc-sub-dialog .fc-sub-plan .fc-sub-small { margin: 0; }
.fc-sub-plan .fc-sub-benefits { margin: 10px 0; }
.fc-sub-plan-cta { display: grid; gap: 4px; }
.fc-sub-current { margin: 6px 0 0; font-weight: 650; color: var(--fc-green) !important; font-size: 14px; }
.fc-sub-faq { border-top: 1px solid var(--fc-line); }
.fc-sub-faq summary { min-height: 44px; display: flex; align-items: center; cursor: pointer; font-weight: 600; }
.fc-sub-faq p { margin: 0 0 12px; }
.fc-sub-columns { display: grid; grid-template-columns: 1fr 1fr; gap: 20px; margin: 14px 0; }

/* Э4. Подписка в аккаунте. */
.fc-sub-account { display: grid; gap: 16px; }
.fc-sub-account-head { display: grid; gap: 8px; justify-items: start; }
.fc-sub-account-head p { margin: 0; }
.fc-sub-usage-list { display: grid; gap: 14px; }
.fc-sub-usage { display: grid; gap: 6px; font-size: 15px; }
.fc-sub-usage strong { font-weight: 600; }
.fc-sub-help { border-top: 1px solid var(--fc-line); padding-top: 14px; }

/* Э11. Полоса на Главной. */
.fc-sub-notice { display: flex; align-items: center; justify-content: space-between; gap: 12px 16px; flex-wrap: wrap; max-width: 1180px; margin: 16px auto 0; padding: 16px 20px; border-radius: 16px; background: var(--fc-blue-soft); color: var(--fc-text); }
.fc-sub-notice > div:first-child { display: grid; gap: 2px; }
.fc-sub-notice span { font-size: 14px; color: var(--fc-muted); }
.fc-sub-notice-warn { background: var(--fc-accent-soft); }
.fc-sub-notice-error { background: var(--fc-error-soft, var(--fc-accent-soft)); border: 1px solid var(--fc-rose); }
.fc-sub-notice-actions { display: flex; align-items: center; gap: 8px; }
.fc-sub-notice-actions .button { min-height: 44px; }

/* Э8. Закрытые уроки. */
.lesson-item.locked { color: var(--fc-text); }
.lesson-item.locked .lesson-mark { color: var(--fc-muted); }
.lesson-item.locked .fc-sub-badge { vertical-align: middle; }
.fc-sub-locked { display: grid; gap: 8px; justify-items: start; }
.fc-sub-a0-done { margin: 18px 0; }

@media (max-width: 700px) {
  dialog.fc-sub-dialog { max-height: 86dvh; }
  .fc-sub-plans, .fc-sub-columns { grid-template-columns: 1fr; }
  .fc-sub-plan { padding: 20px; }
  .fc-sub-notice { margin: 12px 16px 0; }
}
@media (prefers-reduced-motion: reduce) { .fc-sub-dialog, .fc-sub-notice { transition: none; animation: none; } }

/* Вкладка «Лимиты» слита с «Подпиской»: на телефоне три вкладки в один ряд. */
@media (max-width: 760px) { #readerSettingsDialog .settings-panel-nav { grid-template-columns: repeat(3, minmax(0, 1fr)); } }
.fc-sub-ai { text-transform: none; }
