/* =====================================================================
   AI Study Guru — Premium Study OS Theme (v33)
   Top-class premium UI/UX for Indian students (Class 6-12, College, NEET/JEE)
   Layered AFTER website-tutor.css. Preserves all IDs/JS hooks.
   Light + Dark (body.wt-dark), responsive, accessible, animated.
   ===================================================================== */

@import url("https://fonts.googleapis.com/css2?family=Outfit:wght@500;600;700;800;900&family=Plus+Jakarta+Sans:wght@400;500;600;700;800&display=swap");

/* ── 0. Premium tokens ─────────────────────────────────────────── */
body.tutor {
  --pg-primary: #4f46e5;
  --pg-primary-2: #7c3aed;
  --pg-accent: #06b6d4;
  --pg-gold: #f59e0b;
  --pg-green: #10b981;
  --pg-rose: #f43f5e;
  --pg-ink: #0b1020;
  --pg-ink-2: #131a32;
  --pg-text: #0f172a;
  --pg-muted: #5b6b85;
  --pg-faint: #8ea0bb;
  --pg-line: #e6eaf3;
  --pg-card: #ffffff;
  --pg-soft: #f5f7fd;
  --pg-shadow-sm: 0 1px 2px rgba(11,16,32,.06), 0 4px 14px rgba(11,16,32,.06);
  --pg-shadow-md: 0 10px 30px -8px rgba(79,70,229,.22), 0 4px 14px rgba(11,16,32,.08);
  --pg-shadow-lg: 0 24px 60px -12px rgba(79,70,229,.28), 0 12px 28px rgba(11,16,32,.12);
  --pg-ring: 0 0 0 4px rgba(79,70,229,.14);
  --pg-radius: 18px;
  --pg-radius-sm: 12px;
  --pg-font-head: "Outfit", "Plus Jakarta Sans", system-ui, sans-serif;
  --pg-font-body: "Plus Jakarta Sans", system-ui, -apple-system, "Segoe UI", Roboto, "Noto Sans", sans-serif;
  font-family: var(--pg-font-body);
  background: #eef1f9;
  color: var(--pg-text);
  -webkit-font-smoothing: antialiased;
  text-rendering: optimizeLegibility;
}

body.tutor.wt-dark {
  --pg-text: #e8edf8;
  --pg-muted: #9aa8c3;
  --pg-faint: #6b7a99;
  --pg-line: rgba(255,255,255,.1);
  --pg-card: #111a33;
  --pg-soft: #0d1430;
  --pg-shadow-sm: 0 1px 2px rgba(0,0,0,.4);
  --pg-shadow-md: 0 10px 30px rgba(0,0,0,.45);
  --pg-shadow-lg: 0 24px 60px rgba(0,0,0,.55);
  background: #060a18;
  color: var(--pg-text);
}

body.tutor h1, body.tutor h2, body.tutor h3,
.tutor .wt-model-name, .tutor .wt-sb-title {
  font-family: var(--pg-font-head);
  letter-spacing: -.025em;
}

/* keep hidden iron-clad */
body.tutor [hidden] { display: none !important; }

/* premium focus */
body.tutor :focus-visible {
  outline: 2px solid var(--pg-primary);
  outline-offset: 2px;
  border-radius: 8px;
}

/* scrollbars */
body.tutor ::-webkit-scrollbar { width: 10px; height: 10px; }
body.tutor ::-webkit-scrollbar-track { background: transparent; }
body.tutor ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #c7d2fe, #a5b4fc);
  border-radius: 999px;
  border: 2px solid transparent;
  background-clip: padding-box;
}
body.tutor.wt-dark ::-webkit-scrollbar-thumb {
  background: linear-gradient(180deg, #3730a3, #4f46e5);
  border: 2px solid transparent;
  background-clip: padding-box;
}

/* ── 1. Auth / Welcome — premium hero ─────────────────────────── */
body.tutor .wt-main { max-width: 1240px; padding: 22px 20px 60px; }

body.tutor .wt-welcome {
  grid-template-columns: 1.05fr .95fr;
  gap: 28px;
  align-items: stretch;
  margin: 18px 0 10px;
  position: relative;
}
body.tutor .wt-welcome > div:first-child {
  position: relative;
  overflow: hidden;
  border-radius: 24px;
  padding: 36px 32px 30px;
  background:
    radial-gradient(520px 300px at 12% 8%, rgba(124,58,237,.28), transparent 60%),
    radial-gradient(520px 340px at 88% 18%, rgba(6,182,212,.26), transparent 62%),
    radial-gradient(600px 420px at 50% 110%, rgba(245,158,11,.18), transparent 60%),
    linear-gradient(165deg, #121a3a 0%, #1b1650 48%, #0e2a5a 100%);
  color: #fff;
  box-shadow: var(--pg-shadow-lg);
  border: 1px solid rgba(255,255,255,.14);
}
body.tutor .wt-welcome > div:first-child::before {
  content: "";
  position: absolute; inset: 0;
  background-image:
    linear-gradient(rgba(255,255,255,.06) 1px, transparent 1px),
    linear-gradient(90deg, rgba(255,255,255,.06) 1px, transparent 1px);
  background-size: 28px 28px;
  mask-image: radial-gradient(70% 70% at 50% 30%, black 30%, transparent 75%);
  pointer-events: none;
}
body.tutor .wt-welcome > div:first-child::after {
  content: "✦";
  position: absolute; right: 22px; top: 18px;
  font-size: 22px; opacity: .7;
  animation: pgFloat 4s ease-in-out infinite;
}
body.tutor .wt-eyebrow {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.12);
  border: 1px solid rgba(255,255,255,.22);
  color: #e0e7ff;
  padding: 6px 12px;
  border-radius: 999px;
  font-size: .72rem;
  letter-spacing: .1em;
  backdrop-filter: blur(8px);
}
body.tutor .wt-eyebrow::before {
  content: ""; width: 7px; height: 7px; border-radius: 50%;
  background: #34d399; box-shadow: 0 0 10px #34d399;
  animation: pgPulse 1.8s infinite;
}
body.tutor .wt-welcome h1 {
  color: #fff !important;
  font-size: clamp(2rem, 4.2vw, 3.1rem) !important;
  line-height: 1.04 !important;
  font-weight: 900 !important;
  margin: 14px 0 12px !important;
}
body.tutor .wt-welcome h1 br { content: ""; }
body.tutor .wt-welcome .lead {
  color: #cbd5ff !important;
  font-size: 1.04rem !important;
  max-width: 34rem;
}
body.tutor .wt-pills { gap: 8px !important; margin: 18px 0 16px !important; }
body.tutor .wt-pills span {
  background: rgba(255,255,255,.1) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  color: #fff !important;
  font-weight: 600;
  font-size: .82rem !important;
  padding: 7px 12px !important;
  backdrop-filter: blur(8px);
  transition: transform .18s ease, background .18s ease;
}
body.tutor .wt-pills span:hover { transform: translateY(-1px); background: rgba(255,255,255,.18) !important; }
body.tutor .wt-welcome > div:first-child > p:not(.lead) {
  color: #aebdff !important;
  font-size: .88rem;
}
body.tutor .wt-welcome .wt-small { color: #8f9bd0 !important; }

/* trust mini-stats inside hero */
body.tutor .wt-welcome > div:first-child .pg-trust-row {
  display: flex; gap: 10px; margin-top: 18px; flex-wrap: wrap;
}
body.tutor .pg-trust-chip {
  display: inline-flex; align-items: center; gap: 8px;
  background: rgba(255,255,255,.1);
  border: 1px solid rgba(255,255,255,.16);
  border-radius: 14px;
  padding: 8px 12px;
  font-size: .8rem; font-weight: 700; color: #fff;
}
body.tutor .pg-trust-chip small { display: block; font-weight: 500; color: #c7d2fe; font-size: .72rem; }

/* auth form card */
body.tutor .wt-welcome .wt-panel {
  border-radius: 24px !important;
  border: 1px solid var(--pg-line) !important;
  padding: 26px 24px !important;
  background: var(--pg-card) !important;
  box-shadow: var(--pg-shadow-lg) !important;
  position: relative;
  overflow: hidden;
}
body.tutor .wt-welcome .wt-panel::before {
  content: "";
  position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #f59e0b);
}
body.tutor .wt-welcome .wt-panel h2 {
  font-size: 1.35rem !important;
  font-weight: 800 !important;
}
body.tutor .tutor label, body.tutor .wt-profile label { font-weight: 700; color: var(--pg-text); }
body.tutor input:not([type=checkbox]):not([type=file]),
body.tutor select, body.tutor textarea {
  border: 1.5px solid #d7deeb !important;
  border-radius: 12px !important;
  padding: 12px 14px !important;
  font-size: .94rem !important;
  background: #fbfcff !important;
  transition: border .18s, box-shadow .18s, background .18s;
}
body.tutor.wt-dark input:not([type=checkbox]):not([type=file]),
body.tutor.wt-dark select, body.tutor.wt-dark textarea {
  background: #0b1330 !important;
  border-color: rgba(255,255,255,.14) !important;
  color: #e8edf8 !important;
}
body.tutor input:focus, body.tutor select:focus, body.tutor textarea:focus {
  border-color: var(--pg-primary) !important;
  box-shadow: var(--pg-ring) !important;
  background: #fff !important;
  outline: none !important;
}
body.tutor.wt-dark input:focus, body.tutor.wt-dark select:focus, body.tutor.wt-dark textarea:focus {
  background: #0f1a3d !important;
}
body.tutor .btn { border-radius: 12px !important; font-weight: 800 !important; min-height: 46px !important; }
body.tutor .btn-primary {
  background: linear-gradient(135deg, #4f46e5 0%, #7c3aed 55%, #6d28d9 100%) !important;
  box-shadow: 0 10px 24px -6px rgba(124,58,237,.55) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  letter-spacing: -.01em;
}
body.tutor .btn-primary:hover { transform: translateY(-1px); filter: brightness(1.06); box-shadow: 0 14px 30px -6px rgba(124,58,237,.6) !important; }
body.tutor .btn-primary:active { transform: translateY(0); }
body.tutor .btn-outline {
  background: #fff !important;
  border: 1.5px solid #d7deeb !important;
  color: #334155 !important;
}
body.tutor.wt-dark .btn-outline { background: #0f1a3d !important; border-color: rgba(255,255,255,.16) !important; color: #dbe4ff !important; }
body.tutor .btn-outline:hover { border-color: var(--pg-primary) !important; color: var(--pg-primary) !important; background: #eef2ff !important; }
body.tutor.wt-dark .btn-outline:hover { background: #182452 !important; color: #fff !important; }
body.tutor #phone-code {
  background: linear-gradient(180deg, #eef2ff, #f8faff) !important;
  border: 1.5px dashed #a5b4fc !important;
  color: #4338ca !important;
  border-radius: 14px !important;
  letter-spacing: .12em !important;
}
body.tutor.wt-dark #phone-code { background: #141d44 !important; border-color: #4f46e5 !important; color: #c7d2fe !important; }

/* profile panel premium */
body.tutor .wt-narrow {
  background: var(--pg-card);
  border: 1px solid var(--pg-line);
  border-radius: 24px;
  box-shadow: var(--pg-shadow-lg);
  padding: 26px !important;
  position: relative; overflow: hidden;
}
body.tutor .wt-narrow::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4f46e5, #06b6d4, #10b981, #f59e0b);
}
body.tutor .wt-quick-chips { display: flex; flex-wrap: wrap; gap: 6px; margin-top: 8px; }
body.tutor .wt-quick-chip {
  border: 1.5px solid #dbe2f1 !important;
  background: #f6f8ff !important;
  border-radius: 999px !important;
  padding: 5px 11px !important;
  font-size: .78rem !important;
  font-weight: 700 !important;
  color: #3b4a6b !important;
  cursor: pointer;
  transition: all .16s ease;
  min-height: 0 !important;
}
body.tutor.wt-dark .wt-quick-chip { background: #142046 !important; border-color: rgba(255,255,255,.14) !important; color: #c9d6ff !important; }
body.tutor .wt-quick-chip:hover { background: #4f46e5 !important; border-color: #4f46e5 !important; color: #fff !important; transform: translateY(-1px); }

/* ── 2. Workspace shell — ambient premium ─────────────────────── */
body.tutor:has(#workspace:not([hidden])) { background: #e9edf7; }
body.tutor.wt-dark:has(#workspace:not([hidden])) { background: #050816; }

.wt-chatgpt-workspace {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(79,70,229,.14), transparent 60%),
    radial-gradient(800px 380px at 90% 0%, rgba(6,182,212,.12), transparent 60%),
    radial-gradient(700px 500px at 50% 110%, rgba(245,158,11,.1), transparent 60%),
    #f3f5fb !important;
}
body.tutor.wt-dark .wt-chatgpt-workspace {
  background:
    radial-gradient(900px 420px at 15% -10%, rgba(124,58,237,.22), transparent 60%),
    radial-gradient(800px 380px at 90% 0%, rgba(6,182,212,.14), transparent 60%),
    #070b1d !important;
}

/* ── 3. Sidebar — deep premium glass ─────────────────────────── */
.wt-chatgpt-sidebar {
  width: 304px !important;
  background: linear-gradient(180deg, #0d1330 0%, #131a42 55%, #0e1440 100%) !important;
  border-right: 1px solid rgba(255,255,255,.1) !important;
  color: #dbe4ff !important;
  box-shadow: 8px 0 30px rgba(11,16,32,.18);
}
body.tutor.wt-dark .wt-chatgpt-sidebar {
  background: linear-gradient(180deg, #080d24 0%, #0c1334 60%, #0a1030 100%) !important;
}
.wt-sb-header { padding: 16px 16px 14px !important; border-bottom: 1px solid rgba(255,255,255,.09) !important; }
.wt-sb-brand { gap: 10px !important; }
.wt-sb-logo {
  width: 36px; height: 36px; display: grid; place-items: center;
  background: linear-gradient(135deg, #6366f1, #8b5cf6 55%, #06b6d4);
  border-radius: 12px;
  box-shadow: 0 6px 18px rgba(99,102,241,.5), inset 0 1px 0 rgba(255,255,255,.35);
  border: 1px solid rgba(255,255,255,.25);
  font-size: 1.15rem !important;
}
.wt-sb-title { color: #fff !important; font-weight: 800 !important; font-size: 1.02rem !important; }
.wt-sb-title::after {
  content: "PRO"; margin-left: 8px; font-size: .62rem; font-weight: 900; letter-spacing: .08em;
  background: linear-gradient(135deg, #f59e0b, #f97316);
  padding: 2px 7px; border-radius: 999px; color: #fff; vertical-align: 2px;
  box-shadow: 0 2px 10px rgba(245,158,11,.5);
}
.wt-new-chat-btn {
  margin: 14px 14px 6px !important;
  background: linear-gradient(135deg, #ffffff 0%, #eef2ff 100%) !important;
  color: #2a2fbf !important;
  border-radius: 14px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255,255,255,.6) !important;
  box-shadow: 0 8px 20px rgba(0,0,0,.25) !important;
  min-height: 46px !important;
  transition: transform .18s ease, box-shadow .18s ease !important;
}
.wt-new-chat-btn:hover { transform: translateY(-1px); box-shadow: 0 12px 26px rgba(0,0,0,.3) !important; background: #fff !important; }
.wt-plus-icon {
  width: 26px; height: 26px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  color: #fff; border-radius: 9px; font-size: 1.1rem !important;
}
.wt-kbd {
  background: #e0e7ff !important; color: #4338ca !important;
  border: 1px solid #c7d2fe !important;
  border-radius: 7px !important;
  font-size: .68rem !important; font-weight: 800 !important;
}
.wt-sb-scroll { padding-bottom: 12px !important; }
.wt-sb-scroll::-webkit-scrollbar-thumb { background: rgba(255,255,255,.18) !important; }
.wt-sb-heading {
  color: #8ea0ff !important;
  font-size: .68rem !important; letter-spacing: .12em !important; font-weight: 800 !important;
}
.wt-chatgpt-sidebar .wt-action-grid { gap: 8px !important; }
.wt-chatgpt-sidebar .wt-action-card {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.11) !important;
  border-radius: 14px !important;
  padding: 10px 6px !important;
  transition: all .18s ease !important;
  position: relative; overflow: hidden;
}
.wt-chatgpt-sidebar .wt-action-card::after {
  content: ""; position: absolute; inset: 0;
  background: linear-gradient(135deg, rgba(255,255,255,.12), transparent 55%);
  opacity: 0; transition: opacity .18s;
  pointer-events: none;
}
.wt-chatgpt-sidebar .wt-action-card:hover {
  background: rgba(255,255,255,.13) !important;
  border-color: rgba(255,255,255,.24) !important;
  transform: translateY(-1px);
}
.wt-chatgpt-sidebar .wt-action-card:hover::after { opacity: 1; }
.wt-chatgpt-sidebar .wt-card-emoji {
  font-size: 1.25rem !important;
  width: 36px; height: 36px; display: grid; place-items: center;
  background: rgba(255,255,255,.1);
  border-radius: 11px; margin: 0 auto 4px;
}
.wt-card-ask .wt-card-emoji { background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; }
.wt-card-hw .wt-card-emoji { background: linear-gradient(135deg, #059669, #10b981) !important; }
.wt-card-quiz .wt-card-emoji { background: linear-gradient(135deg, #d97706, #f59e0b) !important; }
.wt-card-notes .wt-card-emoji { background: linear-gradient(135deg, #0284c7, #06b6d4) !important; }
.wt-card-english .wt-card-emoji { background: linear-gradient(135deg, #db2777, #f472b6) !important; }
.wt-card-plan .wt-card-emoji { background: linear-gradient(135deg, #4f46e5, #06b6d4) !important; }
.wt-chatgpt-sidebar .wt-card-label { color: #e6ecff !important; font-weight: 700 !important; font-size: .76rem !important; }

/* sidebar details / tool categories */
.wt-sb-details {
  background: rgba(255,255,255,.05) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 14px !important;
  margin: 10px 14px !important;
  overflow: hidden;
}
.wt-sb-details summary {
  color: #dbe4ff !important;
  font-weight: 800 !important;
  padding: 10px 12px !important;
  font-size: .82rem !important;
  cursor: pointer; list-style: none;
}
.wt-sb-details summary::-webkit-details-marker { display: none; }
.wt-sb-details summary::after { content: "▾"; float: right; opacity: .7; transition: transform .18s; }
.wt-sb-details[open] summary::after { transform: rotate(180deg); }
.wt-sb-details summary:hover { background: rgba(255,255,255,.06) !important; }
.wt-chatgpt-sidebar .wt-shortcuts { padding: 0 10px 12px !important; }
.wt-tool-category { margin-bottom: 10px; }
.wt-tool-cat-title {
  display: block; font-size: .66rem !important; font-weight: 900 !important;
  letter-spacing: .08em; color: #a5b4fc !important; margin: 8px 2px 6px !important;
}
.wt-tool-cat-grid { display: grid; grid-template-columns: 1fr 1fr; gap: 6px; }
.wt-chatgpt-sidebar .wt-shortcuts button {
  background: rgba(255,255,255,.07) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  color: #e2e8ff !important;
  border-radius: 10px !important;
  font-size: .74rem !important; font-weight: 600 !important;
  padding: 7px 8px !important;
  transition: all .15s ease !important;
  text-align: left;
  line-height: 1.25;
}
.wt-chatgpt-sidebar .wt-shortcuts button:hover {
  background: #fff !important; color: #2d2fbf !important; border-color: #fff !important;
  transform: translateY(-1px);
}

/* progress card */
.wt-progress-card {
  background: linear-gradient(135deg, rgba(255,255,255,.12), rgba(255,255,255,.05)) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  border-radius: 16px !important;
  padding: 12px !important;
  backdrop-filter: blur(10px);
}
.wt-chatgpt-sidebar .wt-streak-badge {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  color: #fff !important;
  border-radius: 12px !important;
  padding: 8px 10px !important;
  box-shadow: 0 4px 14px rgba(245,158,11,.4);
}
.wt-chatgpt-sidebar .wt-streak-fire { filter: drop-shadow(0 2px 4px rgba(0,0,0,.3)); animation: pgFlick 1.6s infinite; }
.wt-chatgpt-sidebar .wt-streak-count { color: #fff !important; font-weight: 900 !important; }
.wt-chatgpt-sidebar .wt-streak-label { color: #ffedd5 !important; }
.wt-chatgpt-sidebar .wt-goal-ring circle:first-child { stroke: rgba(255,255,255,.18) !important; }
.wt-chatgpt-sidebar .wt-goal-ring circle:last-child { stroke: #34d399 !important; filter: drop-shadow(0 0 6px rgba(52,211,153,.7)); }
.wt-chatgpt-sidebar .wt-goal-pct { color: #fff !important; font-weight: 800 !important; }
.wt-chatgpt-sidebar .wt-day {
  background: rgba(255,255,255,.08) !important;
  color: #aebdff !important;
  border-radius: 9px !important;
  font-weight: 800 !important;
  border: 1px solid rgba(255,255,255,.08) !important;
}
.wt-chatgpt-sidebar .wt-day.active {
  background: linear-gradient(135deg, #10b981, #059669) !important;
  color: #fff !important; border-color: transparent !important;
  box-shadow: 0 2px 10px rgba(16,185,129,.5);
}
.wt-chatgpt-sidebar .wt-day.today {
  outline: 2px solid #f59e0b !important; outline-offset: 1px;
  color: #fff !important;
}
.wt-chatgpt-sidebar .wt-gamification-stats { gap: 6px !important; }
.wt-chatgpt-sidebar .wt-gstat {
  background: rgba(0,0,0,.22) !important;
  border: 1px solid rgba(255,255,255,.1) !important;
  border-radius: 11px !important;
}
.wt-chatgpt-sidebar .wt-gstat strong { color: #fff !important; }
.wt-chatgpt-sidebar .wt-gstat small, .wt-chatgpt-sidebar .wt-gstat span { color: #b9c6ff !important; }

/* badges / leaderboard */
.wt-chatgpt-sidebar .wt-badges-grid { gap: 6px !important; }
.wt-chatgpt-sidebar .wt-badge {
  background: linear-gradient(135deg, rgba(245,158,11,.22), rgba(245,158,11,.08)) !important;
  border: 1px solid rgba(245,158,11,.35) !important;
  color: #fde68a !important;
  border-radius: 11px !important;
}
.wt-chatgpt-sidebar .wt-leaderboard { gap: 6px !important; }
.wt-chatgpt-sidebar .wt-lb-row {
  background: rgba(255,255,255,.06) !important;
  border: 1px solid rgba(255,255,255,.09) !important;
  border-radius: 11px !important;
  color: #dbe4ff !important;
}
.wt-chatgpt-sidebar .wt-lb-you {
  background: linear-gradient(135deg, rgba(79,70,229,.45), rgba(124,58,237,.35)) !important;
  border-color: rgba(165,180,252,.5) !important;
}

/* telegram box + quota */
.wt-sb-telegram-box {
  margin: 10px 14px !important;
  background: linear-gradient(135deg, #e0f2fe, #f0f9ff) !important;
  border: 1px solid #bae6fd !important;
  border-radius: 16px !important;
  padding: 12px !important;
}
.wt-sb-quota-wrap { padding: 4px 14px 0 !important; }
.wt-chatgpt-sidebar .wt-quota { color: #b9c6ff !important; font-size: .76rem !important; }
.wt-chatgpt-sidebar .wt-spin-btn {
  background: linear-gradient(135deg, #f59e0b, #f97316) !important;
  border: none !important; color: #fff !important;
  border-radius: 12px !important; font-weight: 800 !important;
  padding: 9px !important; width: 100%;
  box-shadow: 0 6px 18px rgba(245,158,11,.4) !important;
  transition: transform .16s ease !important;
}
.wt-chatgpt-sidebar .wt-spin-btn:hover { transform: translateY(-1px) scale(1.01); }
.wt-chatgpt-sidebar .wt-revision-link { color: #a5b4fc !important; font-weight: 700 !important; }
.wt-chatgpt-sidebar .wt-revision-link:hover { color: #fff !important; }
.wt-sb-clear-chat summary { color: #8ea0c9 !important; }
.wt-sb-profile {
  background: rgba(0,0,0,.28) !important;
  border-top: 1px solid rgba(255,255,255,.1) !important;
  backdrop-filter: blur(12px);
}
.wt-sb-avatar {
  background: linear-gradient(135deg, #4f46e5, #06b6d4) !important;
  border: 1px solid rgba(255,255,255,.3) !important;
  box-shadow: 0 4px 12px rgba(79,70,229,.5);
}
.wt-sb-user-name { color: #fff !important; }
.wt-sb-user-meta { color: #93a3d6 !important; }
.wt-sb-icon-btn {
  background: rgba(255,255,255,.08) !important;
  border: 1px solid rgba(255,255,255,.12) !important;
  color: #fff !important;
  border-radius: 10px !important;
}
.wt-sb-icon-btn:hover { background: rgba(255,255,255,.18) !important; }

/* ── 4. Main chat column + header ─────────────────────────────── */
.wt-chatgpt-main { background: transparent !important; }
.wt-chat-header {
  background: rgba(255,255,255,.82) !important;
  backdrop-filter: blur(18px) saturate(1.4);
  border-bottom: 1px solid rgba(15,23,42,.08) !important;
  padding: 10px 18px !important;
  gap: 12px;
}
body.tutor.wt-dark .wt-chat-header {
  background: rgba(7,11,29,.82) !important;
  border-bottom: 1px solid rgba(255,255,255,.09) !important;
}
.wt-hamburger-btn {
  background: #eef2ff !important; border: 1px solid #dbe2ff !important;
  border-radius: 11px !important; width: 38px; height: 38px;
  color: #4338ca !important;
}
body.tutor.wt-dark .wt-hamburger-btn { background: #141d44 !important; border-color: rgba(255,255,255,.12) !important; color: #c7d2fe !important; }
.wt-hamburger-btn:hover { background: #4f46e5 !important; color: #fff !important; border-color: #4f46e5 !important; }
.wt-model-badge {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff) !important;
  border: 1px solid #dbe2ff !important;
  border-radius: 999px !important;
  padding: 7px 14px 7px 9px !important;
  box-shadow: var(--pg-shadow-sm);
}
body.tutor.wt-dark .wt-model-badge { background: #131c44 !important; border-color: rgba(255,255,255,.12) !important; }
.wt-model-icon {
  width: 28px; height: 28px; display: grid; place-items: center;
  background: linear-gradient(135deg, #4f46e5, #7c3aed);
  border-radius: 9px; font-size: .95rem !important;
}
.wt-model-name { color: #1e1b4b !important; font-weight: 800 !important; }
body.tutor.wt-dark .wt-model-name { color: #fff !important; }
.wt-online-dot { background: #10b981 !important; box-shadow: 0 0 8px #10b981 !important; }
.wt-student-profile-pill {
  background: #fff !important;
  border: 1.5px solid #e2e8f5 !important;
  border-radius: 999px !important;
  padding: 7px 12px !important;
  font-weight: 800 !important;
  box-shadow: var(--pg-shadow-sm);
  transition: all .16s ease !important;
}
body.tutor.wt-dark .wt-student-profile-pill { background: #101a3d !important; border-color: rgba(255,255,255,.12) !important; color: #dbe4ff !important; }
.wt-student-profile-pill:hover { border-color: #4f46e5 !important; transform: translateY(-1px); box-shadow: var(--pg-shadow-md) !important; }
.wt-prof-grade { color: #4338ca !important; }
body.tutor.wt-dark .wt-prof-grade { color: #c7d2fe !important; }
.wt-prof-board { color: #64748b !important; font-weight: 700 !important; }
.wt-header-action-btn {
  background: #fff !important;
  border: 1.5px solid #e2e8f5 !important;
  border-radius: 999px !important;
  font-weight: 800 !important;
  box-shadow: var(--pg-shadow-sm);
  transition: all .16s ease !important;
}
body.tutor.wt-dark .wt-header-action-btn { background: #101a3d !important; border-color: rgba(255,255,255,.12) !important; color: #dbe4ff !important; }
.wt-header-action-btn:hover { border-color: #4f46e5 !important; transform: translateY(-1px); }
.wt-hub-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important; border: none !important;
  box-shadow: 0 6px 18px rgba(124,58,237,.4) !important;
}
.wt-hub-btn:hover { filter: brightness(1.07); }
.wt-study-hub-dropdown {
  border-radius: 18px !important;
  border: 1px solid var(--pg-line) !important;
  box-shadow: var(--pg-shadow-lg) !important;
  overflow: hidden;
  animation: pgPop .22s cubic-bezier(.16,1,.3,1);
}
body.tutor.wt-dark .wt-study-hub-dropdown { background: #0e1740 !important; }
.wt-hub-header { background: linear-gradient(135deg, #eef2ff, #f5f3ff) !important; }
body.tutor.wt-dark .wt-hub-header { background: #141d4d !important; }
.wt-hub-item {
  border: 1px solid var(--pg-line) !important;
  border-radius: 14px !important;
  transition: all .16s ease !important;
  background: #fff !important;
}
body.tutor.wt-dark .wt-hub-item { background: #111c46 !important; }
.wt-hub-item:hover { border-color: #4f46e5 !important; transform: translateY(-1px); box-shadow: var(--pg-shadow-md) !important; }
.wt-hub-item-icon {
  width: 38px; height: 38px; display: grid; place-items: center;
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-radius: 12px; font-size: 1.2rem !important;
}
.wt-dark-toggle {
  width: 42px; height: 42px; border-radius: 13px !important;
  background: #0f172a !important; color: #fde68a !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  font-size: 1.15rem !important;
  box-shadow: var(--pg-shadow-sm);
  transition: transform .16s ease !important;
}
.wt-dark-toggle:hover { transform: rotate(-8deg) scale(1.05); }
body.tutor.wt-dark .wt-dark-toggle { background: #fbbf24 !important; color: #451a03 !important; }
.wt-quick-new-btn {
  border-radius: 999px !important;
  padding: 10px 16px !important;
  font-size: .82rem !important;
}

/* tip + quest strips */
.wt-tip-banner {
  margin: 12px 18px 0 !important;
  background: linear-gradient(135deg, #fffbeb 0%, #fef3c7 50%, #fff7ed 100%) !important;
  border: 1px solid #fcd34d !important;
  border-radius: 14px !important;
  box-shadow: var(--pg-shadow-sm);
  font-size: .84rem !important;
}
body.tutor.wt-dark .wt-tip-banner { background: linear-gradient(135deg, #2a1f0a, #3a2a0e) !important; border-color: rgba(245,158,11,.4) !important; }
.wt-tip-text { color: #92400e !important; font-weight: 600 !important; }
body.tutor.wt-dark .wt-tip-text { color: #fde68a !important; }
.wt-tip-close { background: rgba(0,0,0,.06) !important; border-radius: 8px !important; }
.wt-quest-strip {
  margin: 10px 18px 0 !important;
  background: linear-gradient(135deg, #1e1b4b 0%, #4c1d95 55%, #0e7490 130%) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 16px !important;
  color: #fff !important;
  box-shadow: var(--pg-shadow-md) !important;
  overflow: hidden;
  position: relative;
}
.wt-quest-strip::before {
  content: ""; position: absolute; inset: 0;
  background: radial-gradient(300px 120px at 20% 0%, rgba(255,255,255,.14), transparent 60%);
  pointer-events: none;
}
.wt-quest-flame { animation: pgFlick 1.6s infinite; }
.wt-quest-badge {
  background: rgba(255,255,255,.12) !important;
  border: 1px solid rgba(255,255,255,.18) !important;
  border-radius: 999px !important;
  color: #fff !important;
  backdrop-filter: blur(6px);
}
.wt-quest-coins { background: rgba(0,0,0,.25) !important; border-radius: 12px !important; padding: 6px 10px !important; }

/* study controls */
.wt-study-controls {
  background: rgba(255,255,255,.75) !important;
  backdrop-filter: blur(14px);
  border-bottom: 1px solid rgba(15,23,42,.07) !important;
  padding: 10px 18px 12px !important;
}
body.tutor.wt-dark .wt-study-controls { background: rgba(7,11,29,.75) !important; border-bottom: 1px solid rgba(255,255,255,.08) !important; }
.wt-teacher-modes-bar { gap: 8px !important; scrollbar-width: thin; }
.wt-mode-pill {
  border: 1.5px solid #e2e8f5 !important;
  background: #fff !important;
  border-radius: 999px !important;
  padding: 8px 14px !important;
  font-weight: 700 !important;
  font-size: .8rem !important;
  white-space: nowrap;
  transition: all .16s ease !important;
  box-shadow: var(--pg-shadow-sm);
}
body.tutor.wt-dark .wt-mode-pill { background: #0f1a3d !important; border-color: rgba(255,255,255,.12) !important; color: #cbd5ff !important; }
.wt-mode-pill:hover { border-color: #4f46e5 !important; transform: translateY(-1px); }
.wt-mode-pill.active {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important; border-color: transparent !important;
  box-shadow: 0 6px 18px rgba(124,58,237,.4) !important;
}
.wt-subjects-bar { gap: 7px !important; margin-top: 10px !important; }
.wt-subj-caption, .wt-chap-caption { font-weight: 800 !important; color: var(--pg-muted) !important; font-size: .76rem !important; }
.wt-subj-chip {
  border-radius: 999px !important;
  border: 1.5px solid #e2e8f5 !important;
  background: #f8faff !important;
  font-weight: 700 !important; font-size: .78rem !important;
  padding: 6px 12px !important;
  transition: all .15s ease !important;
}
body.tutor.wt-dark .wt-subj-chip { background: #101a3d !important; border-color: rgba(255,255,255,.12) !important; color: #cbd5ff !important; }
.wt-subj-chip:hover { border-color: #06b6d4 !important; color: #0e7490 !important; }
.wt-subj-chip.active { background: linear-gradient(135deg, #06b6d4, #0284c7) !important; color: #fff !important; border-color: transparent !important; box-shadow: 0 4px 14px rgba(6,182,212,.4) !important; }
.wt-chapter-bar {
  margin-top: 10px !important;
  background: #f1f5ff !important;
  border: 1px solid #dbe4ff !important;
  border-radius: 13px !important;
  padding: 8px 10px !important;
}
body.tutor.wt-dark .wt-chapter-bar { background: #0e1740 !important; border-color: rgba(255,255,255,.1) !important; }
.wt-chap-scroll { gap: 6px !important; }

/* accelerator chips */
.wt-accelerator-strip {
  gap: 7px !important;
  padding: 10px 2px 8px !important;
  scrollbar-width: thin;
}
.wt-accel-chip {
  background: #fff !important;
  border: 1.5px solid #e2e8f5 !important;
  border-radius: 999px !important;
  font-size: .76rem !important; font-weight: 700 !important;
  padding: 7px 12px !important;
  white-space: nowrap;
  box-shadow: var(--pg-shadow-sm);
  transition: all .15s ease !important;
  color: #334155 !important;
}
body.tutor.wt-dark .wt-accel-chip { background: #101a3d !important; border-color: rgba(255,255,255,.12) !important; color: #dbe4ff !important; }
.wt-accel-chip:hover { background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; color: #fff !important; border-color: transparent !important; transform: translateY(-1px); }

/* ── 5. Messages — premium bubbles ───────────────────────────── */
.wt-chatgpt-messages {
  background: transparent !important;
  padding: 18px 18px 170px !important;
  max-width: 860px; margin: 0 auto;
}
.wt-message { animation: pgFadeUp .35s cubic-bezier(.16,1,.3,1) both; }
.wt-msg-avatar {
  width: 36px !important; height: 36px !important;
  border-radius: 12px !important;
  display: grid !important; place-items: center;
  font-size: 1.05rem !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  box-shadow: 0 4px 12px rgba(79,70,229,.35);
  border: 1px solid rgba(255,255,255,.4);
  flex-shrink: 0;
}
.wt-message.user .wt-msg-avatar { background: linear-gradient(135deg, #059669, #10b981) !important; }
.wt-msg-content {
  background: #fff !important;
  border: 1px solid #e6eaf3 !important;
  border-radius: 6px 18px 18px 18px !important;
  box-shadow: var(--pg-shadow-sm) !important;
  font-size: .93rem !important;
  line-height: 1.65 !important;
}
body.tutor.wt-dark .wt-msg-content { background: #101a3d !important; border-color: rgba(255,255,255,.1) !important; color: #e6ecff !important; }
.wt-message.user .wt-msg-content {
  background: linear-gradient(135deg, #4f46e5 0%, #6366f1 100%) !important;
  color: #fff !important;
  border: none !important;
  border-radius: 18px 6px 18px 18px !important;
  box-shadow: 0 8px 20px rgba(79,70,229,.3) !important;
}
.wt-message.user .wt-msg-content p, .wt-message.user .wt-msg-content li { color: #fff !important; }
.wt-msg-author { font-weight: 800 !important; font-size: .72rem !important; letter-spacing: .06em; text-transform: uppercase; color: var(--pg-faint) !important; }
.wt-message p { color: inherit !important; }
.wt-message pre, .wt-message code { font-family: ui-monospace, "Cascadia Code", Menlo, Consolas, monospace; }
.wt-message pre {
  background: #0f172a !important; color: #e2e8f0 !important;
  border-radius: 12px !important; padding: 12px !important;
  overflow-x: auto; border: 1px solid rgba(255,255,255,.1);
}
.wt-message table { border-radius: 12px; overflow: hidden; border: 1px solid var(--pg-line); }
.wt-thinking-bubble {
  background: #fff !important; border: 1px solid #e2e8f5 !important;
  border-radius: 16px !important; box-shadow: var(--pg-shadow-sm) !important;
}
body.tutor.wt-dark .wt-thinking-bubble { background: #101a3d !important; }
.wt-thinking-dots span { background: #4f46e5 !important; }

/* ── 6. Composer — floating premium capsule ──────────────────── */
.wt-composer-wrapper {
  background: linear-gradient(to top, rgba(243,245,251,1) 55%, rgba(243,245,251,0) ) !important;
  padding: 14px 18px 12px !important;
}
body.tutor.wt-dark .wt-composer-wrapper { background: linear-gradient(to top, rgba(5,8,22,1) 55%, rgba(5,8,22,0)) !important; }
.wt-chatgpt-composer { max-width: 860px !important; }
.wt-compose-capsule {
  background: rgba(255,255,255,.92) !important;
  backdrop-filter: blur(18px);
  border: 1.5px solid #dbe2f5 !important;
  border-radius: 22px !important;
  padding: 8px 10px !important;
  box-shadow: 0 16px 40px -10px rgba(79,70,229,.25), 0 4px 14px rgba(11,16,32,.08) !important;
}
body.tutor.wt-dark .wt-compose-capsule { background: rgba(16,26,61,.92) !important; border-color: rgba(255,255,255,.14) !important; }
.wt-compose-capsule:focus-within {
  border-color: #4f46e5 !important;
  box-shadow: 0 0 0 4px rgba(79,70,229,.14), 0 16px 40px -10px rgba(79,70,229,.35) !important;
}
.wt-compose-capsule textarea { font-size: .95rem !important; color: var(--pg-text) !important; }
body.tutor.wt-dark .wt-compose-capsule textarea { color: #e8edf8 !important; }
.wt-tool-btn, .wt-upload-btn, .wt-voice-btn {
  width: 38px !important; height: 38px !important;
  border-radius: 12px !important;
  background: #eef2ff !important; color: #4338ca !important;
  border: 1px solid #dbe2ff !important;
}
body.tutor.wt-dark .wt-tool-btn, body.tutor.wt-dark .wt-upload-btn, body.tutor.wt-dark .wt-voice-btn {
  background: #1a2456 !important; border-color: rgba(255,255,255,.12) !important; color: #c7d2fe !important;
}
.wt-tool-btn:hover, .wt-upload-btn:hover, .wt-voice-btn:hover { background: #4f46e5 !important; color: #fff !important; border-color: #4f46e5 !important; }
.wt-send-btn {
  width: 42px !important; height: 42px !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  box-shadow: 0 8px 20px rgba(124,58,237,.45) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}
.wt-send-btn:hover { transform: scale(1.06) !important; filter: brightness(1.08); }
.wt-composer-disclaimer { color: var(--pg-faint) !important; }
.wt-math-palette {
  background: #fff !important; border: 1px solid var(--pg-line) !important;
  border-radius: 14px !important; box-shadow: var(--pg-shadow-md) !important;
  margin-bottom: 8px !important;
}
body.tutor.wt-dark .wt-math-palette { background: #0e1740 !important; }
.wt-sym-btn {
  background: #f1f5ff !important; border: 1px solid #dbe2ff !important;
  border-radius: 9px !important; font-weight: 800 !important;
}
.wt-sym-btn:hover { background: #4f46e5 !important; color: #fff !important; }
.wt-attach-preview {
  background: #fff !important; border: 1.5px solid #dbe2ff !important;
  border-radius: 14px !important; box-shadow: var(--pg-shadow-sm) !important;
  margin-bottom: 8px !important;
}
body.tutor.wt-dark .wt-attach-preview { background: #0e1740 !important; }

/* ── 7. Modals / popovers — glass premium ────────────────────── */
.wt-modal-backdrop, .wt-modal[hidden] { backdrop-filter: blur(6px); }
.wt-modal-backdrop:not([hidden]) {
  background: rgba(11,16,32,.55) !important;
  display: flex !important; align-items: center; justify-content: center;
  padding: 18px; z-index: 400 !important;
  animation: pgFade .2s ease both;
}
.wt-flashcard-box, .wt-formula-box, .wt-dashboard-box, .wt-spin-box, .wt-class-switcher-card, .wt-timer-popover {
  border-radius: 22px !important;
  border: 1px solid var(--pg-line) !important;
  box-shadow: var(--pg-shadow-lg) !important;
  overflow: hidden;
  animation: pgPop .28s cubic-bezier(.16,1,.3,1) both !important;
  background: var(--pg-card) !important;
}
.wt-modal-header {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff) !important;
  border-bottom: 1px solid var(--pg-line) !important;
  padding: 14px 16px !important;
}
body.tutor.wt-dark .wt-modal-header { background: #141d4d !important; }
.wt-modal-title { font-family: var(--pg-font-head); font-weight: 800 !important; }
.wt-modal-close {
  background: #fff !important; border: 1px solid var(--pg-line) !important;
  border-radius: 10px !important; width: 32px; height: 32px;
}
.wt-modal-close:hover { background: #fee2e2 !important; border-color: #fecaca !important; color: #b91c1c !important; }
.wt-flashcard-card {
  border-radius: 18px !important;
  background: linear-gradient(160deg, #1e1b4b, #4c1d95 60%, #0e7490 130%) !important;
  color: #fff !important;
  border: 1px solid rgba(255,255,255,.2) !important;
  box-shadow: var(--pg-shadow-lg) !important;
}
.wt-card-tag { background: rgba(255,255,255,.16) !important; color: #fff !important; }
.wt-dash-card {
  background: linear-gradient(180deg, #f8faff, #eef2ff) !important;
  border: 1px solid #dbe2ff !important;
  border-radius: 16px !important;
}
body.tutor.wt-dark .wt-dash-card { background: #141d4d !important; border-color: rgba(255,255,255,.1) !important; }
.wt-dash-card-value { font-family: var(--pg-font-head); font-weight: 900 !important; }
.wt-spin-disc {
  box-shadow: 0 0 0 8px #fff, 0 18px 40px rgba(225,29,72,.35) !important;
  border: 3px solid #e11d48 !important;
}
.wt-spin-go {
  background: linear-gradient(135deg, #e11d48, #f59e0b) !important;
  box-shadow: 0 10px 26px rgba(225,29,72,.5) !important;
  border: 2px solid #fff !important;
}
.wt-timer-popover:not([hidden]) {
  position: fixed !important; bottom: 92px !important; right: 18px !important;
  width: min(340px, calc(100vw - 36px));
  z-index: 300 !important;
  display: block !important;
}
.wt-timer-progress-bar { background: #e2e8f0 !important; border-radius: 999px !important; overflow: hidden; }
.wt-timer-progress-fill { background: linear-gradient(90deg, #4f46e5, #06b6d4) !important; }
.wt-toast:not([hidden]) {
  background: #0f172a !important; color: #fff !important;
  border-radius: 14px !important; box-shadow: var(--pg-shadow-lg) !important;
  border: 1px solid rgba(255,255,255,.14) !important;
  animation: pgPop .25s ease both;
  display: block !important;
}
.wt-switcher-chip {
  border-radius: 999px !important; border: 1.5px solid #dbe2ff !important;
  background: #f8faff !important; font-weight: 700 !important;
}
.wt-switcher-chip:hover { border-color: #4f46e5 !important; }
.wt-switcher-chip.active { background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; color: #fff !important; border-color: transparent !important; }

/* status */
.tutor .wt-status {
  background: linear-gradient(135deg, #eef2ff, #f5f3ff);
  border-bottom: 1px solid #e2e8f0;
}
.tutor .wt-status.error { background: #fef2f2 !important; }

/* ── 8. Animations ───────────────────────────────────────────── */
@keyframes pgFadeUp { from { opacity: 0; transform: translateY(10px); } to { opacity: 1; transform: none; } }
@keyframes pgFade { from { opacity: 0; } to { opacity: 1; } }
@keyframes pgPop { from { opacity: 0; transform: scale(.96) translateY(8px); } to { opacity: 1; transform: none; } }
@keyframes pgFloat { 0%,100% { transform: translateY(0); } 50% { transform: translateY(-8px); } }
@keyframes pgPulse { 0% { box-shadow: 0 0 0 0 rgba(52,211,153,.6); } 70% { box-shadow: 0 0 0 7px rgba(52,211,153,0); } 100% { box-shadow: 0 0 0 0 rgba(52,211,153,0); } }
@keyframes pgFlick { 0%,100% { transform: scale(1) rotate(-2deg); } 50% { transform: scale(1.12) rotate(2deg); } }

/* ── 9. Responsive — student-first mobile ─────────────────────── */
@media (max-width: 1024px) {
  body.tutor .wt-welcome { grid-template-columns: 1fr; }
  body.tutor .wt-welcome > div:first-child { padding: 28px 22px; }
}
@media (max-width: 900px) {
  .wt-chatgpt-sidebar {
    position: fixed !important; top: 0; bottom: 0; left: 0;
    transform: translateX(-105%);
    width: min(320px, 86vw) !important;
    border-radius: 0 20px 20px 0;
  }
  .wt-chatgpt-sidebar.open, .wt-chatgpt-sidebar.wt-open { transform: none !important; }
  .wt-sb-close-btn { display: inline-flex !important; background: rgba(255,255,255,.12) !important; color: #fff !important; border: 1px solid rgba(255,255,255,.18) !important; border-radius: 10px !important; width: 34px; height: 34px; align-items: center; justify-content: center; }
  .wt-sidebar-overlay:not([hidden]) { background: rgba(11,16,32,.55) !important; backdrop-filter: blur(3px); }
  .wt-chat-header { padding: 8px 12px !important; flex-wrap: wrap; }
  .wt-model-badge .wt-model-name { font-size: .88rem !important; }
  .wt-student-profile-pill { font-size: .74rem !important; }
  .wt-chatgpt-messages { padding: 14px 12px 180px !important; }
  .wt-quest-strip { margin: 8px 12px 0 !important; flex-wrap: wrap; }
  .wt-tip-banner { margin: 8px 12px 0 !important; }
  .wt-study-controls { padding: 8px 12px 10px !important; }
  .wt-composer-wrapper { padding: 10px 12px !important; }
  body.tutor .wt-profile { grid-template-columns: 1fr !important; }
  .wt-timer-popover:not([hidden]) { right: 12px !important; left: 12px !important; width: auto !important; }
}
@media (max-width: 520px) {
  body.tutor .wt-main { padding: 14px 12px 50px; }
  body.tutor .wt-welcome > div:first-child { padding: 24px 18px; border-radius: 20px; }
  body.tutor .wt-welcome h1 { font-size: 1.85rem !important; }
  .wt-tool-cat-grid { grid-template-columns: 1fr 1fr; }
  .wt-hub-label { display: none; }
  .wt-quick-new-btn { padding: 8px 12px !important; }
}

@media (prefers-reduced-motion: reduce) {
  body.tutor *, body.tutor *::before, body.tutor *::after {
    animation-duration: .01ms !important; animation-iteration-count: 1 !important; transition-duration: .01ms !important;
  }
}

/* =====================================================================
   v34 WOW PATCH — unmissable premium transformation
   Dramatic, engaging, student-loved. All overrides use high specificity.
   ===================================================================== */

/* App background: premium lavender mesh + dot pattern */
body.tutor:has(#workspace:not([hidden])) .wt-chatgpt-main {
  background:
    radial-gradient(700px 260px at 10% 0%, rgba(99,102,241,.12), transparent 60%),
    radial-gradient(700px 280px at 90% 8%, rgba(6,182,212,.1), transparent 60%),
    radial-gradient(600px 400px at 50% 100%, rgba(245,158,11,.08), transparent 62%) !important;
}
body.tutor .wt-chatgpt-messages {
  background-image: radial-gradient(rgba(79,70,229,.1) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}

/* Header: premium glass + gradient bottom border */
body.tutor .wt-chat-header {
  background: rgba(255,255,255,.9) !important;
  box-shadow: 0 8px 24px rgba(15,23,42,.08) !important;
  border-bottom: 3px solid transparent !important;
  border-image: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #f59e0b) 1 !important;
  padding: 12px 20px !important;
}
body.tutor .wt-model-badge {
  background: linear-gradient(135deg, #1e1b4b, #4c1d95) !important;
  border: none !important;
  padding: 6px 14px 6px 6px !important;
  box-shadow: 0 8px 20px rgba(76,29,149,.4) !important;
}
body.tutor .wt-model-badge .wt-model-name { color: #fff !important; font-size: .92rem !important; }
body.tutor .wt-model-badge .wt-model-icon {
  width: 32px !important; height: 32px !important; font-size: 1.1rem !important;
  background: linear-gradient(135deg, #fbbf24, #f97316) !important;
  box-shadow: 0 0 0 2px rgba(255,255,255,.3);
}
body.tutor .wt-student-profile-pill {
  background: linear-gradient(135deg, #fff7ed, #ffedd5) !important;
  border: 2px solid #fdba74 !important;
  box-shadow: 0 4px 14px rgba(249,115,22,.25) !important;
}
body.tutor .wt-quick-new-btn {
  background: linear-gradient(135deg, #7c3aed, #4f46e5) !important;
  font-size: .86rem !important; padding: 11px 18px !important;
  box-shadow: 0 8px 22px rgba(124,58,237,.5) !important;
}

/* Sidebar: richer, bigger, more playful */
body.tutor .wt-chatgpt-sidebar { width: 312px !important; }
body.tutor .wt-sb-section { padding: 0 14px !important; }
body.tutor .wt-chatgpt-sidebar .wt-action-card {
  border-radius: 16px !important; padding: 12px 6px !important;
  background: linear-gradient(180deg, rgba(255,255,255,.1), rgba(255,255,255,.05)) !important;
  box-shadow: inset 0 1px 0 rgba(255,255,255,.12);
}
body.tutor .wt-chatgpt-sidebar .wt-card-emoji { width: 42px !important; height: 42px !important; font-size: 1.4rem !important; border-radius: 13px !important; }
body.tutor .wt-chatgpt-sidebar .wt-card-label { font-size: .8rem !important; }
body.tutor .wt-new-chat-btn { min-height: 50px !important; font-size: .92rem !important; }

/* Welcome empty-state: big colorful cards */
body.tutor .wt-chatgpt-welcome {
  background: linear-gradient(180deg, #ffffff, #f5f3ff) !important;
  border: 1px solid #ddd6fe !important;
  border-radius: 24px !important;
  padding: 30px 26px !important;
  box-shadow: 0 20px 50px -12px rgba(124,58,237,.3) !important;
  text-align: center;
  position: relative; overflow: hidden;
}
body.tutor .wt-chatgpt-welcome::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 5px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4, #f59e0b, #10b981);
}
body.tutor .wt-welcome-teacher-avatar {
  width: 76px !important; height: 76px !important; font-size: 2.6rem !important;
  margin: 0 auto 10px !important;
  background: linear-gradient(135deg, #4f46e5, #7c3aed 60%, #06b6d4) !important;
  border-radius: 24px !important;
  display: grid !important; place-items: center;
  box-shadow: 0 14px 30px rgba(124,58,237,.45), inset 0 2px 0 rgba(255,255,255,.4) !important;
  border: 2px solid #fff !important;
  animation: pgFloat 3.5s ease-in-out infinite;
}
body.tutor .wt-chatgpt-welcome h2 { font-size: 1.6rem !important; font-weight: 900 !important; color: #1e1b4b !important; }
body.tutor .wt-welcome-mode-badge {
  display: inline-block; background: linear-gradient(135deg, #4f46e5, #7c3aed) !important;
  color: #fff !important; font-weight: 800 !important; font-size: .78rem !important;
  padding: 6px 14px !important; border-radius: 999px !important; margin: 8px 0 10px !important;
  box-shadow: 0 6px 16px rgba(124,58,237,.4) !important;
}
body.tutor .wt-chatgpt-prompts { display: grid !important; grid-template-columns: 1fr 1fr !important; gap: 12px !important; margin-top: 16px !important; text-align: left; }
body.tutor .wt-prompt-card {
  background: #fff !important; border: 1.5px solid #e2e8f5 !important;
  border-radius: 18px !important; padding: 14px !important;
  box-shadow: 0 6px 18px rgba(15,23,42,.07) !important;
  cursor: pointer; transition: all .18s ease !important;
  position: relative; overflow: hidden;
}
body.tutor .wt-prompt-card::after { content: "→"; position: absolute; right: 12px; top: 12px; opacity: 0; transition: opacity .18s; color: #4f46e5; font-weight: 900; }
body.tutor .wt-prompt-card:hover { transform: translateY(-3px); border-color: #4f46e5 !important; box-shadow: 0 14px 30px rgba(79,70,229,.25) !important; }
body.tutor .wt-prompt-card:hover::after { opacity: 1; }
body.tutor .wt-prompt-icon { width: 40px !important; height: 40px !important; font-size: 1.3rem !important; border-radius: 12px !important; display: grid !important; place-items: center; background: linear-gradient(135deg, #eef2ff, #f5f3ff) !important; }
body.tutor .wt-prompt-title { font-weight: 800 !important; color: #1e1b4b !important; }
body.tutor .wt-prompt-desc { color: #64748b !important; font-size: .82rem !important; }

/* Messages: premium cards with gradient top accent */
body.tutor .wt-message { gap: 12px !important; margin: 18px 0 !important; }
body.tutor .wt-msg-avatar {
  width: 42px !important; height: 42px !important; font-size: 1.2rem !important;
  border-radius: 14px !important; border: 2px solid #fff !important;
  box-shadow: 0 8px 18px rgba(79,70,229,.4) !important;
}
body.tutor .wt-msg-content {
  border-radius: 8px 22px 22px 22px !important;
  padding: 18px 20px !important;
  font-size: .96rem !important; line-height: 1.75 !important;
  border: 1px solid #e2e8f5 !important;
  box-shadow: 0 12px 30px rgba(15,23,42,.09) !important;
  position: relative; overflow: hidden;
}
body.tutor .wt-message:not(.user) .wt-msg-content::before {
  content: ""; position: absolute; top: 0; left: 0; right: 0; height: 4px;
  background: linear-gradient(90deg, #4f46e5, #7c3aed, #06b6d4);
}
body.tutor .wt-message.user .wt-msg-content {
  background: linear-gradient(135deg, #4338ca, #6d28d9) !important;
  box-shadow: 0 12px 26px rgba(109,40,217,.4) !important;
}
body.tutor .wt-msg-author {
  background: #eef2ff !important; color: #4338ca !important;
  display: inline-block !important; padding: 3px 10px !important; border-radius: 999px !important;
  margin-bottom: 8px !important;
}
body.tutor .wt-message pre {
  background: linear-gradient(180deg, #0f172a, #1e1b4b) !important;
  border: 1px solid rgba(165,180,252,.3) !important;
  border-radius: 16px !important; padding: 16px !important;
  box-shadow: inset 0 2px 0 rgba(255,255,255,.08);
}

/* Message action pills: colorful */
body.tutor .wt-message button, body.tutor .wt-msg-actions button {
  border-radius: 999px !important; font-weight: 700 !important;
  border: 1.5px solid #e2e8f5 !important; background: #f8faff !important;
  transition: all .15s ease !important;
}
body.tutor .wt-message button:hover { background: #4f46e5 !important; color: #fff !important; border-color: #4f46e5 !important; }

/* Composer: unmissable premium dock */
body.tutor .wt-composer-wrapper { padding: 16px 20px 14px !important; }
body.tutor .wt-compose-capsule {
  border-radius: 26px !important; padding: 10px 12px !important;
  border: 2px solid transparent !important;
  background: linear-gradient(#fff, #fff) padding-box, linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4) border-box !important;
  box-shadow: 0 20px 50px -12px rgba(79,70,229,.4) !important;
}
body.tutor.wt-dark .wt-compose-capsule {
  background: linear-gradient(#0e1740, #0e1740) padding-box, linear-gradient(135deg, #4f46e5, #7c3aed, #06b6d4) border-box !important;
}
body.tutor .wt-compose-capsule textarea { font-size: 1rem !important; }
body.tutor .wt-compose-capsule textarea::placeholder { color: #8ea0bb !important; font-weight: 500 !important; }
body.tutor .wt-send-btn {
  width: 48px !important; height: 48px !important;
  background: linear-gradient(135deg, #2563eb, #4f46e5 55%, #7c3aed) !important;
  box-shadow: 0 10px 24px rgba(37,99,235,.5), inset 0 1px 0 rgba(255,255,255,.35) !important;
}
body.tutor .wt-send-btn:hover { transform: scale(1.08) rotate(-4deg) !important; }
body.tutor .wt-tool-btn, body.tutor .wt-upload-btn, body.tutor .wt-voice-btn { width: 44px !important; height: 44px !important; border-radius: 15px !important; }
body.tutor .wt-accel-chip { font-size: .8rem !important; padding: 9px 14px !important; }

/* Quest + tip: ensure prominent even in screenshot */
body.tutor .wt-quest-strip {
  background: linear-gradient(135deg, #312e81, #6d28d9 55%, #0e7490 130%) !important;
  box-shadow: 0 12px 30px rgba(109,40,217,.4) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
}
body.tutor .wt-tip-banner { border-width: 2px !important; box-shadow: 0 8px 20px rgba(245,158,11,.25) !important; }
body.tutor .wt-study-controls { box-shadow: 0 10px 30px rgba(15,23,42,.07) !important; }
body.tutor .wt-mode-pill { font-size: .84rem !important; padding: 10px 16px !important; }
body.tutor .wt-mode-pill.active { box-shadow: 0 8px 22px rgba(124,58,237,.5) !important; }

/* Toast: premium green */
body.tutor .wt-toast:not([hidden]) {
  background: linear-gradient(135deg, #065f46, #059669) !important;
  border: 1px solid rgba(255,255,255,.25) !important;
  font-weight: 700 !important;
}

/* =====================================================================
   v35 BUGFIX — defeat v31 KILL (IDs beat classes, so target IDs too)
   Restores tip / quest / study-controls / focus-hint / teacher/subject/chapter
   Premium loads after base, equal specificity + later wins.
   ===================================================================== */
body.tutor #tip-banner, body.tutor .wt-tip-banner {
  display: flex !important; height: auto !important; overflow: visible !important;
  margin: 12px 18px 0 !important; padding: 10px 14px !important;
  visibility: visible !important; border: 2px solid #fcd34d !important;
}
body.tutor #quest-strip, body.tutor .wt-quest-strip {
  display: flex !important; height: auto !important; overflow: hidden !important;
  margin: 10px 18px 0 !important; padding: 10px 14px !important; visibility: visible !important;
  align-items: center !important; gap: 12px !important; flex-wrap: wrap !important;
}
body.tutor #study-controls, body.tutor .wt-study-controls {
  display: block !important; height: auto !important; overflow: visible !important;
  margin: 0 !important; padding: 10px 18px 12px !important; visibility: visible !important;
}
body.tutor #study-controls.wt-collapsed, body.tutor .wt-study-controls.wt-collapsed,
body.tutor #tip-banner.wt-collapsed, body.tutor #quest-strip.wt-collapsed { display: none !important; }
body.tutor #focus-bar-hint, body.tutor .wt-focus-bar-hint {
  visibility: visible !important;
}
body.tutor #focus-bar-hint:not([hidden]), body.tutor .wt-focus-bar-hint:not([hidden]) {
  display: flex !important; height: auto !important; overflow: visible !important;
  margin: 8px 18px 0 !important; padding: 0 !important; justify-content: center !important;
}
body.tutor .wt-mini-expand-btn {
  background: linear-gradient(135deg, #4f46e5, #7c3aed) !important; color: #fff !important;
  border: none !important; border-radius: 999px !important; font-weight: 800 !important;
  padding: 10px 18px !important; box-shadow: 0 8px 22px rgba(124,58,237,.45) !important;
}
body.tutor #teacher-modes-bar, body.tutor .wt-teacher-modes-bar {
  display: flex !important; height: auto !important; overflow-x: auto !important;
  visibility: visible !important; gap: 8px !important; padding: 2px !important;
}
body.tutor #subjects-bar, body.tutor .wt-subjects-bar {
  display: flex !important; height: auto !important; overflow-x: auto !important;
  visibility: visible !important; gap: 7px !important; align-items: center !important;
}
body.tutor #chapter-bar, body.tutor .wt-chapter-bar {
  display: flex !important; height: auto !important; overflow: hidden !important;
  visibility: visible !important; align-items: center !important; gap: 8px !important;
}
/* Restore premium backgrounds nuked by v31-B */
body.tutor:has(#workspace:not([hidden])) { background: #e9edf7 !important; }
body.tutor:has(#workspace:not([hidden])) .wt-chatgpt-main {
  background: radial-gradient(700px 260px at 10% 0%, rgba(99,102,241,.12), transparent 60%), radial-gradient(700px 280px at 90% 8%, rgba(6,182,212,.1), transparent 60%), #f3f5fb !important;
}
body.tutor .wt-chatgpt-messages {
  background-image: radial-gradient(rgba(79,70,229,.1) 1px, transparent 1px) !important;
  background-size: 22px 22px !important;
}
/* Un-hide hub buttons killed on small screens */
body.tutor #btn-open-pyq, body.tutor #btn-open-formulas, body.tutor #btn-open-dashboard, body.tutor #btn-focus-mode { display: inline-flex !important; }
/* Dark contrast fixes */
body.tutor.wt-dark .wt-msg-author { color: #c7d2fe !important; background: rgba(79,70,229,.25) !important; }
body.tutor.wt-dark .wt-compose-capsule textarea::placeholder { color: #9aa8c3 !important; }
body.tutor.wt-dark .wt-callout-trap, body.tutor.wt-dark .wt-callout { background: #1a1440 !important; color: #fde68a !important; border-color: rgba(245,158,11,.4) !important; }
/* Chapter chips: support both class names */
body.tutor .wt-chap-chip, body.tutor .wt-chap-pill {
  display: inline-flex !important; align-items: center !important;
  border: 1.5px solid #dbe2ff !important; background: #fff !important; color: #334155 !important;
  border-radius: 999px !important; padding: 6px 12px !important; font-size: .78rem !important; font-weight: 700 !important;
  white-space: nowrap !important; cursor: pointer !important;
}
body.tutor .wt-chap-chip:hover, body.tutor .wt-chap-pill:hover { border-color: #4f46e5 !important; color: #4f46e5 !important; }
body.tutor .wt-chapter-bar > .wt-chap-scroll { overflow-x: auto !important; }
body.tutor .wt-chapter-bar { overflow: hidden !important; }

