/* Stadiskill - site look (on top of Bootstrap 5).
   Colours from the Alina template: primary blue #2172DB -> deep blue #0A2D78 (template primary gradient),
   navy #0F1E3C (template dark), orange #FAAC50 (template warning), body #EEF2F5.
   Fonts: Poppins (headings) + Inter (text). */
:root {
  --ink: #0F1E3C; --muted: #5A6880; --bg: #EEF2F5; --card: #FFFFFF; --line: #DCE2EA; --soft: #E8EDF4;
  --brand: #2172DB; --brand-2: #1A5DB8; --deep: #0A2D78; --mint: #CFE1FA; --mint-2: #6FA8EE;
  --grad: linear-gradient(135deg, #2172DB 0%, #0A2D78 100%);
  --accent: #FAAC50; --accent-ink: #4A2A00; --ok: #34B478;
  --radius: 18px;
  --gutter: 20px;
  --display: 'Poppins', 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-font-family: 'Inter', system-ui, -apple-system, 'Segoe UI', Roboto, sans-serif;
  --bs-body-color: var(--ink); --bs-body-bg: var(--bg); --bs-link-color-rgb: 33, 114, 219; --bs-link-hover-color-rgb: 10, 45, 120; --bs-border-color: var(--line);
}
body { background: var(--bg); color: var(--ink); font-size: 16px; line-height: 1.65; -webkit-font-smoothing: antialiased; text-rendering: optimizeLegibility; }
.container { padding-left: var(--gutter); padding-right: var(--gutter); }
@media (min-width: 992px) { :root { --gutter: 24px; } }
p { margin-bottom: 1rem; }
a { color: var(--brand-2); }
h1, h2, h3, h4, .h1, .h2, .h3, .h4 { font-family: var(--display); font-weight: 700; letter-spacing: -.02em; line-height: 1.2; color: var(--ink); }
h1, .h1 { line-height: 1.12; }
h5, h6, .h5, .h6 { font-family: var(--display); font-weight: 600; letter-spacing: -.005em; line-height: 1.35; }
h2, .h2, h3, .h3 { margin-bottom: .75rem; }
.text-muted, .muted { color: var(--muted) !important; }
.small, small { line-height: 1.6; }
.small-caps { font-size: .72rem; text-transform: uppercase; letter-spacing: .09em; font-weight: 600; color: var(--muted); }
:focus-visible { outline: 3px solid var(--accent); outline-offset: 2px; }
.skip { position: absolute; left: -9999px; top: 8px; z-index: 100; background: var(--brand); color: #fff; padding: .5rem .8rem; border-radius: 8px; }
.skip:focus { left: 8px; }

/* brand */
.brand { display: inline-flex; align-items: center; gap: .6rem; text-decoration: none; color: var(--ink); }
.logo-mark { flex-shrink: 0; display: block; }
.wordmark { font-family: var(--display); font-weight: 700; font-size: 1.28rem; letter-spacing: -.02em; color: var(--ink); line-height: 1; }
.wordmark b { font-weight: 700; color: var(--brand); }
.brand-light .wordmark { color: #fff; } .brand-light .wordmark b { color: var(--accent); }
.brand small { font-size: .68rem; font-weight: 600; background: var(--accent); color: var(--accent-ink); padding: .15rem .45rem; border-radius: 6px; }

/* top bar */
.topbar { position: sticky; top: 0; z-index: 50; background: rgba(255,255,255,.92); backdrop-filter: saturate(1.4) blur(10px); border-bottom: 1px solid var(--line); }
.topbar .container { min-height: 68px; }
.nav-links { display: flex; align-items: center; gap: .25rem; margin-left: auto; }
.nav-links a { color: var(--ink); text-decoration: none; padding: .5rem .8rem; border-radius: 10px; font-weight: 500; font-size: .94rem; white-space: nowrap; }
.nav-links a:hover, .nav-links a.on { background: var(--soft); color: var(--deep); }
.nav-links a.btn-nav { background: var(--brand); color: #fff; font-weight: 600; padding: .55rem 1rem; }
.nav-links a.btn-nav:hover, .nav-links a.btn-nav.on { background: var(--brand-2); color: #fff; }
.nav-sep { width: 1px; height: 22px; background: var(--line); margin: 0 .4rem; }
.nbadge { display: inline-grid; place-items: center; min-width: 20px; height: 20px; padding: 0 5px; border-radius: 99px; background: #E5484D; color: #fff; font-size: .7rem; font-weight: 700; vertical-align: 1px; }
.nav-toggle { background: #fff; border: 1px solid var(--line); border-radius: 12px; width: 44px; height: 42px; font-size: 1.35rem; color: var(--ink); }
@media (max-width: 991.98px) {
  .nav-links { display: none; position: absolute; left: 0; right: 0; top: 68px; background: #fff; border-bottom: 1px solid var(--line); flex-direction: column; align-items: stretch; padding: .75rem var(--gutter) 1.25rem; gap: .2rem; box-shadow: 0 20px 30px -20px rgba(0,0,0,.25); }
  .nav-open .nav-links { display: flex; }
  .nav-sep { display: none; }
  .nav-links a { padding: .8rem .9rem; font-size: 1rem; }
  .nav-links a.btn-nav { text-align: center; margin-top: .4rem; }
}

/* bottom tab bar (signed-in, phones) */
.tabbar { position: fixed; left: 0; right: 0; bottom: 0; z-index: 60; display: flex; background: #fff; border-top: 1px solid var(--line); padding: .35rem .25rem calc(.35rem + env(safe-area-inset-bottom)); box-shadow: 0 -8px 24px -18px rgba(0,0,0,.35); }
.tabbar a { flex: 1; display: flex; flex-direction: column; align-items: center; gap: 2px; font-size: .7rem; font-weight: 600; color: var(--muted); text-decoration: none; padding: .3rem 0; border-radius: 10px; }
.tabbar a i { font-size: 1.4rem; }
.tabbar a.on { color: var(--brand); }
@media (max-width: 991.98px) { body.has-tabbar { padding-bottom: 72px; } }

/* buttons */
.btn { border-radius: 12px; font-weight: 600; padding: .65rem 1.15rem; letter-spacing: .005em; }
.btn-sm { border-radius: 10px; padding: .38rem .8rem; font-size: .875rem; }
.btn-lg { padding: .85rem 1.5rem; font-size: 1rem; border-radius: 14px; }
.btn-brand { background: var(--brand); color: #fff; border: 0; box-shadow: 0 8px 18px -10px rgba(33,114,219,.8); }
.btn-brand:hover, .btn-brand:focus, .btn-brand:active { background: var(--brand-2) !important; color: #fff !important; }
.btn-accent { background: var(--accent); color: var(--accent-ink); border: 0; }
.btn-accent:hover, .btn-accent:active { background: #FBBD70 !important; color: var(--accent-ink) !important; }
.btn-line { border: 1.5px solid var(--line); background: #fff; color: var(--ink); }
.btn-line:hover, .btn-line:active { border-color: var(--brand) !important; color: var(--brand) !important; background: #fff !important; }
@media (max-width: 575.98px) { .btn-stack > .btn { width: 100%; } }

/* cards & chips */
.card-x { background: var(--card); border: 1px solid var(--line); border-radius: var(--radius); padding: 1.5rem; }
.card-x.pad-lg { padding: 2rem; }
@media (max-width: 575.98px) { .card-x { padding: 1.25rem; } .card-x.pad-lg { padding: 1.4rem; } }
.card-link { display: block; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s, border-color .18s; height: 100%; }
.card-link:hover { transform: translateY(-3px); box-shadow: 0 18px 36px -22px rgba(10,45,120,.5); border-color: #C5CFDC; color: inherit; }
.c-ico { --c: #0A2D78; width: 46px; height: 46px; border-radius: 13px; display: inline-grid; place-items: center; font-size: 1.4rem; color: var(--c); background: color-mix(in srgb, var(--c) 12%, white); flex-shrink: 0; }
.c-ico.lg { width: 64px; height: 64px; font-size: 2rem; border-radius: 18px; }
.chip { display: inline-flex; align-items: center; gap: .35rem; font-size: .78rem; font-weight: 600; padding: .3rem .7rem; border-radius: 999px; background: var(--soft); color: var(--muted); text-decoration: none; line-height: 1.3; }
.chip.ok { background: #DCF3E3; color: #1E7A4E; }
.chip.warn { background: #FFF1D1; color: #8A5A00; }
.chip.bad { background: #FDE2E2; color: #B42318; }
.chip.brand { background: #DCEAFD; color: var(--brand-2); }
.chips { display: flex; flex-wrap: wrap; gap: .5rem; }
.pbar { height: 8px; background: #E3E9F1; border-radius: 99px; overflow: hidden; }
.pbar span { display: block; height: 100%; background: linear-gradient(90deg, var(--brand), var(--mint-2)); border-radius: 99px; transition: width .4s; }

/* course cards with a cover photo */
.course-card { display: flex; flex-direction: column; background: #fff; border: 1px solid var(--line); border-radius: var(--radius); overflow: hidden; height: 100%; color: inherit; text-decoration: none; transition: transform .18s, box-shadow .18s; }
.course-card:hover { transform: translateY(-3px); box-shadow: 0 20px 40px -24px rgba(10,45,120,.55); color: inherit; }
.course-card .cover { position: relative; aspect-ratio: 16 / 10; background: var(--soft); overflow: hidden; }
.course-card .cover img { width: 100%; height: 100%; object-fit: cover; display: block; transition: transform .4s; }
.course-card:hover .cover img { transform: scale(1.04); }
.course-card .cover .chip { position: absolute; left: 12px; top: 12px; background: rgba(255,255,255,.94); color: var(--ink); box-shadow: 0 4px 12px -6px rgba(0,0,0,.35); }
.course-card .body { padding: 1.25rem 1.35rem 1.4rem; display: flex; flex-direction: column; flex: 1; }
.course-card h3 { font-size: 1.12rem; margin-bottom: .5rem; }
.course-card p { color: var(--muted); font-size: .92rem; margin-bottom: 1rem; }
.course-card .meta { margin-top: auto; display: flex; flex-wrap: wrap; gap: .4rem .9rem; font-size: .82rem; color: var(--muted); }
.course-card .meta i { color: var(--brand); }
.photo { border-radius: 24px; overflow: hidden; background: var(--soft); }
.photo img { width: 100%; height: 100%; object-fit: cover; display: block; }
.course-banner { border-radius: 22px; overflow: hidden; aspect-ratio: 16 / 7; margin-bottom: 1.75rem; background: var(--soft); }
.course-banner img { width: 100%; height: 100%; object-fit: cover; display: block; }
@media (max-width: 575.98px) { .course-banner { aspect-ratio: 16 / 9; border-radius: 16px; } }

/* hero */
.hero { padding: 3.5rem 0 3.5rem; position: relative; overflow: hidden; }
.hero::before { content: ''; position: absolute; right: -10%; top: -30%; width: 60%; height: 120%; background: radial-gradient(closest-side, rgba(33,114,219,.13), transparent); pointer-events: none; }
.hero h1 { font-size: clamp(2.1rem, 5.4vw, 3.5rem); line-height: 1.1; letter-spacing: -.025em; margin-bottom: 1.25rem; }
.hero h1 .hl { color: var(--brand); position: relative; }
.hero .lead { color: var(--muted); font-size: 1.14rem; line-height: 1.7; max-width: 34rem; margin-bottom: 2rem; }
.trust-row { display: flex; flex-wrap: wrap; gap: .75rem 1.5rem; font-size: .9rem; color: var(--muted); margin-top: 2rem; }
.trust-row span { display: inline-flex; align-items: center; gap: .4rem; }
.trust-row i { color: var(--brand); font-size: 1.15rem; }
.hero-media { position: relative; max-width: 480px; margin: 0 auto; }
.hero-media .photo { aspect-ratio: 22 / 26; box-shadow: 0 40px 70px -40px rgba(10,45,120,.6); }
.hero-card { position: absolute; left: -28px; bottom: 28px; width: 270px; background: #fff; border-radius: 18px; padding: 1rem 1.1rem; box-shadow: 0 24px 50px -24px rgba(15,30,60,.5); border: 1px solid var(--line); }
.hero-card .t { font-family: var(--display); font-weight: 600; font-size: .95rem; margin-bottom: .2rem; }
.hero-card .s { font-size: .78rem; color: var(--muted); margin-bottom: .7rem; }
.hero-chip { position: absolute; right: -14px; top: 32px; background: #fff; border-radius: 14px; padding: .6rem .85rem; box-shadow: 0 18px 36px -18px rgba(15,30,60,.5); font-size: .82rem; font-weight: 600; display: flex; gap: .5rem; align-items: center; border: 1px solid var(--line); }
.hero-chip i { font-size: 1.35rem; }
@media (max-width: 991.98px) { .hero { padding: 2rem 0 3rem; } .hero-media { max-width: 420px; margin-top: 1rem; } .hero-card { left: 12px; bottom: 12px; width: 240px; } .hero-chip { right: 10px; top: 14px; } }
@media (max-width: 575.98px) { .hero h1 { font-size: 2.15rem; } .hero .lead { font-size: 1.05rem; } .hero-card { width: auto; right: 12px; } }

.ticks { list-style: none; padding: 0; margin: 0; }
.ticks li { padding-left: 1.8rem; position: relative; margin: .6rem 0; line-height: 1.55; }
.ticks li::before { content: '\ea5e'; font-family: 'tabler-icons'; position: absolute; left: 0; top: .05rem; color: var(--ok); font-size: 1.15rem; }

.section { padding: 4.5rem 0; }
@media (max-width: 767.98px) { .section { padding: 3.25rem 0; } }
.section-h { max-width: 42rem; margin-bottom: 2.25rem; }
.section-h h2 { font-size: clamp(1.65rem, 3.6vw, 2.3rem); margin-bottom: .75rem; }
.section-h p { color: var(--muted); margin: 0; font-size: 1.06rem; line-height: 1.7; }
.eyebrow { display: inline-flex; align-items: center; gap: .4rem; font-size: .76rem; font-weight: 600; letter-spacing: .12em; text-transform: uppercase; color: var(--brand); margin-bottom: .85rem; }
.band { background: var(--grad); color: #D8E2F2; }
.band h2, .band h3 { color: #fff; }
.band .eyebrow { color: var(--accent); }
.band p { color: #C6D4EC; }
.step { display: flex; gap: 1rem; }
.step-n { width: 42px; height: 42px; border-radius: 12px; background: var(--accent); color: var(--accent-ink); display: grid; place-items: center; font-weight: 700; font-family: var(--display); flex-shrink: 0; }
.step h3 { font-size: 1.08rem; margin: .35rem 0 .4rem; }
.feature { display: flex; gap: 1rem; }
.feature .ic { width: 46px; height: 46px; border-radius: 13px; display: grid; place-items: center; background: #DCEAFD; color: var(--brand); font-size: 1.35rem; flex-shrink: 0; }
.feature .t { font-family: var(--display); font-weight: 600; margin-bottom: .3rem; }
.feature .d { color: var(--muted); font-size: .93rem; line-height: 1.6; }
.cta-box { background: var(--grad); color: #D8E2F2; border-radius: 26px; padding: 2.75rem; position: relative; overflow: hidden; }
.cta-box h2 { color: #fff; }
.cta-box::after { content: ''; position: absolute; right: -80px; bottom: -80px; width: 260px; height: 260px; border-radius: 50%; border: 40px solid rgba(250,172,80,.18); }
@media (max-width: 575.98px) { .cta-box { padding: 1.75rem 1.4rem; border-radius: 20px; } }

/* pricing */
.price-card { position: relative; }
.price-card.best { border: 2px solid var(--brand); box-shadow: 0 24px 40px -30px rgba(10,45,120,.6); }
.price-card .badge-best { position: absolute; top: -13px; left: 1.5rem; background: var(--accent); color: var(--accent-ink); font-weight: 600; font-size: .74rem; padding: .3rem .7rem; border-radius: 8px; }
.price { font-family: var(--display); font-size: 2.2rem; font-weight: 700; letter-spacing: -.02em; line-height: 1.15; }
.p-tag { display: inline-flex; flex-wrap: wrap; align-items: baseline; gap: .15rem .5rem; }
.p-was { color: var(--muted); font-weight: 500; font-size: .62em; text-decoration-thickness: 2px; text-decoration-color: #E5484D; }
.p-save { display: inline-block; background: #E5484D; color: #fff; font-family: var(--bs-body-font-family); font-weight: 700; font-size: .72rem; letter-spacing: .02em; padding: .2rem .5rem; border-radius: 6px; align-self: center; }
.price .p-was { font-size: .5em; }
.offer-bar { background: linear-gradient(90deg, #E5484D, #F2753E); color: #fff; text-align: center; font-weight: 600; font-size: .9rem; padding: .55rem 1rem; }
.offer-bar a { color: #fff; text-decoration: underline; }
.offer-bar .cd { font-variant-numeric: tabular-nums; background: rgba(0,0,0,.18); border-radius: 6px; padding: .05rem .4rem; margin-left: .3rem; }
.country-pill { display: inline-flex; align-items: center; gap: .4rem; font-size: .85rem; color: var(--muted); }
.price small { font-size: .95rem; color: var(--muted); font-weight: 500; font-family: var(--bs-body-font-family); }

/* lessons */
.lesson-nav a { display: flex; gap: .7rem; align-items: center; padding: .6rem .75rem; border-radius: 10px; color: var(--ink); text-decoration: none; font-size: .93rem; line-height: 1.4; }
.lesson-nav a:hover { background: var(--soft); }
.lesson-nav a.on { background: #DCEAFD; font-weight: 600; }
.lesson-nav .n { width: 28px; height: 28px; border-radius: 50%; border: 1.5px solid var(--line); display: grid; place-items: center; font-size: .75rem; flex-shrink: 0; background: #fff; }
.lesson-nav .n.done { background: var(--ok); border-color: var(--ok); color: #fff; }
.lesson-body { font-size: 1.06rem; line-height: 1.85; max-width: 44rem; }
.lesson-body p { margin-bottom: 1.15rem; }
.lesson-body h6 { font-weight: 600; font-size: 1.12rem; margin: 2rem 0 .7rem; }
.lesson-body ul, .lesson-body ol { padding-left: 1.3rem; margin-bottom: 1.15rem; }
.lesson-body li { margin: .45rem 0; padding-left: .2rem; }
.lesson-body pre { background: #0F1E3C; color: #E6EEF9; padding: 1rem 1.1rem; border-radius: 12px; font-size: .88rem; margin: 1.2rem 0; }
.lesson-body code { color: #A2390F; }
.lesson-body pre code { color: inherit; }
.lesson-body table { width: 100%; margin: 1.2rem 0; border-collapse: collapse; font-size: .95rem; }
.lesson-body th, .lesson-body td { border: 1px solid var(--line); padding: .55rem .7rem; }
.lf-try, .try { background: #FFF7E3; border: 1px solid #F3DCA6; border-left: 4px solid var(--accent); border-radius: 12px; padding: 1rem 1.15rem; margin: 1.6rem 0; line-height: 1.7; }
.note { background: #EAF2FD; border: 1px solid #C9DCF7; border-left: 4px solid var(--brand); border-radius: 12px; padding: 1rem 1.15rem; margin: 1.6rem 0; line-height: 1.7; }
.chat-demo { background: #F4F7FB; border: 1px solid var(--line); border-radius: 16px; padding: 1rem; margin: 1.4rem 0; display: flex; flex-direction: column; gap: .7rem; font-size: .95rem; line-height: 1.65; }
.chat-demo .msg { max-width: 92%; padding: .75rem .95rem; border-radius: 14px; }
.chat-demo .msg b:first-child { display: block; font-family: var(--display); font-weight: 600; font-size: .72rem; letter-spacing: .08em; text-transform: uppercase; margin-bottom: .3rem; }
.chat-demo .msg.you { align-self: flex-end; background: var(--brand); color: #fff; border-bottom-right-radius: 4px; }
.chat-demo .msg.you b:first-child { color: #CFE1FA; }
.chat-demo .msg.ai { align-self: flex-start; background: #fff; border: 1px solid var(--line); border-bottom-left-radius: 4px; }
.chat-demo .msg.ai b:first-child { color: #7c3aed; }
.chat-demo code { background: #F1F5FB; padding: .1rem .35rem; border-radius: 6px; }
.vs { display: grid; grid-template-columns: 1fr 1fr; gap: .9rem; margin: 1.4rem 0; }
.vs > div { border-radius: 14px; padding: 1rem 1.1rem; font-size: .96rem; line-height: 1.65; }
.vs p { margin-bottom: .5rem; }
.vs .bad { background: #FFF5F5; border: 1px solid #F6CACA; }
.vs .bad .small-caps { color: #B42318; }
.vs .good { background: #F1FBF5; border: 1px solid #BFE8CF; }
.vs .good .small-caps { color: #1E7A4E; }
@media (max-width: 575.98px) { .vs { grid-template-columns: 1fr; } .chat-demo .msg { max-width: 100%; } }
.res-card { display: flex; gap: 1rem; align-items: center; padding: 1rem 1.1rem; border: 1px dashed #B9CCE8; border-radius: 14px; background: #F6F9FE; text-decoration: none; color: inherit; }
.res-card:hover { border-color: var(--brand); color: inherit; }
.res-card .ic { width: 44px; height: 44px; border-radius: 12px; background: #DCEAFD; color: var(--brand); display: grid; place-items: center; font-size: 1.4rem; flex-shrink: 0; }
.prompt { position: relative; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem 3rem .8rem 1rem; margin-bottom: .6rem; font-size: .95rem; line-height: 1.6; break-inside: avoid; }
.prompt .copy { position: absolute; right: .5rem; top: .5rem; border: 0; background: var(--soft); border-radius: 8px; width: 34px; height: 34px; color: var(--brand); }
.prompt .n { font-weight: 600; color: var(--brand); margin-right: .3rem; }
.code-file { background: #0F1E3C; color: #E6EEF9; padding: 1rem 1.1rem; border-radius: 12px; font-size: .82rem; line-height: 1.55; max-height: 520px; overflow: auto; white-space: pre; }
@media print { .code-file { max-height: none; white-space: pre-wrap; } }
/* Read / Listen / Watch */
.mode-tabs { display: inline-flex; gap: .25rem; background: var(--soft); border-radius: 12px; padding: .25rem; margin-bottom: 1.25rem; }
.mode-tabs button { border: 0; background: transparent; padding: .45rem .9rem; border-radius: 9px; font-weight: 600; font-size: .9rem; color: var(--muted); display: inline-flex; align-items: center; gap: .35rem; }
.mode-tabs button.on { background: #fff; color: var(--deep); box-shadow: 0 2px 8px -4px rgba(15,30,60,.3); }
.listen-bar { position: sticky; top: 76px; z-index: 5; background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: .8rem 1rem; margin-bottom: 1.25rem; box-shadow: 0 10px 24px -20px rgba(15,30,60,.5); }
.lesson-body .speaking { background: #FFF3D6; border-radius: 8px; box-shadow: 0 0 0 6px #FFF3D6; transition: background .2s; }
.vplayer { position: relative; aspect-ratio: 16 / 9; border-radius: 16px; overflow: hidden; background: #0F1E3C; margin-bottom: 1.5rem; cursor: pointer; }
.vplayer img, .vplayer iframe, .vplayer video { position: absolute; inset: 0; width: 100%; height: 100%; object-fit: cover; border: 0; display: block; }
.vplayer.is-file { cursor: default; }
.vplayer.is-file video { object-fit: contain; background: #0F1E3C; }
.vplayer.is-file .vnote { top: 12px; bottom: auto; pointer-events: none; }
.vlock video { -webkit-user-select: none; user-select: none; }
.vmark { position: absolute; left: 8%; top: 20%; z-index: 2; pointer-events: none; color: rgba(255,255,255,.38); font-size: .8rem; font-weight: 600; text-shadow: 0 1px 2px rgba(0,0,0,.35); white-space: nowrap; transition: left 2s ease, top 2s ease; }
.vfull { position: absolute; right: 12px; top: 12px; z-index: 3; width: 36px; height: 36px; border: 0; border-radius: 8px; background: rgba(15,30,60,.7); color: #fff; display: grid; place-items: center; }
.vfull:hover { background: var(--brand-2); }
.vplayer:fullscreen { border-radius: 0; aspect-ratio: auto; width: 100vw; height: 100vh; margin: 0; }
.vplayer:fullscreen .vmark { font-size: 1.1rem; }
.wm-on { position: relative; }
@media print { .wm-on { -webkit-print-color-adjust: exact; print-color-adjust: exact; } }
.vplay { position: absolute; left: 50%; top: 50%; transform: translate(-50%, -50%); width: 72px; height: 72px; border-radius: 50%; border: 0; background: var(--brand); color: #fff; font-size: 2rem; display: grid; place-items: center; box-shadow: 0 10px 30px -8px rgba(0,0,0,.6); }
.vplayer:hover .vplay { background: var(--brand-2); }
.vnote { position: absolute; left: 12px; bottom: 12px; background: rgba(15,30,60,.75); color: #fff; font-size: .78rem; padding: .3rem .6rem; border-radius: 8px; }
.lock-box { text-align: center; padding: 2.5rem 1.25rem; }
.lock-box .ti-lock { font-size: 2.6rem; color: var(--brand); }
.reading-bar { position: fixed; top: 0; left: 0; height: 3px; background: var(--accent); z-index: 70; width: 0; }

/* quiz / skillcheck */
.q { border: 1px solid var(--line); border-radius: 16px; padding: 1.25rem; margin-bottom: 1rem; background: #fff; }
.q > .fw-bold { font-weight: 600 !important; margin-bottom: .35rem; line-height: 1.5; }
.q .opt { display: flex; gap: .7rem; align-items: center; padding: .75rem .85rem; border: 1px solid var(--line); border-radius: 12px; margin-top: .55rem; cursor: pointer; line-height: 1.45; }
.q .opt:hover { background: #F6F9FC; }
.q .opt:has(input:checked) { border-color: var(--brand); background: #EAF2FD; }
.q.right { border-color: #8FD3A5; background: #FAFFFB; } .q.wrong { border-color: #F1A9A9; background: #FFFBFB; }

/* certificate: one A4 landscape page (297 x 210 mm). Sizes in cqw = % of the certificate width, so it scales exactly. */
.cert-page { container-type: inline-size; max-width: 1000px; margin: 0 auto; }
.cert { position: relative; aspect-ratio: 297 / 210; overflow: hidden; text-align: center; color: #0F1E3C; border-radius: 6px; box-shadow: 0 30px 60px -40px rgba(0,0,0,.45);
  background: radial-gradient(circle at 0 0, rgba(33,114,219,.09), transparent 36%), radial-gradient(circle at 100% 100%, rgba(250,172,80,.16), transparent 40%), #fff;
  -webkit-print-color-adjust: exact; print-color-adjust: exact; }
.cert::before { content: ''; position: absolute; inset: 2.2cqw; border: .35cqw solid #2172DB; border-radius: .6cqw; pointer-events: none; z-index: 1; }
.cert::after { content: ''; position: absolute; inset: 3.1cqw; border: .12cqw solid #FAAC50; border-radius: .3cqw; pointer-events: none; z-index: 1; }
.cert .cc { position: absolute; width: 15cqw; height: 15cqw; }
.cert .cc.tl { left: 0; top: 0; background: linear-gradient(135deg, #2172DB, #0A2D78); clip-path: polygon(0 0, 100% 0, 0 100%); }
.cert .cc.br { right: 0; bottom: 0; background: linear-gradient(135deg, #FAAC50, #F08A24); clip-path: polygon(100% 0, 100% 100%, 0 100%); }
.cert-in { position: absolute; inset: 5.6cqw 9cqw 4.4cqw; display: flex; flex-direction: column; align-items: center; z-index: 2; }
.cert-in .brand { gap: 1cqw; } .cert-in .logo-mark { width: 4.6cqw; height: 4.6cqw; } .cert-in .wordmark { font-size: 2.5cqw; color: #0F1E3C; } .cert-in .wordmark b { color: #2172DB; }
.cert-kicker { margin-top: 3.2cqw; font: 700 1.45cqw/1 'Poppins', sans-serif; letter-spacing: .42em; text-transform: uppercase; color: #2172DB; display: flex; align-items: center; gap: 1.4cqw; }
.cert-kicker::before, .cert-kicker::after { content: ''; width: 6cqw; height: .14cqw; background: #FAAC50; }
.cert-sm { font-size: 1.45cqw; color: #5A6880; margin: 2.8cqw 0 0; line-height: 1.4; max-width: 70cqw; }
.cert-name { font: 700 6cqw/1.12 'Poppins', sans-serif; color: #0A2D78; letter-spacing: -.015em; margin-top: .9cqw; padding: 0 4cqw 1cqw; border-bottom: .22cqw solid #FAAC50; max-width: 100%; overflow-wrap: anywhere; }
.cert-course { font: 700 2.9cqw/1.2 'Poppins', sans-serif; color: #0F1E3C; margin-top: 1.3cqw; max-width: 80%; }
.cert-foot { margin-top: auto; width: 100%; display: grid; grid-template-columns: 1fr auto 1fr; align-items: end; gap: 2cqw; text-align: left; }
.cf-l { font-size: 1cqw; letter-spacing: .14em; text-transform: uppercase; color: #5A6880; font-weight: 600; }
.cf-v { font: 700 1.45cqw/1.3 'Poppins', sans-serif; color: #0F1E3C; margin-bottom: 1cqw; }
.cf-sign { border-top: .12cqw solid #0F1E3C; padding-top: .5cqw; font-size: 1.1cqw; color: #5A6880; width: 19cqw; margin-top: 1.6cqw; }
.cert-seal { width: 10.5cqw; height: 10.5cqw; border-radius: 50%; background: radial-gradient(circle, #FFD58F, #FAAC50 70%); color: #4A2A00; display: grid; place-items: center; box-shadow: 0 0 0 .6cqw #FFF1D1, 0 0 0 .78cqw #FAAC50; }
.cert-seal i { font-size: 5cqw; }
.cf-right { justify-self: end; display: flex; flex-direction: column; align-items: center; }
.cert .qr { width: 10cqw; height: 10cqw; padding: .5cqw; background: #fff; border: .12cqw solid #DCE2EA; border-radius: .6cqw; }
.cert .qr svg, .cert .qr img { width: 100%; height: 100%; display: block; }
.cf-scan { font-size: 1.1cqw; font-weight: 700; color: #0A2D78; margin-top: .6cqw; display: flex; gap: .4cqw; align-items: center; }
.cert-issuer { font-size: 1.05cqw; color: #5A6880; margin-top: 1.4cqw; } .cert-issuer strong { color: #0F1E3C; }
/* phones: the A4 layout would be too small to read, so the certificate becomes a tall card */
@container (max-width: 640px) {
  .cert { aspect-ratio: auto; }
  .cert-in { position: relative; inset: auto; padding: 46px 24px 32px; }
  .cert::before { inset: 9px; border-width: 2px; } .cert::after { inset: 14px; border-width: 1px; }
  .cert .cc { width: 64px; height: 64px; }
  .cert-in .logo-mark { width: 30px; height: 30px; } .cert-in .wordmark { font-size: 1.05rem; } .cert-in .brand { gap: 8px; }
  .cert-kicker { font-size: .6rem; margin-top: 18px; gap: 8px; } .cert-kicker::before, .cert-kicker::after { width: 16px; height: 1px; }
  .cert-sm { font-size: .8rem; margin-top: 14px; max-width: none; }
  .cert-name { font-size: 1.65rem; padding: 0 8px 6px; border-bottom-width: 2px; margin-top: 6px; }
  .cert-course { font-size: 1.05rem; max-width: 100%; margin-top: 8px; }
  .cert-foot { margin-top: 24px; grid-template-columns: 1fr auto; gap: 12px; } .cf-mid { display: none; }
  .cf-l { font-size: .58rem; } .cf-v { font-size: .82rem; margin-bottom: 8px; } .cf-sign { font-size: .66rem; width: 130px; border-top-width: 1px; padding-top: 4px; margin-top: 10px; }
  .cert .qr { width: 86px; height: 86px; padding: 4px; border-width: 1px; border-radius: 6px; } .cf-scan { font-size: .7rem; gap: 3px; margin-top: 4px; }
  .cert-issuer { font-size: .68rem; margin-top: 16px; }
}
/* printing: notes are portrait; the certificate and wide tables get their own landscape pages */
@page { size: A4; margin: 12mm; }
@page cert { size: A4 landscape; margin: 0; }
@page wide { size: A4 landscape; margin: 8mm; }
@media print {
  .topbar, .foot, .wa-fab, .tabbar, .no-print, .offer-bar, main > .container > .alert { display: none !important; }
  body { background: #fff; padding: 0 !important; } main, #main { padding: 0 !important; }
  .cert-page { page: cert; width: 297mm; max-width: none; margin: 0; }
  .container:has(> .cert-page) { padding: 0 !important; max-width: none !important; margin: 0 !important; }
  .cert { width: 297mm; height: 209.5mm; aspect-ratio: auto; border-radius: 0; box-shadow: none; }
  .wide-print { page: wide; }
  .lesson-print .card-x { border: 0; padding: 0; }
  .lesson-print section { break-inside: avoid-page; }
}

/* footer, whatsapp */
.foot { background: #0F1E3C; color: #B3C3DE; padding: 3.5rem 0 1.75rem; margin-top: 3.5rem; }
.foot p { color: #B3C3DE; }
.foot a { display: block; color: #D8E2F2; text-decoration: none; padding: .3rem 0; font-size: .93rem; }
.foot a:hover { color: var(--accent); }
.foot .brand { display: inline-flex; }
.foot-h { color: #fff; font-family: var(--display); font-weight: 600; font-size: .9rem; margin-bottom: .6rem; }
.foot a.by-company { display: inline-flex; align-items: center; gap: .45rem; border: 1px solid rgba(255,255,255,.14); border-radius: 12px; padding: .55rem .85rem; font-size: .85rem; background: rgba(255,255,255,.04); }
.foot a.by-company span { color: #B3C3DE; }
.foot a.by-company strong { color: #fff; font-weight: 600; }
.foot a.by-company:hover { border-color: var(--accent); }
.foot a.by-company:hover strong { color: var(--accent); }
.foot-copy { border-top: 1px solid rgba(255,255,255,.1); margin-top: 2rem; padding-top: 1.25rem; font-size: .82rem; }
.wa-fab { position: fixed; right: 16px; bottom: 16px; z-index: 60; background: #25D366; color: #073B1C; font-weight: 600; text-decoration: none; display: flex; align-items: center; gap: .45rem; padding: .7rem 1rem; border-radius: 999px; box-shadow: 0 10px 25px -10px rgba(0,0,0,.45); }
.wa-fab i { font-size: 1.4rem; }
@media (max-width: 575.98px) { .wa-fab span { display: none; } .wa-fab { padding: .8rem; } }

/* forms, tables */
.form-control, .form-select { border-radius: 12px; padding: .72rem .9rem; border-color: var(--line); font-size: 1rem; }
.form-select { padding-right: 2.4rem; }
.form-control-sm, .form-select-sm { border-radius: 10px; padding: .42rem .65rem; font-size: .875rem; }
.form-select-sm { padding-right: 2.1rem; }
.form-control:focus, .form-select:focus { border-color: var(--brand); box-shadow: 0 0 0 .2rem rgba(33,114,219,.15); }
.form-label { font-weight: 600; font-size: .9rem; margin-bottom: .45rem; }
.form-text { margin-top: .4rem; }
.form-check-input:checked { background-color: var(--brand); border-color: var(--brand); }
.auth-box { max-width: 470px; margin: 1.5rem auto; }
.auth-side { text-align: center; margin-bottom: 1.25rem; }
.tbl { width: 100%; font-size: .92rem; }
.tbl th { font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 600; padding: .7rem .6rem; border-bottom: 1px solid var(--line); white-space: nowrap; }
.tbl td { padding: .8rem .6rem; border-bottom: 1px solid #E8EDF3; vertical-align: top; }
.table-wrap { overflow-x: auto; }
.stat { font-family: var(--display); font-size: 1.8rem; font-weight: 700; letter-spacing: -.02em; }
.stars { color: #E19B0B; letter-spacing: 1px; }
.accordion-button { font-family: var(--display); font-weight: 500 !important; padding: 1.1rem 1.25rem; }
.accordion-button:not(.collapsed) { background: #EAF2FD; color: var(--deep); box-shadow: none; }
.accordion-button:focus { box-shadow: none; }
.accordion-body { line-height: 1.7; }
.alert { border-radius: 14px; line-height: 1.55; }
.is-admin main { min-height: 80vh; }
.empty { text-align: center; padding: 2.5rem 1rem; color: var(--muted); }
.empty i { font-size: 2.4rem; color: var(--mint-2); display: block; margin-bottom: .5rem; }

/* ---------- lesson pictures (includes/figures.php) ---------- */
.fig { margin: 1.4rem 0 1.6rem; }
.fig figcaption { font-size: .85rem; color: var(--muted); margin-top: .55rem; line-height: 1.5; }
.fig .pin { display: inline-grid; place-items: center; width: 20px; height: 20px; border-radius: 50%; background: var(--accent); color: var(--accent-ink); font: 700 .7rem/1 var(--display); flex: none; }
/* spreadsheet */
.xl { border: 1px solid #C9D2DE; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 8px 22px -18px rgba(15,30,60,.5); max-width: 100%; }
.xl-bar { display: flex; align-items: stretch; border-bottom: 1px solid #DADFE6; font: .82rem/1.2 Consolas, 'Roboto Mono', monospace; background: #fff; }
.xl-name { padding: .45rem .6rem; min-width: 52px; border-right: 1px solid #DADFE6; color: var(--ink); font-weight: 600; }
.xl-fx { padding: .45rem .5rem; color: #7A8699; font-style: italic; border-right: 1px solid #DADFE6; }
.xl-f { padding: .45rem .6rem; color: #0B6B2F; white-space: nowrap; overflow-x: auto; }
.xl-scroll { overflow-x: auto; }
.xl-grid { border-collapse: collapse; font-size: .82rem; min-width: 100%; }
.xl-grid th { background: #F1F3F6; color: #5F6B7C; font-weight: 500; text-align: center; border: 1px solid #DADFE6; padding: .2rem .45rem; font-size: .72rem; min-width: 28px; }
.xl-grid td { border: 1px solid #E3E7ED; padding: .32rem .55rem; white-space: nowrap; position: relative; color: #1F2A3B; height: 30px; }
.xl-grid td.h { font-weight: 700; background: #F4F8FE; }
.xl-grid td.n { text-align: right; font-variant-numeric: tabular-nums; }
.xl-grid td.f { color: #0B6B2F; font-family: Consolas, 'Roboto Mono', monospace; font-size: .78rem; }
.xl-grid td.hl { background: #E3EEFD; }
.xl-grid td.bad { background: #FDE6E6; color: #A61B1B; }
.xl-grid td.good { background: #E2F6EA; color: #11643A; }
.xl-grid td.soft { color: #A0AABA; }
.xl-grid td.sel { outline: 2px solid var(--brand); outline-offset: -2px; z-index: 1; }
.xl-grid .pin { position: absolute; top: -12px; right: 2px; width: 18px; height: 18px; font-size: .64rem; z-index: 2; box-shadow: 0 0 0 2px #fff; }
.xl-flt { font-style: normal; font-size: .62rem; margin-left: .35rem; border: 1px solid #C9D2DE; border-radius: 3px; padding: 0 .2rem; color: #5F6B7C; background: #fff; }
.xl-handle { position: absolute; right: -4px; bottom: -4px; width: 8px; height: 8px; background: var(--brand); border: 1.5px solid #fff; z-index: 2; }
.xl-more th, .xl-more td { height: 14px; padding: 0; color: #A0AABA; font-size: .7rem; }
.xl-tabs { display: flex; gap: 2px; background: #F1F3F6; border-top: 1px solid #DADFE6; padding: 0 .5rem; font-size: .76rem; overflow-x: auto; }
.xl-tabs span { padding: .35rem .8rem; color: #5F6B7C; white-space: nowrap; }
.xl-tabs span.on { background: #fff; color: #0B6B2F; font-weight: 600; border-bottom: 2px solid #0B6B2F; }
.fig-legend { list-style: none; padding: 0; margin: .7rem 0 0; display: grid; gap: .4rem; font-size: .88rem; }
.fig-legend li { display: flex; gap: .55rem; align-items: flex-start; }
.fig-legend .pin { margin-top: 2px; }
/* chart */
.chart { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .9rem 1rem .6rem; }
.chart-t { font: 600 .95rem/1.35 var(--display); color: var(--ink); margin-bottom: .4rem; }
.chart svg { width: 100%; height: auto; display: block; }
.chart text { font-family: Inter, system-ui, sans-serif; }
.chart .t { font-size: 13px; fill: #33405A; }
.chart .v { font-size: 13px; fill: #0F1E3C; font-weight: 600; }
.chart .ax { font-size: 11.5px; fill: #7A8699; }
.chart .grid { stroke: #E6EBF1; stroke-width: 1; }
/* click path */
.clickpath { display: grid; gap: .5rem; }
.cp-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; font-size: .85rem; }
.cp-app { font-weight: 700; font-size: .72rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); min-width: 56px; }
.cp-step { background: #fff; border: 1px solid #C9D2DE; border-bottom-width: 2px; border-radius: 7px; padding: .2rem .55rem; font-weight: 600; color: var(--ink); }
.cp-row .ti { color: #9AA6B8; font-size: .9rem; }
/* side by side */
.fig-pair { display: grid; grid-template-columns: 1fr 1fr; gap: 1rem; }
.fig-pair .fig { margin: .4rem 0 0; }
.fp-lab { display: inline-flex; align-items: center; gap: .25rem; font-size: .72rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; padding: .15rem .55rem; border-radius: 99px; }
.fp.bad .fp-lab { background: #FDE6E6; color: #A61B1B; }
.fp.good .fp-lab { background: #E2F6EA; color: #11643A; }
.fp.plain .fp-lab { background: var(--soft); color: var(--deep); }
.xl-bar .pin { vertical-align: middle; margin-left: .3rem; }
.fp { min-width: 0; }
@media (max-width: 767.98px) { .fig-pair { grid-template-columns: 1fr; } }
/* flow */
.flow { display: flex; flex-wrap: wrap; align-items: center; gap: .5rem; }
.flow-box { flex: 1 1 140px; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .2rem; min-width: 0; }
.flow-box > .ti { font-size: 1.4rem; color: var(--brand); }
.flow-box strong { font-size: .92rem; }
.flow-box span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.flow-arrow { color: var(--mint-2); font-size: 1.2rem; }
@media (max-width: 575.98px) { .flow { flex-direction: column; align-items: stretch; } .flow-arrow { transform: rotate(90deg); align-self: center; } }
/* settings panel */
.fields { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; max-width: 340px; font-size: .85rem; }
.fields-t { background: #F1F3F6; padding: .5rem .8rem; font-weight: 700; border-bottom: 1px solid var(--line); }
.fields-g { padding: .55rem .8rem; border-bottom: 1px solid #EEF1F5; display: flex; flex-wrap: wrap; align-items: center; gap: .35rem; }
.fields-g:last-child { border-bottom: 0; }
.fields-g span { width: 100%; font-size: .7rem; text-transform: uppercase; letter-spacing: .05em; color: var(--muted); font-weight: 700; }
.fields-g em { font-style: normal; background: #E3EEFD; color: var(--deep); border-radius: 6px; padding: .15rem .5rem; font-weight: 600; }
.fields-g em.none { background: none; color: #A0AABA; font-weight: 400; padding: 0; }
.fig-row { display: grid; grid-template-columns: auto 1fr; gap: 1rem; align-items: start; }
.fig-row > * { min-width: 0; }
@media (max-width: 767.98px) { .fig-row { grid-template-columns: 1fr; } .fig-row .fig { margin: .4rem 0; } }
.lesson-body .xl-grid { margin: 0; width: auto; min-width: 100%; font-size: .82rem; }
.lesson-body .fig-legend { padding-left: 0; }
.lesson-body .fig-legend li { margin: 0; padding: 0; }
@media (max-width: 575.98px) {
  .xl-grid, .lesson-body .xl-grid { font-size: .72rem; }
  .xl-grid td { padding: .28rem .35rem; height: 26px; }
  .xl-grid th { padding: .15rem .25rem; min-width: 20px; }
  .xl-bar { font-size: .72rem; }
  .xl-name { min-width: 40px; padding: .4rem .45rem; }
  .fields { max-width: none; }
}
/* phone */
.phone-wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: center; }
.phone-wrap .fig-legend { flex: 1 1 240px; max-width: 380px; margin: 0; }
.phone { width: 270px; max-width: 100%; border: 9px solid #0F1E3C; border-radius: 34px; background: #fff; overflow: hidden; position: relative; box-shadow: 0 18px 40px -24px rgba(15,30,60,.6); font-size: .8rem; }
.ph-notch { width: 80px; height: 16px; background: #0F1E3C; border-radius: 0 0 12px 12px; margin: 0 auto; }
.ph-top { display: flex; align-items: center; justify-content: space-between; padding: .45rem .7rem .55rem; border-bottom: 1px solid #EEF1F5; }
.ph-top strong { font-size: .85rem; color: var(--app); }
.ph-ico { position: relative; width: 28px; height: 28px; display: grid; place-items: center; border-radius: 50%; color: #4A5568; font-size: 1.05rem; flex: none; }
.ph-ico .pin, .ph-msg .pin { position: absolute; top: -8px; right: -8px; box-shadow: 0 0 0 2px #fff; }
.ph-screen { padding: .7rem; display: flex; flex-direction: column; gap: .5rem; min-height: 190px; background: #FAFBFD; }
.ph-msg { position: relative; padding: .5rem .7rem; border-radius: 14px; line-height: 1.4; max-width: 88%; }
.ph-msg.you { align-self: flex-end; background: var(--app); color: #fff; border-bottom-right-radius: 4px; }
.ph-msg.ai { align-self: flex-start; background: #fff; border: 1px solid #E3E7ED; border-bottom-left-radius: 4px; }
.ph-input { display: flex; align-items: center; gap: .35rem; padding: .5rem .55rem .7rem; border-top: 1px solid #EEF1F5; }
.ph-box { flex: 1; background: #F1F3F6; border-radius: 99px; padding: .35rem .7rem; color: #8A94A6; }
.ph-msg mark { background: #FDE68A; color: #7C2D12; padding: 0 .15rem; border-radius: 3px; }
.ph-qr { display: flex; flex-direction: column; gap: .4rem; }
.ph-qr div { background: #fff; border: 1px solid #E3E7ED; border-radius: 10px; padding: .45rem .6rem; line-height: 1.35; }
.ph-qr b { display: block; color: var(--app); font-size: .78rem; }
/* coloured prompt */
.prompt-x { background: #fff; border: 1px solid var(--line); border-radius: 14px; padding: 1rem 1.1rem; }
.px-text { line-height: 2.05; font-size: .95rem; overflow-wrap: anywhere; }
.lesson-body code { overflow-wrap: anywhere; }
.px-part { background: color-mix(in srgb, var(--pc) 12%, #fff); border-bottom: 2px solid var(--pc); padding: .12rem .3rem; border-radius: 4px; -webkit-box-decoration-break: clone; box-decoration-break: clone; }
.px-part b, .px-key b { display: inline-grid; place-items: center; width: 18px; height: 18px; border-radius: 5px; background: var(--pc); color: #fff; font-size: .68rem; margin-right: .3rem; vertical-align: 1px; }
.px-key { display: flex; flex-wrap: wrap; gap: .4rem 1rem; margin-top: .8rem; padding-top: .7rem; border-top: 1px dashed var(--line); font-size: .82rem; font-weight: 600; }
/* card: note / email / document */
.xcard { background: #fff; border: 1px solid var(--line); border-radius: 12px; overflow: hidden; font-size: .88rem; }
.xcard.memo { background: #FFFBEA; border-color: #F1E3A8; font-family: 'Segoe Print', 'Comic Sans MS', cursive, sans-serif; }
.xcard.bad { border-color: #F6CACA; } .xcard.good { border-color: #BFE8CF; }
.xc-title { padding: .55rem .9rem; font-weight: 700; border-bottom: 1px solid var(--line); display: flex; align-items: center; gap: .4rem; background: #F7F9FC; font-family: Inter, system-ui, sans-serif; }
.xcard.memo .xc-title { background: transparent; border-color: #F1E3A8; }
.xc-head { padding: .5rem .9rem; border-bottom: 1px solid #EEF1F5; font-size: .82rem; }
.xc-head span { display: inline-block; width: 64px; color: var(--muted); }
.xc-body { padding: .8rem .9rem; line-height: 1.55; }
.xc-body p { margin: 0 0 .5rem; } .xc-body p:last-child { margin: 0; }
.xc-body ul { margin: 0; padding-left: 1.1rem; } .xc-body li { margin: .15rem 0; }
.xc-body mark { background: #FDE6E6; color: #A61B1B; padding: 0 .2rem; border-radius: 3px; }
.xc-body mark.ok { background: #E2F6EA; color: #11643A; }
/* icon tiles */
.xtiles { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.xtile { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .25rem; }
.xtile > .ti { font-size: 1.4rem; color: var(--brand); }
.xtile strong { font-size: .9rem; } .xtile span { font-size: .8rem; color: var(--muted); line-height: 1.4; }
.xtile.good { background: #F1FBF5; border-color: #BFE8CF; } .xtile.good > .ti { color: #15803d; }
.xtile.bad { background: #FFF5F5; border-color: #F6CACA; } .xtile.bad > .ti { color: #B42318; }
@media (max-width: 575.98px) { .xtiles { grid-template-columns: 1fr 1fr; gap: .5rem; } .xtile { padding: .65rem .7rem; } .xtile strong { font-size: .84rem; } .xtile span { font-size: .76rem; } }
/* simple table */
.xtable { overflow-x: auto; border: 1px solid var(--line); border-radius: 12px; background: #fff; }
.xtable table, .lesson-body .xtable table { width: 100%; margin: 0; border-collapse: collapse; font-size: .86rem; }
.xtable th, .lesson-body .xtable th { background: #F4F8FE; text-align: left; padding: .5rem .75rem; border: 0; border-bottom: 1px solid var(--line); font-weight: 700; white-space: nowrap; }
.xtable td, .lesson-body .xtable td { padding: .5rem .75rem; border: 0; border-bottom: 1px solid #EEF1F5; vertical-align: top; }
.xtable tr:last-child td { border-bottom: 0; }
.xtable tr.hl td { background: #E3EEFD; } .xtable tr.good td { background: #E2F6EA; } .xtable tr.bad td { background: #FDE6E6; }
/* social: avatar, profile, post */
.sm-ava { width: 34px; height: 34px; border-radius: 50%; display: inline-grid; place-items: center; color: #fff; font: 700 .78rem/1 var(--display); flex: none; box-shadow: 0 0 0 2px #fff, 0 0 0 4px #F9A8D4; }
.sm-ava.lg { width: 68px; height: 68px; font-size: 1.3rem; }
.sm-profile, .sm-post { background: #fff; border: 1px solid var(--line); border-radius: 14px; font-size: .84rem; max-width: 380px; margin: 0 auto; }
.sm-profile { padding: 1rem; }
.sm-profile.bad, .sm-post.bad { border-color: #F6CACA; } .sm-profile.good, .sm-post.good { border-color: #BFE8CF; }
.sm-ph { display: flex; align-items: center; gap: 1rem; }
.sm-stats { display: flex; flex: 1; justify-content: space-around; text-align: center; }
.sm-stats span { display: flex; flex-direction: column; font-size: .72rem; color: var(--muted); } .sm-stats b { font-size: .95rem; color: var(--ink); }
.sm-name { font-weight: 700; margin-top: .6rem; }
.sm-cat { color: var(--muted); font-size: .78rem; }
.sm-bio { line-height: 1.45; margin-top: .15rem; }
.sm-link { color: #1D4ED8; font-weight: 600; font-size: .8rem; margin-top: .2rem; } .sm-link .ti { margin-right: .2rem; }
.sm-btns { display: flex; gap: .4rem; margin-top: .7rem; } .sm-btns span { flex: 1; text-align: center; background: #EFF1F5; border-radius: 8px; padding: .35rem; font-weight: 600; font-size: .78rem; }
.sm-hl { display: flex; gap: .9rem; margin-top: .8rem; overflow-x: auto; }
.sm-hl span { display: flex; flex-direction: column; align-items: center; gap: .25rem; font-size: .68rem; }
.sm-hl i { width: 44px; height: 44px; border-radius: 50%; border: 2px solid #E5E7EB; background: #FDF2F8; }
.sm-top { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; }
.sm-top div { flex: 1; display: flex; flex-direction: column; line-height: 1.2; } .sm-top div span { font-size: .72rem; color: var(--muted); }
.sm-img { position: relative; aspect-ratio: 1; background: var(--bg, #F3E8D7); display: grid; place-items: center; overflow: hidden; }
.sm-img .sm-hero { font-size: 5.5rem; color: #8B5E34; }
.sm-img.clean { background: linear-gradient(160deg, #FFF8EE, var(--bg, #F3E8D7)); }
.sm-img.dark { background: #3A3632; } .sm-img.dark .sm-hero { color: #6B625A; } .sm-img.dark::after { content: ''; position: absolute; inset: 0; background: radial-gradient(circle at 70% 20%, rgba(255,240,200,.15), transparent 55%); }
.sm-img.clutter { background: #CDBFA9; } .sm-img.clutter .sm-hero { font-size: 3.6rem; color: #7A6A55; }
.sm-img .junk { position: absolute; font-size: 2.2rem; color: rgba(60,50,40,.45); }
.junk.j0 { left: 8%; top: 10%; transform: rotate(-20deg); } .junk.j1 { right: 10%; top: 8%; } .junk.j2 { left: 14%; bottom: 14%; transform: rotate(35deg); }
.junk.j3 { right: 16%; bottom: 10%; } .junk.j4 { left: 42%; top: 6%; transform: rotate(15deg); } .junk.j5 { right: 38%; bottom: 4%; transform: rotate(-30deg); }
.sm-over { position: absolute; left: 8%; right: 8%; top: 8%; background: rgba(15,30,60,.82); color: #fff; font-weight: 700; text-align: center; padding: .4rem .6rem; border-radius: 8px; font-size: .9rem; }
.sm-acts { display: flex; gap: .9rem; padding: .55rem .75rem .2rem; font-size: 1.2rem; } .sm-acts .ti-bookmark { margin-left: auto; }
.sm-likes { padding: 0 .75rem; font-weight: 700; font-size: .78rem; }
.sm-cap { padding: .3rem .75rem .8rem; line-height: 1.45; }
.sm-cap .tag { color: #1D4ED8; }
/* calendar */
.cal-scroll { overflow-x: auto; }
.cal { display: grid; grid-template-columns: 58px repeat(var(--days, 7), minmax(84px, 1fr)); gap: 4px; min-width: calc(62px + var(--days, 7) * 88px); font-size: .74rem; }
.cal-h { text-align: center; font-weight: 700; color: var(--muted); padding: .2rem 0; }
.cal-w { font-weight: 700; color: var(--muted); align-self: center; }
.cal-d { background: #fff; border: 1px solid #E3E7ED; border-radius: 8px; min-height: 64px; padding: 4px; }
.cal-d em { display: block; font-style: normal; background: color-mix(in srgb, var(--pc) 12%, #fff); border-left: 3px solid var(--pc); border-radius: 5px; padding: .25rem .35rem; line-height: 1.3; }
.cal-d em b { display: block; color: var(--pc); font-size: .66rem; text-transform: uppercase; letter-spacing: .04em; }
.fig-cal .px-key b { width: 12px; height: 12px; border-radius: 3px; }
@media (max-width: 575.98px) { .cal { grid-template-columns: 40px repeat(var(--days, 7), minmax(70px, 1fr)); min-width: calc(44px + var(--days, 7) * 74px); font-size: .7rem; } .cal-w { font-size: .64rem; } }
/* storyboard */
.story { display: grid; grid-template-columns: repeat(auto-fit, minmax(120px, 1fr)); gap: .8rem; }
.st-frame { display: flex; flex-direction: column; gap: .2rem; font-size: .8rem; }
.st-screen { position: relative; aspect-ratio: 9 / 16; border-radius: 14px; background: var(--bg, #2B2F3A); border: 5px solid #0F1E3C; display: grid; place-items: center; overflow: hidden; margin-bottom: .3rem; }
.st-screen .ti { font-size: 2.6rem; color: rgba(255,255,255,.75); }
.st-text { position: absolute; left: 8%; right: 8%; top: 9%; background: #fff; color: #0F1E3C; font-weight: 700; font-size: .72rem; text-align: center; padding: .25rem .3rem; border-radius: 6px; line-height: 1.25; }
.st-frame b { color: var(--brand); } .st-frame > span { color: var(--muted); line-height: 1.35; }
@media (max-width: 575.98px) { .story { grid-template-columns: repeat(2, 1fr); } }
/* ad */
.ad-wrap { display: flex; flex-wrap: wrap; gap: 1.25rem 2rem; align-items: center; justify-content: center; }
.ad-wrap .fig-legend { flex: 1 1 240px; max-width: 380px; margin: 0; }
.sm-post.ad { width: 100%; max-width: 360px; margin: 0; }
.ad-text { position: relative; padding: 0 .75rem .6rem; line-height: 1.45; }
.ad-bar { display: flex; align-items: center; gap: .6rem; padding: .6rem .75rem; background: #F3F4F6; }
.ad-bar div { flex: 1; display: flex; flex-direction: column; line-height: 1.25; min-width: 0; position: relative; }
.ad-bar span { font-size: .68rem; text-transform: uppercase; color: var(--muted); letter-spacing: .03em; }
.ad-bar strong { font-size: .84rem; }
.ad-bar em { position: relative; font-style: normal; background: #E4E6EB; border-radius: 6px; padding: .4rem .65rem; font-weight: 700; font-size: .76rem; white-space: nowrap; }
.ad-bar em .ti-brand-whatsapp { color: #128C7E; }
.ad .pin { position: absolute; top: -8px; right: -6px; box-shadow: 0 0 0 2px #fff; z-index: 2; }
.ad .sm-img .pin { top: 8px; right: 8px; }
/* tree */
.tree { display: flex; flex-direction: column; align-items: center; gap: 1.1rem; }
.tr-box { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .6rem .8rem; display: flex; flex-direction: column; align-items: center; text-align: center; gap: .1rem; position: relative; }
.tr-box .ti { font-size: 1.3rem; color: var(--brand); } .tr-box strong { font-size: .88rem; } .tr-box span { font-size: .76rem; color: var(--muted); line-height: 1.35; }
.tr-box.root { background: var(--deep); border-color: var(--deep); color: #fff; min-width: 220px; } .tr-box.root .ti, .tr-box.root span { color: #CFE1FA; }
.tr-box.mid { background: #EAF2FD; border-color: #C9DCF7; }
.tr-box.leaf { padding: .45rem .6rem; }
.tr-kids { display: flex; flex-wrap: wrap; justify-content: center; gap: .8rem; width: 100%; position: relative; padding-top: .3rem; border-top: 2px solid #C9DCF7; }
.tr-branch { flex: 1 1 150px; max-width: 280px; display: flex; flex-direction: column; gap: .5rem; }
.tr-leaves { display: flex; flex-wrap: wrap; gap: .4rem; justify-content: center; padding-left: .6rem; border-left: 2px dashed #C9DCF7; }
.tr-leaves .tr-box { flex: 1 1 80px; }
@media (max-width: 575.98px) { .tr-branch { flex-basis: 120px; } .tr-kids { gap: .5rem; } }
/* picture shapes */
.ratios { display: flex; flex-wrap: wrap; justify-content: center; align-items: flex-end; gap: 1.5rem; }
.ratio { display: flex; flex-direction: column; align-items: center; gap: .4rem; font-size: .8rem; color: var(--muted); text-align: center; max-width: 130px; }
.ratio-box { max-height: 196px; border: 2px solid var(--brand); background: #EAF2FD; border-radius: 10px; display: grid; place-items: center; }
.ratio-box b { color: var(--deep); font-size: 1rem; }
/* design canvases (sizes in cqw scale with the canvas) */
.cv-wrap { width: 100%; margin: 0 auto; }
.cv { container-type: inline-size; position: relative; overflow: hidden; border-radius: 6px; box-shadow: 0 10px 26px -16px rgba(15,30,60,.55); border: 1px solid rgba(15,30,60,.08); line-height: 1.15; }
.cv .in { position: absolute; inset: 0; padding: 8cqw; display: flex; flex-direction: column; }
.cv .ab { position: absolute; }
.cv .ico { display: grid; place-items: center; border-radius: 50%; }
.cv p { margin: 0; }
.designs { display: grid; grid-template-columns: repeat(auto-fit, minmax(140px, 1fr)); gap: 1rem; align-items: end; }
.dz { display: flex; flex-direction: column; align-items: center; gap: .45rem; min-width: 0; }
.dz-lab { font-size: .76rem; font-weight: 700; text-transform: uppercase; letter-spacing: .04em; color: var(--muted); }
.dz.bad .dz-lab { color: #B42318; } .dz.good .dz-lab { color: #11643A; }
/* swatches */
.swatches { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.sw-box { height: 78px; border-radius: 10px; display: grid; place-items: center; border: 1px solid var(--line); font: 700 1.15rem/1 var(--display); overflow: hidden; }
.sw-box .band { background: rgba(0,0,0,.62); padding: .5rem .8rem; border-radius: 6px; }
.sw-lab { display: flex; gap: .3rem; align-items: center; font-size: .8rem; margin-top: .35rem; font-weight: 600; }
.sw.good .sw-lab .ti { color: #15803d; } .sw.bad .sw-lab .ti { color: #B42318; }
/* palette */
.palette { display: grid; grid-template-columns: repeat(auto-fit, minmax(110px, 1fr)); gap: .7rem; }
.pc { display: flex; flex-direction: column; gap: .15rem; font-size: .8rem; }
.pc-chip { height: 64px; border-radius: 10px; border: 1px solid var(--line); margin-bottom: .3rem; }
.pc code { color: var(--muted); font-size: .75rem; }
.pal-bar { display: flex; height: 40px; border-radius: 10px; overflow: hidden; margin-top: .9rem; border: 1px solid var(--line); font-size: .72rem; }
.pal-bar span { display: flex; align-items: center; justify-content: center; gap: .25rem; color: #fff; white-space: nowrap; overflow: hidden; text-shadow: 0 1px 2px rgba(0,0,0,.4); }
.pal-bar span:first-child { color: #1F2937; text-shadow: none; }
/* fonts */
.fonts { display: grid; grid-template-columns: repeat(auto-fit, minmax(150px, 1fr)); gap: .7rem; }
.ft { background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: .8rem .9rem; display: flex; flex-direction: column; gap: .3rem; }
.ft-kind { font-size: .7rem; font-weight: 700; text-transform: uppercase; letter-spacing: .05em; color: var(--brand); }
.ft-sample { font-size: 1.55rem; line-height: 1.15; color: #111827; }
.ft-note { font-size: .78rem; color: var(--muted); line-height: 1.35; }
/* editor */
.ed { border: 1px solid #C9D2DE; border-radius: 12px; overflow: hidden; background: #F1F3F6; font-size: .74rem; }
.ed-top { display: flex; align-items: center; gap: .8rem; background: linear-gradient(90deg, #00C4CC, #7B2FF7); color: #fff; padding: .45rem .7rem; }
.ed-top em { font-style: normal; opacity: .85; margin-left: auto; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.ed-share { position: relative; background: #fff; color: #5B21B6; border-radius: 6px; padding: .2rem .6rem; }
.ed-body { display: flex; min-height: 260px; }
.ed-side { position: relative; background: #fff; border-right: 1px solid #DADFE6; display: flex; flex-direction: column; gap: .2rem; padding: .4rem .25rem; }
.ed-side span { display: flex; flex-direction: column; align-items: center; font-size: .6rem; color: #4B5563; padding: .25rem .2rem; }
.ed-side .ti { font-size: 1.1rem; }
.ed-main { flex: 1; display: flex; flex-direction: column; min-width: 0; }
.ed-tool { position: relative; display: flex; align-items: center; gap: .55rem; background: #fff; border-bottom: 1px solid #DADFE6; padding: .35rem .6rem; flex-wrap: wrap; }
.ed-tool span, .ed-tool b, .ed-tool i { border: 1px solid #E5E7EB; border-radius: 5px; padding: .1rem .4rem; }
.ed-font { min-width: 70px; } .ed-col { width: 20px; height: 18px; background: linear-gradient(#0F766E 70%, #F59E0B 0); }
.ed-page { position: relative; flex: 1; display: grid; place-items: center; padding: 1rem; }
.ed-page .cv-wrap { max-width: 190px !important; }
.ed .pin { position: absolute; top: -8px; right: -8px; box-shadow: 0 0 0 2px #fff; z-index: 3; }
.ed-side .pin { top: auto; bottom: 8px; right: auto; left: 50%; transform: translateX(-50%); } .ed-page .pin { top: 10px; right: 10px; }
.ed-tool .pin { position: static; box-shadow: none; border: 0; padding: 0; }
.fig-editor .fig-legend { margin-top: .8rem; }
@media (max-width: 575.98px) { .ed-top span:nth-child(3) { display: none; } .ed-side span { font-size: 0; } .ed-side span .ti { font-size: 1.05rem; } }
/* timeline */
.tl { background: #17181C; border-radius: 12px; padding: .6rem .7rem .8rem 4.6rem; color: #E5E7EB; font-size: .7rem; position: relative; }
.tl-ruler { position: relative; height: 16px; color: #9CA3AF; border-bottom: 1px solid #33363D; margin-bottom: .45rem; }
.tl-ruler span { position: absolute; transform: translateX(-50%); }
.tl-ruler span:first-child { transform: none; }
.tl-tracks { position: relative; display: flex; flex-direction: column; gap: .35rem; }
.tl-row { position: relative; }
.tl-lab { position: absolute; right: calc(100% + .5rem); top: 50%; transform: translateY(-50%); width: 3.8rem; text-align: right; color: #9CA3AF; font-weight: 600; }
.tl-lane { position: relative; height: 30px; background: #22242A; border-radius: 6px; }
.tl-clip { position: absolute; top: 2px; bottom: 2px; background: var(--cc); border-radius: 5px; padding: 0 .35rem; display: flex; align-items: center; overflow: hidden; white-space: nowrap; color: #fff; font-weight: 600; border: 1px solid rgba(255,255,255,.25); }
.tl-clip.cut { background: repeating-linear-gradient(45deg, #4B1D1D 0 6px, #2A1414 6px 12px); color: #FCA5A5; border-color: #7F1D1D; text-decoration: line-through; }
.tl-clip.fast::after { content: '2×'; margin-left: auto; background: rgba(0,0,0,.35); border-radius: 4px; padding: 0 .25rem; }
.tl-clip.slow::after { content: '0.5×'; margin-left: auto; background: rgba(0,0,0,.35); border-radius: 4px; padding: 0 .25rem; }
.tl-over { position: absolute; inset: -4px 0; pointer-events: none; }
.tl-play { position: absolute; top: -6px; bottom: -4px; width: 2px; background: #fff; transform: translateX(-1px); }
.tl-play::before { content: ''; position: absolute; top: -2px; left: -5px; border: 6px solid transparent; border-top-color: #fff; }
.tl-split { position: absolute; top: -8px; bottom: -4px; border-left: 2px dashed #FACC15; }
.tl-split .ti { position: absolute; top: -12px; left: -9px; color: #FACC15; font-size: .95rem; font-style: normal; }
.tl-beat { position: absolute; bottom: -6px; width: 6px; height: 6px; border-radius: 50%; background: #FACC15; transform: translateX(-3px); }
.tl .pin { position: absolute; top: -16px; left: 6px; box-shadow: 0 0 0 2px #17181C; font-style: normal; }
.fig-timeline .fig-legend { margin-top: .8rem; }
.venn svg { max-width: 460px; margin: 0 auto; }
.venn .vt { font: 700 14px Inter, sans-serif; fill: #0F1E3C; } .venn .vd { font: 12px Inter, sans-serif; fill: #5A6880; }
.venn .vc { font: 700 10.5px Inter, sans-serif; fill: #fff; }
/* invoice */
.inv { font-size: .84rem; }
.inv-top { display: flex; justify-content: space-between; gap: 1rem; margin-bottom: .7rem; }
.inv-top h4 { font: 800 1.2rem/1 var(--display); letter-spacing: .08em; color: var(--deep); margin: 0 0 .2rem; }
.inv-top span { color: var(--muted); font-size: .76rem; display: block; }
.inv .tot { display: flex; justify-content: space-between; font-weight: 800; font-size: .95rem; padding: .5rem .2rem 0; }
/* windows desktop */
.dt { border-radius: 10px; overflow: hidden; border: 1px solid #C9D2DE; box-shadow: 0 10px 26px -18px rgba(15,30,60,.6); font-size: .74rem; }
.dt-screen { position: relative; aspect-ratio: 16 / 8.2; background: linear-gradient(135deg, #1E3A8A, #3B82F6 55%, #93C5FD); display: flex; gap: 2%; padding: 3% 3% 2%; }
.dt-win { position: relative; background: #fff; border-radius: 7px; box-shadow: 0 8px 20px -8px rgba(0,0,0,.45); display: flex; flex-direction: column; overflow: visible; min-width: 0; }
.dt-win.full { flex: 1; } .dt-win.left, .dt-win.right { flex: 1; }
.dt-title { display: flex; align-items: center; justify-content: space-between; padding: .3rem .5rem; border-bottom: 1px solid #EEF1F5; font-weight: 600; gap: .5rem; }
.dt-title span { white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.dt-title em { position: relative; font-style: normal; display: flex; gap: .7rem; color: #4B5563; } .dt-title em i { font-style: normal; } .dt-title .x { color: #DC2626; }
.dt-body { padding: .5rem .6rem; color: #374151; line-height: 1.45; overflow: hidden; flex: 1; }
.dt-bar { display: flex; align-items: center; gap: .6rem; background: #EEF1F6; padding: .35rem .6rem; border-top: 1px solid #DADFE6; }
.dt-start { position: relative; color: #0EA5E9; font-size: 1.1rem; }
.dt-search { background: #fff; border-radius: 99px; padding: .15rem .6rem; color: #6B7280; }
.dt-apps { position: relative; display: flex; gap: .55rem; font-size: 1.05rem; flex: 1; justify-content: center; }
.dt-tray { position: relative; display: flex; align-items: center; gap: .4rem; color: #374151; }
.dt .pin { position: absolute; top: -12px; right: -12px; box-shadow: 0 0 0 2px #fff; z-index: 2; font-style: normal; }
@media (max-width: 575.98px) { .dt-search { display: none; } .dt { font-size: .62rem; } }
/* keyboard */
.kb { display: flex; flex-direction: column; gap: 4px; align-items: center; background: #1F2937; padding: .7rem; border-radius: 12px; }
.kb-row { display: flex; gap: 4px; } .kb-row.r1 { margin-left: 14px; } .kb-row.r2 { margin-left: 34px; }
.kb span { width: clamp(22px, 6.4vw, 40px); height: clamp(24px, 6.4vw, 38px); border-radius: 6px; display: grid; place-items: center; font: 700 .78rem Inter, sans-serif; color: #fff; opacity: .55; position: relative; }
.kb span.home { opacity: 1; box-shadow: 0 0 0 2px #fff inset; }
.kb span.bump::after { content: ''; position: absolute; bottom: 4px; width: 9px; height: 2px; background: #fff; border-radius: 2px; }
.kb .f0, .kb .f7 { background: #DB2777; } .kb .f1, .kb .f6 { background: #F59E0B; } .kb .f2, .kb .f5 { background: #16A34A; } .kb .f3 { background: #2563EB; } .kb .f4 { background: #7C3AED; }
.kb span.space { width: min(60vw, 260px); background: #4B5563; opacity: 1; font-weight: 500; font-size: .72rem; }
.kb-key { justify-content: center; } .kb-key b { width: 12px !important; height: 12px !important; border-radius: 3px !important; }
/* file explorer */
.fx { background: #fff; border: 1px solid #C9D2DE; border-radius: 10px; overflow: hidden; font-size: .82rem; }
.fx.bad { border-color: #F6CACA; } .fx.good { border-color: #BFE8CF; }
.fx-path { background: #F1F3F6; padding: .4rem .7rem; border-bottom: 1px solid #DADFE6; color: #4B5563; }
.fx-row { display: flex; align-items: center; gap: .55rem; padding: .38rem .7rem; border-bottom: 1px solid #F1F3F6; }
.fx-row:last-child { border-bottom: 0; } .fx-row .ti { font-size: 1.15rem; } .fx-row span { flex: 1; min-width: 0; overflow-wrap: anywhere; } .fx-row em { font-style: normal; color: #9CA3AF; font-size: .74rem; white-space: nowrap; }
.fx-row.bad { background: #FEF2F2; } .fx-row.bad span { color: #B42318; font-weight: 600; }
/* browser */
.br { border: 1px solid #C9D2DE; border-radius: 10px; overflow: hidden; background: #fff; box-shadow: 0 10px 26px -20px rgba(15,30,60,.6); }
.br-tabs { display: flex; align-items: flex-end; gap: 2px; background: #E5E9EF; padding: .35rem .5rem 0; font-size: .74rem; }
.br-tabs span { background: #D5DBE3; border-radius: 7px 7px 0 0; padding: .3rem .8rem; color: #4B5563; max-width: 160px; white-space: nowrap; overflow: hidden; text-overflow: ellipsis; }
.br-tabs span.on { background: #fff; color: #111827; font-weight: 600; } .br-tabs .ti { margin: 0 0 .3rem .4rem; color: #6B7280; }
.br-bar { display: flex; align-items: center; gap: .5rem; padding: .4rem .6rem; border-bottom: 1px solid #E5E7EB; color: #6B7280; }
.br-url { position: relative; flex: 1; min-width: 0; background: #F1F3F6; border-radius: 99px; padding: .3rem .7rem; font-size: .8rem; display: flex; align-items: center; gap: .1rem; overflow: visible; white-space: nowrap; }
.br-url .ti-lock { color: #16A34A; margin-right: .3rem; } .br-url .ti-alert-triangle { color: #DC2626; margin-right: .3rem; }
.br-url .sch, .br-url .pth { color: #6B7280; } .br-url b { color: #111827; font-weight: 600; }
.br-url .pth { overflow: hidden; text-overflow: ellipsis; }
.br-url.warn { background: #FEF2F2; box-shadow: 0 0 0 1px #F6CACA inset; } .br-url.warn b { color: #B42318; }
.br-url .pin { position: relative; top: -10px; margin: 0 .1rem; box-shadow: 0 0 0 2px #fff; flex: none; }
.br-body { padding: 1rem 1.1rem; font-size: .88rem; line-height: 1.5; }
.fig-browser .fig-legend, .fig-desktop .fig-legend { margin-top: .8rem; }
/* code -> result */
.code-fig { display: grid; grid-template-columns: minmax(0, 1fr) auto minmax(0, 1fr); gap: .7rem; align-items: center; }
.code-side { display: flex; flex-direction: column; gap: .6rem; min-width: 0; }
.code-panel { background: #0F172A; border-radius: 10px; overflow: hidden; }
.code-tab { background: #1E293B; color: #CBD5E1; font-size: .72rem; padding: .35rem .7rem; display: flex; align-items: center; gap: .3rem; }
.code-tab .ti-brand-html5 { color: #F97316; } .code-tab .ti-brand-css3 { color: #38BDF8; }
.code-panel pre, .lesson-body .code-panel pre { margin: 0; background: transparent; border: 0; border-radius: 0; padding: .7rem .8rem; color: #E2E8F0; font-size: .76rem; line-height: 1.55; white-space: pre-wrap; word-break: break-word; }
.code-panel code { background: none; color: inherit; padding: 0; font-size: inherit; }
.code-panel i { font-style: normal; } .c-tag { color: #F472B6; } .c-attr { color: #FBBF24; } .c-str { color: #86EFAC; } .c-sel { color: #F472B6; } .c-prop { color: #7DD3FC; } .c-com { color: #64748B; }
.code-arrow { color: var(--mint-2); font-size: 1.4rem; }
.code-fig .fig { margin: 0; } .code-fig .br-body { padding: .9rem; }
.code-fig > *, .fig-browser, .br { min-width: 0; max-width: 100%; } .br-bar { min-width: 0; } .br-url { overflow: hidden; }
@media (max-width: 767.98px) { .code-fig { grid-template-columns: 1fr; } .code-arrow { transform: rotate(90deg); justify-self: center; } }
.fig-pair .code-fig { grid-template-columns: 1fr; } .fig-pair .code-arrow { transform: rotate(90deg); justify-self: center; }
.site { font-family: Arial, Helvetica, sans-serif; color: #3B2A1E; }
.site h1 { font: 700 1.5rem/1.15 Georgia, serif; color: #7A3E12; margin: 0 0 .35rem; }
.site h2 { font: 700 1.05rem/1.2 Georgia, serif; color: #7A3E12; margin: .2rem 0 .3rem; }
.site p { margin: 0 0 .45rem; font-size: .86rem; }
.site a { color: #1D4ED8; }
.site .btn { display: inline-block; background: #25D366; color: #fff; padding: 9px 16px; border-radius: 8px; text-decoration: none; font-weight: 700; font-size: .85rem; }
.site nav { display: flex; justify-content: space-between; align-items: center; gap: .5rem; flex-wrap: wrap; font-size: .82rem; border-bottom: 1px solid #EADBC8; padding-bottom: .4rem; margin-bottom: .6rem; }
.site nav b { font-family: Georgia, serif; color: #7A3E12; } .site nav span a { margin-left: .7rem; text-decoration: none; color: #3B2A1E; }
.site .cards { display: grid; grid-template-columns: repeat(auto-fit, minmax(80px, 1fr)); gap: 8px; }
.site .card { border: 1px solid #EADBC8; border-radius: 8px; padding: .4rem; font-size: .75rem; text-align: center; }
.site .card i { display: block; height: 42px; border-radius: 5px; background: linear-gradient(135deg, #F6D7B0, #E7B98A); margin-bottom: .3rem; }
.site .ph { height: 90px; border-radius: 8px; background: linear-gradient(135deg, #F6D7B0, #C98A55); display: grid; place-items: center; color: #fff; font-size: 2rem; margin-bottom: .4rem; }
.site ul { margin: 0; padding-left: 1.1rem; font-size: .85rem; }
/* wireframe */
.wf { display: flex; flex-direction: column; gap: 6px; max-width: 360px; margin: 0 auto; background: #fff; border: 1px solid var(--line); border-radius: 12px; padding: 8px; }
.wf.phone { max-width: 200px; } .wf.laptop { max-width: 100%; }
.wf-b { background: #F1F5F9; border: 1.5px dashed #94A3B8; border-radius: 7px; padding: .4rem .6rem; display: flex; flex-direction: column; gap: .1rem; }
.wf-b b { font-size: .8rem; color: var(--deep); } .wf-b span { font-size: .72rem; color: var(--muted); }
.wf-cards { display: grid; grid-template-columns: repeat(var(--n), 1fr); gap: 5px; margin-top: .3rem; }
.wf-cards i { height: 34px; background: #CBD5E1; border-radius: 5px; }
/* box model */
.bm { display: flex; justify-content: center; font-size: .78rem; }
.bm-m, .bm-b, .bm-p { position: relative; padding: 2rem 1.6rem 1.3rem; border-radius: 10px; }
.bm-m { background: #FEF3C7; border: 1.5px dashed #D97706; width: 100%; max-width: 460px; }
.bm-b { background: #FDE68A; border: 3px solid #1F2937; }
.bm-p { background: #BBF7D0; }
.bm span { position: absolute; top: .45rem; left: .7rem; font-weight: 700; color: #374151; }
.bm-c { background: #25D366; color: #fff; text-align: center; padding: .6rem; border-radius: 6px; font-weight: 700; }
.bm-c small { font-weight: 500; opacity: .9; }
/* brand sheet */
.bs-logos { display: flex; flex-wrap: wrap; gap: .6rem; margin-bottom: .8rem; }
.bs-logos span { font: 600 1.15rem/1 Poppins, sans-serif; padding: .7rem 1rem; border-radius: 10px; letter-spacing: -.01em; }
.bs-logos span b { font-weight: 800; }
.bs-logos span.sm { width: 46px; height: 46px; padding: 0; display: grid; place-items: center; border-radius: 50%; font-size: 1rem; font-weight: 800; }
.bs-row { display: flex; flex-wrap: wrap; align-items: center; gap: .35rem .5rem; margin-bottom: .7rem; }
.bs-chip { width: 22px; height: 22px; border-radius: 6px; border: 1px solid var(--line); }
.bs-row code { font-size: .78rem; color: var(--muted); margin-right: .4rem; }
/* keys */
.keys { display: grid; grid-template-columns: repeat(auto-fit, minmax(170px, 1fr)); gap: .5rem 1rem; }
.key-row { display: flex; align-items: center; gap: .6rem; font-size: .85rem; }
.key-row span { display: inline-flex; align-items: center; gap: .2rem; min-width: 76px; }
.key-row i { font-style: normal; color: var(--muted); font-size: .7rem; }
.key-row kbd { background: #fff; color: var(--ink); border: 1px solid #C9D2DE; border-bottom-width: 3px; border-radius: 6px; padding: .15rem .45rem; font: 600 .78rem/1.2 Inter, sans-serif; box-shadow: none; }
@media print { .fig, .xl, .chart { break-inside: avoid; } }

@media (prefers-reduced-motion: reduce) { * { transition: none !important; scroll-behavior: auto !important; } }

/* tinted boxes used on a few pages */
.tint-warm { background: #FFF7E3 !important; border-color: #F3DCA6 !important; }
.tint-blue { background: #EAF2FD !important; border-color: #C9DCF7 !important; }
.tint-soft { background: var(--soft); }

/* the admin menu is long: tighter links on laptop-sized screens */
@media (min-width: 992px) and (max-width: 1399.98px) { .is-admin .nav-links { gap: 0; } .is-admin .nav-links a { padding: .45rem .5rem; font-size: .86rem; } .is-admin .topbar .container { gap: .6rem !important; } }

/* dark / light switch */
.theme-btn { background: transparent; border: 1px solid var(--line); border-radius: 12px; width: 42px; height: 42px; font-size: 1.2rem; color: var(--ink); display: grid; place-items: center; flex: none; }
.theme-btn:hover { border-color: var(--brand); color: var(--brand); }
.theme-btn .ti-sun { display: none; }
[data-theme="dark"] .theme-btn .ti-moon { display: none; } [data-theme="dark"] .theme-btn .ti-sun { display: inline; }

/* ---------- dark mode (screen only: printing always uses light paper) ---------- */
@media screen {
  [data-theme="dark"] {
    --ink: #E4EBF5; --muted: #9AA9BF; --bg: #0B1220; --card: #121B2E; --line: #25334D; --soft: #1A2640;
    --deep: #A9C8FF; --mint: #1C3157; --brand-2: #5B9BEA;
    --bs-body-color: var(--ink); --bs-body-bg: var(--bg); --bs-border-color: var(--line); --bs-link-color-rgb: 111, 168, 238; --bs-link-hover-color-rgb: 169, 200, 255;
    --bs-secondary-bg: var(--card); --bs-tertiary-bg: var(--soft);
    color-scheme: dark;
  }
  [data-theme="dark"] .topbar { background: rgba(11, 18, 32, .9); }
  [data-theme="dark"] .nav-toggle, [data-theme="dark"] .btn-line, [data-theme="dark"] .tabbar, [data-theme="dark"] .course-card,
  [data-theme="dark"] .hero-card, [data-theme="dark"] .hero-chip, [data-theme="dark"] .lesson-nav .n, [data-theme="dark"] .chat-demo .msg.ai,
  [data-theme="dark"] .prompt, [data-theme="dark"] .mode-tabs button.on, [data-theme="dark"] .listen-bar, [data-theme="dark"] .q { background: var(--card); }
  [data-theme="dark"] .btn-line:hover, [data-theme="dark"] .btn-line:active { background: var(--card) !important; }
  [data-theme="dark"] .course-card .cover .chip { background: rgba(18, 27, 46, .92); }
  [data-theme="dark"] .chip.ok { background: #12351F; color: #7EE2A4; }
  [data-theme="dark"] .chip.warn { background: #3A2C0D; color: #F6C76B; }
  [data-theme="dark"] .chip.bad { background: #3D1518; color: #F5A3A3; }
  [data-theme="dark"] .chip.brand, [data-theme="dark"] .feature .ic, [data-theme="dark"] .res-card .ic, [data-theme="dark"] .lesson-nav a.on { background: #17305A; color: #A9C8FF; }
  [data-theme="dark"] .pbar { background: #22314A; }
  [data-theme="dark"] .lf-try, [data-theme="dark"] .try, [data-theme="dark"] .tint-warm { background: #2A2210 !important; border-color: #5A4718 !important; }
  [data-theme="dark"] .note, [data-theme="dark"] .tint-blue { background: #10233F !important; border-color: #23426E !important; }
  [data-theme="dark"] .chat-demo { background: #0F1828; }
  [data-theme="dark"] .chat-demo code { background: #1A2640; }
  [data-theme="dark"] .vs .bad { background: #2A1416; border-color: #5B2328; } [data-theme="dark"] .vs .bad .small-caps { color: #F5A3A3; }
  [data-theme="dark"] .vs .good { background: #10261A; border-color: #1F5134; } [data-theme="dark"] .vs .good .small-caps { color: #7EE2A4; }
  [data-theme="dark"] .res-card { background: #0F1A2E; border-color: #2B4268; }
  [data-theme="dark"] .lesson-body .speaking { background: #3A2E0E; box-shadow: 0 0 0 6px #3A2E0E; }
  [data-theme="dark"] .lesson-body code { color: #F4A06B; }
  [data-theme="dark"] .q .opt:hover { background: #17233A; } [data-theme="dark"] .q .opt:has(input:checked) { background: #17305A; }
  [data-theme="dark"] .q.right { background: #0F2318; border-color: #1F5134; } [data-theme="dark"] .q.wrong { background: #2A1416; border-color: #5B2328; }
  [data-theme="dark"] .tbl td { border-bottom-color: var(--line); }
  [data-theme="dark"] .accordion-button:not(.collapsed) { background: #17305A; color: var(--ink); }
  [data-theme="dark"] .foot { background: #070C16; }
  [data-theme="dark"] .form-control, [data-theme="dark"] .form-select { background-color: #0F1828; border-color: var(--line); color: var(--ink); }
  [data-theme="dark"] .vplayer, [data-theme="dark"] .vplayer.is-file video { background: #060A12; }
  /* lesson pictures stay on light "paper", so their colours keep working */
  [data-theme="dark"] .fig { --ink: #0F1E3C; --muted: #5A6880; --line: #DCE2EA; --soft: #E8EDF4; --deep: #0A2D78; --card: #fff; --mint: #CFE1FA; --brand-2: #1A5DB8;
    color: #0F1E3C; background: #F3F6FA; border-radius: 14px; padding: .9rem; }
  [data-theme="dark"] .fig .fig { background: none; padding: 0; border-radius: 0; }
  [data-theme="dark"] .fig figcaption { color: #4B5A70; }
  [data-theme="dark"] .fig-row { background: #F3F6FA; border-radius: 14px; padding: .9rem; }
  [data-theme="dark"] .fig-row .fig { background: none; padding: 0; }
  [data-theme="dark"] .cert { box-shadow: 0 30px 60px -30px rgba(0, 0, 0, .8); }
}
@media screen and (max-width: 991.98px) { [data-theme="dark"] .nav-links { background: var(--card); } }
