/* Practice panels — dist/study/practice.js. Everything here is scoped under
   #am-card, #tt-panel, #missed-panel, #pr-panel or a .pr-* class, so nothing on
   the page itself is restyled. The pages are light-only, and so is this. */

#am-card { margin: 0 0 18px; padding: 16px 16px 12px; border-radius: 16px; border: 1px solid #f3cf8e;
  background: linear-gradient(160deg, #fff4dc 0%, #ffe9c7 55%, #ffe1d0 100%); color: #3b2a12; }
#am-card[hidden] { display: none; }
#am-card .am-title { margin: 0 0 4px; font-size: 22px; line-height: 1.25; }
#am-card .am-line { margin: 0 0 10px; font-size: 16px; color: #6b4f22; }
#am-card .am-chips { display: flex; flex-wrap: wrap; gap: 6px; margin: 0 0 12px; }
#am-card .am-chip { padding: 4px 10px; border-radius: 999px; background: #fff; border: 1px solid #f0c77f; font-size: 15px; }
#am-card .am-chip-done { background: #e6f6e9; border-color: #a9dab4; color: #1d5e2c; }
#am-card .am-start, #am-card .am-redo { display: block; width: 100%; min-height: 64px; margin: 0 0 8px; border: 0; border-radius: 14px;
  background: #e8731a; color: #fff; font-size: 22px; font-weight: 700; cursor: pointer; }
#am-card .am-redo { min-height: 48px; font-size: 17px; font-weight: 600; background: #fff; color: #8a4b0f; border: 1px solid #e3b16a; }
#am-card .am-bonus { margin: 0 0 6px; font-size: 16px; font-weight: 600; color: #8a4b0f; }
#am-card .am-also { margin: 6px 0 0; font-size: 15px; color: #6b5a42; }
#am-card .am-donetext { margin: 0 0 8px; font-size: 20px; font-weight: 700; color: #1d5e2c; }
#am-card .am-elsewhere { display: block; min-height: 48px; padding: 12px 0 4px; font-size: 18px; font-weight: 600; color: #8a4b0f; }
#am-card .am-more { display: inline-block; margin: 0 0 10px; font-size: 17px; font-weight: 600; color: #8a4b0f; }
#am-card .am-stepdone { margin: 18px 0; font-size: 26px; font-weight: 700; text-align: center; color: #1d5e2c; }
#am-card .am-fg .fg-cta { margin-top: 10px; background: #fffaf2; }
#am-card.am-running .am-fg { opacity: .55; }

/* one question on screen: tall buttons, big text, car-friendly */
.pr-q { margin: 6px 0 4px; }
.pr-q .pr-qtop { display: flex; align-items: center; gap: 8px; margin: 0 0 6px; }
.pr-q .pr-chip { padding: 3px 10px; border-radius: 999px; background: #fff; border: 1px solid #d9cdb7; font-size: 15px; font-weight: 600; }
.pr-q .pr-repeat { background: #f1efff; border-color: #cfc8f5; font-weight: 500; }
.pr-q .pr-say { margin-left: auto; min-width: 48px; min-height: 44px; border: 1px solid #d9cdb7; border-radius: 12px; background: #fff; font-size: 20px; cursor: pointer; }
.pr-q .pr-extra { margin: 0 0 4px; font-size: 15px; color: #7a5a24; }
.pr-q .pr-prompt { margin: 4px 0 12px; font-size: 24px; line-height: 1.3; font-weight: 700; }
.pr-q .pr-choices { display: flex; flex-direction: column; gap: 10px; }
.pr-q .pr-choice { display: block; width: 100%; min-height: 64px; padding: 10px 14px; border: 2px solid #d6c6a8; border-radius: 14px;
  background: #fff; color: #231a0c; font-size: 22px; line-height: 1.25; text-align: center; cursor: pointer; }
.pr-q.pr-wait .pr-choice { opacity: .8; }
.pr-q .pr-choice.pr-right { border-color: #2e9a4b; background: #e8f7ec; }
.pr-q .pr-choice.pr-wrong { border-color: #c6452f; background: #fcebe7; }
.pr-q .pr-choice:disabled { color: #231a0c; cursor: default; }
.pr-q .pr-fb { margin: 10px 0 0; }
.pr-q .pr-tick { font-size: 24px; font-weight: 700; color: #1d7a36; }
.pr-q .pr-ans { margin: 0 0 4px; font-size: 20px; font-weight: 700; }
.pr-q .pr-why { margin: 0 0 8px; font-size: 18px; line-height: 1.4; }
.pr-q .pr-go { min-height: 56px; padding: 0 22px; border: 0; border-radius: 12px; background: #3b5bdb; color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }

/* tomorrow's test: the first thing to practise when there is one */
#tt-panel { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; border: 2px solid #8e7be0; background: #f5f2ff; color: #231a3d; }
#tt-panel[hidden] { display: none; }
#tt-panel .tt-title { margin: 0 0 2px; font-size: 22px; }
#tt-panel .tt-sub { margin: 0 0 10px; font-size: 16px; color: #4a3a86; }
#tt-panel .tt-card { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #d6ccf7; }
#tt-panel .tt-subject { display: inline-block; margin: 0 0 4px; padding: 2px 10px; border-radius: 999px; background: #ebe5ff;
  font-size: 14px; font-weight: 700; color: #4a3a86; }
#tt-panel .tt-label { margin: 4px 0 2px; font-size: 19px; font-weight: 700; }
#tt-panel .tt-topics { margin: 2px 0 8px; padding-left: 22px; font-size: 16px; line-height: 1.4; }
#tt-panel .tt-go { display: block; width: 100%; min-height: 56px; margin: 6px 0 0; border: 0; border-radius: 14px;
  background: #6a4fd8; color: #fff; font-size: 20px; font-weight: 700; cursor: pointer; }
#tt-panel .tt-none { margin: 6px 0 0; font-size: 15px; color: #4a3a86; }
#pr-panel .pr-subj.pr-test { border-color: #8e7be0; background: #f5f2ff; font-weight: 700; }

/* the missed-question section: clearly not today's work */
#missed-panel { margin: 0 0 18px; padding: 14px 16px; border: 2px dashed #e0a526; border-radius: 14px; background: #fff8e6; }
#missed-panel[hidden] { display: none; }
#missed-panel .ms-title { margin: 0 0 2px; font-size: 20px; }
#missed-panel .ms-sub { margin: 0 0 10px; font-size: 15px; color: #6b5a42; }
#missed-panel .ms-card { margin: 0 0 12px; padding: 12px; border-radius: 12px; background: #fff; border: 1px solid #f0d9a2; }
#missed-panel .ms-src { display: inline-block; padding: 2px 9px; border-radius: 999px; background: #fdecc0; font-size: 13px; font-weight: 700; color: #7a4f00; }
#missed-panel .ms-q { margin: 8px 0 4px; font-size: 19px; font-weight: 700; }
#missed-panel .ms-a { margin: 0 0 4px; font-size: 18px; font-weight: 700; color: #1d5e2c; }
#missed-panel .ms-why p { margin: 0 0 2px; font-size: 16px; }
#missed-panel .ms-bricks { margin: 6px 0 0; font-size: 15px; color: #5b4a2a; }
#missed-panel .ms-step { margin: 6px 0; font-size: 15px; color: #6b5a42; }
#missed-panel .ms-btns { display: flex; flex-wrap: wrap; gap: 8px; }
#missed-panel .ms-btns button, #missed-panel .ms-close { min-height: 48px; padding: 0 14px; border: 1px solid #d9b25d; border-radius: 12px;
  background: #fff3d6; font-size: 17px; font-weight: 600; cursor: pointer; }
#missed-panel .ms-btns button:disabled { opacity: .5; cursor: default; }
#missed-panel .ms-fixed summary { cursor: pointer; font-size: 15px; color: #1d5e2c; }

/* more practice */
#pr-panel { margin: 0 0 18px; padding: 14px 16px; border-radius: 14px; border: 1px solid #c9d7f2; background: #f4f8ff; }
#pr-panel .pr-title { margin: 0 0 2px; font-size: 20px; }
.pr-line { margin: 0 0 6px; font-size: 15px; color: #37508a; }
#pr-panel .pr-daymeter { margin: 0 0 10px; font-size: 15px; font-weight: 600; color: #37508a; }
#pr-panel .pr-chips { display: flex; flex-wrap: wrap; gap: 8px; margin: 0 0 10px; }
#pr-panel .pr-subj { min-height: 48px; padding: 0 14px; border: 1px solid #a9bde6; border-radius: 12px; background: #fff; font-size: 17px; cursor: pointer; }
#pr-panel .pr-subj.pr-last { border-color: #3b5bdb; box-shadow: 0 0 0 2px #dbe4ff inset; }
.pr-run { margin: 6px 0 0; }
.pr-runtop { display: flex; flex-wrap: wrap; align-items: baseline; gap: 10px; margin: 0 0 4px; }
.pr-runtitle { font-size: 17px; font-weight: 700; }
.pr-meter { font-size: 14px; color: #37508a; }
.pr-foot { margin: 8px 0 0; }
.pr-more, .pr-sec-more { min-height: 48px; padding: 0 16px; border: 1px solid #3b5bdb; border-radius: 12px; background: #fff; color: #27408b;
  font-size: 17px; font-weight: 700; cursor: pointer; }
.pr-capnote, .pr-none, .pr-done { margin: 8px 0 0; font-size: 15px; color: #37508a; }
.pr-bricks { margin: 10px 0 0; padding: 10px; border-radius: 12px; background: #fff7ef; border: 1px solid #f1cfa7; }
.pr-bricks-title { margin: 0 0 2px; font-size: 18px; font-weight: 700; color: #8a4b0f; }
.pr-sec { margin: 12px 0 0; }
.pr-after-today { margin: 10px 0 0; font-size: 17px; font-weight: 600; color: #1d5e2c; }
.pr-after-today[hidden] { display: none; }
.pr-quiz-more { margin: 8px 0; }
.pr-quiz-more[hidden] { display: none; }
.pr-toast { position: fixed; left: 50%; bottom: 76px; z-index: 60; max-width: 92vw; padding: 10px 16px; border-radius: 12px;
  transform: translateX(-50%) translateY(20px); opacity: 0; transition: opacity .2s, transform .2s; pointer-events: none;
  background: #1f3a1f; color: #fff; font-size: 16px; font-weight: 600; text-align: center; }
.pr-toast.on { opacity: 1; transform: translateX(-50%) translateY(0); }
