/* ===================== Pointicts — stylesheet ===================== */
:root{
  --brand:#4f46e5; --brand-d:#3730a3; --brand-l:#eef2ff;
  --accent:#f97316; --accent-d:#ea580c;
  --ink:#0f172a; --muted:#64748b; --bg:#f4f6fb; --card:#fff; --line:#e2e8f0;
  --ok:#16a34a; --bad:#dc2626; --warn:#d97706;
  --radius:14px; --shadow:0 1px 3px rgba(15,23,42,.06),0 8px 24px rgba(15,23,42,.06);
}
*{box-sizing:border-box}
[hidden]{display:none!important}
html{scroll-behavior:smooth}
body{margin:0;font-family:"Segoe UI",system-ui,-apple-system,Roboto,Helvetica,Arial,sans-serif;background:var(--bg);color:var(--ink);line-height:1.55;-webkit-font-smoothing:antialiased}
a{color:var(--brand);text-decoration:none} a:hover{text-decoration:underline}
h1,h2,h3{line-height:1.25;margin:0 0 .5em} h1{font-size:1.75rem} h2{font-size:1.2rem} h3{font-size:1.05rem}
img{max-width:100%}
hr{border:0;border-top:1px solid var(--line);margin:18px 0}
.container{max-width:1240px;margin:0 auto;padding:0 20px}
.page{padding-top:26px;padding-bottom:50px;min-height:70vh}
.muted{color:var(--muted)} .small{font-size:.82rem} .center{text-align:center} .pad{padding:16px}
.row{display:flex;align-items:center;flex-wrap:wrap} .row.gap{gap:10px} .row.between{justify-content:space-between} .center-row{justify-content:center}
.grow{flex:1} .ellipsis{white-space:nowrap;overflow:hidden;text-overflow:ellipsis}
.inline{display:inline}

/* ---------- navbar ---------- */
.navbar{background:#fff;border-bottom:1px solid var(--line);position:sticky;top:0;z-index:50}
.nav-inner{display:flex;align-items:center;gap:18px;height:66px}
.brand{display:flex;align-items:center;gap:10px;font-weight:800;font-size:1.25rem;color:var(--ink);letter-spacing:-.02em}
.brand:hover{text-decoration:none}
.brand-logo{width:36px;height:36px;border-radius:10px;background:linear-gradient(135deg,var(--brand),#7c3aed);display:grid;place-items:center;box-shadow:0 4px 12px rgba(79,70,229,.35)}
.nav-search{flex:1;max-width:520px} .nav-search input{width:100%;border-radius:999px;background:#f1f5f9;border:1px solid transparent;padding:10px 18px}
.nav-search input:focus{background:#fff;border-color:var(--brand)}
.nav-links{display:flex;align-items:center;gap:4px;margin-left:auto}
.nav-link{color:var(--ink);font-weight:600;font-size:.92rem;padding:8px 12px;border-radius:8px;position:relative;white-space:nowrap}
.nav-link:hover{background:var(--brand-l);text-decoration:none;color:var(--brand)}
.nav-link.logout{color:var(--muted)}
.dot{display:inline-block;min-width:18px;height:18px;line-height:18px;padding:0 5px;margin-left:6px;border-radius:999px;background:var(--accent);color:#fff;font-size:.7rem;text-align:center;font-weight:700}
.user-chip{display:flex;align-items:center;gap:8px;padding:4px 12px 4px 4px;background:#f1f5f9;border-radius:999px;font-size:.86rem;font-weight:600;margin-left:6px}
.nav-toggle{display:none;background:none;border:0;font-size:1.5rem;cursor:pointer;margin-left:auto}
.avatar{display:inline-grid;place-items:center;width:40px;height:40px;border-radius:50%;object-fit:cover;flex:none;color:#fff;font-weight:700;font-size:.85rem;background:linear-gradient(135deg,hsl(var(--h,230),65%,52%),hsl(calc(var(--h,230) + 40),65%,42%))}
.avatar.sm{width:28px;height:28px;font-size:.7rem} .avatar.lg{width:64px;height:64px;font-size:1.2rem}

/* ---------- buttons & forms ---------- */
.btn{display:inline-flex;align-items:center;justify-content:center;gap:6px;padding:10px 18px;border-radius:10px;border:1.5px solid transparent;background:var(--brand);color:#fff;font:inherit;font-weight:700;font-size:.92rem;cursor:pointer;transition:.15s;text-align:center}
.btn:hover{text-decoration:none;background:var(--brand-d);color:#fff}
.btn:disabled{opacity:.5;cursor:not-allowed}
.btn-primary{background:var(--brand)} .btn-accent{background:var(--accent)} .btn-accent:hover{background:var(--accent-d)}
.btn-success{background:var(--ok)} .btn-success:hover{background:#15803d} .btn-danger{background:var(--bad)} .btn-danger:hover{background:#b91c1c}
.btn-outline{background:#fff;border-color:var(--line);color:var(--ink)} .btn-outline:hover{background:var(--brand-l);color:var(--brand);border-color:var(--brand)}
.btn-ghost{background:transparent;color:var(--muted)} .btn-ghost:hover{background:#f1f5f9;color:var(--ink)}
.btn-sm{padding:6px 11px;font-size:.8rem;border-radius:8px} .btn-block{display:flex;width:100%;margin-top:10px}
label{display:block;font-weight:600;font-size:.88rem;margin-bottom:6px}
.hint{display:block;font-weight:400;color:var(--muted);font-size:.78rem;margin-top:4px}
label .hint{display:inline;margin:0}
input[type=text],input[type=email],input[type=password],input[type=search],input[type=tel],input[type=url],input[type=number],select,textarea,input:not([type]){width:100%;padding:10px 13px;border:1.5px solid var(--line);border-radius:10px;font:inherit;background:#fff;color:var(--ink)}
input:focus,select:focus,textarea:focus{outline:0;border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,70,229,.15)}
input[type=file]{width:100%;padding:8px;border:1.5px dashed var(--line);border-radius:10px;background:#fafbff;font:inherit}
textarea{resize:vertical}
.form-group{margin-bottom:16px} .form-row{display:grid;grid-template-columns:1fr 1fr;gap:16px} .form-row.three{grid-template-columns:repeat(3,1fr)}
.check{display:inline-flex;align-items:center;gap:8px;font-weight:500;cursor:pointer;margin:0 14px 6px 0} .check input{width:auto}
.radio-row{margin-bottom:10px} .vt-box{padding:12px;background:#f8fafc;border-radius:10px;border:1px solid var(--line)}
.form-card{max-width:860px} .thumb-preview img{max-width:260px;border-radius:10px;margin-bottom:8px}
.filter-bar{display:flex;gap:10px;flex-wrap:wrap;align-items:center;padding:14px} .filter-bar input,.filter-bar select{width:auto;min-width:200px;flex:1}

/* ---------- cards / flashes / badges ---------- */
.card{background:var(--card);border:1px solid var(--line);border-radius:var(--radius);padding:22px;margin-bottom:20px;box-shadow:var(--shadow)}
.card h2{margin-bottom:14px}
.flash{padding:12px 16px;border-radius:10px;margin-bottom:16px;font-weight:500;border:1px solid}
.flash.success{background:#dcfce7;color:#166534;border-color:#bbf7d0} .flash.error{background:#fee2e2;color:#991b1b;border-color:#fecaca} .flash.info{background:#e0e7ff;color:#3730a3;border-color:#c7d2fe}
.badge{display:inline-block;padding:2px 10px;border-radius:999px;font-size:.72rem;font-weight:700;background:#e2e8f0;color:#334155;text-transform:capitalize}
.badge.pass,.badge.active{background:#dcfce7;color:#166534} .badge.fail{background:#fee2e2;color:#991b1b} .badge.pending{background:#fef3c7;color:#92400e} .badge.info{background:#e0e7ff;color:#3730a3}
.online{display:inline-block;width:9px;height:9px;border-radius:50%;background:#22c55e;box-shadow:0 0 0 3px rgba(34,197,94,.25)}
.page-head{display:flex;justify-content:space-between;align-items:flex-start;gap:16px;flex-wrap:wrap;margin-bottom:18px} .page-head p{margin:0}
.danger-zone{border-color:#fecaca;background:#fff8f8}

/* ---------- tables, progress, stats ---------- */
.table-wrap{overflow-x:auto}
table{width:100%;border-collapse:collapse;font-size:.9rem}
th,td{padding:11px 12px;text-align:left;border-bottom:1px solid var(--line);vertical-align:middle}
th{font-size:.72rem;text-transform:uppercase;letter-spacing:.04em;color:var(--muted);background:#f8fafc;white-space:nowrap}
tbody tr:hover{background:#fafbff} td.actions{white-space:nowrap} td.actions>*{margin-right:4px} td.w-progress{min-width:170px}
.kv th{width:160px;background:none;text-transform:none;font-size:.9rem;color:var(--muted)}
.progress{height:8px;background:#e2e8f0;border-radius:999px;overflow:hidden;margin:6px 0} .progress.big{height:12px}
.progress .bar{height:100%;background:linear-gradient(90deg,var(--brand),#7c3aed);border-radius:999px;transition:width .5s}
.stat-grid{display:grid;grid-template-columns:repeat(auto-fit,minmax(210px,1fr));gap:16px;margin-bottom:20px}
.stat{background:#fff;border:1px solid var(--line);border-left:4px solid var(--brand);border-radius:var(--radius);padding:16px 18px;box-shadow:var(--shadow)}
.stat.green{border-left-color:var(--ok)} .stat-num{font-size:2rem;font-weight:800;letter-spacing:-.02em;line-height:1.1} .stat-num small{font-size:1rem;color:var(--muted);font-weight:600}
.stat-label{color:var(--muted);font-size:.85rem;margin-top:4px}
.two-col{display:grid;grid-template-columns:1fr 1fr;gap:20px} .live-row{display:flex;align-items:center;gap:10px;justify-content:space-between;padding:9px 0;border-bottom:1px solid var(--line)} .live-row:last-child{border:0}
.vbars{display:flex;align-items:flex-end;gap:10px;height:170px;padding-top:20px}
.vbar{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:flex-end;height:100%;position:relative}
.vfill{width:100%;max-width:46px;background:linear-gradient(180deg,#818cf8,var(--brand));border-radius:8px 8px 0 0;min-height:2px}
.vnum{font-size:.75rem;font-weight:700;margin-bottom:3px} .vlabel{font-size:.72rem;color:var(--muted);margin-top:6px}
.hbar{display:grid;grid-template-columns:150px 1fr 34px;align-items:center;gap:10px;margin-bottom:9px;font-size:.85rem}
.hlabel{overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .htrack{background:#e2e8f0;border-radius:999px;height:10px;overflow:hidden} .hfill{height:100%;background:linear-gradient(90deg,var(--accent),#fb923c);border-radius:999px} .hnum{text-align:right;font-weight:700}
.pager{display:flex;gap:6px;flex-wrap:wrap;margin-top:16px} .pager a{padding:6px 12px;border:1px solid var(--line);border-radius:8px;background:#fff;color:var(--ink);font-weight:600} .pager a.active{background:var(--brand);color:#fff;border-color:var(--brand)}

/* ---------- ratings ---------- */
.rating{display:inline-flex;align-items:center;gap:6px;font-size:.85rem}
.stars{--p:calc(var(--rating) / 5 * 100%);display:inline-block;font-size:16px;letter-spacing:1px;line-height:1}
.stars::before{content:'★★★★★';background:linear-gradient(90deg,#f59e0b var(--p),#d5dbe6 var(--p));-webkit-background-clip:text;background-clip:text;-webkit-text-fill-color:transparent;color:transparent}
.rating-num{font-weight:800;color:#b45309} .rating-count{color:var(--muted)}
.star-input{display:inline-flex;flex-direction:row-reverse;gap:2px;margin-bottom:8px}
.star-input input{position:absolute;opacity:0;width:0;height:0}
.star-input label{font-size:30px;color:#cbd5e1;cursor:pointer;margin:0;line-height:1}
.star-input input:checked~label,.star-input label:hover,.star-input label:hover~label{color:#f59e0b}

/* ---------- storefront (home) ---------- */
.hero-strip{background:linear-gradient(120deg,#312e81,#4f46e5 55%,#7c3aed);color:#fff;border-radius:20px;padding:34px 36px;display:flex;justify-content:space-between;align-items:center;gap:24px;flex-wrap:wrap;margin-bottom:22px;position:relative;overflow:hidden}
.hero-strip::after{content:"";position:absolute;right:-60px;top:-80px;width:280px;height:280px;border-radius:50%;background:radial-gradient(circle,rgba(249,115,22,.55),transparent 70%)}
.hero-strip h1{font-size:1.9rem;margin-bottom:6px} .hero-strip p{margin:0;opacity:.9}
.hero-search{display:flex;gap:8px;flex:1;min-width:300px;max-width:520px;position:relative;z-index:1} .hero-search input{border-radius:12px;padding:13px 16px;border:0}
.chips{display:flex;gap:8px;flex-wrap:wrap;margin-bottom:8px}
.chip{padding:7px 14px;border-radius:999px;background:#fff;border:1px solid var(--line);color:var(--ink);font-weight:600;font-size:.85rem} .chip small{color:var(--muted)} .chip:hover{text-decoration:none;border-color:var(--brand);color:var(--brand)}
.chip.active{background:var(--ink);color:#fff;border-color:var(--ink)} .chip.active small{color:#cbd5e1}
.section-head{display:flex;justify-content:space-between;align-items:flex-end;margin:30px 0 14px} .section-head h2{margin:0;font-size:1.4rem} .section-head p{margin:2px 0 0}
.grid-cards{display:grid;grid-template-columns:repeat(auto-fill,minmax(250px,1fr));gap:20px}
.course-card{display:flex;flex-direction:column;background:#fff;border:1px solid var(--line);border-radius:16px;overflow:hidden;color:var(--ink);box-shadow:var(--shadow);transition:.2s}
a.course-card:hover{transform:translateY(-4px);box-shadow:0 14px 34px rgba(15,23,42,.14);text-decoration:none}
.thumb{position:relative;aspect-ratio:16/9;background:#e2e8f0;overflow:hidden;display:block} .thumb img{width:100%;height:100%;object-fit:cover;display:block}
.thumb-ph{width:100%;height:100%;display:grid;place-items:center;background:linear-gradient(135deg,hsl(var(--h),70%,48%),hsl(calc(var(--h) + 45),70%,36%))}
.thumb-ph span{font-size:3.4rem;font-weight:800;color:rgba(255,255,255,.85)}
.badge-new,.badge-enrolled{position:absolute;top:10px;padding:3px 10px;border-radius:999px;font-size:.7rem;font-weight:800;letter-spacing:.04em}
.badge-new{left:10px;background:var(--accent);color:#fff} .badge-enrolled{right:10px;background:#fff;color:var(--ok)}
.course-card .card-body{padding:14px 16px 16px;display:flex;flex-direction:column;gap:5px;flex:1}
.card-cat{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:var(--brand);font-weight:700}
.card-title{font-size:1.02rem;margin:0;display:-webkit-box;-webkit-line-clamp:2;-webkit-box-orient:vertical;overflow:hidden;min-height:2.5em}
.card-instructor{color:var(--muted);font-size:.85rem} .card-meta{display:flex;gap:12px;flex-wrap:wrap;color:var(--muted);font-size:.78rem;margin-top:auto;padding-top:8px}
.continue-row{display:grid;grid-template-columns:repeat(auto-fit,minmax(260px,1fr));gap:14px}
.continue-card{display:flex;flex-direction:column;gap:4px;background:#fff;border:1px solid var(--line);border-left:4px solid var(--accent);border-radius:12px;padding:14px 16px;color:var(--ink);box-shadow:var(--shadow)} .continue-card:hover{text-decoration:none;border-color:var(--accent)}

/* ---------- course detail ---------- */
.course-hero{background:linear-gradient(120deg,#0f172a,#312e81);color:#fff;border-radius:20px;padding:34px 38px;margin-bottom:22px}
.course-hero h1{font-size:2rem;margin:6px 0 8px} .course-hero .lead{font-size:1.05rem;opacity:.92;max-width:760px;margin:0 0 14px} .crumb{color:#a5b4fc;font-weight:700;font-size:.85rem;text-transform:uppercase;letter-spacing:.05em}
.hero-meta{display:flex;gap:18px;flex-wrap:wrap;align-items:center;font-size:.9rem;margin-bottom:12px} .hero-meta .rating-num{color:#fbbf24} .hero-meta .rating-count{color:#c7d2fe}
.hero-instructor{display:flex;align-items:center;gap:8px;font-size:.92rem}
.course-layout{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}
.course-side{position:sticky;top:86px} .side-card .thumb.big{border-radius:12px;margin-bottom:14px} .price{font-size:1.8rem;font-weight:800;margin-bottom:6px}
.side-facts{list-style:none;padding:0;margin:16px 0 0;color:var(--muted);font-size:.88rem;display:grid;gap:6px}
.outcomes{columns:2;column-gap:28px;padding-left:20px;margin:0} .outcomes li{margin-bottom:8px;break-inside:avoid}
.prose{white-space:normal;word-wrap:break-word}
.curriculum{list-style:none;margin:0;padding:0} .curriculum li{display:grid;grid-template-columns:28px 1fr auto;gap:8px;padding:11px 4px;border-bottom:1px solid var(--line);align-items:center} .curriculum li:last-child{border:0}
.review{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)} .review p{margin:4px 0 0} .review-form textarea{margin:8px 0}

/* ---------- lesson page ---------- */
.learn-grid{display:grid;grid-template-columns:1fr 340px;gap:24px;align-items:start}
.learn-head{margin-bottom:14px} .learn-head h1{margin:4px 0}
.video-wrap{position:relative;aspect-ratio:16/9;background:#000;border-radius:14px;overflow:hidden;box-shadow:var(--shadow)}
.video-wrap video,.video-wrap iframe,.video-wrap #yt-player{position:absolute;inset:0;width:100%;height:100%;border:0}
.complete-bar{display:flex;justify-content:space-between;align-items:center;gap:12px;flex-wrap:wrap;background:#fff;border:1px solid var(--line);border-radius:12px;padding:14px 18px;margin:14px 0 20px;font-weight:600}
.learn-side{position:sticky;top:86px}
.outline{list-style:none;padding:0;margin:14px 0} .outline li{display:grid;grid-template-columns:26px 1fr;gap:6px;padding:9px 8px;border-radius:8px;font-size:.9rem;align-items:start}
.outline li.current{background:var(--brand-l);font-weight:700} .outline li.locked{color:#94a3b8} .outline li a{color:inherit}
.files{list-style:none;margin:0;padding:0} .files li{display:flex;justify-content:space-between;align-items:center;gap:10px;flex-wrap:wrap;padding:10px 0;border-bottom:1px solid var(--line)} .files li:last-child{border:0}
.prompt{background:#fff7ed;border:1px solid #fed7aa;border-radius:12px;padding:14px 16px;margin-bottom:16px} .prompt p{margin:6px 0 0}
.comment{display:flex;gap:12px;padding:12px 0;border-bottom:1px solid var(--line)} .comment p{margin:4px 0 0} .comment-form{margin-top:14px} .comment-form textarea{margin-bottom:8px}

/* ---------- exam ---------- */
.exam-bar{position:sticky;top:76px;z-index:20;display:flex;justify-content:space-between;align-items:center;gap:12px;background:#fff;border:1px solid var(--line);border-radius:14px;padding:14px 20px;margin-bottom:16px;box-shadow:var(--shadow)}
.exam-bar h2{margin:0} .timer{font-size:1.6rem;font-weight:800;color:var(--brand);background:var(--brand-l);padding:6px 16px;border-radius:10px;font-variant-numeric:tabular-nums} .timer.urgent{color:var(--bad);background:#fee2e2;animation:pulse 1s infinite}
@keyframes pulse{50%{opacity:.6}}
.q-block{background:#fff;border:1px solid var(--line);border-radius:14px;padding:20px;margin-bottom:16px;box-shadow:var(--shadow)}
.q-text{font-weight:700;margin-bottom:12px;display:flex;gap:12px;align-items:flex-start} .qnum{flex:none;width:30px;height:30px;border-radius:50%;background:var(--brand);color:#fff;display:grid;place-items:center;font-size:.85rem}
.option{display:flex;align-items:center;gap:12px;padding:11px 14px;border:1.5px solid var(--line);border-radius:10px;margin-bottom:8px;cursor:pointer;font-weight:500} .option:hover{border-color:var(--brand);background:#f8faff}
.option input{width:auto} .option:has(input:checked){border-color:var(--brand);background:var(--brand-l)} .opt-letter{width:26px;height:26px;border-radius:50%;background:#e2e8f0;display:grid;place-items:center;font-weight:700;font-size:.8rem;flex:none}
.result-hero{text-align:center;padding:44px 24px;max-width:640px;margin:20px auto}
.score-circle{width:150px;height:150px;border-radius:50%;display:grid;place-items:center;margin:0 auto 18px;font-size:2.4rem;font-weight:800;color:#fff} .score-circle.pass{background:linear-gradient(135deg,#22c55e,#15803d)} .score-circle.fail{background:linear-gradient(135deg,#f87171,#b91c1c)}
.cert-card .cert-ico{font-size:2.4rem} .verify{max-width:640px;margin:20px auto}
.q-admin{padding:12px 14px;border:1px solid var(--line);border-radius:12px;margin-bottom:10px} .opts{margin:8px 0 0;padding-left:20px;color:var(--muted);font-size:.9rem} .opts .correct{color:var(--ok);font-weight:700}

/* ---------- portal (admin / instructor) ---------- */
.portal{display:grid;grid-template-columns:230px 1fr;gap:26px;padding-top:26px;padding-bottom:50px;min-height:75vh;align-items:start}
.sidebar{background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:10px;position:sticky;top:86px;box-shadow:var(--shadow)}
.sidebar a{display:flex;align-items:center;gap:10px;padding:10px 12px;border-radius:10px;color:var(--ink);font-weight:600;font-size:.92rem} .sidebar a:hover{background:var(--brand-l);text-decoration:none}
.sidebar a.active{background:var(--brand);color:#fff} .sidebar .ico{width:22px;text-align:center} .portal-main{min-width:0}

/* ---------- auth ---------- */
.auth-page{display:grid;grid-template-columns:1.1fr 1fr;min-height:100vh}
.auth-hero{background:linear-gradient(135deg,#1e1b4b,#4f46e5 60%,#7c3aed);color:#fff;display:flex;align-items:center;padding:48px;position:relative;overflow:hidden}
.auth-hero::before{content:"";position:absolute;width:420px;height:420px;border-radius:50%;background:radial-gradient(circle,rgba(249,115,22,.5),transparent 70%);right:-120px;bottom:-120px}
.auth-hero::after{content:"";position:absolute;width:300px;height:300px;border-radius:50%;border:40px solid rgba(255,255,255,.06);left:-100px;top:-90px}
.auth-hero-inner{position:relative;z-index:1;max-width:480px} .brand.light{color:#fff;margin-bottom:34px} .auth-hero h1{font-size:2.5rem;letter-spacing:-.03em;margin-bottom:14px} .auth-hero p{font-size:1.05rem;opacity:.9}
.auth-points{list-style:none;padding:0;margin:26px 0;display:grid;gap:12px} .auth-points li{background:rgba(255,255,255,.12);padding:11px 16px;border-radius:12px;backdrop-filter:blur(4px)} .auth-foot{opacity:.7;font-size:.9rem;margin-top:30px}
.auth-panel{display:grid;place-items:center;padding:32px;background:#fff} .auth-card{width:100%;max-width:440px} .auth-card h2{font-size:1.7rem}
.auth-switch{text-align:center;margin-top:20px;color:var(--muted)}

/* ---------- footer ---------- */
.footer{border-top:1px solid var(--line);background:#fff;padding:20px 0;color:var(--muted);font-size:.85rem;text-align:center}

/* ---------- responsive ---------- */
@media (max-width:1000px){
  .course-layout,.learn-grid,.two-col{grid-template-columns:1fr} .course-side,.learn-side{position:static}
  .portal{grid-template-columns:1fr} .sidebar{position:static;display:flex;overflow-x:auto;gap:4px} .sidebar a{white-space:nowrap}
  .auth-page{grid-template-columns:1fr} .auth-hero{padding:28px} .auth-hero h1{font-size:1.8rem} .auth-points,.auth-foot{display:none}
}
@media (max-width:820px){
  .nav-inner{flex-wrap:wrap;height:auto;padding:10px 20px} .nav-search{order:3;flex-basis:100%;max-width:none} .nav-toggle{display:block}
  .nav-links{display:none;flex-basis:100%;flex-direction:column;align-items:stretch;order:4} .nav-links.open{display:flex} .user-chip{margin:6px 0}
  .form-row,.form-row.three{grid-template-columns:1fr} .outcomes{columns:1} .hero-strip{padding:24px} .course-hero{padding:24px}
  .hbar{grid-template-columns:100px 1fr 30px}
}

/* ===================== Chat (dock + Messages page) — Messenger / Facebook style ===================== */
:root{--on:#31a24c;--off:#b0b3b8;--bubble-in:#e9ebf0}
.avatar.xs{width:26px;height:26px;font-size:.62rem} .avatar.md{width:44px;height:44px;font-size:.9rem}
.avatar.group{font-size:1.1rem}
.av-wrap{position:relative;display:inline-flex;flex:none}
.pdot{position:absolute;right:-1px;bottom:-1px;width:12px;height:12px;border-radius:50%;border:2px solid #fff;box-sizing:border-box}
.pdot.on{background:var(--on)} .pdot.off{background:var(--off)}
.cd-bar .pdot{position:static;border-color:rgba(255,255,255,.7);margin-left:2px}
.linklike{background:none;border:0;color:var(--brand);cursor:pointer;font:inherit;font-size:.8rem;padding:0} .linklike:hover{text-decoration:underline}

/* online-mode switch */
.switch{display:inline-flex;align-items:center;gap:8px;cursor:pointer;user-select:none;font-size:.82rem;font-weight:700;color:var(--ink)}
.switch input{position:absolute;opacity:0;width:0;height:0}
.switch .knob{position:relative;width:38px;height:22px;border-radius:999px;background:#c4c7cc;transition:background .2s;flex:none}
.switch .knob:after{content:"";position:absolute;top:2px;left:2px;width:18px;height:18px;border-radius:50%;background:#fff;box-shadow:0 1px 3px rgba(0,0,0,.3);transition:transform .2s}
.switch input:checked+.knob{background:var(--on)} .switch input:checked+.knob:after{transform:translateX(16px)}
.switch input:focus-visible+.knob{outline:3px solid #bfdbfe} .switch input:checked~.switch-text{color:var(--on)}
.cd-offnote{background:#fff7ed;color:#9a3412;font-size:.76rem;line-height:1.35;padding:7px 12px;border-bottom:1px solid #fed7aa}

/* bubbles */
.thread{overflow-y:auto;padding:14px 12px;display:flex;flex-direction:column;gap:2px;background:#fff;scroll-behavior:auto}
.msg{display:flex;gap:7px;align-items:flex-end;max-width:100%;margin-top:6px}
.msg.mine{justify-content:flex-end} .msg .m-col{display:flex;flex-direction:column;max-width:78%;min-width:0}
.msg.mine .m-col{align-items:flex-end} .msg.theirs .m-col{align-items:flex-start}
.m-name{font-size:.72rem;color:var(--muted);margin:2px 0 1px 10px}
.m-bubble{padding:8px 13px;border-radius:18px;background:var(--bubble-in);color:#050505;white-space:pre-wrap;overflow-wrap:anywhere;word-break:break-word;line-height:1.38;font-size:.92rem}
.msg.mine .m-bubble{background:linear-gradient(135deg,var(--brand),#7c3aed);color:#fff} .msg.mine .m-bubble a{color:#fff;text-decoration:underline}
.m-meta{display:flex;align-items:center;gap:5px;font-size:.68rem;color:#65676b;margin:2px 6px 0}
.m-time{font-style:normal}
.tick{font-size:.72rem;letter-spacing:-2px;color:#9aa0a6;font-weight:700} .tick.delivered{color:#6b7280} .tick.seen{color:var(--on)}
.m-status{font-size:.7rem;font-weight:700;margin:1px 6px 2px;color:#65676b} .m-status.seen{color:var(--on)}
.msg.sys{justify-content:center;margin:10px 0} .msg.sys span{font-size:.74rem;color:#65676b;background:#f0f2f5;border-radius:999px;padding:3px 12px;text-align:center}
.day-sep{text-align:center;margin:12px 0 4px;font-size:.72rem;color:#65676b;font-weight:600}
.load-more{align-self:center;background:#f0f2f5;border:0;border-radius:999px;padding:5px 14px;font-size:.78rem;cursor:pointer;color:var(--brand);font-weight:700;margin-bottom:6px}
.m-atts{display:flex;flex-direction:column;gap:4px;margin-top:3px;max-width:100%}
.msg.mine .m-atts{align-items:flex-end} .m-img img{display:block;max-width:230px;max-height:210px;border-radius:16px;background:#f0f2f5;object-fit:cover}
.m-file{display:flex;align-items:center;gap:9px;background:var(--bubble-in);border-radius:16px;padding:9px 13px;color:var(--ink);max-width:250px}
.m-file:hover{text-decoration:none;background:#dfe2e8} .m-file .fi{font-size:1.4rem} .m-file .ft{display:flex;flex-direction:column;min-width:0}
.m-file strong{font-size:.82rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap} .m-file small{color:#65676b;font-size:.7rem}

/* composer */
.composer{border-top:1px solid #e4e6eb;background:#fff;padding:8px 8px 8px 6px;position:relative}
.composer .c-row{display:flex;align-items:flex-end;gap:2px}
.composer textarea{flex:1;resize:none;border:0;border-radius:20px;padding:9px 14px;font:inherit;font-size:.92rem;line-height:1.35;max-height:110px;background:#f0f2f5;outline:none}
.composer textarea:focus{box-shadow:0 0 0 2px #c7d2fe}
.c-attach,.c-send{border:0;background:none;cursor:pointer;font-size:1.15rem;width:36px;height:36px;border-radius:50%;flex:none;color:var(--brand)}
.c-attach:hover,.c-send:hover{background:#eef2ff} .c-send:disabled{opacity:.4;cursor:default}
.chips{display:flex;flex-wrap:wrap;gap:6px;padding:0 4px 8px}
.chip{display:inline-flex;align-items:center;gap:6px;background:#eef2ff;border-radius:999px;padding:3px 4px 3px 10px;font-size:.78rem;max-width:200px}
.chip img{width:24px;height:24px;border-radius:6px;object-fit:cover;margin-left:-6px} .chip .cn{overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chip .cx{border:0;background:rgba(0,0,0,.1);border-radius:50%;width:18px;height:18px;line-height:16px;cursor:pointer;padding:0}
.c-err{color:var(--bad);font-size:.78rem;padding:4px 8px 0}
.dropping{outline:3px dashed var(--brand);outline-offset:-6px}

/* instant notification toasts */
.chat-toasts{position:fixed;top:78px;right:16px;z-index:300;display:flex;flex-direction:column;gap:8px;width:min(340px,calc(100vw - 32px))}
.chat-toast{display:flex;gap:10px;align-items:center;text-align:left;background:#fff;border:0;border-left:4px solid var(--on);border-radius:14px;padding:10px 14px;box-shadow:0 8px 30px rgba(15,23,42,.25);cursor:pointer;font:inherit;animation:toastin .25s ease}
.chat-toast .tt{display:flex;flex-direction:column;min-width:0} .chat-toast .tt strong{font-size:.86rem} .chat-toast .tt span{font-size:.8rem;color:#65676b;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.chat-toast.out{opacity:0;transform:translateX(20px);transition:.25s}
@keyframes toastin{from{opacity:0;transform:translateX(24px)}to{opacity:1;transform:none}}

/* bottom-right dock */
#cdock{position:fixed;right:0;bottom:0;z-index:120;display:flex;flex-direction:row-reverse;align-items:flex-end;gap:12px;padding-right:16px;pointer-events:none;max-width:100vw}
#cdock>*{pointer-events:auto}
.cd-panel{width:320px;background:#fff;border-radius:14px 14px 0 0;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 -6px 28px rgba(15,23,42,.22);flex:none;overflow:hidden}
.cd-bar{display:flex;align-items:center;gap:8px;width:100%;border:0;background:#fff;color:var(--ink);padding:11px 14px;cursor:pointer;font:inherit;font-size:.95rem;border-bottom:1px solid transparent}
.cd-panel.open .cd-bar{border-bottom-color:#e4e6eb} .cd-bar:hover{background:#f7f8fa}
.cd-bar .dot{background:#e41e3f;margin-left:2px} .cd-caret{margin-left:auto;color:#65676b;transition:transform .2s} .cd-panel.open .cd-caret{transform:rotate(180deg)}
.cd-body{display:flex;flex-direction:column;height:min(500px,calc(100vh - 140px))}
.cd-headrow{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:9px 12px}
.cd-search{margin:0 12px 8px;width:auto;border-radius:999px;background:#f0f2f5;border:1px solid transparent;padding:8px 14px;font-size:.85rem}
.cd-btn{white-space:nowrap;background:#eef2ff;color:var(--brand);border-radius:999px;padding:6px 12px;font-size:.78rem;font-weight:700;display:inline-flex;align-items:center} .cd-btn:hover{text-decoration:none;background:#e0e7ff}
.cd-list,.pick-list,.m-list{overflow-y:auto;flex:1}
.cd-strip{padding:0 0 6px;border-bottom:1px solid #eef0f3}
.cd-strip-row{display:flex;gap:6px;overflow-x:auto;padding:2px 12px 6px} .cd-face{border:0;background:none;display:flex;flex-direction:column;align-items:center;gap:3px;width:58px;flex:none;cursor:pointer;font:inherit;font-size:.7rem;color:var(--ink);padding:2px 0;border-radius:10px} .cd-face:hover{background:#f0f2f5}
.cd-face span:last-child{max-width:56px;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cd-head{font-size:.72rem;text-transform:uppercase;letter-spacing:.06em;color:#65676b;padding:8px 12px 4px;font-weight:700}
.cd-item,.m-item{display:flex;align-items:center;gap:10px;width:100%;border:0;background:none;text-align:left;padding:8px 12px;cursor:pointer;font:inherit;color:var(--ink);border-radius:0}
.cd-item:hover,.m-item:hover{background:#f0f2f5} .cd-item.picked{background:#eef2ff} .cd-item.static{cursor:default}
.cd-item .ci-text,.m-item .ci-text{display:flex;flex-direction:column;min-width:0;flex:1} .cd-item small,.m-item small{color:#65676b;font-size:.75rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cd-item strong,.m-item strong{font-size:.88rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cd-item .dot,.m-item .dot{background:#e41e3f}
.has-unread strong{font-weight:800} .has-unread small{color:var(--ink);font-weight:700}
.cd-empty{color:#65676b;font-size:.85rem;text-align:center;padding:22px 14px;margin:0}
.cd-foot{display:flex;justify-content:space-between;align-items:center;gap:8px;padding:8px 12px;border-top:1px solid #e4e6eb;font-size:.8rem}
.cd-wins{display:flex;flex-direction:row-reverse;align-items:flex-end;gap:12px}
.cd-win{width:330px;height:450px;max-height:calc(100vh - 90px);background:#fff;border-radius:14px 14px 0 0;box-shadow:0 0 0 1px rgba(0,0,0,.06),0 -6px 28px rgba(15,23,42,.22);display:flex;flex-direction:column;overflow:hidden;animation:winpop .18s ease}
@keyframes winpop{from{transform:translateY(24px);opacity:0}to{transform:none;opacity:1}}
.cd-win.min{height:auto} .cd-win.min .cw-msgs,.cd-win.min .cw-compose{display:none}
.cw-head{display:flex;align-items:center;gap:9px;padding:8px 8px 8px 10px;background:#fff;color:var(--ink);cursor:pointer;outline-offset:-3px;border-bottom:1px solid #e4e6eb;box-shadow:0 1px 3px rgba(0,0,0,.05)}
.cd-win.has-unread .cw-head{background:#fff1f2}
.cw-title{display:flex;flex-direction:column;flex:1;min-width:0;line-height:1.2} .cw-title strong{font-size:.9rem;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}
.cw-title small{font-size:.72rem;color:#65676b} .cw-title small.is-on{color:var(--on);font-weight:700} .p-who small.is-on{color:var(--on);font-weight:700}
.cw-x{border:0;background:none;color:var(--brand);width:28px;height:28px;border-radius:50%;cursor:pointer;font-size:1.1rem;line-height:1;display:inline-grid;place-items:center;text-decoration:none;font-weight:700}
.cw-x:hover{background:#eef2ff;text-decoration:none}
.cw-head .dot{background:#e41e3f;margin:0}
.cw-msgs{flex:1;min-height:0} .cw-compose{flex:none}

/* Messages page */
.msgs{display:grid;grid-template-columns:350px 1fr;background:#fff;border-radius:var(--radius);box-shadow:var(--shadow);height:calc(100vh - 250px);min-height:480px;overflow:hidden}
.m-side{display:flex;flex-direction:column;border-right:1px solid #e4e6eb;min-height:0}
.m-modebar{padding:10px 14px 4px}
.m-tools{display:flex;gap:8px;padding:8px 12px} .m-side>input{margin:0 12px 8px;width:auto;border-radius:999px;background:#f0f2f5;padding:8px 14px;border:1px solid transparent}
.m-item.active{background:#eef2ff} .m-item .ci-top{display:flex;justify-content:space-between;gap:8px;align-items:baseline}
.m-pane{display:flex;flex-direction:column;min-width:0;min-height:0;position:relative}
.p-head{display:flex;align-items:center;gap:10px;padding:10px 16px;border-bottom:1px solid #e4e6eb;box-shadow:0 1px 3px rgba(0,0,0,.04)} .p-who{display:flex;align-items:center;gap:10px;flex:1;min-width:0} .p-who small{display:block}
.p-back{display:none;border:0;background:none;font-size:1.8rem;line-height:1;cursor:pointer;color:var(--brand)}
.p-thread{flex:1;min-height:0} .p-compose{flex:none}
.chat-empty{margin:auto;text-align:center;color:#65676b} .chat-empty .big{font-size:3.2rem}
.modal-back{position:fixed;inset:0;background:rgba(15,23,42,.5);z-index:400;display:grid;place-items:center;padding:16px}
.modal{background:#fff;border-radius:16px;width:min(480px,100%);max-height:calc(100vh - 40px);display:flex;flex-direction:column;box-shadow:0 20px 60px rgba(0,0,0,.35)}
.modal-head{display:flex;justify-content:space-between;align-items:center;padding:14px 18px;border-bottom:1px solid var(--line)} .modal-head h3{margin:0}
.modal-body{padding:14px 18px 18px;overflow-y:auto;display:flex;flex-direction:column;gap:10px}
.modal-body input{width:100%} .modal-body h4{margin:8px 0 0}
.pick-list{max-height:260px;border:1px solid var(--line);border-radius:10px;flex:none} .pick-chips{display:flex;flex-wrap:wrap;gap:6px;min-height:28px;align-items:center}
.foot-links{margin-bottom:6px} .foot-links a,.auth-links a{color:var(--muted)} .auth-links{margin-top:22px;font-size:.8rem;color:var(--muted);text-align:center}

@media (max-width:760px){
  #cdock{padding-right:8px} .cd-wins{display:none} .cd-panel{width:min(320px,calc(100vw - 16px))}
  .msgs{grid-template-columns:1fr;height:calc(100vh - 210px)}
  .msgs .m-pane{display:none} .msgs.show-pane .m-pane{display:flex} .msgs.show-pane .m-side{display:none}
  .p-back{display:block} .chat-toasts{top:70px}
}

/* ===================== Public pages: About / Terms / FAQ ===================== */
:root{--navy:#0B3E6C;--green:#14914E}
.pub-doc{max-width:900px;margin:0 auto;background:#fff;border:1px solid var(--line);border-radius:var(--radius);box-shadow:var(--shadow);padding:clamp(18px,4vw,44px)}
.pub .page,.page.pub{padding-top:22px}
.pub-doc h1{color:var(--navy);margin:0;letter-spacing:.01em}
.doc-title{text-align:center;margin:18px 0 26px} .doc-title.left{text-align:left;margin-top:0}
.doc-title h1{font-size:clamp(1.35rem,3.2vw,1.9rem);font-weight:800;text-transform:uppercase}
.doc-title .sub{margin:4px 0 0;color:var(--green);font-weight:800;letter-spacing:.04em;font-size:1.02rem}
.terms-doc .doc-title .sub{text-transform:none;color:var(--navy);font-size:1.1rem}
.pub-doc h2{color:var(--navy);font-size:1.3rem;margin:30px 0 8px} .pub-doc h3{color:var(--green);font-size:1.02rem;margin:16px 0 4px}
.pub-doc p,.pub-doc li{line-height:1.7}
.about-banner{display:block;width:100%;height:auto;border-radius:12px;border:1px solid var(--line)}
.programs{display:grid;grid-template-columns:1fr 1fr;gap:6px 28px} .programs p{margin:0 0 6px}
.why{list-style:none;padding:0;margin:0} .why li{position:relative;padding-left:22px;margin-bottom:10px} .why li:before{content:"";position:absolute;left:4px;top:.75em;width:7px;height:7px;border-radius:50%;background:var(--green)}
.why strong{color:var(--green)}
.contact-grid{display:grid;grid-template-columns:1fr 1.15fr;gap:22px;align-items:start}
.contact-card{background:#f4f9f6;border:1px solid #d3eadc;border-left:5px solid var(--green);border-radius:12px;padding:16px 20px}
.contact-card p{margin:6px 0} .contact-card a{color:var(--navy);font-weight:600} .contact-card .note{color:var(--muted);font-size:.85rem}
.map-wrap{position:relative;border-radius:12px;overflow:hidden;border:1px solid var(--line);background:#e8eef5}
.map-wrap iframe{display:block;width:100%;height:340px;border:0} .map-open{position:absolute;left:10px;bottom:10px;background:#fff;color:var(--navy);font-weight:700;font-size:.8rem;padding:6px 12px;border-radius:999px;box-shadow:0 2px 8px rgba(0,0,0,.25)}
.closing{text-align:left} .sign{text-align:center;margin:22px 0 18px;color:var(--navy)} .sign strong{display:block;font-size:1.1rem} .sign em{color:var(--green);display:block;margin-top:4px}
.terms-layout{display:grid;grid-template-columns:250px minmax(0,900px);gap:26px;justify-content:center;align-items:start}
.toc{position:sticky;top:84px;background:#fff;border:1px solid var(--line);border-radius:var(--radius);padding:14px 8px;max-height:calc(100vh - 110px);overflow:auto;font-size:.84rem}
.toc strong{display:block;padding:0 10px 8px;color:var(--navy)} .toc a{display:block;padding:5px 10px;border-radius:8px;color:var(--ink);line-height:1.3} .toc a:hover{background:var(--brand-l);text-decoration:none;color:var(--navy)}
.terms-doc{margin:0}
.terms-doc .doc-meta{background:#f1f6fb;border-left:5px solid var(--navy);border-radius:8px;padding:10px 16px;margin-bottom:18px}
.terms-doc .lead{font-size:1.04rem}
.terms-doc h2{display:flex;gap:12px;align-items:center;scroll-margin-top:90px;border-bottom:1px solid var(--line);padding-bottom:8px}
.terms-doc h2 .num{flex:none;display:inline-grid;place-items:center;width:32px;height:32px;border-radius:50%;background:var(--navy);color:#fff;font-size:.9rem}
.terms-doc ul{padding-left:22px} .terms-doc li{margin-bottom:4px} .terms-doc li::marker{color:var(--green)}
.terms-contact{margin:24px 0 14px}
.faq-search input{width:100%;border-radius:999px;padding:12px 20px;background:#f1f5f9;border:1px solid var(--line);font-size:1rem}
.faq-tabs{display:flex;flex-wrap:wrap;gap:8px;margin:16px 0 4px} .faq-tabs a{background:#f1f6fb;color:var(--navy);padding:6px 14px;border-radius:999px;font-size:.84rem;font-weight:600;border:1px solid #dbe7f3} .faq-tabs a:hover{background:#e3eefa;text-decoration:none}
.faq-group{scroll-margin-top:90px}
.faq-item{border:1px solid var(--line);border-radius:12px;margin:8px 0;background:#fff;overflow:hidden}
.faq-item summary{cursor:pointer;list-style:none;padding:14px 46px 14px 18px;font-weight:700;color:var(--ink);position:relative} .faq-item summary::-webkit-details-marker{display:none}
.faq-item summary:after{content:"+";position:absolute;right:18px;top:50%;transform:translateY(-50%);width:24px;height:24px;border-radius:50%;background:var(--navy);color:#fff;text-align:center;line-height:24px;font-weight:400}
.faq-item[open] summary:after{content:"–";background:var(--green)} .faq-item[open]{border-color:#bcd3ea}
.faq-item summary:hover{background:#f8fafc} .faq-a{padding:0 18px 12px} .faq-a p{margin:0}
.faq-none{text-align:center;color:var(--muted)} .faq-help{margin-top:28px;text-align:center;border-left-width:1px}
.terms-check{margin:4px 0 12px;font-size:.88rem;display:flex;gap:8px;align-items:flex-start} .terms-check input{margin-top:4px;width:auto}
@media (max-width:860px){
  .terms-layout{grid-template-columns:1fr} .toc{position:static;max-height:none} .contact-grid,.programs{grid-template-columns:1fr}
}

/* composer extras: photo / file / emoji buttons, progress, emoji picker */
.composer .c-attach{width:32px;height:34px;font-size:1.05rem;border-radius:10px}
.composer .c-row{gap:0}
.c-progress{height:4px;background:#e4e6eb;border-radius:4px;margin:0 6px 6px;overflow:hidden} .c-progress i{display:block;height:100%;width:0;background:var(--on);transition:width .15s}
.emoji-pop{position:absolute;left:8px;bottom:54px;z-index:5;width:236px;display:grid;grid-template-columns:repeat(6,1fr);gap:2px;background:#fff;border-radius:12px;padding:8px;box-shadow:0 6px 24px rgba(15,23,42,.28)}
.emoji-pop button{border:0;background:none;font-size:1.25rem;cursor:pointer;border-radius:8px;padding:4px 0;line-height:1.2} .emoji-pop button:hover{background:#f0f2f5}
.cd-win .composer .c-attach{width:28px}
.composer{position:relative}

/* sign-in: phone (+251) + six-box OTP */
.how{font-size:1.02rem;color:var(--ink);background:var(--brand-l);border-radius:12px;padding:12px 14px;margin:6px 0 20px;line-height:1.5}
.how .tick-ok{color:#16a34a;font-weight:700}
.btn-lg{padding:13px 18px;font-size:1.02rem;border-radius:12px}
.phone-group{display:flex;align-items:stretch;border:1.5px solid var(--line);border-radius:12px;background:#fff;overflow:hidden;transition:border-color .15s,box-shadow .15s}
.phone-group:focus-within{border-color:var(--brand);box-shadow:0 0 0 3px rgba(79,70,229,.15)}
.phone-prefix{display:flex;align-items:center;gap:8px;padding:0 14px;background:#f4f5f9;border-right:1.5px solid var(--line);font-weight:700;color:var(--ink);white-space:nowrap}
.phone-prefix svg{border-radius:3px;box-shadow:0 0 0 1px rgba(0,0,0,.12)}
.phone-group input{border:0!important;border-radius:0!important;box-shadow:none!important;font-size:1.08rem;letter-spacing:.04em;padding:13px 14px}
.otp{display:flex;gap:10px;justify-content:center}
.otp input{width:100%;min-width:0;height:54px;max-width:50px;text-align:center;font-size:1.35rem;font-weight:600;padding:0;border:2px solid transparent;border-radius:10px;background:#f1f2f4;color:var(--ink);caret-color:#2563eb;transition:border-color .15s,background .15s,box-shadow .15s}
.otp input:focus{outline:0;background:#fff;border-color:#2563eb;box-shadow:0 0 0 3px rgba(37,99,235,.15)}
.otp input:not(:placeholder-shown),.otp input.filled{background:#e8eaee}
.otp-label{text-align:center;display:block}
.otp-hint{text-align:center;color:var(--muted);font-size:.88rem;margin:10px 0 2px}
#phone-form .btn-primary{background:#2563eb;border-color:#2563eb;border-radius:10px}
#phone-form .btn-primary:hover{background:#1d4ed8;border-color:#1d4ed8}
.field-error{color:#b91c1c;font-size:.84rem;margin-top:6px;line-height:1.4}
.field-error[hidden]{display:none}
.auth-alt{text-align:center;margin-top:16px;color:var(--muted);font-size:.92rem}
.pw-wrap{position:relative} .pw-wrap input{padding-right:64px}
.pw-toggle{position:absolute;right:6px;top:50%;transform:translateY(-50%);border:0;background:none;color:var(--brand);font:inherit;font-weight:600;font-size:.85rem;cursor:pointer;padding:6px 10px}
#pane-phone[hidden],#pane-email[hidden]{display:none}
@media (max-width:420px){.otp{gap:6px}.otp input{height:48px;font-size:1.2rem}}

.sms-demo{text-align:center;margin:2px 0 14px}.sms-demo svg{max-width:100%;height:auto;display:block;margin:0 auto}.sms-cap{margin:2px 0 0;color:var(--muted);font-size:.88rem}
@media (max-height:760px){.sms-demo svg{width:150px}}
.reg-steps{display:flex;align-items:center;justify-content:center;gap:0;margin:0 0 18px}
.reg-steps span{width:28px;height:28px;border-radius:50%;display:grid;place-items:center;font-weight:700;font-size:.85rem;background:#e8eaee;color:#64748b}
.reg-steps span.on{background:#2563eb;color:#fff;box-shadow:0 0 0 4px rgba(37,99,235,.15)} .reg-steps span.done{background:#16a34a;color:#fff}
.reg-steps i{width:46px;height:2px;background:#e2e8f0;margin:0 8px}
