/* Recov training portal — additions on top of the approved preview styles (styles.css). Figtree only. */

[hidden] { display: none !important; }

/* preview strip: always says what is simulated */
.preview-strip { background: var(--ice); color: var(--ice-ink); font-size: 12px; font-weight: 700; letter-spacing: .2px; }
.preview-strip__in { display: flex; flex-wrap: wrap; gap: 4px 10px; padding-top: 6px; padding-bottom: 6px; }
.preview-strip strong { text-transform: uppercase; letter-spacing: .8px; font-weight: 800; }

.signout { appearance: none; -webkit-appearance: none; border: 1px solid var(--line); background: var(--inset); color: var(--white); border-radius: var(--r-pill); min-height: 40px; padding: 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; white-space: nowrap; }
.signout:hover { background: var(--card); }
body:not([data-auth="in"]) .page-label { display: none; }
@media (max-width: 420px) { body[data-auth="in"] .page-label { display: none; } }

/* auth screens */
.auth { min-height: calc(100svh - 64px - 30px); display: flex; align-items: stretch; }
.auth .hero { flex: 1; min-height: 0; }
.auth__in { padding-top: 22px; padding-bottom: 32px; align-self: stretch; display: flex; flex-direction: column; justify-content: flex-end; gap: 14px; width: 100%; }
.auth__in .pill { align-self: flex-start; }
.auth__in .display { margin-top: 64px; }
.auth-card { display: grid; gap: 14px; max-width: 460px; width: 100%; }
.auth-card .btn-fill { width: 100%; }
.auth-steps { list-style: none; margin: 0; padding: 0; display: grid; gap: 8px; font-size: 14.5px; color: var(--text-2); }
.auth-steps li { display: grid; grid-template-columns: 26px 1fr; gap: 10px; align-items: start; }
.auth-steps b { width: 26px; height: 26px; border-radius: 50%; display: grid; place-items: center; background: var(--inset); color: var(--ice); font-size: 12px; font-weight: 800; }
.field { display: grid; gap: 6px; }
.field label { font-size: 12px; font-weight: 800; letter-spacing: 1px; text-transform: uppercase; color: var(--text-2); }
.field input { width: 100%; min-height: 54px; padding: 0 16px; border-radius: var(--r-in); border: 2px solid rgba(255,255,255,.16); background: var(--inset); color: var(--white); font: inherit; font-size: 17px; font-weight: 600; }
.field input:focus-visible { outline: 3px solid var(--ice); outline-offset: 2px; border-color: transparent; }
.field input[aria-invalid="true"] { border-color: #FF8A8A; }
.field--code input { font-size: 28px; font-weight: 800; letter-spacing: 10px; text-align: center; font-variant-numeric: tabular-nums; }
.form-msg { margin: 0; min-height: 1.4em; font-size: 14px; font-weight: 600; color: var(--text-2); }
.form-msg[data-tone="error"] { color: #FFB4B4; }
.form-msg[data-tone="ok"] { color: var(--ice); }
.linkbtn { appearance: none; -webkit-appearance: none; background: none; border: 0; padding: 6px 0; color: var(--ice); font-size: 13px; font-weight: 800; letter-spacing: .5px; text-transform: uppercase; cursor: pointer; text-decoration: none; justify-self: start; }
.linkbtn[disabled] { color: var(--text-3); cursor: default; }
.auth-row { display: flex; flex-wrap: wrap; justify-content: space-between; gap: 8px; align-items: center; }
.sim-box { border: 1.5px dashed var(--ice); border-radius: var(--r-in); padding: 12px 14px; font-size: 13.5px; color: var(--text-2); display: grid; gap: 6px; }
.sim-box strong { color: var(--ice); text-transform: uppercase; letter-spacing: .8px; font-size: 11.5px; }
.sim-box pre { margin: 0; white-space: pre-wrap; font: inherit; color: var(--white); }
.fine { margin: 0; font-size: 12.5px; color: var(--text-3); }

/* access-state screen */
.state-card { display: grid; gap: 12px; max-width: 620px; }
.state-card .h2 { margin-top: 0; }
.state-tag { justify-self: start; }
.state-card .btn-fill { justify-self: start; }

/* draft badges */
.chip--draft { background: rgba(255,255,255,.08); color: var(--text-2); }
.draft-badge { display: inline-flex; align-self: flex-start; justify-self: start; padding: 5px 12px; border-radius: var(--r-pill); background: #FFE7A3; color: #3A2C00; font-size: 11.5px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; }

.lesson-main > .draft-badge { display: flex; width: max-content; }

/* start here + continue watching */
.start { display: grid; gap: 14px; }
.start-card { display: grid; grid-template-columns: 96px 1fr; gap: 14px; align-items: center; padding: 12px; border-radius: var(--r-card); background: var(--card); text-decoration: none; }
.start-card img { width: 96px; height: 96px; object-fit: cover; border-radius: var(--r-in); }
.start-card__t { display: block; font-size: 19px; font-weight: 800; line-height: 1.2; }
.start-card__m { display: block; font-size: 13px; color: var(--text-2); margin-top: 2px; }
.cw-list { list-style: none; margin: 14px 0 0; padding: 0; display: grid; gap: 10px; }
.cw { display: grid; grid-template-columns: 64px 1fr auto; gap: 12px; align-items: center; padding: 10px; border-radius: var(--r-card); background: var(--card); text-decoration: none; }
.cw img { width: 64px; height: 64px; object-fit: cover; border-radius: 12px; }
.cw__t { display: block; font-size: 16px; font-weight: 800; }
.cw__m { display: block; font-size: 12.5px; color: var(--text-2); }
.cw .row__go { width: 34px; height: 34px; }

/* notes save state */
.notes__status[data-state="saving"] { color: var(--ink-2); }
.notes__status[data-state="saved"] { color: #1F6E3A; }
.notes__status[data-state="error"], .notes__status[data-state="conflict"] { color: #A3171B; }
.notes__actions { display: flex; flex-wrap: wrap; gap: 8px; margin-top: 6px; }
.notes__actions button { appearance: none; -webkit-appearance: none; border: 1.5px solid var(--ink); background: transparent; color: var(--ink); border-radius: var(--r-pill); min-height: 36px; padding: 0 14px; font-size: 12px; font-weight: 800; letter-spacing: .4px; text-transform: uppercase; cursor: pointer; }

/* video placeholder label */
.player__label--hold { color: #FFE7A3; }
.toast { position: fixed; left: 50%; transform: translateX(-50%); bottom: 96px; z-index: 60; background: var(--light); color: var(--ink); padding: 10px 16px; border-radius: var(--r-pill); font-size: 14px; font-weight: 700; box-shadow: 0 8px 30px rgba(0,0,0,.35); }

@media (min-width: 960px) {
  .auth__in { flex-direction: row; align-items: flex-end; justify-content: space-between; gap: 48px; }
  .auth__copy { max-width: 560px; }
  .auth-card { padding: 22px; border-radius: var(--r-card); background: rgba(11,20,39,.86); -webkit-backdrop-filter: blur(10px); backdrop-filter: blur(10px); }
  .start { grid-template-columns: 1.1fr 1fr; align-items: start; }
  .toast { bottom: 32px; }
}
