/* Owner requests, 2026-10-12. Loaded last so these rules win over earlier sheets. */

/* Icons are now single pre-cut images (scripts/build-artwork-cells.py). */
.raster-art > img { position: static; display: block; width: 100%; height: 100%; object-fit: contain; }

/* Profession, programme and course choices must read as tappable cards. */
.profession, .course-card {
  border: 1.5px solid #cfe2d7;
  box-shadow: 0 2px 6px rgba(6, 70, 53, 0.07);
  cursor: pointer;
  transition: transform 0.12s ease, box-shadow 0.12s ease, border-color 0.12s ease;
}
.profession:hover, .course-card:hover { border-color: #00583f; box-shadow: 0 8px 20px rgba(6, 70, 53, 0.14); transform: translateY(-1px); }
.profession:active, .course-card:active { transform: scale(0.985); box-shadow: 0 1px 3px rgba(6, 70, 53, 0.14); }
.profession:focus-visible, .course-card:focus-visible { outline: 3px solid #00583f; outline-offset: 2px; }
.choice-open {
  display: inline-flex; flex-direction: row; align-items: center; gap: 6px; flex: 0 0 auto;
  margin-left: auto; padding: 8px 13px; border-radius: 999px;
  background: #00583f; color: #fff; font-size: 13px; font-weight: 650; line-height: 1; white-space: nowrap;
}
.choice-open svg { width: 16px; height: 16px; }
.profession:hover .choice-open, .course-card:hover .choice-open, .doc-launch:hover .choice-open { background: #073d32; }
.card-footer { align-items: center; gap: 12px; }

/* "My documents": a clear, deep-green card. Featured near the top of Practice. */
.doc-launch {
  align-items: center; gap: 14px; padding: 16px 18px; margin: 16px 0;
  background: #f1f9f4; color: #073d32; border: 2px solid #00583f; border-radius: 16px;
  box-shadow: 0 4px 14px rgba(0, 88, 63, 0.12);
}
.doc-launch:hover { box-shadow: 0 8px 22px rgba(0, 88, 63, 0.18); }
.doc-launch:focus-visible { outline: 3px solid #00583f; outline-offset: 2px; }
.doc-launch > span:nth-child(2) { flex: 1; }
.doc-launch strong { font-size: 17px; }
.doc-launch small { color: #2f4a3f; }
.doc-launch .doc-launch-icon {
  flex: 0 0 48px; width: 48px; height: 48px; border-radius: 14px;
  align-items: center; justify-content: center; background: #00583f; color: #fff;
}
.doc-launch .doc-launch-icon svg { width: 26px; height: 26px; }
.doc-launch .choice-open { flex-direction: row; }
.doc-launch-feature { border-width: 2.5px; background: #e8f5ee; margin: 18px 0 22px; }

/* Generated notes and quizzes: always a white reading surface with dark text. */
.doc-output, .doc-output .doc-note { background: #fff !important; color: #14231c; }
.doc-output { border: 1.5px solid #cfe2d7; }
.doc-output .doc-meta, .doc-output small { color: #52665d; }
.doc-output .doc-prose { color: #14231c; }

/* Long document work: tell people to keep the screen open. */
.doc-keep-open {
  display: flex; gap: 14px; align-items: flex-start; padding: 18px; border-radius: 16px;
  background: #fff8e6; border: 2px solid #c98a00; color: #3d2c00;
}
.doc-keep-open strong { display: block; font-size: 18px; margin-bottom: 4px; }
.doc-keep-open p { margin: 0 0 4px; }
.doc-keep-open small { color: #5c4a12; }
.doc-keep-note { padding: 12px 14px; border-left: 4px solid #c98a00; background: #fff8e6; color: #3d2c00; border-radius: 8px; }

/* Log out and Delete account sit at the very bottom of Profile. */
.account-actions-end { margin-top: 40px; padding-top: 20px; border-top: 1px solid #dce8e2; justify-content: space-between; }

/* Google sign-in is the recommended way in. */
.auth-google { border: 2px solid #00583f; font-size: 15px; }
.auth-recommended {
  margin-left: 4px; padding: 3px 8px; border-radius: 999px; background: #00583f; color: #fff;
  font-size: 11px; font-weight: 700; letter-spacing: 0.3px; text-transform: uppercase;
}
.auth-google-hint { margin: 8px 0 0; text-align: center; font-size: 12px; color: #52665d; }


/* One neutral loading surface for startup and course changes. No fake percentage. */
.study-loading.boot{box-sizing:border-box;min-height:100dvh;max-width:none;margin:0;padding:32px 24px;display:flex;flex-direction:column;align-items:center;justify-content:center;background:#f5f8f7;color:#142823;text-align:center;gap:32px}
.loading-brand{display:flex;flex-direction:column;align-items:center;gap:6px}.loading-brand img{width:64px;height:64px;object-fit:contain;margin-bottom:8px}.loading-brand strong{font-size:24px;line-height:1.2;letter-spacing:-.7px;font-weight:750}.loading-brand>span{font-size:10px;letter-spacing:2px;color:#45675a;font-weight:600}
.loading-status{display:flex;align-items:center;gap:10px;color:#526b60;min-height:24px}.loading-status p{margin:0;font-size:14px;line-height:1.5}.loading-spinner{flex-shrink:0;width:18px;height:18px;border:2px solid #cee4d9;border-top-color:#006044;border-radius:50%;animation:doc-spin .8s linear infinite}.loading-preview{display:grid;gap:10px;width:min(256px,75vw)}.loading-preview i{display:block;height:8px;border-radius:8px;background:#dfece6}.loading-preview i:nth-child(2){width:82%}.loading-preview i:nth-child(3){width:60%}
@media(prefers-reduced-motion:reduce){.loading-spinner{animation:none}}
