/* Added to the course app when it runs as Tutor (see tutor.js); uses the app's own colour variables. */
.tutor-foot { margin: 40px 0 24px; padding-top: 14px; border-top: 1px solid var(--line, #d5dde8); font-size: 13px; color: var(--fg2, #4a5a70); }
.tutor-foot p { margin: 4px 0; }
.tutor-foot nav { line-height: 2; }
/* Google's sign-in button and Razorpay's checkout are light pages in frames: marked light like the pages inside
   them, the frames stay transparent in the dark theme instead of showing a white box */
iframe { color-scheme: light; }
.tutor-offline, .tutor-offline[hidden] { display: none; }
.tutor-offline:not([hidden]) {
  display: block; position: fixed; left: 50%; bottom: 16px; transform: translateX(-50%); z-index: 1000;
  max-width: calc(100% - 32px); padding: 10px 16px; border-radius: 8px;
  background: var(--fg, #0f1c2e); color: var(--bg, #f8fafc); font: 14px/1.4 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
  box-shadow: 0 4px 16px rgba(0, 0, 0, .25);
}

/* lock cards (tutor.js): a locked day's study material, below its free videos */
.tutor-lock { margin: 18px 0 28px; padding: 16px 18px; border: 1px solid var(--line, #d5dde8); border-left: 4px solid var(--accent, #1d4ed8); border-radius: 10px; background: var(--bg2, #edf2f7); }
.tutor-lock p { margin: 6px 0; }
.tutor-lock-head { font-size: 16px; }
.tutor-lock-what { color: var(--fg2, #4a5a70); font-size: 14px; }
.tutor-lock-act { font-size: 14px; }
.tutor-signin:empty { display: none; }
.tutor-signin { margin: 10px 0 4px; min-height: 40px; }
h2.tutor-locked .unit-done { display: none; }

/* the account box in the sidebar (tutor.js) */
.tutor-account { margin: 0 14px 10px; padding: 10px 12px; border: 1px solid var(--line, #d5dde8); border-radius: 8px; background: var(--bg, #f8fafc); font-size: 13px; color: var(--fg2, #4a5a70); overflow-wrap: anywhere; }
.tutor-account:empty { display: none; }
.tutor-account p { margin: 0 0 6px; }
.tutor-account p:last-child { margin-bottom: 0; }
.tutor-who { display: flex; flex-direction: column; gap: 1px; color: var(--fg, #0f1c2e); }
.tutor-name { font-weight: 600; }
.tutor-email { font-size: 12px; color: var(--fg2, #4a5a70); }
.tutor-sync { font-size: 12px; }
.tutor-sync:empty { display: none; }
.tutor-sync[data-state="retry"], .tutor-sync[data-state="large"], .tutor-sync[data-state="paused"], .tutor-sync[data-state="signedout"] { color: var(--fg, #0f1c2e); font-weight: 600; }
.tutor-gbtn { min-height: 44px; margin-top: 8px; max-width: 100%; overflow: hidden; }
.tutor-account-msg { margin: 6px 0 0; font-size: 13px; color: var(--fg, #0f1c2e); font-weight: 600; }
.tutor-account-msg[hidden] { display: none; }
.tutor-signed-in .tutor-signin { display: none; }
.tutor-signin { max-width: 100%; overflow: hidden; }

/* asked once, when this device and the account both hold progress */
dialog.tutor-modal { width: min(440px, calc(100vw - 32px)); max-width: none; box-sizing: border-box; padding: 18px 20px; border: 1px solid var(--line, #d5dde8); border-radius: 12px; background: var(--bg, #f8fafc); color: var(--fg, #0f1c2e); font: 15px/1.45 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif; }
dialog.tutor-modal::backdrop { background: rgba(0, 0, 0, .5); }
dialog.tutor-modal h2 { margin: 0 0 8px; font-size: 18px; line-height: 1.3; }
dialog.tutor-modal p { margin: 0 0 10px; }
.tutor-modal-opts { display: flex; flex-direction: column; gap: 4px; margin-top: 14px; }
.tutor-modal-opts button { width: 100%; padding: 8px 14px; font-size: 15px; border-radius: 8px; cursor: pointer; }
.tutor-modal-opts button.small { border: 1px solid var(--line, #d5dde8); background: var(--bg2, #edf2f7); color: var(--fg, #0f1c2e); }
.tutor-modal-fine { margin: 0 0 10px !important; font-size: 12px; color: var(--fg2, #4a5a70); text-align: center; }

/* the day-by-day plan: a locked day */
.tutor-plan-lock { margin-left: 4px; font-size: 12px; opacity: .75; cursor: help; }

/* a lock card's price and the pay button (tutor.js), once payments are open */
.tutor-price { margin: 12px 0 6px; padding-top: 10px; border-top: 1px dashed var(--line, #d5dde8); }
.tutor-price-line { font-size: 16px; }
.tutor-price-line s { color: var(--fg2, #4a5a70); }
.tutor-price-line strong { font-size: 20px; }
.tutor-offer { font-size: 13px; color: var(--fg2, #4a5a70); }
.tutor-left { font-weight: 600; color: var(--fg, #0f1c2e); white-space: nowrap; }
.tutor-buy { margin: 8px 0 4px; padding: 9px 18px !important; font-size: 16px !important; border-radius: 9px !important; cursor: pointer; }
.tutor-buy:disabled { opacity: .6; cursor: progress; }
.tutor-fine { font-size: 12px; color: var(--fg2, #4a5a70); }
.tutor-pay-msg { font-weight: 600; color: var(--fg, #0f1c2e); }
.tutor-pay-msg[hidden] { display: none; }
.tutor-purchases { font-weight: 600; }

/* vouchers and invitations (tutor.js; PWA-PLAN.md §2 "Referral") */
.tutor-voucher { padding: 6px 10px; border-radius: 8px; background: var(--ok-bg, #e4f4ea); color: var(--fg, #0f1c2e); font-size: 14px; }
.tutor-invite-line { margin-top: 10px !important; padding-top: 8px; border-top: 1px dashed var(--line, #d5dde8); font-size: 13px; color: var(--fg2, #4a5a70); }
.tutor-invite-line button.small { margin: 4px 0; padding: 3px 10px; font-size: 13px; border-radius: 7px; cursor: pointer; }
.tutor-vouchers { color: var(--fg, #0f1c2e); font-weight: 600; }
.tutor-invited { color: var(--fg, #0f1c2e); }
p.tutor-invited.notice { margin: 0 0 18px; }
.tutor-invite { display: flex; flex-wrap: wrap; gap: 8px; align-items: center; }
.tutor-invite input { flex: 1 1 16em; min-width: 0; padding: 7px 10px; border: 1px solid var(--line, #d5dde8); border-radius: 7px; background: var(--bg, #f8fafc); color: var(--fg, #0f1c2e); font: inherit; font-size: 14px; }
.tutor-invite button { padding: 7px 14px; border-radius: 7px; cursor: pointer; font: inherit; font-size: 14px; }
label.tutor-voucher { display: flex; gap: 10px; align-items: flex-start; margin: 8px 0; cursor: pointer; }
label.tutor-voucher input { flex: none; width: 18px; height: 18px; margin: 2px 0 0; }

/* the mark on open paid days (tutor.js, ANTI-PIRACY-PLAN.md §6 A): under the heading and at the end of the day */
.tutor-mark { margin: 2px 0 14px; font-size: 12px; color: var(--fg2, #4a5a70); letter-spacing: .01em; }
.tutor-mark[data-pos="bottom"] { margin: 18px 0 8px; padding-top: 6px; border-top: 1px dashed var(--line, #d5dde8); }
@media print { .tutor-mark { color: #555; } }

/* the screen guard's cover (tutor.js): over the whole app on screen, never in print */
#tutor-veil[hidden] { display: none; }
#tutor-veil {
  position: fixed; inset: 0; z-index: 2000; display: flex; align-items: center; justify-content: center; padding: 24px 16px;
  background: var(--bg, #f8fafc); color: var(--fg, #0f1c2e); text-align: center; cursor: pointer;
  font: 16px/1.5 -apple-system, BlinkMacSystemFont, "Segoe UI", Roboto, sans-serif;
}
#tutor-veil p { max-width: 28em; margin: 0; }
@media print { #tutor-veil { display: none !important; } }

/* signed-in devices (tutor.js, ANTI-PIRACY-PLAN.md §6 B): the notice in the account box, the list under Settings */
.tutor-newdev { margin: 0 0 8px; padding: 8px 10px; border-radius: 6px; border: 1px solid var(--warn, #a24f07); background: var(--bg2, #edf2f7); color: var(--fg, #0f1c2e); }
.tutor-newdev p { margin: 0 0 6px; }
.tutor-devices { margin-top: 12px; padding-top: 10px; border-top: 1px solid var(--line, #d5dde8); }
.tutor-devices-h { margin: 0 0 6px; }
.tutor-dev-list { list-style: none; margin: 0 0 8px; padding: 0; }
.tutor-dev-list li { margin: 0 0 8px; overflow-wrap: anywhere; }
.tutor-dev-list .fine { display: block; }
.tutor-dev-list button { margin-top: 4px; }
