html {
  font-size: 14px;
}

:root { --ink:#14213d; --navy:#17365d; --blue:#2563eb; --paper:#f4f7fb; --line:#dbe3ee; }
body { background:var(--paper); color:var(--ink); font-family:"Segoe UI",Arial,sans-serif; }
.navbar { padding:.8rem 1.2rem; }
.navbar-brand { font-weight:750; color:var(--navy)!important; letter-spacing:-.02em; }
.active-task-bar{position:sticky;top:0;z-index:1020;display:flex;justify-content:space-between;align-items:center;gap:1rem;padding:.65rem 2rem;background:#0f172a;color:#fff;box-shadow:0 5px 18px rgba(15,23,42,.22)}.active-task-bar small{color:#9fb2c9;margin-left:.55rem}.active-task-actions{display:flex;align-items:center;gap:.6rem}.active-task-actions form{margin:0}.active-task-actions>strong{font-variant-numeric:tabular-nums;font-size:1.1rem}.pulse-dot{display:inline-block;width:10px;height:10px;border-radius:50%;background:#22c55e;margin-right:.6rem;box-shadow:0 0 0 5px rgba(34,197,94,.15)}
.brand-mark { display:inline-grid; place-items:center; width:38px; height:38px; border-radius:10px; background:var(--navy); color:#fff; margin-right:.45rem; }
.navbar-brand strong{color:#0d9488}.tutor-hero{min-height:360px;border-radius:28px;padding:3.5rem 4rem;background:linear-gradient(125deg,#123259,#155c74 65%,#0f8b7c);color:#fff;display:flex;justify-content:space-between;align-items:center;overflow:hidden;box-shadow:0 20px 60px rgba(16,42,67,.18)}.tutor-hero-copy{max-width:760px}.tutor-kicker{display:block;font-size:.78rem;font-weight:800;letter-spacing:.16em;color:#8ce5d6}.tutor-kicker.dark{color:#0f766e}.tutor-hero h1{font-size:4.2rem;line-height:.98;font-weight:850;letter-spacing:-.055em;margin:1rem 0}.tutor-hero p{font-size:1.25rem;line-height:1.55;color:#e0f2f1;max-width:720px}.language-switch{display:inline-flex;padding:5px;background:rgba(255,255,255,.14);border:1px solid rgba(255,255,255,.25);border-radius:14px;margin-top:1rem}.language{border:0;background:transparent;color:#fff;padding:.7rem 1.15rem;border-radius:10px;font-weight:700}.language.active{background:#fff;color:#124a66}.tutor-orb{width:210px;height:210px;border-radius:50%;background:rgba(255,255,255,.1);border:1px solid rgba(255,255,255,.2);display:grid;place-content:center;text-align:center;box-shadow:inset 0 0 0 28px rgba(255,255,255,.035)}.tutor-orb span{font-size:5.5rem;font-weight:900;line-height:.85}.tutor-orb small{letter-spacing:.3em;margin-top:1rem}.tutor-section{padding:2.2rem 0 .5rem}.section-heading{display:flex;justify-content:space-between;align-items:end;margin-bottom:1.1rem}.section-heading span{font-size:.72rem;font-weight:800;letter-spacing:.14em;color:#0f766e}.section-heading h2{font-size:2rem;font-weight:800;margin:.2rem 0}.section-heading a{color:#0f766e;text-decoration:none;font-weight:700}.subject-grid{display:grid;grid-template-columns:repeat(4,1fr);gap:1rem}.subject-card{display:flex;align-items:center;gap:1rem;background:#fff;border:1px solid var(--line);border-radius:18px;padding:1.2rem;color:var(--ink);text-decoration:none;transition:.2s}.subject-card:hover{transform:translateY(-3px);box-shadow:0 14px 35px rgba(20,33,61,.1);color:var(--ink)}.subject-card b{display:grid;place-items:center;flex:0 0 48px;height:48px;border-radius:14px;background:#e0f2fe;color:#0369a1;font-size:1.35rem}.subject-card strong,.subject-card small{display:block}.subject-card strong{font-size:1.05rem}.subject-card small{color:#718096;margin-top:.2rem}.subject-card.science b{background:#ede9fe;color:#6d28d9}.subject-card.biology b{background:#dcfce7;color:#15803d}.subject-card.social b{background:#ffedd5;color:#c2410c}.subject-card.language-card b{background:#fef3c7;color:#a16207}.learning-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem;margin-top:1.5rem}.continue-card,.ask-card{border-radius:22px;padding:2rem}.continue-card{background:#fff;border:1px solid var(--line)}.continue-card h2,.ask-card h2{font-weight:800;margin:.55rem 0}.continue-card p{color:#64748b}.progress{height:10px;background:#e8edf3;border-radius:99px;margin:1.5rem 0 .5rem}.progress div{height:100%;background:#14b8a6}.ask-card{background:#112b4a;color:#fff}.ask-card p,.ask-card small{color:#c6d5e5}.ask-card form{display:flex;gap:.6rem;margin:1.25rem 0}.ask-card input{flex:1;border:0;border-radius:12px;padding:.9rem 1rem}.ask-card button{border:0;border-radius:12px;background:#14b8a6;color:#062c2a;padding:.9rem 1.3rem;font-weight:800}
.app-container { max-width:1540px; padding:1.1rem 2rem 4rem; }
.hero-panel { min-height:330px; border-radius:24px; padding:3.5rem; color:#fff; background:linear-gradient(125deg,#102a43,#174f7a 65%,#197278); display:flex; justify-content:space-between; align-items:center; box-shadow:0 20px 60px rgba(16,42,67,.18); overflow:hidden; }
.hero-panel h1 { font-size:4rem; font-weight:800; letter-spacing:-.05em; }
.hero-panel p { max-width:750px; font-size:1.25rem; color:#dcebf5; }
.hero-code { font-size:5.5rem; font-weight:900; opacity:.12; transform:rotate(-7deg); }
.eyebrow { font-weight:800; letter-spacing:.14em; font-size:.78rem; color:#2f73d9; }
.hero-panel .eyebrow { color:#8fd3c7; }
.hero-actions,.heading-actions,.form-actions,.filter-actions { display:flex; gap:.75rem; align-items:center; margin-top:1.5rem; }
.module-grid { display:grid; grid-template-columns:repeat(4,1fr); gap:1.2rem; margin-top:1.5rem; }
.module-card { display:block; background:#fff; border:1px solid var(--line); border-radius:18px; padding:1.5rem; color:var(--ink); text-decoration:none; transition:.2s ease; }
.module-card:hover { transform:translateY(-3px); box-shadow:0 14px 35px rgba(20,33,61,.1); color:var(--blue); }
.module-card span { color:#7391b4; font-weight:800; }.module-card h2{font-size:1.25rem;margin:.8rem 0}.module-card p{color:#607087}.module-card.muted{opacity:.72}
.page-heading { display:flex; justify-content:space-between; align-items:flex-end; gap:1rem; margin:1rem 0 1.5rem; }
.page-heading h1 { font-weight:800; font-size:2.4rem; letter-spacing:-.035em; margin:.2rem 0; }.page-heading p{margin:0;color:#637189}
.content-card,.filter-card { background:#fff; border:1px solid var(--line); border-radius:18px; padding:1.35rem; box-shadow:0 8px 25px rgba(20,33,61,.045); }
.filter-card { margin-bottom:1.2rem; }.form-label{font-weight:650;color:#334155}.form-actions{border-top:1px solid var(--line);padding-top:1.2rem}
.start-task-card{max-width:1000px}.task-request{font-size:1.2rem}.start-now{min-width:230px}
.records-list { display:grid; gap:1rem; }.work-card{background:#fff;border:1px solid var(--line);border-left:5px solid #2f73d9;border-radius:16px;padding:1.25rem 1.4rem}.work-card-top{display:flex;justify-content:space-between;gap:1rem}.work-card h2{font-size:1.25rem;margin:.2rem 0}.work-id{font-size:.78rem;font-weight:800;color:#2f73d9}.problem{font-size:1.06rem;margin:1rem 0}.record-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;padding:1rem;background:#f7f9fc;border-radius:12px}.record-grid small,.detail-grid small{font-weight:800;color:#68788f;text-transform:uppercase;font-size:.69rem;letter-spacing:.06em}.record-grid p,.detail-grid p{white-space:pre-wrap;margin:.25rem 0}.work-card-footer{display:flex;gap:1.2rem;align-items:center;padding-top:1rem;color:#64748b;font-size:.9rem}.work-card-footer a:first-of-type{margin-left:auto}.status{display:inline-block;padding:.35rem .7rem;border-radius:999px;font-size:.78rem;font-weight:800}.status-completed{background:#dcfce7;color:#166534}.status-in-progress{background:#fef3c7;color:#92400e}.status-waiting{background:#ffedd5;color:#9a3412}.status-not-started{background:#e2e8f0;color:#475569}.status-cancelled{background:#fee2e2;color:#991b1b}.time-used{font-weight:800;margin-top:.45rem}.empty-state{text-align:center;background:#fff;border:1px dashed #b8c5d6;border-radius:16px;padding:4rem}
.kpi-grid{display:grid;grid-template-columns:repeat(3,1fr);gap:1rem;margin:1.2rem 0}.kpi{background:#17365d;color:#fff;border-radius:16px;padding:1.35rem}.kpi small,.kpi span{display:block;color:#c7d6e5}.kpi strong{display:block;font-size:2.2rem;margin:.2rem 0}.summary-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.2rem}.summary-grid h2{font-size:1.25rem;font-weight:800}.detail-grid{display:grid;grid-template-columns:1fr 1fr;gap:1.4rem}.detail-grid>div{padding-bottom:1rem;border-bottom:1px solid var(--line)}
@media(max-width:1000px){.module-grid,.subject-grid{grid-template-columns:1fr 1fr}.record-grid,.summary-grid,.learning-grid{grid-template-columns:1fr}.hero-code,.tutor-orb{display:none}}
@media(max-width:700px){.active-task-bar{position:static;padding:.65rem 1rem;align-items:flex-start;flex-direction:column}.active-task-actions{width:100%;flex-wrap:wrap}.app-container{padding:1rem}.hero-panel,.tutor-hero{padding:2rem}.hero-panel h1,.tutor-hero h1{font-size:2.6rem}.module-grid,.subject-grid,.kpi-grid,.detail-grid{grid-template-columns:1fr}.page-heading{align-items:flex-start;flex-direction:column}.heading-actions{width:100%;flex-wrap:wrap}.work-card-footer{flex-wrap:wrap}.work-card-footer a:first-of-type{margin-left:0}.ask-card form{flex-direction:column}}

@media (min-width: 768px) {
  html {
    font-size: 16px;
  }
}

.btn:focus, .btn:active:focus, .btn-link.nav-link:focus, .form-control:focus, .form-check-input:focus {
  box-shadow: 0 0 0 0.1rem white, 0 0 0 0.25rem #258cfb;
}

html {
  position: relative;
  min-height: 100%;
}

body {
  margin-bottom: 60px;
}

/* Tutor learning module */
.lesson-coming{padding:.8rem 1rem;border:1px dashed #cbd5e1;border-radius:12px;color:#64748b;background:#f8fafc}
.learn-heading{display:flex;justify-content:space-between;align-items:end;gap:2rem;padding:2rem 0}.learn-heading h1{font-size:3rem;font-weight:850;margin:.4rem 0}.learn-heading p{color:#64748b}.language-switch.light{background:#e2e8f0;border-color:#cbd5e1}.language-switch.light .language{color:#334155;text-decoration:none}.language-switch.light .language.active{background:#17365d;color:#fff}.chapter-list{display:grid;gap:1rem}.chapter-card{display:flex;gap:1.4rem;background:#fff;border:1px solid var(--line);border-radius:20px;padding:1.5rem}.chapter-number{display:grid;place-items:center;flex:0 0 64px;height:64px;border-radius:18px;background:#e0f2fe;color:#0369a1;font-size:1.3rem;font-weight:900}.chapter-content{flex:1}.chapter-content h2{font-weight:800;margin:0}.chapter-content small{color:#64748b}.lesson-links{display:grid;gap:.6rem;margin-top:1rem}.lesson-links a{display:flex;gap:.7rem;align-items:center;padding:.8rem 1rem;border-radius:12px;background:#f4f7fb;color:#17365d;text-decoration:none;font-weight:700}.lesson-links a:hover{background:#e0f2fe}.lesson-breadcrumb{display:flex;gap:.6rem;color:#64748b;margin:1rem 0}.lesson-breadcrumb a{color:#0f766e;text-decoration:none;font-weight:700}.lesson-layout{display:grid;grid-template-columns:minmax(0,1.6fr) minmax(300px,.8fr);gap:1.3rem}.lesson-paper,.practice-panel{border-radius:22px;padding:2.2rem}.lesson-paper{background:#fff;border:1px solid var(--line)}.lesson-paper h1{font-size:2.6rem;font-weight:850;margin:.6rem 0 1.5rem}.lesson-text{font-size:1.15rem;line-height:1.85;white-space:pre-line}.complete-button{margin-top:2rem;border:0;border-radius:12px;background:#0f8b69;color:#fff;padding:.9rem 1.2rem;font-weight:800}.completed-banner{margin-top:2rem;border-radius:12px;background:#dcfce7;color:#166534;padding:1rem;font-weight:800}.practice-panel{background:#112b4a;color:#fff;align-self:start}.practice-panel h2{font-weight:800;margin:.5rem 0 1.5rem}.practice-panel .question{font-size:1.1rem;line-height:1.55}.practice-panel form{display:grid;gap:.7rem}.practice-panel input{border:0;border-radius:12px;padding:.9rem 1rem}.practice-panel button{border:0;border-radius:12px;background:#14b8a6;padding:.9rem;font-weight:800}.answer-result{border-radius:10px;padding:.8rem;margin-bottom:1rem;font-weight:800}.answer-result.correct{background:#dcfce7;color:#166534}.answer-result.incorrect{background:#fef3c7;color:#92400e}

@media(max-width:1000px){.lesson-layout{grid-template-columns:1fr}}
@media(max-width:700px){.learn-heading{align-items:flex-start;flex-direction:column}.learn-heading h1,.lesson-paper h1{font-size:2.3rem}.chapter-card{padding:1rem}.chapter-number{flex-basis:48px;height:48px}.lesson-paper,.practice-panel{padding:1.4rem}}

.form-floating > .form-control-plaintext::placeholder, .form-floating > .form-control::placeholder {
  color: var(--bs-secondary-color);
  text-align: end;
}

.form-floating > .form-control-plaintext:focus::placeholder, .form-floating > .form-control:focus::placeholder {
  text-align: start;
}
