/*
 * Flashcards: the decks and study settings (/flashcards), a deck's cards
 * (/flashcards/my/:deck), a session and its summary (/flashcards/study).
 */

/* ── Home ─────────────────────────────────────────────────────────── */
.fc { max-width: 1180px; gap: 22px; }

.fc__header { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fc__intro { display: flex; flex-direction: column; gap: 6px; }
.fc__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(40px, 6vw, 52px); line-height: 1; margin: 0; }
.fc__lead { margin: 0; font-size: 15px; color: var(--text-body); }
.fc__meters { display: flex; gap: 10px; flex-wrap: wrap; align-items: center; }
.fc__streak { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-pill); padding: 8px 14px; font-size: 13px; font-weight: 600; }
.fc__xp { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 8px 14px; display: flex; flex-direction: column; gap: 5px; min-width: 200px; }
.fc__xp-top { display: flex; justify-content: space-between; gap: 12px; font-size: 13px; font-weight: 600; }
.fc__xp-track { display: block; height: 5px; background: var(--line); border-radius: 5px; overflow: hidden; }
.fc__xp-fill { display: block; height: 100%; background: var(--peach); }

.fc__banner { background: var(--ink); color: var(--paper); border-radius: 20px; padding: 22px 26px; display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; }
.fc__banner-count { display: flex; align-items: baseline; gap: 14px; font-size: 16px; }
.fc__banner-n { font-family: var(--font-serif); font-size: 52px; line-height: 1; color: var(--peach); }
.fc__banner-btn { background: var(--peach); color: var(--ink); border: none; }
.fc__banner-btn:hover { background: var(--paper); color: var(--ink); }

/* Deck cards: the title link picks the deck (it covers the card) */
.fc__decks { list-style: none; margin: 0; padding: 0; display: grid; grid-template-columns: repeat(auto-fill, minmax(min(100%, 250px), 1fr)); gap: 14px; }
.fc-deck { position: relative; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fc-deck:hover { border-color: var(--line-strong); }
.fc-deck.is-selected { border-color: var(--ink); box-shadow: 0 0 0 1px var(--ink); }
.fc-deck__top { display: flex; justify-content: space-between; align-items: center; gap: 8px; }
.fc-deck__kind { border-radius: var(--radius-pill); padding: 3px 10px; font-size: 11px; font-weight: 700; letter-spacing: .5px; text-transform: uppercase; background: var(--sand); color: var(--ink); }
.fc-deck--custom .fc-deck__kind { background: var(--clay-soft); color: var(--clay); }
.fc-deck--library .fc-deck__kind { background: var(--green-soft); color: var(--green); }
.fc-deck__total { font-size: 13px; color: var(--text-muted); }
.fc-deck__title { font-family: var(--font-serif); font-size: 26px; line-height: 1.1; color: var(--ink); text-decoration: none; }
.fc-deck__title::after { content: ""; position: absolute; inset: 0; border-radius: inherit; }
.fc-deck__title:hover { color: var(--ink); text-decoration: none; }
.fc-deck__title:focus-visible { outline: none; }
.fc-deck:has(.fc-deck__title:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.fc-deck__desc { font-size: 13px; color: var(--text-muted); line-height: 1.4; }
.fc-deck__counts { display: flex; gap: 14px; font-size: 13px; }
.fc-deck__due { color: var(--clay); }
.fc-deck__mastery { display: block; height: 5px; background: var(--line); border-radius: 5px; overflow: hidden; }
.fc-deck__mastery span { display: block; height: 100%; background: var(--green); }
.fc-deck__browse {
  position: relative; z-index: 1; align-self: flex-start; margin-top: auto;
  border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 6px 14px; font-size: 13px; font-weight: 600; color: var(--ink); text-decoration: none;
}
.fc-deck__browse:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }

/* New deck, and the deck library */
.fc-deck--add { padding: 0; background: transparent; border: none; }
.fc-new { height: 100%; }
.fc-new__open {
  list-style: none; cursor: pointer; height: 100%; min-height: 200px; border: 1.5px dashed var(--line-dashed); border-radius: var(--radius-card); padding: 18px;
  display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 6px; color: var(--ink); text-align: center; text-decoration: none;
}
.fc-new__open::-webkit-details-marker { display: none; }
.fc-new__open:hover { background: var(--card); border-color: var(--ink); color: var(--ink); text-decoration: none; }
.fc-new[open] .fc-new__open { display: none; }
.fc-new__plus { font-size: 30px; line-height: 1; }
.fc-new__label { font-size: 15px; font-weight: 600; }
.fc-new__hint { font-size: 13px; color: var(--text-muted); }
.fc-new__form { height: 100%; background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-card); padding: 18px; display: flex; flex-direction: column; gap: 10px; }
.fc-new__form .row { margin-top: auto; }

/* Study settings */
.fc-study { padding: 24px; display: flex; flex-direction: column; gap: 18px; border-radius: 20px; scroll-margin-top: 20px; }
.fc-study__head { display: flex; justify-content: space-between; align-items: baseline; gap: 12px; flex-wrap: wrap; }
.fc-study__title { font-family: var(--font-serif); font-weight: 400; font-size: 30px; line-height: 1; margin: 0; }
.fc-study__note { font-size: 13px; }
.fc-study__group { border: none; margin: 0; padding: 0; min-width: 0; display: flex; flex-direction: column; gap: 8px; }
.fc-study__label { padding: 0; margin-bottom: 8px; font-size: 12px; letter-spacing: 1px; text-transform: uppercase; color: var(--text-muted); font-weight: 700; }
.fc-study__modes { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 200px), 1fr)); gap: 10px; }
.fc-mode { position: relative; cursor: pointer; background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-md); padding: 14px 16px; display: flex; flex-direction: column; gap: 4px; }
.fc-mode:hover { border-color: var(--ink); }
.fc-mode:has(.fc-mode__input:checked) { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fc-mode:has(.fc-mode__input:focus-visible), .fc-pill:has(.fc-pill__input:focus-visible), .fc-switch:has(.fc-switch__input:focus-visible) { outline: 2px solid var(--green); outline-offset: 2px; }
.fc-mode__input, .fc-pill__input, .fc-switch__input { position: absolute; opacity: 0; pointer-events: none; }
.fc-mode__label { font-size: 15px; font-weight: 700; }
.fc-mode__about { font-size: 13px; opacity: .85; line-height: 1.4; }
.fc-study__row { display: flex; gap: 28px; flex-wrap: wrap; align-items: flex-start; }
.fc-study:has(.fc-mode__input[value="bank"]:checked) .fc-study__dir { display: none; }
.fc-study__pills { display: flex; gap: 6px; flex-wrap: wrap; }
.fc-pill { position: relative; cursor: pointer; }
.fc-pill span { display: block; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 7px 14px; font-size: 13px; }
.fc-pill:hover span { border-color: var(--ink); }
.fc-pill:has(.fc-pill__input:checked) span { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fc-switch { position: relative; cursor: pointer; margin-top: 22px; display: flex; align-items: center; gap: 10px; }
.fc-switch__track { width: 44px; height: 26px; border-radius: 13px; background: var(--line-strong); position: relative; flex-shrink: 0; transition: background-color .15s ease; }
.fc-switch__knob { position: absolute; top: 3px; left: 3px; width: 20px; height: 20px; border-radius: 50%; background: #FFFFFF; transition: left .15s ease; }
.fc-switch:has(.fc-switch__input:checked) .fc-switch__track { background: var(--clay); }
.fc-switch:has(.fc-switch__input:checked) .fc-switch__knob { left: 21px; }
.fc-switch__text { display: flex; flex-direction: column; }
.fc-switch__label { font-size: 14px; font-weight: 600; }
.fc-switch__about { font-size: 12px; color: var(--text-muted); }
.fc-study__foot { display: flex; justify-content: space-between; align-items: center; gap: 16px; flex-wrap: wrap; border-top: 1px solid var(--line); padding-top: 16px; }
.fc-study__keys { font-size: 13px; }
.fc-study__start.is-empty { opacity: .5; }

/* ── A deck's cards ───────────────────────────────────────────────── */
.fc-browse { max-width: 1180px; gap: 18px; }
.fc-browse__head { display: flex; flex-direction: column; gap: 6px; }
.fc-browse__back { align-self: flex-start; font-size: 14px; color: var(--text-muted); }
.fc-browse__title-row { display: flex; justify-content: space-between; align-items: flex-end; gap: 16px; flex-wrap: wrap; }
.fc-browse__title { font-family: var(--font-serif); font-weight: 400; font-size: clamp(34px, 5vw, 44px); line-height: 1; margin: 0; }
.fc-browse__sub { font-size: 14px; }
.fc-browse__actions { flex-wrap: wrap; align-items: center; }
.fc-browse__delete { color: var(--clay); font-weight: 600; font-size: 14px; padding: 8px; }

.fc-panel { background: var(--card); border: 1.5px solid var(--ink); border-radius: var(--radius-card); padding: 20px; display: flex; flex-direction: column; gap: 12px; }
.fc-panel__title { margin: 0; font-size: 16px; font-weight: 700; }
.fc-form__grid { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 12px; }
.fc-form__field { display: flex; flex-direction: column; gap: 6px; font-size: 13px; font-weight: 600; }
.fc-form__field .input { font-weight: 400; }
.fc-form__field--wide { grid-column: 1 / -1; }
.fc-form__ar { font-family: var(--font-arabic); font-size: 20px; padding-top: 6px; padding-bottom: 6px; }
.fc-import__help { margin: 0; font-size: 14px; color: var(--text-body); line-height: 1.5; }
.fc-import__text { font-family: var(--font-arabic), var(--font-sans); font-size: 18px; line-height: 1.6; resize: vertical; }
.fc-import__actions { flex-wrap: wrap; align-items: center; }
.fc-import__file { cursor: pointer; }
.fc-import__name { font-size: 13px; }

.fc-table { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-card); overflow: hidden; }
.fc-table__search { padding: 14px 18px; border-bottom: 1px solid var(--line); }
.fc-table__query { width: min(100%, 360px); }
.fc-table__row {
  display: grid; grid-template-columns: minmax(0, 1.1fr) minmax(0, 1.4fr) 100px 100px minmax(0, 1.4fr);
  gap: 12px; padding: 12px 18px; border-top: 1px solid var(--line-soft); align-items: center;
}
.fc-table__row[hidden] { display: none; }
.fc-table__row--head { border-top: none; padding: 10px 18px; background: var(--sand); font-size: 12px; font-weight: 700; letter-spacing: 1px; text-transform: uppercase; color: var(--text-body); }
.fc-table__ar { text-align: right; }
.fc-table__word { font-size: 24px; line-height: 1.4; }
.fc-table__meaning { display: flex; flex-direction: column; gap: 2px; min-width: 0; }
.fc-table__en { font-size: 15px; font-weight: 600; }
.fc-table__meta { font-size: 12px; color: var(--text-muted); }
.fc-table__meta .ar { font-size: 14px; }
.fc-table__next { font-size: 13px; color: var(--text-body); white-space: nowrap; }
.fc-table__actions { display: flex; justify-content: flex-end; }
.fc-table__buttons { display: flex; justify-content: flex-end; align-items: center; gap: 6px; flex-wrap: wrap; }
.fc-table__buttons[hidden] { display: none; }
.fc-table__ask { font-size: 13px; font-weight: 600; }
.fc-table__empty { margin: 0; padding: 28px 18px; font-size: 15px; color: var(--text-body); text-align: center; }
.fc-status { justify-self: start; border-radius: var(--radius-pill); padding: 3px 10px; font-size: 12px; font-weight: 700; white-space: nowrap; }
.fc-status--new { background: var(--clay-soft); color: var(--clay); }
.fc-status--due { background: var(--clay); color: var(--text-on-accent); }
.fc-status--learning { background: var(--green-soft); color: var(--green); }
.fc-status--mature { background: var(--green); color: var(--paper); }
.fc-status--suspended { background: var(--sand); color: var(--text-muted); }
.fc-act__form { display: inline; }
.fc-act {
  display: inline-block; background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 5px 12px;
  font-size: 12px; font-weight: 600; color: var(--ink); text-decoration: none; cursor: pointer;
}
.fc-act:hover { border-color: var(--ink); color: var(--ink); text-decoration: none; }
.fc-act--danger { border-color: #E4C2B2; color: var(--clay); }
.fc-act--danger:hover { border-color: var(--clay); color: var(--clay); }
.fc-act--solid { background: var(--clay); border-color: var(--clay); color: var(--text-on-accent); }
.fc-act--solid:hover { background: var(--clay-hover); border-color: var(--clay-hover); color: var(--text-on-accent); }

/* ── A session ────────────────────────────────────────────────────── */
.fc-session { max-width: 880px; margin: 0 auto; width: 100%; }
.fc-run { max-width: 760px; width: 100%; margin: 0 auto; display: flex; flex-direction: column; gap: 16px; }
.fc-run[hidden] { display: none; }
.fc-run__bar { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc-run__end { font-size: 14px; color: var(--text-muted); }
.fc-run__meta { display: flex; align-items: center; gap: 10px; flex-wrap: wrap; font-size: 13px; }
.fc-run__cram { background: var(--clay-soft); color: var(--clay); border-radius: var(--radius-pill); padding: 4px 10px; font-weight: 700; }
.fc-run__counter { font-weight: 700; }
.fc-run__xp { background: var(--ink); color: var(--peach); border-radius: var(--radius-pill); padding: 4px 10px; font-weight: 700; }
.fc-run__undo { background: none; border: 1px solid var(--line-strong); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 13px; font-weight: 600; color: var(--ink); }
.fc-run__undo:disabled { opacity: .4; }
.fc-run__progress { height: 6px; background: var(--line); border-radius: 6px; overflow: hidden; }
.fc-run__progress-bar { height: 100%; width: 0; background: var(--green); transition: width .25s; }

.fc-card {
  background: var(--card); border: 1px solid var(--line); border-radius: var(--radius-lg); min-height: 340px;
  padding: 36px clamp(20px, 4vw, 40px); display: flex; flex-direction: column; align-items: center; justify-content: center; gap: 18px;
  text-align: center; box-shadow: 0 30px 50px -36px rgba(28, 35, 33, .35);
}
.fc-card__front { display: flex; flex-direction: column; align-items: center; gap: 12px; }
.fc-card__front[hidden], .fc-card__back[hidden], .fc-card__options[hidden], .fc-card__bank[hidden], .fc-card__hints[hidden], .fc-card__hint-texts[hidden] { display: none; }
.fc-card__ar { font-size: clamp(48px, 10vw, 72px); line-height: 1.4; }
.fc-card__en { font-family: var(--font-serif); font-size: clamp(38px, 7vw, 56px); line-height: 1.1; }
.fc-card__ask { font-size: 14px; color: var(--text-muted); }
.fc-card__ask--big { font-family: var(--font-serif); font-size: 30px; color: var(--ink); }
.fc-card__listen { width: 96px; height: 96px; border-radius: 50%; background: var(--clay); color: var(--text-on-accent); border: none; font-size: 30px; }
.fc-card__listen:hover { background: var(--clay-hover); }
.fc-card__cloze { font-size: clamp(26px, 5vw, 36px); line-height: 2; }
.fc-card__slot { display: inline-block; min-width: 120px; border-bottom: 2px solid var(--ink); border-radius: 8px 8px 0 0; padding: 0 10px; line-height: 1.5; }
.fc-card__slot.is-chosen { background: var(--sand); }
.fc-card__slot.is-right { background: var(--green-soft); }
.fc-card__slot.is-wrong { background: var(--clay-soft); }
.fc-card__slot--alone { min-width: 140px; font-size: 36px; line-height: 1.6; }
.fc-card__gloss { font-size: 16px; color: var(--text-body); font-style: italic; }
.fc-card__which { font-family: var(--font-serif); font-size: clamp(30px, 6vw, 40px); line-height: 1.15; }

.fc-card__hints { display: flex; gap: 6px; flex-wrap: wrap; justify-content: center; align-items: center; }
.fc-card__hints-label { font-size: 12px; color: var(--text-muted); font-weight: 600; }
.fc-hint { background: transparent; border: 1px dashed var(--line-dashed); border-radius: var(--radius-pill); padding: 5px 12px; font-size: 12px; font-weight: 600; color: var(--ink); }
.fc-hint:hover { border-color: var(--ink); }
.fc-hint.is-used { background: var(--sand); color: var(--text-muted); }
.fc-card__hint-texts { display: flex; gap: 8px; flex-wrap: wrap; justify-content: center; }
.fc-hint-text { background: var(--sand-hover); border-radius: 10px; padding: 6px 12px; font-size: 14px; display: flex; gap: 6px; align-items: center; }
.fc-hint-text__value { font-size: 18px; }

.fc-card__options { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 240px), 1fr)); gap: 10px; width: 100%; }
.fc-option {
  background: var(--card); border: 1.5px solid var(--line-strong); border-radius: var(--radius-md); padding: 12px 14px;
  display: flex; align-items: center; gap: 12px; color: var(--ink); text-align: left; transition: border-color .15s ease, opacity .15s ease;
}
.fc-option:hover:not(:disabled) { border-color: var(--ink); }
.fc-option:disabled { cursor: default; }
.fc-option.is-right { background: var(--green-soft); border-color: var(--green); }
.fc-option.is-wrong { background: var(--clay-soft); border-color: var(--clay); }
.fc-option.is-faded { opacity: .55; }
.fc-option__key { width: 26px; height: 26px; border-radius: 7px; background: var(--sand); font-size: 13px; font-weight: 700; display: flex; align-items: center; justify-content: center; flex-shrink: 0; }
.fc-option__label { flex: 1; font-size: 16px; line-height: 1.4; text-align: center; }
.fc-option__label--ar { font-size: 28px; }

.fc-card__bank { display: flex; flex-direction: column; align-items: center; gap: 16px; }
.fc-card__tiles { display: flex; flex-wrap: wrap; gap: 8px; justify-content: center; }
.fc-tile { background: var(--card); color: var(--ink); border: 1px solid var(--line-strong); border-radius: 12px; padding: 6px 16px; display: flex; align-items: center; gap: 8px; }
.fc-tile:hover { border-color: var(--ink); }
.fc-tile.is-chosen { background: var(--ink); color: var(--paper); border-color: var(--ink); }
.fc-tile__key { font-family: var(--font-sans); font-size: 11px; opacity: .6; }
.fc-tile__word { font-size: 24px; line-height: 1.4; }
.fc-card__check:disabled { opacity: .5; }
.fc-card__giveup { font-size: 14px; color: var(--text-muted); text-decoration: underline; }

.fc-card__back { display: flex; flex-direction: column; align-items: center; gap: 14px; width: 100%; }
.fc-card__result { border-radius: var(--radius-pill); padding: 8px 18px; font-size: 15px; font-weight: 700; background: var(--clay-soft); color: var(--clay); }
.fc-card__result.is-right { background: var(--green-soft); color: var(--green); }
.fc-card__result[hidden] { display: none; }
.fc-card__answer { border-top: 1px solid var(--line); padding-top: 18px; display: flex; flex-direction: column; align-items: center; gap: 8px; width: 100%; }
.fc-card__answer-word { display: flex; align-items: center; gap: 14px; flex-wrap: wrap; justify-content: center; }
.fc-card__audio { background: var(--sand); border: none; border-radius: var(--radius-pill); padding: 8px 14px; font-size: 13px; font-weight: 600; color: var(--ink); }
.fc-card__answer-ar { font-size: 48px; line-height: 1.4; }
.fc-card__answer-en { font-family: var(--font-serif); font-size: 32px; line-height: 1.1; }
.fc-card__root { font-size: 14px; color: var(--text-muted); }
.fc-card__root .ar { font-size: 18px; color: var(--ink); }
.fc-card__example { background: none; border: none; padding: 0; display: flex; flex-direction: column; gap: 2px; align-items: center; color: var(--ink); }
.fc-card__example[hidden] { display: none; }
.fc-card__example-ar { font-size: 24px; line-height: 1.6; }
.fc-card__example-en { font-size: 15px; color: var(--text-body); font-style: italic; }
.fc-card__nuance { background: var(--sand-hover); border-radius: 12px; padding: 12px 14px; font-size: 14px; line-height: 1.5; margin-top: 4px; }
.fc-card__nuance[hidden] { display: none; }

.fc-grades { display: flex; flex-direction: column; gap: 10px; }
.fc-grades[hidden] { display: none; }
.fc-grades__row { display: grid; grid-template-columns: repeat(4, minmax(0, 1fr)); gap: 8px; }
.fc-grade { border-radius: var(--radius-md); padding: 12px 6px; display: flex; flex-direction: column; align-items: center; gap: 2px; color: var(--ink); border: 1px solid var(--green); background: var(--card); }
.fc-grade--again { background: var(--clay-soft); border-color: var(--clay); }
.fc-grade--hard { border-color: var(--line-strong); }
.fc-grade--good { background: var(--green-soft); }
.fc-grade--easy { background: var(--green); color: var(--paper); }
.fc-grade.is-suggested { box-shadow: 0 0 0 3px var(--peach); }
.fc-grade__label { font-size: 15px; font-weight: 700; }
.fc-grade__next { font-size: 12px; opacity: .85; }
.fc-grade__key { font-size: 11px; opacity: .6; }
.fc-grades__tip { font-size: 13px; color: var(--text-muted); text-align: center; }

/* ── The summary ──────────────────────────────────────────────────── */
.fc-summary { display: flex; flex-direction: column; gap: 16px; }
.fc-summary[hidden] { display: none; }
.fc-summary__hero { background: var(--green); color: var(--paper); border-radius: var(--radius-lg); padding: 34px; display: flex; flex-direction: column; align-items: center; gap: 16px; text-align: center; }
.fc-summary__ar { font-size: 48px; line-height: 1.5; }
.fc-summary__title { font-family: var(--font-serif); font-weight: 400; font-size: 34px; line-height: 1; margin: 0; }
.fc-summary__title:focus { outline: none; }
.fc-summary__stats { display: grid; grid-template-columns: repeat(auto-fit, minmax(130px, 1fr)); gap: 10px; width: 100%; margin: 6px 0 0; }
.fc-summary__stats div { background: #3A6A5B; border-radius: var(--radius-md); padding: 14px; display: flex; flex-direction: column-reverse; gap: 2px; }
.fc-summary__stats dt { font-size: 13px; color: var(--green-soft); }
.fc-summary__stats dd { margin: 0; font-family: var(--font-serif); font-size: 36px; line-height: 1; }
.fc-summary__xp { color: var(--peach); }
.fc-summary__panels { display: grid; grid-template-columns: repeat(auto-fit, minmax(min(100%, 320px), 1fr)); gap: 16px; }
.fc-summary__panel { padding: 22px; display: flex; flex-direction: column; gap: 12px; }
.fc-summary__h { margin: 0; font-size: 15px; font-weight: 600; }
.fc-break { display: grid; grid-template-columns: 56px minmax(0, 1fr) 28px; gap: 10px; align-items: center; font-size: 14px; margin-bottom: 10px; }
.fc-break__track { height: 10px; background: var(--line-soft); border-radius: 5px; overflow: hidden; }
.fc-break__fill { display: block; height: 100%; border-radius: 5px; background: var(--green); }
.fc-break--again .fc-break__fill { background: var(--clay); }
.fc-break--hard .fc-break__fill { background: var(--gold); }
.fc-break--good .fc-break__fill { background: #3F7565; }
.fc-break__n { text-align: right; font-weight: 700; }
.fc-summary__forecast { margin: 0; display: grid; grid-template-columns: 1fr auto; }
.fc-summary__forecast dt, .fc-summary__forecast dd { border-top: 1px solid var(--line-soft); padding-top: 8px; margin: 0 0 8px; font-size: 14px; }
.fc-summary__forecast dd { font-family: var(--font-serif); font-size: 24px; text-align: right; }
.fc-summary__missed-head { display: flex; justify-content: space-between; align-items: center; gap: 12px; flex-wrap: wrap; }
.fc-summary__missed { display: flex; flex-wrap: wrap; gap: 8px; }
.fc-missed { background: var(--clay-soft); border: none; border-radius: 12px; padding: 8px 14px; display: flex; align-items: center; gap: 10px; color: var(--ink); }
.fc-missed__en { font-size: 14px; }
.fc-missed__ar { font-size: 22px; }
.fc-summary__actions { display: flex; gap: 10px; flex-wrap: wrap; justify-content: center; }

/* ── Phones ───────────────────────────────────────────────────────── */
@media (max-width: 760px) {
  .fc-table__row--head { display: none; }
  .fc-table__row { grid-template-columns: minmax(0, 1fr) auto; grid-template-areas: "ar ar" "meaning status" "next next" "actions actions"; gap: 6px 12px; }
  .fc-table__row > .fc-table__ar { grid-area: ar; }
  .fc-table__meaning { grid-area: meaning; }
  .fc-table__row > .fc-status { grid-area: status; justify-self: end; }
  .fc-table__next { grid-area: next; }
  .fc-table__actions { grid-area: actions; justify-content: flex-start; }
  .fc-table__buttons { justify-content: flex-start; }
  .fc-grades__row { gap: 6px; }
  .fc-grade__key { display: none; }
  .fc-card { padding: 28px 18px; min-height: 300px; }
}
